Giter VIP home page Giter VIP logo

crowdsale-contracts's Introduction

Lunyr Contracts

This is the official repository for the crowdsale of Lunyr tokens.

We use SafeMath.sol and ERC20.sol from Zeppelin (thanks!) NewToken.sol is an example of a new token that we might upgrade to.

We have 1200+ lines of tests. There are two test files:

  1. One tests the wallet
  2. The other one tests the crowd-sale token contracts.

Instructions

  1. Open a terminal
  2. Install npm
  3. Clone the repository "git clone https://github.com/Lunyr/crowdsale-contracts.git"
  4. In the repository, run "npm install"
  5. Run testrpc (see below)
  6. In another terminal, run "truffle test"

The testrpc command we use is

testrpc --testnet --account=0x1024102410241024102410241024102410241024102410241024102410241020,10000000000000000000000000 --account=0x1024102410241024102410241024102410241024102410241024102410241021,10000000000000000000000000 --account=0x1024102410241024102410241024102410241024102410241024102410241022,10000000000000000000000000 --account=0x1024102410241024102410241024102410241024102410241024102410241023,10000000000000000000000000 --account=0x1024102410241024102410241024102410241024102410241024102410241024,10000000000000000000000000 --debug

If you don't want to run all the tests, you can just run individual ones

truffle test ./test/LunyrToken.js

If you want to test on the testnet, do the following:

  1. install geth brew install geth or apt-get install ethereum
  2. create at least 3 accounts geth account new
  3. get some test ether from http://faucet.ropsten.be:3001
  4. run geth in the terminal: geth --testnet --rpc --rpcport 45585 --rpcaddr localhost console
  5. in the geth console, unlock your default account personal.unlockAccount(web3.eth.accounts[0])
  6. in another terminal, get to the directory where you cloned the repo cd crowdsale-contracts/
  7. run truffle migrate --network testnet
  8. run truffle console --network testnet
  9. interact with the contracts via web3

Or just use our existing contracts on the testnet:

Multisig Wallet: 0x90321a0b97ee9cdf78c2428ae826b8a0e6c7af8a

Lunyr Token: 0x6c6c2747e3753654f7654b566888417c135fe9cc

crowdsale-contracts's People

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.