Skip to content

Commit 9a9707b

Browse files
authored
feat: mainnet upgrade scripts (#1257)
**Motivation:** We need upgrade scripts for our mainnet release. **Modifications:** This PR is functionally the same as #916, with two modifications: 1. Adds versioning to all core contracts 2. Updates file structure of pod deploy script to match the file structure of proofra: #1156 To test, run `zeus test script/releases/v1.3.0-slashing/*.s.sol --env mainnet`. You may need to update the rpcUrl since it's been flaky. **Result:** Complete upgrade scripts
1 parent faff5d7 commit 9a9707b

File tree

13 files changed

+1710
-1
lines changed

13 files changed

+1710
-1
lines changed

.github/configs/typos-cli.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ extend-exclude = [
33
"**/lib/**",
44
"**/docs/images/**",
55
# Not present locally, but is in remote (github).
6-
"**/doc/**"
6+
"**/doc/**",
7+
"**/*.mod",
8+
"**/*.sum"
79
]
810
ignore-hidden = true
911
ignore-files = true

script/releases/Env.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ library Env {
5656
DeployedImpl internal constant impl = DeployedImpl.A;
5757
DeployedInstance internal constant instance = DeployedInstance.A;
5858

59+
/*
60+
* If there is an inProgress deploy, these will be set to the relevant semver strings.
61+
*/
62+
function deployFromVersion() internal view returns (string memory) {
63+
return ZEnvHelpers.inProgressDeployFromSemver();
64+
}
65+
66+
function deployToVersion() internal view returns (string memory) {
67+
return ZEnvHelpers.inProgressDeployToSemver();
68+
}
69+
5970
/**
6071
* env
6172
*/

0 commit comments

Comments
 (0)