diff --git a/README.md b/README.md index 639b0af..fb78aed 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,10 @@ a set period of time with a defined list of projects and rules. The primary objective of this repository is to establish a Domain Specific Language (DSL) for leaderboards, projects, and seasons. Using this DSL, all ranks can be calculated through backends. A backend is an implementation of metrics calculation based on a -specific data source. Currently, there are two backends: +specific data source. Currently, there are three backends: * re:doubt DB, which is based on [ton-indexer](https://github.com/re-doubt/ton-indexer) and -[Tonalytica](https://tonalytica.redoubt.online/). It is used for all leaderboards except of DeFi. +[Tonalytica](https://tonalytica.redoubt.online/). It is used for all leaderboards except of DeFi. It is deprecated since S6. +* toncenter_cpp, which is based on [ton-index-worker](https://github.com/toncenter/ton-index-worker) by [Toncenter](https://toncenter.com/) and [TON-ETL](https://github.com/re-doubt/ton-etl). * [DefiLlama](./backends/defi.py) with on-chain data from [Tonapi](https://tonapi.io/) - used for the DeFi Leaderboard. Main entities: @@ -43,6 +44,7 @@ List of the seasons supported with the leaderboard links | [S3.5](./seasons/s3_5.py) - test season (no actual competition), between S3 and S4. | | | [S4](./seasons/s4.py) - [Methodology](https://ton-org.notion.site/TOL-Season-4-Methodology-30e741e37eb64933b1cd5e61c4546033) | | | [S5](./seasons/s5.py) - [Methodology](https://ton-org.notion.site/TOL-Season-5-Methodology-43102aba33ff436ca3a8590b71587150) | | +| [S6](./seasons/s6.py) - [Methodology](https://ton-org.notion.site/App-DeFi-and-NFT-Leagues-S6-General-Rules-2edaf02d110341b48c275ca2a46eef34) | | ## Adding metrics for your project diff --git a/models/metrics/smc_interaction.py b/models/metrics/smc_interaction.py index d2c2c72..7ac5a6e 100644 --- a/models/metrics/smc_interaction.py +++ b/models/metrics/smc_interaction.py @@ -73,22 +73,6 @@ def calculate(self, context: CalculationContext, metric): ) """ - - - # return f""" - # select - # -t.hash as id, '{context.project.name}' as project, - # source as user_address, t.now as ts from transactions_local t - # join messages m on m.tx_hash = t.hash and direction = 'in' - # -- TODO replace left join to inner join for comment_required case - # left join parsed.message_comments mc on mc.hash = m.body_hash - # where ({address_filter}) {'and length("comment") > 0' if metric.comment_required else ''} - # {comment_regexp_filter} {comment_not_equals_filter} - # AND ( - # {op_codes_filter} - # ) - - # """ """