pub struct Chain { /* private fields */ }Expand description
Block chain under test
Implementations§
Source§impl Chain
impl Chain
pub fn new() -> Chain
pub fn push(&self, _transaction: &SignedTransaction) -> TransactionTrace
pub fn start_block(&self)
Source§impl Chain
impl Chain
Sourcepub fn fill_tapos(&self, trx: &mut Transaction, expire_seconds: u32)
pub fn fill_tapos(&self, trx: &mut Transaction, expire_seconds: u32)
Fill tapos fields
expire_seconds is relative to the most-recent block.
Sourcepub fn propose<W: ToServiceSchema + ServiceWrapper>(
&self,
proposer: AccountNumber,
sender: AccountNumber,
) -> <W as ServiceWrapper>::Actions<ProposalPusher<'_>>
pub fn propose<W: ToServiceSchema + ServiceWrapper>( &self, proposer: AccountNumber, sender: AccountNumber, ) -> <W as ServiceWrapper>::Actions<ProposalPusher<'_>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Chain
impl !RefUnwindSafe for Chain
impl !Sync for Chain
impl Send for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more