Struct jormungandr_automation::jcli::api::transaction::Transaction
source · pub struct Transaction {
command: TransactionCommand,
}
Fields§
§command: TransactionCommand
Implementations§
source§impl Transaction
impl Transaction
pub fn new(command: TransactionCommand) -> Self
pub fn new_transaction<P: AsRef<Path>>(self, staging_file: P)
pub fn add_input<P: AsRef<Path>>( self, tx_id: &Hash, tx_index: u8, amount: &str, staging_file: P )
pub fn add_input_expect_fail<P: AsRef<Path>>( self, tx_id: &Hash, tx_index: u8, amount: &str, staging_file: P, expected_part: &str )
pub fn add_input_from_utxo_with_value<P: AsRef<Path>>( self, utxo: &UTxOInfo, amount: Value, staging_file: P )
pub fn add_input_from_utxo<P: AsRef<Path>>( self, utxo: &UTxOInfo, staging_file: P )
pub fn add_certificate<S: Into<String>, P: AsRef<Path>>( self, certificate: S, staging_file: P )
pub fn add_account<P: AsRef<Path>>( self, account_addr: &str, amount: &str, staging_file: P )
pub fn add_account_expect_fail<P: AsRef<Path>>( self, account_addr: &str, amount: &str, staging_file: P, expected_msg: &str )
pub fn add_account_from_legacy<P: AsRef<Path>>( self, fund: &LegacyUTxO, staging_file: P )
pub fn add_output<P: AsRef<Path>>( self, addr: &str, amount: Value, staging_file: P )
pub fn finalize<P: AsRef<Path>>(self, staging_file: P)
pub fn finalize_with_fee<P: AsRef<Path>>( self, address: &str, linear_fee: &LinearFee, staging_file: P )
pub fn finalize_expect_fail<P: AsRef<Path>>( self, staging_file: P, expected_part: &str )
pub fn auth<P: AsRef<Path>, Q: AsRef<Path>>(self, key: P, staging_file: Q)
pub fn make_witness(self, witness: &Witness)
pub fn make_witness_expect_fail(self, witness: &Witness, expected_msg: &str)
pub fn create_witness<P: AsRef<Path>>( self, staging_dir: &TempDir, genesis_hash: Hash, witness_data: WitnessData, staging_file: P ) -> Witness
pub fn add_witness_expect_fail<P: AsRef<Path>>( self, witness: &Witness, staging_file: P, expected_part: &str )
pub fn add_witness<P: AsRef<Path>>(self, witness: &Witness, staging_file: P)
pub fn seal<P: AsRef<Path>>(self, staging_file: P)
pub fn make_transaction( self, host: String, sender: Address, receiver: Option<Address>, value: Value, block0_hash: String, valid_until: BlockDate, secret: impl AsRef<Path>, staging_file: impl AsRef<Path>, post: bool )
pub fn convert_to_message<P: AsRef<Path>>(self, staging_file: P) -> String
pub fn convert_to_message_expect_fail<P: AsRef<Path>>( self, staging_file: P, expected_msg: &str )
pub fn id<P: AsRef<Path>>(self, staging_file: P) -> Hash
pub fn info<P: AsRef<Path>>(self, format: &str, staging_file: P) -> String
pub fn fragment_id<P: AsRef<Path>>(self, staging_file: P) -> Hash
pub fn set_expiry_date<P: AsRef<Path>>( self, valid_until: BlockDate, staging_file: P )
Auto Trait Implementations§
impl !RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
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