You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/src/apps/ethereum/tokens.py.mako

22 lines
495 B

# generated from tokens.py.mako
# do not edit manually!
def token_by_chain_address(chain_id, address):
for token in tokens:
if chain_id == token[0] and address == token[1]:
return token
return UNKNOWN_TOKEN
UNKNOWN_TOKEN = (None, None, None, None)
# fmt: off
tokens = [
% for t in supported_on("trezor2", erc20):
(${t.chain_id}, ${black_repr(t.address_bytes)}, ${black_repr(t.symbol)}, ${t.decimals}), # ${t.chain} / ${t.name.strip()}
% endfor
]
# fmt: on