Coder Social home page Coder Social logo

smartcontracts's Introduction

To deploy:

  1. run make_flat.sh

  2. Deploy EthearnalRepToken_flat.sol

  3. Deploy Treasury_flat.sol with constructor argument of team's multisig wallet where funds will be collected

  4. Call treasuryContract_flat.setupOwners with an array of multiple owners of the contract who can call sensitive functions

  5. Modify values in EthearnalRepTokenCrowdsale_flat: uint256 etherRateUsd = 300;
    // Mainsale Start Date (11 Nov 16:00 UTC) uint256 public constant saleStartDate = 1510416000;

    // Mainsale End Date (11 Dec 16:00 UTC) uint256 public constant saleEndDate = 1513008000;

  6. Deploy EthearnalRepTokenCrowdsale_flat contract with constructor arguments: array of owners, tokenContract address, treasuryContract address, team multisig wallet where tokens will be allocated Example: ["0x0039f22efb07a647557c7c5d17854cfd6d489ef3", "0x94fc020913ea347eff7dd6493c3e5fcc72172ac1"], "0x96ee88a6d189e15634f38c5e6a5ba82fd02e9d77", "0x94fc020913ea347eff7dd6493c3e5fcc72172ac1", "0x0039f22efb07a647557c7c5d17854cfd6d489ef3"

  7. Deploy VotingProxy_flat with constructor arguments: treasury contract address, token contract address

  8. call treasuryContract.setVotingProxy(votingProxyContract.address)

  9. call treasuryContract.setCrowdsaleContract(saleContract.address)

  10. call treasuryContract.setTokenContract(tokenContract.address)

  11. call tokenContract.transferOwnership(saleContract.address)

  12. call saleContract.setEtherRateUsd(CURRENT_ETHER_RATE_USD) IF USD_ETHER rate has changed

To verify on etherscan

encodeConstructor Parameters by using:

let valuesICO = [["0x0039f22efb07a647557c7c5d17854cfd6d489ef3", "0x94fc020913ea347eff7dd6493c3e5fcc72172ac1"], "0x96ee88a6d189e15634f38c5e6a5ba82fd02e9d77", "0x94fc020913ea347eff7dd6493c3e5fcc72172ac1", "0x0039f22efb07a647557c7c5d17854cfd6d489ef3"]
let encodeICO = web3.eth.abi.encodeParameters(['address[]', 'address', 'address', 'address'], values2);

let valuesVotingProxy = ["0x94fc020913ea347eff7dd6493c3e5fcc72172ac1","0x96ee88a6d189e15634f38c5e6a5ba82fd02e9d77"]
let encodeVotingProxy = web3.eth.abi.encodeParameters(['address', 'address'], valuesVotingProxy);

Testnet deployments:

Token: https://kovan.etherscan.io/address/0x96ee88a6d189e15634f38c5e6a5ba82fd02e9d77#code Treasury: https://kovan.etherscan.io/address/0x94fc020913ea347eff7dd6493c3e5fcc72172ac1 ICO: https://kovan.etherscan.io/address/0x09226ccec39cf38cd47ccb4f0e9cf54a30e9a136#code VotingProxy: https://kovan.etherscan.io/address/0x9b49a4398c1e4be1f3d2ae2ceb208ee5a5df2e45

smartcontracts's People

Contributors

rstormsf avatar

Watchers

Dobri Stoilov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.