CatapultServer  v0.5.0.1 (Elephant)
catapult::builders::TransactionBuilder Class Reference

Base transaction builder. More...

Inheritance diagram for catapult::builders::TransactionBuilder:
Collaboration diagram for catapult::builders::TransactionBuilder:

Public Member Functions

 TransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 Creates a transaction builder with networkIdentifier and signer. More...
 
const Keysigner () const
 Returns signer. More...
 
void setDeadline (catapult::Timestamp deadline)
 Sets transaction deadline. More...
 
void setMaxFee (catapult::Amount fee)
 Sets maximum transaction fee. More...
 

Protected Member Functions

template<typename TTransaction >
std::unique_ptr< TTransaction > createTransaction (size_t size) const
 

Static Protected Member Functions

template<typename T , typename Predicate >
static void InsertSorted (std::vector< T > &vector, const T &element, Predicate orderPredicate)
 

Private Member Functions

void setAdditionalFields (model::EmbeddedTransaction &) const
 
void setAdditionalFields (model::Transaction &transaction) const
 

Private Attributes

const model::NetworkIdentifier m_networkIdentifier
 
const Keym_signer
 
Timestamp m_deadline
 
Amount m_maxFee
 

Detailed Description

Base transaction builder.

Constructor & Destructor Documentation

◆ TransactionBuilder()

catapult::builders::TransactionBuilder::TransactionBuilder ( model::NetworkIdentifier  networkIdentifier,
const Key signer 
)
inline

Creates a transaction builder with networkIdentifier and signer.

Member Function Documentation

◆ createTransaction()

template<typename TTransaction >
std::unique_ptr<TTransaction> catapult::builders::TransactionBuilder::createTransaction ( size_t  size) const
inlineprotected
Here is the call graph for this function:

◆ InsertSorted()

template<typename T , typename Predicate >
static void catapult::builders::TransactionBuilder::InsertSorted ( std::vector< T > &  vector,
const T &  element,
Predicate  orderPredicate 
)
inlinestaticprotected
Here is the caller graph for this function:

◆ setAdditionalFields() [1/2]

void catapult::builders::TransactionBuilder::setAdditionalFields ( model::EmbeddedTransaction ) const
inlineprivate
Here is the caller graph for this function:

◆ setAdditionalFields() [2/2]

void catapult::builders::TransactionBuilder::setAdditionalFields ( model::Transaction transaction) const
inlineprivate

◆ setDeadline()

void catapult::builders::TransactionBuilder::setDeadline ( catapult::Timestamp  deadline)
inline

Sets transaction deadline.

◆ setMaxFee()

void catapult::builders::TransactionBuilder::setMaxFee ( catapult::Amount  fee)
inline

Sets maximum transaction fee.

◆ signer()

const Key& catapult::builders::TransactionBuilder::signer ( ) const
inline

Returns signer.

Here is the caller graph for this function:

Member Data Documentation

◆ m_deadline

Timestamp catapult::builders::TransactionBuilder::m_deadline
private

◆ m_maxFee

Amount catapult::builders::TransactionBuilder::m_maxFee
private

◆ m_networkIdentifier

const model::NetworkIdentifier catapult::builders::TransactionBuilder::m_networkIdentifier
private

◆ m_signer

const Key& catapult::builders::TransactionBuilder::m_signer
private

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