diff --git a/packages/chains/test/utils.test.ts b/packages/chains/test/utils.test.ts index af7bd4c061f..e212299eadb 100644 --- a/packages/chains/test/utils.test.ts +++ b/packages/chains/test/utils.test.ts @@ -12,7 +12,7 @@ import { const MAINNET_FALLBACK_HTTP_RPCS = [ "https://api.mycryptoapi.com/eth", "https://cloudflare-eth.com", - "https://ethereum.publicnode.com", + "https://ethereum-rpc.publicnode.com", "https://mainnet.gateway.tenderly.co", "https://rpc.blocknative.com/boost", "https://rpc.flashbots.net/fast", @@ -20,18 +20,14 @@ const MAINNET_FALLBACK_HTTP_RPCS = [ ]; const MAINNET_FALLBACK_WS_RPCS = [ - "wss://ethereum.publicnode.com", + "wss://ethereum-rpc.publicnode.com", "wss://mainnet.gateway.tenderly.co", ]; const CHAIN_RPC_TEST_CASES: [ChainRPCOptions, string[]][] = [ [ { thirdwebApiKey: "SAMPLE_KEY" }, - [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_KEY", - "https://1.rpc.thirdweb.com/SAMPLE_KEY", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + ["https://1.rpc.thirdweb.com/SAMPLE_KEY", ...MAINNET_FALLBACK_HTTP_RPCS], ], [ { alchemyApiKey: "SAMPLE_KEY" }, @@ -63,26 +59,17 @@ describe("chains/utils", () => { [ undefined, undefined, - [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], ], [ undefined, "http", - [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], ], [ "SAMPLE_CLIENT_KEY", undefined, [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", ...MAINNET_FALLBACK_HTTP_RPCS, ], @@ -91,7 +78,6 @@ describe("chains/utils", () => { "SAMPLE_CLIENT_KEY", "http", [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", ...MAINNET_FALLBACK_HTTP_RPCS, ], @@ -117,7 +103,7 @@ describe("chains/utils", () => { width: 512, format: "png", }, - rpc: ["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}"], + rpc: ["https://1.rpc.thirdweb.com/${THIRDWEB_API_KEY}"], nativeCurrency: { name: "Ether", symbol: "ETH", @@ -153,11 +139,7 @@ describe("chains/utils", () => { undefined, { ...Ethereum, - rpc: [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + rpc: ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], }, ], [ @@ -166,7 +148,6 @@ describe("chains/utils", () => { { ...Ethereum, rpc: [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY", ...MAINNET_FALLBACK_HTTP_RPCS, ], @@ -187,26 +168,17 @@ describe("chains/utils with APP_BUNDLE_ID", () => { [ undefined, undefined, - [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], ], [ undefined, "http", - [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], ], [ "SAMPLE_CLIENT_KEY", undefined, [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", ...MAINNET_FALLBACK_HTTP_RPCS, ], @@ -215,7 +187,6 @@ describe("chains/utils with APP_BUNDLE_ID", () => { "SAMPLE_CLIENT_KEY", "http", [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", ...MAINNET_FALLBACK_HTTP_RPCS, ], @@ -230,11 +201,7 @@ describe("chains/utils with APP_BUNDLE_ID", () => { undefined, { ...Ethereum, - rpc: [ - "https://ethereum.rpc.thirdweb.com/", - "https://1.rpc.thirdweb.com/", - ...MAINNET_FALLBACK_HTTP_RPCS, - ], + rpc: ["https://1.rpc.thirdweb.com/", ...MAINNET_FALLBACK_HTTP_RPCS], }, ], [ @@ -243,7 +210,6 @@ describe("chains/utils with APP_BUNDLE_ID", () => { { ...Ethereum, rpc: [ - "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", "https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc", ...MAINNET_FALLBACK_HTTP_RPCS, ], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7cd7818c02..dcfbcae65ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18976,6 +18976,7 @@ packages: dependencies: is-hex-prefixed: 1.0.0 strip-hex-prefix: 1.0.0 + bundledDependencies: false /event-target-shim@5.0.1: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}