Skip to content

Commit

Permalink
feat: add haust chain (#3352)
Browse files Browse the repository at this point in the history
* feat: add haust chain

* Update chain name

* revert change
  • Loading branch information
biruichen authored Feb 17, 2025
1 parent d0ead40 commit 3fc5f86
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-tomatoes-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Haust Network Testnet.
1 change: 1 addition & 0 deletions src/chains/definitions/hashkeyChainTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export const hashkeyTestnet = /*#__PURE__*/ defineChain({
url: 'https://hashkeychain-testnet-explorer.alt.technology',
},
},
testnet: true,
})
23 changes: 23 additions & 0 deletions src/chains/definitions/haustTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const haustTestnet = /*#__PURE__*/ defineChain({
id: 1_523_903_251,
name: 'Haust Network Testnet',
nativeCurrency: {
decimals: 18,
name: 'HAUST',
symbol: 'HAUST',
},
rpcUrls: {
default: {
http: ['https://rpc-testnet.haust.app'],
},
},
blockExplorers: {
default: {
name: 'Haust Network Testnet Explorer',
url: 'https://explorer-testnet.haust.app',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export { hardhat } from './definitions/hardhat.js'
export { harmonyOne } from './definitions/harmonyOne.js'
export { hashkey } from './definitions/hashKeyChain.js'
export { hashkeyTestnet } from './definitions/hashkeyChainTestnet.js'
export { haustTestnet } from './definitions/haustTestnet.js'
export { hedera } from './definitions/hedera.js'
export { hederaPreviewnet } from './definitions/hederaPreviewnet.js'
export { hederaTestnet } from './definitions/hederaTestnet.js'
Expand Down

0 comments on commit 3fc5f86

Please sign in to comment.