From 9d89d69a10960a76311f835b727156b949791056 Mon Sep 17 00:00:00 2001 From: Jaden Date: Mon, 30 Dec 2024 11:09:09 -0500 Subject: [PATCH 1/3] feat: fixing mainnet rpc --- packages/sdk/src/utils/customChains.ts | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/sdk/src/utils/customChains.ts b/packages/sdk/src/utils/customChains.ts index e7f8a36ed..a543b96c6 100644 --- a/packages/sdk/src/utils/customChains.ts +++ b/packages/sdk/src/utils/customChains.ts @@ -1,5 +1,36 @@ import { Chain } from 'viem' +export const mainnet = { + id: 1, + name: 'Ethereum', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://ethereum-rpc.publicnode.com'], + }, + }, + blockExplorers: { + default: { + name: 'Etherscan', + url: 'https://etherscan.io', + apiUrl: 'https://api.etherscan.io/api', + }, + }, + contracts: { + ensRegistry: { + address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', + }, + ensUniversalResolver: { + address: '0xce01f8eee7E479C928F8919abD53E553a36CeF67', + blockCreated: 19_258_213, + }, + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 14_353_601, + }, + }, +} + export const ancient8 = { id: 888888888, name: 'Ancient8', From a76f6850a2b613dac3d1407ae58058991846965a Mon Sep 17 00:00:00 2001 From: Jaden Date: Mon, 30 Dec 2024 11:11:43 -0500 Subject: [PATCH 2/3] feat: changeset --- .changeset/four-poets-shave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/four-poets-shave.md diff --git a/.changeset/four-poets-shave.md b/.changeset/four-poets-shave.md new file mode 100644 index 000000000..490c2d1b1 --- /dev/null +++ b/.changeset/four-poets-shave.md @@ -0,0 +1,5 @@ +--- +'@reservoir0x/reservoir-sdk': patch +--- + +fixing mainnet rpc From cf539a10188416955a42e45b213b04df60fe37fb Mon Sep 17 00:00:00 2001 From: Jaden Date: Fri, 3 Jan 2025 10:49:02 -0500 Subject: [PATCH 3/3] feat: adding extra mainnet rpc urls to array --- packages/sdk/src/utils/customChains.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/utils/customChains.ts b/packages/sdk/src/utils/customChains.ts index a543b96c6..9a4e61b20 100644 --- a/packages/sdk/src/utils/customChains.ts +++ b/packages/sdk/src/utils/customChains.ts @@ -6,7 +6,13 @@ export const mainnet = { nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, rpcUrls: { default: { - http: ['https://ethereum-rpc.publicnode.com'], + http: [ + 'https://ethereum-rpc.publicnode.com', + 'https://mainnet.gateway.tenderly.co', + 'https://rpc.flashbots.net', + 'https://rpc.mevblocker.io', + 'https://eth.drpc.org', + ], }, }, blockExplorers: { @@ -29,7 +35,7 @@ export const mainnet = { blockCreated: 14_353_601, }, }, -} +} as const satisfies Chain export const ancient8 = { id: 888888888,