From c11d92ffdc0b333f6a6a7bd8d716a45c5ae0dc0d Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Tue, 3 Sep 2024 18:39:08 -0400 Subject: [PATCH] chore: removed non-default chain properties --- .changeset/tidy-nails-fly.md | 5 +++++ src/chains/definitions/acala.ts | 4 ---- src/chains/definitions/bahamut.ts | 12 ------------ src/chains/definitions/beam.ts | 4 ---- src/chains/definitions/beamTestnet.ts | 4 ---- src/chains/definitions/bitTorrent.ts | 1 - src/chains/definitions/bitTorrentTestnet.ts | 1 - src/chains/definitions/bobSepolia.ts | 4 ---- src/chains/definitions/defichainEvm.ts | 3 --- src/chains/definitions/defichainEvmTestnet.ts | 3 --- src/chains/definitions/jbc.ts | 3 --- src/chains/definitions/karura.ts | 4 ---- src/chains/definitions/kcc.ts | 3 --- src/chains/definitions/mandala.ts | 4 ---- src/chains/definitions/metis.ts | 5 ----- src/chains/definitions/oasisTestnet.ts | 1 - src/chains/definitions/oortmainnetDev.ts | 4 ---- src/chains/definitions/pgn.ts | 5 ----- src/chains/definitions/pgnTestnet.ts | 5 ----- src/chains/definitions/sapphire.ts | 5 ----- src/chains/definitions/sapphireTestnet.ts | 5 ----- src/chains/definitions/taikoKatla.ts | 3 --- src/chains/definitions/wemix.ts | 1 - src/chains/definitions/wemixTestnet.ts | 1 - src/chains/definitions/xdc.ts | 4 ---- src/chains/definitions/zkFair.ts | 3 --- src/chains/definitions/zkFairTestnet.ts | 3 --- 27 files changed, 5 insertions(+), 95 deletions(-) create mode 100644 .changeset/tidy-nails-fly.md diff --git a/.changeset/tidy-nails-fly.md b/.changeset/tidy-nails-fly.md new file mode 100644 index 0000000000..c6f05ff6a0 --- /dev/null +++ b/.changeset/tidy-nails-fly.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Removed non-default chain properties. diff --git a/src/chains/definitions/acala.ts b/src/chains/definitions/acala.ts index 75285ac97f..2dcd24bc7a 100644 --- a/src/chains/definitions/acala.ts +++ b/src/chains/definitions/acala.ts @@ -10,10 +10,6 @@ export const acala = /*#__PURE__*/ defineChain({ decimals: 18, }, rpcUrls: { - public: { - http: ['https://eth-rpc-acala.aca-api.network'], - webSocket: ['wss://eth-rpc-acala.aca-api.network'], - }, default: { http: ['https://eth-rpc-acala.aca-api.network'], webSocket: ['wss://eth-rpc-acala.aca-api.network'], diff --git a/src/chains/definitions/bahamut.ts b/src/chains/definitions/bahamut.ts index 9753561938..157ff48ca5 100644 --- a/src/chains/definitions/bahamut.ts +++ b/src/chains/definitions/bahamut.ts @@ -18,18 +18,6 @@ export const bahamut = /*#__PURE__*/ defineChain({ 'wss://ws2.sahara.bahamutchain.com', ], }, - public: { - http: [ - 'https://rpc1.bahamut.io', - 'https://bahamut-rpc.publicnode.com', - 'https://rpc2.bahamut.io', - ], - webSocket: [ - 'wss://ws1.sahara.bahamutchain.com', - 'wss://bahamut-rpc.publicnode.com', - 'wss://ws2.sahara.bahamutchain.com', - ], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/beam.ts b/src/chains/definitions/beam.ts index d82be3c9cf..96039fd877 100644 --- a/src/chains/definitions/beam.ts +++ b/src/chains/definitions/beam.ts @@ -10,10 +10,6 @@ export const beam = /*#__PURE__*/ defineChain({ symbol: 'BEAM', }, rpcUrls: { - public: { - http: ['https://build.onbeam.com/rpc'], - webSocket: ['wss://build.onbeam.com/ws'], - }, default: { http: ['https://build.onbeam.com/rpc'], webSocket: ['wss://build.onbeam.com/ws'], diff --git a/src/chains/definitions/beamTestnet.ts b/src/chains/definitions/beamTestnet.ts index 908576772d..22fa7bb87c 100644 --- a/src/chains/definitions/beamTestnet.ts +++ b/src/chains/definitions/beamTestnet.ts @@ -10,10 +10,6 @@ export const beamTestnet = /*#__PURE__*/ defineChain({ symbol: 'BEAM', }, rpcUrls: { - public: { - http: ['https://build.onbeam.com/rpc/testnet'], - webSocket: ['wss://build.onbeam.com/ws/testnet'], - }, default: { http: ['https://build.onbeam.com/rpc/testnet'], webSocket: ['wss://build.onbeam.com/ws/testnet'], diff --git a/src/chains/definitions/bitTorrent.ts b/src/chains/definitions/bitTorrent.ts index a71a64c353..21dd9e79b9 100644 --- a/src/chains/definitions/bitTorrent.ts +++ b/src/chains/definitions/bitTorrent.ts @@ -7,7 +7,6 @@ export const bitTorrent = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'BitTorrent', symbol: 'BTT', decimals: 18 }, rpcUrls: { default: { http: ['https://rpc.bittorrentchain.io'] }, - public: { http: ['https://rpc.bittorrentchain.io'] }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/bitTorrentTestnet.ts b/src/chains/definitions/bitTorrentTestnet.ts index 99aa908f02..a2015980ae 100644 --- a/src/chains/definitions/bitTorrentTestnet.ts +++ b/src/chains/definitions/bitTorrentTestnet.ts @@ -7,7 +7,6 @@ export const bitTorrentTestnet = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'BitTorrent', symbol: 'BTT', decimals: 18 }, rpcUrls: { default: { http: ['https://testrpc.bittorrentchain.io'] }, - public: { http: ['https://testrpc.bittorrentchain.io'] }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/bobSepolia.ts b/src/chains/definitions/bobSepolia.ts index d8eb765a4b..6e8211f767 100644 --- a/src/chains/definitions/bobSepolia.ts +++ b/src/chains/definitions/bobSepolia.ts @@ -17,10 +17,6 @@ export const bobSepolia = defineChain({ http: ['https://bob-sepolia.rpc.gobob.xyz'], webSocket: ['wss://bob-sepolia.rpc.gobob.xyz'], }, - public: { - http: ['https://bob-sepolia.rpc.gobob.xyz'], - webSocket: ['wss://bob-sepolia.rpc.gobob.xyz'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/defichainEvm.ts b/src/chains/definitions/defichainEvm.ts index 3c24cdf6aa..fae937e093 100644 --- a/src/chains/definitions/defichainEvm.ts +++ b/src/chains/definitions/defichainEvm.ts @@ -13,9 +13,6 @@ export const defichainEvm = /*#__PURE__*/ defineChain({ default: { http: ['https://eth.mainnet.ocean.jellyfishsdk.com'], }, - public: { - http: ['https://eth.mainnet.ocean.jellyfishsdk.com'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/defichainEvmTestnet.ts b/src/chains/definitions/defichainEvmTestnet.ts index 7b80c84404..b38edc169d 100644 --- a/src/chains/definitions/defichainEvmTestnet.ts +++ b/src/chains/definitions/defichainEvmTestnet.ts @@ -13,9 +13,6 @@ export const defichainEvmTestnet = /*#__PURE__*/ defineChain({ default: { http: ['https://eth.testnet.ocean.jellyfishsdk.com'], }, - public: { - http: ['https://eth.testnet.ocean.jellyfishsdk.com'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/jbc.ts b/src/chains/definitions/jbc.ts index bf146f8e5b..3eb0ccede7 100644 --- a/src/chains/definitions/jbc.ts +++ b/src/chains/definitions/jbc.ts @@ -9,9 +9,6 @@ export const jbc = /*#__PURE__*/ defineChain({ default: { http: ['https://rpc-l1.jibchain.net'], }, - public: { - http: ['https://rpc-l1.jibchain.net'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/karura.ts b/src/chains/definitions/karura.ts index 879e1431ac..5bca54f31d 100644 --- a/src/chains/definitions/karura.ts +++ b/src/chains/definitions/karura.ts @@ -10,10 +10,6 @@ export const karura = /*#__PURE__*/ defineChain({ decimals: 18, }, rpcUrls: { - public: { - http: ['https://eth-rpc-karura.aca-api.network'], - webSocket: ['wss://eth-rpc-karura.aca-api.network'], - }, default: { http: ['https://eth-rpc-karura.aca-api.network'], webSocket: ['wss://eth-rpc-karura.aca-api.network'], diff --git a/src/chains/definitions/kcc.ts b/src/chains/definitions/kcc.ts index 6a0bf1d7c8..7a8845c832 100644 --- a/src/chains/definitions/kcc.ts +++ b/src/chains/definitions/kcc.ts @@ -13,9 +13,6 @@ export const kcc = /*#__PURE__*/ defineChain({ default: { http: ['https://kcc-rpc.com'], }, - public: { - http: ['https://kcc-rpc.com'], - }, }, blockExplorers: { default: { name: 'KCC Explorer', url: 'https://explorer.kcc.io' }, diff --git a/src/chains/definitions/mandala.ts b/src/chains/definitions/mandala.ts index 20e99fc11a..d389a04ee3 100644 --- a/src/chains/definitions/mandala.ts +++ b/src/chains/definitions/mandala.ts @@ -10,10 +10,6 @@ export const mandala = /*#__PURE__*/ defineChain({ decimals: 18, }, rpcUrls: { - public: { - http: ['https://eth-rpc-tc9.aca-staging.network'], - webSocket: ['wss://eth-rpc-tc9.aca-staging.network'], - }, default: { http: ['https://eth-rpc-tc9.aca-staging.network'], webSocket: ['wss://eth-rpc-tc9.aca-staging.network'], diff --git a/src/chains/definitions/metis.ts b/src/chains/definitions/metis.ts index 3525dcb08c..2036f1b4fa 100644 --- a/src/chains/definitions/metis.ts +++ b/src/chains/definitions/metis.ts @@ -18,11 +18,6 @@ export const metis = /*#__PURE__*/ defineChain({ apiUrl: 'https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api', }, - blockscout: { - name: 'Andromeda Explorer', - url: 'https://andromeda-explorer.metis.io', - apiUrl: 'https://andromeda-explorer.metis.io/api', - }, }, contracts: { multicall3: { diff --git a/src/chains/definitions/oasisTestnet.ts b/src/chains/definitions/oasisTestnet.ts index 0e1d541214..75c6d408c2 100644 --- a/src/chains/definitions/oasisTestnet.ts +++ b/src/chains/definitions/oasisTestnet.ts @@ -7,7 +7,6 @@ export const oasisTestnet = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'Fasttoken', symbol: 'FTN', decimals: 18 }, rpcUrls: { default: { http: ['https://rpc1.oasis.bahamutchain.com'] }, - public: { http: ['https://rpc1.oasis.bahamutchain.com'] }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/oortmainnetDev.ts b/src/chains/definitions/oortmainnetDev.ts index 283078de04..6568d39848 100644 --- a/src/chains/definitions/oortmainnetDev.ts +++ b/src/chains/definitions/oortmainnetDev.ts @@ -12,10 +12,6 @@ export const oortMainnetDev = /*#__PURE__*/ defineChain({ default: { http: ['https://dev-rpc.oortech.com'] }, }, blockExplorers: { - oort: { - name: 'OORT MainnetDev Explorer', - url: 'https://dev-scan.oortech.com', - }, default: { name: 'OORT MainnetDev Explorer', url: 'https://dev-scan.oortech.com', diff --git a/src/chains/definitions/pgn.ts b/src/chains/definitions/pgn.ts index 4f2768bacf..dfe4de8c76 100644 --- a/src/chains/definitions/pgn.ts +++ b/src/chains/definitions/pgn.ts @@ -19,11 +19,6 @@ export const pgn = /*#__PURE__*/ defineChain({ url: 'https://explorer.publicgoods.network', apiUrl: 'https://explorer.publicgoods.network/api', }, - blockscout: { - name: 'PGN Explorer', - url: 'https://explorer.publicgoods.network', - apiUrl: 'https://explorer.publicgoods.network/api', - }, }, contracts: { l2OutputOracle: { diff --git a/src/chains/definitions/pgnTestnet.ts b/src/chains/definitions/pgnTestnet.ts index d2dc7ec4e5..a3c27670aa 100644 --- a/src/chains/definitions/pgnTestnet.ts +++ b/src/chains/definitions/pgnTestnet.ts @@ -19,11 +19,6 @@ export const pgnTestnet = /*#__PURE__*/ defineChain({ url: 'https://explorer.sepolia.publicgoods.network', apiUrl: 'https://explorer.sepolia.publicgoods.network/api', }, - blockscout: { - name: 'PGN Testnet Explorer', - url: 'https://explorer.sepolia.publicgoods.network', - apiUrl: 'https://explorer.sepolia.publicgoods.network/api', - }, }, contracts: { l2OutputOracle: { diff --git a/src/chains/definitions/sapphire.ts b/src/chains/definitions/sapphire.ts index 9b94acfbd1..63bd3a72b5 100644 --- a/src/chains/definitions/sapphire.ts +++ b/src/chains/definitions/sapphire.ts @@ -16,11 +16,6 @@ export const sapphire = /*#__PURE__*/ defineChain({ name: 'Oasis Explorer', url: 'https://explorer.oasis.io/mainnet/sapphire', }, - blockscout: { - name: 'Oasis Sapphire Explorer', - url: 'https://old-explorer.sapphire.oasis.io', - apiUrl: 'https://old-explorer.sapphire.oasis.io/api', - }, }, contracts: { multicall3: { diff --git a/src/chains/definitions/sapphireTestnet.ts b/src/chains/definitions/sapphireTestnet.ts index 52149d926f..1d7eea8900 100644 --- a/src/chains/definitions/sapphireTestnet.ts +++ b/src/chains/definitions/sapphireTestnet.ts @@ -16,11 +16,6 @@ export const sapphireTestnet = /*#__PURE__*/ defineChain({ name: 'Oasis Explorer', url: 'https://explorer.oasis.io/testnet/sapphire', }, - blockscout: { - name: 'Oasis Sapphire Testnet Explorer', - url: 'https://testnet.old-explorer.sapphire.oasis.dev', - apiUrl: 'https://testnet.old-explorer.sapphire.oasis.dev/api', - }, }, testnet: true, }) diff --git a/src/chains/definitions/taikoKatla.ts b/src/chains/definitions/taikoKatla.ts index eb7a7a0e81..a53f37ea1a 100644 --- a/src/chains/definitions/taikoKatla.ts +++ b/src/chains/definitions/taikoKatla.ts @@ -9,9 +9,6 @@ export const taikoKatla = /*#__PURE__*/ defineChain({ default: { http: ['https://rpc.katla.taiko.xyz'], }, - public: { - http: ['https://rpc.katla.taiko.xyz'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/wemix.ts b/src/chains/definitions/wemix.ts index 5f7d49dba0..87d4b48bac 100644 --- a/src/chains/definitions/wemix.ts +++ b/src/chains/definitions/wemix.ts @@ -7,7 +7,6 @@ export const wemix = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'WEMIX', symbol: 'WEMIX', decimals: 18 }, rpcUrls: { default: { http: ['https://api.wemix.com'] }, - public: { http: ['https://api.wemix.com'] }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/wemixTestnet.ts b/src/chains/definitions/wemixTestnet.ts index 15cb20176e..5bd880c176 100644 --- a/src/chains/definitions/wemixTestnet.ts +++ b/src/chains/definitions/wemixTestnet.ts @@ -7,7 +7,6 @@ export const wemixTestnet = /*#__PURE__*/ defineChain({ nativeCurrency: { name: 'WEMIX', symbol: 'tWEMIX', decimals: 18 }, rpcUrls: { default: { http: ['https://api.test.wemix.com'] }, - public: { http: ['https://api.test.wemix.com'] }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/xdc.ts b/src/chains/definitions/xdc.ts index 6d8f1c3792..bafd6953b0 100644 --- a/src/chains/definitions/xdc.ts +++ b/src/chains/definitions/xdc.ts @@ -12,10 +12,6 @@ export const xdc = /*#__PURE__*/ defineChain({ default: { http: ['https://rpc.xinfin.network'] }, }, blockExplorers: { - xinfin: { - name: 'XinFin', - url: 'https://explorer.xinfin.network', - }, default: { name: 'Blocksscan', url: 'https://xdc.blocksscan.io', diff --git a/src/chains/definitions/zkFair.ts b/src/chains/definitions/zkFair.ts index 8422476d32..2a65736aa4 100644 --- a/src/chains/definitions/zkFair.ts +++ b/src/chains/definitions/zkFair.ts @@ -13,9 +13,6 @@ export const zkFair = /*#__PURE__*/ defineChain({ default: { http: ['https://rpc.zkfair.io'], }, - public: { - http: ['https://rpc.zkfair.io'], - }, }, blockExplorers: { default: { diff --git a/src/chains/definitions/zkFairTestnet.ts b/src/chains/definitions/zkFairTestnet.ts index e596cf5457..764f930279 100644 --- a/src/chains/definitions/zkFairTestnet.ts +++ b/src/chains/definitions/zkFairTestnet.ts @@ -13,9 +13,6 @@ export const zkFairTestnet = /*#__PURE__*/ defineChain({ default: { http: ['https://testnet-rpc.zkfair.io'], }, - public: { - http: ['https://testnet-rpc.zkfair.io'], - }, }, blockExplorers: { default: {