From a1bd7c6329fdc478fc124b1a37db15af7874b13f Mon Sep 17 00:00:00 2001 From: Chris Cordle Date: Fri, 7 Apr 2023 09:48:16 -0500 Subject: [PATCH] Add Arbitrum Nova to chain list (#216) * Adding Arbitrum Nova to chain list * Updated changeset and README * Adding export to index --- .changeset/wild-plants-remember.md | 5 +++++ packages/chains/README.md | 1 + packages/chains/src/arbitrumNova.ts | 34 +++++++++++++++++++++++++++++ packages/chains/src/index.ts | 1 + 4 files changed, 41 insertions(+) create mode 100644 .changeset/wild-plants-remember.md create mode 100644 packages/chains/src/arbitrumNova.ts diff --git a/.changeset/wild-plants-remember.md b/.changeset/wild-plants-remember.md new file mode 100644 index 00000000..e160f128 --- /dev/null +++ b/.changeset/wild-plants-remember.md @@ -0,0 +1,5 @@ +--- +'@wagmi/chains': patch +--- + +Added Arbitrum Nova to list of supported chains diff --git a/packages/chains/README.md b/packages/chains/README.md index f39d117e..ef9ce5ed 100644 --- a/packages/chains/README.md +++ b/packages/chains/README.md @@ -30,6 +30,7 @@ const { chains, provider } = configureChains( - `arbitrum` - `arbitrumGoerli` +- `arbitrumNova` - `aurora` - `auroraTestnet` - `avalanche` diff --git a/packages/chains/src/arbitrumNova.ts b/packages/chains/src/arbitrumNova.ts new file mode 100644 index 00000000..58419968 --- /dev/null +++ b/packages/chains/src/arbitrumNova.ts @@ -0,0 +1,34 @@ +import { Chain } from './types' + +export const arbitrumNova = { + id: 42_170, + name: 'Arbitrum Nova', + network: 'arbitrum-nova', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + blast: { + http: ['https://arbitrum-nova.public.blastapi.io'], + webSocket: ['wss://arbitrum-nova.public.blastapi.io'], + }, + default: { + http: ['https://nova.arbitrum.io/rpc'], + }, + public: { + http: ['https://nova.arbitrum.io/rpc'], + }, + }, + blockExplorers: { + etherscan: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' }, + blockScout: { + name: 'BlockScout', + url: 'https://nova-explorer.arbitrum.io/', + }, + default: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 1746963, + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 9aa363c5..e26024b1 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -2,6 +2,7 @@ export type { Chain } from './types' export { arbitrum } from './arbitrum' export { arbitrumGoerli } from './arbitrumGoerli' +export { arbitrumNova } from './arbitrumNova' export { aurora } from './aurora' export { auroraTestnet } from './auroraTestnet' export { avalanche } from './avalanche'