mattsu-coin-client

command module
v0.0.0-...-c07cfec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 1 Imported by: 0

README

mattsu-coin-client

チュートリアル

  • セットアップ
$ mv configs/.mattsu-coin-client.yaml.sample configs/.mattsu-coin-client.yaml
$ vim configs/.mattsu-coin-client.yaml // 適宜編集
$ make all
  • mint
./mattsu-coin-client mint --to "0x950650b9eA3270494529c64695Ae91689927AC97" --amount 100 --config ./configs/.mattsu-coin-client.yaml
Using config file: ./configs/.mattsu-coin-client.yaml
nonce: 60, gas: 5000000, gasPrice: 20000000000, to: 0x950650b9eA3270494529c64695Ae91689927AC97

mint実行前後のbalance

truffle(kovan)> a.balanceOf(accounts[0]).then(v => v.toString())
'11000'
...
truffle(kovan)> a.balanceOf(accounts[0]).then(v => v.toString())
'11100'
  • burn
$ ./mattsu-coin-client burn --to "0xF2b3Df99E3A87984CdE3C7fB2fF0D99Ffb9905fD" --amount 100 --config ./configs/.mattsu-coin-client.yaml
Using config file: ./configs/.mattsu-coin-client.yaml
nonce: 63, gas: 5000000, gasPrice: 20000000000, to: 0x950650b9eA3270494529c64695Ae91689927AC97

burn実行前後のbalance

truffle(kovan)> a.balanceOf(accounts[0]).then(v => v.toString())
'11100'
...
truffle(kovan)> a.balanceOf(accounts[0]).then(v => v.toString())
'11000'
  • buy
$ go run main.go buy --config ./configs/.mattsu-coin-client.yaml                                                   
Using config file: ./configs/.mattsu-coin-client.yaml
37885000000

Documentation

Overview

Copyright © 2020 koji.matsumiya@datachain.jp

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL