Skip to main content

CatchupService

Trait CatchupService 

Source
pub trait CatchupService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_catchup_fee_account<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupFeeAccountRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<FeeAccountProofResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_fee_accounts<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupFeeAccountsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<FeeMerkleTreeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_blocks_frontier<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupBlocksFrontierRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MerklePathResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_chain_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupChainConfigRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CatchupChainConfigResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_leaf_chain<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupLeafChainRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CatchupLeafChainResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_cert2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupCert2Request>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Cert2Response>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_reward_account<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupRewardAccountRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RewardAccountProofResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_reward_accounts<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupRewardAccountsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RewardMerkleTreeV1Response>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_reward_account_v2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupRewardAccountV2Request>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RewardAccountProofResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_reward_merkle_tree_v2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupRewardMerkleTreeV2Request>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RewardMerkleTreeV2Response>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_catchup_state_cert<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCatchupStateCertRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StateCertV2Response>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with CatchupServiceServer.

Required Methods§

Source

fn get_catchup_fee_account<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupFeeAccountRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FeeAccountProofResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Prove one fee account’s balance at a height and view

Source

fn get_catchup_fee_accounts<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupFeeAccountsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FeeMerkleTreeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the fee merkle tree holding the given accounts at a height and view

Source

fn get_catchup_blocks_frontier<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupBlocksFrontierRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<MerklePathResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the block merkle tree frontier at a height and view

Source

fn get_catchup_chain_config<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupChainConfigRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CatchupChainConfigResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolve a chain configuration by its commitment

Source

fn get_catchup_leaf_chain<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupLeafChainRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CatchupLeafChainResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the leaves from the given height up to the next decide

Source

fn get_catchup_cert2<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupCert2Request>, ) -> Pin<Box<dyn Future<Output = Result<Response<Cert2Response>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the phase-2 certificate finalizing a height

Source

fn get_catchup_reward_account<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupRewardAccountRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RewardAccountProofResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Prove one reward account’s balance in the v1 tree. An account with no entry gets an absence proof and a zero balance

Source

fn get_catchup_reward_accounts<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupRewardAccountsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RewardMerkleTreeV1Response>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the v1 reward merkle tree holding the given accounts

Source

fn get_catchup_reward_account_v2<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupRewardAccountV2Request>, ) -> Pin<Box<dyn Future<Output = Result<Response<RewardAccountProofResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Prove one reward account’s balance in the v2 tree. An account with no entry gets an absence proof and a zero balance

Source

fn get_catchup_reward_merkle_tree_v2<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupRewardMerkleTreeV2Request>, ) -> Pin<Box<dyn Future<Output = Result<Response<RewardMerkleTreeV2Response>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the whole v2 reward merkle tree at a height and view, in the serialized form the merklized-state reward tree route serves

Source

fn get_catchup_state_cert<'life0, 'async_trait>( &'life0 self, request: Request<GetCatchupStateCertRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<StateCertV2Response>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the certificate closing an epoch

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§