From bcb1aa4f0ee9b3b74595eb00efbd8f709a25301e Mon Sep 17 00:00:00 2001 From: besated Date: Thu, 16 Nov 2023 15:21:15 -0800 Subject: [PATCH 1/2] Add type_asset to assetlist --- schema/assetlist.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/schema/assetlist.json b/schema/assetlist.json index f86b956..ae17220 100644 --- a/schema/assetlist.json +++ b/schema/assetlist.json @@ -57,7 +57,14 @@ } }, "coingecko_id": { - "type": "string" + "type": "string", + "description": "[OPTIONAL] The coingecko id to fetch asset data from coingecko v3 api. See https://api.coingecko.com/api/v3/coins/list" + }, + "type_asset": { + "type": "string", + "enum": ["sdk.coin", "cw20", "erc20", "ics20"], + "default": "sdk.coin", + "description": "[OPTIONAL] The potential options for type of asset. By default, assumes sdk.coin" } }, "required": [ From 42fca16e40e00aa0e6acc874a00b446c026fc169 Mon Sep 17 00:00:00 2001 From: besated Date: Thu, 16 Nov 2023 15:24:15 -0800 Subject: [PATCH 2/2] Update existing tokens in assetlist with type_asset --- assetlist.json | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/assetlist.json b/assetlist.json index 64eb32f..1031f8a 100644 --- a/assetlist.json +++ b/assetlist.json @@ -60,7 +60,8 @@ "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" + "coingecko_id": "axlusdc", + "type_asset": "ics20" }, { "name": "Osmosis", @@ -82,7 +83,8 @@ "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" + "coingecko_id": "osmosis", + "type_asset": "ics20" }, { "name": "Atom (Osmosis)", @@ -104,7 +106,8 @@ "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" + "coingecko_id": "cosmos", + "type_asset": "ics20" }, { "name": "Atom", @@ -126,7 +129,8 @@ "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" + "coingecko_id": "cosmos", + "type_asset": "ics20" }, { "name": "Wrapped Ether (Wormhole)", @@ -393,11 +397,11 @@ "name": "PKS", "description": "Poker Kings Token", "symbol": "PKS", - "base": "cw20:sei1eavtmc4y00a0ed8l9c7l0m7leesv3yetcptklv2kalz4tsgz02mqlvyea6", + "base": "sei1eavtmc4y00a0ed8l9c7l0m7leesv3yetcptklv2kalz4tsgz02mqlvyea6", "display": "PKS", "denom_units": [ { - "denom": "cw20:sei1eavtmc4y00a0ed8l9c7l0m7leesv3yetcptklv2kalz4tsgz02mqlvyea6", + "denom": "sei1eavtmc4y00a0ed8l9c7l0m7leesv3yetcptklv2kalz4tsgz02mqlvyea6", "exponent": 0 }, { @@ -408,7 +412,7 @@ "images": { "svg": "https://cloudflare-ipfs.com/ipfs/QmPk6YGTMfmCpHKpb18HeASg3H2iQSd4HiGvdH8zz6ZBkM" }, - "coingecko_id": "" + "type_asset": "cw20" } ], "atlantic-2": [ @@ -553,7 +557,8 @@ "images": { "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" - } + }, + "type_asset": "ics20" }, { "name": "Wrapped Matic", @@ -574,7 +579,8 @@ "images": { "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" - } + }, + "type_asset": "ics20" } ], "sei-devnet-3": [