From 6d5682e43facf6d5b4aa28036bf72480a3003725 Mon Sep 17 00:00:00 2001 From: Adam R <13562139+catenocrypt@users.noreply.github.com> Date: Sun, 4 Jul 2021 07:35:54 +0200 Subject: [PATCH] [Internal] Coin info type should be lowercase 'coin' (#11234) * Coin info type should be lowercase 'coin' * Make coin info types lowercase 'coin' Co-authored-by: Catenocrypt --- blockchains/aeternity/info/info.json | 2 +- blockchains/aion/info/info.json | 2 +- blockchains/algorand/info/info.json | 2 +- blockchains/ark/info/info.json | 2 +- blockchains/aryacoin/info/info.json | 2 +- blockchains/avalanche/info/info.json | 2 +- blockchains/avalanchec/info/info.json | 2 +- blockchains/avalanchex/info/info.json | 2 +- blockchains/band/info/info.json | 2 +- blockchains/binance/info/info.json | 2 +- blockchains/bitcoin/info/info.json | 2 +- blockchains/bitcoincash/info/info.json | 2 +- blockchains/bitcoingold/info/info.json | 2 +- blockchains/bluzelle/info/info.json | 2 +- blockchains/callisto/info/info.json | 2 +- blockchains/cardano/info/info.json | 2 +- blockchains/celo/info/info.json | 2 +- blockchains/classic/info/info.json | 2 +- blockchains/cosmos/info/info.json | 2 +- blockchains/cryptoorg/info/info.json | 2 +- blockchains/dash/info/info.json | 2 +- blockchains/decred/info/info.json | 2 +- blockchains/digibyte/info/info.json | 2 +- blockchains/doge/info/info.json | 2 +- blockchains/ellaism/info/info.json | 2 +- blockchains/elrond/info/info.json | 2 +- blockchains/eos/info/info.json | 2 +- blockchains/ether-1/info/info.json | 2 +- blockchains/ethereum/info/info.json | 2 +- blockchains/filecoin/info/info.json | 2 +- blockchains/fio/info/info.json | 2 +- blockchains/firo/info/info.json | 2 +- blockchains/gochain/info/info.json | 2 +- blockchains/groestlcoin/info/info.json | 2 +- blockchains/harmony/info/info.json | 2 +- blockchains/icon/info/info.json | 2 +- blockchains/iost/info/info.json | 2 +- blockchains/iotex/info/info.json | 2 +- blockchains/kava/info/info.json | 2 +- blockchains/kin/info/info.json | 2 +- blockchains/kusama/info/info.json | 2 +- blockchains/litecoin/info/info.json | 2 +- blockchains/loom/info/info.json | 2 +- blockchains/nano/info/info.json | 2 +- blockchains/near/info/info.json | 2 +- blockchains/nebulas/info/info.json | 2 +- blockchains/neo/info/info.json | 2 +- blockchains/nervos/info/info.json | 2 +- blockchains/nimiq/info/info.json | 2 +- blockchains/nuls/info/info.json | 2 +- blockchains/oasis/info/info.json | 2 +- blockchains/ontology/info/info.json | 2 +- blockchains/poa/info/info.json | 2 +- blockchains/polkadot/info/info.json | 2 +- blockchains/polygon/info/info.json | 2 +- blockchains/qtum/info/info.json | 2 +- blockchains/ravencoin/info/info.json | 2 +- blockchains/ripple/info/info.json | 2 +- blockchains/smartbch/info/info.json | 2 +- blockchains/smartchain/info/info.json | 2 +- blockchains/solana/info/info.json | 2 +- blockchains/steem/info/info.json | 2 +- blockchains/stellar/info/info.json | 2 +- blockchains/terra/info/info.json | 2 +- blockchains/tezos/info/info.json | 2 +- blockchains/theta/info/info.json | 2 +- blockchains/thorchain/info/info.json | 2 +- blockchains/thundertoken/info/info.json | 2 +- blockchains/tomochain/info/info.json | 2 +- blockchains/ton/info/info.json | 2 +- blockchains/tron/info/info.json | 2 +- blockchains/vechain/info/info.json | 2 +- blockchains/viacoin/info/info.json | 2 +- blockchains/wanchain/info/info.json | 2 +- blockchains/waves/info/info.json | 2 +- blockchains/xdai/info/info.json | 2 +- blockchains/xdc/info/info.json | 2 +- blockchains/zcash/info/info.json | 2 +- blockchains/zelcash/info/info.json | 2 +- blockchains/zilliqa/info/info.json | 2 +- script/generic/asset-infos.ts | 46 ++++++++++++++----------- 81 files changed, 106 insertions(+), 100 deletions(-) diff --git a/blockchains/aeternity/info/info.json b/blockchains/aeternity/info/info.json index 194f2eab5..08414cebb 100644 --- a/blockchains/aeternity/info/info.json +++ b/blockchains/aeternity/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://www.aeknow.org/", "research": "https://research.binance.com/en/projects/aeternity", "symbol": "AE", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/aion/info/info.json b/blockchains/aion/info/info.json index 9ee508960..502d89ed5 100644 --- a/blockchains/aion/info/info.json +++ b/blockchains/aion/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://mainnet.aion.network", "research": "https://research.binance.com/en/projects/aion", "symbol": "AION", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/algorand/info/info.json b/blockchains/algorand/info/info.json index 51fcf77a8..c32fe9d2b 100644 --- a/blockchains/algorand/info/info.json +++ b/blockchains/algorand/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://algoexplorer.io/", "research": "https://research.binance.com/en/projects/algorand", "symbol": "ALGO", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "tags": [ diff --git a/blockchains/ark/info/info.json b/blockchains/ark/info/info.json index d9ab4d502..d12b07736 100644 --- a/blockchains/ark/info/info.json +++ b/blockchains/ark/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.ark.io", "research": "https://research.binance.com/en/projects/ark", "symbol": "ARK", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/aryacoin/info/info.json b/blockchains/aryacoin/info/info.json index a4decd592..eaa0dde34 100644 --- a/blockchains/aryacoin/info/info.json +++ b/blockchains/aryacoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer2.aryacoin.io", "research": "", "symbol": "AYA", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/avalanche/info/info.json b/blockchains/avalanche/info/info.json index 9ec10f8c7..c07961d1e 100644 --- a/blockchains/avalanche/info/info.json +++ b/blockchains/avalanche/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.avax.network", "research": "https://research.binance.com/en/projects/avalanche", "symbol": "AVAX", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "active", "tags": [ diff --git a/blockchains/avalanchec/info/info.json b/blockchains/avalanchec/info/info.json index ace48dc95..6590b7370 100644 --- a/blockchains/avalanchec/info/info.json +++ b/blockchains/avalanchec/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.avax.network", "research": "https://research.binance.com/en/projects/avalanche", "symbol": "AVAX", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "active", "tags": [ diff --git a/blockchains/avalanchex/info/info.json b/blockchains/avalanchex/info/info.json index ab61da6a3..be2652e55 100644 --- a/blockchains/avalanchex/info/info.json +++ b/blockchains/avalanchex/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.avax.network", "research": "https://research.binance.com/en/projects/avalanche", "symbol": "AVAX", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "active", "tags": [ diff --git a/blockchains/band/info/info.json b/blockchains/band/info/info.json index 2d8566565..5b713fef7 100644 --- a/blockchains/band/info/info.json +++ b/blockchains/band/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://cosmoscan.io/", "research": "https://research.binance.com/en/projects/band-protocol", "symbol": "BAND", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "links": [ diff --git a/blockchains/binance/info/info.json b/blockchains/binance/info/info.json index 85b499429..b4128f6fb 100644 --- a/blockchains/binance/info/info.json +++ b/blockchains/binance/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.binance.org/", "research": "https://research.binance.com/en/projects/bnb", "symbol": "BNB", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "tags": [ diff --git a/blockchains/bitcoin/info/info.json b/blockchains/bitcoin/info/info.json index a68bf923d..a4e24e8a6 100644 --- a/blockchains/bitcoin/info/info.json +++ b/blockchains/bitcoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockchain.info", "research": "https://research.binance.com/en/projects/bitcoin", "symbol": "BTC", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/bitcoincash/info/info.json b/blockchains/bitcoincash/info/info.json index eba8eba33..d4edcadeb 100644 --- a/blockchains/bitcoincash/info/info.json +++ b/blockchains/bitcoincash/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockchair.com/bitcoin-cash", "research": "https://research.binance.com/en/projects/bitcoin-cash", "symbol": "BCH", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/bitcoingold/info/info.json b/blockchains/bitcoingold/info/info.json index 25bc21e90..8c78f9f99 100644 --- a/blockchains/bitcoingold/info/info.json +++ b/blockchains/bitcoingold/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.bitcoingold.org/insight/", "research": "https://research.binance.com/en/projects/bitcoin-gold", "symbol": "BTG", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/bluzelle/info/info.json b/blockchains/bluzelle/info/info.json index 42877bbae..37a7f81a5 100644 --- a/blockchains/bluzelle/info/info.json +++ b/blockchains/bluzelle/info/info.json @@ -5,7 +5,7 @@ "explorer": "http://bigdipper.net.bluzelle.com/", "research": "https://research.binance.com/en/projects/bluzelle", "symbol": "BLZ", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "links": [ diff --git a/blockchains/callisto/info/info.json b/blockchains/callisto/info/info.json index af6d14da6..d6514355c 100644 --- a/blockchains/callisto/info/info.json +++ b/blockchains/callisto/info/info.json @@ -4,7 +4,7 @@ "description": "Callisto Network is a blockchain platform with its own cryptocurrency (CLO) that is based on Ethereum protocol. Callisto Network is developed by Ethereum Commonwealth.", "explorer": "https://explorer2.callisto.network", "symbol": "CLO", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/cardano/info/info.json b/blockchains/cardano/info/info.json index 1b8f03adc..9b2cd7fe2 100644 --- a/blockchains/cardano/info/info.json +++ b/blockchains/cardano/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://cardanoexplorer.com/", "research": "https://research.binance.com/en/projects/cardano", "symbol": "ADA", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "links": [ diff --git a/blockchains/celo/info/info.json b/blockchains/celo/info/info.json index 438faa0c8..9f5592659 100644 --- a/blockchains/celo/info/info.json +++ b/blockchains/celo/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.celo.org/", "research": "https://docs.celo.org/", "symbol": "CELO", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/classic/info/info.json b/blockchains/classic/info/info.json index 6ac2480bf..95e5784b2 100644 --- a/blockchains/classic/info/info.json +++ b/blockchains/classic/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockscout.com/etc/mainnet/", "research": "https://research.binance.com/en/projects/ethereum-classic", "symbol": "ETC", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/cosmos/info/info.json b/blockchains/cosmos/info/info.json index 26903edc6..887aa472c 100644 --- a/blockchains/cosmos/info/info.json +++ b/blockchains/cosmos/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://www.mintscan.io/", "research": "https://research.binance.com/en/projects/cosmos-network", "symbol": "ATOM", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "tags": [ diff --git a/blockchains/cryptoorg/info/info.json b/blockchains/cryptoorg/info/info.json index c0f867ea9..c75c38bfe 100644 --- a/blockchains/cryptoorg/info/info.json +++ b/blockchains/cryptoorg/info/info.json @@ -4,7 +4,7 @@ "description": "Crypto.org Chain is a blockchain application built using Cosmos SDK and Tendermint, intended as a backbone for some of the existing and future Crypto.org ecosystem.", "explorer": "https://crypto.org/explorer", "symbol": "CRO", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "tags": [ diff --git a/blockchains/dash/info/info.json b/blockchains/dash/info/info.json index 665fed11c..910d0d0f2 100644 --- a/blockchains/dash/info/info.json +++ b/blockchains/dash/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockchair.com/dash", "research": "https://research.binance.com/en/projects/dash", "symbol": "DASH", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/decred/info/info.json b/blockchains/decred/info/info.json index 305aebd20..a4787db6c 100644 --- a/blockchains/decred/info/info.json +++ b/blockchains/decred/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://dcrdata.decred.org", "research": "https://research.binance.com/en/projects/decred", "symbol": "DCR", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/digibyte/info/info.json b/blockchains/digibyte/info/info.json index 13c27ea92..8943bde33 100644 --- a/blockchains/digibyte/info/info.json +++ b/blockchains/digibyte/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://digiexplorer.info/", "research": "https://research.binance.com/en/projects/digibyte", "symbol": "DGB", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/doge/info/info.json b/blockchains/doge/info/info.json index 51d174ebb..cc43aebb0 100644 --- a/blockchains/doge/info/info.json +++ b/blockchains/doge/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockchair.com/dogecoin", "research": "https://research.binance.com/en/projects/dogecoin", "symbol": "DOGE", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/ellaism/info/info.json b/blockchains/ellaism/info/info.json index 27e01d60b..0fc2a0e90 100644 --- a/blockchains/ellaism/info/info.json +++ b/blockchains/ellaism/info/info.json @@ -4,7 +4,7 @@ "description": "A stable Ethereum-like network with no premine and no dev fees. Monetary policy is enabled with a total supply of 280 million ELLA.", "explorer": "https://limax-explorer.outdoordevs.com/home", "symbol": "ELLA", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/elrond/info/info.json b/blockchains/elrond/info/info.json index d891abeee..c72e41d89 100644 --- a/blockchains/elrond/info/info.json +++ b/blockchains/elrond/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.elrond.com", "research": "https://research.binance.com/en/projects/elrond", "symbol": "eGLD", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active" } \ No newline at end of file diff --git a/blockchains/eos/info/info.json b/blockchains/eos/info/info.json index 477209e8f..714a27ddf 100644 --- a/blockchains/eos/info/info.json +++ b/blockchains/eos/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://bloks.io/", "research": "https://research.binance.com/en/projects/eos", "symbol": "EOS", - "type": "COIN", + "type": "coin", "decimals": 4, "status": "active", "links": [ diff --git a/blockchains/ether-1/info/info.json b/blockchains/ether-1/info/info.json index 362930696..7febc4675 100644 --- a/blockchains/ether-1/info/info.json +++ b/blockchains/ether-1/info/info.json @@ -4,7 +4,7 @@ "description": "The Ether-1 Project aims to disrupt how information is shared and controlled on the internet by providing a new solution for how files are fundamentally stored and accessed.", "explorer": "https://explorer.ether1.org/", "symbol": "ETHO", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "abandoned", "links": [ diff --git a/blockchains/ethereum/info/info.json b/blockchains/ethereum/info/info.json index 36a1ea469..1c18235d8 100644 --- a/blockchains/ethereum/info/info.json +++ b/blockchains/ethereum/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://etherscan.io/", "research": "https://research.binance.com/en/projects/ethereum", "symbol": "ETH", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/filecoin/info/info.json b/blockchains/filecoin/info/info.json index f524e3f3c..ef71db595 100644 --- a/blockchains/filecoin/info/info.json +++ b/blockchains/filecoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://filfox.info/", "research": "https://research.binance.com/en/projects/filecoin", "symbol": "FIL", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active" } \ No newline at end of file diff --git a/blockchains/fio/info/info.json b/blockchains/fio/info/info.json index 3e17494c7..4e52dc750 100644 --- a/blockchains/fio/info/info.json +++ b/blockchains/fio/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://fio.bloks.io", "research": "https://research.binance.com/en/projects/fio-protocol", "symbol": "FIO", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "active" } \ No newline at end of file diff --git a/blockchains/firo/info/info.json b/blockchains/firo/info/info.json index 831db5808..0ceb70c84 100644 --- a/blockchains/firo/info/info.json +++ b/blockchains/firo/info/info.json @@ -5,7 +5,7 @@ "explorer": "http://explorer.firo.org", "research": "https://research.binance.com/en/projects/firo", "symbol": "FIRO", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/gochain/info/info.json b/blockchains/gochain/info/info.json index 2c4a6340c..161a58cff 100644 --- a/blockchains/gochain/info/info.json +++ b/blockchains/gochain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.gochain.io/home", "research": "https://research.binance.com/en/projects/gochain", "symbol": "GO", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/groestlcoin/info/info.json b/blockchains/groestlcoin/info/info.json index 31a88beb8..7d82f6631 100644 --- a/blockchains/groestlcoin/info/info.json +++ b/blockchains/groestlcoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://grs.tokenview.com/", "research": "https://research.binance.com/en/projects/groestlcoin", "symbol": "GRS", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/harmony/info/info.json b/blockchains/harmony/info/info.json index 0bd96db27..4dce937d1 100644 --- a/blockchains/harmony/info/info.json +++ b/blockchains/harmony/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.harmony.one/", "research": "https://research.binance.com/en/projects/harmony", "symbol": "ONE", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/icon/info/info.json b/blockchains/icon/info/info.json index 1ac92ceb7..cab05a9de 100644 --- a/blockchains/icon/info/info.json +++ b/blockchains/icon/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://tracker.icon.foundation/", "research": "https://research.binance.com/en/projects/icon", "symbol": "ICX", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/iost/info/info.json b/blockchains/iost/info/info.json index 25592beb7..7a09bd8d2 100644 --- a/blockchains/iost/info/info.json +++ b/blockchains/iost/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://www.iostabc.com/", "research": "https://research.binance.com/en/projects/iost", "symbol": "IOST", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/iotex/info/info.json b/blockchains/iotex/info/info.json index f3ddddb33..9462014f5 100644 --- a/blockchains/iotex/info/info.json +++ b/blockchains/iotex/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://iotexscan.io/", "research": "https://research.binance.com/en/projects/iotx", "symbol": "IOTX", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/kava/info/info.json b/blockchains/kava/info/info.json index 625961426..94be2c3d5 100644 --- a/blockchains/kava/info/info.json +++ b/blockchains/kava/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://kava.mintscan.io/", "research": "https://research.binance.com/en/projects/kava", "symbol": "KAVA", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "tags": [ diff --git a/blockchains/kin/info/info.json b/blockchains/kin/info/info.json index 6d97261fb..8b68a1051 100644 --- a/blockchains/kin/info/info.json +++ b/blockchains/kin/info/info.json @@ -4,7 +4,7 @@ "description": "Kin is a cryptocurrency designed to bring people together in a new shared economy.", "explorer": "https://www.kin.org/blockchainExplorer", "symbol": "KIN", - "type": "COIN", + "type": "coin", "decimals": 5, "status": "active", "links": [ diff --git a/blockchains/kusama/info/info.json b/blockchains/kusama/info/info.json index 8f7f8766f..e3f084473 100644 --- a/blockchains/kusama/info/info.json +++ b/blockchains/kusama/info/info.json @@ -4,7 +4,7 @@ "description": "Kusama is described as a canary-net: It is an early, highly experimental version of Polkadot presenting real economic conditions.", "explorer": "https://polkascan.io/pre/kusama-cc3", "symbol": "KSM", - "type": "COIN", + "type": "coin", "decimals": 12, "status": "active", "links": [ diff --git a/blockchains/litecoin/info/info.json b/blockchains/litecoin/info/info.json index 66ce28645..03eb5ddbc 100644 --- a/blockchains/litecoin/info/info.json +++ b/blockchains/litecoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockchair.com/litecoin", "research": "https://research.binance.com/en/projects/litecoin", "symbol": "LTC", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/loom/info/info.json b/blockchains/loom/info/info.json index 0a1749b06..1f7a7de01 100644 --- a/blockchains/loom/info/info.json +++ b/blockchains/loom/info/info.json @@ -4,7 +4,7 @@ "description": "The next-generation blockchain platform for large-scale online games and social apps.", "explorer": "https://etherscan.io/token/0xa4e8c3ec456107ea67d3075bf9e3df3a75823db0", "symbol": "LOOM", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/nano/info/info.json b/blockchains/nano/info/info.json index 88689fc7e..7a1b2510f 100644 --- a/blockchains/nano/info/info.json +++ b/blockchains/nano/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://nanocrawler.cc", "research": "https://research.binance.com/en/projects/nano", "symbol": "NANO", - "type": "COIN", + "type": "coin", "decimals": 30, "status": "active", "links": [ diff --git a/blockchains/near/info/info.json b/blockchains/near/info/info.json index 6ded0eb97..c11741e51 100644 --- a/blockchains/near/info/info.json +++ b/blockchains/near/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.near.org/", "research": "https://research.binance.com/en/projects/near-protocol", "symbol": "NEAR", - "type": "COIN", + "type": "coin", "decimals": 24, "status": "active", "links": [ diff --git a/blockchains/nebulas/info/info.json b/blockchains/nebulas/info/info.json index c465f5f66..65a1be07d 100644 --- a/blockchains/nebulas/info/info.json +++ b/blockchains/nebulas/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.nebulas.io", "research": "https://research.binance.com/en/projects/nebulas", "symbol": "NAS", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/neo/info/info.json b/blockchains/neo/info/info.json index c6a19b85f..7102cc528 100644 --- a/blockchains/neo/info/info.json +++ b/blockchains/neo/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://neoscan.io", "research": "https://research.binance.com/en/projects/neo", "symbol": "NEO", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/nervos/info/info.json b/blockchains/nervos/info/info.json index 6b7696557..b0b714761 100644 --- a/blockchains/nervos/info/info.json +++ b/blockchains/nervos/info/info.json @@ -4,7 +4,7 @@ "description": "Nervos CKB (Common Knowledge Byte) is the native token of the Nervos Common Knowledge Base, a multi-asset, store of value, proof of work public blockchain.", "explorer": "https://explorer.nervos.org", "symbol": "CKB", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/nimiq/info/info.json b/blockchains/nimiq/info/info.json index 9d4be30be..172682903 100644 --- a/blockchains/nimiq/info/info.json +++ b/blockchains/nimiq/info/info.json @@ -4,7 +4,7 @@ "description": "Nimiq is the blockchain designed for simplicity. Nimiq aims to be the best performing and easiest-to-use decentralized payment protocol & ecosystem.", "explorer": "https://nimiq.watch", "symbol": "NIM", - "type": "COIN", + "type": "coin", "decimals": 5, "status": "active", "links": [ diff --git a/blockchains/nuls/info/info.json b/blockchains/nuls/info/info.json index b30f79487..04c6a9541 100644 --- a/blockchains/nuls/info/info.json +++ b/blockchains/nuls/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://nulscan.io", "research": "https://research.binance.com/en/projects/nuls", "symbol": "NULS", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/oasis/info/info.json b/blockchains/oasis/info/info.json index 6038b8233..7007140ee 100644 --- a/blockchains/oasis/info/info.json +++ b/blockchains/oasis/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://www.oasisscan.com/", "research": "https://research.binance.com/en/projects/oasis-network", "symbol": "ROSE", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/ontology/info/info.json b/blockchains/ontology/info/info.json index 425f31239..1881b9948 100644 --- a/blockchains/ontology/info/info.json +++ b/blockchains/ontology/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.ont.io", "research": "https://research.binance.com/en/projects/ontology", "symbol": "ONT", - "type": "COIN", + "type": "coin", "decimals": 0, "status": "active", "links": [ diff --git a/blockchains/poa/info/info.json b/blockchains/poa/info/info.json index 031df1936..8eff1ab63 100644 --- a/blockchains/poa/info/info.json +++ b/blockchains/poa/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockscout.com/poa/core", "research": "https://research.binance.com/en/projects/poa-network", "symbol": "POA", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/polkadot/info/info.json b/blockchains/polkadot/info/info.json index 5d206c504..5c261f58c 100644 --- a/blockchains/polkadot/info/info.json +++ b/blockchains/polkadot/info/info.json @@ -5,7 +5,7 @@ "explorer": "http://polkascan.io", "research": "https://research.binance.com/en/projects/polkadot", "symbol": "DOT", - "type": "COIN", + "type": "coin", "decimals": 10, "status": "active", "links": [ diff --git a/blockchains/polygon/info/info.json b/blockchains/polygon/info/info.json index 86679d727..af253815b 100644 --- a/blockchains/polygon/info/info.json +++ b/blockchains/polygon/info/info.json @@ -5,7 +5,7 @@ "description": "Polygon (Matic) strives to solve the scalability and usability issues, while not compromising on decentralization and leveraging the existing developer community and ecosystem", "explorer": "https://explorer.matic.network/", "research": "https://docs.matic.network/", - "type": "COIN", + "type": "coin", "symbol": "MATIC", "decimals": 18, "status": "active", diff --git a/blockchains/qtum/info/info.json b/blockchains/qtum/info/info.json index 3f0033acd..1c9b97537 100644 --- a/blockchains/qtum/info/info.json +++ b/blockchains/qtum/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://qtum.info", "research": "https://research.binance.com/en/projects/qtum", "symbol": "QTUM", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/ravencoin/info/info.json b/blockchains/ravencoin/info/info.json index a2ddd2826..b46367a8a 100644 --- a/blockchains/ravencoin/info/info.json +++ b/blockchains/ravencoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://ravencoin.network", "research": "https://research.binance.com/en/projects/ravencoin", "symbol": "RVN", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/ripple/info/info.json b/blockchains/ripple/info/info.json index 691bf79b0..24f3468e2 100644 --- a/blockchains/ripple/info/info.json +++ b/blockchains/ripple/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://xrpcharts.ripple.com/#/graph/", "research": "https://research.binance.com/en/projects/xrp", "symbol": "XRP", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "links": [ diff --git a/blockchains/smartbch/info/info.json b/blockchains/smartbch/info/info.json index b05a7d74a..be87d0389 100644 --- a/blockchains/smartbch/info/info.json +++ b/blockchains/smartbch/info/info.json @@ -6,7 +6,7 @@ "explorer": "http://smartscan.cash/", "research": "https://docs.smartbch.org/smartbch/", "symbol": "BCH", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/smartchain/info/info.json b/blockchains/smartchain/info/info.json index 2a4eab3bf..19dea4a00 100644 --- a/blockchains/smartchain/info/info.json +++ b/blockchains/smartchain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://bscscan.com/", "research": "https://research.binance.com/en/projects/bnb", "symbol": "BNB", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active" } \ No newline at end of file diff --git a/blockchains/solana/info/info.json b/blockchains/solana/info/info.json index fe5754a04..7de24d6be 100644 --- a/blockchains/solana/info/info.json +++ b/blockchains/solana/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.solana.com/", "research": "https://research.binance.com/en/projects/solana", "symbol": "SOL", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "active", "links": [ diff --git a/blockchains/steem/info/info.json b/blockchains/steem/info/info.json index 05af4a82e..c0d47e656 100644 --- a/blockchains/steem/info/info.json +++ b/blockchains/steem/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://steemd.com/", "research": "https://research.binance.com/en/projects/steem", "symbol": "STEEM", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "abandoned", "links": [ diff --git a/blockchains/stellar/info/info.json b/blockchains/stellar/info/info.json index b6872c5b3..4b2ede109 100644 --- a/blockchains/stellar/info/info.json +++ b/blockchains/stellar/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://dashboard.stellar.org/", "research": "https://research.binance.com/en/projects/stellar-lumens", "symbol": "XLM", - "type": "COIN", + "type": "coin", "decimals": 7, "status": "active", "links": [ diff --git a/blockchains/terra/info/info.json b/blockchains/terra/info/info.json index 95bf16ca3..1d64bfe25 100644 --- a/blockchains/terra/info/info.json +++ b/blockchains/terra/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://finder.terra.money", "research": "https://research.binance.com/en/projects/terra", "symbol": "LUNA", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "links": [ diff --git a/blockchains/tezos/info/info.json b/blockchains/tezos/info/info.json index 36db2b146..749f9a2e7 100644 --- a/blockchains/tezos/info/info.json +++ b/blockchains/tezos/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://tezos.id", "research": "https://research.binance.com/en/projects/tezos", "symbol": "XTZ", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "tags": [ diff --git a/blockchains/theta/info/info.json b/blockchains/theta/info/info.json index 40ed7f28f..4f48d24fa 100644 --- a/blockchains/theta/info/info.json +++ b/blockchains/theta/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.thetatoken.org", "research": "https://research.binance.com/en/projects/theta-network", "symbol": "THETA", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/thorchain/info/info.json b/blockchains/thorchain/info/info.json index f10cbc65b..fe1b37a51 100644 --- a/blockchains/thorchain/info/info.json +++ b/blockchains/thorchain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://viewblock.io/thorchain", "research": "https://docs.thorchain.org", "symbol": "RUNE", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active" } \ No newline at end of file diff --git a/blockchains/thundertoken/info/info.json b/blockchains/thundertoken/info/info.json index cb5286096..2e55bf648 100644 --- a/blockchains/thundertoken/info/info.json +++ b/blockchains/thundertoken/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://scan.thundercore.com", "research": "https://research.binance.com/en/projects/thundercore", "symbol": "TT", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/tomochain/info/info.json b/blockchains/tomochain/info/info.json index 53b370759..c6c89ac22 100644 --- a/blockchains/tomochain/info/info.json +++ b/blockchains/tomochain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://scan.tomochain.com", "research": "https://research.binance.com/en/projects/tomochain", "symbol": "TOMO", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/ton/info/info.json b/blockchains/ton/info/info.json index dd1cb1e0b..b08d33625 100644 --- a/blockchains/ton/info/info.json +++ b/blockchains/ton/info/info.json @@ -4,7 +4,7 @@ "description": "The Telegram Open Network (TON) describes itself as a fast, secure and scalable blockchain and network project, reportedly capable of handling millions of transactions per second.", "explorer": "https://test.ton.org/testnet/", "symbol": "GRAM", - "type": "COIN", + "type": "coin", "decimals": 9, "status": "abandoned", "links": [ diff --git a/blockchains/tron/info/info.json b/blockchains/tron/info/info.json index 082e9d94e..596f852dd 100644 --- a/blockchains/tron/info/info.json +++ b/blockchains/tron/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://tronscan.io/#/", "research": "https://research.binance.com/en/projects/tron", "symbol": "TRX", - "type": "COIN", + "type": "coin", "decimals": 6, "status": "active", "tags": [ diff --git a/blockchains/vechain/info/info.json b/blockchains/vechain/info/info.json index e15770d77..cdc3ebb36 100644 --- a/blockchains/vechain/info/info.json +++ b/blockchains/vechain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://insight.vecha.in", "research": "https://research.binance.com/en/projects/vechain", "symbol": "VET", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/viacoin/info/info.json b/blockchains/viacoin/info/info.json index 02e39ef88..8aedd189c 100644 --- a/blockchains/viacoin/info/info.json +++ b/blockchains/viacoin/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://chainz.cryptoid.info/via", "research": "https://research.binance.com/en/projects/viacoin", "symbol": "VIA", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/wanchain/info/info.json b/blockchains/wanchain/info/info.json index 1105bc186..b1e73ccfa 100644 --- a/blockchains/wanchain/info/info.json +++ b/blockchains/wanchain/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://www.wanscan.org", "research": "https://research.binance.com/en/projects/wanchain", "symbol": "WAN", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "active", "links": [ diff --git a/blockchains/waves/info/info.json b/blockchains/waves/info/info.json index 484cee97d..951f58c62 100644 --- a/blockchains/waves/info/info.json +++ b/blockchains/waves/info/info.json @@ -5,7 +5,7 @@ "explorer": "http://wavesexplorer.com", "research": "https://research.binance.com/en/projects/waves", "symbol": "WAVES", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/xdai/info/info.json b/blockchains/xdai/info/info.json index 88d8c95b4..9c7674835 100644 --- a/blockchains/xdai/info/info.json +++ b/blockchains/xdai/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://blockscout.com/poa/xdai", "research": "https://research.binance.com/en/projects/poa-network", "symbol": "xDAI", - "type": "COIN", + "type": "coin", "decimals": 18, "status": "abandoned", "links": [ diff --git a/blockchains/xdc/info/info.json b/blockchains/xdc/info/info.json index 92a3b881f..5bb31900b 100644 --- a/blockchains/xdc/info/info.json +++ b/blockchains/xdc/info/info.json @@ -4,7 +4,7 @@ "description": "XinFin Network is a Enterprise Ready Hybrid Blockchain For Global Trade and Finance,Combining the power of Public & Private blockchains with Interoperable Smart Contracts ", "explorer": "https://explorer.xinfin.network/", "symbol": "XDC", - "type": "COIN", + "type": "coin", "decimals": 10, "status": "abandoned", "links": [ diff --git a/blockchains/zcash/info/info.json b/blockchains/zcash/info/info.json index 8d537c084..21e7a6278 100644 --- a/blockchains/zcash/info/info.json +++ b/blockchains/zcash/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://explorer.zcha.in", "research": "https://research.binance.com/en/projects/zcash", "symbol": "ZEC", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/zelcash/info/info.json b/blockchains/zelcash/info/info.json index 5666e6e12..5a9045bbd 100644 --- a/blockchains/zelcash/info/info.json +++ b/blockchains/zelcash/info/info.json @@ -4,7 +4,7 @@ "description": "Flux is the cryptocurrency that powers the Flux Ecosystem. The Flux Network comprises Proof-of-Work miners and FluxNode Operators, who are rewarded in Flux for validating transactions and providing computational resources.", "explorer": "https://explorer.runonflux.io", "symbol": "FLUX", - "type": "COIN", + "type": "coin", "decimals": 8, "status": "active", "links": [ diff --git a/blockchains/zilliqa/info/info.json b/blockchains/zilliqa/info/info.json index 815f0769f..b3037d95a 100644 --- a/blockchains/zilliqa/info/info.json +++ b/blockchains/zilliqa/info/info.json @@ -5,7 +5,7 @@ "explorer": "https://viewblock.io/zilliqa", "research": "https://research.binance.com/en/projects/zilliqa", "symbol": "ZIL", - "type": "COIN", + "type": "coin", "decimals": 12, "status": "active", "links": [ diff --git a/script/generic/asset-infos.ts b/script/generic/asset-infos.ts index 20f041dfb..e7a8c3d11 100644 --- a/script/generic/asset-infos.ts +++ b/script/generic/asset-infos.ts @@ -71,37 +71,43 @@ function isAssetInfoValid(info: unknown, path: string, address: string, chain: s } // type - if (isCoin) { - if (info['type'] !== 'COIN' ) { - return [`Incorrect value for type '${info['type']}', should be 'COIN' ${path}`, "", fixedInfo]; - } - } else { + if (!isCoin) { // token if (chainFromAssetType(info['type'].toUpperCase()) !== chain ) { - return [`Incorrect value for type '${info['type']}' '${chain}' ${path}`, "", fixedInfo]; + return [`Incorrect value for type '${info['type']}' '${chain}' ${path}`, "", fixedInfo]; + } + if (info['type'] !== info['type'].toUpperCase()) { + // type is correct value, but casing is wrong, fix + if (checkOnly) { + return [`Type should be ALLCAPS '${info['type'].toUpperCase()}' instead of '${info['type']}' '${chain}' ${path}`, "", fixedInfo]; + } + // fix + if (!fixedInfo) { fixedInfo = info; } + fixedInfo['type'] = info['type'].toUpperCase(); + } + } else { // coin + const expectedType = 'coin'; + if (info['type'] !== expectedType) { + if (checkOnly) { + return [`Incorrect value for type '${info['type']}', expected '${expectedType}' '${chain}' ${path}`, "", fixedInfo]; + } + // fix + if (!fixedInfo) { fixedInfo = info; } + fixedInfo['type'] = expectedType; } } - if (info['type'] !== info['type'].toUpperCase()) { - // type is correct value, but casing is wrong, fix - if (checkOnly) { - return [`Type should be ALLCAPS '${info['type'].toUpperCase()}' instead of '${info['type']}' '${chain}' ${path}`, "", fixedInfo]; - } - // fix - if (!fixedInfo) { fixedInfo = info; } - fixedInfo['type'] = info['type'].toUpperCase(); - } - + if (!isCoin) { // id, should match address if (info['id'] != address) { - if (checkOnly) { + if (checkOnly) { if (info['id'].toUpperCase() != address.toUpperCase()) { return [`Incorrect value for id '${info['id']}' '${chain}' ${path}`, "", fixedInfo]; } // is is correct value, but casing is wrong return [`Wrong casing for id '${info['id']}' '${chain}' ${path}`, "", fixedInfo]; - } - // fix - if (!fixedInfo) { fixedInfo = info; } + } + // fix + if (!fixedInfo) { fixedInfo = info; } fixedInfo['id'] = address; } }