Skip to content

Commit

Permalink
feat: add Aleph Zero Testnet chain (#3233)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggawryal authored Jan 16, 2025
1 parent d7efab3 commit e4fd731
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-turtles-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const alephZeroTestnet = /*#__PURE__*/ defineChain({
id: 2039,
name: 'Aleph Zero Testnet',
nativeCurrency: { name: 'TZERO', symbol: 'TZERO', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.alephzero-testnet.gelato.digital'],
webSocket: ['wss://ws.alephzero-testnet.gelato.digital'],
},
},
blockExplorers: {
default: {
name: 'Aleph Zero EVM Testnet explorer',
url: 'https://evm-explorer-testnet.alephzero.org',
apiUrl: 'https://evm-explorer-testnet.alephzero.org/api',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 2861745,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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 { alephZeroTestnet } from './definitions/alephZeroTestnet.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 e4fd731

Please sign in to comment.