Skip to content

Commit

Permalink
deployed!
Browse files Browse the repository at this point in the history
  • Loading branch information
fraylopez committed Jan 24, 2018
1 parent fe81d2b commit 9d16a27
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
19 changes: 12 additions & 7 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ const BigNumber = web3.BigNumber;
var SkaraCrowdsale = artifacts.require("SkaraCrowdsale");
var SkaraToken = artifacts.require("SkaraToken");

const EUR_PER_ETHER = 817.65

/** SETUP BEFORE DEPLOY!!!!! */
const EUR_PER_ETHER = 809.82 //average on deploy day (01/24/2018)
const wallet = "0x69F28b7e90285E25E79ff3372dfe69F1fE8D7605"; //skara

const cap = web3.toWei(1, 'ether') * (10000000/EUR_PER_ETHER); // 10 M€ in wei at startTime
const presaleCap = web3.toWei(1, 'ether')*(10000000/EUR_PER_ETHER); // 6 M€ in wei at startTime
const investmentLow = new BigNumber(100);
const investmentMedium = new BigNumber(500);
const investmentHigh = new BigNumber(2000);
const startTime = 1518048000 //02/08/2018 @ 3:00pm (UTC)
const presaleCap = web3.toWei(1, 'ether')*(6000000/EUR_PER_ETHER); // 6 M€ in wei at startTime
const investmentLow = web3.toWei(100, 'ether');
const investmentMedium = web3.toWei(500, 'ether');
const investmentHigh = web3.toWei(2000, 'ether');
const startTime = 1518102000 //02/08/2018 @ 3:00pm (UTC)
const endTime = 1519398000 //02/23/2018 @ 3:00pm (UTC)
const rate = new BigNumber(1000);

//const wallet = "0x627306090abab3a6e1400e9345bc60c78a8bef57"; //truffle develop Change on deploy
//const wallet = "0x0E56f09FDD14d61E456fbc45C618fD4FF10256e2"; //kovan Change on deploy
const wallet = "0x0E56f09FDD14d61E456fbc45C618fD4FF10256e2"; //testrpc Change on deploy
//const wallet = "0x0E56f09FDD14d61E456fbc45C618fD4FF10256e2"; //testrpc Change on deploy
//const wallet = "0x69F28b7e90285E25E79ff3372dfe69F1fE8D7605"; //skara

module.exports = function(deployer) {
deployer.deploy(
Expand Down
12 changes: 11 additions & 1 deletion truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
return new HDWalletProvider(mnemonic, "https://kovan.infura.io/pv0QcsGlqWaGaZvEsP9i")
},
gas: 6721975,
//gasPrice: 30000000
gasPrice: 20000000
//from: "0x0E56f09FDD14d61E456fbc45C618fD4FF10256e2"
},
coverage: {
Expand All @@ -49,6 +49,16 @@ module.exports = {
gas: 0xfffffffffff,
gasPrice: 0x01
},

main: {
network_id: 1,
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/pv0QcsGlqWaGaZvEsP9i ")
},
gas: 6721975,
gasPrice: 10000000000
//from: "0x0E56f09FDD14d61E456fbc45C618fD4FF10256e2"
},

},
solc: { optimizer: { enabled: true, runs: 200 } }
Expand Down

0 comments on commit 9d16a27

Please sign in to comment.