Skip to main content

CatchupApi

Trait CatchupApi 

Source
pub trait CatchupApi {
Show 25 associated items type FeeAccount: DeserializeOwned + Send + Sync + 'static; type RewardAccountV1: DeserializeOwned + Send + Sync + 'static; type RewardAccountV2: DeserializeOwned + Send + Sync + 'static; type AccountQueryData: Serialize + Send + Sync + 'static; type FeeMerkleTree: Serialize + Send + Sync + 'static; type BlocksFrontier: Serialize + Send + Sync + 'static; type ChainConfig: Serialize + Send + Sync + 'static; type LeafChain: Serialize + Send + Sync + 'static; type Cert2: Serialize + Send + Sync + 'static; type RewardAccountQueryDataV1: Serialize + Send + Sync + 'static; type RewardMerkleTreeV1: Serialize + Send + Sync + 'static; type RewardAccountQueryDataV2: Serialize + Send + Sync + 'static; type RewardMerkleTreeV2Data: Serialize + Send + Sync + 'static; type StateCert: Serialize + Send + Sync + 'static; // Required methods fn get_account<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::AccountQueryData>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_accounts<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, accounts: Vec<Self::FeeAccount>, ) -> Pin<Box<dyn Future<Output = Result<Self::FeeMerkleTree>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_blocks_frontier<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::BlocksFrontier>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_chain_config<'life0, 'async_trait>( &'life0 self, commitment: String, ) -> Pin<Box<dyn Future<Output = Result<Self::ChainConfig>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_leaf_chain<'life0, 'async_trait>( &'life0 self, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::LeafChain>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_cert2<'life0, 'async_trait>( &'life0 self, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::Cert2>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_reward_account_v1<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardAccountQueryDataV1>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_reward_accounts_v1<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, accounts: Vec<Self::RewardAccountV1>, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardMerkleTreeV1>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_reward_account_v2<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardAccountQueryDataV2>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_reward_merkle_tree_v2<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardMerkleTreeV2Data>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_state_cert<'life0, 'async_trait>( &'life0 self, epoch: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::StateCert>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn get_account<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::AccountQueryData>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_accounts<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, accounts: Vec<Self::FeeAccount>, ) -> Pin<Box<dyn Future<Output = Result<Self::FeeMerkleTree>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_blocks_frontier<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::BlocksFrontier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_chain_config<'life0, 'async_trait>( &'life0 self, commitment: String, ) -> Pin<Box<dyn Future<Output = Result<Self::ChainConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_leaf_chain<'life0, 'async_trait>( &'life0 self, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::LeafChain>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_cert2<'life0, 'async_trait>( &'life0 self, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::Cert2>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_reward_account_v1<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardAccountQueryDataV1>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_reward_accounts_v1<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, accounts: Vec<Self::RewardAccountV1>, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardMerkleTreeV1>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_reward_account_v2<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, address: String, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardAccountQueryDataV2>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_reward_merkle_tree_v2<'life0, 'async_trait>( &'life0 self, height: u64, view: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::RewardMerkleTreeV2Data>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_state_cert<'life0, 'async_trait>( &'life0 self, epoch: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::StateCert>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§