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

Builder for a mosaic definition transaction. More...

Inheritance diagram for catapult::builders::MosaicDefinitionBuilder:
Collaboration diagram for catapult::builders::MosaicDefinitionBuilder:

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< Transactionbuild () const
 Builds a new mosaic definition transaction. More...
 
std::unique_ptr< EmbeddedTransactionbuildEmbedded () 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 Keysigner () 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< TransactionTypebuildImpl () const
 

Private Attributes

MosaicNonce m_mosaicNonce
 
MosaicId m_mosaicId
 
model::MosaicFlags m_flags
 
uint8_t m_divisibility
 
std::vector< model::MosaicPropertym_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)
 

Detailed Description

Builder for a mosaic definition transaction.

Member Typedef Documentation

◆ EmbeddedTransaction

using catapult::builders::MosaicDefinitionBuilder::EmbeddedTransaction = model::EmbeddedMosaicDefinitionTransaction

◆ Transaction

using catapult::builders::MosaicDefinitionBuilder::Transaction = model::MosaicDefinitionTransaction

Constructor & Destructor Documentation

◆ MosaicDefinitionBuilder()

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.

Member Function Documentation

◆ addProperty()

void catapult::builders::MosaicDefinitionBuilder::addProperty ( const model::MosaicProperty property)

Adds property to optional properties.

Here is the call graph for this function:

◆ build()

std::unique_ptr< MosaicDefinitionBuilder::Transaction > catapult::builders::MosaicDefinitionBuilder::build ( ) const

Builds a new mosaic definition transaction.

◆ buildEmbedded()

std::unique_ptr< MosaicDefinitionBuilder::EmbeddedTransaction > catapult::builders::MosaicDefinitionBuilder::buildEmbedded ( ) const

Builds a new embedded mosaic definition transaction.

◆ buildImpl() [1/2]

template<typename TTransaction >
std::unique_ptr<TTransaction> catapult::builders::MosaicDefinitionBuilder::buildImpl ( ) const
private

◆ buildImpl() [2/2]

template<typename TransactionType >
std::unique_ptr<TransactionType> catapult::builders::MosaicDefinitionBuilder::buildImpl ( ) const
private
Here is the call graph for this function:

◆ setDivisibility()

void catapult::builders::MosaicDefinitionBuilder::setDivisibility ( uint8_t  divisibility)

Sets the mosaic divisibility to divisibility.

◆ setFlags()

void catapult::builders::MosaicDefinitionBuilder::setFlags ( model::MosaicFlags  flags)

Sets the mosaic flags to flags.

◆ setMosaicNonce()

void catapult::builders::MosaicDefinitionBuilder::setMosaicNonce ( MosaicNonce  mosaicNonce)

Sets the mosaic nonce to mosaicNonce.

◆ size()

size_t catapult::builders::MosaicDefinitionBuilder::size ( ) const

Returns size of mosaic definition transaction.

Note
This returns size of a normal transaction not embedded transaction.
Here is the caller graph for this function:

◆ sizeImpl()

template<typename TransactionType >
size_t catapult::builders::MosaicDefinitionBuilder::sizeImpl ( ) const
private
Here is the call graph for this function:

Member Data Documentation

◆ m_divisibility

uint8_t catapult::builders::MosaicDefinitionBuilder::m_divisibility
private

◆ m_flags

model::MosaicFlags catapult::builders::MosaicDefinitionBuilder::m_flags
private

◆ m_mosaicId

MosaicId catapult::builders::MosaicDefinitionBuilder::m_mosaicId
private

◆ m_mosaicNonce

MosaicNonce catapult::builders::MosaicDefinitionBuilder::m_mosaicNonce
private

◆ m_properties

std::vector<model::MosaicProperty> catapult::builders::MosaicDefinitionBuilder::m_properties
private

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