pub trait VestedRewardsApi<Block: BlockT, AccountId, AssetId, Balance, CrowdloanTag>: Core<Block>where
    AccountId: Codec,
    AssetId: Codec,
    Balance: Codec + MaybeFromStr + MaybeDisplay,
    CrowdloanTag: Codec,{
    // Provided methods
    fn crowdloan_claimable(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        tag: CrowdloanTag,
        account_id: AccountId,
        asset_id: AssetId
    ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... }
    fn crowdloan_claimable_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        tag: CrowdloanTag,
        account_id: AccountId,
        asset_id: AssetId
    ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... }
    fn crowdloan_lease(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        tag: CrowdloanTag
    ) -> Result<Option<CrowdloanLease>, ApiError> { ... }
    fn crowdloan_lease_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        tag: CrowdloanTag
    ) -> Result<Option<CrowdloanLease>, ApiError> { ... }
    fn crowdloan_claimable_before_version_2(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account_id: AccountId,
        asset_id: AssetId
    ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... }
    fn crowdloan_claimable_before_version_2_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account_id: AccountId,
        asset_id: AssetId
    ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... }
    fn crowdloan_lease_before_version_2(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<CrowdloanLease, ApiError> { ... }
    fn crowdloan_lease_before_version_2_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<CrowdloanLease, ApiError> { ... }
}

Provided Methods§

source

fn crowdloan_claimable( &self, __runtime_api_at_param__: &BlockId<Block>, tag: CrowdloanTag, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn crowdloan_claimable_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, tag: CrowdloanTag, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn crowdloan_lease( &self, __runtime_api_at_param__: &BlockId<Block>, tag: CrowdloanTag ) -> Result<Option<CrowdloanLease>, ApiError>

source

fn crowdloan_lease_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, tag: CrowdloanTag ) -> Result<Option<CrowdloanLease>, ApiError>

source

fn crowdloan_claimable_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

👎Deprecated
source

fn crowdloan_claimable_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

👎Deprecated
source

fn crowdloan_lease_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<CrowdloanLease, ApiError>

👎Deprecated
source

fn crowdloan_lease_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<CrowdloanLease, ApiError>

👎Deprecated

Trait Implementations§

source§

impl<Block: BlockT, AccountId, AssetId, Balance, CrowdloanTag> RuntimeApiInfo for dyn VestedRewardsApi<Block, AccountId, AssetId, Balance, CrowdloanTag>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§