CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a transfer transaction. More...
Public Types | |
using | Transaction = model::TransferTransaction |
using | EmbeddedTransaction = model::EmbeddedTransferTransaction |
Public Member Functions | |
TransferBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setRecipient (const UnresolvedAddress &recipient) |
Sets the transaction recipient to recipient. More... | |
void | setMessage (const RawBuffer &message) |
Sets the transaction message to message. More... | |
void | addMosaic (const model::UnresolvedMosaic &mosaic) |
Adds mosaic to attached mosaics. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new transfer transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded transfer 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 Member Functions | |
template<typename TTransaction > | |
size_t | sizeImpl () const |
template<typename TTransaction > | |
std::unique_ptr< TTransaction > | buildImpl () const |
template<typename TransactionType > | |
std::unique_ptr< TransactionType > | buildImpl () const |
Private Attributes | |
UnresolvedAddress | m_recipient |
std::vector< uint8_t > | m_message |
std::vector< model::UnresolvedMosaic > | m_mosaics |
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 a transfer transaction.
using catapult::builders::TransferBuilder::EmbeddedTransaction = model::EmbeddedTransferTransaction |
using catapult::builders::TransferBuilder::Transaction = model::TransferTransaction |
catapult::builders::TransferBuilder::TransferBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates a transfer builder for building a transfer transaction from signer for the network specified by networkIdentifier.
void catapult::builders::TransferBuilder::addMosaic | ( | const model::UnresolvedMosaic & | mosaic | ) |
Adds mosaic to attached mosaics.
std::unique_ptr< TransferBuilder::Transaction > catapult::builders::TransferBuilder::build | ( | ) | const |
Builds a new transfer transaction.
std::unique_ptr< TransferBuilder::EmbeddedTransaction > catapult::builders::TransferBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded transfer transaction.
|
private |
|
private |
void catapult::builders::TransferBuilder::setMessage | ( | const RawBuffer & | message | ) |
Sets the transaction message to message.
void catapult::builders::TransferBuilder::setRecipient | ( | const UnresolvedAddress & | recipient | ) |
Sets the transaction recipient to recipient.
size_t catapult::builders::TransferBuilder::size | ( | ) | const |
Returns size of transfer transaction.
|
private |
|
private |
|
private |
|
private |