CatapultServer  v0.5.0.1 (Elephant)
SecretLockTransaction.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "LockHashAlgorithm.h"
23 #include "SecretLockEntityType.h"
24 #include "catapult/model/Mosaic.h"
26 
27 namespace catapult { namespace model {
28 
29 #pragma pack(push, 1)
30 
32  template<typename THeader>
33  struct SecretLockTransactionBody : public THeader {
34  private:
36 
37  public:
38  DEFINE_TRANSACTION_CONSTANTS(Entity_Type_Secret_Lock, 1)
39 
40  public:
43 
46 
49 
52 
55 
56  public:
57  // Calculates the real size of secret lock \a transaction.
58  static constexpr uint64_t CalculateRealSize(const TransactionType&) noexcept {
59  return sizeof(TransactionType);
60  }
61  };
62 
64 
65 #pragma pack(pop)
66 }}
Mosaic.h
catapult::model::SecretLockTransactionBody::Recipient
UnresolvedAddress Recipient
Recipient of the locked mosaic.
Definition: SecretLockTransaction.h:54
catapult::model::MosaicT< UnresolvedMosaicId >
Transaction.h
catapult::model::SecretLockTransactionBody::Secret
Hash256 Secret
Secret.
Definition: SecretLockTransaction.h:51
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, BlockDuration_tag >
catapult::model::SecretLockTransactionBody::Duration
BlockDuration Duration
Number of blocks for which a lock should be valid.
Definition: SecretLockTransaction.h:45
SecretLockEntityType.h
catapult::model::SecretLockTransactionBody::TransactionType
SecretLockTransactionBody< THeader > TransactionType
Definition: SecretLockTransaction.h:35
catapult::model::SecretLockTransactionBody
Binary layout for a secret lock transaction body.
Definition: SecretLockTransaction.h:33
DEFINE_TRANSACTION_CONSTANTS
#define DEFINE_TRANSACTION_CONSTANTS(TYPE, VERSION)
Defines constants for a transaction with TYPE and VERSION.
Definition: Transaction.h:50
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::model::SecretLockTransactionBody::HashAlgorithm
LockHashAlgorithm HashAlgorithm
Hash algorithm.
Definition: SecretLockTransaction.h:48
catapult::model::LockHashAlgorithm
LockHashAlgorithm
Lock secret hash algorithm.
Definition: LockHashAlgorithm.h:27
catapult::model::SecretLockTransactionBody::CalculateRealSize
static constexpr uint64_t CalculateRealSize(const TransactionType &) noexcept
Definition: SecretLockTransaction.h:58
LockHashAlgorithm.h