Monero
Loading...
Searching...
No Matches
tsx_builder Class Reference

#include <trezor_tests.h>

Collaboration diagram for tsx_builder:

Public Member Functions

 tsx_builder ()
 tsx_builder (gen_trezor_base *tester)
tsx_buildercur_height (uint64_t cur_height)
tsx_buildermixin (size_t mixin=TREZOR_TEST_MIXIN)
tsx_builderfee (uint64_t fee=TREZOR_TEST_FEE)
tsx_builderpayment_id (const std::string &payment_id)
tsx_builderfrom (tools::wallet2 *from, uint32_t account=0)
tsx_buildersources (std::vector< cryptonote::tx_source_entry > &sources, std::vector< size_t > &selected_transfers)
tsx_buildercompute_sources (boost::optional< size_t > num_utxo=boost::none, boost::optional< uint64_t > min_amount=boost::none, ssize_t offset=-1, int step=1, boost::optional< fnc_accept_tx_source_t > fnc_accept=boost::none)
tsx_buildercompute_sources_to_sub (boost::optional< size_t > num_utxo=boost::none, boost::optional< uint64_t > min_amount=boost::none, ssize_t offset=-1, int step=1, boost::optional< fnc_accept_tx_source_t > fnc_accept=boost::none)
tsx_buildercompute_sources_to_sub_acc (boost::optional< size_t > num_utxo=boost::none, boost::optional< uint64_t > min_amount=boost::none, ssize_t offset=-1, int step=1, boost::optional< fnc_accept_tx_source_t > fnc_accept=boost::none)
tsx_builderdestinations (std::vector< cryptonote::tx_destination_entry > &dsts)
tsx_builderadd_destination (const cryptonote::tx_destination_entry &dst)
tsx_builderadd_destination (const tools::wallet2 *wallet, bool is_subaddr=false, uint64_t amount=1000)
tsx_builderadd_destination (const var_addr_t addr, bool is_subaddr=false, uint64_t amount=1000)
tsx_builderset_integrated (size_t idx)
tsx_builderrct_config (const rct::RCTConfig &rct_config)
tsx_builderbuild_tx ()
tsx_builderconstruct_pending_tx (tools::wallet2::pending_tx &ptx, boost::optional< std::vector< uint8_t > > extra=boost::none)
tsx_builderclear_current ()
std::vector< tools::wallet2::pending_txbuild ()
std::vector< cryptonote::address_parse_infodest_info ()

Protected Attributes

gen_trezor_basem_tester
uint64_t m_cur_height
std::vector< tools::wallet2::pending_txm_ptxs
size_t m_mixin
uint64_t m_fee
tools::wallet2m_from
uint32_t m_account
cryptonote::transaction m_tx
std::vector< size_t > m_selected_transfers
std::vector< cryptonote::tx_source_entrym_sources
std::vector< cryptonote::tx_destination_entrym_destinations
std::vector< cryptonote::tx_destination_entrym_destinations_orig
std::vector< cryptonote::address_parse_infom_dsts_info
std::unordered_set< size_t > m_integrated
std::string m_payment_id
rct::RCTConfig m_rct_config

Constructor & Destructor Documentation

◆ tsx_builder() [1/2]

tsx_builder::tsx_builder ( )
inline

◆ tsx_builder() [2/2]

tsx_builder::tsx_builder ( gen_trezor_base * tester)
inline

Member Function Documentation

◆ add_destination() [1/3]

tsx_builder * tsx_builder::add_destination ( const cryptonote::tx_destination_entry & dst)

◆ add_destination() [2/3]

tsx_builder * tsx_builder::add_destination ( const tools::wallet2 * wallet,
bool is_subaddr = false,
uint64_t amount = 1000 )

◆ add_destination() [3/3]

tsx_builder * tsx_builder::add_destination ( const var_addr_t addr,
bool is_subaddr = false,
uint64_t amount = 1000 )

◆ build()

std::vector< tools::wallet2::pending_tx > tsx_builder::build ( )

◆ build_tx()

tsx_builder * tsx_builder::build_tx ( )

