Skip to content

Commit

Permalink
feat: add monad testnet (#3301)
Browse files Browse the repository at this point in the history
Co-authored-by: Peng Ke <[email protected]>
  • Loading branch information
pk-850 and pk-850 authored Feb 5, 2025
1 parent 7450095 commit c3c56f8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-poets-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const monadTestnet = /*#__PURE__*/ defineChain({
id: 10_143,
name: 'Monad Testnet',
nativeCurrency: {
name: 'Testnet MON Token',
symbol: 'MON',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://testnet-rpc.monad.xyz'],
},
},
blockExplorers: {
default: {
name: 'Monad Testnet explorer',
url: 'https://testnet.monadexplorer.com',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 251449,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export { mintSepoliaTestnet } from './definitions/mintSepoliaTestnet.js'
export { mitosisTestnet } from './definitions/mitosisTestnet.js'
export { mode } from './definitions/mode.js'
export { modeTestnet } from './definitions/modeTestnet.js'
export { monadTestnet } from './definitions/monadTestnet.js'
export { moonbaseAlpha } from './definitions/moonbaseAlpha.js'
export { moonbeam } from './definitions/moonbeam.js'
export { moonbeamDev } from './definitions/moonbeamDev.js'
Expand Down

0 comments on commit c3c56f8

Please sign in to comment.