From 633867071e59eba6aad74c0cc64f7e10d44d9b92 Mon Sep 17 00:00:00 2001 From: tinystone Date: Sat, 6 Jul 2024 00:18:13 +0800 Subject: [PATCH 1/3] feat: add zkLink Nava Sepolia Testnet chain --- .changeset/six-ravens-relax.md | 5 +++++ .../definitions/zkLinkNovaSepoliaTestnet.ts | 20 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 26 insertions(+) create mode 100644 .changeset/six-ravens-relax.md create mode 100644 src/chains/definitions/zkLinkNovaSepoliaTestnet.ts diff --git a/.changeset/six-ravens-relax.md b/.changeset/six-ravens-relax.md new file mode 100644 index 0000000000..c0247cd183 --- /dev/null +++ b/.changeset/six-ravens-relax.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +add zkLink Nova Sepolia Testnet chain diff --git a/src/chains/definitions/zkLinkNovaSepoliaTestnet.ts b/src/chains/definitions/zkLinkNovaSepoliaTestnet.ts new file mode 100644 index 0000000000..0f182ba45e --- /dev/null +++ b/src/chains/definitions/zkLinkNovaSepoliaTestnet.ts @@ -0,0 +1,20 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const zkLinkNovaSepoliaTestnet = /*#__PURE__*/ defineChain({ + id: 810181, + name: 'zkLink Nova Sepolia Testnet', + nativeCurrency: { + decimals: 18, + name: 'ETH', + symbol: 'ETH', + }, + rpcUrls: { + default: { http: ['https://sepolia.rpc.zklink.io'] }, + }, + blockExplorers: { + default: { + name: 'zkLink Nova Block Explorer', + url: 'https://sepolia.explorer.zklink.io', + }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 7baf1f5284..c9128bdfe1 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -306,6 +306,7 @@ export { zkSyncTestnet } from './definitions/zkSyncTestnet.js' export { zora } from './definitions/zora.js' export { zoraSepolia } from './definitions/zoraSepolia.js' export { zoraTestnet } from './definitions/zoraTestnet.js' +export { zkLinkNovaSepoliaTestnet } from './definitions/zkLinkNovaSepoliaTestnet.js' export { zircuitTestnet } from './definitions/zircuitTestnet.js' ////////////////////////////////////////////////////////////////////////////////////// From 67f78e86a7b7c0291d2e62f760c55435393dfb17 Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 6 Jul 2024 12:03:44 +1000 Subject: [PATCH 2/3] Update index.ts --- src/chains/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chains/index.ts b/src/chains/index.ts index c9128bdfe1..4c72f5a3dd 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -298,6 +298,7 @@ export { zilliqaTestnet } from './definitions/zilliqaTestnet.js' export { zkFair } from './definitions/zkFair.js' export { zkFairTestnet } from './definitions/zkFairTestnet.js' export { zkLinkNova } from './definitions/zkLinkNova.js' +export { zkLinkNovaSepoliaTestnet } from './definitions/zkLinkNovaSepoliaTestnet.js' export { zkSync } from './definitions/zkSync.js' export { zkSyncInMemoryNode } from './definitions/zkSyncInMemoryNode.js' export { zkSyncLocalNode } from './definitions/zkSyncLocalNode.js' @@ -306,7 +307,6 @@ export { zkSyncTestnet } from './definitions/zkSyncTestnet.js' export { zora } from './definitions/zora.js' export { zoraSepolia } from './definitions/zoraSepolia.js' export { zoraTestnet } from './definitions/zoraTestnet.js' -export { zkLinkNovaSepoliaTestnet } from './definitions/zkLinkNovaSepoliaTestnet.js' export { zircuitTestnet } from './definitions/zircuitTestnet.js' ////////////////////////////////////////////////////////////////////////////////////// From 34af59eea4f34af3ae47a225d35cadbaf282e964 Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 6 Jul 2024 12:03:56 +1000 Subject: [PATCH 3/3] Update six-ravens-relax.md --- .changeset/six-ravens-relax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/six-ravens-relax.md b/.changeset/six-ravens-relax.md index c0247cd183..91d81072df 100644 --- a/.changeset/six-ravens-relax.md +++ b/.changeset/six-ravens-relax.md @@ -2,4 +2,4 @@ "viem": patch --- -add zkLink Nova Sepolia Testnet chain +Added zkLink Nova Sepolia Testnet chain.