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

feat(json_rpc): multiple improvements: get_balance_2, query_stakes and query_powers #2585

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

guidiaz
Copy link
Contributor

@guidiaz guidiaz commented Jan 28, 2025

Provides Wit/2 relevant information at the toolkit's CLI and Typescript library level:

  • npx witnet network ...

    • holders: get locked, unlocked and staked balances for specified min/max balance range.
    • powers: get current staking powers for specified limit/offset range, supporting distinct.
    • senate: get distinct validators having validated at least one block during previous number of epochs.
    • stakers: get stake entries for specified limit/offset range, supporting optional distinct and since parameters.
  • npx witnet farm ...

    • rankings: Sort identities by their highest staking power ranking at present time for specified capability.
    • withdrawers: get identities currently delegating stake in farm nodes.
  • npx witnet inspect ...

    • validators: show validators treasuring delegated stake from specified address.
    • withdrawers: show withdrawers currently delegating stake to specified address.

@guidiaz guidiaz requested a review from aesedepece January 28, 2025 17:28
@guidiaz guidiaz force-pushed the json_rpc/get_balance_2 branch 3 times, most recently from 25bd561 to 2da951c Compare January 29, 2025 16:24
@guidiaz guidiaz force-pushed the json_rpc/get_balance_2 branch from 2da951c to 1719285 Compare January 30, 2025 18:21
@guidiaz guidiaz changed the title feat(json_rpc): implement get_balance_2 feat(json_rpc): multiple improvements: get_balance_2, query_stakes and query_powers Jan 31, 2025
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