Skip to content

Commit 149d406

Browse files
authored
feat: add HashKey Chain (#3311)
1 parent 253b107 commit 149d406

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.changeset/tricky-moles-dance.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 HashKey Chain.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const hashkey = /*#__PURE__*/ defineChain({
4+
id: 177,
5+
name: 'HashKey Chain',
6+
nativeCurrency: {
7+
decimals: 18,
8+
name: 'HashKey EcoPoints',
9+
symbol: 'HSK',
10+
},
11+
rpcUrls: {
12+
default: {
13+
http: ['https://mainnet.hsk.xyz'],
14+
},
15+
},
16+
blockExplorers: {
17+
default: {
18+
name: 'HashKey Chain Explorer',
19+
url: 'https://hashkey.blockscout.com',
20+
},
21+
},
22+
contracts: {
23+
multicall3: {
24+
address: '0xca11bde05977b3631167028862be2a173976ca11',
25+
blockCreated: 0,
26+
},
27+
},
28+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export { haqqMainnet } from './definitions/haqqMainnet.js'
205205
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
206206
export { hardhat } from './definitions/hardhat.js'
207207
export { harmonyOne } from './definitions/harmonyOne.js'
208+
export { hashkey } from './definitions/hashKeyChain.js'
208209
export { hashkeyTestnet } from './definitions/hashkeyChainTestnet.js'
209210
export { hedera } from './definitions/hedera.js'
210211
export { hederaPreviewnet } from './definitions/hederaPreviewnet.js'

0 commit comments

Comments
 (0)