pub trait EscrowApi<Block: BlockT, AccountId, BlockNumber, Balance>: Core<Block>where
    AccountId: Codec,
    BlockNumber: Codec,
    Balance: Codec,{
    // Provided methods
    fn balance_at(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account_id: AccountId,
        height: Option<BlockNumber>
    ) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
    fn free_stakable(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account_id: AccountId
    ) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
    fn total_supply(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        height: Option<BlockNumber>
    ) -> Result<BalanceWrapper<Balance>, ApiError> { ... }
}

Provided Methods§

source

fn balance_at( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId, height: Option<BlockNumber> ) -> Result<BalanceWrapper<Balance>, ApiError>

Get a given user’s escrowed balance

source

fn free_stakable( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId ) -> Result<BalanceWrapper<Balance>, ApiError>

amount of kint/intr that use can lock, taking into consideration the Limits.

source

fn total_supply( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, height: Option<BlockNumber> ) -> Result<BalanceWrapper<Balance>, ApiError>

Get the total voting supply in the system

Trait Implementations§

source§

impl<Block: BlockT, AccountId, BlockNumber, Balance> RuntimeApiInfo for dyn EscrowApi<Block, AccountId, BlockNumber, Balance>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§