CatapultServer  v0.5.0.1 (Elephant)
AccountLinkTransaction.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "AccountLinkAction.h"
23 #include "AccountLinkEntityType.h"
25 
26 namespace catapult { namespace model {
27 
28 #pragma pack(push, 1)
29 
31  template<typename THeader>
32  struct AccountLinkTransactionBody : public THeader {
33  private:
35 
36  public:
37  DEFINE_TRANSACTION_CONSTANTS(Entity_Type_Account_Link, 1)
38 
39  public:
42 
45 
46  public:
47  // Calculates the real size of account link \a transaction.
48  static constexpr uint64_t CalculateRealSize(const TransactionType&) noexcept {
49  return sizeof(TransactionType);
50  }
51  };
52 
54 
55 #pragma pack(pop)
56 }}
catapult::model::AccountLinkTransactionBody::RemoteAccountKey
Key RemoteAccountKey
Remote account key.
Definition: AccountLinkTransaction.h:41
catapult::model::AccountLinkTransactionBody::CalculateRealSize
static constexpr uint64_t CalculateRealSize(const TransactionType &) noexcept
Definition: AccountLinkTransaction.h:48
Transaction.h
catapult::model::AccountLinkTransactionBody
Binary layout for an account link transaction body.
Definition: AccountLinkTransaction.h:32
DEFINE_EMBEDDABLE_TRANSACTION
#define DEFINE_EMBEDDABLE_TRANSACTION(NAME)
Defines a transaction with NAME that supports embedding.
Definition: Transaction.h:69
catapult::model::AccountLinkTransactionBody::TransactionType
AccountLinkTransactionBody< THeader > TransactionType
Definition: AccountLinkTransaction.h:34
AccountLinkEntityType.h
DEFINE_TRANSACTION_CONSTANTS
#define DEFINE_TRANSACTION_CONSTANTS(TYPE, VERSION)
Defines constants for a transaction with TYPE and VERSION.
Definition: Transaction.h:50
AccountLinkAction.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::AccountLinkAction
AccountLinkAction
Account link transaction action.
Definition: AccountLinkAction.h:27
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::model::AccountLinkTransactionBody::LinkAction
AccountLinkAction LinkAction
Account link action.
Definition: AccountLinkTransaction.h:44