referrerpolicy=no-referrer-when-downgrade
pallet_asset_rewards

Trait AssetRewards

Source
pub trait AssetRewards<Block: BlockT, Cost: MaybeDisplay + Codec>: Core<Block> {
    // Provided method
    fn pool_creation_cost(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Cost, ApiError> { ... }
}
Expand description

The runtime API for the asset rewards pallet.

Provided Methods§

Source

fn pool_creation_cost( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Cost, ApiError>

Get the cost of creating a pool.

This is especially useful when the cost is dynamic.

Trait Implementations§

Source§

impl<Block: BlockT, Cost: MaybeDisplay + Codec> RuntimeApiInfo for dyn AssetRewards<Block, Cost>

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> AssetRewards<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,

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

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