-
Notifications
You must be signed in to change notification settings - Fork 10
HUBS-224 crowdsale with individual locking staking periods #170
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
Merged
elmariachi111
merged 16 commits into
main
from
feature/hubs-224-crowdsale-with-individual-locking-staking-periods
Jan 9, 2025
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4780b1a
SLCrowdsale::startSale gets dedicated staking duration
elmariachi111 e080796
adopts scripts and tests to new TokenLocking template contract
elmariachi111 8d83cfc
address drift for local setups
elmariachi111 f4dd2ad
rolls back Readme to currently deployed version
elmariachi111 d9a4102
rolls out base locking crowdsales
elmariachi111 a806488
adds option to locking crowdsales to trust other locked token initiators
elmariachi111 0a8cb52
adds locking crowdsale mapping
elmariachi111 a6b7a19
deployed new locking corwdsale contract
elmariachi111 ded1b66
replaces external trust source with actively managed locking trust
elmariachi111 33cab65
manual timelocked token trust
elmariachi111 c816611
deployed on Sepolia
elmariachi111 48afc39
contract address on crowdsale entity
elmariachi111 483a566
disables indexing of second staked sale deployment
elmariachi111 9a1c66e
timelocked tokens deployment script
elmariachi111 1fdc761
subgraph dev rollout
elmariachi111 46fba8d
mainnet deployments
elmariachi111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 contains hidden or 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,51 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
import "forge-std/Script.sol"; | ||
import "forge-std/console.sol"; | ||
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import { IPNFT } from "../../src/IPNFT.sol"; | ||
import { IPermissioner, TermsAcceptedPermissioner } from "../../src/Permissioner.sol"; | ||
import { StakedLockingCrowdSale } from "../../src/crowdsale/StakedLockingCrowdSale.sol"; | ||
import { LockingCrowdSale, ITrustedLockingContracts } from "../../src/crowdsale/LockingCrowdSale.sol"; | ||
import { TimelockedToken } from "../../src/TimelockedToken.sol"; | ||
|
||
contract RolloutV25Sale is Script { | ||
function run() public { | ||
address moleculeDevMultisig = 0xCfA0F84660fB33bFd07C369E5491Ab02C449f71B; | ||
vm.startBroadcast(); | ||
|
||
TimelockedToken timelockedTokenImplementation = new TimelockedToken(); | ||
StakedLockingCrowdSale stakedLockingCrowdSale = new StakedLockingCrowdSale(timelockedTokenImplementation); | ||
stakedLockingCrowdSale.transferOwnership(moleculeDevMultisig); | ||
vm.stopBroadcast(); | ||
|
||
console.log("STAKED_LOCKING_CROWDSALE_ADDRESS=%s", address(stakedLockingCrowdSale)); | ||
console.log("timelocked token implementation=%s", address(timelockedTokenImplementation)); | ||
// 0x7c36c64DA1c3a2065074caa9C48e7648FB733aAB | ||
// vestedDaoToken.grantRole(vestedDaoToken.ROLE_CREATE_SCHEDULE(), address(stakedLockingCrowdSale)); | ||
// stakedLockingCrowdSale.trustVestingContract(vestedDaoToken); | ||
} | ||
elmariachi111 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
contract RolloutV25LockingSale is Script { | ||
function run() public { | ||
//mainnet 0xCfA0F84660fB33bFd07C369E5491Ab02C449f71B; | ||
address moleculeDevMultisig = 0x9d5a6ae551f1117946FF6e0e86ef9A1B20C90Cb0; | ||
|
||
ITrustedLockingContracts stakedLockingCrowdsale = ITrustedLockingContracts(0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7); | ||
TimelockedToken timelockedTokenImplementation = TimelockedToken(0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851); | ||
elmariachi111 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
vm.startBroadcast(); | ||
LockingCrowdSale lockingCrowdsale = new LockingCrowdSale(timelockedTokenImplementation); | ||
lockingCrowdsale.trustLockingContractSource(stakedLockingCrowdsale); | ||
lockingCrowdsale.transferOwnership(moleculeDevMultisig); | ||
vm.stopBroadcast(); | ||
|
||
console.log("LOCKING_CROWDSALE_ADDRESS=%s", address(lockingCrowdsale)); | ||
//console.log("timelocked token implementation=%s", address(timelockedTokenImplementation)); | ||
// 0x7c36c64DA1c3a2065074caa9C48e7648FB733aAB | ||
// vestedDaoToken.grantRole(vestedDaoToken.ROLE_CREATE_SCHEDULE(), address(stakedLockingCrowdSale)); | ||
// stakedLockingCrowdSale.trustVestingContract(vestedDaoToken); | ||
} | ||
} |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.