-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #467 from superform-xyz/v1-staging
chore: V1 staging SUP-5701
- Loading branch information
Showing
19 changed files
with
422 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.23; | ||
|
||
import { AbstractDeploySingle } from "./Abstract.Deploy.Single.s.sol"; | ||
|
||
contract MainnetStagingDeploy is AbstractDeploySingle { | ||
/*////////////////////////////////////////////////////////////// | ||
SELECT CHAIN IDS TO DEPLOY HERE | ||
//////////////////////////////////////////////////////////////*/ | ||
uint64[] TARGET_DEPLOYMENT_CHAINS = [BSC, ARBI, OP, BASE]; | ||
|
||
///@dev ORIGINAL SALT | ||
bytes32 constant salt = "StagingV1_0"; | ||
|
||
/// @notice The main stage 1 script entrypoint | ||
function deployStage1(uint256 selectedChainIndex) external { | ||
PAYMENT_ADMIN = 0xc5c971e6B9F01dcf06bda896AEA3648eD6e3EFb3; | ||
CSR_PROCESSOR = 0x2759142A9e3cBbcCc1E3d5F76490eEE4007B8943; | ||
CSR_UPDATER = 0xF1c73958118F22Fc3A3947f405DcEBF08a1E68f7; | ||
DST_SWAPPER = 0x3ea519270248BdEE4a939df20049E02290bf9CaF; | ||
CSR_RESCUER = 0xe1A61d90554131314cB30dB55B8AD4F4b6e21C3a; | ||
CSR_DISPUTER = 0xe9F074d003b377A197D336B8a1c86EdaA6cC4dEF; | ||
SUPERFORM_RECEIVER = 0x46F15EDC21f7eed6D1eb01e5Abe993Dc6c6A78BB; | ||
EMERGENCY_ADMIN = 0x6A5DD913fE3CB5193E09D1810a3b9ff1C0f9c0D6; | ||
SUPER_POSITIONS_NAME = "StagingSuperPositions"; | ||
|
||
_preDeploymentSetup(); | ||
|
||
uint256 trueIndex; | ||
for (uint256 i = 0; i < chainIds.length; i++) { | ||
if (TARGET_DEPLOYMENT_CHAINS[selectedChainIndex] == chainIds[i]) { | ||
trueIndex = i; | ||
|
||
break; | ||
} | ||
} | ||
|
||
_deployStage1(selectedChainIndex, trueIndex, Cycle.Prod, TARGET_DEPLOYMENT_CHAINS, salt); | ||
} | ||
|
||
/// @dev stage 2 must be called only after stage 1 is complete for all chains! | ||
function deployStage2(uint256 selectedChainIndex) external { | ||
_preDeploymentSetup(); | ||
|
||
uint256 trueIndex; | ||
for (uint256 i = 0; i < chainIds.length; i++) { | ||
if (TARGET_DEPLOYMENT_CHAINS[selectedChainIndex] == chainIds[i]) { | ||
trueIndex = i; | ||
break; | ||
} | ||
} | ||
|
||
_deployStage2(selectedChainIndex, trueIndex, Cycle.Prod, TARGET_DEPLOYMENT_CHAINS, TARGET_DEPLOYMENT_CHAINS); | ||
} | ||
|
||
/// @dev stage 3 must be called only after stage 1 is complete for all chains! | ||
function deployStage3(uint256 selectedChainIndex) external { | ||
_preDeploymentSetup(); | ||
|
||
uint256 trueIndex; | ||
for (uint256 i = 0; i < chainIds.length; i++) { | ||
if (TARGET_DEPLOYMENT_CHAINS[selectedChainIndex] == chainIds[i]) { | ||
trueIndex = i; | ||
break; | ||
} | ||
} | ||
|
||
_deployStage3(selectedChainIndex, trueIndex, Cycle.Prod, TARGET_DEPLOYMENT_CHAINS, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.