CatapultServer  v0.5.0.1 (Elephant)
coresystem/src/observers/Observers.h
Go to the documentation of this file.
1 
21 #pragma once
24 
25 namespace catapult {
26  namespace importance { class ImportanceCalculator; }
27  namespace model { class InflationCalculator; }
28 }
29 
30 namespace catapult { namespace observers {
31 
32  // region VerifiableEntity
33 
35  DECLARE_OBSERVER(AccountAddress, model::AccountAddressNotification)();
36 
38  DECLARE_OBSERVER(AccountPublicKey, model::AccountPublicKeyNotification)();
39 
40  // endregion
41 
42  // region Block
43 
46  DECLARE_OBSERVER(RecalculateImportances, model::BlockNotification)(
47  std::unique_ptr<importance::ImportanceCalculator>&& pCommitCalculator,
48  std::unique_ptr<importance::ImportanceCalculator>&& pRollbackCalculator);
49 
53  DECLARE_OBSERVER(HarvestFee, model::BlockNotification)(
54  MosaicId currencyMosaicId,
56  const model::InflationCalculator& calculator);
57 
59  DECLARE_OBSERVER(Beneficiary, model::BlockNotification)();
60 
62  DECLARE_OBSERVER(BlockDifficulty, model::BlockNotification)();
63 
65  DECLARE_OBSERVER(TotalTransactions, model::BlockNotification)();
66 
67  // endregion
68 
69  // region Transaction
70 
73 
76 
78  DECLARE_OBSERVER(TransactionFeeActivity, model::TransactionFeeNotification)();
79 
80  // endregion
81 
82  // region SourceChange
83 
85  DECLARE_OBSERVER(SourceChange, model::SourceChangeNotification)();
86 
87  // endregion
88 }}
catapult::observers::calculator
uint8_t const model::InflationCalculator & calculator
Definition: HarvestFeeObserver.cpp:65
catapult::observers::DECLARE_OBSERVER
DECLARE_OBSERVER(HarvestFee, Notification)(MosaicId currencyMosaicId
ObserverTypes.h
catapult::MosaicId
utils::BaseValue< uint64_t, MosaicId_tag > MosaicId
Definition: src/catapult/types.h:79
catapult::validators::BalanceTransferNotification
model::BalanceTransferNotification BalanceTransferNotification
Definition: BalanceValidator.cpp:28
catapult::observers::harvestBeneficiaryPercentage
uint8_t harvestBeneficiaryPercentage
Definition: HarvestFeeObserver.cpp:64
Notifications.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::validators::BalanceDebitNotification
model::BalanceDebitNotification BalanceDebitNotification
Definition: BalanceValidator.cpp:29