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

Trait Implementations§

source§

impl<Block: BlockT, Balance, CurrencyId> RuntimeApiInfo for dyn OracleApi<Block, Balance, CurrencyId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§