Module oasis_runtime_sdk::modules::consensus_accounts::state
source · Expand description
State schema.
Structs§
- Undelegation metadata.
Constants§
- Map of active delegations.
- Receipts.
- Map of undelegations.
- An undelegation queue.
Functions§
- Add delegation for a given (from, to) pair.
- Record new undelegation and add to undelegation queue.
- Retrieve delegation metadata for a given (from, to) pair.
- Retrieve all delegation metadata originating from a given address.
- Return the number of delegated shares for each destination escrow account.
- Retrieve all queued undelegations for epochs earlier than or equal to the passed epoch.
- Retrieve all undelegation metadata to a given address.
- Store the given receipt.
- Subtract delegation from a given (from, to) pair.
- Remove the given receipt from storage if it exists and return it, otherwise return
None
. - Remove an existing undelegation and return it.