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

Provided Methods§

source

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

Get all replace requests from a particular vault

source

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

Get all replace requests to a particular vault

Trait Implementations§

source§

impl<Block, AccountId, H256, ReplaceRequest> RuntimeApiInfo for dyn ReplaceApi<Block, AccountId, H256, ReplaceRequest> + 'staticwhere Block: Block,

source§

const ID: [u8; 8] = [43u8, 229u8, 203u8, 2u8, 176u8, 165u8, 110u8, 115u8]

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§