pub trait OracleRuntimeApi<Block, Balance, CurrencyId>: Core<Block>where
    Block: Block,
    Balance: Codec,
    CurrencyId: Codec,{
    // Provided methods
    fn wrapped_to_collateral(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        amount: BalanceWrapper<Balance>,
        currency_id: CurrencyId
    ) -> Result<Result<BalanceWrapper<Balance>, DispatchError>, ApiError> { ... }
    fn collateral_to_wrapped(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        amount: BalanceWrapper<Balance>,
        currency_id: CurrencyId
    ) -> Result<Result<BalanceWrapper<Balance>, DispatchError>, ApiError> { ... }
}

Provided Methods§

source

fn wrapped_to_collateral( &self, __runtime_api_at_param__: <Block as Block>::Hash, amount: BalanceWrapper<Balance>, currency_id: CurrencyId ) -> Result<Result<BalanceWrapper<Balance>, DispatchError>, ApiError>

source

fn collateral_to_wrapped( &self, __runtime_api_at_param__: <Block as Block>::Hash, amount: BalanceWrapper<Balance>, currency_id: CurrencyId ) -> Result<Result<BalanceWrapper<Balance>, DispatchError>, ApiError>

Trait Implementations§

source§

impl<Block, Balance, CurrencyId> RuntimeApiInfo for dyn OracleApi<Block, Balance, CurrencyId> + 'staticwhere Block: Block,

source§

const ID: [u8; 8] = [110u8, 249u8, 83u8, 0u8, 75u8, 163u8, 14u8, 89u8]

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§