CatapultServer  v0.5.0.1 (Elephant)
MosaicAliasTransaction.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "AliasSharedTransaction.h"
23 #include "NamespaceEntityType.h"
24 
25 namespace catapult { namespace model {
26 
27 #pragma pack(push, 1)
28 
30  template<typename THeader>
31  struct MosaicAliasTransactionBody : public SharedAliasBody<THeader> {
32  private:
34 
35  public:
36  DEFINE_TRANSACTION_CONSTANTS(Entity_Type_Alias_Mosaic, 1)
37 
38  public:
41 
42  public:
43  // Calculates the real size of mosaic alias \a transaction.
44  static constexpr uint64_t CalculateRealSize(const TransactionType&) noexcept {
45  return sizeof(TransactionType);
46  }
47  };
48 
50 
51 #pragma pack(pop)
52 }}
AliasSharedTransaction.h
DEFINE_EMBEDDABLE_TRANSACTION
#define DEFINE_EMBEDDABLE_TRANSACTION(NAME)
Defines a transaction with NAME that supports embedding.
Definition: Transaction.h:69
catapult::utils::BaseValue< uint64_t, MosaicId_tag >
catapult::model::MosaicAliasTransactionBody
Binary layout for a mosaic alias transaction body.
Definition: MosaicAliasTransaction.h:31
catapult::model::MosaicAliasTransactionBody::CalculateRealSize
static constexpr uint64_t CalculateRealSize(const TransactionType &) noexcept
Definition: MosaicAliasTransaction.h:44
DEFINE_TRANSACTION_CONSTANTS
#define DEFINE_TRANSACTION_CONSTANTS(TYPE, VERSION)
Defines constants for a transaction with TYPE and VERSION.
Definition: Transaction.h:50
NamespaceEntityType.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::MosaicAliasTransactionBody::TransactionType
MosaicAliasTransactionBody< THeader > TransactionType
Definition: MosaicAliasTransaction.h:33
catapult::model::SharedAliasBody
Binary layout for an alias transaction body.
Definition: AliasSharedTransaction.h:32