Skip to content

Commit

Permalink
feat(chains): add zklink nova (#2476)
Browse files Browse the repository at this point in the history
* feat: add zkLink Nava chain

* feat: update name:wq

* feat: Added zkLinkNova chain

* Update zkLinkNova.ts

* Update index.ts

---------

Co-authored-by: Stone <[email protected]>
Co-authored-by: tinystone <[email protected]>
Co-authored-by: jxom <[email protected]>
  • Loading branch information
4 people committed Jul 4, 2024
1 parent f12dfdb commit c5a3391
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-masks-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added zkLinkNova chain.
20 changes: 20 additions & 0 deletions src/chains/definitions/zkLinkNova.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const zkLinkNova = /*#__PURE__*/ defineChain({
id: 810180,
name: 'zkLink Nova',
nativeCurrency: {
decimals: 18,
name: 'ETH',
symbol: 'ETH',
},
rpcUrls: {
default: { http: ['https://rpc.zklink.io'] },
},
blockExplorers: {
default: {
name: 'zkLink Nova Block Explorer',
url: 'https://explorer.zklink.io',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export { zilliqa } from './definitions/zilliqa.js'
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 { zkSync } from './definitions/zkSync.js'
export { zkSyncInMemoryNode } from './definitions/zkSyncInMemoryNode.js'
export { zkSyncLocalNode } from './definitions/zkSyncLocalNode.js'
Expand Down

0 comments on commit c5a3391

Please sign in to comment.