◆ clear_current()

tsx_builder * tsx_builder::clear_current ( )

◆ compute_sources()

tsx_builder * tsx_builder::compute_sources ( boost::optional< size_t > num_utxo = boost::none,
boost::optional< uint64_t > min_amount = boost::none,
ssize_t offset = -1,
int step = 1,
boost::optional< fnc_accept_tx_source_t > fnc_accept = boost::none )

◆ compute_sources_to_sub()

tsx_builder * tsx_builder::compute_sources_to_sub ( boost::optional< size_t > num_utxo = boost::none,
boost::optional< uint64_t > min_amount = boost::none,
ssize_t offset = -1,
int step = 1,
boost::optional< fnc_accept_tx_source_t > fnc_accept = boost::none )

◆ compute_sources_to_sub_acc()

tsx_builder * tsx_builder::compute_sources_to_sub_acc ( boost::optional< size_t > num_utxo = boost::none,
boost::optional< uint64_t > min_amount = boost::none,
ssize_t offset = -1,
int step = 1,
boost::optional< fnc_accept_tx_source_t > fnc_accept = boost::none )

◆ construct_pending_tx()

tsx_builder * tsx_builder::construct_pending_tx ( tools::wallet2::pending_tx & ptx,
boost::optional< std::vector< uint8_t > > extra = boost::none )

◆ cur_height()

tsx_builder * tsx_builder::cur_height ( uint64_t cur_height)
inline

◆ dest_info()

std::vector< cryptonote::address_parse_info > tsx_builder::dest_info ( )
inline

◆ destinations()

tsx_builder * tsx_builder::destinations ( std::vector< cryptonote::tx_destination_entry > & dsts)

◆ fee()

tsx_builder * tsx_builder::fee ( uint64_t fee = TREZOR_TEST_FEE)
inline

◆ from()

tsx_builder * tsx_builder::from ( tools::wallet2 * from,
uint32_t account = 0 )
inline

◆ mixin()

tsx_builder * tsx_builder::mixin ( size_t mixin = TREZOR_TEST_MIXIN)
inline

◆ payment_id()

tsx_builder * tsx_builder::payment_id ( const std::string & payment_id)
inline

◆ rct_config()

tsx_builder * tsx_builder::rct_config ( const rct::RCTConfig & rct_config)
inline

◆ set_integrated()

tsx_builder * tsx_builder::set_integrated ( size_t idx)

◆ sources()

tsx_builder * tsx_builder::sources ( std::vector< cryptonote::tx_source_entry > & sources,
std::vector< size_t > & selected_transfers )

Member Data Documentation

◆ m_account

uint32_t tsx_builder::m_account
protected

◆ m_cur_height

uint64_t tsx_builder::m_cur_height
protected

◆ m_destinations

std::vector<cryptonote::tx_destination_entry> tsx_builder::m_destinations
protected

◆ m_destinations_orig

std::vector<cryptonote::tx_destination_entry> tsx_builder::m_destinations_orig
protected

◆ m_dsts_info

std::vector<cryptonote::address_parse_info> tsx_builder::m_dsts_info
protected

◆ m_fee

uint64_t tsx_builder::m_fee
protected

◆ m_from

tools::wallet2* tsx_builder::m_from
protected

◆ m_integrated

std::unordered_set<size_t> tsx_builder::m_integrated
protected

◆ m_mixin

size_t tsx_builder::m_mixin
protected

◆ m_payment_id

std::string tsx_builder::m_payment_id
protected

◆ m_ptxs

std::vector<tools::wallet2::pending_tx> tsx_builder::m_ptxs
protected

◆ m_rct_config

rct::RCTConfig tsx_builder::m_rct_config
protected

◆ m_selected_transfers

std::vector<size_t> tsx_builder::m_selected_transfers
protected

◆ m_sources

std::vector<cryptonote::tx_source_entry> tsx_builder::m_sources
protected

◆ m_tester

gen_trezor_base* tsx_builder::m_tester
protected

◆ m_tx

cryptonote::transaction tsx_builder::m_tx
protected

The documentation for this class was generated from the following files: