Skip to content

Commit df83149

Browse files
committed
deploy contracts and verify via scripts on testnet
1 parent 3837745 commit df83149

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

target_chains/ethereum/contracts/foundry.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ ignored_warnings_from = [
1919
"node_modules/",
2020
"/home/runner/work/pyth-crosschain/pyth-crosschain/node_modules",
2121
]
22+
23+
[rpc_endpoints]
24+
rpc_url="${RPC_URL}"
25+
local = "http://localhost:8545"
26+
27+
[etherscan]
28+
base_sepolia = { key = "${ETHERSCAN_API_KEY}" }

target_chains/ethereum/contracts/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"setup": "npm run setup-foundry && npm run install-forge-deps",
1616
"build": "forge build",
1717
"test": "forge test",
18-
"deploy": "forge script script/Deploy.s.sol --rpc-url $RPC_URL --broadcast --verify",
19-
"deploy-local": "forge script script/Deploy.s.sol --rpc-url http://localhost:8545 --broadcast",
18+
"deploy": "forge script script/Deploy.s.sol --rpc-url rpc_url --broadcast",
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",
2021
"receiver-submit-guardian-sets": "forge script script/ReceiverSubmitGuardianSetUpgrades.s.sol --rpc-url $RPC_URL --broadcast",
2122
"create-governance-vaa": "forge script script/CreateLocalnetGovernanceVaa.s.sol",
2223
"install-forge-deps": "forge install foundry-rs/[email protected] --no-git",

0 commit comments

Comments
 (0)