From 2faca02dc4f98a093a1aa46c91f60e2c66a3f14d Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Mon, 15 Apr 2024 10:30:14 +0100 Subject: [PATCH] feat: add base support Signed-off-by: Pablo Maldonado --- hardhat.config.ts | 12 ++++++++++++ sdk/contracts.ts | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/hardhat.config.ts b/hardhat.config.ts index 1147be7..a834250 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -118,6 +118,10 @@ export default { ...sharedNetworkConfig, url: "https://rpc.test.btcs.network", }, + base: { + ...sharedNetworkConfig, + url: "https://mainnet.base.org", + } }, namedAccounts: { deployer: 0, @@ -144,6 +148,14 @@ export default { browserURL: "https://scan.coredao.org/", }, }, + { + network: "base", + chainId: 8453, + urls: { + apiURL: "https://api.basescan.org/api", + browserURL: "https://basescan.org/", + }, + }, ], }, }; diff --git a/sdk/contracts.ts b/sdk/contracts.ts index 49e75c9..ef9d528 100644 --- a/sdk/contracts.ts +++ b/sdk/contracts.ts @@ -55,6 +55,7 @@ export enum SupportedNetworks { Sepolia = 11155111, CoreTestnet = 1115, Core = 1116, + Base = 8453 } // const canonicalMasterCopyAddress = (contract: KnownContracts) => { @@ -229,6 +230,12 @@ export const ContractVersions: Record< "1.2.0": "0x596Fd6A5A185c67aBD1c845b39f593fBA9C233aa", }, }, + [SupportedNetworks.Base]: { + ...CanonicalAddresses, + [KnownContracts.OPTIMISTIC_GOVERNOR]: { + "1.2.0": "0x80bCA2E1c272239AdFDCdc87779BC8Af6E12e633", + }, + }, }; /** Addresses of the head versions of all contracts */