CatapultServer  v0.5.0.1 (Elephant)
MosaicSupplyChangeTransaction.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "MosaicEntityType.h"
23 #include "MosaicTypes.h"
26 
27 namespace catapult { namespace model {
28 
29 #pragma pack(push, 1)
30 
32  template<typename THeader>
33  struct MosaicSupplyChangeTransactionBody : public THeader {
34  private:
36 
37  public:
38  DEFINE_TRANSACTION_CONSTANTS(Entity_Type_Mosaic_Supply_Change, 1)
39 
40  public:
43 
46 
49 
50  public:
52  static constexpr uint64_t CalculateRealSize(const TransactionType&) noexcept {
53  return sizeof(TransactionType);
54  }
55  };
56 
57  DEFINE_EMBEDDABLE_TRANSACTION(MosaicSupplyChange)
58 
59 #pragma pack(pop)
60 }}
catapult::model::MosaicSupplyChangeTransactionBody::Delta
Amount Delta
Amount of the change.
Definition: MosaicSupplyChangeTransaction.h:48
Transaction.h
catapult::model::MosaicSupplyChangeDirection
MosaicSupplyChangeDirection
Supply change directions.
Definition: MosaicTypes.h:27
catapult::model::MosaicSupplyChangeTransactionBody::TransactionType
MosaicSupplyChangeTransactionBody< THeader > TransactionType
Definition: MosaicSupplyChangeTransaction.h:35
Observers.h
catapult::observers::DEFINE_OBSERVER
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto &notification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
catapult::observers::NotifyMode
NotifyMode
Enumeration of possible notification modes.
Definition: ObserverContext.h:41
catapult::model::MosaicSupplyChangeDirection::Decrease
Decreases the supply.
DEFINE_EMBEDDABLE_TRANSACTION
#define DEFINE_EMBEDDABLE_TRANSACTION(NAME)
Defines a transaction with NAME that supports embedding.
Definition: Transaction.h:69
EntityType.h
catapult::utils::BaseValue< uint64_t, UnresolvedMosaicId_tag >
catapult::observers::Notification
model::TransactionNotification Notification
Definition: CompletedAggregateObserver.cpp:29
MosaicEntityType.h
MosaicCache.h
MosaicTypes.h
catapult::model::MosaicSupplyChangeDirection::Increase
Increases the supply.
catapult::model::MosaicSupplyChangeTransactionBody::CalculateRealSize
static constexpr uint64_t CalculateRealSize(const TransactionType &) noexcept
Calculates the real size of a mosaic supply change transaction.
Definition: MosaicSupplyChangeTransaction.h:52
AccountStateCache.h
catapult::model::MosaicSupplyChangeTransactionBody
Binary layout for a mosaic supply change transaction body.
Definition: MosaicSupplyChangeTransaction.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::model::MosaicSupplyChangeTransactionBody::Direction
MosaicSupplyChangeDirection Direction
Supply change direction.
Definition: MosaicSupplyChangeTransaction.h:45