pub trait ReplaceApi<Block: BlockT, AccountId, H256, ReplaceRequest>: Core<Block>where
    AccountId: Codec,
    H256: Codec,
    ReplaceRequest: Codec,{
    // Provided methods
    fn get_old_vault_replace_requests(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        vault_id: AccountId
    ) -> Result<Vec<H256>, ApiError> { ... }
    fn get_new_vault_replace_requests(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        vault_id: AccountId
    ) -> Result<Vec<H256>, ApiError> { ... }
}

Provided Methods§

source

fn get_old_vault_replace_requests( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, vault_id: AccountId ) -> Result<Vec<H256>, ApiError>

Get all replace requests from a particular vault

source

fn get_new_vault_replace_requests( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, vault_id: AccountId ) -> Result<Vec<H256>, ApiError>

Get all replace requests to a particular vault

Trait Implementations§

source§

impl<Block: BlockT, AccountId, H256, ReplaceRequest> RuntimeApiInfo for dyn ReplaceApi<Block, AccountId, H256, ReplaceRequest>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§