From c81661107b87636cc1b4424954883ec2328bd5ff Mon Sep 17 00:00:00 2001 From: Stefan Adolf Date: Mon, 23 Dec 2024 16:13:32 +0100 Subject: [PATCH] deployed on Sepolia Signed-off-by: Stefan Adolf --- README.md | 8 ++++---- script/prod/RolloutV25Sale.sol | 25 +++++++++++++++---------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index af2e9b5a..3e083131 100644 --- a/README.md +++ b/README.md @@ -46,12 +46,12 @@ Deprecated after migrating to Defender 2 (was 0x3D30452c48F2448764d5819a9A2b684A | Terms Permissioner | 0xC05D649368d8A5e2E98CAa205d47795de5fCB599 | View contract | | Tokenizer | 0xca63411FF5187431028d003eD74B57531408d2F9 | View contract | | Crowdsale | 0x8cA737E2cdaE1Ceb332bEf7ba9eA711a3a2f8037 | View contract | -| Locking Crowdsale | 0x67D8ed102E2168A46FA342e39A5f7D16c103Bd0d | View contract | -| Staked Crowdsale | 0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7 | View contract | - +| Locking Crowdsale | 0x0Da77f361bB56f065Aa21647d885685eb7cAE10F | View contract | +| Staked Crowdsale | 0x2d309CF13dC3872f9c9B1B06Ebf6F60caDe08d55 | View contract | timelocked token implementation=0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851 -~~new staked crowdsale (not used yet HUBS-224) 0x7eeb7113f90893fb95c6666e3930235850f2bc6A)~~ + +previous SLCS: https://sepolia.etherscan.io/address/0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7#code #### Subgraphs diff --git a/script/prod/RolloutV25Sale.sol b/script/prod/RolloutV25Sale.sol index bdbde1d4..2a24de6f 100644 --- a/script/prod/RolloutV25Sale.sol +++ b/script/prod/RolloutV25Sale.sol @@ -9,15 +9,24 @@ import { IPermissioner, TermsAcceptedPermissioner } from "../../src/Permissioner import { StakedLockingCrowdSale } from "../../src/crowdsale/StakedLockingCrowdSale.sol"; import { LockingCrowdSale } from "../../src/crowdsale/LockingCrowdSale.sol"; import { TimelockedToken } from "../../src/TimelockedToken.sol"; +import { TokenVesting } from "@moleculeprotocol/token-vesting/TokenVesting.sol"; + +TimelockedToken constant timelockedTokenImplementation = TimelockedToken(0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851); +address constant moleculeDevMultisig = 0x9d5a6ae551f1117946FF6e0e86ef9A1B20C90Cb0; + +//mainnet 0xCfA0F84660fB33bFd07C369E5491Ab02C449f71B; contract RolloutV25Sale is Script { function run() public { - address moleculeDevMultisig = 0xCfA0F84660fB33bFd07C369E5491Ab02C449f71B; - vm.startBroadcast(); - TimelockedToken timelockedTokenImplementation = new TimelockedToken(); + TokenVesting vesting = TokenVesting(0x8f80d1183CD983B01B0C9AC6777cC732Ec9800de); //Moldao + + vm.startBroadcast(); StakedLockingCrowdSale stakedLockingCrowdSale = new StakedLockingCrowdSale(timelockedTokenImplementation); - stakedLockingCrowdSale.transferOwnership(moleculeDevMultisig); + vesting.grantRole(vesting.ROLE_CREATE_SCHEDULE(), address(stakedLockingCrowdSale)); + //stakedLockingCrowdSale.trustLockingContract(IERC20()); + stakedLockingCrowdSale.trustVestingContract(vesting); +// stakedLockingCrowdSale.transferOwnership(moleculeDevMultisig); vm.stopBroadcast(); console.log("STAKED_LOCKING_CROWDSALE_ADDRESS=%s", address(stakedLockingCrowdSale)); @@ -30,14 +39,10 @@ contract RolloutV25Sale is Script { contract RolloutV25LockingSale is Script { function run() public { - //mainnet 0xCfA0F84660fB33bFd07C369E5491Ab02C449f71B; - address moleculeDevMultisig = 0x9d5a6ae551f1117946FF6e0e86ef9A1B20C90Cb0; - - TimelockedToken timelockedTokenImplementation = TimelockedToken(0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851); - + vm.startBroadcast(); LockingCrowdSale lockingCrowdsale = new LockingCrowdSale(timelockedTokenImplementation); - lockingCrowdsale.transferOwnership(moleculeDevMultisig); + //lockingCrowdsale.transferOwnership(moleculeDevMultisig); vm.stopBroadcast(); console.log("LOCKING_CROWDSALE_ADDRESS=%s", address(lockingCrowdsale));