pub trait CatchupApi {
// Required methods
fn get_account<'life0, 'async_trait>(
&'life0 self,
height: u64,
view: u64,
address: String,
) -> Pin<Box<dyn Future<Output = Result<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<FeeAccount>,
) -> Pin<Box<dyn Future<Output = Result<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<<BlockMerkleTree as MerkleTreeScheme>::MembershipProof>> + 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<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<Vec<Leaf2>>> + 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<Certificate2<SeqTypes>>> + 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<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<RewardAccountV1>,
) -> Pin<Box<dyn Future<Output = Result<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<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<Value>> + 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<LightClientStateUpdateCertificateV2<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn get_account<'life0, 'async_trait>(
&'life0 self,
height: u64,
view: u64,
address: String,
) -> Pin<Box<dyn Future<Output = Result<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<FeeAccount>,
) -> Pin<Box<dyn Future<Output = Result<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<<BlockMerkleTree as MerkleTreeScheme>::MembershipProof>> + 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<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<Vec<Leaf2>>> + 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<Certificate2<SeqTypes>>> + 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<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<RewardAccountV1>,
) -> Pin<Box<dyn Future<Output = Result<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<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<Value>> + 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<LightClientStateUpdateCertificateV2<SeqTypes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".