pub trait RedeemRuntimeApi<Block, VaultId, Balance, AccountId, H256, RedeemRequest>: Core<Block>where
    Block: Block,
    VaultId: Codec,
    Balance: Codec,
    AccountId: Codec,
    H256: Codec,
    RedeemRequest: Codec,{
    // Provided methods
    fn get_redeem_requests(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        account_id: AccountId
    ) -> Result<Vec<H256, Global>, ApiError> { ... }
    fn get_vault_redeem_requests(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        vault_id: AccountId
    ) -> Result<Vec<H256, Global>, ApiError> { ... }
    fn get_premium_redeem_vaults(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<Result<Vec<(VaultId, BalanceWrapper<Balance>), Global>, DispatchError>, ApiError> { ... }
}

Provided Methods§

source

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

Get all redeem requests for a particular account

source

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

Get all redeem requests for a particular vault

source

fn get_premium_redeem_vaults( &self, __runtime_api_at_param__: <Block as Block>::Hash ) -> Result<Result<Vec<(VaultId, BalanceWrapper<Balance>), Global>, DispatchError>, ApiError>

Get all vaults below the premium redeem threshold, ordered in descending order of this amount

Trait Implementations§

source§

impl<Block, VaultId, Balance, AccountId, H256, RedeemRequest> RuntimeApiInfo for dyn RedeemApi<Block, VaultId, Balance, AccountId, H256, RedeemRequest> + 'staticwhere Block: Block,

source§

const ID: [u8; 8] = [105u8, 226u8, 225u8, 170u8, 66u8, 31u8, 79u8, 176u8]

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§