From e2cd8b8db54017092bb97e15ed185c9b5db2e515 Mon Sep 17 00:00:00 2001 From: Kartik Bhat Date: Tue, 29 Aug 2023 10:02:40 -0400 Subject: [PATCH 1/2] Asset Files For Automated Asset List --- atlantic-2/atlantic-2.assets.json | 95 ++++++++++++ pacific-1/pacific-1.assets.json | 230 ++++++++++++++++++++++++++++++ schema/assets.json | 62 ++++++++ schema/validate.py | 2 + 4 files changed, 389 insertions(+) create mode 100644 atlantic-2/atlantic-2.assets.json create mode 100644 pacific-1/pacific-1.assets.json create mode 100644 schema/assets.json diff --git a/atlantic-2/atlantic-2.assets.json b/atlantic-2/atlantic-2.assets.json new file mode 100644 index 0000000..839a81f --- /dev/null +++ b/atlantic-2/atlantic-2.assets.json @@ -0,0 +1,95 @@ +{ + "assets": [ + { + "chain_name": "atlantic-2", + "base_denom": "usei", + "override_properties": { + "symbol": "SEI", + "logo_URIs": { + "png": "https://github.com/cosmos/chain-registry/blob/master/testnets/seitestnet2/images/sei.png" + } + } + }, + { + "chain_name": "atlantic-2", + "base_denom": "factory/sei1jdppe6fnj2q7hjsepty5crxtrryzhuqsjrj95y/uust2", + "override_properties": { + "symbol": "UST2", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra/images/ust.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra/images/ust.png" + } + } + }, + { + "chain_name": "ethereum-goerli", + "base_denom": "factory/sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak/AAxKX63hpBQrGGf6uhB21dJuXupvHxNTHJaktAETVGh6", + "path": "wormhole", + "override_properties": { + "symbol": "WETH", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png" + } + } + }, + { + "chain_name": "polygon-mumbai", + "base_denom": "factory/sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak/8QZuMFhH8FYUGpJNs9YhtuEm76pEzo4NjAYQiYM1vY8y", + "path": "wormhole", + "override_properties": { + "symbol": "WMATIC", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polygon/images/wmatic.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polygon/images/wmatic.svg" + } + } + }, + { + "chain_name": "avalanche-fuji", + "base_denom": "factory/sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak/Fg1hDnTsAyWPVjDUN2vqjwVThwmnuEXBg2eGUGewWDUp", + "path": "wormhole", + "override_properties": { + "symbol": "WAVAX", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/avalanche/images/wavax.svg" + } + } + }, + { + "chain_name": "solana-testnet", + "base_denom": "factory/sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak/GotfBk8VUDfbqgTJgF1nhV7bfZgUxfWiwADNLKv5PEM", + "path": "wormhole", + "override_properties": { + "symbol": "SOL", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra/images/sol.png" + } + } + }, + { + "chain_name": "axelar-testnet-lisbon-3", + "base_denom": "uausdc", + "path": "transfer/channel-44/uausdc", + "override_properties": { + "symbol": "AUSDC", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + } + } + }, + { + "chain_name": "axelar-testnet-lisbon-3", + "base_denom": "wmatic-wei", + "path": "transfer/channel-44/wmatic-wei", + "override_properties": { + "symbol": "WMATIC", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polygon/images/wmatic.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polygon/images/wmatic.svg" + } + } + } + ] + } + \ No newline at end of file diff --git a/pacific-1/pacific-1.assets.json b/pacific-1/pacific-1.assets.json new file mode 100644 index 0000000..d272639 --- /dev/null +++ b/pacific-1/pacific-1.assets.json @@ -0,0 +1,230 @@ +{ + "assets": [ + { + "chain_name": "pacific-1", + "base_denom": "usei", + "override_properties": { + "symbol": "SEI", + "logo_URIs": { + "png": "https://github.com/cosmos/chain-registry/blob/master/testnets/seitestnet2/images/sei.png" + } + } + }, + { + "chain_name": "pacific-1", + "base_denom": "factory/sei1g67gjpzn53hc4qsta9jqe7yq40atuqxmuakqkg/sea", + "override_properties": { + "symbol": "SEA", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/Nova-Ratio/SEA-Image/a8d025011ef83cc610d9bb70c696af61e8d9f8cb/sea-token.png" + } + } + }, + { + "chain_name": "axelar-dojo-1", + "base_denom": "uusdc", + "path": "transfer/channel-2/uusdc", + "override_properties": { + "symbol": "USDC.axl", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "axlusdc" + } + }, + { + "chain_name": "osmosis-1", + "base_denom": "uosmo", + "path": "transfer/channel-0/uosmo", + "override_properties": { + "symbol": "OSMO", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg" + }, + "coingecko_id": "osmosis" + } + }, + { + "chain_name": "osmosis-1", + "base_denom": "uatom", + "path": "transfer/channel-0/transfer/channel-0/uatom", + "override_properties": { + "symbol": "ATOM", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.svg" + }, + "coingecko_id": "cosmos" + } + }, + { + "chain_name": "cosmoshub-4", + "base_denom": "uatom", + "path": "transfer/channel-1/uatom", + "override_properties": { + "symbol": "ATOM", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.svg" + }, + "coingecko_id": "cosmos" + } + }, + { + "chain_name": "ethereum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/4tLQqCLaoKKfNFuPjA9o39YbKUwhR1F8N29Tz3hEbfP2", + "path": "wormhole", + "override_properties": { + "symbol": "WETH", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png" + }, + "coingecko_id": "weth" + } + }, + { + "chain_name": "ethereum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/Hq4tuDzhRBnxw3tFA5n6M52NVMVcC19XggbyDiJKCD6H", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.eth", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "ethereum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/HktfLoADCk9mnjv7XJiN4YXK9ayE6xinLzt8wzcsR2rY", + "path": "wormhole", + "override_properties": { + "symbol": "USDT.eth", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.png" + }, + "coingecko_id": "tether" + } + }, + { + "chain_name": "ethereum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/7omXa4gryZ5NiBmLep7JsTtTtANCVKXwT9vbN91aS1br", + "path": "wormhole", + "override_properties": { + "symbol": "WBTC", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/wbtc.png", + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/wbtc.svg" + }, + "coingecko_id": "bitcoin" + } + }, + { + "chain_name": "arbitrum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/7edDfnf4mku8So3t4Do215GNHwASEwCWrdhM5GqD51xZ", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.arb", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "arbitrum", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/9hJDBDaxqQQhF5HhaPUykeLncBa38XQ5uoNxN3tPQu5r", + "path": "wormhole", + "override_properties": { + "symbol": "WETHar", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png" + }, + "coingecko_id": "weth" + } + }, + { + "chain_name": "polygon", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/DUVFMY2neJdL8aE4d3stcpttDDm5aoyfGyVvm29iA9Yp", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.matic", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "optimism", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/3VKKYtbQ9iq8f9CaZfgR6Cr3TUj6ypXPAn6kco6wjcAu", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.op", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "solana", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/9fELvUhFo6yWL34ZaLgPbCPzdk9MD1tAzMycgH45qShH", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.sol", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "bsc", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/3Ri4N719RQfQaudHiB9CMCYACtK3aieoz1q1Ph24VdAb", + "path": "wormhole", + "override_properties": { + "symbol": "USDC.bsc", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png" + }, + "coingecko_id": "usd-coin" + } + }, + { + "chain_name": "bsc", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/9tTHn18vLnfyBvrQaia6N15zwrfRCAebZDshoPZ39ahN", + "path": "wormhole", + "override_properties": { + "symbol": "WETHbs", + "logo_URIs": { + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png" + }, + "coingecko_id": "weth" + } + }, + { + "chain_name": "bsc", + "base_denom": "factory/sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l/871jbn9unTavWsAe83f2Ma9GJWSv6BKsyWYLiQ6z3Pva", + "path": "wormhole", + "override_properties": { + "symbol": "USDT.bsc", + "logo_URIs": { + "svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.svg", + "png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.png" + }, + "coingecko_id": "tether" + } + } + ] + } + \ No newline at end of file diff --git a/schema/assets.json b/schema/assets.json new file mode 100644 index 0000000..1a7b0d7 --- /dev/null +++ b/schema/assets.json @@ -0,0 +1,62 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema", + "type": "object", + "required": [ + "assets" + ], + "properties": { + "assets": { + "type": "array", + "items": { + "$ref": "#/$defs/asset" + } + } + }, + "additionalPropserties": false, + "$defs": { + "asset": { + "type": "object", + "required": [ + "chain_name", + "base_denom" + ], + "properties": { + "chain_name": { + "type": "string" + }, + "base_denom": { + "type": "string" + }, + "path": { + "type": "string" + }, + "override_properties": { + "type": "object", + "properties": { + "symbol": { + "type": "string" + }, + "logo_URIs": { + "type": "object", + "properties": { + "png": { + "type": "string", + "format": "uri-reference" + }, + "svg": { + "type": "string", + "format": "uri-reference" + } + } + }, + "coingecko_id": { + "type": "string" + } + }, + "additionalProperties": true + } + }, + "additionalProperties": false + } + } + } diff --git a/schema/validate.py b/schema/validate.py index b5a47b4..defc43c 100644 --- a/schema/validate.py +++ b/schema/validate.py @@ -26,3 +26,5 @@ def validate_file(schema_path, file_path): validate_file('./schema/chain_info.json', './chain_info.json') validate_file('./schema/assetlist.json', './assetlist.json') validate_file('./schema/ibc_info.json', './ibc_info.json') + validate_file('./schema/assets.json', './pacific-1/pacific-1.assets.json') + validate_file('./schema/assets.json', './atlantic-2/atlantic-2.assets.json') From 894525073489e9a5593c1c7be37abb355896f40b Mon Sep 17 00:00:00 2001 From: Kartik Bhat Date: Tue, 29 Aug 2023 10:04:23 -0400 Subject: [PATCH 2/2] update spaces --- atlantic-2/atlantic-2.assets.json | 3 +-- pacific-1/pacific-1.assets.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/atlantic-2/atlantic-2.assets.json b/atlantic-2/atlantic-2.assets.json index 839a81f..a87fca1 100644 --- a/atlantic-2/atlantic-2.assets.json +++ b/atlantic-2/atlantic-2.assets.json @@ -91,5 +91,4 @@ } } ] - } - \ No newline at end of file +} diff --git a/pacific-1/pacific-1.assets.json b/pacific-1/pacific-1.assets.json index d272639..dcf9631 100644 --- a/pacific-1/pacific-1.assets.json +++ b/pacific-1/pacific-1.assets.json @@ -226,5 +226,4 @@ } } ] - } - \ No newline at end of file +}