Skip to content

[enh] #46: Add-up pubkeys balances:

Moul requested to merge feature/46-add-up-pubkeys-amount into master

Changelog

  • retrieve pubkey amounts from outside display f().
  • rename argument from "pubkey" –> "pubkeys".
  • allows passing many pubkeys as argument.
  • display pubkeys amounts in a loop.
  • display add-up at the end whether several pubkeys have been specified.

Example

silkaj amount --pubkeys GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP:Com8rJukCozHZyFao6AheSsfDQdPApxQRnz7QYFf64mm
pyenv-virtualenv: version `silkaj-env' is already activated
Requested default node: <g1.duniter.org:443>
Total amount of: GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP
----------------------------------------------------------------
Total Relative     = 202.97 UD g1
Total Quantitative = 2031.73 g1

Total amount of: Com8rJukCozHZyFao6AheSsfDQdPApxQRnz7QYFf64mm
----------------------------------------------------------------
Total Relative     = 203.3 UD g1
Total Quantitative = 2034.99 g1

Total amount of: Total
----------------------------------------------------------------
Total Relative     = 406.27 UD g1
Total Quantitative = 4066.72 g1

Will be merged within the next three days whether or not there is a review.

Edited by Moul

Merge request reports