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> { ... }
}
The identifier of the runtime api.
The version of the runtime api.