Skip to content

Commit

Permalink
Store multicall addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Nov 10, 2023
1 parent 8c7ffbd commit bb71c06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions scripts/atomicTokenBridgeDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,18 @@ export const createTokenBridge = async (
const l2ProxyAdmin =
await l1TokenBridgeCreator.getCanonicalL2ProxyAdminAddress(chainId)

const l1Multicall = await l1TokenBridgeCreator.l1Multicall()
const l2Multicall = await l1TokenBridgeCreator.getCanonicalL2Multicall(
chainId
)

return {
l1Router,
l1StandardGateway,
l1CustomGateway,
l1WethGateway,
l1ProxyAdmin,
l1Multicall,
l2Router,
l2StandardGateway: l2StandardGateway.address,
l2CustomGateway,
Expand All @@ -231,6 +237,7 @@ export const createTokenBridge = async (
l2Weth,
beaconProxyFactory,
l2ProxyAdmin,
l2Multicall
}
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/deployment/createTokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ export const createTokenBridgeOnTargetChain = async () => {
l1CustomGateway: deployedContracts.l1CustomGateway,
l1ERC20Gateway: deployedContracts.l1StandardGateway,
l1GatewayRouter: deployedContracts.l1Router,
l1MultiCall: '',
l1MultiCall: deployedContracts.l1Multicall,
l1ProxyAdmin: deployedContracts.l1ProxyAdmin,
l1Weth: deployedContracts.l1Weth,
l1WethGateway: deployedContracts.l1WethGateway,

l2CustomGateway: deployedContracts.l2CustomGateway,
l2ERC20Gateway: deployedContracts.l2StandardGateway,
l2GatewayRouter: deployedContracts.l2Router,
l2Multicall: '',
l2Multicall: deployedContracts.l2Multicall,
l2ProxyAdmin: deployedContracts.l2ProxyAdmin,
l2Weth: deployedContracts.l2Weth,
l2WethGateway: deployedContracts.l2WethGateway,
Expand Down
4 changes: 2 additions & 2 deletions scripts/local-deployment/deployCreatorAndCreateTokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ export const setupTokenBridgeInLocalEnv = async () => {
l1CustomGateway: deployedContracts.l1CustomGateway,
l1ERC20Gateway: deployedContracts.l1StandardGateway,
l1GatewayRouter: deployedContracts.l1Router,
l1MultiCall: '',
l1MultiCall: deployedContracts.l1Multicall,
l1ProxyAdmin: deployedContracts.l1ProxyAdmin,
l1Weth: deployedContracts.l1Weth,
l1WethGateway: deployedContracts.l1WethGateway,

l2CustomGateway: deployedContracts.l2CustomGateway,
l2ERC20Gateway: deployedContracts.l2StandardGateway,
l2GatewayRouter: deployedContracts.l2Router,
l2Multicall: '',
l2Multicall: deployedContracts.l2Multicall,
l2ProxyAdmin: deployedContracts.l2ProxyAdmin,
l2Weth: deployedContracts.l2Weth,
l2WethGateway: deployedContracts.l2WethGateway,
Expand Down

0 comments on commit bb71c06

Please sign in to comment.