referrerpolicy=no-referrer-when-downgrade

Trait pallet_asset_rewards::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§