Struct diem_sdk::transaction_builder::TransactionFactory
source · pub struct TransactionFactory { /* private fields */ }
Implementations§
source§impl TransactionFactory
impl TransactionFactory
pub fn new(chain_id: ChainId) -> Self
pub fn with_max_gas_amount(self, max_gas_amount: u64) -> Self
pub fn with_gas_unit_price(self, gas_unit_price: u64) -> Self
pub fn with_gas_currency(self, gas_currency: Currency) -> Self
pub fn with_transaction_expiration_time( self, transaction_expiration_time: u64 ) -> Self
pub fn with_chain_id(self, chain_id: ChainId) -> Self
pub fn with_diem_version(self, diem_version: u64) -> Self
pub fn payload(&self, payload: TransactionPayload) -> TransactionBuilder
pub fn add_currency_to_account(&self, currency: Currency) -> TransactionBuilder
pub fn add_recovery_rotation_capability( &self, recovery_address: AccountAddress ) -> TransactionBuilder
pub fn add_validator_and_reconfigure( &self, sliding_nonce: u64, validator_name: Vec<u8>, validator_address: AccountAddress ) -> TransactionBuilder
pub fn burn_txn_fees(&self, coin_type: Currency) -> TransactionBuilder
pub fn burn_with_amount( &self, token: Currency, sliding_nonce: u64, preburn_address: AccountAddress, amount: u64 ) -> TransactionBuilder
pub fn cancel_burn_with_amount( &self, token: Currency, preburn_address: AccountAddress, amount: u64 ) -> TransactionBuilder
pub fn peer_to_peer( &self, currency: Currency, payee: AccountAddress, amount: u64 ) -> TransactionBuilder
pub fn peer_to_peer_with_metadata( &self, currency: Currency, payee: AccountAddress, amount: u64, metadata: Vec<u8>, metadata_signature: Vec<u8> ) -> TransactionBuilder
pub fn preburn(&self, currency: Currency, amount: u64) -> TransactionBuilder
pub fn create_child_vasp_account( &self, coin_type: Currency, child_auth_key: AuthenticationKey, add_all_currencies: bool, child_initial_balance: u64 ) -> TransactionBuilder
pub fn create_designated_dealer( &self, coin_type: Currency, sliding_nonce: u64, auth_key: AuthenticationKey, human_name: &str, add_all_currencies: bool ) -> TransactionBuilder
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
pub fn create_recovery_address(&self) -> TransactionBuilder
pub fn rotate_authentication_key( &self, new_key: AuthenticationKey ) -> TransactionBuilder
pub fn rotate_authentication_key_with_recovery_address( &self, recovery_address: AccountAddress, to_recover: AccountAddress, new_key: AuthenticationKey ) -> TransactionBuilder
pub fn rotate_dual_attestation_info( &self, new_url: Vec<u8>, new_key: Vec<u8> ) -> TransactionBuilder
pub fn publish_rotate_ed25519_public_key( &self, public_key: Vec<u8> ) -> TransactionBuilder
pub fn update_diem_consensus_config( &self, sliding_nonce: u64, config: Vec<u8> ) -> TransactionBuilder
pub fn update_diem_version( &self, sliding_nonce: u64, major: u64 ) -> TransactionBuilder
pub fn update_exchange_rate( &self, currency: Currency, sliding_nonce: u64, exchange_rate_numerator: u64, exchange_rate_denominator: u64 ) -> TransactionBuilder
pub fn remove_validator_and_reconfigure( &self, sliding_nonce: u64, validator_name: Vec<u8>, validator_address: AccountAddress ) -> TransactionBuilder
pub fn add_vasp_domain( &self, address: AccountAddress, domain: Vec<u8> ) -> TransactionBuilder
pub fn remove_vasp_domain( &self, address: AccountAddress, domain: Vec<u8> ) -> TransactionBuilder
pub fn script(&self, script: Script) -> TransactionBuilder
Trait Implementations§
source§impl Clone for TransactionFactory
impl Clone for TransactionFactory
source§fn clone(&self) -> TransactionFactory
fn clone(&self) -> TransactionFactory
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 more