From e2c78805b4ed37167a7d2ab9c99908edcb84b1b7 Mon Sep 17 00:00:00 2001 From: Devon Date: Wed, 26 Jun 2024 12:43:56 +0300 Subject: [PATCH 1/3] feat: added etherlink mainnet --- src/chains/definitions/etherlink.ts | 20 ++++++++++++++++++++ src/chains/index.ts | 1 + 2 files changed, 21 insertions(+) create mode 100644 src/chains/definitions/etherlink.ts diff --git a/src/chains/definitions/etherlink.ts b/src/chains/definitions/etherlink.ts new file mode 100644 index 0000000000..9f79358e81 --- /dev/null +++ b/src/chains/definitions/etherlink.ts @@ -0,0 +1,20 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const etherlink = /*#__PURE__*/ defineChain({ + id: 42793, + name: 'Etherlink', + nativeCurrency: { + decimals: 18, + name: 'Tez', + symbol: 'XTZ', + }, + rpcUrls: { + default: { http: ['https://node.mainnet.etherlink.com'] }, + }, + blockExplorers: { + default: { + name: 'Etherlink', + url: 'https://explorer.etherlink.com', + }, + }, +}) \ No newline at end of file diff --git a/src/chains/index.ts b/src/chains/index.ts index 4fea6c5329..4cbb35157d 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -78,6 +78,7 @@ export { edgewareTestnet } from './definitions/edgewareTestnet.js' export { eon } from './definitions/eon.js' export { eos } from './definitions/eos.js' export { eosTestnet } from './definitions/eosTestnet.js' +export { etherlink } from './definitions/etherlink.js' export { etherlinkTestnet } from './definitions/etherlinkTestnet.js' export { evmos } from './definitions/evmos.js' export { evmosTestnet } from './definitions/evmosTestnet.js' From 7cb29e73f124cb385f19de1d72517d0bf8839a0d Mon Sep 17 00:00:00 2001 From: Devon Date: Wed, 26 Jun 2024 12:50:37 +0300 Subject: [PATCH 2/3] feat: added multicall for etherlink --- src/chains/definitions/etherlink.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chains/definitions/etherlink.ts b/src/chains/definitions/etherlink.ts index 9f79358e81..fea648b2d9 100644 --- a/src/chains/definitions/etherlink.ts +++ b/src/chains/definitions/etherlink.ts @@ -17,4 +17,10 @@ export const etherlink = /*#__PURE__*/ defineChain({ url: 'https://explorer.etherlink.com', }, }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 33899, + }, + }, }) \ No newline at end of file From 4ef87394b89c1d05e398e8a369823a1ff596d9cf Mon Sep 17 00:00:00 2001 From: Devon Date: Wed, 26 Jun 2024 12:56:45 +0300 Subject: [PATCH 3/3] chore: added changeset --- .changeset/three-schools-knock.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/three-schools-knock.md diff --git a/.changeset/three-schools-knock.md b/.changeset/three-schools-knock.md new file mode 100644 index 0000000000..6cdd512efd --- /dev/null +++ b/.changeset/three-schools-knock.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Etherlink Mainnet chain