pub trait PoolFeesApi<Block: BlockT, PoolId, FeeId, AccountId, Balance, Rate>: Core<Block>
where PoolId: Codec, FeeId: Codec, AccountId: Codec, Balance: Codec, Rate: Codec,
{ // Provided method fn list_fees( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, pool_id: PoolId ) -> Result<Option<PoolFeesList<FeeId, AccountId, Balance, Rate>>, ApiError> { ... } }
Expand description

Runtime for pallet-pool-fees.

Note: The runtime api is pallet specific, while the RPC methods are more focused on domain-specific logic

Provided Methods§

source

fn list_fees( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, pool_id: PoolId ) -> Result<Option<PoolFeesList<FeeId, AccountId, Balance, Rate>>, ApiError>

Simulate update of active fees and returns as list divided by buckets

Trait Implementations§

source§

impl<Block: BlockT, PoolId, FeeId, AccountId, Balance, Rate> RuntimeApiInfo for dyn PoolFeesApi<Block, PoolId, FeeId, AccountId, Balance, Rate>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§