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

Builder for a mosaic supply change transaction. More...

Inheritance diagram for catapult::builders::MosaicSupplyChangeBuilder:
Collaboration diagram for catapult::builders::MosaicSupplyChangeBuilder:

Public Types

using Transaction = model::MosaicSupplyChangeTransaction
 
using EmbeddedTransaction = model::EmbeddedMosaicSupplyChangeTransaction
 

Public Member Functions

 MosaicSupplyChangeBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 
void setMosaicId (UnresolvedMosaicId mosaicId)
 Sets the id of the affected mosaic to mosaicId. More...
 
void setDirection (model::MosaicSupplyChangeDirection direction)
 Sets the supply change direction to direction. More...
 
void setDelta (Amount delta)
 Sets the amount of the change to delta. More...
 
size_t size () const
 
std::unique_ptr< Transactionbuild () const
 Builds a new mosaic supply change transaction. More...
 
std::unique_ptr< EmbeddedTransactionbuildEmbedded () const
 Builds a new embedded mosaic supply change 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

UnresolvedMosaicId m_mosaicId
 
model::MosaicSupplyChangeDirection m_direction
 
Amount m_delta
 

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 supply change transaction.

Member Typedef Documentation

◆ EmbeddedTransaction

using catapult::builders::MosaicSupplyChangeBuilder::EmbeddedTransaction = model::EmbeddedMosaicSupplyChangeTransaction

◆ Transaction

using catapult::builders::MosaicSupplyChangeBuilder::Transaction = model::MosaicSupplyChangeTransaction

Constructor & Destructor Documentation

◆ MosaicSupplyChangeBuilder()

catapult::builders::MosaicSupplyChangeBuilder::MosaicSupplyChangeBuilder ( model::NetworkIdentifier  networkIdentifier,
const Key signer 
)

Creates a mosaic supply change builder for building a mosaic supply change transaction from signer for the network specified by networkIdentifier.

Member Function Documentation

◆ build()

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

Builds a new mosaic supply change transaction.

◆ buildEmbedded()

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

Builds a new embedded mosaic supply change transaction.

◆ buildImpl() [1/2]

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

◆ buildImpl() [2/2]

template<typename TransactionType >
std::unique_ptr<TransactionType> catapult::builders::MosaicSupplyChangeBuilder::buildImpl ( ) const
private

◆ setDelta()

void catapult::builders::MosaicSupplyChangeBuilder::setDelta ( Amount  delta)

Sets the amount of the change to delta.

◆ setDirection()

void catapult::builders::MosaicSupplyChangeBuilder::setDirection ( model::MosaicSupplyChangeDirection  direction)

Sets the supply change direction to direction.

◆ setMosaicId()

void catapult::builders::MosaicSupplyChangeBuilder::setMosaicId ( UnresolvedMosaicId  mosaicId)

Sets the id of the affected mosaic to mosaicId.

◆ size()

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

Returns size of mosaic supply change 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::MosaicSupplyChangeBuilder::sizeImpl ( ) const
private
Here is the call graph for this function:

Member Data Documentation

◆ m_delta

Amount catapult::builders::MosaicSupplyChangeBuilder::m_delta
private

◆ m_direction

model::MosaicSupplyChangeDirection catapult::builders::MosaicSupplyChangeBuilder::m_direction
private

◆ m_mosaicId

UnresolvedMosaicId catapult::builders::MosaicSupplyChangeBuilder::m_mosaicId
private

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