bnb-staking-csvs

Generate CSV Exports of Your BNB Staking Rewards.

https://github.com/prikhi/bnb-staking-csvs#readme

Version on this page:0.2.1.0
LTS Haskell 22.17:0.2.2.0
Stackage Nightly 2024-04-19:0.2.2.0
Latest on Hackage:0.2.2.0

See all snapshots bnb-staking-csvs appears in

BSD-3-Clause licensed by Pavan Rikhi
Maintained by [email protected]
This version can be pinned in stack with:bnb-staking-csvs-0.2.1.0@sha256:f63ff8f8ae73192df5fff27374b0c4813b92c65a097b66d4a5158b4d5b0c180a,3335

Module documentation for 0.2.1.0

bnb-staking-csvs

bnb-staking-csvs Build Status

Generate CSV exports of your staking rewards on BinanceChain.

Requires stack:

stack run -- <DELEGATOR_PUBKEY>
stack run -- --help

Install

You can install the CLI exe by running stack install. This lets you call the executable directly instead of through stack:

$ stack install
$ export PATH="${HOME}/.local/bin/:${PATH}"
$ bnb-staking-csvs bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2 | head -n 4
time,amount,currency,delegator,validator,validatorAddress,height
2021-04-09T20:00:00-04:00,0.00118792,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,BscScan,bva1t42gtf6hawqgpmdpjzmvlzvmlttlqtkvlmgjxt,155843908
2021-04-10T20:00:00-04:00,0.00095682,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,BscScan,bva1t42gtf6hawqgpmdpjzmvlzvmlttlqtkvlmgjxt,156060618
2021-04-11T20:00:00-04:00,1.74196290,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,TW Staking,bva1c6aqe9ndzcn2nsan963z43xg6kgrvzynl97785,156277904

Build

You can build the project with stack:

stack build

For development, you can enable fast builds with file-watching, documentation-building, & test-running:

stack test --haddock --fast --file-watch --pedantic

To build & open the documentation, run

stack haddock --open bnb-staking-csvs

LICENSE

BSD-3

Changes

CHANGELOG

master

v0.2.1.0

  • Add --year flag for filtering output.
  • Bump dependency versions(aeson).

v0.2.0.0

  • Add a --cointracking flag to format the data for use with CoinTracking’s Bulk Import feature.
  • Add an --output-file CLI argument to make the executable write to a file instead of print to stdout.
  • Use the cmdargs package to parse CLI arguments.
  • Split library into Console.BnbStaking module hierarchy.

v0.1.0.0

  • Initial release