Skip to content

Commit

Permalink
Documentation and S6 links
Browse files Browse the repository at this point in the history
  • Loading branch information
shuva10v committed Sep 19, 2024
1 parent fd4fa56 commit f127130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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. | <ul><li>Tokens: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/s3_5/token.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/s3_5/token.json)</li><li>Apps: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/s3_5/app.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/s3_5/app.json)</ul> |
| [S4](./seasons/s4.py) - [Methodology](https://ton-org.notion.site/TOL-Season-4-Methodology-30e741e37eb64933b1cd5e61c4546033) | <ul><li>Tokens: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S4/tokens.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S4/tokens.json)</li><li>Apps: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S4/apps.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S4/apps.json)</li><li>DeFi: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S4/defi.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S4/defi.json)</li><li>NFT: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S4/nfts.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S4/nfts.json)</li></ul> |
| [S5](./seasons/s5.py) - [Methodology](https://ton-org.notion.site/TOL-Season-5-Methodology-43102aba33ff436ca3a8590b71587150) | <ul><li>Tokens: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S5/tokens.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S5/tokens.json)</li><li>Apps: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S5/apps.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S5/apps.json)</li><li>DeFi: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S5/defi.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S5/defi.json)</li><li>NFT: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S5/nfts.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S5/nfts.json)</li></ul> |
| [S6](./seasons/s6.py) - [Methodology](https://ton-org.notion.site/App-DeFi-and-NFT-Leagues-S6-General-Rules-2edaf02d110341b48c275ca2a46eef34) | <ul><li>Apps: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S6/apps.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S6/apps.json)</li><li>DeFi TVL: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S6/defi_tvl.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S6/defi_tvl.json)</li> <li>DeFi Volume: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S6/defi_volume.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S6/defi_volume.json)</li> <li>NFT: [HTML](https://the-open-league-static-data.s3.amazonaws.com/season/S6/nfts.html), [JSON](https://the-open-league-static-data.s3.amazonaws.com/season/S6/nfts.json)</li></ul> |

## Adding metrics for your project

Expand Down
16 changes: 0 additions & 16 deletions models/metrics/smc_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
# )

# """


"""
Expand Down

0 comments on commit f127130

Please sign in to comment.