Skip to content

Commit 3a7fba4

Browse files
dmitrii602jxom
andauthored
feat: add WMC Testnet chain configuration (#3288)
* Added WMC Testnet chain configuration * Update wmcTestnet.ts * Update empty-kangaroos-join.md --------- Co-authored-by: jxom <[email protected]>
1 parent 9a7bc6e commit 3a7fba4

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.changeset/empty-kangaroos-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added WMC Testnet chain.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const wmcTestnet = /*#__PURE__*/ defineChain({
4+
id: 42070,
5+
name: 'WMC Testnet',
6+
nativeCurrency: { name: 'WMTx', symbol: 'WMTx', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://rpc-testnet-base.worldmobile.net'],
10+
},
11+
},
12+
blockExplorers: {
13+
default: {
14+
name: 'WMC Explorer',
15+
url: 'https://explorer2-base-testnet.worldmobile.net',
16+
},
17+
},
18+
testnet: true,
19+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ export { wanchainTestnet } from './definitions/wanchainTestnet.js'
491491
export { weaveVMAlphanet } from './definitions/weavevmAlphanet.js'
492492
export { wemix } from './definitions/wemix.js'
493493
export { wemixTestnet } from './definitions/wemixTestnet.js'
494+
export { wmcTestnet } from './definitions/wmcTestnet.js';
494495
export { worldchain } from './definitions/worldchain.js'
495496
export { worldchainSepolia } from './definitions/worldchainSepolia.js'
496497
export { worldLand } from './definitions/worldLand.js'

0 commit comments

Comments
 (0)