Struct chain_impl_mockchain::testing::builders::TestTxCertBuilder
source · pub struct TestTxCertBuilder {
block0_hash: HeaderId,
fee: LinearFee,
}
Fields§
§block0_hash: HeaderId
§fee: LinearFee
Implementations§
source§impl TestTxCertBuilder
impl TestTxCertBuilder
pub fn new(block0_hash: HeaderId, fee: LinearFee) -> Self
pub fn block0_hash(&self) -> &HeaderId
pub fn fee(&self, certificate: &Certificate) -> Value
fn set_initial_ios<P: Payload>( &self, valid_until: BlockDate, builder: TxBuilderState<SetTtl<P>>, funder: &Wallet, inputs: &[Input], outputs: &[OutputAddress], witness_mode: WitnessMode ) -> TxBuilderState<SetAuthData<P>>
fn fragment( &self, valid_until: BlockDate, cert: &Certificate, keys: Vec<EitherEd25519SecretKey>, inputs: &[Input], outputs: &[OutputAddress], make_witness: WitnessMode, funder: &Wallet ) -> Fragment
pub fn make_transaction<'a, T>( self, valid_until: BlockDate, signers: T, certificate: &Certificate, witness_mode: WitnessMode ) -> Fragmentwhere T: IntoIterator<Item = &'a Wallet>,
pub fn make_transaction_different_signers<'a, T>( self, valid_until: BlockDate, funder: &'a Wallet, signers: T, certificate: &Certificate, witness_mode: WitnessMode ) -> Fragmentwhere T: IntoIterator<Item = &'a Wallet>,
Auto Trait Implementations§
impl RefUnwindSafe for TestTxCertBuilder
impl Send for TestTxCertBuilder
impl Sync for TestTxCertBuilder
impl Unpin for TestTxCertBuilder
impl UnwindSafe for TestTxCertBuilder
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