Struct chain_impl_mockchain::testing::builders::tx_builder::TestTxBuilder
source · pub struct TestTxBuilder {
block0_hash: HeaderId,
witness_mode: WitnessMode,
}
Fields§
§block0_hash: HeaderId
§witness_mode: WitnessMode
Implementations§
source§impl TestTxBuilder
impl TestTxBuilder
pub fn new(block0_hash: HeaderId) -> Self
pub fn witness_mode(self, witness_mode: WitnessMode) -> Self
pub fn move_from_faucet( &self, test_ledger: &mut TestLedger, destination: &Address, value: Value ) -> TestTx
pub fn move_to_outputs_from_faucet_with_validity( &self, test_ledger: &mut TestLedger, validity: Option<BlockDate>, destination: &[Output<Address>] ) -> TestTx
pub fn move_to_outputs_from_faucet( &self, test_ledger: &mut TestLedger, destination: &[Output<Address>] ) -> TestTx
pub fn move_all_funds( &self, test_ledger: &mut TestLedger, source: &AddressDataValue, destination: &AddressDataValue ) -> TestTx
pub fn move_funds( &self, test_ledger: &mut TestLedger, source: &AddressDataValue, destination: &AddressDataValue, value: Value ) -> TestTx
pub fn move_funds_multiple( &self, test_ledger: &mut TestLedger, sources: &[AddressDataValue], destinations: &[AddressDataValue] ) -> TestTx
Auto Trait Implementations§
impl RefUnwindSafe for TestTxBuilder
impl Send for TestTxBuilder
impl Sync for TestTxBuilder
impl Unpin for TestTxBuilder
impl UnwindSafe for TestTxBuilder
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