Go to file
viktor e34e62967f Merge remote-tracking branch 'origin/core' 2018-04-02 19:32:36 +03:00
distributeTokens fix typo and add .env 2017-12-07 21:01:46 -08:00
generateInitialKey ESLint suggestions 2018-02-16 17:09:02 +03:00
submodules ESLint suggestions 2018-02-16 17:09:02 +03:00
.gitignore Password for initial key is generated to the file, This closes #10 2017-12-28 15:55:38 +03:00
.gitmodules unit tests && refactoring 2018-02-14 21:01:05 +03:00
.travis.yml unit tests && refactoring 2018-02-14 21:01:05 +03:00
LICENSE Create LICENSE 2018-02-14 12:49:31 -07:00
README.md Merge remote-tracking branch 'origin/core' 2018-04-02 19:32:36 +03:00
config.json core HF: KeysManager ABI and address 2018-01-29 22:17:50 +03:00
package-lock.json unit tests && refactoring 2018-02-14 21:01:05 +03:00
package.json unit tests && refactoring 2018-02-14 21:01:05 +03:00

README.md

Scripts for Master of Ceremony

generateInitialKey

Generates initial key from master of ceremony node.

How to start:

  • cd ./generateInitialKey
  • npm i
  • npm start

Config

Config is located in ./config.json Example of config:

{
  "environment": "live",
  "Ethereum": {
    "live": {
      "rpc": "http://127.0.0.1:8545" // JSON RPC URL of master of ceremony node
    },
    "contracts": {
      "KeysManager": {
        "addr": "0x0e4a78ba651fcf2058e1326e16fc9160553ca467", // address of KeysManager contract
        "abi": [...] //ABI of KeysManager contract
      }
    }
  }
}

distributeTokens

Distributes tokens from csv file in PoA network to pre-sale participants

How to start:

  • cd ./distributeTokens
  • npm i
  • node distributeTokens.js

Config

Config is located in ./distributeTokens/.env Example of config:

RPC_PORT=8545 // master of ceremony's node JSON RPC port 
HOST=localhost // master of ceremony's node host 
FAT_BALANCE=0x0039F22efB07A647557C7C5d17854CFD6D489eF3 // address of master of ceremony
FILENAME_CSV_INVESTORS=example.csv // name of input csv file
GAS_PRICE=1 // gas price of tx in gWei