CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace model {
32 template<
typename THeader>
73 return transaction.NamespaceNameSize ? THeader::PayloadStart(transaction) :
nullptr;
Binary layout for a register namespace transaction body.
Definition: RegisterNamespaceTransaction.h:33
static constexpr uint64_t CalculateRealSize(const TransactionType &transaction) noexcept
Calculates the real size of register namespace transaction.
Definition: RegisterNamespaceTransaction.h:89
RegisterNamespaceTransactionBody< THeader > TransactionType
Definition: RegisterNamespaceTransaction.h:35
bool IsChildRegistration() const
Returns true if this transaction registers a child namespace.
Definition: RegisterNamespaceTransaction.h:83
model::NamespaceType NamespaceType
Type of the registered namespace.
Definition: RegisterNamespaceTransaction.h:48
#define DEFINE_EMBEDDABLE_TRANSACTION(NAME)
Defines a transaction with NAME that supports embedding.
Definition: Transaction.h:69
NamespaceId ParentId
Definition: RegisterNamespaceTransaction.h:53
BlockDuration Duration
Definition: RegisterNamespaceTransaction.h:57
NamespaceType
Namespace types.
Definition: NamespaceTypes.h:27
catapult::NamespaceId NamespaceId
Definition: RegisterNamespaceTransaction.h:62
static constexpr auto Name
Definition: PtSynchronizer.cpp:31
static auto * NamePtrT(T &transaction)
Definition: RegisterNamespaceTransaction.h:72
#define DEFINE_TRANSACTION_CONSTANTS(TYPE, VERSION)
Defines constants for a transaction with TYPE and VERSION.
Definition: Transaction.h:50
Definition: AddressExtractionExtension.cpp:28
#define DEFINE_TRANSACTION_VARIABLE_DATA_ACCESSORS(NAME, TYPE)
Defines NAME (TYPE typed) variable data accessors around a similarly named templated untyped data acc...
Definition: Transaction.h:57
bool IsRootRegistration() const
Returns true if this transaction registers a root namespace.
Definition: RegisterNamespaceTransaction.h:78
uint8_t NamespaceNameSize
Size of the namespace name.
Definition: RegisterNamespaceTransaction.h:65