From 4b34f8c21f5e4a1ac3448317325510bf8c178f62 Mon Sep 17 00:00:00 2001 From: msvstj Date: Thu, 29 Jun 2023 09:33:12 +0300 Subject: [PATCH 1/2] feat: add linea goerli testnet network support --- hardhat.config.ts | 4 ++++ sdk/contracts.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/hardhat.config.ts b/hardhat.config.ts index b7ab800e..98aee373 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -105,6 +105,10 @@ export default { ...sharedNetworkConfig, url: "https://bsc-dataseed.binance.org", }, + lineaGoerli: { + ...sharedNetworkConfig, + url: `https://linea-goerli.infura.io/v3/${INFURA_KEY}`, + }, }, namedAccounts: { deployer: 0, diff --git a/sdk/contracts.ts b/sdk/contracts.ts index 0079c5ea..78e6a4b2 100644 --- a/sdk/contracts.ts +++ b/sdk/contracts.ts @@ -56,6 +56,7 @@ export enum SupportedNetworks { Avalanche = 43114, BinanceSmartChain = 56, HardhatNetwork = 31337, + LineaGoerli = 59140, } // const canonicalMasterCopyAddress = (contract: KnownContracts) => { @@ -215,6 +216,11 @@ export const ContractVersions: Record< "1.2.0": "0xEF8b46765ae805537053C59f826C3aD61924Db45", }, }, + [SupportedNetworks.LineaGoerli]: { + ...CanonicalAddresses, + [KnownContracts.TELLOR]: {}, + [KnownContracts.OPTIMISTIC_GOVERNOR]: {}, + }, }; /** Addresses of the head versions of all contracts */ From 6ad36f8094ea0ef616c9855ace8079ef97590dae Mon Sep 17 00:00:00 2001 From: msvstj Date: Fri, 7 Jul 2023 13:39:25 +0900 Subject: [PATCH 2/2] fix: update available contract data --- sdk/contracts.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdk/contracts.ts b/sdk/contracts.ts index 78e6a4b2..1bb8bb9c 100644 --- a/sdk/contracts.ts +++ b/sdk/contracts.ts @@ -216,11 +216,7 @@ export const ContractVersions: Record< "1.2.0": "0xEF8b46765ae805537053C59f826C3aD61924Db45", }, }, - [SupportedNetworks.LineaGoerli]: { - ...CanonicalAddresses, - [KnownContracts.TELLOR]: {}, - [KnownContracts.OPTIMISTIC_GOVERNOR]: {}, - }, + [SupportedNetworks.LineaGoerli]: CanonicalAddresses, }; /** Addresses of the head versions of all contracts */