pub struct TransactionFactory { /* private fields */ }

Implementations§

source§

impl TransactionFactory

source

pub fn new(chain_id: ChainId) -> Self

source

pub fn with_max_gas_amount(self, max_gas_amount: u64) -> Self

source

pub fn with_gas_unit_price(self, gas_unit_price: u64) -> Self

source

pub fn with_gas_currency(self, gas_currency: Currency) -> Self

source

pub fn with_transaction_expiration_time( self, transaction_expiration_time: u64 ) -> Self

source

pub fn with_chain_id(self, chain_id: ChainId) -> Self

source

pub fn with_diem_version(self, diem_version: u64) -> Self

source

pub fn payload(&self, payload: TransactionPayload) -> TransactionBuilder

source

pub fn add_currency_to_account(&self, currency: Currency) -> TransactionBuilder

source

pub fn add_recovery_rotation_capability( &self, recovery_address: AccountAddress ) -> TransactionBuilder

source

pub fn add_validator_and_reconfigure( &self, sliding_nonce: u64, validator_name: Vec<u8>, validator_address: AccountAddress ) -> TransactionBuilder

source

pub fn burn_txn_fees(&self, coin_type: Currency) -> TransactionBuilder

source

pub fn burn_with_amount( &self, token: Currency, sliding_nonce: u64, preburn_address: AccountAddress, amount: u64 ) -> TransactionBuilder

source

pub fn cancel_burn_with_amount( &self, token: Currency, preburn_address: AccountAddress, amount: u64 ) -> TransactionBuilder

source

pub fn peer_to_peer( &self, currency: Currency, payee: AccountAddress, amount: u64 ) -> TransactionBuilder

source

pub fn peer_to_peer_with_metadata( &self, currency: Currency, payee: AccountAddress, amount: u64, metadata: Vec<u8>, metadata_signature: Vec<u8> ) -> TransactionBuilder

source

pub fn preburn(&self, currency: Currency, amount: u64) -> TransactionBuilder

source

pub fn create_child_vasp_account( &self, coin_type: Currency, child_auth_key: AuthenticationKey, add_all_currencies: bool, child_initial_balance: u64 ) -> TransactionBuilder

source

pub fn create_designated_dealer( &self, coin_type: Currency, sliding_nonce: u64, auth_key: AuthenticationKey, human_name: &str, add_all_currencies: bool ) -> TransactionBuilder

source

pub fn create_parent_vasp_account( &self, coin_type: Currency, sliding_nonce: u64, parent_auth_key: AuthenticationKey, human_name: &str, add_all_currencies: bool ) -> TransactionBuilder

source

pub fn create_recovery_address(&self) -> TransactionBuilder

source

pub fn rotate_authentication_key( &self, new_key: AuthenticationKey ) -> TransactionBuilder

source

pub fn rotate_authentication_key_with_recovery_address( &self, recovery_address: AccountAddress, to_recover: AccountAddress, new_key: AuthenticationKey ) -> TransactionBuilder

source

pub fn rotate_dual_attestation_info( &self, new_url: Vec<u8>, new_key: Vec<u8> ) -> TransactionBuilder

source

pub fn publish_shared_ed25519_public_key( &self, public_key: Vec<u8> ) -> TransactionBuilder

source

pub fn publish_rotate_ed25519_public_key( &self, public_key: Vec<u8> ) -> TransactionBuilder

source

pub fn update_diem_consensus_config( &self, sliding_nonce: u64, config: Vec<u8> ) -> TransactionBuilder

source

pub fn update_diem_version( &self, sliding_nonce: u64, major: u64 ) -> TransactionBuilder

source

pub fn update_exchange_rate( &self, currency: Currency, sliding_nonce: u64, exchange_rate_numerator: u64, exchange_rate_denominator: u64 ) -> TransactionBuilder

source

pub fn remove_validator_and_reconfigure( &self, sliding_nonce: u64, validator_name: Vec<u8>, validator_address: AccountAddress ) -> TransactionBuilder

source

pub fn add_vasp_domain( &self, address: AccountAddress, domain: Vec<u8> ) -> TransactionBuilder

source

pub fn remove_vasp_domain( &self, address: AccountAddress, domain: Vec<u8> ) -> TransactionBuilder

source

pub fn script(&self, script: Script) -> TransactionBuilder

Trait Implementations§

source§

impl Clone for TransactionFactory

source§

fn clone(&self) -> TransactionFactory

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransactionFactory

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more