Trait ver_api::VerApi

source ·
pub trait VerApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn get_signer(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        tx: <Block as BlockT>::Extrinsic
    ) -> Result<Option<(AccountId32, u32)>, ApiError> { ... }
    fn is_storage_migration_scheduled(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<bool, ApiError> { ... }
    fn store_seed(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        seed: H256
    ) -> Result<(), ApiError> { ... }
    fn pop_txs(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        count: u64
    ) -> Result<Vec<Vec<u8>>, ApiError> { ... }
    fn get_previous_block_txs(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<Vec<Vec<u8>>, ApiError> { ... }
    fn can_enqueue_txs(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<bool, ApiError> { ... }
    fn create_enqueue_txs_inherent(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        txs: Vec<Block::Extrinsic>
    ) -> Result<Block::Extrinsic, ApiError> { ... }
    fn start_prevalidation(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<(), ApiError> { ... }
    fn account_extrinsic_dispatch_weight(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        consumed: ConsumedWeight,
        tx: <Block as BlockT>::Extrinsic
    ) -> Result<Result<ConsumedWeight, ()>, ApiError> { ... }
}
Expand description

The VerApi api trait for fetching information about extrinsic author and nonce

Provided Methods§

source

fn get_signer( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, tx: <Block as BlockT>::Extrinsic ) -> Result<Option<(AccountId32, u32)>, ApiError>

Provides information about extrinsic signer and nonce

source

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

Checks if storage migration is scheuled

source

fn store_seed( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, seed: H256 ) -> Result<(), ApiError>

stores shuffling seed for current block & shuffles previous block extrinsics if any enqueued

source

fn pop_txs( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, count: u64 ) -> Result<Vec<Vec<u8>>, ApiError>

source

fn get_previous_block_txs( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<Vec<u8>>, ApiError>

source

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

source

fn create_enqueue_txs_inherent( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, txs: Vec<Block::Extrinsic> ) -> Result<Block::Extrinsic, ApiError>

source

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

source

fn account_extrinsic_dispatch_weight( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, consumed: ConsumedWeight, tx: <Block as BlockT>::Extrinsic ) -> Result<Result<ConsumedWeight, ()>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn VerApi<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§