Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment scripts for BeefyClient & Gateway #1190

Merged
merged 12 commits into from
May 23, 2024
Merged

Deployment scripts for BeefyClient & Gateway #1190

merged 12 commits into from
May 23, 2024

Conversation

vgeddes
Copy link
Collaborator

@vgeddes vgeddes commented May 6, 2024

Fixes: SNO-994

  • Adds deployment scripts and initial configuration for BeefyClient and Gateway
  • Helper script to generate BEEFY checkpoint for production
  • Allows Gateway to be rescued by a privileged operator

Fee parameter calculations in https://www.notion.so/snowfork/Gateway-Parameters-0cf913d089374027a86721883306ee61?pvs=4

@@ -18,4 +18,4 @@ contract Stage1 is Script {

vm.stopBroadcast();
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: whitespace

assertEq(MockGatewayV2(address(gateway)).getValue(), 42);
}

function testRescuebyPublicFails() public {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make this test use dropRescueAbility to relinquish the rescuer address, and then try upgrade using the rescuer address. This will test both paths.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a test in the latest upload

contracts/src/storage/OperatorStorage.sol Outdated Show resolved Hide resolved
contracts/src/Gateway.sol Outdated Show resolved Hide resolved
contracts/scripts/UpgradeShell.sol Show resolved Hide resolved
@vgeddes vgeddes merged commit ec27c1a into main May 23, 2024
1 check passed
@vgeddes vgeddes deleted the deploy-gateway branch May 23, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants