Skip to content

Commit

Permalink
feat: add happychain testnet (#3282)
Browse files Browse the repository at this point in the history
* feat: add happychain testnet

* Update happychainTestnet.ts

* Update index.ts

---------

Co-authored-by: aodhgan <[email protected]>
Co-authored-by: jxom <[email protected]>
  • Loading branch information
3 people authored Jan 28, 2025
1 parent bc2028b commit 3bf349e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-pugs-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const happychainTestnet = /*#__PURE__*/ defineChain({
id: 216,
name: 'Happychain Testnet',
nativeCurrency: {
symbol: 'HAPPY',
name: 'HAPPY',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://happy-testnet-sepolia.rpc.caldera.xyz/http'],
webSocket: ['wss://happy-testnet-sepolia.rpc.caldera.xyz/ws'],
},
},
blockExplorers: {
default: {
name: 'Happy Chain Testnet Explorer',
url: 'https://happy-testnet-sepolia.explorer.caldera.xyz/',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 1,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export { gravity } from './definitions/gravity.js'
export { guruNetwork } from './definitions/guruNetwork.js'
export { guruTestnet } from './definitions/guruTestnet.js'
export { ham } from './definitions/ham.js'
export { happychainTestnet } from './definitions/happychainTestnet.js'
export { haqqMainnet } from './definitions/haqqMainnet.js'
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
export { hardhat } from './definitions/hardhat.js'
Expand Down

0 comments on commit 3bf349e

Please sign in to comment.