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

feat: Refactor staging to simplify and new deploy (SC-873) #66

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

hexonaut
Copy link
Contributor

@hexonaut hexonaut commented Dec 10, 2024

Do another staging deploy and refactor to eliminate unused code. Unused code is mostly from Sepolia variant.

script/staging/FullStagingDeploy.s.sol Outdated Show resolved Hide resolved
script/staging/FullStagingDeploy.s.sol Outdated Show resolved Hide resolved
script/staging/FullStagingDeploy.s.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@lucas-manuel lucas-manuel left a comment

Choose a reason for hiding this comment

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

These should be output to a different JSON file specifically for dependencies, output json should match something from prod:

        ScriptTools.exportContract(mainnet.name, "allocatorOracle",   oracle);
        ScriptTools.exportContract(mainnet.name, "allocatorRegistry", registry);
        ScriptTools.exportContract(mainnet.name, "allocatorRoles",    roles);

        ScriptTools.exportContract(mainnet.name, "allocatorBuffer", buffer);
        ScriptTools.exportContract(mainnet.name, "allocatorVault",  vault);

        ScriptTools.exportContract(mainnet.name, "dai",      dai);
        ScriptTools.exportContract(mainnet.name, "daiUsds",  daiUsds);
        ScriptTools.exportContract(mainnet.name, "jug",      jug);
        ScriptTools.exportContract(mainnet.name, "psm",      psm);
        ScriptTools.exportContract(mainnet.name, "susds",    susds);
        ScriptTools.exportContract(mainnet.name, "usdc",     usdc);
        ScriptTools.exportContract(mainnet.name, "usds",     usds);
        ScriptTools.exportContract(mainnet.name, "usdsJoin", usdsJoin);
        ScriptTools.exportContract(mainnet.name, "vat",      vat);

script/staging/FullStagingDeploy.s.sol Outdated Show resolved Hide resolved
@lucas-manuel lucas-manuel changed the title Refactor Staging to Simplify and New Deploy feat: Refactor staging to simplify and new deploy (SC-873) Dec 11, 2024
Copy link
Contributor

@lucas-manuel lucas-manuel left a comment

Choose a reason for hiding this comment

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

LGTM just one formatting change

Copy link

Coverage after merging refactor-staging-deployment into dev will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
deploy
   ControllerDeploy.sol100%100%100%100%
   ControllerInit.sol99.48%98.86%100%100%103
src
   ALMProxy.sol100%100%100%100%
   ForeignController.sol100%100%100%100%
   MainnetController.sol100%100%100%100%
   RateLimitHelpers.sol100%100%100%100%
   RateLimits.sol100%100%100%100%

@hexonaut hexonaut merged commit 22bb50e into dev Dec 11, 2024
3 checks passed
@hexonaut hexonaut deleted the refactor-staging-deployment branch December 11, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants