Skip to content

ledgitblockchain/ico

Repository files navigation

Ledgit PRE ICO Smart Contract

ToDo


  • Whitelist

  • Oraclize

  • Service fee

  • Reach Goal/forwardFunds (Lim Sing)

  • Convert Token

  • Refund Token

  • Buy Token / Invest (Vincent)

  • Presale fund collector Pre-ICO and ICO combined.

  • Remove Presale contract from codebase.

  • Integration with web

  • Alpha Test

After clone

  • Install only production dependencies.
npm install --production

Or

  • Install development dependencies for running test
npm install

Run Test


(Without specified network, using default network - "test")

truffle test

(With specified network)

truffle test --network your-network-name, eg: ganache

Connect to oraclize from Private Network or testrpc/ganache-cli


Requirements

  • Installed geth
  • Installed testrpc/ganache-cli (both)
  • Installed etheruem-bridge

Connect from testrpc/ganache-cli

  1. Start testrpc/ganache-cli with following command

    • ganache-cli -m "phrase"
    • keep "phrase" special and as short as possible
    • reuse the same "phrase", refer to docs for the reason
  2. Go to your ethereum-bridge directory and execute following command

    • node bridge -a account_index
    • account_index could be any account's index generated by testrpc, default 0 - 9, pick one
  3. Update your OAR in your oraclize contract's construct, how-to

Connect from Private Network

  1. Start your private node, geth

  2. Go to your ethereum-bridge directory and execute following command

    • node bridge -H localhost:your-rpc-port -a account_index
    • eg, your-rpc-port - 9003, account_index - 0
  3. If and Only if needed, Update your OAR in your oraclize contract's construct, how-to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published