From 6794a61d290adc5a309efbc25a9bfa85c1bdfe31 Mon Sep 17 00:00:00 2001 From: xgarreau <56249105+xgarreau@users.noreply.github.com> Date: Wed, 9 Aug 2023 05:54:21 +0200 Subject: [PATCH] feat: add Horizen EON testnet (gobi) and mainnet (eon) (#433) * Added gobi.ts and eon.ts Added Horizen EON testnet (gobi) and mainnet (eon) * Update eon.ts * Update gobi.ts * Create light-toes-relate.md --------- Co-authored-by: jxom --- .changeset/light-toes-relate.md | 5 +++++ packages/chains/src/eon.ts | 21 +++++++++++++++++++++ packages/chains/src/gobi.ts | 22 ++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 .changeset/light-toes-relate.md create mode 100644 packages/chains/src/eon.ts create mode 100644 packages/chains/src/gobi.ts diff --git a/.changeset/light-toes-relate.md b/.changeset/light-toes-relate.md new file mode 100644 index 00000000..ccc5a38e --- /dev/null +++ b/.changeset/light-toes-relate.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": patch +--- + +Added Horizen EON. diff --git a/packages/chains/src/eon.ts b/packages/chains/src/eon.ts new file mode 100644 index 00000000..3f899a5b --- /dev/null +++ b/packages/chains/src/eon.ts @@ -0,0 +1,21 @@ +import { Chain } from 'wagmi' + +export const eon = { + id: 7_332, + name: 'Horizen EON', + network: 'eon', + nativeCurrency: { + decimals: 18, + name: 'ZEN', + symbol: 'ZEN', + }, + rpcUrls: { + public: { http: ['https://eon-rpc.horizenlabs.io/ethv1'] }, + default: { http: ['https://eon-rpc.horizenlabs.io/ethv1'] }, + }, + blockExplorers: { + default: { name: 'EON Explorer', url: 'https://eon-explorer.horizenlabs.io' }, + }, + contracts: { + }, +} as const satisfies Chain diff --git a/packages/chains/src/gobi.ts b/packages/chains/src/gobi.ts new file mode 100644 index 00000000..1bb931a8 --- /dev/null +++ b/packages/chains/src/gobi.ts @@ -0,0 +1,22 @@ +import { Chain } from 'wagmi' + +export const gobi = { + id: 1_663, + name: 'Horizen Gobi Testnet', + network: 'gobi', + nativeCurrency: { + decimals: 18, + name: 'Test ZEN', + symbol: 'tZEN', + }, + rpcUrls: { + public: { http: ['https://gobi-testnet.horizenlabs.io/ethv1'] }, + default: { http: ['https://gobi-testnet.horizenlabs.io/ethv1'] }, + }, + blockExplorers: { + default: { name: 'Gobi Explorer', url: 'https://gobi-explorer.horizen.io' }, + }, + contracts: { + }, + testnet: true, +} as const satisfies Chain