Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write voucher mgmt helper script #284

Open
brenzi opened this issue Dec 9, 2022 · 0 comments
Open

write voucher mgmt helper script #284

brenzi opened this issue Dec 9, 2022 · 0 comments

Comments

@brenzi
Copy link
Member

brenzi commented Dec 9, 2022

for a batch of vouchers, we'd like to easily query which ones are reaped and optionally reap all outdated vouchers

in python. will need to use CLI client wrapper lib

input:

  • file with one SURI per line, as generated by voucher.py as *.secrets

global args:

  • ss58prefix specifies account display format: 42 for default, 2 for kusama

commands:

  • info: prints csv to stdout: accountid, balance, <reap_timestamp>, <reap_accountid>, where balance has demurrage applied
  • recollect --reap_age 30d --beneficiary ACCOUNTID: reaps all vouchers that haven't sent any extrinsic for the last reap_age days/time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant