From 4d1dea7fe890e61c88149c9088b5568d9d6ea65a Mon Sep 17 00:00:00 2001 From: lyszhang Date: Mon, 26 Aug 2024 14:50:38 +0800 Subject: [PATCH 1/2] config: add Hashkey Chain testnet --- src/chains/definitions/hashkeyChainTestnet.ts | 22 +++++++++++++++++++ src/chains/index.ts | 1 + 2 files changed, 23 insertions(+) create mode 100644 src/chains/definitions/hashkeyChainTestnet.ts diff --git a/src/chains/definitions/hashkeyChainTestnet.ts b/src/chains/definitions/hashkeyChainTestnet.ts new file mode 100644 index 0000000000..12940304c0 --- /dev/null +++ b/src/chains/definitions/hashkeyChainTestnet.ts @@ -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', + }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index c135f0d451..f46169e605 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -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' From 510e9836c87907b6f8b7bbc28f02faf7ce0710e7 Mon Sep 17 00:00:00 2001 From: jxom Date: Tue, 27 Aug 2024 11:01:51 +1000 Subject: [PATCH 2/2] Create pretty-cows-collect.md --- .changeset/pretty-cows-collect.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/pretty-cows-collect.md diff --git a/.changeset/pretty-cows-collect.md b/.changeset/pretty-cows-collect.md new file mode 100644 index 0000000000..b1124283e9 --- /dev/null +++ b/.changeset/pretty-cows-collect.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Hashkey Chain testnet.