Skip to content

Commit

Permalink
Add support for base-mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
TRileySchwarz committed Aug 9, 2023
1 parent 0ff3c9b commit c6092aa
Show file tree
Hide file tree
Showing 8 changed files with 1,296 additions and 25 deletions.
2 changes: 2 additions & 0 deletions constants/layerzeroEndpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"optimism": "0x3c2269811836af69497E5F486A85D7316753cf62",
"fantom": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",

"base-mainnet": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",

"gnosis": "0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4",
"zkevm": "0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4",

Expand Down
42 changes: 22 additions & 20 deletions deploy/OmniVotingEscrowChild.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,34 @@ module.exports = async function ({ deployments, getNamedAccounts }) {
const { deployer } = await getNamedAccounts()
console.log(`>>> your address: ${deployer}`)

// const lzEndpointAddress = LZ_ENDPOINTS[hre.network.name]
// console.log(`[${hre.network.name}] Endpoint Address: ${lzEndpointAddress}`)
//
// let delegationHooks = {
// "arbitrum": "0x12Ca9De662A7Bf5Dc89e034a5083eF751B08EDe7",
// "avalanche": "0x4638ab64022927C9bD5947607459D13f57f1551C",
// "bsc": "0x20AabBC59F3cE58e0ef931380d8Bf2A6fE681019",
// "gnosis": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3",
// "optimism": "0xbef13D1e54D0c79DA8B0AD704883E1Cea7EB2100",
// "polygon": "0xB98F54A74590a6e681fF664b2Fa22EBfFe1a929E",
// "zkevm": "0xDEd7Fef7D8eCdcB74F22f0169e1A9EC696e6695d",
// }
//
// let delegationHook = delegationHooks[hre.network.name]
// if (!delegationHook) {
// throw `Invalid network: ${hre.network.name}`
// }
//
const lzEndpointAddress = LZ_ENDPOINTS[hre.network.name]
console.log(`[${hre.network.name}] Endpoint Address: ${lzEndpointAddress}`)

let delegationHooks = {
"arbitrum": "0x12Ca9De662A7Bf5Dc89e034a5083eF751B08EDe7",
"avalanche": "0x4638ab64022927C9bD5947607459D13f57f1551C",
"bsc": "0x20AabBC59F3cE58e0ef931380d8Bf2A6fE681019",
"gnosis": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3",
"optimism": "0xbef13D1e54D0c79DA8B0AD704883E1Cea7EB2100",
"polygon": "0xB98F54A74590a6e681fF664b2Fa22EBfFe1a929E",
"zkevm": "0xDEd7Fef7D8eCdcB74F22f0169e1A9EC696e6695d",
"base-mainnet": "0x8eA89804145c007e7D226001A96955ad53836087"
}

let delegationHook = delegationHooks[hre.network.name]
if (!delegationHook) {
throw `Invalid network: ${hre.network.name}`
}

// await deploy("OmniVotingEscrowChild", {
// from: deployer,
// args: [lzEndpointAddress, delegationHook],
// log: true,
// waitConfirmations: 1,
// })
//
// await verify(hre.network.name, "OmniVotingEscrowChild")

// await verify(hre.network.name, ["OmniVotingEscrowChild"])
//
const MULTI_SIGS = {
"arbitrum": "0xc38c5f97B34E175FFd35407fc91a937300E33860",
"avalanche": "0x326A7778DB9B741Cb2acA0DE07b9402C7685dAc6",
Expand All @@ -41,6 +42,7 @@ module.exports = async function ({ deployments, getNamedAccounts }) {
"optimism": "0x09Df1626110803C7b3b07085Ef1E053494155089",
"polygon": "0xc38c5f97B34E175FFd35407fc91a937300E33860",
"zkevm": "0xB59Ab49CA8d064E645Bf2c546d9FE6d1d4147a09",
"base-mainnet": "0x65226673F3D202E0f897C862590d7e1A992B2048"
}

const newOwner = MULTI_SIGS[hre.network.name]
Expand Down
1 change: 1 addition & 0 deletions deployments/base-mainnet/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8453
Loading

0 comments on commit c6092aa

Please sign in to comment.