Struct polymesh_api::polymesh::api::checkpoint::CheckpointPagedQueryApi
source · pub struct CheckpointPagedQueryApi<'api> { /* private fields */ }
Implementations§
source§impl<'api> CheckpointPagedQueryApi<'api>
impl<'api> CheckpointPagedQueryApi<'api>
sourcepub fn total_supply(&self, key_0: Ticker) -> StoragePaged<CheckpointId, u128>
pub fn total_supply(&self, key_0: Ticker) -> StoragePaged<CheckpointId, u128>
Total supply of the token at the checkpoint.
(ticker, checkpointId) -> total supply at given checkpoint
sourcepub fn balance(
&self,
key_0: (Ticker, CheckpointId)
) -> StoragePaged<IdentityId, u128>
pub fn balance( &self, key_0: (Ticker, CheckpointId) ) -> StoragePaged<IdentityId, u128>
Balance of a DID at a checkpoint.
(ticker, did, checkpoint ID) -> Balance of a DID at a checkpoint
sourcepub fn checkpoint_id_sequence(&self) -> StoragePaged<Ticker, CheckpointId>
pub fn checkpoint_id_sequence(&self) -> StoragePaged<Ticker, CheckpointId>
Checkpoints ID generator sequence. ID of first checkpoint is 1 instead of 0.
(ticker) -> no. of checkpoints
sourcepub fn balance_updates(
&self,
key_0: Ticker
) -> StoragePaged<IdentityId, Vec<CheckpointId>>
pub fn balance_updates( &self, key_0: Ticker ) -> StoragePaged<IdentityId, Vec<CheckpointId>>
Checkpoints where a DID’s balance was updated. (ticker, did) -> [checkpoint ID where user balance changed]
sourcepub fn timestamps(&self, key_0: Ticker) -> StoragePaged<CheckpointId, u64>
pub fn timestamps(&self, key_0: Ticker) -> StoragePaged<CheckpointId, u64>
Checkpoint timestamps.
Every schedule-originated checkpoint maps its ID to its due time. Every checkpoint manually created maps its ID to the time of recording.
(ticker) -> (checkpoint ID) -> checkpoint timestamp
sourcepub fn schedule_id_sequence(&self) -> StoragePaged<Ticker, ScheduleId>
pub fn schedule_id_sequence(&self) -> StoragePaged<Ticker, ScheduleId>
Checkpoint schedule ID sequence for tickers.
(ticker) -> schedule ID
sourcepub fn cached_next_checkpoints(&self) -> StoragePaged<Ticker, NextCheckpoints>
pub fn cached_next_checkpoints(&self) -> StoragePaged<Ticker, NextCheckpoints>
Cached next checkpoint for each schedule.
This is used to quickly find the next checkpoint from a ticker’s schedules.
(ticker) -> next checkpoints
sourcepub fn scheduled_checkpoints(
&self,
key_0: Ticker
) -> StoragePaged<ScheduleId, ScheduleCheckpoints>
pub fn scheduled_checkpoints( &self, key_0: Ticker ) -> StoragePaged<ScheduleId, ScheduleCheckpoints>
Scheduled checkpoints.
(ticker, schedule ID) -> schedule checkpoints
sourcepub fn schedule_ref_count(&self, key_0: Ticker) -> StoragePaged<ScheduleId, u32>
pub fn schedule_ref_count(&self, key_0: Ticker) -> StoragePaged<ScheduleId, u32>
How many “strong” references are there to a given ScheduleId
?
The presence of a “strong” reference, in the sense of Rc<T>
,
entails that the referenced schedule cannot be removed.
Thus, as long as strong_ref_count(schedule_id) > 0
,
remove_schedule(schedule_id)
will error.
(ticker, schedule ID) -> strong ref count
sourcepub fn schedule_points(
&self,
key_0: Ticker
) -> StoragePaged<ScheduleId, Vec<CheckpointId>>
pub fn schedule_points( &self, key_0: Ticker ) -> StoragePaged<ScheduleId, Vec<CheckpointId>>
All the checkpoints a given schedule originated.
(ticker, schedule ID) -> [checkpoint ID]
Trait Implementations§
source§impl<'api> Clone for CheckpointPagedQueryApi<'api>
impl<'api> Clone for CheckpointPagedQueryApi<'api>
source§fn clone(&self) -> CheckpointPagedQueryApi<'api>
fn clone(&self) -> CheckpointPagedQueryApi<'api>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'api> !RefUnwindSafe for CheckpointPagedQueryApi<'api>
impl<'api> Send for CheckpointPagedQueryApi<'api>
impl<'api> Sync for CheckpointPagedQueryApi<'api>
impl<'api> Unpin for CheckpointPagedQueryApi<'api>
impl<'api> !UnwindSafe for CheckpointPagedQueryApi<'api>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.