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 management tools #257

Closed
brenzi opened this issue Sep 17, 2022 · 3 comments
Closed

write voucher management tools #257

brenzi opened this issue Sep 17, 2022 · 3 comments

Comments

@brenzi
Copy link
Member

brenzi commented Sep 17, 2022

we already have a script to generate voucher batches: ./client/voucher.py

Community leaders should be able to scrape all remaining unused voucher funds after a specified time, i.e. 30 days

The mentioned script generates a .secrets file which contains one SURI per line in the format //svinsdfvib/dfinbadcinad

We should implement a script which:

  1. calculates the account ss58 for each line
  2. fetches the balance, with both principal and block components
  3. calculate balance for today as well as number of days the account had no balance update
  4. list all the above information: ss58account, SURI, balance, days untouched
  5. allow user to specify a beneficiary account where all nonzero balances that havent been touched for > N days will be reaped to
@Malixxa
Copy link
Collaborator

Malixxa commented Sep 19, 2022

In addition to 4., it would help to see the total Amount locked in vouchers.

@brenzi
Copy link
Member Author

brenzi commented Sep 27, 2022

@Malixxa this will not be possible as there is no way (across multiple runs of voucher creation) to know if an account is a voucher or not

@brenzi
Copy link
Member Author

brenzi commented Dec 9, 2022

replaced by #284

@brenzi brenzi closed this as completed Dec 9, 2022
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

2 participants