Skip to content

Commit e63aa85

Browse files
committed
WIP
1 parent 58a45e9 commit e63aa85

8 files changed

+18
-9
lines changed

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
id: release
2424
uses: manovotny/[email protected]
2525

26-
# Perform installs, run tests, run a build step, etc. here, as needed.
27-
- run: yarn
28-
2926
# Setup .npmrc file to publish to npm
3027
- uses: actions/setup-node@v3
3128
with:
3229
node-version: "16.x"
3330
always-auth: true
3431
registry-url: "https://registry.npmjs.org"
3532

33+
# Perform installs, run tests, run a build step, etc. here, as needed.
34+
- run: yarn
35+
3636
# The last two steps will publish the package. Note that we're using
3737
# information from the `release` step above (I told you we'd use it
3838
# later). Notice the `if` statements on both steps...

deploy/003_deploy_optimism_spokepool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "hardhat-deploy";
22
import hre from "hardhat";
3-
import { getContractFactory } from "../test/utils";
3+
import { getContractFactory } from "../utils";
44

55
const func = async function () {
66
const { upgrades, companionNetworks, run } = hre;

deploy/005_deploy_arbitrum_spokepool.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "hardhat-deploy";
22
import hre from "hardhat";
33
import { L2_ADDRESS_MAP } from "./consts";
4-
import { getContractFactory } from "../test/utils";
4+
import { getContractFactory } from "../utils";
55

66
const func = async function () {
77
const { upgrades, companionNetworks, run, getChainId } = hre;
@@ -31,6 +31,13 @@ const func = async function () {
3131
const implementationAddress = await upgrades.erc1967.getImplementationAddress(instance.address);
3232
console.log(`Implementation deployed @ ${implementationAddress}`);
3333

34+
// Deploy new implementation and validate that it can be used in upgrade.
35+
const newImplementation = await upgrades.prepareUpgrade(
36+
instance.address,
37+
await getContractFactory("Arbitrum_SpokePool")
38+
);
39+
console.log(`Can upgrade to new implementation @ ${newImplementation}`);
40+
3441
// hardhat-upgrades overrides the `verify` task that ships with `hardhat` so that if the address passed
3542
// is a proxy, hardhat will first verify the implementation and then the proxy and also link the proxy
3643
// to the implementation's ABI on etherscan.

deploy/007_deploy_ethereum_spokepool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "hardhat-deploy";
22

33
import hre from "hardhat";
4-
import { getContractFactory } from "../test/utils";
4+
import { getContractFactory } from "../utils";
55

66
import { L1_ADDRESS_MAP } from "./consts";
77

deploy/011_deploy_polygon_spokepool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "hardhat-deploy";
22
import hre from "hardhat";
33
import { L2_ADDRESS_MAP } from "./consts";
4-
import { getContractFactory } from "../test/utils";
4+
import { getContractFactory } from "../utils";
55

66
const func = async function () {
77
const { upgrades, run, getChainId, deployments } = hre;

deploy/013_deploy_boba_spokepool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "hardhat-deploy";
22
import hre from "hardhat";
3-
import { getContractFactory } from "../test/utils";
3+
import { getContractFactory } from "../utils";
44

55
const func = async function () {
66
const { upgrades, companionNetworks, run } = hre;

deploy/016_deploy_zksync_spokepool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "hardhat-deploy";
22
import hre from "hardhat";
33
import { L2_ADDRESS_MAP } from "./consts";
4-
import { getContractFactory } from "../test/utils";
4+
import { getContractFactory } from "../utils";
55

66
const func = async function () {
77
const { upgrades, companionNetworks, run, getChainId } = hre;

utils/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./utils";
2+
export * from "./MerkleTree";

0 commit comments

Comments
 (0)