Neutered Puppy Masquerade
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

create-poa-crowdsale

1.0.44 • Public • Published

Scrypt for creating new crowdsale https://wizard.poa.network/

v 1.0.35 Added testing scenarios: ./scenarios v 1.0.38 Added executable files v 1.0.40 "ouptputPath" in config.json

Getting Started

Installation

 https://github.com/poanetwork/e2e-test-token-wizard
  npm install create-poa-crowdsale

Usage

  const CreatePOACrowdsale=require('create-poa-crowdsale');

  const createPOACrowdsale=CreatePOACrowdsale.createPOACrowdsale;

  var myCrowdsale=createPOACrowdsale( "config.json");

where:

  • config.json is .json file in working directory (see example below) with configuration parameters.

Package includes executable files

  • index-linux for Linux
  • index-macos for macOS
  • index-windows for Windows

run with command ./<file_name>

local directory should contain config.json, scenario.json, MetaMask.crx

Prerequisites

  • Google-chrome browser should be installed

Scrypt performs:

Example config.json:

   {
     "startURL" : "https://wizard.poa.network/",
     "outputPath":"./results",
     "installMetaMask":true,
     "scenario":"T1RnWn.json"
   }

Example scenario.json:

{
    "account": "0xF16AB2EA0a7F7B28C267cbA3Ed211Ea5c6e27411",
    "privateKey": "03c06a9fab22fe0add145e337c5a8251e140f74468d72eab17ec7419ab812cd0",
    "networkID":4,


    "name": "MySuperCoin",
    "ticker": "MSC",
    "decimals": 0,
    "reservedTokens":[
       {
        "address" :"0x6f53002497203d167771eb0852b4c1caDA7a585f",
        "dimension": "percentage",
        "value": 20
       },
       {
         "address" :"0x42f0143F2E9Ab64CA3811bbA08E40D798C18E7f4",
         "dimension": "tokens",
         "value": 10
       }],
    "walletAddress":"0xF16AB2EA0a7F7B28C267cbA3Ed211Ea5c6e27411",
    "gasprice": 100,
    "mincap": 1,
    "whitelisting":false,
    "tiers":[
       {
       "name":"###1",
        "allowModify": true,
        "startDate": "02/07/2018",
        "startTime": "4:40pm",
        "endDate":"02/07/2018",
        "endTime":"8:00pm",
        "rate":100,
        "supply": 200,
        "whitelist":[
          {
          "address":"0x6f53002497203d167771eb0852b4c1caDA7a585f",
          "min":6,
          "max":100
          },
          {
           "address":"0x42f0143F2E9Ab64CA3811bbA08E40D798C18E7f4",
           "min":8,
           "max":55
          }]
       },
       {
        "name":"###2",
        "allowModify": true,
        "startDate": "08/08/2019",
        "startTime": "2:34am",
        "endDate":"08/10/2019",
        "endTime":"11:34pm",
        "rate":40,
        "supply": 2300,
        "whitelist":[
        {
         "address":"0x6f53002497203d167771eb0852b4c1caDA7a585f",
         "min":6,
         "max":100
        },
        {
         "address":"0x42f0143F2E9Ab64CA3811bbA08E40D798C18E7f4",
         "min":8,
         "max":55
        }]
       }]

}

where networkID=

0,1,2 - Main Ethereum network;
3 - Ropsten;
4 - Rinkeby;
42 - Kovan;
77 - Sokol;
99 - Poa core;
8545 - localhost 8545

Keywords

none

install

npm i create-poa-crowdsale

Downloadsweekly downloads

2

version

1.0.44

license

none

last publish

collaborators

  • avatar