From d772f1197611ee81d53d1c7f08bcbc71d12aaf09 Mon Sep 17 00:00:00 2001 From: d0wnlore <81343175+d0wnlore@users.noreply.github.com> Date: Sat, 5 Aug 2023 22:14:15 +0900 Subject: [PATCH] Add Mode Testnet chain --- .changeset/odd-bulldogs-exist.md | 5 +++++ packages/chains/README.md | 1 + packages/chains/src/index.ts | 1 + packages/chains/src/modeTestnet.ts | 23 +++++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 .changeset/odd-bulldogs-exist.md create mode 100644 packages/chains/src/modeTestnet.ts diff --git a/.changeset/odd-bulldogs-exist.md b/.changeset/odd-bulldogs-exist.md new file mode 100644 index 00000000..8a2629bf --- /dev/null +++ b/.changeset/odd-bulldogs-exist.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": patch +--- + +Added Mode Testnet chain. diff --git a/packages/chains/README.md b/packages/chains/README.md index 8ae3eb02..8586e64a 100644 --- a/packages/chains/README.md +++ b/packages/chains/README.md @@ -65,6 +65,7 @@ const { chains, provider } = configureChains( - `mantleTestnet` - `metis` - `metisGoerli` +- `modeTestnet` - `moonbaseAlpha` - `moonbeam` - `moonriver` diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index e14d954f..afabccb1 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -66,6 +66,7 @@ export { metis } from './metis' export { metisGoerli } from './metisGoerli' export { mev } from './mev' export { mevTestnet } from './mevTestnet' +export { modeTestnet } from './modeTestnet' export { moonbaseAlpha } from './moonbaseAlpha' export { moonbeam } from './moonbeam' export { moonriver } from './moonriver' diff --git a/packages/chains/src/modeTestnet.ts b/packages/chains/src/modeTestnet.ts new file mode 100644 index 00000000..fa4b36e9 --- /dev/null +++ b/packages/chains/src/modeTestnet.ts @@ -0,0 +1,23 @@ +import { Chain } from './types' + +export const modeTestnet = { + id: 919, + name: 'Mode Testnet', + network: 'mode-testnet', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://sepolia.mode.network/'], + }, + public: { + http: ['https://sepolia.mode.network/'], + }, + }, + blockExplorers: { + default: { + name: 'Blockscout', + url: 'https://sepolia.explorer.mode.network/', + }, + }, + testnet: true, +} as const satisfies Chain