From b99a6ffad3dd54474fb87413e89cd462392805f5 Mon Sep 17 00:00:00 2001 From: hotequil Date: Tue, 3 Dec 2024 11:41:58 -0300 Subject: [PATCH] CU-86a5rx6jm-BS Lib - Change the mainnet URL from BNB, Polygon, Fantom and Avalanche --- .../bs-ethereum/main_2024-12-03-14-39.json | 10 ++++ .../src/constants/BSEthereumConstants.ts | 55 ++++++++----------- 2 files changed, 32 insertions(+), 33 deletions(-) create mode 100644 common/changes/@cityofzion/bs-ethereum/main_2024-12-03-14-39.json diff --git a/common/changes/@cityofzion/bs-ethereum/main_2024-12-03-14-39.json b/common/changes/@cityofzion/bs-ethereum/main_2024-12-03-14-39.json new file mode 100644 index 0000000..0132a75 --- /dev/null +++ b/common/changes/@cityofzion/bs-ethereum/main_2024-12-03-14-39.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@cityofzion/bs-ethereum", + "comment": "Update RPC list", + "type": "patch" + } + ], + "packageName": "@cityofzion/bs-ethereum" +} diff --git a/packages/bs-ethereum/src/constants/BSEthereumConstants.ts b/packages/bs-ethereum/src/constants/BSEthereumConstants.ts index cd5bb51..7a215da 100644 --- a/packages/bs-ethereum/src/constants/BSEthereumConstants.ts +++ b/packages/bs-ethereum/src/constants/BSEthereumConstants.ts @@ -46,91 +46,80 @@ export class BSEthereumConstants { static RPC_LIST_BY_NETWORK_ID: Record = { '1': [ 'https://eth.llamarpc.com', - 'https://mainnet.infura.io/v3/', 'https://ethereum-rpc.publicnode.com', - 'https://endpoints.omniatech.io/v1/eth/mainnet/public', - 'https://rpc.flashbots.net', 'https://rpc.mevblocker.io', + 'https://rpc.flashbots.net', + 'https://endpoints.omniatech.io/v1/eth/mainnet/public', ], '10': [ 'https://optimism.llamarpc.com', - 'https://endpoints.omniatech.io/v1/op/mainnet/public', 'https://optimism-rpc.publicnode.com', 'https://optimism.meowrpc.com', 'https://optimism.rpc.subquery.network/public', + 'https://endpoints.omniatech.io/v1/op/mainnet/public', ], - '25': ['https://cronos-evm-rpc.publicnode.com', 'https://1rpc.io/cro', 'https://rpc.vvs.finance'], + '25': ['https://cronos-evm-rpc.publicnode.com', 'https://rpc.vvs.finance', 'https://1rpc.io/cro'], '56': [ - 'https://bsc-dataseed.binance.org/', 'https://binance.llamarpc.com', + 'https://bsc-rpc.publicnode.com', + 'https://bsc-dataseed.binance.org/', 'https://bsc-dataseed.bnbchain.org', 'https://endpoints.omniatech.io/v1/bsc/mainnet/public', - 'https://bsc-rpc.publicnode.com', ], '137': [ - 'https://polygon-mainnet.infura.io', 'https://polygon.llamarpc.com', - 'https://endpoints.omniatech.io/v1/matic/mainnet/public', 'https://polygon.drpc.org', 'https://polygon.meowrpc.com', + 'https://endpoints.omniatech.io/v1/matic/mainnet/public', ], '250': [ - 'https://endpoints.omniatech.io/v1/fantom/mainnet/public', 'https://rpcapi.fantom.network', 'https://fantom-pokt.nodies.app', 'https://fantom-rpc.publicnode.com', 'https://fantom.drpc.org', + 'https://endpoints.omniatech.io/v1/fantom/mainnet/public', ], '1101': [ 'https://polygon-zkevm.drpc.org', - 'https://polygon-zkevm.blockpi.network/v1/rpc/public', 'https://1rpc.io/polygon/zkevm', + 'https://polygon-zkevm.blockpi.network/v1/rpc/public', ], '80002': [ 'https://polygon-amoy.drpc.org', - 'https://rpc.ankr.com/polygon_amoy', 'https://polygon-amoy-bor-rpc.publicnode.com', + 'https://rpc.ankr.com/polygon_amoy', ], '8453': [ - 'https://base.rpc.subquery.network/public', 'https://base.llamarpc.com', - 'https://mainnet.base.org', - 'https://1rpc.io/base', - 'https://base.meowrpc.com', 'https://base-rpc.publicnode.com', + 'https://base.meowrpc.com', + 'https://1rpc.io/base', + 'https://mainnet.base.org', + 'https://base.rpc.subquery.network/public', 'https://endpoints.omniatech.io/v1/base/mainnet/public', ], '42161': [ 'https://arbitrum.llamarpc.com', 'https://arbitrum-one-rpc.publicnode.com', - 'https://arb-mainnet-public.unifra.io', 'https://arbitrum-one.publicnode.com', + 'https://arb-mainnet-public.unifra.io', ], - '42220': [ - 'https://forno.celo.org', - 'https://api.tatum.io/v3/blockchain/node/celo-mainnet', - 'https://rpc.ankr.com/celo', - ], + '42220': ['https://forno.celo.org', 'https://rpc.ankr.com/celo'], '43114': [ - 'https://avalanche-mainnet.infura.io', 'https://avalanche-c-chain-rpc.publicnode.com', 'https://avalanche.public-rpc.com', - 'https://endpoints.omniatech.io/v1/avax/mainnet/public', 'https://avalanche.drpc.org', + 'https://endpoints.omniatech.io/v1/avax/mainnet/public', ], - '59144': [ - 'https://linea.decubate.com', - 'https://linea.blockpi.network/v1/rpc/public', - 'https://linea.decubate.com', - ], + '59144': ['https://linea.decubate.com', 'https://linea.blockpi.network/v1/rpc/public'], '11155111': [ - 'https://ethereum-sepolia.rpc.subquery.network/public', 'https://ethereum-sepolia-rpc.publicnode.com', - 'https://endpoints.omniatech.io/v1/eth/sepolia/public', - 'https://eth-sepolia.public.blastapi.io', - 'https://eth-sepolia-public.unifra.io', + 'https://ethereum-sepolia.rpc.subquery.network/public', 'https://1rpc.io/sepolia', 'https://eth-sepolia.api.onfinality.io/public', + 'https://eth-sepolia.public.blastapi.io', + 'https://eth-sepolia-public.unifra.io', + 'https://endpoints.omniatech.io/v1/eth/sepolia/public', ], '47763': ['https://mainnet-1.rpc.banelabs.org'], '12227332': ['https://neoxt4seed1.ngd.network'],