example-lifi-types
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ChainId = exports.ChainKey = exports.CoinKey = void 0; | ||
var CoinKey; | ||
export var CoinKey; | ||
(function (CoinKey) { | ||
@@ -20,4 +17,4 @@ CoinKey["ETH"] = "ETH"; | ||
CoinKey["TEST"] = "TEST"; | ||
})(CoinKey = exports.CoinKey || (exports.CoinKey = {})); | ||
var ChainKey; | ||
})(CoinKey || (CoinKey = {})); | ||
export var ChainKey; | ||
(function (ChainKey) { | ||
@@ -46,4 +43,4 @@ ChainKey["ETH"] = "eth"; | ||
ChainKey["ONET"] = "onet"; | ||
})(ChainKey = exports.ChainKey || (exports.ChainKey = {})); | ||
var ChainId; | ||
})(ChainKey || (ChainKey = {})); | ||
export var ChainId; | ||
(function (ChainId) { | ||
@@ -72,2 +69,2 @@ ChainId[ChainId["ETH"] = 1] = "ETH"; | ||
ChainId[ChainId["ONET"] = 1666700000] = "ONET"; | ||
})(ChainId = exports.ChainId || (exports.ChainId = {})); | ||
})(ChainId || (ChainId = {})); |
@@ -1,16 +0,13 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getChainById = exports.getChainByKey = exports.supportedChains = void 0; | ||
var ethers_1 = require("ethers"); | ||
var base_types_1 = require("./base.types"); | ||
import { BigNumber } from 'ethers'; | ||
import { ChainKey, CoinKey } from './base.types'; | ||
var prefixChainId = function (chainId) { | ||
return '0x' + ethers_1.BigNumber.from(chainId)._hex.split('0x')[1].replace(/\b0+/g, ''); | ||
return '0x' + BigNumber.from(chainId)._hex.split('0x')[1].replace(/\b0+/g, ''); | ||
}; | ||
// chainNames aligned with https://github.com/ethereum-lists/chains/tree/master/_data/chains | ||
exports.supportedChains = [ | ||
export var supportedChains = [ | ||
// 1 - Ethereum | ||
{ | ||
key: base_types_1.ChainKey.ETH, | ||
key: ChainKey.ETH, | ||
name: 'Ethereum', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 1, | ||
@@ -40,5 +37,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.POL, | ||
key: ChainKey.POL, | ||
name: 'Polygon', | ||
coin: base_types_1.CoinKey.MATIC, | ||
coin: CoinKey.MATIC, | ||
id: 137, | ||
@@ -70,5 +67,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.BSC, | ||
key: ChainKey.BSC, | ||
name: 'BSC', | ||
coin: base_types_1.CoinKey.BNB, | ||
coin: CoinKey.BNB, | ||
id: 56, | ||
@@ -101,5 +98,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.DAI, | ||
key: ChainKey.DAI, | ||
name: 'xDai', | ||
coin: base_types_1.CoinKey.DAI, | ||
coin: CoinKey.DAI, | ||
id: 100, | ||
@@ -133,5 +130,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.FTM, | ||
key: ChainKey.FTM, | ||
name: 'Fantom', | ||
coin: base_types_1.CoinKey.FTM, | ||
coin: CoinKey.FTM, | ||
id: 250, | ||
@@ -163,5 +160,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.OKT, | ||
key: ChainKey.OKT, | ||
name: 'OKExCHain', | ||
coin: base_types_1.CoinKey.OKT, | ||
coin: CoinKey.OKT, | ||
id: 66, | ||
@@ -184,5 +181,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.AVA, | ||
key: ChainKey.AVA, | ||
name: 'Avalanche', | ||
coin: base_types_1.CoinKey.AVAX, | ||
coin: CoinKey.AVAX, | ||
id: 43114, | ||
@@ -205,5 +202,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.ARB, | ||
key: ChainKey.ARB, | ||
name: 'Arbitrum One', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 42161, | ||
@@ -226,5 +223,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.HEC, | ||
key: ChainKey.HEC, | ||
name: 'Huobi ECO Chain Mainnet', | ||
coin: base_types_1.CoinKey.HT, | ||
coin: CoinKey.HT, | ||
id: 128, | ||
@@ -247,5 +244,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.OPT, | ||
key: ChainKey.OPT, | ||
name: 'Optimistic Ethereum', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 10, | ||
@@ -292,5 +289,5 @@ visible: true, | ||
{ | ||
key: base_types_1.ChainKey.ONE, | ||
key: ChainKey.ONE, | ||
name: 'Harmony', | ||
coin: base_types_1.CoinKey.ONE, | ||
coin: CoinKey.ONE, | ||
id: 1666600000, | ||
@@ -320,5 +317,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.ROP, | ||
key: ChainKey.ROP, | ||
name: 'Ropsten', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 3, | ||
@@ -352,5 +349,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.RIN, | ||
key: ChainKey.RIN, | ||
name: 'Rinkeby', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 4, | ||
@@ -381,5 +378,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.GOR, | ||
key: ChainKey.GOR, | ||
name: 'Goerli', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 5, | ||
@@ -408,5 +405,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.KOV, | ||
key: ChainKey.KOV, | ||
name: 'Kovan', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 42, | ||
@@ -438,5 +435,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.MUM, | ||
key: ChainKey.MUM, | ||
name: 'Polygon Testnet', | ||
coin: base_types_1.CoinKey.MATIC, | ||
coin: CoinKey.MATIC, | ||
id: 80001, | ||
@@ -465,5 +462,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.ARBT, | ||
key: ChainKey.ARBT, | ||
name: 'Arbitrum Testnet', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 421611, | ||
@@ -486,5 +483,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.OPTT, | ||
key: ChainKey.OPTT, | ||
name: 'Optimism Testnet', | ||
coin: base_types_1.CoinKey.ETH, | ||
coin: CoinKey.ETH, | ||
id: 69, | ||
@@ -507,5 +504,5 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.BSCT, | ||
key: ChainKey.BSCT, | ||
name: 'Binance Smart Chain Testnet', | ||
coin: base_types_1.CoinKey.BNB, | ||
coin: CoinKey.BNB, | ||
id: 97, | ||
@@ -528,3 +525,3 @@ visible: false, | ||
{ | ||
key: base_types_1.ChainKey.HECT, | ||
key: ChainKey.HECT, | ||
name: 'Huobi ECO Chain Testnet', | ||
@@ -552,5 +549,5 @@ coin: 'HTT', | ||
{ | ||
key: base_types_1.ChainKey.ONET, | ||
key: ChainKey.ONET, | ||
name: 'Harmony Testnet', | ||
coin: base_types_1.CoinKey.ONE, | ||
coin: CoinKey.ONE, | ||
id: 1666700000, | ||
@@ -576,4 +573,4 @@ visible: false, | ||
]; | ||
var getChainByKey = function (chainKey) { | ||
var chain = exports.supportedChains.find(function (chain) { return chain.key === chainKey; }); | ||
export var getChainByKey = function (chainKey) { | ||
var chain = supportedChains.find(function (chain) { return chain.key === chainKey; }); | ||
if (!chain) { | ||
@@ -584,5 +581,4 @@ throw new Error('Invalid chainKey'); | ||
}; | ||
exports.getChainByKey = getChainByKey; | ||
var getChainById = function (chainId) { | ||
var chain = exports.supportedChains.find(function (chain) { return chain.id === chainId; }); | ||
export var getChainById = function (chainId) { | ||
var chain = supportedChains.find(function (chain) { return chain.id === chainId; }); | ||
if (!chain) { | ||
@@ -593,2 +589,1 @@ throw new Error('Invalid chainId'); | ||
}; | ||
exports.getChainById = getChainById; |
@@ -1,75 +0,72 @@ | ||
"use strict"; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BASES_TO_CHECK_TRADES_AGAINST = exports.wrappedTokens = exports.defaultTokens = exports.findDefaultCoinOnChain = exports.findDefaultCoin = exports.defaultCoins = void 0; | ||
var base_types_1 = require("./base.types"); | ||
exports.defaultCoins = [ | ||
import { ChainId, ChainKey, CoinKey } from './base.types'; | ||
export var defaultCoins = [ | ||
// NATIVE COINS | ||
// > ETH | ||
{ | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
verified: true, | ||
chains: (_a = {}, | ||
_a[base_types_1.ChainKey.ETH] = { | ||
_a[ChainKey.ETH] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.BSC] = { | ||
_a[ChainKey.BSC] = { | ||
id: '0x2170ed0880ac9a755fd29b2688956bd959f933f8', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.POL] = { | ||
_a[ChainKey.POL] = { | ||
id: '0xfd8ee443ab7be5b1522a1c020c097cff1ddc1209', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.DAI] = { | ||
_a[ChainKey.DAI] = { | ||
id: '0xa5c7cb68cd81640d40c85b2e5ec9e4bb55be0214', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.OPT] = { | ||
_a[ChainKey.OPT] = { | ||
// guessed from debank api | ||
id: '0x4200000000000000000000000000000000000006', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.OPT, | ||
chainKey: base_types_1.ChainKey.OPT, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.OPT, | ||
chainKey: ChainKey.OPT, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.OKT] = { | ||
_a[ChainKey.OKT] = { | ||
// guessed from debank api | ||
id: '0xef71ca2ee68f45b9ad6f72fbdb33d707b872315c', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.OKT, | ||
chainKey: base_types_1.ChainKey.OKT, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.OKT, | ||
chainKey: ChainKey.OKT, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
@@ -87,71 +84,71 @@ }, | ||
// }, | ||
_a[base_types_1.ChainKey.ONE] = { | ||
_a[ChainKey.ONE] = { | ||
id: '0x6983d1e6def3690c4d616b13597a09e6193ea013', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
// Testnets | ||
_a[base_types_1.ChainKey.ROP] = { | ||
_a[ChainKey.ROP] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.RIN] = { | ||
_a[ChainKey.RIN] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.GOR] = { | ||
_a[ChainKey.GOR] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.GOR, | ||
chainKey: base_types_1.ChainKey.GOR, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.GOR, | ||
chainKey: ChainKey.GOR, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.KOV] = { | ||
_a[ChainKey.KOV] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.KOV, | ||
chainKey: base_types_1.ChainKey.KOV, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.KOV, | ||
chainKey: ChainKey.KOV, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.ONET] = { | ||
_a[ChainKey.ONET] = { | ||
id: '0x268d6ff391b41b36a13b1693bd25f87fb4e4b392', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONET, | ||
chainKey: base_types_1.ChainKey.ONET, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.ONET, | ||
chainKey: ChainKey.ONET, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
}, | ||
_a[base_types_1.ChainKey.BSCT] = { | ||
_a[ChainKey.BSCT] = { | ||
id: '0xd66c6b4f0be8ce5b39d52e0fd1344c389929b378', | ||
symbol: base_types_1.CoinKey.ETH, | ||
symbol: CoinKey.ETH, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSCT, | ||
chainKey: base_types_1.ChainKey.BSCT, | ||
key: base_types_1.CoinKey.ETH, | ||
name: base_types_1.CoinKey.ETH, | ||
chainId: ChainId.BSCT, | ||
chainKey: ChainKey.BSCT, | ||
key: CoinKey.ETH, | ||
name: CoinKey.ETH, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png', | ||
@@ -163,56 +160,56 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
verified: true, | ||
chains: (_b = {}, | ||
_b[base_types_1.ChainKey.ETH] = { | ||
_b[ChainKey.ETH] = { | ||
id: '0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0', | ||
symbol: base_types_1.CoinKey.MATIC, | ||
symbol: CoinKey.MATIC, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
}, | ||
_b[base_types_1.ChainKey.BSC] = { | ||
_b[ChainKey.BSC] = { | ||
id: '0xa90cb47c72f2c7e4411e781772735d9317d08dd4', | ||
symbol: base_types_1.CoinKey.MATIC, | ||
symbol: CoinKey.MATIC, | ||
decimals: 8, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
}, | ||
_b[base_types_1.ChainKey.POL] = { | ||
_b[ChainKey.POL] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.MATIC, | ||
symbol: CoinKey.MATIC, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
}, | ||
_b[base_types_1.ChainKey.DAI] = { | ||
_b[ChainKey.DAI] = { | ||
id: '0x7122d7661c4564b7c6cd4878b06766489a6028a2', | ||
symbol: base_types_1.CoinKey.MATIC, | ||
symbol: CoinKey.MATIC, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
}, | ||
// Testnet | ||
_b[base_types_1.ChainKey.MUM] = { | ||
_b[ChainKey.MUM] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.MATIC, | ||
symbol: CoinKey.MATIC, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.MUM, | ||
chainKey: base_types_1.ChainKey.MUM, | ||
key: base_types_1.CoinKey.MATIC, | ||
name: base_types_1.CoinKey.MATIC, | ||
chainId: ChainId.MUM, | ||
chainKey: ChainKey.MUM, | ||
key: CoinKey.MATIC, | ||
name: CoinKey.MATIC, | ||
logoURI: 'https://etherscan.io/token/images/matictoken_28.png', | ||
@@ -224,76 +221,76 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
verified: true, | ||
chains: (_c = {}, | ||
_c[base_types_1.ChainKey.ETH] = { | ||
_c[ChainKey.ETH] = { | ||
id: '0xb8c77482e45f1f44de1745f52c74426c631bdd52', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
_c[base_types_1.ChainKey.BSC] = { | ||
_c[ChainKey.BSC] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
_c[base_types_1.ChainKey.POL] = { | ||
_c[ChainKey.POL] = { | ||
id: '0xa649325aa7c5093d12d6f98eb4378deae68ce23f', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
_c[base_types_1.ChainKey.DAI] = { | ||
_c[ChainKey.DAI] = { | ||
id: '0xca8d20f3e0144a72c6b5d576e9bd3fd8557e2b04', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
_c[base_types_1.ChainKey.ONE] = { | ||
_c[ChainKey.ONE] = { | ||
id: '0xb1f6e61e1e113625593a22fa6aa94f8052bc39e0', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
// Testnet | ||
_c[base_types_1.ChainKey.BSCT] = { | ||
_c[ChainKey.BSCT] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSCT, | ||
chainKey: base_types_1.ChainKey.BSCT, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.BSCT, | ||
chainKey: ChainKey.BSCT, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
}, | ||
_c[base_types_1.ChainKey.ONET] = { | ||
_c[ChainKey.ONET] = { | ||
id: '0xbef55684b382bae72051813a898d17282066c007', | ||
symbol: base_types_1.CoinKey.BNB, | ||
symbol: CoinKey.BNB, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONET, | ||
chainKey: base_types_1.ChainKey.ONET, | ||
key: base_types_1.CoinKey.BNB, | ||
name: base_types_1.CoinKey.BNB, | ||
chainId: ChainId.ONET, | ||
chainKey: ChainKey.ONET, | ||
key: CoinKey.BNB, | ||
name: CoinKey.BNB, | ||
logoURI: 'https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615', | ||
@@ -305,126 +302,126 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
verified: true, | ||
chains: (_d = {}, | ||
_d[base_types_1.ChainKey.ETH] = { | ||
_d[ChainKey.ETH] = { | ||
id: '0x6b175474e89094c44da98b954eedeac495271d0f', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.BSC] = { | ||
_d[ChainKey.BSC] = { | ||
id: '0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.POL] = { | ||
_d[ChainKey.POL] = { | ||
id: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.DAI] = { | ||
_d[ChainKey.DAI] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.FTM] = { | ||
_d[ChainKey.FTM] = { | ||
id: '0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.FTM, | ||
chainKey: base_types_1.ChainKey.FTM, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.FTM, | ||
chainKey: ChainKey.FTM, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.ONE] = { | ||
_d[ChainKey.ONE] = { | ||
id: '0xEf977d2f931C1978Db5F6747666fa1eACB0d0339', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.AVA] = { | ||
_d[ChainKey.AVA] = { | ||
id: '0xd586e7f844cea2f87f50152665bcbc2c279d8d70', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.AVA, | ||
chainKey: base_types_1.ChainKey.AVA, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.AVA, | ||
chainKey: ChainKey.AVA, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.ARB] = { | ||
_d[ChainKey.ARB] = { | ||
id: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ARB, | ||
chainKey: base_types_1.ChainKey.ARB, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.ARB, | ||
chainKey: ChainKey.ARB, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
// Testnets | ||
_d[base_types_1.ChainKey.ROP] = { | ||
_d[ChainKey.ROP] = { | ||
id: '0x31f42841c2db5173425b5223809cf3a38fede360', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.RIN] = { | ||
_d[ChainKey.RIN] = { | ||
id: '0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.GOR] = { | ||
_d[ChainKey.GOR] = { | ||
id: '0xc61ba16e864efbd06a9fe30aab39d18b8f63710a', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.GOR, | ||
chainKey: base_types_1.ChainKey.GOR, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.GOR, | ||
chainKey: ChainKey.GOR, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
}, | ||
_d[base_types_1.ChainKey.MUM] = { | ||
_d[ChainKey.MUM] = { | ||
id: '0xb224913CE3851b0a0d7C0FB461eEF40f2e31ddb8', | ||
symbol: base_types_1.CoinKey.DAI, | ||
symbol: CoinKey.DAI, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.MUM, | ||
chainKey: base_types_1.ChainKey.MUM, | ||
key: base_types_1.CoinKey.DAI, | ||
name: base_types_1.CoinKey.DAI, | ||
chainId: ChainId.MUM, | ||
chainKey: ChainKey.MUM, | ||
key: CoinKey.DAI, | ||
name: CoinKey.DAI, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png', | ||
@@ -436,15 +433,15 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.FTM, | ||
name: base_types_1.CoinKey.FTM, | ||
key: CoinKey.FTM, | ||
name: CoinKey.FTM, | ||
logoURI: 'https://assets.spookyswap.finance/tokens/FTM.png', | ||
verified: true, | ||
chains: (_e = {}, | ||
_e[base_types_1.ChainKey.FTM] = { | ||
_e[ChainKey.FTM] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.FTM, | ||
symbol: CoinKey.FTM, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.FTM, | ||
chainKey: base_types_1.ChainKey.FTM, | ||
key: base_types_1.CoinKey.FTM, | ||
name: base_types_1.CoinKey.FTM, | ||
chainId: ChainId.FTM, | ||
chainKey: ChainKey.FTM, | ||
key: CoinKey.FTM, | ||
name: CoinKey.FTM, | ||
logoURI: 'https://assets.spookyswap.finance/tokens/FTM.png', | ||
@@ -456,15 +453,15 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.OKT, | ||
name: base_types_1.CoinKey.OKT, | ||
key: CoinKey.OKT, | ||
name: CoinKey.OKT, | ||
logoURI: '', | ||
verified: true, | ||
chains: (_f = {}, | ||
_f[base_types_1.ChainKey.OKT] = { | ||
_f[ChainKey.OKT] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.OKT, | ||
symbol: CoinKey.OKT, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.OKT, | ||
chainKey: base_types_1.ChainKey.OKT, | ||
key: base_types_1.CoinKey.OKT, | ||
name: base_types_1.CoinKey.OKT, | ||
chainId: ChainId.OKT, | ||
chainKey: ChainKey.OKT, | ||
key: CoinKey.OKT, | ||
name: CoinKey.OKT, | ||
logoURI: '', | ||
@@ -476,15 +473,15 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.AVAX, | ||
name: base_types_1.CoinKey.AVAX, | ||
key: CoinKey.AVAX, | ||
name: CoinKey.AVAX, | ||
logoURI: '', | ||
verified: true, | ||
chains: (_g = {}, | ||
_g[base_types_1.ChainKey.AVA] = { | ||
_g[ChainKey.AVA] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.AVAX, | ||
symbol: CoinKey.AVAX, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.AVA, | ||
chainKey: base_types_1.ChainKey.AVA, | ||
key: base_types_1.CoinKey.AVAX, | ||
name: base_types_1.CoinKey.AVAX, | ||
chainId: ChainId.AVA, | ||
chainKey: ChainKey.AVA, | ||
key: CoinKey.AVAX, | ||
name: CoinKey.AVAX, | ||
logoURI: '', | ||
@@ -496,15 +493,15 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.HT, | ||
name: base_types_1.CoinKey.HT, | ||
key: CoinKey.HT, | ||
name: CoinKey.HT, | ||
logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png', | ||
verified: true, | ||
chains: (_h = {}, | ||
_h[base_types_1.ChainKey.HEC] = { | ||
_h[ChainKey.HEC] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.HT, | ||
symbol: CoinKey.HT, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.HEC, | ||
chainKey: base_types_1.ChainKey.HEC, | ||
key: base_types_1.CoinKey.HT, | ||
name: base_types_1.CoinKey.HT, | ||
chainId: ChainId.HEC, | ||
chainKey: ChainKey.HEC, | ||
key: CoinKey.HT, | ||
name: CoinKey.HT, | ||
logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png', | ||
@@ -516,36 +513,36 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.ONE, | ||
name: base_types_1.CoinKey.ONE, | ||
key: CoinKey.ONE, | ||
name: CoinKey.ONE, | ||
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png', | ||
verified: true, | ||
chains: (_j = {}, | ||
_j[base_types_1.ChainKey.ONE] = { | ||
_j[ChainKey.ONE] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ONE, | ||
symbol: CoinKey.ONE, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.ONE, | ||
name: base_types_1.CoinKey.ONE, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.ONE, | ||
name: CoinKey.ONE, | ||
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png', | ||
}, | ||
_j[base_types_1.ChainKey.BSC] = { | ||
_j[ChainKey.BSC] = { | ||
id: '0x03ff0ff224f904be3118461335064bb48df47938', | ||
symbol: base_types_1.CoinKey.ONE, | ||
symbol: CoinKey.ONE, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.ONE, | ||
name: base_types_1.CoinKey.ONE, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.ONE, | ||
name: CoinKey.ONE, | ||
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png', | ||
}, | ||
// Testnet | ||
_j[base_types_1.ChainKey.ONET] = { | ||
_j[ChainKey.ONET] = { | ||
id: '0x0000000000000000000000000000000000000000', | ||
symbol: base_types_1.CoinKey.ONE, | ||
symbol: CoinKey.ONE, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONET, | ||
chainKey: base_types_1.ChainKey.ONET, | ||
key: base_types_1.CoinKey.ONE, | ||
name: base_types_1.CoinKey.ONE, | ||
chainId: ChainId.ONET, | ||
chainKey: ChainKey.ONET, | ||
key: CoinKey.ONE, | ||
name: CoinKey.ONE, | ||
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png', | ||
@@ -558,116 +555,116 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
verified: true, | ||
chains: (_k = {}, | ||
_k[base_types_1.ChainKey.ETH] = { | ||
_k[ChainKey.ETH] = { | ||
id: '0xdac17f958d2ee523a2206206994597c13d831ec7', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.BSC] = { | ||
_k[ChainKey.BSC] = { | ||
id: '0x55d398326f99059ff775485246999027b3197955', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.POL] = { | ||
_k[ChainKey.POL] = { | ||
id: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.DAI] = { | ||
_k[ChainKey.DAI] = { | ||
id: '0x4ecaba5870353805a9f068101a40e0f32ed605c6', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.FTM] = { | ||
_k[ChainKey.FTM] = { | ||
id: '0x049d68029688eabf473097a2fc38ef61633a3c7a', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.FTM, | ||
chainKey: base_types_1.ChainKey.FTM, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.FTM, | ||
chainKey: ChainKey.FTM, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.ARB] = { | ||
_k[ChainKey.ARB] = { | ||
id: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ARB, | ||
chainKey: base_types_1.ChainKey.ARB, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.ARB, | ||
chainKey: ChainKey.ARB, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.OPT] = { | ||
_k[ChainKey.OPT] = { | ||
id: '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.OPT, | ||
chainKey: base_types_1.ChainKey.OPT, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.OPT, | ||
chainKey: ChainKey.OPT, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.ONE] = { | ||
_k[ChainKey.ONE] = { | ||
id: '0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.AVA] = { | ||
_k[ChainKey.AVA] = { | ||
id: '0xc7198437980c041c805a1edcba50c1ce5db95118', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.AVA, | ||
chainKey: base_types_1.ChainKey.AVA, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.AVA, | ||
chainKey: ChainKey.AVA, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
// Testnets | ||
_k[base_types_1.ChainKey.ROP] = { | ||
_k[ChainKey.ROP] = { | ||
id: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
}, | ||
_k[base_types_1.ChainKey.RIN] = { | ||
_k[ChainKey.RIN] = { | ||
id: '0xd9ba894e0097f8cc2bbc9d24d308b98e36dc6d02', | ||
symbol: base_types_1.CoinKey.USDT, | ||
symbol: CoinKey.USDT, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
key: base_types_1.CoinKey.USDT, | ||
name: base_types_1.CoinKey.USDT, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: CoinKey.USDT, | ||
name: CoinKey.USDT, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png', | ||
@@ -679,136 +676,136 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
verified: true, | ||
chains: (_l = {}, | ||
_l[base_types_1.ChainKey.ETH] = { | ||
_l[ChainKey.ETH] = { | ||
id: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.BSC] = { | ||
_l[ChainKey.BSC] = { | ||
id: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.POL] = { | ||
_l[ChainKey.POL] = { | ||
id: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.DAI] = { | ||
_l[ChainKey.DAI] = { | ||
id: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.FTM] = { | ||
_l[ChainKey.FTM] = { | ||
id: '0x04068da6c83afcfa0e13ba15a6696662335d5b75', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: 250, | ||
chainKey: base_types_1.ChainKey.FTM, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainKey: ChainKey.FTM, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.ARB] = { | ||
_l[ChainKey.ARB] = { | ||
id: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ARB, | ||
chainKey: base_types_1.ChainKey.ARB, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.ARB, | ||
chainKey: ChainKey.ARB, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.OPT] = { | ||
_l[ChainKey.OPT] = { | ||
id: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.OPT, | ||
chainKey: base_types_1.ChainKey.OPT, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.OPT, | ||
chainKey: ChainKey.OPT, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.ONE] = { | ||
_l[ChainKey.ONE] = { | ||
id: '0x985458e523db3d53125813ed68c274899e9dfab4', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.AVA] = { | ||
_l[ChainKey.AVA] = { | ||
id: '0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.AVA, | ||
chainKey: base_types_1.ChainKey.AVA, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.AVA, | ||
chainKey: ChainKey.AVA, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
// Testnets | ||
_l[base_types_1.ChainKey.ROP] = { | ||
_l[ChainKey.ROP] = { | ||
id: '0x07865c6e87b9f70255377e024ace6630c1eaa37f', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.RIN] = { | ||
_l[ChainKey.RIN] = { | ||
id: '0x4dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.GOR] = { | ||
_l[ChainKey.GOR] = { | ||
id: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.GOR, | ||
chainKey: base_types_1.ChainKey.GOR, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.GOR, | ||
chainKey: ChainKey.GOR, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
}, | ||
_l[base_types_1.ChainKey.MUM] = { | ||
_l[ChainKey.MUM] = { | ||
id: '0x6D4dd09982853F08d9966aC3cA4Eb5885F16f2b2', | ||
symbol: base_types_1.CoinKey.USDC, | ||
symbol: CoinKey.USDC, | ||
decimals: 6, | ||
chainId: base_types_1.ChainId.MUM, | ||
chainKey: base_types_1.ChainKey.MUM, | ||
key: base_types_1.CoinKey.USDC, | ||
name: base_types_1.CoinKey.USDC, | ||
chainId: ChainId.MUM, | ||
chainKey: ChainKey.MUM, | ||
key: CoinKey.USDC, | ||
name: CoinKey.USDC, | ||
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png', | ||
@@ -820,75 +817,75 @@ }, | ||
{ | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
verified: false, | ||
chains: (_m = {}, | ||
_m[base_types_1.ChainKey.ROP] = { | ||
_m[ChainKey.ROP] = { | ||
id: '0xe71678794fff8846bff855f716b0ce9d9a78e844', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.RIN] = { | ||
_m[ChainKey.RIN] = { | ||
id: '0x9ac2c46d7acc21c881154d57c0dc1c55a3139198', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.GOR] = { | ||
_m[ChainKey.GOR] = { | ||
id: '0x8a1cad3703e0beae0e0237369b4fcd04228d1682', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.GOR, | ||
chainKey: base_types_1.ChainKey.GOR, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.GOR, | ||
chainKey: ChainKey.GOR, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.MUM] = { | ||
_m[ChainKey.MUM] = { | ||
id: '0xe71678794fff8846bff855f716b0ce9d9a78e844', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.MUM, | ||
chainKey: base_types_1.ChainKey.MUM, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.MUM, | ||
chainKey: ChainKey.MUM, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.ARBT] = { | ||
_m[ChainKey.ARBT] = { | ||
id: '0xe71678794fff8846bff855f716b0ce9d9a78e844', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ARBT, | ||
chainKey: base_types_1.ChainKey.ARBT, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.ARBT, | ||
chainKey: ChainKey.ARBT, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.BSCT] = { | ||
_m[ChainKey.BSCT] = { | ||
id: '0xd86bcb7d85163fbc81756bb9cc22225d6abccadb', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSCT, | ||
chainKey: base_types_1.ChainKey.BSCT, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.BSCT, | ||
chainKey: ChainKey.BSCT, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
}, | ||
_m[base_types_1.ChainKey.OPTT] = { | ||
_m[ChainKey.OPTT] = { | ||
id: '0xe71678794fff8846bff855f716b0ce9d9a78e844', | ||
symbol: base_types_1.CoinKey.TEST, | ||
symbol: CoinKey.TEST, | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.OPTT, | ||
chainKey: base_types_1.ChainKey.OPTT, | ||
key: base_types_1.CoinKey.TEST, | ||
name: base_types_1.CoinKey.TEST, | ||
chainId: ChainId.OPTT, | ||
chainKey: ChainKey.OPTT, | ||
key: CoinKey.TEST, | ||
name: CoinKey.TEST, | ||
logoURI: 'https://xpollinate.io/icon192.png', | ||
@@ -899,4 +896,4 @@ }, | ||
]; | ||
var findDefaultCoin = function (coinKey) { | ||
var coin = exports.defaultCoins.find(function (coin) { return coin.key === coinKey; }); | ||
export var findDefaultCoin = function (coinKey) { | ||
var coin = defaultCoins.find(function (coin) { return coin.key === coinKey; }); | ||
if (!coin) { | ||
@@ -907,98 +904,96 @@ throw new Error('Invalid Coin'); | ||
}; | ||
exports.findDefaultCoin = findDefaultCoin; | ||
var findDefaultCoinOnChain = function (coinKey, chainKey) { | ||
var coin = (0, exports.findDefaultCoin)(coinKey); | ||
export var findDefaultCoinOnChain = function (coinKey, chainKey) { | ||
var coin = findDefaultCoin(coinKey); | ||
return coin.chains[chainKey]; | ||
}; | ||
exports.findDefaultCoinOnChain = findDefaultCoinOnChain; | ||
exports.defaultTokens = (_o = {}, | ||
_o[base_types_1.ChainKey.ETH] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.ETH), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.ETH), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.ETH), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.MATIC, base_types_1.ChainKey.ETH), | ||
export var defaultTokens = (_o = {}, | ||
_o[ChainKey.ETH] = [ | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.ETH), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.ETH), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.ETH), | ||
findDefaultCoinOnChain(CoinKey.MATIC, ChainKey.ETH), | ||
], | ||
_o[base_types_1.ChainKey.BSC] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.BNB, base_types_1.ChainKey.BSC), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.BSC), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.BSC), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.BSC), | ||
_o[ChainKey.BSC] = [ | ||
findDefaultCoinOnChain(CoinKey.BNB, ChainKey.BSC), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.BSC), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.BSC), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.BSC), | ||
], | ||
_o[base_types_1.ChainKey.POL] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.MATIC, base_types_1.ChainKey.POL), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.POL), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.POL), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.POL), | ||
_o[ChainKey.POL] = [ | ||
findDefaultCoinOnChain(CoinKey.MATIC, ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.POL), | ||
], | ||
_o[base_types_1.ChainKey.DAI] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.DAI), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.DAI), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.DAI), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.MATIC, base_types_1.ChainKey.DAI), | ||
_o[ChainKey.DAI] = [ | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.DAI), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.DAI), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.DAI), | ||
findDefaultCoinOnChain(CoinKey.MATIC, ChainKey.DAI), | ||
], | ||
_o[base_types_1.ChainKey.FTM] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.FTM, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.FTM), | ||
_o[ChainKey.FTM] = [ | ||
findDefaultCoinOnChain(CoinKey.FTM, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.FTM), | ||
], | ||
_o[base_types_1.ChainKey.ARB] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.ARB), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.ARB), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.ARB), | ||
_o[ChainKey.ARB] = [ | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.ARB), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.ARB), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.ARB), | ||
], | ||
_o[base_types_1.ChainKey.OPT] = [ | ||
_o[ChainKey.OPT] = [ | ||
// findDefaultCoinOnChain(CoinKey.ETH, ChainKey.OPT), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.OPT), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.OPT), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.OPT), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.OPT), | ||
], | ||
_o[base_types_1.ChainKey.ONE] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ONE, base_types_1.ChainKey.ONE), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.BNB, base_types_1.ChainKey.ONE), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.ONE), | ||
_o[ChainKey.ONE] = [ | ||
findDefaultCoinOnChain(CoinKey.ONE, ChainKey.ONE), | ||
findDefaultCoinOnChain(CoinKey.BNB, ChainKey.ONE), | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.ONE), | ||
], | ||
_o[base_types_1.ChainKey.AVA] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.AVA), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.AVA), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.AVA), | ||
_o[ChainKey.AVA] = [ | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.AVA), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.AVA), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.AVA), | ||
], | ||
// Testnet | ||
_o[base_types_1.ChainKey.GOR] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.GOR), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.TEST, base_types_1.ChainKey.GOR), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.GOR), | ||
_o[ChainKey.GOR] = [ | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.GOR), | ||
findDefaultCoinOnChain(CoinKey.TEST, ChainKey.GOR), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.GOR), | ||
// findDefaultCoinOnChain(CoinKey.USDT, ChainKey.GOR), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.GOR), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.GOR), | ||
], | ||
_o[base_types_1.ChainKey.RIN] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.RIN), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.TEST, base_types_1.ChainKey.RIN), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.RIN), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.RIN), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.RIN), | ||
_o[ChainKey.RIN] = [ | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.RIN), | ||
findDefaultCoinOnChain(CoinKey.TEST, ChainKey.RIN), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.RIN), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.RIN), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.RIN), | ||
], | ||
_o[base_types_1.ChainKey.ROP] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.ROP), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.TEST, base_types_1.ChainKey.ROP), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.ROP), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.ROP), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.ROP), | ||
_o[ChainKey.ROP] = [ | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.ROP), | ||
findDefaultCoinOnChain(CoinKey.TEST, ChainKey.ROP), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.ROP), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.ROP), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.ROP), | ||
], | ||
_o[base_types_1.ChainKey.KOV] = [(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.KOV)], | ||
_o[base_types_1.ChainKey.MUM] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.MATIC, base_types_1.ChainKey.MUM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.TEST, base_types_1.ChainKey.MUM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.MUM), | ||
_o[ChainKey.KOV] = [findDefaultCoinOnChain(CoinKey.ETH, ChainKey.KOV)], | ||
_o[ChainKey.MUM] = [ | ||
findDefaultCoinOnChain(CoinKey.MATIC, ChainKey.MUM), | ||
findDefaultCoinOnChain(CoinKey.TEST, ChainKey.MUM), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.MUM), | ||
// findDefaultCoinOnChain(CoinKey.USDT, ChainKey.MUM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.MUM), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.MUM), | ||
], | ||
_o[base_types_1.ChainKey.BSCT] = [(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.BNB, base_types_1.ChainKey.BSCT)], | ||
_o[base_types_1.ChainKey.ONET] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ONE, base_types_1.ChainKey.ONET), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.ONET), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.BNB, base_types_1.ChainKey.ONET), | ||
_o[ChainKey.BSCT] = [findDefaultCoinOnChain(CoinKey.BNB, ChainKey.BSCT)], | ||
_o[ChainKey.ONET] = [ | ||
findDefaultCoinOnChain(CoinKey.ONE, ChainKey.ONET), | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.ONET), | ||
findDefaultCoinOnChain(CoinKey.BNB, ChainKey.ONET), | ||
], | ||
_o); | ||
exports.wrappedTokens = (_p = {}, | ||
_p[base_types_1.ChainKey.ETH] = { | ||
export var wrappedTokens = (_p = {}, | ||
_p[ChainKey.ETH] = { | ||
// https://ww7.etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 | ||
@@ -1008,4 +1003,4 @@ id: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ETH, | ||
chainKey: base_types_1.ChainKey.ETH, | ||
chainId: ChainId.ETH, | ||
chainKey: ChainKey.ETH, | ||
key: 'WETH', | ||
@@ -1015,3 +1010,3 @@ name: 'WETH', | ||
}, | ||
_p[base_types_1.ChainKey.BSC] = { | ||
_p[ChainKey.BSC] = { | ||
// https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c | ||
@@ -1021,4 +1016,4 @@ id: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
key: 'WBNB', | ||
@@ -1028,3 +1023,3 @@ name: 'WBNB', | ||
}, | ||
_p[base_types_1.ChainKey.POL] = { | ||
_p[ChainKey.POL] = { | ||
// https://polygonscan.com/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270 | ||
@@ -1034,4 +1029,4 @@ id: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
key: 'WMATIC', | ||
@@ -1041,3 +1036,3 @@ name: 'WMATIC', | ||
}, | ||
_p[base_types_1.ChainKey.DAI] = { | ||
_p[ChainKey.DAI] = { | ||
// https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d | ||
@@ -1047,4 +1042,4 @@ id: '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
key: 'WXDAI', | ||
@@ -1054,3 +1049,3 @@ name: 'WXDAI', | ||
}, | ||
_p[base_types_1.ChainKey.FTM] = { | ||
_p[ChainKey.FTM] = { | ||
// | ||
@@ -1060,4 +1055,4 @@ id: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.FTM, | ||
chainKey: base_types_1.ChainKey.FTM, | ||
chainId: ChainId.FTM, | ||
chainKey: ChainKey.FTM, | ||
key: 'wFTM', | ||
@@ -1067,8 +1062,8 @@ name: 'wFTM', | ||
}, | ||
_p[base_types_1.ChainKey.ONE] = { | ||
_p[ChainKey.ONE] = { | ||
id: '0xcF664087a5bB0237a0BAd6742852ec6c8d69A27a', | ||
symbol: 'WONE', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONE, | ||
chainKey: base_types_1.ChainKey.ONE, | ||
chainId: ChainId.ONE, | ||
chainKey: ChainKey.ONE, | ||
key: 'WONE', | ||
@@ -1079,3 +1074,3 @@ name: 'WRAPPED ONE', | ||
// Testnets | ||
_p[base_types_1.ChainKey.ROP] = { | ||
_p[ChainKey.ROP] = { | ||
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab | ||
@@ -1085,4 +1080,4 @@ id: '0xc778417e063141139fce010982780140aa0cd5ab', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ROP, | ||
chainKey: base_types_1.ChainKey.ROP, | ||
chainId: ChainId.ROP, | ||
chainKey: ChainKey.ROP, | ||
key: 'WETH', | ||
@@ -1092,3 +1087,3 @@ name: 'WETH', | ||
}, | ||
_p[base_types_1.ChainKey.RIN] = { | ||
_p[ChainKey.RIN] = { | ||
// https://rinkeby.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab | ||
@@ -1098,4 +1093,4 @@ id: '0xc778417e063141139fce010982780140aa0cd5ab', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.RIN, | ||
chainKey: base_types_1.ChainKey.RIN, | ||
chainId: ChainId.RIN, | ||
chainKey: ChainKey.RIN, | ||
key: 'WETH', | ||
@@ -1105,3 +1100,3 @@ name: 'WETH', | ||
}, | ||
_p[base_types_1.ChainKey.GOR] = { | ||
_p[ChainKey.GOR] = { | ||
// https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6 | ||
@@ -1111,4 +1106,4 @@ id: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.GOR, | ||
chainKey: base_types_1.ChainKey.GOR, | ||
chainId: ChainId.GOR, | ||
chainKey: ChainKey.GOR, | ||
key: 'WETH', | ||
@@ -1118,3 +1113,3 @@ name: 'WETH', | ||
}, | ||
_p[base_types_1.ChainKey.MUM] = { | ||
_p[ChainKey.MUM] = { | ||
// https://mumbai.polygonscan.com/token/0x9c3c9283d3e44854697cd22d3faa240cfb032889 | ||
@@ -1124,4 +1119,4 @@ id: '0x9c3c9283d3e44854697cd22d3faa240cfb032889', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.MUM, | ||
chainKey: base_types_1.ChainKey.MUM, | ||
chainId: ChainId.MUM, | ||
chainKey: ChainKey.MUM, | ||
key: 'WMATIC', | ||
@@ -1131,8 +1126,8 @@ name: 'WMATIC', | ||
}, | ||
_p[base_types_1.ChainKey.ONET] = { | ||
_p[ChainKey.ONET] = { | ||
id: '0x7466d7d0C21Fa05F32F5a0Fa27e12bdC06348Ce2', | ||
symbol: 'WONE', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.ONET, | ||
chainKey: base_types_1.ChainKey.ONET, | ||
chainId: ChainId.ONET, | ||
chainKey: ChainKey.ONET, | ||
key: 'WONE', | ||
@@ -1147,7 +1142,7 @@ name: 'WRAPPED ONE', | ||
// | ||
exports.BASES_TO_CHECK_TRADES_AGAINST = (_q = {}, | ||
_q[base_types_1.ChainKey.ETH] = [ | ||
exports.wrappedTokens[base_types_1.ChainKey.ETH], | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.ETH), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.ETH), | ||
export var BASES_TO_CHECK_TRADES_AGAINST = (_q = {}, | ||
_q[ChainKey.ETH] = [ | ||
wrappedTokens[ChainKey.ETH], | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.ETH), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.ETH), | ||
{ | ||
@@ -1157,11 +1152,11 @@ id: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.ETH), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.ETH), | ||
], | ||
_q[base_types_1.ChainKey.DAI] = [ | ||
exports.wrappedTokens[base_types_1.ChainKey.DAI], | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.DAI), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.DAI), | ||
_q[ChainKey.DAI] = [ | ||
wrappedTokens[ChainKey.DAI], | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.DAI), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.DAI), | ||
{ | ||
@@ -1171,4 +1166,4 @@ id: '0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
@@ -1179,4 +1174,4 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
@@ -1187,4 +1182,4 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
@@ -1195,4 +1190,4 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
@@ -1203,9 +1198,9 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.DAI, | ||
chainKey: base_types_1.ChainKey.DAI, | ||
chainId: ChainId.DAI, | ||
chainKey: ChainKey.DAI, | ||
}, | ||
], | ||
_q[base_types_1.ChainKey.POL] = [ | ||
_q[ChainKey.POL] = [ | ||
// WETH[ChainId.MATIC], | ||
exports.wrappedTokens[base_types_1.ChainKey.POL], | ||
wrappedTokens[ChainKey.POL], | ||
{ | ||
@@ -1215,14 +1210,14 @@ id: '0xb371248dd0f9e4061ccf8850e9223ca48aa7ca4b', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.POL, | ||
chainKey: base_types_1.ChainKey.POL, | ||
chainId: ChainId.POL, | ||
chainKey: ChainKey.POL, | ||
}, | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.POL), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.POL), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.POL), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.POL), | ||
], | ||
_q[base_types_1.ChainKey.BSC] = [ | ||
exports.wrappedTokens[base_types_1.ChainKey.BSC], | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.BSC), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.BSC), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.BSC), | ||
_q[ChainKey.BSC] = [ | ||
wrappedTokens[ChainKey.BSC], | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.BSC), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.BSC), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.BSC), | ||
{ | ||
@@ -1232,4 +1227,4 @@ id: '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82', | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
}, | ||
@@ -1240,4 +1235,4 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
}, | ||
@@ -1248,4 +1243,4 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
}, | ||
@@ -1256,35 +1251,35 @@ { | ||
decimals: 18, | ||
chainId: base_types_1.ChainId.BSC, | ||
chainKey: base_types_1.ChainKey.BSC, | ||
chainId: ChainId.BSC, | ||
chainKey: ChainKey.BSC, | ||
}, | ||
], | ||
_q[base_types_1.ChainKey.OKT] = [], | ||
_q[base_types_1.ChainKey.FTM] = [ | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.FTM, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.FTM), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.FTM), | ||
_q[ChainKey.OKT] = [], | ||
_q[ChainKey.FTM] = [ | ||
findDefaultCoinOnChain(CoinKey.FTM, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.FTM), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.FTM), | ||
], | ||
_q[base_types_1.ChainKey.AVA] = [], | ||
_q[base_types_1.ChainKey.ARB] = [], | ||
_q[base_types_1.ChainKey.HEC] = [], | ||
_q[base_types_1.ChainKey.OPT] = [], | ||
_q[base_types_1.ChainKey.ONE] = [ | ||
exports.wrappedTokens[base_types_1.ChainKey.ONE], | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.ETH, base_types_1.ChainKey.ONE), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.DAI, base_types_1.ChainKey.ONE), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDT, base_types_1.ChainKey.ONE), | ||
(0, exports.findDefaultCoinOnChain)(base_types_1.CoinKey.USDC, base_types_1.ChainKey.ONE), | ||
_q[ChainKey.AVA] = [], | ||
_q[ChainKey.ARB] = [], | ||
_q[ChainKey.HEC] = [], | ||
_q[ChainKey.OPT] = [], | ||
_q[ChainKey.ONE] = [ | ||
wrappedTokens[ChainKey.ONE], | ||
findDefaultCoinOnChain(CoinKey.ETH, ChainKey.ONE), | ||
findDefaultCoinOnChain(CoinKey.DAI, ChainKey.ONE), | ||
findDefaultCoinOnChain(CoinKey.USDT, ChainKey.ONE), | ||
findDefaultCoinOnChain(CoinKey.USDC, ChainKey.ONE), | ||
], | ||
// Testnets | ||
_q[base_types_1.ChainKey.ROP] = [exports.wrappedTokens[base_types_1.ChainKey.ROP]], | ||
_q[base_types_1.ChainKey.RIN] = [exports.wrappedTokens[base_types_1.ChainKey.RIN]], | ||
_q[base_types_1.ChainKey.GOR] = [exports.wrappedTokens[base_types_1.ChainKey.GOR]], | ||
_q[base_types_1.ChainKey.KOV] = [], | ||
_q[base_types_1.ChainKey.MUM] = [exports.wrappedTokens[base_types_1.ChainKey.MUM]], | ||
_q[base_types_1.ChainKey.ARBT] = [], | ||
_q[base_types_1.ChainKey.OPTT] = [], | ||
_q[base_types_1.ChainKey.BSCT] = [], | ||
_q[base_types_1.ChainKey.HECT] = [], | ||
_q[base_types_1.ChainKey.ONET] = [exports.wrappedTokens[base_types_1.ChainKey.ONET]], | ||
_q[ChainKey.ROP] = [wrappedTokens[ChainKey.ROP]], | ||
_q[ChainKey.RIN] = [wrappedTokens[ChainKey.RIN]], | ||
_q[ChainKey.GOR] = [wrappedTokens[ChainKey.GOR]], | ||
_q[ChainKey.KOV] = [], | ||
_q[ChainKey.MUM] = [wrappedTokens[ChainKey.MUM]], | ||
_q[ChainKey.ARBT] = [], | ||
_q[ChainKey.OPTT] = [], | ||
_q[ChainKey.BSCT] = [], | ||
_q[ChainKey.HECT] = [], | ||
_q[ChainKey.ONET] = [wrappedTokens[ChainKey.ONET]], | ||
_q); |
@@ -1,16 +0,4 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./base.types"), exports); | ||
__exportStar(require("./chains.types"), exports); | ||
__exportStar(require("./coins.types"), exports); | ||
__exportStar(require("./step.types"), exports); | ||
export * from './base.types'; | ||
export * from './chains.types'; | ||
export * from './coins.types'; | ||
export * from './step.types'; |
@@ -1,7 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.emptyExecution = void 0; | ||
exports.emptyExecution = { | ||
export var emptyExecution = { | ||
status: 'NOT_STARTED', | ||
process: [], | ||
}; |
{ | ||
"name": "example-lifi-types", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Types for lifi projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
94629
2119