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§
sourcefn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>
fn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>
Add transfer extrinsic to the block.
sourcefn push_storage_change(
&mut self,
key: Vec<u8>,
value: Option<Vec<u8>>,
) -> Result<(), Error>
fn push_storage_change( &mut self, key: Vec<u8>, value: Option<Vec<u8>>, ) -> Result<(), Error>
Add unsigned storage change extrinsic to the block.
sourcefn push_deposit_log_digest_item(&mut self, log: DigestItem) -> Result<(), Error>
fn push_deposit_log_digest_item(&mut self, log: DigestItem) -> Result<(), Error>
Adds an extrinsic which pushes DigestItem to header’s log