This is the prosume wallet that keep all the logic of the metering and payment system and implement full ECP protocol stored on blockchain (bitshares).
Pierluigi Maori 5f0afb5d3d Initial release 1 year ago
cmd Initial release 1 year ago
src/github.com Initial release 1 year ago
test Initial release 1 year ago
LICENSE Initial release 1 year ago
README.md Initial release 1 year ago
main.go Initial release 1 year ago

README.md

prosume CLI

The command line tool for the Prosume Blockchain, powered by spf13/cobra

Installing

$> go install mangrovia.solutions/prosume-cli
$> mkdir -p /opt/prosume
$> cp prosume-cli .prosume.yaml /opt/prosume/

Building

$> go build -o prosume-cli

Running

$> prosume-cli --help
$> prosume-cli --config .prosume.yaml --accounts-file FILETOREADUSER
$> prosume-cli wallet balance
$> prosume-cli wallet history
$> nohup prosume-cli start &
$> nohup prosume-cli --accounts-file utility.txt start
$> nohup prosume-cli --accounts-file utility.txt admin updatePrices -b BUYPRICE -s SELLPRICE -u USERTOUPDATE
$> prosume-cli status

Documentation

Docs can be obtained either from the help command or the docs generate command. The latter will generate a comprehensive list of Markdown files with explanation of every command, while the first will show helpful messages explaining how the single command works.

$ prosume-cli help [COMMAND]
$ prosume-cli [COMMAND] help
$ prosume-cli [COMMAND] -h
$ prosume-cli [COMMAND] --help
$ prosume-cli docs generate
$ cd docs # and explore content

Config file example

chain:
  witness_host: ws://prosume.cyberdeck.eu:9090 
accounts:
  path: "nesusnet.txt"
docs:
  exclude:
    man_pages: "true"
    autocompletion_scripts: "true"
  out_directory: ""
cron: 
  log: "* * * * *"
  pay: "* * * * *"
  exchange: "* * * * *"
read_socket:
  type: "unix"
  uri: "/tmp/somesocket.sock"
write_socket:
  type: "unix"
  uri: "/tmp/somesocket.sock"
logfiles:
  errorfile:  /tmp/prosume_error.log
  infofile:   /tmp/prosume_info.log
  debugfile:  /tmp/prosume_debug.log
loglevel:
  console_level: INFO

Authors