Go to file
dennis00010011b@gmail.com 09fb832e61 outputPath in config 2018-02-15 18:30:07 -08:00
.circleci init commit 2018-02-06 22:48:27 -08:00
.idea outputPath in config 2018-02-15 18:30:07 -08:00
entity outputPath in config 2018-02-15 18:30:07 -08:00
pages outputPath in config 2018-02-15 18:30:07 -08:00
scenarios outputPath in config 2018-02-15 18:30:07 -08:00
tests outputPath in config 2018-02-15 18:30:07 -08:00
utils outputPath in config 2018-02-15 18:30:07 -08:00
.gitignore 1.0.37 2018-02-12 10:52:13 -08:00
LICENSE Create LICENSE 2018-02-14 13:00:09 -07:00
MetaMask.crx init commit 2018-02-06 22:48:27 -08:00
NetworksCode.txt 1.0.33 2018-02-08 21:55:14 -08:00
README.md outputPath in config 2018-02-15 18:30:07 -08:00
T1RnWy.json 1.0.37 2018-02-12 10:52:13 -08:00
T1RyWn_0007.json 1.0.38 2018-02-12 12:26:55 -08:00
T1RyWn_0008.json 1.0.38 2018-02-12 12:26:55 -08:00
config.json outputPath in config 2018-02-15 18:30:07 -08:00
index-linux outputPath in config 2018-02-15 18:30:07 -08:00
index-macos outputPath in config 2018-02-15 18:30:07 -08:00
index-win.exe outputPath in config 2018-02-15 18:30:07 -08:00
index.js outputPath in config 2018-02-15 18:30:07 -08:00
package-lock.json v1.0.34 2018-02-10 10:30:29 -08:00
package.json outputPath in config 2018-02-15 18:30:07 -08:00
testAccounts.json 1.0.35 2018-02-10 16:36:46 -08:00

README.md

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