From c53eb7459f4abadd6addba04ab4534e9befc8b05 Mon Sep 17 00:00:00 2001 From: fengbaolong Date: Sat, 19 Oct 2024 12:32:39 +0800 Subject: [PATCH] feat: add step network (#2885) * feat: add step network * Update index.ts --------- Co-authored-by: jxom --- .changeset/kind-jokes-impress.md | 5 +++++ src/chains/definitions/step.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/kind-jokes-impress.md create mode 100644 src/chains/definitions/step.ts diff --git a/.changeset/kind-jokes-impress.md b/.changeset/kind-jokes-impress.md new file mode 100644 index 0000000000..9d8f2e9b1d --- /dev/null +++ b/.changeset/kind-jokes-impress.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Step Network. diff --git a/src/chains/definitions/step.ts b/src/chains/definitions/step.ts new file mode 100644 index 0000000000..60ca884d5a --- /dev/null +++ b/src/chains/definitions/step.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const step = /*#__PURE__*/ defineChain({ + id: 1234, + name: 'Step Network', + nativeCurrency: { name: 'FITFI', symbol: 'FITFI', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.step.network'], + }, + }, + blockExplorers: { + default: { + name: 'Step Scan', + url: 'https://stepscan.io', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 23c8a73e41..7d949d582a 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -336,6 +336,7 @@ export { shardeumSphinx } from './definitions/shardeumSphinx.js' export { shibarium } from './definitions/shibarium.js' export { shibariumTestnet } from './definitions/shibariumTestnet.js' export { shiden } from './definitions/shiden.js' +export { step } from './definitions/step.js' export { storyTestnet } from './definitions/storyTestnet.js' export { silicon } from './definitions/silicon.js' export { siliconSepolia } from './definitions/siliconSepolia.js'