Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: add Horizen EON testnet (gobi) and mainnet (eon) (#433)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
xgarreau and jxom authored Aug 9, 2023
1 parent ebc85ec commit 6794a61
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-toes-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": patch
---

Added Horizen EON.
21 changes: 21 additions & 0 deletions packages/chains/src/eon.ts
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions packages/chains/src/gobi.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6794a61

Please sign in to comment.