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

refactor: restructure list and balance output (1 hour) #28

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

coolaj86
Copy link
Member

@coolaj86 coolaj86 commented Jun 28, 2022

Just a little something to keep my hands busy while I was on JS Jabber today.

  • (0) stdout for the kind of content I'd like to save to a file
  • (1) stderr for debug / nice-to-know info
  • markdown table for balances
  • add Totals

Updated list

list should list keys quickly, not wait for balance info.

crowdnode list
1: Selected default staking key Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1
1:
1: Staking keys: (in ~/.config/crowdnode/keys/)
1: 
0: Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1
0: Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2
0: Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3
1:
crowdnode list > list.txt
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3

Updated balance

crowdnode balance
Selected default staking key Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1

Staking keys: (in ~/.config/crowdnode/keys/)

|                                    |   🔑 Holdings |   🪧  Stakings |   💸 Earnings |
| ---------------------------------: | ------------: | ------------: | ------------: |
| Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1 | Đ  0.00060014 | Đ100.00000000 | Đ  0.09000000 |
| Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2 | Đ  0.00060014 | Đ 10.00000000 | Đ  0.01000000 |
| Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3 | Đ  0.00060014 | Đ  1.00000000 | Đ  0.00000000 |
|                                    |               |               |               |
|                             Totals | Đ  0.00180042 | Đ111.00000000 | Đ  0.10000000 |
crowdnode balance > balances.md
🔑 Holdings 🪧 Stakings 💸 Earnings
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1 Đ 0.00060014 Đ100.00000000 Đ 0.09000000
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2 Đ 0.00060014 Đ 10.00000000 Đ 0.01000000
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3 Đ 0.00060014 Đ 1.00000000 Đ 0.00000000
Totals Đ 0.00180042 Đ111.00000000 Đ 0.10000000

@coolaj86 coolaj86 force-pushed the keys-and-balances branch 2 times, most recently from 58ce308 to 2007666 Compare July 4, 2022 16:41
@coolaj86 coolaj86 merged commit 2007666 into main Jul 4, 2022
@coolaj86 coolaj86 deleted the keys-and-balances branch January 19, 2023 04:28
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

Successfully merging this pull request may close these issues.

1 participant