CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace builders {
58 std::unique_ptr<Transaction>
build()
const;
64 template<
typename TTransaction>
67 template<
typename TTransaction>
68 std::unique_ptr<TTransaction>
buildImpl()
const;
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
std::unique_ptr< Transaction > build() const
Builds a new mosaic definition transaction.
Definition: MosaicDefinitionBuilder.cpp:57
MosaicId GenerateMosaicId(const Key &owner, MosaicNonce nonce) noexcept
Generates a mosaic id given owner and nonce.
Definition: MosaicIdGenerator.cpp:26
MosaicNonce m_mosaicNonce
Definition: MosaicDefinitionBuilder.h:71
Builder for a mosaic definition transaction.
Definition: MosaicDefinitionBuilder.h:29
void setDivisibility(uint8_t divisibility)
Sets the mosaic divisibility to divisibility.
Definition: MosaicDefinitionBuilder.cpp:43
size_t size() const
Definition: MosaicDefinitionBuilder.cpp:53
MosaicFlags
Mosaic property flags.
Definition: MosaicProperty.h:50
Mosaic property composed of an id and a value.
Definition: MosaicProperty.h:69
uint8_t m_divisibility
Definition: MosaicDefinitionBuilder.h:74
void addProperty(const model::MosaicProperty &property)
Adds property to optional properties.
Definition: MosaicDefinitionBuilder.cpp:47
MosaicDefinitionBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: MosaicDefinitionBuilder.cpp:26
void setFlags(model::MosaicFlags flags)
Sets the mosaic flags to flags.
Definition: MosaicDefinitionBuilder.cpp:39
void setMosaicNonce(MosaicNonce mosaicNonce)
Sets the mosaic nonce to mosaicNonce.
Definition: MosaicDefinitionBuilder.cpp:35
std::vector< model::MosaicProperty > m_properties
Definition: MosaicDefinitionBuilder.h:75
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
model::EmbeddedMosaicDefinitionTransaction EmbeddedTransaction
Definition: MosaicDefinitionBuilder.h:32
std::unique_ptr< TTransaction > buildImpl() const
model::MosaicFlags m_flags
Definition: MosaicDefinitionBuilder.h:73
Definition: AddressExtractionExtension.cpp:28
model::MosaicDefinitionTransaction Transaction
Definition: MosaicDefinitionBuilder.h:31
MosaicId m_mosaicId
Definition: MosaicDefinitionBuilder.h:72
MosaicPropertyId Id
Mosaic property id.
Definition: MosaicProperty.h:72
size_t sizeImpl() const
Definition: MosaicDefinitionBuilder.cpp:66
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded mosaic definition transaction.
Definition: MosaicDefinitionBuilder.cpp:61
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
static void InsertSorted(std::vector< T > &vector, const T &element, Predicate orderPredicate)
Definition: TransactionBuilder.h:83