CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a mosaic alias transaction. More...
Public Types | |
using | Transaction = model::MosaicAliasTransaction |
using | EmbeddedTransaction = model::EmbeddedMosaicAliasTransaction |
Public Member Functions | |
MosaicAliasBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setAliasAction (model::AliasAction aliasAction) |
Sets the alias action to aliasAction. More... | |
void | setNamespaceId (NamespaceId namespaceId) |
Sets the id of a namespace that will become an alias to namespaceId. More... | |
void | setMosaicId (MosaicId mosaicId) |
Sets the aliased mosaic id to mosaicId. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new mosaic alias transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded mosaic alias 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 | |
model::AliasAction | m_aliasAction |
NamespaceId | m_namespaceId |
MosaicId | m_mosaicId |
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 mosaic alias transaction.
using catapult::builders::MosaicAliasBuilder::EmbeddedTransaction = model::EmbeddedMosaicAliasTransaction |
using catapult::builders::MosaicAliasBuilder::Transaction = model::MosaicAliasTransaction |
catapult::builders::MosaicAliasBuilder::MosaicAliasBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates a mosaic alias builder for building a mosaic alias transaction from signer for the network specified by networkIdentifier.
std::unique_ptr< MosaicAliasBuilder::Transaction > catapult::builders::MosaicAliasBuilder::build | ( | ) | const |
Builds a new mosaic alias transaction.
std::unique_ptr< MosaicAliasBuilder::EmbeddedTransaction > catapult::builders::MosaicAliasBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded mosaic alias transaction.
|
private |
|
private |
void catapult::builders::MosaicAliasBuilder::setAliasAction | ( | model::AliasAction | aliasAction | ) |
Sets the alias action to aliasAction.
void catapult::builders::MosaicAliasBuilder::setMosaicId | ( | MosaicId | mosaicId | ) |
Sets the aliased mosaic id to mosaicId.
void catapult::builders::MosaicAliasBuilder::setNamespaceId | ( | NamespaceId | namespaceId | ) |
Sets the id of a namespace that will become an alias to namespaceId.
size_t catapult::builders::MosaicAliasBuilder::size | ( | ) | const |
Returns size of mosaic alias transaction.
|
private |
|
private |
|
private |
|
private |