Trait pallet_broker::runtime_api::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§
sourcefn sale_price(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Result<Balance, DispatchError>, ApiError>
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.