Skip to content

Commit f2415a2

Browse files
authored
feat: deploy AdapterStore + Arbitrum_Adapter after OFT audit (#1063)
* deploy adapterStore + arbitrumAdapter Signed-off-by: Ihor Farion <ihor@umaproject.org> * bump package Signed-off-by: Ihor Farion <ihor@umaproject.org> * undo tsconfig change Signed-off-by: Ihor Farion <ihor@umaproject.org> * add bytecode verification script Signed-off-by: Ihor Farion <ihor@umaproject.org> * move verifyBytecode script to a hardhat task Signed-off-by: Ihor Farion <ihor@umaproject.org> * deploy spokepool Signed-off-by: Ihor Farion <ihor@umaproject.org> * verify deployment tx inputs rather than runtime bytecode Signed-off-by: Ihor Farion <ihor@umaproject.org> * improve verifyBytecode script Signed-off-by: Ihor Farion <ihor@umaproject.org> * update adapter address Signed-off-by: Ihor Farion <ihor@umaproject.org> --------- Signed-off-by: Ihor Farion <ihor@umaproject.org>
1 parent ad84307 commit f2415a2

15 files changed

+1625
-80
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ storage-layouts/proposed*
2525

2626
# IDE
2727
.idea
28+
.vscode
2829

2930
# Anchor files
3031
.anchor

deploy/004_deploy_arbitrum_adapter.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CHAIN_IDs } from "@across-protocol/constants";
2-
import { getHyperlaneDomainId, getOftEid, toWei } from "../utils/utils";
2+
import { getOftEid, toWei } from "../utils/utils";
33
import { L1_ADDRESS_MAP, USDC } from "./consts";
44
import { DeployFunction } from "hardhat-deploy/types";
55
import { HardhatRuntimeEnvironment } from "hardhat/types";
@@ -31,16 +31,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
3131
from: deployer,
3232
log: true,
3333
skipIfAlreadyDeployed: false,
34-
args: [
35-
L1_ADDRESS_MAP[chainId].l1ArbitrumInbox,
36-
L1_ADDRESS_MAP[chainId].l1ERC20GatewayRouter,
37-
l2RefundAddress,
38-
USDC[chainId],
39-
L1_ADDRESS_MAP[chainId].cctpTokenMessenger,
40-
L1_ADDRESS_MAP[chainId].adapterStore,
41-
oftDstEid,
42-
oftFeeCap,
43-
],
34+
gasLimit: 2000000,
35+
args,
4436
});
4537
await hre.run("verify:verify", { address: instance.address, constructorArguments: args });
4638
};

deploy/005_deploy_arbitrum_spokepool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { DeployFunction } from "hardhat-deploy/types";
22
import { HardhatRuntimeEnvironment } from "hardhat/types";
33
import { deployNewProxy, getSpokePoolDeploymentInfo } from "../utils/utils.hre";
44
import { FILL_DEADLINE_BUFFER, L2_ADDRESS_MAP, QUOTE_TIME_BUFFER, USDC, WETH } from "./consts";
5-
import { getHyperlaneDomainId, getOftEid, toWei } from "../utils/utils";
5+
import { getOftEid, toWei } from "../utils/utils";
66

77
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
8-
const { hubPool, spokeChainId } = await getSpokePoolDeploymentInfo(hre);
8+
const { hubPool, hubChainId, spokeChainId } = await getSpokePoolDeploymentInfo(hre);
99

1010
const initArgs = [
1111
// Initialize deposit counter to very high number of deposits to avoid duplicate deposit ID's

deploy/063_deploy_adapter_store.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { DeployFunction } from "hardhat-deploy/types";
22
import { HardhatRuntimeEnvironment } from "hardhat/types";
3-
import "hardhat-deploy";
43

54
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
65
const { deployer } = await hre.getNamedAccounts();

deploy/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const L1_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
4545
l1AlephZeroInbox: "0x56D8EC76a421063e1907503aDd3794c395256AEb",
4646
l1AlephZeroERC20GatewayRouter: "0xeBb17f398ed30d02F2e8733e7c1e5cf566e17812",
4747
donationBox: "0x0d57392895Db5aF3280e9223323e20F3951E81B1",
48-
adapterStore: "", // to be deployed
48+
adapterStore: "0x42df4D71f35ffBD28ae217d52E83C1DA0007D63b",
4949
hubPoolStore: "0x1Ace3BbD69b63063F859514Eca29C9BDd8310E61",
5050
zkBridgeHub: "0x303a465B659cBB0ab36eE643eA362c509EEb5213",
5151
zkUsdcSharedBridge_232: "0xf553E6D903AA43420ED7e3bc2313bE9286A8F987",

deployments/arbitrum/Arbitrum_SpokePool.json

Lines changed: 144 additions & 47 deletions
Large diffs are not rendered by default.

deployments/arbitrum/solcInputs/7a57f2eb2810fd49e428417389237b12.json

Lines changed: 165 additions & 0 deletions
Large diffs are not rendered by default.

deployments/deployments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"1": {
33
"AcrossConfigStore": { "address": "0x3B03509645713718B78951126E0A6de6f10043f5", "blockNumber": 14717196 },
44
"AcrossMerkleDistributor": { "address": "0xE50b2cEAC4f60E840Ae513924033E753e2366487", "blockNumber": 15976846 },
5-
"Arbitrum_Adapter": { "address": "0x5473CBD30bEd1Bf97C0c9d7c59d268CD620dA426", "blockNumber": 19915048 },
5+
"Arbitrum_Adapter": { "address": "0x5eC9844936875E27eBF22172f4d92E107D35B57C", "blockNumber": 23086601 },
66
"Arbitrum_RescueAdapter": { "address": "0xC6fA0a4EBd802c01157d6E7fB1bbd2ae196ae375", "blockNumber": 16233939 },
77
"Arbitrum_SendTokensAdapter": { "address": "0xC06A68DF12376271817FcEBfb45Be996B0e1593E", "blockNumber": 16691987 },
88
"Boba_Adapter": { "address": "0x33B0Ec794c15D6Cc705818E70d4CaCe7bCfB5Af3", "blockNumber": 14716798 },

deployments/mainnet/AdapterStore.json

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

deployments/mainnet/Arbitrum_Adapter.json

Lines changed: 160 additions & 16 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)