CatapultServer
v0.5.0.1 (Elephant)
|
Binary layout for a register namespace transaction body. More...
Public Member Functions | |
RegisterNamespaceTransactionBody () | |
bool | IsRootRegistration () const |
Returns true if this transaction registers a root namespace. More... | |
bool | IsChildRegistration () const |
Returns true if this transaction registers a child namespace. More... | |
Static Public Member Functions | |
static constexpr uint64_t | CalculateRealSize (const TransactionType &transaction) noexcept |
Calculates the real size of register namespace transaction. More... | |
Public Attributes | |
model::NamespaceType | NamespaceType |
Type of the registered namespace. More... | |
union { | |
NamespaceId ParentId | |
BlockDuration Duration | |
}; | |
catapult::NamespaceId | NamespaceId |
uint8_t | NamespaceNameSize |
Size of the namespace name. More... | |
Private Types | |
using | TransactionType = RegisterNamespaceTransactionBody< THeader > |
Static Private Member Functions | |
template<typename T > | |
static auto * | NamePtrT (T &transaction) |
Binary layout for a register namespace transaction body.
|
private |
|
inline |
Creates a register namespace transaction body.
|
inlinestaticconstexprnoexcept |
Calculates the real size of register namespace transaction.
|
inline |
Returns true
if this transaction registers a child namespace.
|
inline |
Returns true
if this transaction registers a root namespace.
|
inlinestaticprivate |
union { ... } |
BlockDuration catapult::model::RegisterNamespaceTransactionBody< THeader >::Duration |
Number of blocks for which the namespace should be valid.
catapult::NamespaceId catapult::model::RegisterNamespaceTransactionBody< THeader >::NamespaceId |
Id of the namespace.
uint8_t catapult::model::RegisterNamespaceTransactionBody< THeader >::NamespaceNameSize |
Size of the namespace name.
model::NamespaceType catapult::model::RegisterNamespaceTransactionBody< THeader >::NamespaceType |
Type of the registered namespace.
NamespaceId catapult::model::RegisterNamespaceTransactionBody< THeader >::ParentId |
Id of the parent namespace.