Skip to content

Commit

Permalink
Merge pull request #23 from ton-society/feature/notcoin
Browse files Browse the repository at this point in the history
Adding notcoin
  • Loading branch information
shuva10v authored Jun 14, 2024
2 parents 0e24b2a + ca21c55 commit 67fa231
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Binary file added projects/icons/tokens_not.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions projects/tokens/NOT.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from models.project import Token

NOT = Token(
name='NOT',
address='EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT',
decimals=9,
is_meme=False
)
4 changes: 3 additions & 1 deletion seasons/s4.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from projects.defi.Tradoor import Tradoor
from projects.tokens.ARBUZ import ARBUZ
from projects.tokens.KINGY import KINGY
from projects.tokens.NOT import NOT
from projects.tokens.PUNK import PUNK
from projects.tokens.GLINT import GLINT
from projects.tokens.RECA import RECA
Expand Down Expand Up @@ -163,7 +164,8 @@
durev, OPEN, TGRAM, MagicCrystal, TONG, SCALE, GRAM, VIRUS, JVT, BURN, UP,
GEMSTON, SQD, CATS, RUSD, REDO, Bear, MEM,
FNZ, SHIP, LAVE, TONK, CES, TON_STARS, SOX, COFE, PEPE, REGI, WIF, ANON,
KAKAXA, JETTON, FISH, DICK, LLAMA, TONALD, WON, HIF, RANDOM, INS, SHIT, POE, MITTENS
KAKAXA, JETTON, FISH, DICK, LLAMA, TONALD, WON, HIF, RANDOM, INS, SHIT, POE, MITTENS,
NOT
],
score_model=TokenLeaderboardModelV4()
)
Expand Down
3 changes: 3 additions & 0 deletions validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
# print(m.__dict__)
for name, season_config in dict([(name, cls) for name, cls in m.__dict__.items() if isinstance(cls, SeasonConfig)]).items():
print(f"Checking {name} from {season_name}")
names = set()
for project in season_config.projects:
assert project.name not in names, f"Duplicate found: {project.name}"
names.add(project.name)
image = get_icon_name(season_config, project)
if image.endswith(".svg"):
continue
Expand Down

0 comments on commit 67fa231

Please sign in to comment.