-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from Stacktical/migrate-token-to-dedicated-repo
Migrate token to dedicated repo
- Loading branch information
Showing
19 changed files
with
40 additions
and
182 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol"; | ||
|
||
contract DSLAMock is ERC20Burnable { | ||
uint256 public constant INITIAL_SUPPLY = 10000000000000000000000000000; | ||
|
||
/** | ||
* @dev Constructor | ||
*/ | ||
constructor() public { | ||
_mint(msg.sender, INITIAL_SUPPLY); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
const DSLA = artifacts.require('./DSLA.sol'); | ||
const DSLACrowdsale = artifacts.require('./DSLACrowdsale.sol'); | ||
|
||
module.exports = function(deployer, network) { | ||
// Dec 31th 2018 8AM GMT | ||
const releaseDate = 1546243200; | ||
let wallet = "0xaf13f12ebe00cd02f486e000927408148e768802"; | ||
let dsla; | ||
let crowdsale; | ||
let wallet; | ||
let DSLATokenAddress; | ||
|
||
return deployer.deploy(DSLA, releaseDate).then(function(instance){ | ||
dsla = instance; | ||
return deployer.deploy(DSLACrowdsale, wallet, dsla.address).then(function(instance){ | ||
crowdsale = instance; | ||
return dsla.setCrowdsaleAddress(crowdsale.address).then(async function(){ | ||
const adr = await dsla.crowdsaleAddress.call(); | ||
console.log("Crowdsale address set to " + adr); | ||
}); | ||
}); | ||
}); | ||
if (network === 'development') { | ||
wallet = "0x1234567890"; | ||
DSLATokenAddress = "0x1234567891" | ||
} | ||
|
||
return deployer.deploy(DSLACrowdsale, wallet, DSLATokenAddress) | ||
} |
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
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
Oops, something went wrong.