Skip to content

Commit

Permalink
feat: add base support
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Apr 15, 2024
1 parent cf29c41 commit 2faca02
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export default {
...sharedNetworkConfig,
url: "https://rpc.test.btcs.network",
},
base: {
...sharedNetworkConfig,
url: "https://mainnet.base.org",
}
},
namedAccounts: {
deployer: 0,
Expand All @@ -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/",
},
},
],
},
};
7 changes: 7 additions & 0 deletions sdk/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export enum SupportedNetworks {
Sepolia = 11155111,
CoreTestnet = 1115,
Core = 1116,
Base = 8453
}

// const canonicalMasterCopyAddress = (contract: KnownContracts) => {
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 2faca02

Please sign in to comment.