mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-19 04:48:12 +00:00
core: regenerate coins+tokens
This commit is contained in:
parent
41607f7029
commit
c3ce9de3ea
@ -763,32 +763,6 @@ def by_name(name: str) -> CoinInfo:
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Gincoin":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
coin_shortcut="GIN",
|
||||
decimals=8,
|
||||
address_type=38,
|
||||
address_type_p2sh=10,
|
||||
maxfee_kb=100000,
|
||||
signed_message_header="DarkCoin Signed Message:\n",
|
||||
xpub_magic=0x02fe52cc,
|
||||
xpub_magic_segwit_p2sh=None,
|
||||
xpub_magic_segwit_native=None,
|
||||
bech32_prefix=None,
|
||||
cashaddr_prefix=None,
|
||||
slip44=2000,
|
||||
segwit=False,
|
||||
fork_id=None,
|
||||
force_bip143=False,
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "GameCredits":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
@ -1023,32 +997,6 @@ def by_name(name: str) -> CoinInfo:
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "MetaverseETP":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
coin_shortcut="ETP",
|
||||
decimals=8,
|
||||
address_type=50,
|
||||
address_type_p2sh=5,
|
||||
maxfee_kb=2000000,
|
||||
signed_message_header="Metaverse Signed Message:\n",
|
||||
xpub_magic=0x0488b21e,
|
||||
xpub_magic_segwit_p2sh=None,
|
||||
xpub_magic_segwit_native=None,
|
||||
bech32_prefix=None,
|
||||
cashaddr_prefix=None,
|
||||
slip44=2302,
|
||||
segwit=False,
|
||||
fork_id=None,
|
||||
force_bip143=False,
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Monacoin":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
@ -1309,32 +1257,6 @@ def by_name(name: str) -> CoinInfo:
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Pesetacoin":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
coin_shortcut="PTC",
|
||||
decimals=8,
|
||||
address_type=47,
|
||||
address_type_p2sh=22,
|
||||
maxfee_kb=1000000000,
|
||||
signed_message_header="Pesetacoin Signed Message:\n",
|
||||
xpub_magic=0x0488c42e,
|
||||
xpub_magic_segwit_p2sh=None,
|
||||
xpub_magic_segwit_native=None,
|
||||
bech32_prefix=None,
|
||||
cashaddr_prefix=None,
|
||||
slip44=109,
|
||||
segwit=False,
|
||||
fork_id=None,
|
||||
force_bip143=False,
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Polis":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
@ -1855,30 +1777,4 @@ def by_name(name: str) -> CoinInfo:
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "ZelCash":
|
||||
return CoinInfo(
|
||||
coin_name=name,
|
||||
coin_shortcut="ZEL",
|
||||
decimals=8,
|
||||
address_type=7352,
|
||||
address_type_p2sh=7357,
|
||||
maxfee_kb=1000000,
|
||||
signed_message_header="Zcash Signed Message:\n",
|
||||
xpub_magic=0x0488b21e,
|
||||
xpub_magic_segwit_p2sh=None,
|
||||
xpub_magic_segwit_native=None,
|
||||
bech32_prefix=None,
|
||||
cashaddr_prefix=None,
|
||||
slip44=19167,
|
||||
segwit=False,
|
||||
fork_id=None,
|
||||
force_bip143=False,
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
overwintered=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
raise ValueError('Unknown coin name "%s"' % name)
|
||||
|
@ -1990,6 +1990,8 @@ def token_by_chain_address(chain_id, address):
|
||||
return (chain_id, address, "PST", 18) # eth / Primas
|
||||
elif address == b"\x66\x49\x7a\x28\x3e\x0a\x00\x7b\xa3\x97\x4e\x83\x77\x84\xc6\xae\x32\x34\x47\xde":
|
||||
return (chain_id, address, "PT", 18) # eth / PornToken
|
||||
elif address == b"\x2a\x8e\x98\xe2\x56\xf3\x22\x59\xb5\xe5\xcb\x55\xdd\x63\xc8\xe8\x91\x95\x06\x66":
|
||||
return (chain_id, address, "PTC", 18) # eth / ParrotCoin
|
||||
elif address == b"\x49\x46\x58\x3c\x5b\x86\xe0\x1c\xcd\x30\xc7\x1a\x05\x61\x7d\x06\xe3\xe7\x30\x60":
|
||||
return (chain_id, address, "PTON", 18) # eth / PTON
|
||||
elif address == b"\x8a\xe4\xbf\x2c\x33\xa8\xe6\x67\xde\x34\xb5\x49\x38\xb0\xcc\xd0\x3e\xb8\xcc\x06":
|
||||
@ -2078,6 +2080,8 @@ def token_by_chain_address(chain_id, address):
|
||||
return (chain_id, address, "REP", 18) # eth / Augur
|
||||
elif address == b"\xe9\x43\x27\xd0\x7f\xc1\x79\x07\xb4\xdb\x78\x8e\x5a\xdf\x2e\xd4\x24\xad\xdf\xf6":
|
||||
return (chain_id, address, "[deprecated] REP", 18) # eth / Augur
|
||||
elif address == b"\x22\x16\x57\x77\x68\x46\x89\x09\x89\xa7\x59\xba\x29\x73\xe4\x27\xdf\xf5\xc9\xbb":
|
||||
return (chain_id, address, "REPv2", 18) # eth / Reputation
|
||||
elif address == b"\x8f\x82\x21\xaf\xbb\x33\x99\x8d\x85\x84\xa2\xb0\x57\x49\xba\x73\xc3\x7a\x93\x8a":
|
||||
return (chain_id, address, "REQ", 18) # eth / Request Network
|
||||
elif address == b"\x01\xaf\x92\x41\x98\xe8\x93\xfc\x57\xa1\xb2\xd2\xbe\x5a\x6c\xc4\x20\xb8\x76\x4a":
|
||||
@ -3240,6 +3244,8 @@ def token_by_chain_address(chain_id, address):
|
||||
return (chain_id, address, "WYV", 18) # eth / WyvernToken
|
||||
elif address == b"\x91\x0d\xfc\x18\xd6\xea\x3d\x6a\x71\x24\xa6\xf8\xb5\x45\x8f\x28\x10\x60\xfa\x4c":
|
||||
return (chain_id, address, "X8X", 18) # eth / X8X
|
||||
elif address == b"\xf9\x11\xa7\xec\x46\xa2\xc6\xfa\x49\x19\x32\x12\xfe\x4a\x2a\x9b\x95\x85\x1c\x27":
|
||||
return (chain_id, address, "XAMP", 9) # eth / Antiample
|
||||
elif address == b"\x4d\xf8\x12\xf6\x06\x4d\xef\x1e\x5e\x02\x9f\x1c\xa8\x58\x77\x7c\xc9\x8d\x2d\x81":
|
||||
return (chain_id, address, "XAUR", 8) # eth / Xaurum
|
||||
elif address == b"\x49\xae\xc0\x75\x2e\x68\xd0\x28\x2d\xb5\x44\xc6\x77\xf6\xba\x40\x7b\xa1\x7e\xd7":
|
||||
|
Loading…
Reference in New Issue
Block a user