Skip to content

Commit

Permalink
v9.6.0: WorldChain support
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Sep 10, 2024
2 parents 940e5ac + 9bb0e85 commit e02dd38
Show file tree
Hide file tree
Showing 23 changed files with 94 additions and 144 deletions.
63 changes: 32 additions & 31 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ var bsc = {
if(token) { return `https://bscscan.com/token/${token}` }
if(address) { return `https://bscscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://bsc-dataseed.binance.org',
'https://bsc-dataseed1.ninicoin.io',
'https://bsc-dataseed3.defibit.io'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://binance.llamarpc.com',
'https://bsc-rpc.publicnode.com',
'https://endpoints.omniatech.io/v1/bsc/mainnet/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": currencyLogo$6, "type": "NATIVE"},
Expand Down Expand Up @@ -89,8 +89,8 @@ var ethereum = {
if(token) { return `https://etherscan.io/token/${token}` }
if(address) { return `https://etherscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://rpc.ankr.com/eth',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://eth.rpc.blxrbdn.com',
'https://eth.llamarpc.com',
'https://ethereum.publicnode.com'
],
Expand Down Expand Up @@ -145,8 +145,8 @@ var fantom = {
if(token) { return `https://ftmscan.com/token/${token}` }
if(address) { return `https://ftmscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://rpc.ftm.tools',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://endpoints.omniatech.io/v1/fantom/mainnet/public',
'https://fantom.publicnode.com',
'https://rpc2.fantom.network'
],
Expand Down Expand Up @@ -195,9 +195,9 @@ var polygon = {
if(token) { return `https://polygonscan.com/token/${token}` }
if(address) { return `https://polygonscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://polygon-rpc.com',
'https://polygon.meowrpc.com',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://polygon.rpc.blxrbdn.com',
'https://polygon.llamarpc.com',
'https://polygon-bor.publicnode.com'
],
tokens: [ // only major tokens
Expand Down Expand Up @@ -304,8 +304,8 @@ var arbitrum = {
if(token) { return `https://arbiscan.io/token/${token}` }
if(address) { return `https://arbiscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://arbitrum.blockpi.network/v1/rpc/public',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://arbitrum.llamarpc.com',
'https://arbitrum-one.publicnode.com',
'https://endpoints.omniatech.io/v1/arbitrum/one/public'
],
Expand Down Expand Up @@ -357,10 +357,9 @@ var avalanche = {
if(token) { return `https://snowtrace.io/token/${token}` }
if(address) { return `https://snowtrace.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://avalanche.public-rpc.com',
'https://avalanche.blockpi.network/v1/rpc/public',
'https://avax.meowrpc.com'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://avalanche-c-chain-rpc.publicnode.com',
'https://endpoints.omniatech.io/v1/avax/mainnet/public',
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "AVAX", "name": "Avalanche", "decimals": 18, "logo": currencyLogo$1, "type": "NATIVE"},
Expand Down Expand Up @@ -409,10 +408,10 @@ var gnosis = {
if(token) { return `https://gnosisscan.io/token/${token}` }
if(address) { return `https://gnosisscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://rpc.gnosis.gateway.fm',
'https://rpc.gnosischain.com',
'https://gnosis.blockpi.network/v1/rpc/public'
'https://gnosis-rpc.publicnode.com'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "xDAI", "name": "xDAI", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"},
Expand Down Expand Up @@ -459,9 +458,9 @@ var optimism = {
if(token) { return `https://optimistic.etherscan.io/token/${token}` }
if(address) { return `https://optimistic.etherscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://mainnet.optimism.io',
'https://optimism.meowrpc.com',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://endpoints.omniatech.io/v1/op/mainnet/public',
'https://optimism.llamarpc.com',
'https://optimism.publicnode.com'
],
tokens: [ // only major tokens
Expand Down Expand Up @@ -509,10 +508,10 @@ var base = {
if(token) { return `https://basescan.org/token/${token}` }
if(address) { return `https://basescan.org/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://base.blockpi.network/v1/rpc/public',
'https://base.meowrpc.com',
'https://mainnet.base.org'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://mainnet.base.org',
'https://base.llamarpc.com',
'https://base.rpc.subquery.network/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"},
Expand Down Expand Up @@ -547,24 +546,26 @@ var worldchain = {
logo: ethereum.currency.logo,
},
wrapped: {
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
address: '0x4200000000000000000000000000000000000006',
logo: ethereum.wrapped.logo,
},
stables: { // max. 2 per fiat currency
usd: []
usd: ['0x79A02482A880bCE3F13e09Da970dC34db4CD24d1']
},
explorer: 'https://worldchain-mainnet.explorer.alchemy.com',
explorerUrlFor: ({ transaction, token, address })=>{
if(transaction) { return `https://worldchain-mainnet.explorer.alchemy.com/tx/${transaction.id || transaction}` }
if(token) { return `https://worldchain-mainnet.explorer.alchemy.com/token/${token}` }
if(address) { return `https://worldchain-mainnet.explorer.alchemy.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!

endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://worldchain-mainnet.blastapi.io/1b1a6314-79bf-4afe-b48b-c943fca35292',
'https://worldchain-mainnet.g.alchemy.com/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"},
{"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": ethereum.wrapped.logo, "type": "20"},
{"address": "0x4200000000000000000000000000000000000006", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logo": ethereum.wrapped.logo, "type": "20"},
{"address": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1", "symbol": "USDC.e", "name": "Bridged USDC", "decimals": 6, "logo": "", "type": "20"},
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
Expand Down
63 changes: 32 additions & 31 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/blockchains/arbitrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default {
if(token) { return `https://arbiscan.io/token/${token}` }
if(address) { return `https://arbiscan.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://arbitrum.blockpi.network/v1/rpc/public',
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://arbitrum.llamarpc.com',
'https://arbitrum-one.publicnode.com',
'https://endpoints.omniatech.io/v1/arbitrum/one/public'
],
Expand Down
7 changes: 3 additions & 4 deletions src/blockchains/avalanche.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ export default {
if(token) { return `https://snowtrace.io/token/${token}` }
if(address) { return `https://snowtrace.io/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://avalanche.public-rpc.com',
'https://avalanche.blockpi.network/v1/rpc/public',
'https://avax.meowrpc.com'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://avalanche-c-chain-rpc.publicnode.com',
'https://endpoints.omniatech.io/v1/avax/mainnet/public',
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "AVAX", "name": "Avalanche", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"},
Expand Down
8 changes: 4 additions & 4 deletions src/blockchains/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default {
if(token) { return `https://basescan.org/token/${token}` }
if(address) { return `https://basescan.org/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://base.blockpi.network/v1/rpc/public',
'https://base.meowrpc.com',
'https://mainnet.base.org'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://mainnet.base.org',
'https://base.llamarpc.com',
'https://base.rpc.subquery.network/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"},
Expand Down
8 changes: 4 additions & 4 deletions src/blockchains/bsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export default {
if(token) { return `https://bscscan.com/token/${token}` }
if(address) { return `https://bscscan.com/address/${address}` }
},
endpoints: [ // make sure provider supports batch size of 99 batch requests!
'https://bsc-dataseed.binance.org',
'https://bsc-dataseed1.ninicoin.io',
'https://bsc-dataseed3.defibit.io'
endpoints: [ // make sure provider supports batch size of 50 batch requests!
'https://binance.llamarpc.com',
'https://bsc-rpc.publicnode.com',
'https://endpoints.omniatech.io/v1/bsc/mainnet/public'
],
tokens: [ // only major tokens
{"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"},
Expand Down
4 changes: 2 additions & 2 deletions src/blockchains/ethereum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/blockchains/fantom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/blockchains/gnosis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e02dd38

Please sign in to comment.