Skip to content

Commit 3bf349e

Browse files
aodhgangawniegjxom
authored
feat: add happychain testnet (#3282)
* feat: add happychain testnet * Update happychainTestnet.ts * Update index.ts --------- Co-authored-by: aodhgan <[email protected]> Co-authored-by: jxom <[email protected]>
1 parent bc2028b commit 3bf349e

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.changeset/rotten-pugs-decide.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 Happychain testnet
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const happychainTestnet = /*#__PURE__*/ defineChain({
4+
id: 216,
5+
name: 'Happychain Testnet',
6+
nativeCurrency: {
7+
symbol: 'HAPPY',
8+
name: 'HAPPY',
9+
decimals: 18,
10+
},
11+
rpcUrls: {
12+
default: {
13+
http: ['https://happy-testnet-sepolia.rpc.caldera.xyz/http'],
14+
webSocket: ['wss://happy-testnet-sepolia.rpc.caldera.xyz/ws'],
15+
},
16+
},
17+
blockExplorers: {
18+
default: {
19+
name: 'Happy Chain Testnet Explorer',
20+
url: 'https://happy-testnet-sepolia.explorer.caldera.xyz/',
21+
},
22+
},
23+
contracts: {
24+
multicall3: {
25+
address: '0xca11bde05977b3631167028862be2a173976ca11',
26+
blockCreated: 1,
27+
},
28+
},
29+
testnet: true,
30+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export { gravity } from './definitions/gravity.js'
197197
export { guruNetwork } from './definitions/guruNetwork.js'
198198
export { guruTestnet } from './definitions/guruTestnet.js'
199199
export { ham } from './definitions/ham.js'
200+
export { happychainTestnet } from './definitions/happychainTestnet.js'
200201
export { haqqMainnet } from './definitions/haqqMainnet.js'
201202
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
202203
export { hardhat } from './definitions/hardhat.js'

0 commit comments

Comments
 (0)