File tree 4 files changed +32
-3
lines changed
4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
export RPC = " "
2
2
3
+ export ETHERSCAN_KEY = " "
4
+
3
5
# ## Foundry profile, we always need to deploy with prod.
4
6
export FOUNDRY_PROFILE = prod
5
7
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- while getopts " :n:c:u:k:" opt; do
3
+ while getopts " :n:c:u:e: k:" opt; do
4
4
case $opt in
5
5
n) network=" $OPTARG "
6
6
;;
7
7
c) chain=" $OPTARG "
8
8
;;
9
9
u) rpc=" $OPTARG "
10
10
;;
11
+ e) etherscan_key=" $OPTARG "
12
+ ;;
11
13
k) private_key=" $OPTARG "
12
14
;;
13
15
\? ) echo " Invalid option -$OPTARG " >&2
54
56
rpc=$RPC
55
57
fi
56
58
59
+ # Use the ETHERSCAN_KEY environment variable if etherscan_key isn't set.
60
+ if [ -z ${etherscan_key+x} ];
61
+ then
62
+ etherscan_key=$ETHERSCAN_KEY
63
+ fi
64
+
57
65
forge script $FORGE_SCRIPTS /DeployWormholeNtt.s.sol \
58
66
--rpc-url $rpc \
59
67
--broadcast \
60
68
--private-key $private_key \
69
+ --verify --etherscan-api-key $etherscan_key \
61
70
--slow \
62
71
--skip test
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- while getopts " :n:c:u:k:" opt; do
3
+ while getopts " :n:c:u:e: k:" opt; do
4
4
case $opt in
5
5
n) network=" $OPTARG "
6
6
;;
7
7
c) chain=" $OPTARG "
8
8
;;
9
9
u) rpc=" $OPTARG "
10
10
;;
11
+ e) etherscan_key=" $OPTARG "
12
+ ;;
11
13
k) private_key=" $OPTARG "
12
14
;;
13
15
\? ) echo " Invalid option -$OPTARG " >&2
54
56
rpc=$RPC
55
57
fi
56
58
59
+ # Use the ETHERSCAN_KEY environment variable if etherscan_key isn't set.
60
+ if [ -z ${etherscan_key+x} ];
61
+ then
62
+ etherscan_key=$ETHERSCAN_KEY
63
+ fi
64
+
57
65
forge script $FORGE_SCRIPTS /UpgradeNttManager.s.sol \
58
66
--rpc-url $rpc \
59
67
--broadcast \
60
68
--private-key $private_key \
69
+ --verify --etherscan-api-key $etherscan_key \
61
70
--slow \
62
71
--skip test
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- while getopts " :n:c:u:k:" opt; do
3
+ while getopts " :n:c:u:e: k:" opt; do
4
4
case $opt in
5
5
n) network=" $OPTARG "
6
6
;;
7
7
c) chain=" $OPTARG "
8
8
;;
9
9
u) rpc=" $OPTARG "
10
10
;;
11
+ e) etherscan_key=" $OPTARG "
12
+ ;;
11
13
k) private_key=" $OPTARG "
12
14
;;
13
15
\? ) echo " Invalid option -$OPTARG " >&2
54
56
rpc=$RPC
55
57
fi
56
58
59
+ # Use the ETHERSCAN_KEY environment variable if etherscan_key isn't set.
60
+ if [ -z ${etherscan_key+x} ];
61
+ then
62
+ etherscan_key=$ETHERSCAN_KEY
63
+ fi
64
+
57
65
forge script $FORGE_SCRIPTS /UpgradeWormholeTransceiver.s.sol \
58
66
--rpc-url $rpc \
59
67
--broadcast \
60
68
--private-key $private_key \
69
+ --verify --etherscan-api-key $etherscan_key \
61
70
--slow \
62
71
--skip test
You can’t perform that action at this time.
0 commit comments