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 (staker related) #2676

Closed
5 tasks done
Innkst opened this issue Sep 27, 2023 · 0 comments · Fixed by #2926
Closed
5 tasks done

[Paris] new adaptive issuance rpc endpoints (staker related) #2676

Innkst opened this issue Sep 27, 2023 · 0 comments · Fixed by #2926
Assignees
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 staker related rpc entrypoints to Taquito RPCClient:
  • priority:
  • /context/contracts/{contract_id}/full_balance - Access the full balance of a contract, including frozen bonds and stake.
  • /context/contracts/{contract_id}/staked_balance - Access the staked balance of a contract. Returns None if the contract is originated, or neither delegated nor a delegate.
  • /context/contracts/{contract_id}/unstaked_finalizable_balance - Access the balance of a contract that was requested for an unstake operation, and is no longer frozen, which means it will appear in the spendable balance of the contract after any stake/unstake/finalize_unstake operation. Returns None if the contract is originated.
  • /context/contracts/{contract_id}/unstaked_frozen_balance - Access the balance of a contract that was requested for an unstake operation, but is still frozen for the duration of the slashing period. Returns None if the contract is originated.
  • /context/contracts/{contract_id}/unstake_requests - Access the unstake requests of the contract. The requests that appear in the finalizable field can be finalized, which means that the contract can transfer these (no longer frozen) funds to their spendable balance with a [finalize_unstake] operation call. Returns None if there is no unstake request pending.

  • optional:
  • /context/contracts/<contract_id>/estimated_own_pending_slashed_amount - Returns the estimated own pending slashed amount (in mutez) of a given contract.
  • /context/contracts/{contract_id}/balance_and_frozen_bonds - Access the sum of the spendable balance and frozen bonds of a contract. This sum is part of the contract's stake, and it is exactly the contract's stake if the contract is not a delegate.
  • /context/contracts/{contract_id}/frozen_bonds - Access the frozen bonds of a contract.
  • /context/contracts/{contract_id}/staking_numerator - Returns an abstract representation of the contract's total_delegated_stake.
  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 the ai Adaptive Issuance label Mar 20, 2024
@hui-an-yang hui-an-yang changed the title Support Stake/Unstake/Finalize_unstake ops related entrypoints [paris] new adaptive issuance rpc endpoints related to staking Mar 20, 2024
@hui-an-yang hui-an-yang changed the title [paris] new adaptive issuance rpc endpoints related to staking [paris] new adaptive issuance rpc endpoints (staking related) Mar 20, 2024
@hui-an-yang hui-an-yang added Paris and removed oxford labels Mar 20, 2024
@hui-an-yang hui-an-yang changed the title [paris] new adaptive issuance rpc endpoints (staking related) [Paris] new adaptive issuance rpc endpoints (staking related) Mar 20, 2024
@hui-an-yang hui-an-yang changed the title [Paris] new adaptive issuance rpc endpoints (staking related) [Paris] new adaptive issuance rpc endpoints (staker related) Mar 21, 2024
hui-an-yang added a commit that referenced this issue Apr 18, 2024
@hui-an-yang hui-an-yang linked a pull request Apr 19, 2024 that will close this issue
9 tasks
@hui-an-yang hui-an-yang mentioned this issue Apr 19, 2024
9 tasks
@hui-an-yang hui-an-yang self-assigned this Apr 19, 2024
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: Done
Development

Successfully merging a pull request may close this issue.

2 participants