Skip to content

Commit

Permalink
Merge pull request #36 from skip-mev/revert-35-revert-31-ma/token-ove…
Browse files Browse the repository at this point in the history
…rrides

[API-3746] Assetlist schema required field updates
  • Loading branch information
mattac21 authored Jan 18, 2025
2 parents c881f0c + 9ab0073 commit 0c3938f
Show file tree
Hide file tree
Showing 26 changed files with 128 additions and 67 deletions.
65 changes: 46 additions & 19 deletions assetlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,53 +26,76 @@
"items": {
"type": "object",
"description": "An asset on this chain.",
"additionalProperties": false,
"required": [
"name",
"decimals",
"symbol",
"logo_uri",
"coingecko_id"
"asset_type"
],
"anyOf": [
{
"properties": {
"asset_type": { "const": "cosmos" }
},
"required": ["denom"]
},
{
"properties": {
"asset_type": { "const": "erc20" }
},
"required": ["erc20_contract_address"]
},
{
"properties": {
"asset_type": { "const": "evm_native" }
},
"required": ["evm_native_asset_name"]
}
],
"properties": {
"id": {
"asset_type": {
"type": "string",
"description": "Only required for native assets. A unique identifier for this asset. A native asset's ID should have the suffix -native. e.g. ethereum-native for ethereum."
"enum": ["cosmos", "evm_native", "erc20"]
},
"name": {
"evm_native_asset_name": {
"type": "string",
"minLength": 1,
"description": "The name of the asset."
"minLength": 8,
"pattern": "[a-zA-Z]-native",
"description": "Required for evm_native asset types. A unique identifier for this asset. A native asset's ID should have the suffix -native. e.g. ethereum-native for ethereum."
},
"decimals": {
"type": "integer",
"description": "The decimals value of the asset."
"denom": {
"type": "string",
"minLength": 1,
"description": "Required for cosmos asset types. The denomination of the token."
},
"erc20_contract_address": {
"type": "string",
"minLength": 1,
"pattern": "0x[a-zA-Z0-9]*$",
"description": "[OPTIONAL] The ERC20 contract address of the asset."
"description": "Required for erc20 asset types. The ERC20 contract address of the asset."
},
"denom": {
"name": {
"type": "string",
"minLength": 1,
"description": "[OPTIONAL] The denomination of the token. Either erc20_contract_address or denom should be defined."
"description": "[OPTIONAL] The name of the asset."
},
"decimals": {
"type": "integer",
"description": "[OPTIONAL] The decimals value of the asset."
},
"symbol": {
"type": "string",
"minLength": 1,
"description": "The symbol of the asset."
"description": "[OPTIONAL] The symbol of the asset."
},
"logo_uri": {
"type": "string",
"format": "uri-reference",
"minLength": 1,
"description": "The logo URI of the asset."
"description": "[OPTIONAL] The logo URI of the asset."
},
"coingecko_id": {
"type": "string",
"minLength": 1,
"description": "The coingecko ID of the asset."
"description": "[OPTIONAL] The coingecko ID of the asset."
},
"axelar_symbol": {
"type": "string",
Expand All @@ -90,6 +113,10 @@
"type": "boolean",
"default": false,
"description": "[OPTIONAL] If this asset is fast transferable via Skip Go Fast."
},
"recommended_symbol": {
"type": "string",
"description": "[OPTIONAL] The recommended symbol for this asset."
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions chains/1/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"chain_name": "ethereum",
"assets": [
{
"id": "ethereum-native",
"asset_type": "evm_native",
"evm_native_asset_name": "ethereum-native",
"symbol": "ETH",
"name": "Ethereum",
"axelar_symbol": "WETH",
Expand All @@ -14,10 +15,10 @@
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-blue.svg"
},
{
"asset_type": "erc20",
"name": "USDC",
"decimals": 6,
"erc20_contract_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"denom": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin",
Expand Down
9 changes: 5 additions & 4 deletions chains/10/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,38 @@
"chain_name": "optimism",
"assets": [
{
"id": "optimism-native",
"asset_type": "evm_native",
"evm_native_asset_name": "optimism-native",
"symbol": "ETH",
"name": "ETH",
"decimals": 18,
"coingecko_id": "ethereum",
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-blue.svg"
},
{
"asset_type": "erc20",
"name": "Optimism USDC",
"decimals": 6,
"erc20_contract_address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"denom": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin",
"go_fast_enabled": true
},
{
"asset_type": "erc20",
"name": "Bridged USDC",
"decimals": 6,
"erc20_contract_address": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
"denom": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
"symbol": "USDC.e",
"logo_uri": "https://assets-cdn.trustwallet.com/blockchains/optimism/assets/0x7F5c764cBc14f9669B88837ca1490cCa17c31607/logo.png",
"coingecko_id": "bridged-usdc-optimism"
},
{
"asset_type": "erc20",
"name": "Tether USD",
"decimals": 6,
"erc20_contract_address": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"denom": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"symbol": "USDT",
"logo_uri": "https://assets-cdn.trustwallet.com/blockchains/optimism/assets/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/logo.png",
"coingecko_id": "tether"
Expand Down
2 changes: 1 addition & 1 deletion chains/11155111/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"chain_name": "ethereum-sepolia-tesetnet",
"assets": [
{
"asset_type": "erc20",
"name": "Sepolia USDC",
"decimals": 6,
"erc20_contract_address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"denom": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin"
Expand Down
2 changes: 1 addition & 1 deletion chains/11155420/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"chain_name": "optimism-sepolia-testnet",
"assets": [
{
"asset_type": "erc20",
"name": "Optimism USDC",
"decimals": 6,
"erc20_contract_address": "0x5fd84259d66Cd46123540766Be93DFE6D43130D7",
"denom": "0x5fd84259d66Cd46123540766Be93DFE6D43130D7",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin"
Expand Down
3 changes: 2 additions & 1 deletion chains/1284/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"chain_name": "moonbeam",
"assets": [
{
"id": "moonbeam-native",
"asset_type": "evm_native",
"evm_native_asset_name": "moonbeam-native",
"symbol": "GLMR",
"name": "Moonbeam",
"axelar_symbol": "WGLMR",
Expand Down
9 changes: 5 additions & 4 deletions chains/1329/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,37 @@
"chain_name": "sei",
"assets": [
{
"id": "sei-native",
"asset_type": "evm_native",
"evm_native_asset_name": "sei-native",
"symbol": "SEI",
"name": "Sei",
"decimals": 18,
"coingecko_id": "sei-network",
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/sei/images/sei.svg"
},
{
"asset_type": "erc20",
"name": "Wrapped Ether",
"decimals": 18,
"erc20_contract_address": "0x160345fC359604fC6e70E3c5fAcbdE5F7A9342d8",
"denom": "0x160345fC359604fC6e70E3c5fAcbdE5F7A9342d8",
"symbol": "WETH",
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-blue.svg",
"coingecko_id": "ethereum"
},
{
"asset_type": "erc20",
"name": "USDC",
"decimals": 6,
"erc20_contract_address": "0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1",
"denom": "0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin"
},
{
"asset_type": "erc20",
"name": "Tether USD",
"decimals": 6,
"erc20_contract_address": "0xB75D0B03c06A926e488e2659DF1A861F860bD3d1",
"denom": "0xB75D0B03c06A926e488e2659DF1A861F860bD3d1",
"symbol": "USDT",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdt.svg",
"coingecko_id": "tether"
Expand Down
11 changes: 6 additions & 5 deletions chains/137/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"chain_name": "polygon",
"assets": [
{
"id": "polygon-native",
"asset_type": "evm_native",
"evm_native_asset_name": "polygon-native",
"symbol": "POL",
"name": "POL",
"axelar_symbol": "WMATIC",
Expand All @@ -14,38 +15,38 @@
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg"
},
{
"asset_type": "erc20",
"name": "Polygon USDC",
"decimals": 6,
"erc20_contract_address": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"denom": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"symbol": "USDC",
"logo_uri": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/usdc.svg",
"coingecko_id": "usd-coin",
"go_fast_enabled": true
},
{
"asset_type": "erc20",
"name": "Dai Stablecoin",
"decimals": 18,
"erc20_contract_address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"denom": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"symbol": "DAI",
"logo_uri": "https://assets-cdn.trustwallet.com/blockchains/polygon/assets/0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063/logo.png",
"coingecko_id": "dai"
},
{
"asset_type": "erc20",
"name": "Tether USD",
"decimals": 6,
"erc20_contract_address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"denom": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"symbol": "USDT",
"logo_uri": "https://assets-cdn.trustwallet.com/blockchains/polygon/assets/0xc2132D05D31c914a87C6611C10748AEb04B58e8F/logo.png",
"coingecko_id": "tether"
},
{
"asset_type": "erc20",
"name": "Wrapped Ether",
"decimals": 18,
"erc20_contract_address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"denom": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"symbol": "WETH",
"logo_uri": "https://assets-cdn.trustwallet.com/blockchains/polygon/assets/0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619/logo.png",
"coingecko_id": "weth"
Expand Down
5 changes: 3 additions & 2 deletions chains/169/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
"chain_name": "manta-pacific",
"assets": [
{
"id": "manta-pacific-native",
"asset_type": "evm_native",
"evm_native_asset_name": "manta-pacific-native",
"symbol": "ETH",
"name": "ETH",
"decimals": 18,
"coingecko_id": "ethereum",
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-blue.svg"
},
{
"asset_type": "erc20",
"name": "TIA.n",
"decimals": 6,
"erc20_contract_address": "0x6Fae4D9935E2fcb11fC79a64e917fb2BF14DaFaa",
"denom": "0x6Fae4D9935E2fcb11fC79a64e917fb2BF14DaFaa",
"symbol": "TIA.n",
"logo_uri": "https://raw.githubusercontent.com/cosmos/chain-registry/master/celestia/images/celestia.png",
"coingecko_id": "bridged-tia-hyperlane"
Expand Down
3 changes: 2 additions & 1 deletion chains/250/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"chain_name": "fantom",
"assets": [
{
"id": "fantom-native",
"asset_type": "evm_native",
"evm_native_asset_name": "fantom-native",
"symbol": "FTM",
"name": "Fantom",
"axelar_symbol": "WFTM",
Expand Down
3 changes: 2 additions & 1 deletion chains/314/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"chain_name": "filecoin",
"assets": [
{
"id": "filecoin-native",
"asset_type": "evm_native",
"evm_native_asset_name": "filecoin-native",
"symbol": "FIL",
"name": "FIL",
"axelar_symbol": "WFIL",
Expand Down
Loading

0 comments on commit 0c3938f

Please sign in to comment.