Skip to content

Commit

Permalink
feat: add Aleph Zero (wevm#3150)
Browse files Browse the repository at this point in the history
* feat: Add Aleph Zero

* lint

* add changeset

* Update weak-candles-think.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
pxrl and jxom authored Dec 21, 2024
1 parent cf45bf1 commit 04630fd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-candles-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const alephZero = /*#__PURE__*/ defineChain({
id: 41_455,
name: 'Aleph Zero',
nativeCurrency: { name: 'Aleph Zero', symbol: 'AZERO', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.alephzero.raas.gelato.cloud'],
},
},
blockExplorers: {
default: {
name: 'Aleph Zero EVM Explorer',
url: 'https://evm-explorer.alephzero.org',
apiUrl: 'https://evm-explorer.alephzero.org/api',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 4603377,
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { acala } from './definitions/acala.js'
export { acria } from './definitions/acria.js'
export { adf } from './definitions/adf.js'
export { aioz } from './definitions/aioz.js'
export { alephZero } from './definitions/alephZero.js'
export { alienx } from './definitions/alienX.js'
export { alienxHalTestnet } from './definitions/alienXHalTestnet.js'
export { ancient8 } from './definitions/ancient8.js'
Expand Down

0 comments on commit 04630fd

Please sign in to comment.