From 401c38a783b2c0daf3c2cce693633085ac5612fd Mon Sep 17 00:00:00 2001 From: tate Date: Mon, 5 Feb 2024 09:09:15 +1100 Subject: [PATCH] supported-cryptocurrencies generation script --- README.md | 4 + bun.lockb | Bin 6851 -> 7212 bytes docs/supported-cryptocurrencies.md | 293 ++++++++++++++++------------- package.json | 1 + scripts/formatSupportedCoins.ts | 95 ++++++++++ src/coin/btc.bench.ts | 38 ---- src/consts/coinTypeToNameMap.ts | 4 +- 7 files changed, 268 insertions(+), 167 deletions(-) create mode 100644 scripts/formatSupportedCoins.ts delete mode 100644 src/coin/btc.bench.ts diff --git a/README.md b/README.md index a6621d59..2faa7905 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,10 @@ const decodedAddress = decodeBtcAddress("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"); const encodedAddress = encodeBtcAddress(decodedAddress); ``` +### EVM Chains + +There are a variety of EVM chains supported, however none of them (except for ETH) are exported from `coins` or `coders`. If you want to individually import for an EVM chain, you can just use the `eth` import as a replacement. + ## Contribution Guide To add a coin to this library, or if you're interested in contributing in any other way, read the [contribution guide](https://github.com/ensdomains/address-encoder/blob/master/docs/contribution-guide.md) before submitting a PR. diff --git a/bun.lockb b/bun.lockb index d3a18ba590cbedb7e72fdb21911f394b121f86c6..f9b94e977d20bda430bdac74514d956bc3f9d559 100755 GIT binary patch delta 1311 zcmc&!TTE0}6g~USjLf~m44oG^jE~eNVIp;(BT`btIrT#DXP>nn z=bpXKy%|1TJgly8THX*x7L!*@s^OiOxR&c@hyb1hc;rgU;|1n_yBDPkZWD=e&pRx7Y;neJU9uRI13s~ zqEFJ`3C3t%j-!$$H-iur7_J_!dV^8l1pcnjfRj ztVv5uSZ}U?0UR}Ja0O>+evLkhCI!q`Z>fMCIBHo93eH)w1}O<2P?t|3eTQ%uc8qic z@r9u?GVeBYMvhAtpbI10XVTz(7P@U7_{QS=OlL@DBvXe;{Jr1?R8Ezxc~R6|{VF&( zv3vT@mhSy)rv5pitQ~pVBkp>hZA#vnC~g;3Q{_F67Kx!lld*W+qi>|vr_c8cENv}c zcc&5OtPAmsH3Dh)uQiG%Wji*?5s>ke9L0@_9qmd4Y#39bXtmk#8fkWvZBe{LT8AwH z8F-nrt?71LoE`yZBA)&$;1A$QlsTNH@6tlbu+h#FE{rc?iZCt!H%){GMUTBlohL7UzM^U7m0)LV4b^|i_gxy=A1@n ziy0$WAQO+f0^AOG+jTID+=k}c-O5d%i-r-m&tFYzeuZbQZJFCsH8v^1=8&4N<_S@U zgKl5AnRxd9tu$xl-sy@Foe!yD;tkKD8`l^8k@nv{2|{Xtnoqm6c+Xt`4G11zYWB~+ z(c+q4Ugv+G-EW4?g=$DG5+a5VJif60Rw>JmcSi=swmpnXkVA1;=3leiRd(yI^+&H# z{;--~q!y+;{cYydqdpZFtNHo)#SrJZXAa zKW4;_&urD+p6{)__;W73(!ajdbDH-KE`6GimPg;8OJ!=(QC1Y+cy4#yDW6U3y@Ii8 z9r&ptT8J8Ai-Q?NWqej|^$U!7P;q6julI8PYL^>1U8q3=8F8Oz>vcrpUPRKPb4CHG zLFRRk<&XI#*ybjmfVg1tO~~V31=F~9KwPBrylBdAIb+RuONFG^DA!=DEHVLp2#vfG z;*!blKwdJ1O#x=47M_4@JQ{$w%j8p#cbURR5oTO1{2*+*j*MVFlv7duMhwCf=loxY zPoQEHg%H!Aw-kkt^nRNbk^BW5PDu74#zq(^Nd8YEZYPsMv-=%~F4=+(S%XE{;%<<^e7gW;Tf`dWYwz0RmiJ3=vFm&gG_^nCkK@t4Te1yuYfgVs~)XzNL%5BvI?K5 zj5$5^zz2zN5W4;G=+19j=;>Zu8;*(B4|D#u7?mjKs7OP<09%IIjAfm=-X+tRi>j@{ z$-v&jWJF~wa~AP(T=akFB7IXVLRzbiBPj$A12NbL+<^XISTFVW?Ba#5!zU)E1m2l6 zQbvL?3+@La*o+Ioh+dk8h8Ig!AKbr21)en0Mhe}!;d?O6{ctQ4v3I>R5KZl`zoqU) zha}#aF_K0DrUL_LrNhloL@$kr+;{ZVm$MTK7`NU?H5eJ&O0SmeahZ-ywy%AD`bgmW zF&c^OrMN3+u&YSMLRjl8wi)z?6Hza=8I9=mruub0RKBz9SRIJM^YHn?o?WfHFj;v^ F`~y!XvV{Nu diff --git a/docs/supported-cryptocurrencies.md b/docs/supported-cryptocurrencies.md index 364829e8..911183aa 100644 --- a/docs/supported-cryptocurrencies.md +++ b/docs/supported-cryptocurrencies.md @@ -1,130 +1,169 @@ ## Supported Cryptocurrencies -This library currently supports the following cryptocurrencies and address formats (ordered alphabetically): +### EVM Chains -| Name | Encoding Type | -| -------- | ------------------------------------------------------------------ | -| ABBC | base58 + ripemd160-checksum | -| ADA | base58, no check + crc32-checksum and bech32 | -| AE | base58check | -| AIB | base58check P2PKH and P2SH | -| AION | hex | -| ALGO | checksummed-base32 | -| AR | base64url | -| ARB1 | checksummed-hex | -| ARDR | custom | -| ARK | base58check | -| ATOM | bech32 | -| AVAX | bech32 | -| AVAXC | checksummed-hex | -| BCD | base58check P2PKH and P2SH, and bech32 segwit | -| BCH | base58check and cashAddr; decodes to cashAddr | -| BCN | base58xmr | -| BDX | base58xmr | -| BNB | bech32 | -| BPS | base58check P2PKH and P2SH | -| BSC | checksummed-hex | -| BSV | base58check | -| BTC | base58check P2PKH and P2SH, and bech32 segwit | -| BTG | base58check P2PKH and P2SH, and bech32 segwit | -| BTM | bech32 segwit | -| BTS | base58 + ripemd160-checksum | -| CCA | base58check P2PKH and P2SH | -| CCXX | base58check P2PKH and P2SH, and bech32 segwit | -| CELO | checksummed-hex | -| CKB | bech32 | -| CLO | checksummed-hex | -| CRO | checksummed-hex | -| DASH | base58check P2PKH and P2SH | -| DCR | base58, no check | -| DGB | base58check P2PKH and P2SH, and bech32 segwit | -| DIVI | base58check P2PKH and P2SH | -| DOGE | base58check P2PKH and P2SH | -| DOT | ss58 | -| EGLD | bech32 | -| ELA | base58 | -| EOS | base58 + ripemd160-checksum | -| ETC | checksummed-hex | -| ETH | checksummed-hex | -| ETN | base58xmr | -| EWT | checksummed-hex | -| FIL | base10 + leb128 and base32 + blake2b checksum | -| FIO | base58 + ripemd160-checksum | -| FIRO | base58check P2PKH and P2SH | -| FLOW | hex | -| FTM | checksummed-hex | -| GNO | checksummed-hex | -| GO | checksummed-hex | -| GRIN | base58check | -| GXC | base58 + ripemd160-checksum | -| HBAR | custom | -| HIVE | base58 + ripemd160-checksum | -| HNS | custom | -| HNT | base58check | -| ICX | custom | -| IOST | base58, no check | -| IOTA | iotaBech32 | -| IOTX | bech32 | -| IRIS | bech32 | -| KAVA | bech32 | -| KMD | base58check | -| KSM | ss58 | -| LCC | base58check P2PKH and P2SH, and bech32 segwit | -| LRG | base58check P2PKH and P2SH | -| LSK | hex with suffix | -| LTC | base58check P2PHK and P2SH, and bech32 segwit | -| LUNA | bech32 | -| MATIC | checksummed-hex | -| MONA | base58check P2PKH and P2SH, and bech32 segwit | -| MRX | base58check | -| NANO | nano-base32 | -| NAS | base58 + sha3-256-checksum | -| NEAR | custom | -| NEM(XEM) | base32 | -| NEO | base58check | -| NMC | base58check | -| NRG | checksummed-hex | -| NULS | base58 | -| ONE | bech32 | -| ONT | base58check | -| OP | checksummed-hex | -| POA | checksummed-hex | -| PPC | base58check P2PKH and P2SH | -| QTUM | base58check | -| RDD | base58check P2PKH and P2SH | -| RSK | checksummed-hex | -| RUNE | bech32 | -| RVN | base58check P2PKH and P2SH | -| SC | blake2b checksum | -| SERO | base58, no check | -| SOL | base58, no check | -| SRM | base58, no check | -| STEEM | base58 + ripemd160-checksum | -| STRAT | base58check P2PKH and P2SH | -| STRK | keccak256-checksumed-hex | -| STX | crockford base32 P2PKH and P2SH + ripemd160-checksum | -| SYS | base58check P2PKH and P2SH, and bech32 segwit | -| TFUEL | checksummed-hex | -| THETA | base58check | -| TOMO | checksummed-hex | -| TRX | base58check | -| TT | checksummed-hex | -| VET | checksummed-hex | -| VIA | base58check P2PKH and P2SH | -| VLX | base58, no check | -| VSYS | custom | -| WAN | checksummed-hex | -| WAVES | base58 | -| WICC | base58check P2PKH and P2SH | -| XCH | bech32m | -| XHV | base58xmr | -| XLM | ed25519 public key | -| XMR | base58xmr | -| XRP | base58check-ripple | -| Nostr | bech32 | -| XTZ | base58check | -| XVG | base58check P2PKH and P2SH | -| ZEC | base58check P2PKH and P2SH, bech32 (Sprout shielded not supported) | -| ZEL | base58check P2PKH and P2SH, bech32 (Sprout shielded not supported) | -| ZEN | base58check | -| ZIL | bech32 | +The following EVM chains are supported: + +| Chain ID | Name | Full Name | Coin Type | +| -------- | ------ | ----------------- | ---------- | +| 10 | op | Optimism | 2147483658 | +| 25 | cro | Cronos | 2147483673 | +| 56 | bsc | BNB Smart Chain | 2147483704 | +| 60 | go | GoChain | 2147483708 | +| 61 | etc | Ethereum Classic | 2147483709 | +| 88 | tomo | TomoChain | 2147483736 | +| 99 | poa | POA | 2147483747 | +| 100 | gno | Gnosis | 2147483748 | +| 108 | tt | ThunderCore | 2147483756 | +| 137 | matic | Polygon | 2147483785 | +| 169 | manta | Manta Pacific | 2147483817 | +| 246 | ewt | Energy Web | 2147483894 | +| 250 | ftm | Fantom Opera | 2147483898 | +| 288 | boba | Boba | 2147483936 | +| 324 | zksync | zkSync | 2147483972 | +| 361 | theta | Theta | 2147484009 | +| 820 | clo | Callisto | 2147484468 | +| 1088 | metis | Metis | 2147484736 | +| 5000 | mantle | Mantle | 2147488648 | +| 8453 | base | Base | 2147492101 | +| 39797 | nrg | Energi | 2147523445 | +| 42161 | arb1 | Arbitrum One | 2147525809 | +| 42220 | celo | Celo | 2147525868 | +| 43114 | avaxc | Avalanche C-Chain | 2147526762 | +| 59144 | linea | Linea | 2147542792 | +| 534352 | scr | Scroll | 2148018000 | +| 7777777 | zora | Zora | 2155261425 | + +### Legacy Coins + +The following legacy coins are supported: + +| Coin Type | Name | Full Name | Replacement Name | Replacement Coin Type | +| --------- | ----------- | ---------------- | ---------------- | --------------------- | +| 61 | etcLegacy | Ethereum Classic | etc | 2147483709 | +| 178 | poaLegacy | POA | poa | 2147483747 | +| 246 | ewtLegacy | Energy Web | ewt | 2147483894 | +| 500 | thetaLegacy | Theta | theta | 2147484009 | +| 574 | vlxLegacy | Velas | vlx | 5655640 | +| 700 | gnoLegacy | Gnosis | gno | 2147483748 | +| 820 | cloLegacy | Callisto | clo | 2147484468 | +| 889 | tomoLegacy | TomoChain | tomo | 2147483736 | +| 1001 | ttLegacy | ThunderCore | tt | 2147483756 | +| 1007 | ftmLegacy | Fantom | ftm | 2147483898 | +| 6060 | goLegacy | GoChain | go | 2147483708 | +| 9797 | nrgLegacy | Energi | nrg | 2147523445 | +| 52752 | celoLegacy | Celo | celo | 2147525868 | + +### Coins + +The following coins are supported: + +| Coin Type | Name | Full Name | Encoding Type | +| --------- | ----- | ------------------- | ------------------------------------------------------------------ | +| 0 | btc | Bitcoin | base58check P2PKH and P2SH, and bech32 segwit | +| 2 | ltc | Litecoin | base58check P2PHK and P2SH, and bech32 segwit | +| 3 | doge | Dogecoin | base58check P2PKH and P2SH | +| 4 | rdd | Reddcoin | base58check P2PKH and P2SH | +| 5 | dash | Dash | base58check P2PKH and P2SH | +| 6 | ppc | Peercoin | base58check P2PKH and P2SH | +| 7 | nmc | Namecoin | base58check | +| 14 | via | Viacoin | base58check P2PKH and P2SH | +| 20 | dgb | DigiByte | base58check P2PKH and P2SH, and bech32 segwit | +| 22 | mona | Monacoin | base58check P2PKH and P2SH, and bech32 segwit | +| 42 | dcr | Decred | base58, no check | +| 43 | xem | NEM | base32 | +| 55 | aib | AIB | base58check P2PKH and P2SH | +| 57 | sys | Syscoin | base58check P2PKH and P2SH, and bech32 segwit | +| 60 | eth | Ethereum | checksummed-hex | +| 74 | icx | ICON | custom | +| 77 | xvg | Verge | base58check P2PKH and P2SH | +| 105 | strat | Stratis | base58check P2PKH and P2SH | +| 111 | ark | ARK | base58check | +| 118 | atom | Atom | bech32 | +| 121 | zen | Zencash | base58check | +| 128 | xmr | Monero | base58xmr | +| 133 | zec | Zcash | base58check P2PKH and P2SH, bech32 (Sprout shielded not supported) | +| 134 | lsk | Lisk | hex with suffix | +| 135 | steem | Steem | base58 + ripemd160-checksum | +| 136 | firo | Firo | base58check P2PKH and P2SH | +| 137 | rbtc | RSK | checksummed-hex | +| 141 | kmd | Komodo | base58check | +| 144 | xrp | Ripple | base58check-ripple | +| 145 | bch | Bitcoin Cash | base58check and cashAddr; decodes to cashAddr | +| 148 | xlm | Stellar Lumens | ed25519 public key | +| 153 | btm | Bytom | bech32 segwit | +| 156 | btg | Bitcoin Gold | base58check P2PKH and P2SH, and bech32 segwit | +| 165 | nano | Nano | nano-base32 | +| 175 | rvn | Ravencoin | base58check P2PKH and P2SH | +| 192 | lcc | LitecoinCash | base58check P2PKH and P2SH, and bech32 segwit | +| 194 | eos | EOS | base58 + ripemd160-checksum | +| 195 | trx | Tron | base58check | +| 204 | bcn | Bytecoin | base58xmr | +| 235 | fio | FIO | base58 + ripemd160-checksum | +| 236 | bsv | BitcoinSV | base58check | +| 242 | nim | Nimiq | custom | +| 283 | algo | Algorand | checksummed-base32 | +| 291 | iost | IOST | base58, no check | +| 301 | divi | Divi Project | base58check P2PKH and P2SH | +| 304 | iotx | IoTeX | bech32 | +| 308 | bts | Bitshares | base58 + ripemd160-checksum | +| 309 | ckb | Nervos CKB | bech32 | +| 313 | zil | Zilliqa | bech32 | +| 326 | mrx | Metrix Coin | base58check | +| 330 | luna | Terra | bech32 | +| 354 | dot | Polkadot | ss58 | +| 360 | vsys | V Systems | custom | +| 367 | abbc | ABBC | base58 + ripemd160-checksum | +| 397 | near | NEAR Protocol | custom | +| 415 | etn | Electroneum | base58xmr | +| 425 | aion | Aion | hex | +| 434 | ksm | Kusama | ss58 | +| 457 | ae | æternity | base58check | +| 459 | kava | Kava | bech32 | +| 461 | fil | Filecoin | base10 + leb128 and base32 + blake2b checksum | +| 472 | ar | Arweave | base64url | +| 489 | cca | Counos | base58check P2PKH and P2SH | +| 501 | sol | Solana | base58, no check | +| 508 | egld | MultiversX | bech32 | +| 535 | xhv | Haven Protocol | base58xmr | +| 539 | flow | Flow | hex | +| 566 | iris | Irisnet | bech32 | +| 568 | lrg | Large Coin | base58check P2PKH and P2SH | +| 569 | sero | Super Zero Protocol | base58, no check | +| 570 | bdx | Beldex | base58xmr | +| 571 | ccxx | Counos X | base58check P2PKH and P2SH, and bech32 segwit | +| 573 | srm | Serum | base58, no check | +| 576 | bps | BitcoinPoS | base58check P2PKH and P2SH | +| 589 | tfuel | Theta Fuel | checksummed-hex | +| 592 | grin | Grin | base58check | +| 714 | bnb | BNB | bech32 | +| 818 | vet | VeChain | checksummed-hex | +| 825 | hive | Hive | base58 + ripemd160-checksum | +| 888 | neo | NEO | base58check | +| 904 | hnt | Helium | base58check | +| 931 | rune | THORChain | bech32 | +| 999 | bcd | Bitcoin Diamond | base58check P2PKH and P2SH, and bech32 segwit | +| 1023 | one | HARMONY-ONE | bech32 | +| 1024 | ont | Ontology | base58check | +| 1237 | nostr | Nostr | bech32 | +| 1729 | xtz | Tezos | base58check | +| 1815 | ada | Cardano | base58, no check + crc32-checksum and bech32 | +| 1991 | sc | Sia | blake2b checksum | +| 2301 | qtum | QTUM | base58check | +| 2303 | gxc | GXChain | base58 + ripemd160-checksum | +| 2305 | ela | Elastos | base58 | +| 2718 | nas | Nebulas | base58 + sha3-256-checksum | +| 3030 | hbar | Hedera HBAR | custom | +| 4218 | iota | IOTA | iotaBech32 | +| 5353 | hns | Handshake | custom | +| 5757 | stx | Stacks | crockford base32 P2PKH and P2SH + ripemd160-checksum | +| 8444 | xch | Chia | bech32m | +| 8964 | nuls | NULS | base58 | +| 9000 | avax | Avalanche | bech32 | +| 9004 | strk | StarkNet | keccak256-checksumed-hex | +| 16754 | ardr | Ardor | custom | +| 19167 | flux | Flux | base58check P2PKH and P2SH, bech32 (Sprout shielded not supported) | +| 99999 | wicc | Waykichain | base58check P2PKH and P2SH | +| 5655640 | vlx | Velas | base58, no check | +| 5718350 | wan | Wanchain | checksummed-hex | +| 5741564 | waves | Waves | base58 | \ No newline at end of file diff --git a/package.json b/package.json index 5dd03270..b903c431 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "fs-extra": "^11.1.1", "mitata": "^0.1.6", "ts-arithmetic": "^0.1.1", + "ts-markdown": "^1.0.0", "typescript": "^5.1.6" }, "dependencies": { diff --git a/scripts/formatSupportedCoins.ts b/scripts/formatSupportedCoins.ts new file mode 100644 index 00000000..a9551e50 --- /dev/null +++ b/scripts/formatSupportedCoins.ts @@ -0,0 +1,95 @@ +import { TableEntry, tsMarkdown } from "ts-markdown"; +import { + evmCoinNameToTypeMap, + evmCoinTypeToNameMap, + nonEvmCoinNameToTypeMap, + nonEvmCoinTypeToNameMap, +} from "../src/index.js"; +import { coinTypeToEvmChainId } from "../src/utils/evm.js"; + +const supportedCryptocurrenciesMd = Bun.file( + "./docs/supported-cryptocurrencies.md" +); +const supportedText = await supportedCryptocurrenciesMd.text(); +const supLine = supportedText.split("\n"); + +const evmCoins = Object.entries(evmCoinTypeToNameMap); + +const evmTableData: TableEntry = { + table: { + columns: ["Chain ID", "Name", "Full Name", "Coin Type"], + rows: evmCoins.map(([coinType, [coinName, coinFullName]]) => { + return [ + coinTypeToEvmChainId(parseInt(coinType)), + coinName, + coinFullName, + coinType, + ]; + }), + }, +}; + +const legacyCoins = Object.entries(nonEvmCoinTypeToNameMap).filter( + ([, [coinName]]) => coinName.endsWith("Legacy") +); + +const legacyTableData: TableEntry = { + table: { + columns: [ + "Coin Type", + "Name", + "Full Name", + "Replacement Name", + "Replacement Coin Type", + ], + rows: legacyCoins.map(([coinType, [coinName, coinFullName]]) => { + const replacementName = coinName.slice(0, -6); + const replacement = + nonEvmCoinNameToTypeMap[replacementName] ?? + evmCoinNameToTypeMap[replacementName]; + return [ + coinType, + coinName, + coinFullName.replace(/^\[LEGACY\] /, ""), + replacementName, + replacement, + ]; + }), + }, +}; + +const mainCoins = Object.entries(nonEvmCoinTypeToNameMap).filter( + ([, [coinName]]) => !coinName.endsWith("Legacy") +); +const mainCoinsIndex = supLine.findIndex((l) => l.startsWith("### Coins")); +const mainCoinsLines = supLine.slice(mainCoinsIndex); + +const mainTableData: TableEntry = { + table: { + columns: ["Coin Type", "Name", "Full Name", "Encoding Type"], + rows: mainCoins.map(([coinType, [coinName, coinFullName]]) => { + const existingLine = mainCoinsLines.find((l) => + l.startsWith(`| ${coinType} `) + ); + const encodingType = existingLine + ? existingLine.split("|")[4].trim() + : "[UNKNOWN ENCODING TYPE, PLEASE ADD BEFORE MERGING]"; + return [coinType, coinName, coinFullName, encodingType]; + }), + }, +}; + +const md = tsMarkdown([ + { h2: "Supported Cryptocurrencies" }, + { h3: "EVM Chains" }, + { p: "The following EVM chains are supported:" }, + evmTableData, + { h3: "Legacy Coins" }, + { p: "The following legacy coins are supported:" }, + legacyTableData, + { h3: "Coins" }, + { p: "The following coins are supported:" }, + mainTableData, +]); + +await Bun.write(supportedCryptocurrenciesMd, md); diff --git a/src/coin/btc.bench.ts b/src/coin/btc.bench.ts deleted file mode 100644 index 491ee1aa..00000000 --- a/src/coin/btc.bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { bench, group, run } from "mitata"; - -import { formatsByName } from "@ensdomains/address-encoder"; -import { hexToBytes } from "@noble/hashes/utils"; -import { decodeBtcAddress, encodeBtcAddress } from "./btc.js"; - -const btcOld = formatsByName["BTC"]; - -const createBenchmark = (name: string, address: string, hex: string) => { - const bytes = hexToBytes(hex); - const buffer = Buffer.from(bytes); - - group(`encode - ${name}`, () => { - bench("new", () => encodeBtcAddress(bytes)); - bench("old", () => btcOld.encoder(buffer)); - }); - - group(`decode - ${name}`, () => { - bench("new", () => decodeBtcAddress(address)); - bench("old", () => btcOld.decoder(address)); - }); -}; - -createBenchmark( - "base58", - "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", - "76a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac" -); - -createBenchmark( - "bech32", - "bc1pw508d6qejxtdg4y5r3zarvary0c5xw7kw508d6qejxtdg4y5r3zarvary0c5xw7k7grplx", - "5128751e76e8199196d454941c45d1b3a323f1433bd6751e76e8199196d454941c45d1b3a323f1433bd6" -); - -await run({ - percentiles: false, -}); diff --git a/src/consts/coinTypeToNameMap.ts b/src/consts/coinTypeToNameMap.ts index f0b0bf99..4cfd6e52 100644 --- a/src/consts/coinTypeToNameMap.ts +++ b/src/consts/coinTypeToNameMap.ts @@ -1,6 +1,4 @@ export const evmCoinTypeToNameMap = Object.freeze({ - /* Chain ID: 0 */ - "2147483648": ["metis", "1088"], /* Chain ID: 10 */ "2147483658": ["op", "Optimism"], /* Chain ID: 25 */ @@ -35,6 +33,8 @@ export const evmCoinTypeToNameMap = Object.freeze({ "2147484009": ["theta", "Theta"], /* Chain ID: 820 */ "2147484468": ["clo", "Callisto"], + /* Chain ID: 1088 */ + "2147484736": ["metis", "Metis"], /* Chain ID: 5000 */ "2147488648": ["mantle", "Mantle"], /* Chain ID: 8453 */