Skip to content

Commit

Permalink
feat: add support for more Soroban tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Jul 18, 2024
1 parent 008c2cb commit f9a62d8
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 0 deletions.
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Updated
- Give an alert when enabling hash signing in settings. (Ledger Stax and Ledger Flex)
- Add support for more Soroban tokens.
- Bug fixes.

## v5.4.1
Expand Down
35 changes: 35 additions & 0 deletions scripts/generate_token_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import requests

from stellar_sdk import Asset, Network, Address, utils
from stellar_sdk import xdr as stellar_xdr

LOBSTR_TOKEN_API_URL = "https://lobstr.co/api/v1/sep/assets/curated.json"


def get_asset_contract_id(asset: Asset, network_passphrase: str) -> bytes:
"""Get the contract id of the wrapped token contract."""
network_id_hash = stellar_xdr.Hash(Network(network_passphrase).network_id())
data = stellar_xdr.HashIDPreimage(
stellar_xdr.EnvelopeType.ENVELOPE_TYPE_CONTRACT_ID,
contract_id=stellar_xdr.HashIDPreimageContractID(
network_id=network_id_hash,
contract_id_preimage=stellar_xdr.ContractIDPreimage(
stellar_xdr.ContractIDPreimageType.CONTRACT_ID_PREIMAGE_FROM_ASSET,
from_asset=asset.to_xdr_object(),
),
),
)
contract_id = utils.sha256(data.to_xdr_bytes())
return contract_id


def print_asset(asset):
contract_id = get_asset_contract_id(asset, Network.PUBLIC_NETWORK_PASSPHRASE)
print(f"// {Address.from_raw_contract(contract_id).address}")
print(f'{{{{{"".join([f"0x{x:02x}," for x in contract_id])}}}, "{asset.code}"}},')


resp = requests.get(LOBSTR_TOKEN_API_URL).json()
for record in resp["assets"]:
asset = Asset(record["code"], record["issuer"])
print_asset(asset)
340 changes: 340 additions & 0 deletions src/soroban_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ typedef struct {
char asset_name[MAX_TOKEN_NAME_LENGTH];
} soroban_token_t;

// This list is generated based on the data from https://lobstr.co/api/v1/sep/assets/curated.json.
// Due to storage space limitations, on the NANO S we only support XLM and USDC.
static const soroban_token_t tokens[] = {
// CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA
{{
Expand All @@ -48,6 +50,344 @@ static const soroban_token_t tokens[] = {
},
"USDC",
},
#ifndef TARGET_NANOS
// CBVJZDNMOPEEPED3OBY4VLQPQKU4IOCKWACDKXPBO4E6TQI432W66BE5
{{
0x6a, 0x9c, 0x8d, 0xac, 0x73, 0xc8, 0x47, 0x90, 0x7b, 0x70, 0x71,
0xca, 0xae, 0x0f, 0x82, 0xa9, 0xc4, 0x38, 0x4a, 0xb0, 0x04, 0x35,
0x5d, 0xe1, 0x77, 0x09, 0xe9, 0xc1, 0x1c, 0xde, 0xad, 0xef,
},
"MXN"},
// CD2GNQFE3GRUY5LRE5WT26OQIUBUQ5YKRVDRQ3FWCW7A7NZAPPFIHFAY
{{
0xf4, 0x66, 0xc0, 0xa4, 0xd9, 0xa3, 0x4c, 0x75, 0x71, 0x27, 0x6d,
0x3d, 0x79, 0xd0, 0x45, 0x03, 0x48, 0x77, 0x0a, 0x8d, 0x47, 0x18,
0x6c, 0xb6, 0x15, 0xbe, 0x0f, 0xb7, 0x20, 0x7b, 0xca, 0x83,
},
"TZS"},
// CDDOOECJ6G472JDS7AOVTTNVEN47TPDOQWXSHE64TAVCZQA4EGFXOA7L
{{
0xc6, 0xe7, 0x10, 0x49, 0xf1, 0xb9, 0xfd, 0x24, 0x72, 0xf8, 0x1d,
0x59, 0xcd, 0xb5, 0x23, 0x79, 0xf9, 0xbc, 0x6e, 0x85, 0xaf, 0x23,
0x93, 0xdc, 0x98, 0x2a, 0x2c, 0xc0, 0x1c, 0x21, 0x8b, 0x77,
},
"LTC"},
// CDOFW7HNKLUZRLFZST4EW7V3AV4JI5IHMT6BPXXSY2IEFZ4NE5TWU2P4
{{
0xdc,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, 0x58, 0x35, 0x01, 0x3f,
},
"BRL"},
// CCD6H4LBTHAPY3NGEE6TLLRUSPJGX4K5XI2J6E4MUNDB5TNXEKC23H5B
{{
0x87, 0xe3, 0xf1, 0x61, 0x99, 0xc0, 0xfc, 0x6d, 0xa6, 0x21, 0x3d,
0x35, 0xae, 0x34, 0x93, 0xd2, 0x6b, 0xf1, 0x5d, 0xba, 0x34, 0x9f,
0x13, 0x8c, 0xa3, 0x46, 0x1e, 0xcd, 0xb7, 0x22, 0x85, 0xad,
},
"ARS"},
// CCIIWFVTXWBUMZKYQIMBENXOEKSZ2JLFCZ7RNXARJCRDQYFWDWH6SSKI
{{
0x90, 0x8b, 0x16, 0xb3, 0xbd, 0x83, 0x46, 0x65, 0x58, 0x82, 0x18,
0x12, 0x36, 0xee, 0x22, 0xa5, 0x9d, 0x25, 0x65, 0x16, 0x7f, 0x16,
0xdc, 0x11, 0x48, 0xa2, 0x38, 0x60, 0xb6, 0x1d, 0x8f, 0xe9,
},
"PLAT"},
// CDHG3SIDGBS4A4ZEV55DYRBUVBJGQVUSNQ2U34BHMFJUVBKLCUOUD6YT
{{
0xce, 0x6d, 0xc9, 0x03, 0x30, 0x65, 0xc0, 0x73, 0x24, 0xaf, 0x7a,
0x3c, 0x44, 0x34, 0xa8, 0x52, 0x68, 0x56, 0x92, 0x6c, 0x35, 0x4d,
0xf0, 0x27, 0x61, 0x53, 0x4a, 0x85, 0x4b, 0x15, 0x1d, 0x41,
},
"LTC"},
#endif
};

// get token name if by contract address
Expand Down

0 comments on commit f9a62d8

Please sign in to comment.