Skip to content

Commit

Permalink
Tokens list gen tool: add Allbridge tag and rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
sept-en committed Jan 13, 2022
1 parent d52fb97 commit 7284127
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/generate_token_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Tags:
NATIVE_ETHEREUM = 'ethereum'
NATIVE_BSC = 'bsc'
NATIVE_TERRA = 'terra'
BRIDGE_ALLBRIDGE = 'allbridge'


class Aurora:
Expand Down Expand Up @@ -89,6 +90,9 @@ def load_token(self, token_path):
if 'terra_address' in token_desc and token_desc['terra_address'] != '':
tags.append(Tags.NATIVE_TERRA)

if 'bridge' in token_desc and token_desc['bridge'].lower() == 'allbridge':
tags.append(Tags.BRIDGE_ALLBRIDGE)

if token_desc['aurora_address'] == '':
return None

Expand Down

0 comments on commit 7284127

Please sign in to comment.