Skip to content

Commit c3aa24c

Browse files
Merge pull request #3009 from pyth-network/clean-contracts
chore(clean-up): Removal of guardian set and vaa utils
2 parents 46184e0 + 036f571 commit c3aa24c

File tree

6 files changed

+0
-156
lines changed

6 files changed

+0
-156
lines changed

target_chains/ethereum/contracts/.env.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ INIT_GOV_CHAIN_ID=YOUR_GOV_CHAIN_ID_HERE
2727
# Example: INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
2828
INIT_GOV_CONTRACT=YOUR_GOV_CONTRACT_ADDRESS_HERE
2929

30-
# Guardian Set Sync Configuration (set after deployment)
31-
# Example: WORMHOLE_ADDRESS=0x0000000000000000000000000000000000000000
32-
WORMHOLE_ADDRESS=DEPLOYED_WORMHOLE_ADDRESS_HERE
33-
3430
# =============================================================================
3531
# PYTH CONFIGURATION
3632
# =============================================================================

target_chains/ethereum/contracts/.env.test

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ INIT_CHAIN_ID=2
1717
INIT_GOV_CHAIN_ID=1
1818
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
1919

20-
# Guardian Set Sync Configuration (will be set after deployment)
21-
WORMHOLE_ADDRESS=0x0000000000000000000000000000000000000000
22-
2320
# =============================================================================
2421
# PYTH TEST CONFIGURATION
2522
# =============================================================================

target_chains/ethereum/contracts/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,6 @@ The deployment script will:
9090
npm run deploy-and-verify
9191
```
9292

93-
### Guardian Set Sync
94-
95-
After deploying Wormhole contracts on mainnet, you need to sync the guardian sets to match the current mainnet state:
96-
97-
```bash
98-
# Set WORMHOLE_ADDRESS in your .env file to the deployed Wormhole contract address
99-
npm run receiver-submit-guardian-sets
100-
```
101-
102-
This script submits the pre-configured mainnet guardian set upgrade VAAs to bring your contract up to date with the current mainnet guardian set.
103-
10493
### Gas Benchmarks
10594

10695
You can use foundry to run gas benchmark tests (which can be found in the `forge-test` directory). To run the tests with gas report

target_chains/ethereum/contracts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"deploy": "forge script script/Deploy.s.sol --rpc-url testnet --broadcast",
1919
"deploy-and-verify": "forge script script/Deploy.s.sol --rpc-url testnet --broadcast --verify",
2020
"deploy-local": "ETHERSCAN_API_KEY= forge script script/Deploy.s.sol --slow --rpc-url local --broadcast -vvvv",
21-
"receiver-submit-guardian-sets": "forge script script/ReceiverSubmitGuardianSetUpgrades.s.sol --rpc-url $RPC_URL --broadcast",
2221
"install-forge-deps": "forge install foundry-rs/[email protected] --no-git",
2322
"coverage": "./coverage.sh",
2423
"test:format": "prettier --check .",

target_chains/ethereum/contracts/script/ReceiverSubmitGuardianSetUpgrades.s.sol

Lines changed: 0 additions & 67 deletions
This file was deleted.

target_chains/ethereum/contracts/script/utils/VaaUtils.sol

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)