From 8fdacd8c24e5ee7a66e77f426ba53ca4a2950d56 Mon Sep 17 00:00:00 2001 From: Mithras <120666231+Mithreum@users.noreply.github.com> Date: Wed, 9 Aug 2023 07:15:06 +0300 Subject: [PATCH] feat: add fuseSparkent Chain (#464) * Add fuseSparkent Chain * Update fuseSparknet.ts * Update fuseSparknet.ts * Update fuseSparknet.ts * Create angry-cougars-know.md --------- Co-authored-by: jxom --- .changeset/angry-cougars-know.md | 5 +++++ packages/chains/src/fuseSparknet.ts | 18 ++++++++++++++++++ packages/chains/src/index.ts | 1 + 3 files changed, 24 insertions(+) create mode 100644 .changeset/angry-cougars-know.md create mode 100644 packages/chains/src/fuseSparknet.ts diff --git a/.changeset/angry-cougars-know.md b/.changeset/angry-cougars-know.md new file mode 100644 index 00000000..31ff49c1 --- /dev/null +++ b/.changeset/angry-cougars-know.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": patch +--- + +Added Sparknet Chain diff --git a/packages/chains/src/fuseSparknet.ts b/packages/chains/src/fuseSparknet.ts new file mode 100644 index 00000000..87addb7b --- /dev/null +++ b/packages/chains/src/fuseSparknet.ts @@ -0,0 +1,18 @@ +import { Chain } from './types' + +export const sparknet = { + id: 123, + name: 'Sparknet', + network: 'fuse', + nativeCurrency: { name: 'Spark', symbol: 'SPARK', decimals: 18 }, + rpcUrls: { + default: { http: ['https://rpc.fusespark.io'] }, + public: { http: ['https://rpc.fusespark.io'] }, + }, + blockExplorers: { + default: { + name: 'Sparkent Explorer', + url: 'https://explorer.fusespark.io', + }, + } +} as const satisfies Chain diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 14930846..81534b3d 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -46,6 +46,7 @@ export { flare } from './flare' export { flareTestnet } from './flareTestnet' export { foundry } from './foundry' export { fuse } from './fuse' +export { sparknet } from './fuseSparknet' export { iotex } from './iotex' export { iotexTestnet } from './iotexTestnet' export { goerli } from './goerli'