Expand description
State schema.
Structs§
- Undelegation
- Undelegation metadata.
Constants§
- DELEGATIONS
- Map of active delegations.
- RECEIPTS
- Receipts.
- UNDELEGATIONS
- Map of undelegations.
- UNDELEGATION_
QUEUE - An undelegation queue.
Functions§
- add_
delegation - Add delegation for a given (from, to) pair.
- add_
undelegation - Record new undelegation and add to undelegation queue.
- get_
delegation - Retrieve delegation metadata for a given (from, to) pair.
- get_
delegations - Retrieve all delegation metadata originating from a given address.
- get_
delegations_ by_ destination - Return the number of delegated shares for each destination escrow account.
- get_
queued_ undelegations - Retrieve all queued undelegations for epochs earlier than or equal to the passed epoch.
- get_
undelegations - Retrieve all undelegation metadata to a given address.
- set_
receipt - Store the given receipt.
- sub_
delegation - Subtract delegation from a given (from, to) pair.
- take_
receipt - Remove the given receipt from storage if it exists and return it, otherwise return
None
. - take_
undelegation - Remove an existing undelegation and return it.