CatapultServer
v0.5.0.1 (Elephant)
txes/mosaic/src/validators/Validators.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
Results.h
"
23
#include "
src/model/MosaicNotifications.h
"
24
#include "
catapult/model/Notifications.h
"
25
#include "
catapult/validators/ValidatorTypes.h
"
26
#include <unordered_set>
27
28
namespace
catapult
{
namespace
validators {
29
30
// region MosaicChangeTransaction
31
35
DECLARE_STATEFUL_VALIDATOR
(ProperMosaic, model::MosaicRequiredNotification)();
36
37
// endregion
38
39
// region MosaicDefinitionTransaction
40
46
DECLARE_STATELESS_VALIDATOR
(MosaicProperties, model::MosaicPropertiesNotification)(
47
uint8_t maxDivisibility,
48
BlockDuration
maxMosaicDuration
);
49
52
DECLARE_STATELESS_VALIDATOR
(MosaicId, model::MosaicNonceNotification)();
53
56
DECLARE_STATEFUL_VALIDATOR
(MosaicAvailability, model::MosaicDefinitionNotification)();
57
60
DECLARE_STATEFUL_VALIDATOR
(MosaicDuration, model::MosaicDefinitionNotification)(
BlockDuration
maxMosaicDuration
);
61
62
// endregion
63
64
// region MosaicSupplyChangeTransaction
65
69
DECLARE_STATELESS_VALIDATOR
(MosaicSupplyChange, model::MosaicSupplyChangeNotification)();
70
74
DECLARE_STATEFUL_VALIDATOR
(MosaicTransfer,
model::BalanceTransferNotification
)(
UnresolvedMosaicId
currencyMosaicId);
75
81
DECLARE_STATEFUL_VALIDATOR
(MosaicSupplyChangeAllowed, model::MosaicSupplyChangeNotification)(
Amount
maxAtomicUnits);
82
85
DECLARE_STATEFUL_VALIDATOR
(MaxMosaicsSupplyChange, model::MosaicSupplyChangeNotification)(uint16_t maxMosaics);
86
87
// endregion
88
89
// region TransferTransaction
90
93
DECLARE_STATEFUL_VALIDATOR
(MaxMosaicsBalanceTransfer,
model::BalanceTransferNotification
)(uint16_t maxMosaics);
94
95
// endregion
96
}}
catapult::Amount
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition:
src/catapult/types.h:76
catapult::BlockDuration
utils::BaseValue< uint64_t, BlockDuration_tag > BlockDuration
Definition:
src/catapult/types.h:88
catapult::validators::DECLARE_STATEFUL_VALIDATOR
DECLARE_STATEFUL_VALIDATOR(Address, Notification)(model
Definition:
AddressValidator.cpp:29
catapult::validators::maxMosaicDuration
BlockDuration maxMosaicDuration
Definition:
MosaicPropertiesValidator.cpp:52
catapult::validators::BalanceTransferNotification
model::BalanceTransferNotification BalanceTransferNotification
Definition:
BalanceValidator.cpp:28
Notifications.h
ValidatorTypes.h
catapult::validators::DECLARE_STATELESS_VALIDATOR
DECLARE_STATELESS_VALIDATOR(MaxTransactions, Notification)(uint32_t maxTransactions)
Definition:
MaxTransactionsValidator.cpp:27
catapult
Definition:
AddressExtractionExtension.cpp:28
Results.h
MosaicNotifications.h
catapult::validators::UnresolvedMosaicId
UnresolvedMosaicId
Definition:
AccountRestrictionRedundantModificationValidator.cpp:78
catapult-server
plugins
txes
mosaic
src
validators
Validators.h
Generated by
1.8.16