CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a mosaic definition transaction. More...
Public Types | |
using | Transaction = model::MosaicDefinitionTransaction |
using | EmbeddedTransaction = model::EmbeddedMosaicDefinitionTransaction |
Public Member Functions | |
MosaicDefinitionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setMosaicNonce (MosaicNonce mosaicNonce) |
Sets the mosaic nonce to mosaicNonce. More... | |
void | setFlags (model::MosaicFlags flags) |
Sets the mosaic flags to flags. More... | |
void | setDivisibility (uint8_t divisibility) |
Sets the mosaic divisibility to divisibility. More... | |
void | addProperty (const model::MosaicProperty &property) |
Adds property to optional properties. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new mosaic definition transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded mosaic definition 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 | |
MosaicNonce | m_mosaicNonce |
MosaicId | m_mosaicId |
model::MosaicFlags | m_flags |
uint8_t | m_divisibility |
std::vector< model::MosaicProperty > | m_properties |
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 definition transaction.
using catapult::builders::MosaicDefinitionBuilder::EmbeddedTransaction = model::EmbeddedMosaicDefinitionTransaction |
using catapult::builders::MosaicDefinitionBuilder::Transaction = model::MosaicDefinitionTransaction |
catapult::builders::MosaicDefinitionBuilder::MosaicDefinitionBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates a mosaic definition builder for building a mosaic definition transaction from signer for the network specified by networkIdentifier.
void catapult::builders::MosaicDefinitionBuilder::addProperty | ( | const model::MosaicProperty & | property | ) |
Adds property to optional properties.
std::unique_ptr< MosaicDefinitionBuilder::Transaction > catapult::builders::MosaicDefinitionBuilder::build | ( | ) | const |
Builds a new mosaic definition transaction.
std::unique_ptr< MosaicDefinitionBuilder::EmbeddedTransaction > catapult::builders::MosaicDefinitionBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded mosaic definition transaction.
|
private |
|
private |
void catapult::builders::MosaicDefinitionBuilder::setDivisibility | ( | uint8_t | divisibility | ) |
Sets the mosaic divisibility to divisibility.
void catapult::builders::MosaicDefinitionBuilder::setFlags | ( | model::MosaicFlags | flags | ) |
Sets the mosaic flags to flags.
void catapult::builders::MosaicDefinitionBuilder::setMosaicNonce | ( | MosaicNonce | mosaicNonce | ) |
Sets the mosaic nonce to mosaicNonce.
size_t catapult::builders::MosaicDefinitionBuilder::size | ( | ) | const |
Returns size of mosaic definition transaction.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |