Struct jormungandr_automation::jcli::TransactionBuilder
source · pub struct TransactionBuilder {
staging_dir: TempDir,
jcli: JCli,
genesis_hash: Hash,
}
Fields§
§staging_dir: TempDir
§jcli: JCli
§genesis_hash: Hash
Implementations§
source§impl TransactionBuilder
impl TransactionBuilder
pub fn new(jcli: JCli, genesis_hash: Hash) -> Self
fn staging_file(&self) -> ChildPath
pub fn staging_dir(&self) -> &TempDir
pub fn staging_file_path(&self) -> PathBuf
pub fn build_transaction_from_utxo( self, utxo: &UTxOInfo, input_amount: Value, witness_data: WitnessData, output_amount: Value, receiver_address: &Address, valid_until: BlockDate ) -> String
pub fn new_transaction(&mut self) -> &mut Self
pub fn add_input( &mut self, tx_id: &Hash, tx_index: u8, amount: &str ) -> &mut Self
pub fn add_input_expect_fail( &mut self, tx_id: &Hash, tx_index: u8, amount: &str, expected_part: &str ) -> &mut Self
pub fn add_input_from_utxo_with_value( &mut self, utxo: &UTxOInfo, amount: Value ) -> &mut Self
pub fn add_input_from_utxo(&mut self, utxo: &UTxOInfo) -> &mut Self
pub fn add_certificate(&mut self, certificate: &str) -> &mut Self
pub fn add_account(&mut self, account_addr: &str, amount: &Value) -> &mut Self
pub fn add_account_expect_fail( &mut self, account_addr: &str, amount: &str, expected_msg: &str ) -> &mut Self
pub fn add_account_from_legacy(&mut self, fund: &LegacyUTxO) -> &mut Self
pub fn add_output(&mut self, addr: &str, amount: Value) -> &mut Self
pub fn set_expiry_date(&mut self, valid_until: BlockDate) -> &mut Self
pub fn finalize(&mut self) -> &mut Self
pub fn finalize_with_fee( &mut self, address: &str, linear_fee: &LinearFee ) -> &mut Self
pub fn finalize_expect_fail(&self, expected_part: &str)
pub fn add_auth<P: AsRef<Path>>(&mut self, key: P) -> &mut Self
pub fn make_and_add_witness_default( &mut self, witness_data: WitnessData ) -> &mut Self
pub fn seal_with_witness_data(&mut self, witness_data: WitnessData) -> &mut Self
pub fn seal_with_witness(&mut self, witness: &Witness) -> &mut Self
pub fn make_witness(&mut self, witness: &Witness) -> &mut Self
pub fn make_witness_expect_fail( &mut self, witness: &Witness, expected_msg: &str ) -> &mut Self
pub fn create_witness(&self, witness_data: WitnessData) -> Witness
pub fn create_witness_default( &self, addr_type: WitnessType, spending_counter: Option<SpendingCounter> ) -> Witness
pub fn add_witness_expect_fail( &mut self, witness: &Witness, expected_part: &str )
pub fn add_witness(&mut self, witness: &Witness) -> &mut Self
pub fn seal(&mut self) -> &mut Self
pub fn to_message(&self) -> String
pub fn to_message_expect_fail(&self, expected_msg: &str)
pub fn transaction_id(&self) -> Hash
pub fn info(&self, format: &str) -> String
pub fn fragment_id(&self) -> Hash
Auto Trait Implementations§
impl RefUnwindSafe for TransactionBuilder
impl Send for TransactionBuilder
impl Sync for TransactionBuilder
impl Unpin for TransactionBuilder
impl UnwindSafe for TransactionBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request