CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a register namespace transaction. More...
Public Types | |
using | Transaction = model::RegisterNamespaceTransaction |
using | EmbeddedTransaction = model::EmbeddedRegisterNamespaceTransaction |
Public Member Functions | |
RegisterNamespaceBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setDuration (BlockDuration duration) |
Sets the namespace duration to duration and namespaceType to root . More... | |
void | setParentId (NamespaceId parentId) |
Sets the id of the parent namespace to parentId and namespaceType to child . More... | |
void | setName (const RawBuffer &name) |
Sets the namespace name to name. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new register namespace transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded register namespace 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::NamespaceType | m_namespaceType |
BlockDuration | m_duration |
NamespaceId | m_parentId |
NamespaceId | m_namespaceId |
std::vector< uint8_t > | m_name |
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 register namespace transaction.
using catapult::builders::RegisterNamespaceBuilder::EmbeddedTransaction = model::EmbeddedRegisterNamespaceTransaction |
using catapult::builders::RegisterNamespaceBuilder::Transaction = model::RegisterNamespaceTransaction |
catapult::builders::RegisterNamespaceBuilder::RegisterNamespaceBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates a register namespace builder for building a register namespace transaction from signer for the network specified by networkIdentifier.
std::unique_ptr< RegisterNamespaceBuilder::Transaction > catapult::builders::RegisterNamespaceBuilder::build | ( | ) | const |
Builds a new register namespace transaction.
std::unique_ptr< RegisterNamespaceBuilder::EmbeddedTransaction > catapult::builders::RegisterNamespaceBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded register namespace transaction.
|
private |
|
private |
void catapult::builders::RegisterNamespaceBuilder::setDuration | ( | BlockDuration | duration | ) |
Sets the namespace duration to duration and namespaceType to root
.
void catapult::builders::RegisterNamespaceBuilder::setName | ( | const RawBuffer & | name | ) |
Sets the namespace name to name.
void catapult::builders::RegisterNamespaceBuilder::setParentId | ( | NamespaceId | parentId | ) |
Sets the id of the parent namespace to parentId and namespaceType to child
.
size_t catapult::builders::RegisterNamespaceBuilder::size | ( | ) | const |
Returns size of register namespace transaction.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |