Service responsible for sending plenty of ethereum transactions to mint token described by interface IMintableToken
.
geth
data directory under services
- ethereum_node
- volumes
.
Exported service port under services
- minter-service
- ports
.
Service data directory (holds state of small size) and config under services
- minter-service
- volumes
.
Edit minter.conf (the only thing you should tweak is require_confirmations
).
docker-compose build
docker-compose run minter-service shell
For help use ./ctl.py -h
enter ctrl-D after finished
docker-compose up
docker-compose stop
Run docker-compose run minter-service shell
,
see ./bin/ctl.py --help
.
Exported at port 8000
.
Mint after deploying token and minter contract:
curl -s 'http://127.0.0.1:8000/mintTokens?mint_id=foo&address=0x1111111111111111111111111111111111111122&tokens_amount=1000000'
and check:
curl -s 'http://127.0.0.1:8000/getMintingStatus?mint_id=foo'
npm install
pip3 install -r requirements.txt
# run ganache-cli if it's not already running
./node_modules/.bin/ganache-cli --gasPrice 2000 -l 10000000 &>/tmp/ganache.log &
./node_modules/.bin/truffle test
./test/i/run.sh
./bin/deploy target_dir
See <installation dir>/conf/minter.conf
.
geth
must be started with option --rpcapi eth,personal
.