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xMjYuNCwxNDguOSwxMjYuNHogTTEzMy41LDU2LjRsMTUuNCw5djE4bDE1LjQtOXYtMThsLTE1LjQtOUwxMzMuNSw1Ni40CglMMTMzLjUsNTYuNHogTTgwLjYsMTQ4LjN2MThsMTUuNCw5bDE1LjQtOXYtMThMOTYsMTU3LjFMODAuNiwxNDguM3ogTTU0LDEyMC4zbDE1LjQsOXYtMTguMUw1NCwxMDIuM0w1NCwxMjAuM0w1NCwxMjAuM3oKCSBNODAuNiw1Ni40bDE1LjQsOWwxNS40LTlMOTYsNDcuNUM5Niw0Ny40LDgwLjYsNTYuNCw4MC42LDU2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg=='; | ||
@@ -10,8 +10,15 @@ var bsc = { | ||
fullName: 'BNB Smart Chain Mainnet', | ||
logo: logo$6, | ||
logo: logo$5, | ||
currency: { | ||
name: 'BNB', | ||
symbol: 'BNB', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', '0x55d398326f99059fF775485246999027B3197955', '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56'] | ||
}, | ||
explorer: 'https://bscscan.com', | ||
@@ -25,3 +32,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": logo$6, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": logo$5, "type": "NATIVE"}, | ||
{"address": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "symbol": "WBNB", "name": "Wrapped BNB", "decimals": 18, "logo": "https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png", "type": "20"}, | ||
@@ -35,6 +42,8 @@ {"address": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56", "symbol": "BUSD", "name": "BUSD Token", "decimals": 18, "logo": "https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56/logo.png", "type": "20"}, | ||
{"address": "0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb", "symbol": "DEPAY", "name": "DePay", "decimals": 18, "logo": "https://integrate.depay.com/tokens/bsc/0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb/image", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$5 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiCgkgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OT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decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7', '0x6B175474E89094C44Da98b954EedeAC495271d0F'] | ||
}, | ||
explorer: 'https://etherscan.io', | ||
@@ -63,3 +79,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": logo$5, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": logo$4, "type": "NATIVE"}, | ||
{"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": "https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", "type": "20"}, | ||
@@ -74,6 +90,8 @@ {"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png", "type": "20"}, | ||
{"address": "0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb", "symbol": "DEPAY", "name": "DePay", "decimals": 18, "logo": "https://integrate.depay.com/tokens/ethereum/0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb/image", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$4 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTkyIDE5MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iY2lyY2xlIj4KCTxnIGlkPSJGYW50b20tY2lyY2xlIj4KCQk8Y2lyY2xlIGlkPSJPdmFsIiBmaWxsUnVsZT0iZXZlbm9kZCIgY2xpcFJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMxOTY5RkYiIGNsYXNzPSJzdDAiIGN4PSI5NiIgY3k9Ijk2IiByPSI4MC40Ii8+CgkJPHBhdGggaWQ9IlNoYXBlIiBmaWxsPSIjRkZGRkZGIiBkPSJNOTEuMSw0MS4yYzIuNy0xLjQsNi44LTEuNCw5LjUsMGwyNy42LDE0LjZjMS42LDAuOSwyLjUsMi4xLDIuNywzLjVoMHY3My4zCgkJCWMwLDEuNC0wLjksMi45LTIuNywzLjhsLTI3LjYsMTQuNmMtMi43LDEuNC02LjgsMS40LTkuNSwwbC0yNy42LTE0LjZjLTEuOC0wLjktMi42LTIuNC0yLjctMy44YzAtMC4xLDAtMC4zLDAtMC40bDAtNzIuNAoJCQljMC0wLjEsMC0wLjIsMC0wLjNsMC0wLjJoMGMwLjEtMS4zLDEtMi42LDIuNi0zLjVMOTEuMSw0MS4yeiBNMTI2LjYsOTkuOWwtMjYsMT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TguNyw0NS4xCgkJCWMtMS40LTAuOC00LTAuOC01LjUsMEw2NS42LDU5LjdjMCwwLTAuMSwwLTAuMSwwbDAsMGwwLDBsMC4xLDBsMjcuNiwxNC42YzEuNCwwLjgsNCwwLjgsNS41LDBsMjcuNi0xNC42YzAsMCwwLjEsMCwwLjEsMGwwLDBsMCwwCgkJCWwtMC4xLDBMOTguNyw0NS4xeiBNMTMwLjcsNDYuNWwxLjcsMS4xbDAuMywwLjJjMC41LDAuMywwLjksMC42LDEuMywwLjhjNC4yLDIuOCw1LjcsNS45LDUuNywxMi4zbDAsMC4yaC00LjNjMC0yLjgtMC4zLTQuNy0xLTYKCQkJYy0wLjUtMS4xLTEuMy0xLjktMi44LTIuOWwtMC4xLTAuMWMtMC4zLTAuMi0wLjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K'; | ||
@@ -87,8 +105,15 @@ var fantom = { | ||
fullName: 'Fantom Opera', | ||
logo: logo$4, | ||
logo: logo$3, | ||
currency: { | ||
name: 'Fantom', | ||
symbol: 'FTM', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x04068DA6C83AFCFA0e13ba15A6696662335D5B75', '0x049d68029688eAbF473097a2fC38ef61633A3C7A', '0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E'] | ||
}, | ||
explorer: 'https://ftmscan.com', | ||
@@ -102,4 +127,4 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "FTM", "name": "Fantom", "decimals": 18, "logo": logo$4, "type": "NATIVE"}, | ||
{"address": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", "symbol": "WFTM", "name": "Wrapped Fantom", "decimals": 18, "logo": logo$4, "type": "20"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "FTM", "name": "Fantom", "decimals": 18, "logo": logo$3, "type": "NATIVE"}, | ||
{"address": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", "symbol": "WFTM", "name": "Wrapped Fantom", "decimals": 18, "logo": logo$3, "type": "20"}, | ||
{"address": "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://assets.spooky.fi/tokens/USDC.png", "type": "20"}, | ||
@@ -110,6 +135,8 @@ {"address": "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", "symbol": "DAI", "name": "Dai Stablecoin", "decimals": 18, "logo": "https://assets.spooky.fi/tokens/DAI.png", "type": "20"}, | ||
{"address": "0x321162Cd933E2Be498Cd2267a90534A804051b11", "symbol": "BTC", "name": "Bitcoin", "decimals": 8, "logo": "https://assets.spooky.fi/tokens/wBTC.png", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$3 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDp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MS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg=='; | ||
@@ -123,8 +150,15 @@ var polygon = { | ||
fullName: 'Polygon Mainnet', | ||
logo: logo$3, | ||
logo: logo$2, | ||
currency: { | ||
name: 'Polygon', | ||
symbol: 'MATIC', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063'] | ||
}, | ||
explorer: 'https://polygonscan.com', | ||
@@ -138,3 +172,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "MATIC", "name": "Polygon", "decimals": 18, "logo": logo$3, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "MATIC", "name": "Polygon", "decimals": 18, "logo": logo$2, "type": "NATIVE"}, | ||
{"address": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", "symbol": "WMATIC", "name": "Wrapped Matic", "decimals": 18, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0/logo.png", "type": "20"}, | ||
@@ -147,6 +181,8 @@ {"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", "type": "20"}, | ||
{"address": "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6", "symbol": "WBTC", "name": "Wrapped BTC", "decimals": 8, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png", "type": "20"} | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$2 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9IlNPTEFOQV9TVkdJRF8xIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjM1LjU5NzQiIHkxPSI3NzIuOTI3NyIgeDI9IjE4LjE0MjIiIHkyPSI4MDYuMzYxNiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgLTc2NS43NjUpIj4KCTxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMEZGQTMiLz4KCTxzdG9wICBvZmZzZXQ9IjEiIHN0eWxlPSJzdG9wLWNvbG9yOiNEQzFGRkYiLz4KPC9saW5lYXJ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OL', | ||
decimals: 9 | ||
decimals: 9, | ||
address: '11111111111111111111111111111111' | ||
}, | ||
wrapped: { | ||
address: 'So11111111111111111111111111111111111111112' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'] | ||
}, | ||
explorer: 'https://solscan.io', | ||
@@ -174,18 +217,11 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "11111111111111111111111111111111", "symbol": "SOL", "name": "Solana", "decimals": 9, "logo": logo$2, "type": "NATIVE"}, | ||
{"address": "11111111111111111111111111111111", "symbol": "SOL", "name": "Solana", "decimals": 9, "logo": logo$1, "type": "NATIVE"}, | ||
{"address": "So11111111111111111111111111111111111111112", "symbol": "WSOL", "name": "Wrapped SOL", "decimals": 9, "logo": "https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png", "type": "SPL"}, | ||
{"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png", "type": "SPL"}, | ||
{"address": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "symbol": "USDT", "name": "USDT", "decimals": 6, "logo": "https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png", "type": "SPL"} | ||
] | ||
], | ||
zero: '0', | ||
maxInt: '340282366920938463463374607431768211455', | ||
}; | ||
const logo$1 = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyODMuNSAyODMuNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxjaXJjbGUgZmlsbD0iI0YwRUZFRiIgY3g9IjE0MS43IiBjeT0iMTQxLjciIHI9IjE0MS43Ii8+PHBhdGggZmlsbD0iI0FCQUJBQiIgZD0iTTEyNyAxNzUuMXYtNC40YzAtOC40IDEuMS0xNS4zIDMuNC0yMC43IDIuMy01LjQgNS4xLTEwIDguNC0xMy44IDMuMy0zLjcgNi42LTcgMTAuMS05LjdzNi4zLTUuNiA4LjYtOC41YzIuMy0yLjkgMy40LTYuNCAzLjQtMTAuNSAwLTUtMS4xLTguNy0zLjMtMTEuMS0yLjItMi40LTUtNC04LjQtNC44LTMuNC0uOC02LjktMS4zLTEwLjUtMS4zLTUuOCAwLTExLjggMS0xNy45IDIuOS02LjEgMS45LTExLjUgNC43LTE2IDguNFY3NGMyLjMtMS43IDUuNC0zLjMgOS40LTQuOSA0LTEuNiA4LjQtMi45IDEzLjQtNHMxMC4xLTEuNiAxNS41LTEuNmM4LjEgMCAxNS4xIDEuMSAyMS4xIDMuNCA2IDIuMyAxMC44IDUuNSAxNC43IDkuNSAzLjggNCA2LjcgOC43IDguNiAxNC4xIDEuOSA1LjMgMi45IDExLjEgMi45IDE3LjIgMCA2LjYtMS4xIDEyLTMuNCAxNi4zLTIuMyA0LjMtNS4xIDgtOC41IDExLjItMy40IDMuMi02LjggNi40LTEwLjIgOS41LTMuNCAzLjEtNi4zIDYuOC04LjYgMTFzLTMuNCA5LjUtMy40IDE1Ljl2My40SDEyN3ptLTEuOCA0My4xdi0yNy43aDMzdjI3LjdoLTMzeiIvPjwvc3ZnPgo='; | ||
var unknown = { | ||
id: 'unknown', | ||
name: 'unknown', | ||
label: 'Unknown', | ||
logo: logo$1 | ||
}; | ||
const logo = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiCgkgdGV4dC1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaXR5IgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDUuNCA0NS40IgoJIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8cGF0aCBmaWxsPSIjMDAzN0MxIiBkPSJNMjguOCwyMi44bC02LjEsMTAuNmwtNi4xLTEwLjdMMjguOCwyMi44TDI4LjgsMjIuOHogTTM0LjksMTkuMkgxMC41bDEyLjIsMjEuNEwzNC45LDE5LjJ6IE02LjUsMTIuMWwyLDMuNgoJaDI4LjNsMi4xLTMuNkg2LjV6Ii8+Cjwvc3ZnPgo='; | ||
@@ -204,4 +240,11 @@ | ||
symbol: 'VLX', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0xc111c29A988AE0C0087D97b33C6E6766808A3BD3', '0x01445C31581c354b7338AC35693AB2001B50b9aE'] | ||
}, | ||
explorer: 'https://evmexplorer.velas.com', | ||
@@ -221,6 +264,8 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
{"address": "0xaBf26902Fd7B624e0db40D31171eA9ddDf078351", "symbol": "WAG", "name": "WagyuSwap", "decimals": 18, "logo": "https://github.com/wagyuswapapp/assets/blob/master/blockchains/velas/assets/0xabf26902fd7b624e0db40d31171ea9dddf078351/logo.png?raw=true", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
let all = [ | ||
const all = [ | ||
ethereum, | ||
@@ -231,41 +276,38 @@ bsc, | ||
fantom, | ||
velas, | ||
unknown | ||
velas | ||
]; | ||
let Blockchain = { | ||
all, | ||
const findById = function (id) { | ||
let fixedId = id; | ||
if (fixedId.match('0x0')) { | ||
// remove leading 0 | ||
fixedId = fixedId.replace(/0x0+/, '0x'); | ||
} | ||
let found = all.find((blockchain) => { | ||
return blockchain.id && blockchain.id.toLowerCase() == fixedId.toLowerCase() | ||
}); | ||
return found | ||
}; | ||
findById: function (id) { | ||
let fixedId = id; | ||
if (fixedId.match('0x0')) { | ||
// remove leading 0 | ||
fixedId = fixedId.replace(/0x0+/, '0x'); | ||
} | ||
let found = all.find((blockchain) => { | ||
return blockchain.id && blockchain.id.toLowerCase() == fixedId.toLowerCase() | ||
}); | ||
if(found == undefined) { | ||
found = all.find((blockchain) => { | ||
return blockchain.id == 'unknown' | ||
}); | ||
} | ||
return found | ||
}, | ||
const findByNetworkId = function (networkId) { | ||
networkId = networkId.toString(); | ||
let found = all.find((blockchain) => { | ||
return blockchain.networkId == networkId | ||
}); | ||
return found | ||
}; | ||
findByNetworkId: function (networkId) { | ||
networkId = networkId.toString(); | ||
let found = all.find((blockchain) => { | ||
return blockchain.networkId == networkId | ||
}); | ||
return found | ||
}, | ||
const findByName = function (name) { | ||
return all.find((blockchain) => { | ||
return blockchain.name == name | ||
}) | ||
}; | ||
findByName: function (name) { | ||
return all.find((blockchain) => { | ||
return blockchain.name == name | ||
}) | ||
}, | ||
var index = { | ||
all, | ||
findById, | ||
findByNetworkId, | ||
findByName, | ||
}; | ||
export { Blockchain }; | ||
export { index as default }; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Web3Blockchains = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Web3Blockchains = factory()); | ||
}(this, (function () { 'use strict'; | ||
const logo$6 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxOTIgMTkyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxOTIgMTkyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxwYXRoIGZpbGw9IiNGMEI5MEIiIGQ9Ik01NCw0MS4xbDQyLTI0LjJsNDIsMjQuMmwtMTUuNCw4LjlMOTYsMzQuOUw2OS40LDUwTDU0LDQxLjF6IE0xMzgsNzEuN2wtMTUuNC04LjlMOTYsNzhMNjkuNCw2Mi43bC0xNS40LDl2MTgKCUw4MC42LDEwNXYzMC41bDE1LjQsOWwxNS40LTlWMTA1TDEzOCw4OS43VjcxLjd6IE0xMzgsMTIwLjN2LTE4bC0xNS40LDguOXYxOEMxMjIuNiwxMjkuMSwxMzgsMTIwLjMsMTM4LDEyMC4zeiBNMTQ4LjksMTI2LjQKCWwtMjYuNiwxNS4zdjE4bDQyLTI0LjJWODdsLTE1LjQsOUMxNDguOSw5NiwxNDguOSwxMjYuNCwxNDguOSwxMjYuNHog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XYzMC41bDE1LjQsOWwxNS40LTlWMTA1TDEzOCw4OS43VjcxLjd6IE0xMzgsMTIwLjN2LTE4bC0xNS40LDguOXYxOEMxMjIuNiwxMjkuMSwxMzgsMTIwLjMsMTM4LDEyMC4zeiBNMTQ4LjksMTI2LjQKCWwtMjYuNiwxNS4zdjE4bDQyLTI0LjJWODdsLTE1LjQsOUMxNDguOSw5NiwxNDguOSwxMjYuNCwxNDguOSwxMjYuNHogTTEzMy41LDU2LjRsMTUuNCw5djE4bDE1LjQtOXYtMThsLTE1LjQtOUwxMzMuNSw1Ni40CglMMTMzLjUsNTYuNHogTTgwLjYsMTQ4LjN2MThsMTUuNCw5bDE1LjQtOXYtMThMOTYsMTU3LjFMODAuNiwxNDguM3ogTTU0LDEyMC4zbDE1LjQsOXYtMTguMUw1NCwxMDIuM0w1NCwxMjAuM0w1NCwxMjAuM3oKCSBNODAuNiw1Ni40bDE1LjQsOWwxNS40LTlMOTYsNDcuNUM5Niw0Ny40LDgwLjYsNTYuNCw4MC42LDU2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg=='; | ||
@@ -16,8 +16,15 @@ var bsc = { | ||
fullName: 'BNB Smart Chain Mainnet', | ||
logo: logo$6, | ||
logo: logo$5, | ||
currency: { | ||
name: 'BNB', | ||
symbol: 'BNB', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', '0x55d398326f99059fF775485246999027B3197955', '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56'] | ||
}, | ||
explorer: 'https://bscscan.com', | ||
@@ -31,3 +38,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": logo$6, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": logo$5, "type": "NATIVE"}, | ||
{"address": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "symbol": "WBNB", "name": "Wrapped BNB", "decimals": 18, "logo": "https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png", "type": "20"}, | ||
@@ -41,6 +48,8 @@ {"address": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56", "symbol": "BUSD", "name": "BUSD Token", "decimals": 18, "logo": "https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56/logo.png", "type": "20"}, | ||
{"address": "0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb", "symbol": "DEPAY", "name": "DePay", "decimals": 18, "logo": "https://integrate.depay.com/tokens/bsc/0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb/image", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$5 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiCgkgaW1hZ2UtcmVuZGVyaW5nPSJv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jMzkzOTM5IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K'; | ||
@@ -54,8 +63,15 @@ var ethereum = { | ||
fullName: 'Ethereum Mainnet', | ||
logo: logo$5, | ||
logo: logo$4, | ||
currency: { | ||
name: 'Ether', | ||
symbol: 'ETH', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7', '0x6B175474E89094C44Da98b954EedeAC495271d0F'] | ||
}, | ||
explorer: 'https://etherscan.io', | ||
@@ -69,3 +85,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": logo$5, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": logo$4, "type": "NATIVE"}, | ||
{"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": "https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", "type": "20"}, | ||
@@ -80,6 +96,8 @@ {"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png", "type": "20"}, | ||
{"address": "0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb", "symbol": "DEPAY", "name": "DePay", "decimals": 18, "logo": "https://integrate.depay.com/tokens/ethereum/0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb/image", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$4 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTkyIDE5MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iY2lyY2xlIj4KCTxnIGlkPSJGYW50b20tY2lyY2xlIj4KCQk8Y2lyY2xlIGlkPSJPdmFsIiBmaWxsUnVsZT0iZXZlbm9kZCIgY2xpcFJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMxOTY5RkYiIGNsYXNzPSJzdDAiIGN4PSI5NiIgY3k9Ijk2IiByPSI4MC40Ii8+CgkJPHBhdGggaWQ9IlNoYXBlIiBmaWxsPSIjRkZGRkZGIiBkPSJNOTEuMSw0MS4yYzIuNy0xLjQsNi44LTEuNCw5LjUsMGwyNy42LDE0LjZjMS42LDAuOSwyLjUsMi4xLDIuNywzLjVoMHY3My4zCgkJCWMwLDEuNC0wLjksMi45LTIuNywzLjhsLTI3LjYsMTQuN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C42LTAuMmwyNy42LTE0LjZjMCwwLDAuMSwwLDAuMSwwbDAsMGwwLDBsLTAuMSwwTDk4LjgsODAuNwoJCQlDOTguNiw4MC42LDk4LjQsODAuNSw5OC4yLDgwLjV6IE0xMjYuNiw2NC40bC0yNC44LDEzbDI0LjgsMTNWNjQuNHogTTY1LjIsNjQuNHYyNi4xbDI0LjgtMTNMNjUuMiw2NC40eiBNOTguNyw0NS4xCgkJCWMtMS40LTAuOC00LTAuOC01LjUsMEw2NS42LDU5LjdjMCwwLTAuMSwwLTAuMSwwbDAsMGwwLDBsMC4xLDBsMjcuNiwxNC42YzEuNCwwLjgsNCwwLjgsNS41LDBsMjcuNi0xNC42YzAsMCwwLjEsMCwwLjEsMGwwLDBsMCwwCgkJCWwtMC4xLDBMOTguNyw0NS4xeiBNMTMwLjcsNDYuNWwxLjcsMS4xbDAuMywwLjJjMC41LDAuMywwLjksMC42LDEuMywwLjhjNC4yLDIuOCw1LjcsNS45LDUuNywxMi4zbDAsMC4yaC00LjNjMC0yLjgtMC4zLTQuNy0xLTYKCQkJYy0wLjUtMS4xLTEuMy0xLjktMi44LTIuOWwtMC4xLTAuMWMtMC4zLTAuMi0wLjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K'; | ||
@@ -93,8 +111,15 @@ var fantom = { | ||
fullName: 'Fantom Opera', | ||
logo: logo$4, | ||
logo: logo$3, | ||
currency: { | ||
name: 'Fantom', | ||
symbol: 'FTM', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x04068DA6C83AFCFA0e13ba15A6696662335D5B75', '0x049d68029688eAbF473097a2fC38ef61633A3C7A', '0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E'] | ||
}, | ||
explorer: 'https://ftmscan.com', | ||
@@ -108,4 +133,4 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "FTM", "name": "Fantom", "decimals": 18, "logo": logo$4, "type": "NATIVE"}, | ||
{"address": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", "symbol": "WFTM", "name": "Wrapped Fantom", "decimals": 18, "logo": logo$4, "type": "20"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "FTM", "name": "Fantom", "decimals": 18, "logo": logo$3, "type": "NATIVE"}, | ||
{"address": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", "symbol": "WFTM", "name": "Wrapped Fantom", "decimals": 18, "logo": logo$3, "type": "20"}, | ||
{"address": "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://assets.spooky.fi/tokens/USDC.png", "type": "20"}, | ||
@@ -116,6 +141,8 @@ {"address": "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", "symbol": "DAI", "name": "Dai Stablecoin", "decimals": 18, "logo": "https://assets.spooky.fi/tokens/DAI.png", "type": "20"}, | ||
{"address": "0x321162Cd933E2Be498Cd2267a90534A804051b11", "symbol": "BTC", "name": "Bitcoin", "decimals": 8, "logo": "https://assets.spooky.fi/tokens/wBTC.png", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$3 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPS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OS0wLjQsMS42LTEuMSwyCglsLTMuOSwyLjNjLTAuNywwLjQtMS41LDAuNC0yLjIsMGwtNC0yLjNjLTAuNy0wLjQtMS4xLTEuMS0xLjEtMnYtMi45TDIxLDI4Ljd2My4xYzAsMC45LDAuNCwxLjYsMS4xLDJsNy41LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw3LjUtNC40YzAuNy0wLjQsMS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg=='; | ||
@@ -129,8 +156,15 @@ var polygon = { | ||
fullName: 'Polygon Mainnet', | ||
logo: logo$3, | ||
logo: logo$2, | ||
currency: { | ||
name: 'Polygon', | ||
symbol: 'MATIC', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063'] | ||
}, | ||
explorer: 'https://polygonscan.com', | ||
@@ -144,3 +178,3 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "MATIC", "name": "Polygon", "decimals": 18, "logo": logo$3, "type": "NATIVE"}, | ||
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "MATIC", "name": "Polygon", "decimals": 18, "logo": logo$2, "type": "NATIVE"}, | ||
{"address": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", "symbol": "WMATIC", "name": "Wrapped Matic", "decimals": 18, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0/logo.png", "type": "20"}, | ||
@@ -153,6 +187,8 @@ {"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", "type": "20"}, | ||
{"address": "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6", "symbol": "WBTC", "name": "Wrapped BTC", "decimals": 8, "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png", "type": "20"} | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
const logo$2 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9IlNPTEFOQV9TVkdJRF8xIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjM1LjU5NzQiIHkxPSI3NzIuOTI3NyIgeDI9IjE4LjE0MjIiIHkyPSI4MDY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NywwLjYtMC40LDAuOWw1LDVjMC4yLDAuMiwwLjUsMC4zLDAuNywwLjNIMzhjMC41LDAsMC43LTAuNiwwLjQtMC45TDMzLjQsMTkuOHoiLz4KPC9zdmc+Cg=='; | ||
@@ -165,8 +201,15 @@ var solana = { | ||
fullName: 'Solana', | ||
logo: logo$2, | ||
logo: logo$1, | ||
currency: { | ||
name: 'Solana', | ||
symbol: 'SOL', | ||
decimals: 9 | ||
decimals: 9, | ||
address: '11111111111111111111111111111111' | ||
}, | ||
wrapped: { | ||
address: 'So11111111111111111111111111111111111111112' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'] | ||
}, | ||
explorer: 'https://solscan.io', | ||
@@ -180,18 +223,11 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
tokens: [ // only major tokens | ||
{"address": "11111111111111111111111111111111", "symbol": "SOL", "name": "Solana", "decimals": 9, "logo": logo$2, "type": "NATIVE"}, | ||
{"address": "11111111111111111111111111111111", "symbol": "SOL", "name": "Solana", "decimals": 9, "logo": logo$1, "type": "NATIVE"}, | ||
{"address": "So11111111111111111111111111111111111111112", "symbol": "WSOL", "name": "Wrapped SOL", "decimals": 9, "logo": "https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png", "type": "SPL"}, | ||
{"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "logo": "https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png", "type": "SPL"}, | ||
{"address": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "symbol": "USDT", "name": "USDT", "decimals": 6, "logo": "https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png", "type": "SPL"} | ||
] | ||
], | ||
zero: '0', | ||
maxInt: '340282366920938463463374607431768211455', | ||
}; | ||
const logo$1 = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyODMuNSAyODMuNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxjaXJjbGUgZmlsbD0iI0YwRUZFRiIgY3g9IjE0MS43IiBjeT0iMTQxLjciIHI9IjE0MS43Ii8+PHBhdGggZmlsbD0iI0FCQUJBQiIgZD0iTTEyNyAxNzUuMXYtNC40YzAtOC40IDEuMS0xNS4zIDMuNC0yMC43IDIuMy01LjQgNS4xLTEwIDguNC0xMy44IDMuMy0zLjcgNi42LTcgMTAuMS05LjdzNi4zLTUuNiA4LjYtOC41YzIuMy0yLjkgMy40LTYuNCAzLjQtMTAuNSAwLTUtMS4xLTguNy0zLjMtMTEuMS0yLjItMi40LTUtNC04LjQtNC44LTMuNC0uOC02LjktMS4zLTEwLjUtMS4zLTUuOCAwLTExLjggMS0xNy45IDIuOS02LjEgMS45LTExLjUgNC43LTE2IDguNFY3NGMyLjMtMS43IDUuNC0zLjMgOS40LTQuOSA0LTEuNiA4LjQtMi45IDEzLjQtNHMxMC4xLTEuNiAxNS41LTEuNmM4LjEgMCAxNS4xIDEuMSAyMS4xIDMuNCA2IDIuMyAxMC44IDUuNSAxNC43IDkuNSAzLjggNCA2LjcgOC43IDguNiAxNC4xIDEuOSA1LjMgMi45IDExLjEgMi45IDE3LjIgMCA2LjYtMS4xIDEyLTMuNCAxNi4zLTIuMyA0LjMtNS4xIDgtOC41IDExLjItMy40IDMuMi02LjggNi40LTEwLjIgOS41LTMuNCAzLjEtNi4zIDYuOC04LjYgMTFzLTMuNCA5LjUtMy40IDE1Ljl2My40SDEyN3ptLTEuOCA0My4xdi0yNy43aDMzdjI3LjdoLTMzeiIvPjwvc3ZnPgo='; | ||
var unknown = { | ||
id: 'unknown', | ||
name: 'unknown', | ||
label: 'Unknown', | ||
logo: logo$1 | ||
}; | ||
const logo = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiCgkgdGV4dC1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaXR5IgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDUuNCA0NS40IgoJIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8cGF0aCBmaWxsPSIjMDAzN0MxIiBkPSJNMjguOCwyMi44bC02LjEsMTAuNmwtNi4xLTEwLjdMMjguOCwyMi44TDI4LjgsMjIuOHogTTM0LjksMTkuMkgxMC41bDEyLjIsMjEuNEwzNC45LDE5LjJ6IE02LjUsMTIuMWwyLDMuNgoJaDI4LjNsMi4xLTMuNkg2LjV6Ii8+Cjwvc3ZnPgo='; | ||
@@ -210,4 +246,11 @@ | ||
symbol: 'VLX', | ||
decimals: 18 | ||
decimals: 18, | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE' | ||
}, | ||
wrapped: { | ||
address: '0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126' | ||
}, | ||
stables: { // max. 3 per fiat currency | ||
usd: ['0xc111c29A988AE0C0087D97b33C6E6766808A3BD3', '0x01445C31581c354b7338AC35693AB2001B50b9aE'] | ||
}, | ||
explorer: 'https://evmexplorer.velas.com', | ||
@@ -227,6 +270,8 @@ explorerUrlFor: ({ transaction, token, address })=>{ | ||
{"address": "0xaBf26902Fd7B624e0db40D31171eA9ddDf078351", "symbol": "WAG", "name": "WagyuSwap", "decimals": 18, "logo": "https://github.com/wagyuswapapp/assets/blob/master/blockchains/velas/assets/0xabf26902fd7b624e0db40d31171ea9dddf078351/logo.png?raw=true", "type": "20"}, | ||
] | ||
], | ||
zero: '0x0000000000000000000000000000000000000000', | ||
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935', | ||
}; | ||
let all = [ | ||
const all = [ | ||
ethereum, | ||
@@ -237,45 +282,40 @@ bsc, | ||
fantom, | ||
velas, | ||
unknown | ||
velas | ||
]; | ||
let Blockchain = { | ||
all, | ||
const findById = function (id) { | ||
let fixedId = id; | ||
if (fixedId.match('0x0')) { | ||
// remove leading 0 | ||
fixedId = fixedId.replace(/0x0+/, '0x'); | ||
} | ||
let found = all.find((blockchain) => { | ||
return blockchain.id && blockchain.id.toLowerCase() == fixedId.toLowerCase() | ||
}); | ||
return found | ||
}; | ||
findById: function (id) { | ||
let fixedId = id; | ||
if (fixedId.match('0x0')) { | ||
// remove leading 0 | ||
fixedId = fixedId.replace(/0x0+/, '0x'); | ||
} | ||
let found = all.find((blockchain) => { | ||
return blockchain.id && blockchain.id.toLowerCase() == fixedId.toLowerCase() | ||
}); | ||
if(found == undefined) { | ||
found = all.find((blockchain) => { | ||
return blockchain.id == 'unknown' | ||
}); | ||
} | ||
return found | ||
}, | ||
const findByNetworkId = function (networkId) { | ||
networkId = networkId.toString(); | ||
let found = all.find((blockchain) => { | ||
return blockchain.networkId == networkId | ||
}); | ||
return found | ||
}; | ||
findByNetworkId: function (networkId) { | ||
networkId = networkId.toString(); | ||
let found = all.find((blockchain) => { | ||
return blockchain.networkId == networkId | ||
}); | ||
return found | ||
}, | ||
const findByName = function (name) { | ||
return all.find((blockchain) => { | ||
return blockchain.name == name | ||
}) | ||
}; | ||
findByName: function (name) { | ||
return all.find((blockchain) => { | ||
return blockchain.name == name | ||
}) | ||
}, | ||
var index = { | ||
all, | ||
findById, | ||
findByNetworkId, | ||
findByName, | ||
}; | ||
exports.Blockchain = Blockchain; | ||
return index; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
{ | ||
"name": "@depay/web3-blockchains", | ||
"moduleName": "Web3Blockchains", | ||
"version": "6.5.1", | ||
"version": "7.0.0", | ||
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.", | ||
@@ -6,0 +6,0 @@ "main": "dist/umd/index.js", |
@@ -14,5 +14,5 @@ ## Quickstart | ||
```javascript | ||
import { Blockchain } from '@depay/web3-blockchains' | ||
import Blockchains from '@depay/web3-blockchains' | ||
Blockchain.all | ||
Blockchains.all | ||
// [ | ||
@@ -24,12 +24,34 @@ // { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' }, | ||
Blockchain.findByName('ethereum') | ||
Blockchains.findByName('ethereum') | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
Blockchain.findById('0x1') | ||
Blockchains.findById('0x1') | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
Blockchain.findByNetworkId(1) | ||
Blockchains.findByNetworkId(1) | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
``` | ||
or | ||
```javascript | ||
import { all, findByName, findById, findByNetworkId } from '@depay/web3-blockchains' | ||
all | ||
// [ | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' }, | ||
// { name: 'bsc', id: '0x38', label: 'Binance Smart Chain', logo: '...' }, | ||
// ... | ||
// ] | ||
findByName('ethereum') | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
findById('0x1') | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
findByNetworkId(1) | ||
// { name: 'ethereum', id: '0x1', label: 'Ethereum', logo: '...' } | ||
``` | ||
## Support | ||
@@ -63,6 +85,27 @@ | ||
decimals: String, // 18 | ||
address: String, // address or placeholder address | ||
}, | ||
wrapped: { Object | ||
address: String // address of the wrapped native scurrency | ||
}, | ||
stables: { Object | ||
usd: [ Array | ||
String // 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | ||
] | ||
}, | ||
explorer: String (URL), // https://etherscan.io, https://bncscan.com, ... | ||
explorerUrlFor: Function ({ transaction || token }) returns String, // https://etherscan.io/tx/..., https://etherscan.io/token/... | ||
rpc: String (URL) // ... | ||
rpc: String (URL), // ... | ||
tokens: [ Array | ||
{ Object | ||
address: String, // 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | ||
symbol: String, // USDC | ||
name: String, // USD Coin | ||
decimals: Integer, // 6 | ||
logo: String(URL|Data URL), // https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x853d955aCEf822Db058eb8505911ED77F175b99e/logo.png | ||
type: String, // 20 | ||
}, | ||
], | ||
zero: String, // 0x0000000000000000000000000000000000000000 | ||
maxInt: String, // 115792089237316195423570985008687907853269984665640564039457584007913129639935 | ||
} | ||
@@ -99,5 +142,5 @@ ``` | ||
```javascript | ||
import { Blockchain } from '@depay/web3-blockchains' | ||
import Blockchains from '@depay/web3-blockchains' | ||
Blockchain.all | ||
Blockchains.all | ||
// [ | ||
@@ -114,8 +157,8 @@ // { name: 'ethereum', id: '0x1', networkId: '1', label: 'Ethereum', logo: '...' }, | ||
```javascript | ||
import { Blockchain } from '@depay/web3-blockchains' | ||
import Blockchains from '@depay/web3-blockchains' | ||
Blockchain.findById('0x1') | ||
Blockchains.findById('0x1') | ||
// { name: 'ethereum', id: '0x1', networkId: '1', label: 'Ethereum', logo: '...' } | ||
Blockchain.findById('0x38') | ||
Blockchains.findById('0x38') | ||
// { name: 'bsc', id: '0x38', networkId: '56', label: 'Binance Smart Chain', logo: '...' } | ||
@@ -127,8 +170,8 @@ ``` | ||
```javascript | ||
import { Blockchain } from '@depay/web3-blockchains' | ||
import Blockchains from '@depay/web3-blockchains' | ||
Blockchain.findByName('ethereum') | ||
Blockchains.findByName('ethereum') | ||
// { name: 'ethereum', id: '0x1', networkId: '1', label: 'Ethereum', logo: '...' } | ||
Blockchain.findByName('bsc') | ||
Blockchains.findByName('bsc') | ||
// { name: 'bsc', id: '0x38', networkId: '56', label: 'Binance Smart Chain', logo: '...' } | ||
@@ -140,8 +183,8 @@ ``` | ||
```javascript | ||
import { Blockchain } from '@depay/web3-blockchains' | ||
import Blockchains from '@depay/web3-blockchains' | ||
Blockchain.findByNetworkId(1) | ||
Blockchains.findByNetworkId(1) | ||
// { name: 'ethereum', id: '0x1', networkId: '1', label: 'Ethereum', logo: '...' } | ||
Blockchain.findByNetworkId('56') | ||
Blockchains.findByNetworkId('56') | ||
// { name: 'bsc', id: '0x38', networkId: '56', label: 'Binance Smart Chain', logo: '...' } | ||
@@ -148,0 +191,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63330
672
194