Giter VIP home page Giter VIP logo

safe-sale's Introduction

Sale based on pre-made token.

This codebase can be used to deploy fixed-price, finite-supply token sales. The price and time window can be changed. It uses json conf files to specify sale parameters. The token must be generated and migrated FIRST then added to the conf. Tokens MUST be transfered into the contract for the contract to function. A token can be generated from github/nickjuntilla/token Once the token is migrated use the address generated from the console.

Initialize

This was developed using Node 8.2.1, Truffle 3.4.5 and TestRPC 4.0.1.

npm install -g truffle
npm install
truffle compile

Using the repo to deploy a real token

Config files where the parameters of your own sale can be filled in are in the conf directory.

Note that the owner in sale.json MUST BE the first address generated by the mnemonic in secrets.json. Note that you MUST change the default mnemonic in secrets.json or you WILL BE PWNED. Once you've done that you MUST NEVER commit your secrets.json. KEEP IT SECRET. It is in the .gitignore. Do not commit it once you've changed it. If your production mnemonic is compromised you are fully pwned.

Having done all that you can truffle migrate --network mainnet. Save the contents of your build directory, you'll want to have all that data.

safe-sale's People

Contributors

nickjuntilla avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

safe-sale's Issues

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.