[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 <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-07-04 07:35:54 +02:00 committed by GitHub
parent 3ba7b32db4
commit 6d5682e43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
81 changed files with 106 additions and 100 deletions

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -5,7 +5,7 @@
"explorer": "https://explorer2.aryacoin.io",
"research": "",
"symbol": "AYA",
"type": "COIN",
"type": "coin",
"decimals": 8,
"status": "abandoned",
"links": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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"
}

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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",

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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"
}

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -5,7 +5,7 @@
"explorer": "https://viewblock.io/thorchain",
"research": "https://docs.thorchain.org",
"symbol": "RUNE",
"type": "COIN",
"type": "coin",
"decimals": 8,
"status": "active"
}

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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": [

View File

@ -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;
}
}