referrerpolicy=no-referrer-when-downgrade
pub trait BlockBuilderExt {
    // Required methods
    fn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>;
    fn push_storage_change(
        &mut self,
        key: Vec<u8>,
        value: Option<Vec<u8>>,
    ) -> Result<(), Error>;
    fn push_deposit_log_digest_item(
        &mut self,
        log: DigestItem,
    ) -> Result<(), Error>;
}
Expand description

Extension trait for test block builder.

Required Methods§

source

fn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>

Add transfer extrinsic to the block.

source

fn push_storage_change( &mut self, key: Vec<u8>, value: Option<Vec<u8>>, ) -> Result<(), Error>

Add unsigned storage change extrinsic to the block.

source

fn push_deposit_log_digest_item(&mut self, log: DigestItem) -> Result<(), Error>

Adds an extrinsic which pushes DigestItem to header’s log

Implementations on Foreign Types§

source§

impl<'a, A> BlockBuilderExt for BlockBuilder<'a, Block, A>
where A: ProvideRuntimeApi<Block> + CallApiAt<Block> + 'a, A::Api: BlockBuilderApi<Block> + ApiExt<Block>,

source§

fn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>

source§

fn push_storage_change( &mut self, key: Vec<u8>, value: Option<Vec<u8>>, ) -> Result<(), Error>

source§

fn push_deposit_log_digest_item(&mut self, log: DigestItem) -> Result<(), Error>

Implementors§