Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add heco chain #3003

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/purple-elephants-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const heco = /*#__PURE__*/ defineChain({
id: 128,
name: 'Huobi ECO Chain Mainnet',
nativeCurrency: { name: 'HT', symbol: 'HT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://http-mainnet.hecochain.com'],
webSocket: ['wss://ws-mainnet.hecochain.com'],
},
},
blockExplorers: {
default: {
name: 'Heco Scan',
url: 'https://hecoscan.io',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to not load for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Hmm, it's a bit strange. I can load it normally here. I'll close this PR first and find out where the problem is.

},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
export { hardhat } from './definitions/hardhat.js'
export { harmonyOne } from './definitions/harmonyOne.js'
export { hashkeyTestnet } from './definitions/hashkeyChainTestnet.js'
export { heco } from './definitions/heco.js'
export { hedera } from './definitions/hedera.js'
export { hederaPreviewnet } from './definitions/hederaPreviewnet.js'
export { hederaTestnet } from './definitions/hederaTestnet.js'
Expand Down
Loading