Skip to content

Commit 14d850b

Browse files
wei-b0jxom
andauthored
feat: add Huddle01 chain (#3212)
* add: Huddle01 chain definations for testnet and mainnet * Create moody-nails-yawn.md --------- Co-authored-by: jxom <[email protected]>
1 parent fd17ba9 commit 14d850b

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.changeset/moody-nails-yawn.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added Huddle01 chain.
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
const sourceId = 42_161 // Arbitrum One
4+
5+
export const huddle01Mainnet = /*#__PURE__*/ defineChain({
6+
id: 12323,
7+
name: 'Huddle01 dRTC Chain',
8+
nativeCurrency: {
9+
name: 'Ethereum',
10+
symbol: 'ETH',
11+
decimals: 18,
12+
},
13+
rpcUrls: {
14+
default: {
15+
http: ['https://huddle01.calderachain.xyz/http'],
16+
webSocket: ['wss://huddle01.calderachain.xyz/ws'],
17+
},
18+
},
19+
blockExplorers: {
20+
default: {
21+
name: 'Huddle01 Caldera Explorer',
22+
url: 'https://huddle01.calderaexplorer.xyz',
23+
apiUrl: 'https://huddle01.calderaexplorer.xyz/api',
24+
},
25+
},
26+
sourceId,
27+
})
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
const sourceId = 421_614 // Arbitrum Sepolia
4+
5+
export const huddle01Testnet = /*#__PURE__*/ defineChain({
6+
id: 2524852,
7+
name: 'Huddle01 dRTC Chain Testnet',
8+
nativeCurrency: {
9+
name: 'Ethereum',
10+
symbol: 'ETH',
11+
decimals: 18,
12+
},
13+
rpcUrls: {
14+
default: {
15+
http: ['https://huddle-testnet.rpc.caldera.xyz/http'],
16+
webSocket: ['wss://huddle-testnet.rpc.caldera.xyz/ws'],
17+
},
18+
},
19+
blockExplorers: {
20+
default: {
21+
name: 'Huddle01 Caldera Explorer',
22+
url: 'https://huddle-testnet.explorer.caldera.xyz',
23+
apiUrl: 'https://huddle-testnet.explorer.caldera.xyz/api',
24+
},
25+
},
26+
sourceId,
27+
})

src/chains/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ export { hela } from './definitions/hela.js'
201201
export { hemiSepolia } from './definitions/hemiSepolia.js'
202202
export { holesky } from './definitions/holesky.js'
203203
export { hpb } from './definitions/hpb.js'
204+
export { huddle01Mainnet } from './definitions/huddle01Mainnet.js'
205+
export { huddle01Testnet } from './definitions/huddle01Testnet.js'
204206
export { humanode } from './definitions/humanode.js'
205207
export { humanodeTestnet5 } from './definitions/humanodeTestnet5.js'
206208
export { hychain } from './definitions/hychain.js'

0 commit comments

Comments
 (0)