Skip to content

Commit

Permalink
feat: add Hashkey Chain testnet (#2654)
Browse files Browse the repository at this point in the history
* config: add Hashkey Chain testnet

* Create pretty-cows-collect.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
lyszhang and jxom committed Aug 27, 2024
1 parent 4d87428 commit 02415bc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-cows-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const hashkeyTestnet = /*#__PURE__*/ defineChain({
id: 133,
name: 'HashKey Chain Testnet',
nativeCurrency: {
decimals: 18,
name: 'HashKey EcoPoints',
symbol: 'HSK',
},
rpcUrls: {
default: {
http: ['https://hashkeychain-testnet.alt.technology'],
},
},
blockExplorers: {
default: {
name: 'HashKey Chain Explorer',
url: 'https://hashkeychain-testnet-explorer.alt.technology',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export { gravity } from './definitions/gravity.js'
export { ham } from './definitions/ham.js'
export { hardhat } from './definitions/hardhat.js'
export { harmonyOne } from './definitions/harmonyOne.js'
export { hashkeyTestnet } from './definitions/hashkeyChainTestnet.js'
export { haqqMainnet } from './definitions/haqqMainnet.js'
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
export { hedera } from './definitions/hedera.js'
Expand Down

0 comments on commit 02415bc

Please sign in to comment.