Skip to content

Commit

Permalink
Merge branch 'change_meme' of https://github.com/ton-society/the-open…
Browse files Browse the repository at this point in the history
…-league into change_meme
  • Loading branch information
delovoyhomie committed Sep 12, 2024
2 parents 621edbb + 657e329 commit af3707a
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 2 deletions.
29 changes: 29 additions & 0 deletions projects/apps/DEPINSIM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from models.metrics.smc_interaction import SmartContractInteraction
from models.metrics.token_transfer_from_user import TokenTransferFromUser
from models.project import App

"""
DEPINSIM app
"""

DEPINSIM = App(
name="DEPINSIM",
analytics_key="DepinSim",
url="https://t.me/DepinSimBot",
metrics=[
SmartContractInteraction(
"Purchase in TON",
"EQC9jJri7_GElDmGwNuRAYnzIKzpvvLKkewn9FnNZuoB_mCp",
comment_required=True,
),
TokenTransferFromUser(
"Purchase in Jetton",
jetton_masters=[
"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs", # USDT
],
destinations=[
"EQC9jJri7_GElDmGwNuRAYnzIKzpvvLKkewn9FnNZuoB_mCp",
],
),
],
)
30 changes: 30 additions & 0 deletions projects/apps/HOTWallet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from models.metrics.smc_interaction import SmartContractInteraction
from models.project import App

"""
HOT Wallet app
"""

HOTWallet = App(
name="HOT Wallet",
analytics_key=None,
url="https://t.me/herewalletbot",
metrics=[
SmartContractInteraction(
"Interaction",
"EQA4SmkTldq7Fn311uMDsvWPo_lbjamZmMZneXUcAJrJeYvm",
),
SmartContractInteraction(
"Interaction",
"EQBxAcKP8QDDiwYolea9vTiP-O1nvP4H6Kjtx3BmsU4_klbt",
),
SmartContractInteraction(
"Interaction",
"EQCgaC5OFAtfJjysbwP85d4Gsfgp1X-18z2S4-RIqb6z38Sk",
),
SmartContractInteraction(
"Interaction",
"EQAvUDmCAM9Zl_i3rXeYA2n-s_uhM4rTBhzAQUeJIxEOB62i",
),
],
)
19 changes: 19 additions & 0 deletions projects/apps/MemeTv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from models.metrics.smc_interaction import SmartContractInteraction
from models.project import App

"""
MemeTv app
"""

MemeTv = App(
name="MemeTv",
analytics_key="MemeTv",
url="https://t.me/TheMemeTvBot",
metrics=[
SmartContractInteraction(
"Interaction",
"EQCHiGNkhPqwgDkYp-ZqAKMKqAf4k9-_Z1_IbNb-L7OBFOpr",
op_codes=[-564733746],
),
],
)
Binary file added projects/icons/apps_depinsim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/icons/apps_hot wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/icons/apps_memetv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions seasons/defi_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def calculate(self, metrics: List[ProjectStat]):
project.metrics[ProjectStat.DEFI_SQUAD] = next(filter(lambda s: s[0](tvl), self.squads))[1]

if delta > 0 and total_tvl_delta > 0:
project.score = delta / total_tvl_delta
project.score = 100.0 * delta / total_tvl_delta
else:
project.score = 0

Expand Down Expand Up @@ -99,7 +99,7 @@ def calculate(self, metrics: List[ProjectStat]):
volume = project.metrics[ProjectStat.DEFI_VOLUME_USD]
project.metrics[ProjectStat.DEFI_SQUAD] = next(filter(lambda s: s[0](volume), self.squads))[1]
if total_volme > 0:
project.score = volume / total_volme
project.score = 100. * volume / total_volme
else:
project.score = 0

Expand Down
6 changes: 6 additions & 0 deletions seasons/s6.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
from projects.apps.Tonalytics import Tonalytics
from projects.apps.WONTON import WONTON
from projects.apps.ZenCoin import ZenCoin
from projects.apps.DEPINSIM import DEPINSIM
from projects.apps.HOTWallet import HOTWallet
from projects.apps.MemeTv import MemeTv
from projects.defi.DAOLama import DAOLama
from projects.defi.DeDust import DeDust
from projects.defi.EVAA import EVAA
Expand Down Expand Up @@ -174,6 +177,9 @@
Tonalytics,
WONTON,
ZenCoin,
DEPINSIM,
HOTWallet,
MemeTv,
],
score_model=AppLeaderboardModelS6(),
enrollment_sbt="EQAab9xw8NOPvIIxv6wxiDNOGLCLGClA1I4vVUPLqceCh_Z7"
Expand Down

0 comments on commit af3707a

Please sign in to comment.