From f6bad1fab4159fa22f9ab7571c589e8459347c23 Mon Sep 17 00:00:00 2001 From: tate Date: Wed, 9 Aug 2023 11:37:07 +1000 Subject: [PATCH 1/2] chore: sepolia addresses --- packages/ensjs/src/contracts/getContractAddress.ts | 8 ++++++++ packages/ensjs/src/contracts/types.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/ensjs/src/contracts/getContractAddress.ts b/packages/ensjs/src/contracts/getContractAddress.ts index feb39779..ffd380f6 100644 --- a/packages/ensjs/src/contracts/getContractAddress.ts +++ b/packages/ensjs/src/contracts/getContractAddress.ts @@ -8,6 +8,7 @@ const addresses: Record< BaseRegistrarImplementation: { '1': '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85', '5': '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85', + '11155111': '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85', }, DNSRegistrar: { '1': '0x58774Bb8acD458A640aF0B88238369A167546ef2', @@ -16,31 +17,38 @@ const addresses: Record< ETHRegistrarController: { '1': '0x253553366Da8546fC250F225fe3d25d0C782303b', '5': '0xCc5e7dB10E65EED1BBD105359e7268aa660f6734', + '11155111': '0xFED6a969AaA60E4961FCD3EBF1A2e8913ac65B72', }, Multicall: '0xcA11bde05977b3631167028862bE2a173976CA11', NameWrapper: { '1': '0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401', '5': '0x114D4603199df73e7D157787f8778E21fCd13066', + '11155111': '0x0635513f179D50A207757E05759CbD106d7dFcE8', }, PublicResolver: { '1': '0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63', '5': '0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750', + '11155111': '0x8FADE66B79cC9f707aB26799354482EB93a5B7dD', }, ENSRegistry: { '1': '0x00000000000c2e074ec69a0dfb2997ba6c7d2e1e', '5': '0x00000000000c2e074ec69a0dfb2997ba6c7d2e1e', + '11155111': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', }, ReverseRegistrar: { '1': '0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb', '5': '0x4f7A657451358a22dc397d5eE7981FfC526cd856', + '11155111': '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6', }, UniversalResolver: { '1': '0xc0497e381f536be9ce14b0dd3817cbcae57d2f62', '5': '0x56522d00c410a43bffdf00a9a569489297385790', + '11155111': '0x21B000Fd62a880b2125A61e36a284BB757b76025', }, BulkRenewal: { '1': '0xa12159e5131b1eEf6B4857EEE3e1954744b5033A', '5': '0xeA64C81d0d718620daBC02D61f3B255C641f475F', + '11155111': '0x4EF77b90762Eddb33C8Eba5B5a19558DaE53D7a1', }, /* eslint-enable @typescript-eslint/naming-convention */ } diff --git a/packages/ensjs/src/contracts/types.ts b/packages/ensjs/src/contracts/types.ts index 41e96343..118dec2a 100644 --- a/packages/ensjs/src/contracts/types.ts +++ b/packages/ensjs/src/contracts/types.ts @@ -1,4 +1,4 @@ -export type SupportedNetworkId = '1' | '3' | '4' | '5' | '1337' +export type SupportedNetworkId = '1' | '5' | '11155111' | '1337' export type ContractName = | 'BaseRegistrarImplementation' From a75127249f5ab6b0f665e1040b0787102e0f7678 Mon Sep 17 00:00:00 2001 From: tate Date: Wed, 9 Aug 2023 13:29:00 +1000 Subject: [PATCH 2/2] added sepolia subgraph --- packages/ensjs/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ensjs/src/index.ts b/packages/ensjs/src/index.ts index da7101de..2ab2691d 100644 --- a/packages/ensjs/src/index.ts +++ b/packages/ensjs/src/index.ts @@ -78,9 +78,9 @@ interface WriteFunction any> extends Function { /* eslint-disable @typescript-eslint/naming-convention */ export const graphURIEndpoints: Record = { 1: 'https://api.thegraph.com/subgraphs/name/ensdomains/ens', - 3: 'https://api.thegraph.com/subgraphs/name/ensdomains/ensropsten', - 4: 'https://api.thegraph.com/subgraphs/name/ensdomains/ensrinkeby', 5: 'https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli', + 11155111: + 'https://api.studio.thegraph.com/query/49574/enssepolia/version/latest', } /* eslint-enable @typescript-eslint/naming-convention */