Struct jormungandr_automation::jcli::command::transaction::TransactionCommand
source · pub struct TransactionCommand {
command: Command,
}
Fields§
§command: Command
Implementations§
source§impl TransactionCommand
impl TransactionCommand
pub fn new(command: Command) -> Self
pub fn new_transaction<P: AsRef<Path>>(self, staging_file: P) -> Self
pub fn add_input<P: AsRef<Path>>( self, tx_id: &str, tx_index: u8, amount: &str, staging_file: P ) -> Self
pub fn add_account<P: AsRef<Path>>( self, account_addr: &str, amount: &str, staging_file: P ) -> Self
pub fn add_certificate<S: Into<String>, P: AsRef<Path>>( self, certificate: S, staging_file: P ) -> Self
pub fn add_output<P: AsRef<Path>>( self, addr: &str, amount: &str, staging_file: P ) -> Self
pub fn finalize<P: AsRef<Path>>(self, staging_file: P) -> Self
pub fn finalize_with_fee<P: AsRef<Path>>( self, address: &str, linear_fees: &LinearFee, staging_file: P ) -> Self
pub fn make_witness<P: AsRef<Path>, Q: AsRef<Path>>( self, block0_hash: &str, tx_id: &str, addr_type: WitnessType, account_spending_counter: Option<SpendingCounter>, witness_file: P, witness_key: Q ) -> Self
pub fn add_witness<P: AsRef<Path>, Q: AsRef<Path>>( self, witness_file: P, staging_file: Q ) -> Self
pub fn seal<P: AsRef<Path>>(self, staging_file: P) -> Self
pub fn auth<P: AsRef<Path>, Q: AsRef<Path>>( self, signing_key: P, staging_file: Q ) -> Self
pub fn to_message<P: AsRef<Path>>(self, staging_file: P) -> Self
pub fn id<P: AsRef<Path>>(self, staging_file: P) -> Self
pub fn info<P: AsRef<Path>>(self, format: &str, staging_file: P) -> Self
pub fn make_transaction( self, host: String, sender: Address, receiver: Option<Address>, value: Value, block0_hash: String, expiry_date: BlockDate, secret: impl AsRef<Path>, staging_file: impl AsRef<Path>, post: bool ) -> Self
pub fn set_expiry_date<P: AsRef<Path>>( self, expiry_date: &str, staging_file: P ) -> Self
pub fn build(self) -> Command
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TransactionCommand
impl Send for TransactionCommand
impl Sync for TransactionCommand
impl Unpin for TransactionCommand
impl !UnwindSafe for TransactionCommand
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