CatapultServer
v0.5.0.1 (Elephant)
|
Builder for an aggregate transaction. More...
Public Types | |
using | EmbeddedTransactionPointer = std::unique_ptr< model::EmbeddedTransaction > |
Public Member Functions | |
AggregateTransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
Creates an aggregate transaction builder using signer for the network specified by networkIdentifier. More... | |
void | addTransaction (EmbeddedTransactionPointer &&pTransaction) |
Adds a transaction. More... | |
size_t | size () const |
Returns size of aggregate transaction. More... | |
std::unique_ptr< model::AggregateTransaction > | build () const |
Builds a new aggregate transaction. More... | |
Public Member Functions inherited from catapult::builders::TransactionBuilder | |
TransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
Creates a transaction builder with networkIdentifier and signer. More... | |
const Key & | signer () const |
Returns signer. More... | |
void | setDeadline (catapult::Timestamp deadline) |
Sets transaction deadline. More... | |
void | setMaxFee (catapult::Amount fee) |
Sets maximum transaction fee. More... | |
Private Attributes | |
std::vector< EmbeddedTransactionPointer > | m_pTransactions |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::builders::TransactionBuilder | |
template<typename TTransaction > | |
std::unique_ptr< TTransaction > | createTransaction (size_t size) const |
Static Protected Member Functions inherited from catapult::builders::TransactionBuilder | |
template<typename T , typename Predicate > | |
static void | InsertSorted (std::vector< T > &vector, const T &element, Predicate orderPredicate) |
Builder for an aggregate transaction.
using catapult::builders::AggregateTransactionBuilder::EmbeddedTransactionPointer = std::unique_ptr<model::EmbeddedTransaction> |
catapult::builders::AggregateTransactionBuilder::AggregateTransactionBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates an aggregate transaction builder using signer for the network specified by networkIdentifier.
void catapult::builders::AggregateTransactionBuilder::addTransaction | ( | AggregateTransactionBuilder::EmbeddedTransactionPointer && | pTransaction | ) |
Adds a transaction.
std::unique_ptr< TransactionType > catapult::builders::AggregateTransactionBuilder::build | ( | ) | const |
Builds a new aggregate transaction.
size_t catapult::builders::AggregateTransactionBuilder::size | ( | ) | const |
Returns size of aggregate transaction.
|
private |