File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
target_chains/ethereum/contracts Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
# =============================================================================
2
2
# FOUNDRY TEST CONFIGURATION
3
- # This file contains test values for local development and testing
4
3
# =============================================================================
5
4
6
- # Deployment Configuration (Anvil/Local Testing)
5
+ # Deployment Configuration
7
6
PRIVATE_KEY = 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
8
7
RPC_URL = http://localhost:8545
9
8
ETHERSCAN_API_KEY = test_api_key_not_needed_for_local
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ cp .env.test .env
57
57
# Start a local node
58
58
anvil
59
59
60
+ # Anvil shows a list of default accounts and their corresponding private keys.
61
+ # Fetch any one of the private key from the anvil terminal and update in .env file.
62
+
60
63
# In another terminal, deploy the contracts
61
64
npm run deploy-local
62
65
```
@@ -80,6 +83,13 @@ The deployment script will:
80
83
- Deploy the Pyth contracts (PythUpgradable with ERC1967 proxy)
81
84
- Configure all necessary parameters from environment variables
82
85
86
+ 5 . Deploy and Verify the contracts (on live network)
87
+
88
+ ``` bash
89
+ # Make sure your .env file has the correct ETHERSCAN_API_KEY
90
+ npm run deploy-and-verify
91
+ ```
92
+
83
93
### Guardian Set Sync
84
94
85
95
After deploying Wormhole contracts on mainnet, you need to sync the guardian sets to match the current mainnet state:
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ rpc_url="${RPC_URL}"
25
25
local = " http://localhost:8545"
26
26
27
27
[etherscan ]
28
- base_sepolia = { key = " ${ETHERSCAN_API_KEY}" }
28
+ etherscan_api_key = { key = " ${ETHERSCAN_API_KEY}" }
Original file line number Diff line number Diff line change 17
17
"test" : " forge test" ,
18
18
"deploy" : " forge script script/Deploy.s.sol --rpc-url rpc_url --broadcast" ,
19
19
"deploy-and-verify" : " forge script script/Deploy.s.sol --rpc-url rpc_url --broadcast --verify" ,
20
- "deploy-local" : " forge script script/Deploy.s.sol --rpc-url http://127.0.0.1:8545 --broadcast" ,
20
+ "deploy-local" : " ETHERSCAN_API_KEY= forge script script/Deploy.s.sol --rpc-url local --broadcast" ,
21
21
"receiver-submit-guardian-sets" : " forge script script/ReceiverSubmitGuardianSetUpgrades.s.sol --rpc-url $RPC_URL --broadcast" ,
22
22
"create-governance-vaa" : " forge script script/CreateLocalnetGovernanceVaa.s.sol" ,
23
23
"install-forge-deps" :
" forge install foundry-rs/[email protected] --no-git" ,
You can’t perform that action at this time.
0 commit comments