Skip to content

Commit

Permalink
Merge pull request #160 from md0x/base-network
Browse files Browse the repository at this point in the history
feat: add base support
  • Loading branch information
auryn-macmillan committed Apr 25, 2024
2 parents 9efe032 + 2faca02 commit e620a69
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 @@ -234,6 +235,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 e620a69

Please sign in to comment.