CatapultServer  v0.5.0.1 (Elephant)
txes/restriction_account/src/validators/Validators.h File Reference
Include dependency graph for txes/restriction_account/src/validators/Validators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::validators
 

Macros

#define DECLARE_SHARED_VALIDATORS(VALUE_NAME)
 

Functions

 catapult::validators::DECLARE_STATELESS_VALIDATOR (AccountRestrictionType, model::AccountRestrictionTypeNotification)()
 
DECLARE_STATELESS_VALIDATOR(AccountAddressRestrictionNoSelfModification, model::ModifyAccountAddressRestrictionValueNotification)(model catapult::validators::DECLARE_STATEFUL_VALIDATOR (AddressInteraction, model::AddressInteractionNotification)()
 
 catapult::validators::DECLARE_STATEFUL_VALIDATOR (MosaicRecipient, model::BalanceTransferNotification)()
 
 catapult::validators::DECLARE_STATELESS_VALIDATOR (AccountOperationRestrictionModificationValues, model::ModifyAccountOperationRestrictionNotification)()
 
 catapult::validators::DECLARE_STATEFUL_VALIDATOR (Transaction, model::TransactionNotification)()
 
 catapult::validators::DECLARE_STATEFUL_VALIDATOR (AccountOperationRestrictionNoSelfBlocking, model::ModifyAccountOperationRestrictionValueNotification)()
 

Macro Definition Documentation

◆ DECLARE_SHARED_VALIDATORS

#define DECLARE_SHARED_VALIDATORS (   VALUE_NAME)
Value:
/* Validator that applies to modify account restriction notifications and validates that: */ \
/* - all account restriction modification types are valid */ \
DECLARE_STATELESS_VALIDATOR( \
Account##VALUE_NAME##RestrictionModificationTypes, \
model::ModifyAccount##VALUE_NAME##RestrictionNotification)(); \
\
/* Validator that applies to modify account restriction notifications and validates that: */ \
/* - there is no redundant restriction modification */ \
DECLARE_STATEFUL_VALIDATOR( \
Account##VALUE_NAME##RestrictionRedundantModification, \
model::ModifyAccount##VALUE_NAME##RestrictionNotification)(); \
\
/* Validator that applies to modify account restriction value notifications and validates that: */ \
/* - add modification does not add a known value */ \
/* - delete modification does not delete an unknown value */ \
DECLARE_STATEFUL_VALIDATOR( \
Account##VALUE_NAME##RestrictionValueModification, \
model::ModifyAccount##VALUE_NAME##RestrictionValueNotification)(); \
\
/* Validator that applies to modify account restriction notifications and validates that: */ \
/* - the maximum number of modifications (\a maxAccountRestrictionValues) is not exceeded */ \
/* - the maximum number of account restriction values (\a maxAccountRestrictionValues) is not exeeded */ \
DECLARE_STATEFUL_VALIDATOR(MaxAccount##VALUE_NAME##RestrictionValues, model::ModifyAccount##VALUE_NAME##RestrictionNotification)( \
uint16_t maxAccountRestrictionValues);