referrerpolicy=no-referrer-when-downgrade
pallet_broker::runtime_api

Trait BrokerApi

Source
pub trait BrokerApi<Block: BlockT, Balance>: Core<Block>
where Balance: Codec,
{ // Provided method fn sale_price( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Result<Balance, DispatchError>, ApiError> { ... } }

Provided Methods§

Source

fn sale_price( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Result<Balance, DispatchError>, ApiError>

If there is an ongoing sale returns the current price of a core.

Trait Implementations§

Source§

impl<Block: BlockT, Balance> RuntimeApiInfo for dyn BrokerApi<Block, Balance>

Source§

const ID: [u8; 8] = _

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§

impl<__SrApiBlock__: BlockT, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> BrokerApi<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,

impl<__SrApiBlock__: BlockT, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> BrokerApi<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,