From 48f1bf495edcaa0f0beb40ca9466a741396c3209 Mon Sep 17 00:00:00 2001 From: nichonien Date: Wed, 9 Aug 2023 10:21:56 +0530 Subject: [PATCH 1/6] feat: add energy web chains (ewc & volta) --- packages/chains/src/ewc.ts | 27 +++++++++++++++++++++++++++ packages/chains/src/index.ts | 2 ++ packages/chains/src/volta.ts | 27 +++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 packages/chains/src/ewc.ts create mode 100644 packages/chains/src/volta.ts diff --git a/packages/chains/src/ewc.ts b/packages/chains/src/ewc.ts new file mode 100644 index 00000000..9c273303 --- /dev/null +++ b/packages/chains/src/ewc.ts @@ -0,0 +1,27 @@ +import { Chain } from './types' + +export const ewc = { + id: 246, + name: 'Energy Web Chain', + network: 'ewc', + nativeCurrency: { name: 'EWT', symbol: 'EWT', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.energyweb.org/'], + }, + public: { + http: ['https://rpc.energyweb.org/'], + }, + }, + blockExplorers: { + default: { + name: 'Energy Web Chain Explorer', + url: 'https://explorer.energyweb.org', + }, + }, + contracts: { + ensRegistry: { + address: '0x0A6d64413c07E10E890220BBE1c49170080C6Ca0', + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index e14d954f..4df8c755 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -36,6 +36,7 @@ export { evmos } from './evmos' export { evmosTestnet } from './evmosTestnet' export { ekta } from './ekta' export { ektaTestnet } from './ektaTestnet' +export { ewc } from './ewc' export { fantom } from './fantom' export { fantomTestnet } from './fantomTestnet' export { fibo } from './fibo' @@ -109,6 +110,7 @@ export { taraxaTestnet } from './taraxaTestnet' export { telos } from './telos' export { telosTestnet } from './telosTestnet' export { thunderTestnet } from './thunderTestnet' +export { volta } from './volta' export { wanchain } from './wanchain' export { wanchainTestnet } from './wanchainTestnet' export { xdc } from './xdc' diff --git a/packages/chains/src/volta.ts b/packages/chains/src/volta.ts new file mode 100644 index 00000000..a4d343ff --- /dev/null +++ b/packages/chains/src/volta.ts @@ -0,0 +1,27 @@ +import { Chain } from './types' + +export const volta = { + id: 73799, + name: 'Volta Chain', + network: 'volta', + nativeCurrency: { name: 'VT', symbol: 'VT', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://volta-rpc.energyweb.org/'], + }, + public: { + http: ['https://volta-rpc.energyweb.org/'], + }, + }, + blockExplorers: { + default: { + name: 'Volta Explorer', + url: 'https://volta-explorer.energyweb.org', + }, + }, + contracts: { + ensRegistry: { + address: '0xd7CeF70Ba7efc2035256d828d5287e2D285CD1ac', + }, + }, +} as const satisfies Chain From a3d33d2104a970b792f29d9d660c53dad2af81dd Mon Sep 17 00:00:00 2001 From: nichonien Date: Wed, 9 Aug 2023 10:24:41 +0530 Subject: [PATCH 2/6] chore: update changeset --- .changeset/smooth-wolves-ring.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/smooth-wolves-ring.md diff --git a/.changeset/smooth-wolves-ring.md b/.changeset/smooth-wolves-ring.md new file mode 100644 index 00000000..87ff87aa --- /dev/null +++ b/.changeset/smooth-wolves-ring.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": major +--- + +add energy web chains From a16e9f143c0ac809cdaeba8e01b60cec26f261b6 Mon Sep 17 00:00:00 2001 From: nichonien Date: Wed, 9 Aug 2023 10:28:21 +0530 Subject: [PATCH 3/6] docs: add energy web chains to readme --- packages/chains/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/chains/README.md b/packages/chains/README.md index 8ae3eb02..0c1dc233 100644 --- a/packages/chains/README.md +++ b/packages/chains/README.md @@ -51,6 +51,7 @@ const { chains, provider } = configureChains( - `edgewareTestnet` - `eos` - `eosTestnet` +- `ewc` - `fantom` - `fantomTestnet` - `foundry` @@ -97,6 +98,7 @@ const { chains, provider } = configureChains( - `taraxaTestnet` - `telos` - `telosTestnet` +- `volta` - `zkSync` - `zkSyncTestnet` - `zora` From 2ed76d26d0c5410d761115238313c927e8eb1401 Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 12 Aug 2023 17:11:13 +0200 Subject: [PATCH 4/6] Update volta.ts --- packages/chains/src/volta.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/chains/src/volta.ts b/packages/chains/src/volta.ts index a4d343ff..d974171f 100644 --- a/packages/chains/src/volta.ts +++ b/packages/chains/src/volta.ts @@ -7,10 +7,10 @@ export const volta = { nativeCurrency: { name: 'VT', symbol: 'VT', decimals: 18 }, rpcUrls: { default: { - http: ['https://volta-rpc.energyweb.org/'], + http: ['https://volta-rpc.energyweb.org'], }, public: { - http: ['https://volta-rpc.energyweb.org/'], + http: ['https://volta-rpc.energyweb.org'], }, }, blockExplorers: { From 3bfb9ecc63fc14be5b591a3095090ca337efbaaa Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 12 Aug 2023 17:11:38 +0200 Subject: [PATCH 5/6] Update ewc.ts --- packages/chains/src/ewc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/chains/src/ewc.ts b/packages/chains/src/ewc.ts index 9c273303..f1ed4ca2 100644 --- a/packages/chains/src/ewc.ts +++ b/packages/chains/src/ewc.ts @@ -7,10 +7,10 @@ export const ewc = { nativeCurrency: { name: 'EWT', symbol: 'EWT', decimals: 18 }, rpcUrls: { default: { - http: ['https://rpc.energyweb.org/'], + http: ['https://rpc.energyweb.org'], }, public: { - http: ['https://rpc.energyweb.org/'], + http: ['https://rpc.energyweb.org'], }, }, blockExplorers: { From ade15b25e4ac88451a4f8f1cb3c32515ee3d46e6 Mon Sep 17 00:00:00 2001 From: jxom Date: Sat, 12 Aug 2023 17:12:43 +0200 Subject: [PATCH 6/6] Update smooth-wolves-ring.md --- .changeset/smooth-wolves-ring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/smooth-wolves-ring.md b/.changeset/smooth-wolves-ring.md index 87ff87aa..01e9cd4e 100644 --- a/.changeset/smooth-wolves-ring.md +++ b/.changeset/smooth-wolves-ring.md @@ -2,4 +2,4 @@ "@wagmi/chains": major --- -add energy web chains +Added `ewc` & `volta` chains.