pub struct ProvenTransactionBuilder { /* private fields */ }Expand description
Builder for a proven transaction.
Implementations§
source§impl ProvenTransactionBuilder
impl ProvenTransactionBuilder
sourcepub fn new(
account_id: AccountId,
initial_account_hash: Digest,
final_account_hash: Digest,
block_ref: Digest,
proof: ExecutionProof,
) -> Self
pub fn new( account_id: AccountId, initial_account_hash: Digest, final_account_hash: Digest, block_ref: Digest, proof: ExecutionProof, ) -> Self
Returns a ProvenTransactionBuilder used to build a ProvenTransaction.
sourcepub fn account_update_details(self, details: AccountUpdateDetails) -> Self
pub fn account_update_details(self, details: AccountUpdateDetails) -> Self
Sets the account’s update details.
sourcepub fn add_input_notes<I, T>(self, notes: I) -> Self
pub fn add_input_notes<I, T>(self, notes: I) -> Self
Add notes consumed by the transaction.
sourcepub fn add_output_notes<T>(self, notes: T) -> Selfwhere
T: IntoIterator<Item = OutputNote>,
pub fn add_output_notes<T>(self, notes: T) -> Selfwhere
T: IntoIterator<Item = OutputNote>,
Add notes produced by the transaction.
sourcepub fn build(self) -> Result<ProvenTransaction, ProvenTransactionError>
pub fn build(self) -> Result<ProvenTransaction, ProvenTransactionError>
Builds the ProvenTransaction.
§Errors
An error will be returned if an on-chain account is used without provided on-chain detail. Or if the account details, i.e. account id and final hash, don’t match the transaction.
Trait Implementations§
source§impl Clone for ProvenTransactionBuilder
impl Clone for ProvenTransactionBuilder
source§fn clone(&self) -> ProvenTransactionBuilder
fn clone(&self) -> ProvenTransactionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProvenTransactionBuilder
impl RefUnwindSafe for ProvenTransactionBuilder
impl Send for ProvenTransactionBuilder
impl Sync for ProvenTransactionBuilder
impl Unpin for ProvenTransactionBuilder
impl UnwindSafe for ProvenTransactionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)