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

[Paris] new adaptive issuance rpc endpoints (baker related) #2677

Open
16 tasks
Innkst opened this issue Sep 27, 2023 · 1 comment
Open
16 tasks

[Paris] new adaptive issuance rpc endpoints (baker related) #2677

Innkst opened this issue Sep 27, 2023 · 1 comment
Labels
ai Adaptive Issuance Paris rpc
Milestone

Comments

@Innkst
Copy link
Contributor

Innkst commented Sep 27, 2023

  1. Add support for the following adaptive issuance Baker related rpc entrypoints to Taquito RPCClient:
  • /context/delegates/{pkh}/active_staking_parameters - Returns the currently active staking parameters for the given delegate.
  • /context/delegates/{pkh}/pending_staking_parameters - Returns the pending values for the given delegate’s staking parameters.
  • /context/delegates/{pkh}/unstaked_frozen_deposits - Returns, for each cycle, the sum of unstaked-but-frozen deposits for this cycle. Cycles go from the last unslashable cycle to the current cycle.
  • /context/delegates/{pkh}/estimated_shared_pending_slashed_amount - Returns the estimated shared pending slashed amount (in mutez) of a given delegate.
  • /context/delegates/{pkh}/denunciations - Returns the pending denunciations for the given delegate.
  • /context/delegates/{pkh}/current_baking_power - The baking power of a delegate, as computed from its current stake. This value is not used for computing baking rights but only reflects the baking power that the delegate would have if a snapshot was taken at the current block.
  • /context/delegates/{pkh}/current_voting_power - The voting power of a given delegate, as computed from its current stake.
  • - /context/delegates/{pkh}/frozen_deposits_limit - Returns the frozen deposits limit for the given delegate or none if no limit is set.
  • - /context/delegates/{pkh}/stakers - Returns the list of accounts that stake to a given delegate together with their share of the frozen deposits.

Currently return by getDelegates response

  • /context/delegates/{pkh}/staking_denominator - Returns an abstract representation of the total delegated stake.
  • /context/delegates/{pkh}/total_delegated_stake - Returns the sum (in mutez) of all tokens staked by the delegators of a given delegate. This excludes the delegate's own staked tokens.
  • /context/delegates/{pkh}/staking_balance - Returns the total amount of tokens (in mutez) delegated to a given delegate. This includes the balances of all the contracts that delegate to it, but also the balance of the delegate itself, its frozen deposits, and its frozen bonds.
  • /context/delegates/{pkh}/frozen_deposits - Returns the amount (in mutez) frozen as a deposit at the time the staking rights for the current cycle where computed.
  • /context/delegates/{pkh}/current_frozen_deposits - Returns the current amount of the frozen deposits (in mutez). That is the frozen deposits at beginning of cycle plus rewards minus unstaked and slashing. It doesn't count unstaked frozen deposits.
  • /context/delegates/{pkh}/min_delegated_in_current_cycle - Returns the minimum of delegated tez (in mutez) over the current cycle.
  • /context/delegates/{pkh}/full_balance - Returns the full balance (in mutez) of a given delegate, including the frozen deposits and the frozen bonds. It does not include its delegated balance.
  1. Make sure integration tests are created and passing
@Innkst Innkst added this to the v18.1 milestone Sep 27, 2023
@Innkst Innkst modified the milestones: v19.1, v20 Jan 5, 2024
@hui-an-yang hui-an-yang added Paris ai Adaptive Issuance and removed oxford labels Mar 20, 2024
@hui-an-yang hui-an-yang changed the title Support updates and new baker related entrypoints [paris] new adaptive issuance rpc endpoints related to baker Mar 20, 2024
@hui-an-yang hui-an-yang changed the title [paris] new adaptive issuance rpc endpoints related to baker [paris] new adaptive issuance rpc endpoints (baker related) Mar 20, 2024
@hui-an-yang hui-an-yang changed the title [paris] new adaptive issuance rpc endpoints (baker related) [Paris] new adaptive issuance rpc endpoints (baker related) Mar 20, 2024
@hui-an-yang
Copy link
Collaborator

Since taquito is a dapp focused product, we don't look to support above baker oriented rpc for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Adaptive Issuance Paris rpc
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants