Skip to content

Commit

Permalink
feat: add Cronos zkEVM chain support (#2628)
Browse files Browse the repository at this point in the history
Add cronoszkEVM chain
  • Loading branch information
boavenn committed Aug 18, 2024
1 parent 34093e1 commit a040bc4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-cherries-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const cronoszkEVM = /*#__PURE__*/ defineChain({
id: 388,
name: 'Cronos zkEVM Mainnet',
nativeCurrency: {
decimals: 18,
name: 'Cronos zkEVM CRO',
symbol: 'zkCRO',
},
rpcUrls: {
default: { http: ['https://mainnet.zkevm.cronos.org'] },
},
blockExplorers: {
default: {
name: 'Cronos zkEVM (Mainnet) Chain Explorer',
url: 'https://explorer.zkevm.cronos.org',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js'
export { coreDao } from './definitions/coreDao.js'
export { crab } from './definitions/crab.js'
export { cronos } from './definitions/cronos.js'
export { cronoszkEVM } from './definitions/cronoszkEVM.js'
export { cronoszkEVMTestnet } from './definitions/cronoszkEVMTestnet.js'
export { cronosTestnet } from './definitions/cronosTestnet.js'
export { crossbell } from './definitions/crossbell.js'
Expand Down

0 comments on commit a040bc4

Please sign in to comment.