CatapultServer  v0.5.0.1 (Elephant)
AccountRestrictionValueModificationValidator.cpp File Reference
Include dependency graph for AccountRestrictionValueModificationValidator.cpp:

Namespaces

 catapult
 
 catapult::validators
 

Macros

#define DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_VALIDATOR(VALIDATOR_NAME, NOTIFICATION_TYPE, RESTRICTION_VALUE_TYPE)
 

Functions

 catapult::validators::DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_VALIDATOR (AccountAddressRestrictionValueModification, model::ModifyAccountAddressRestrictionValueNotification, Address) DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_VALIDATOR(AccountMosaicRestrictionValueModification
 

Macro Definition Documentation

◆ DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_VALIDATOR

#define DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_VALIDATOR (   VALIDATOR_NAME,
  NOTIFICATION_TYPE,
  RESTRICTION_VALUE_TYPE 
)
Value:
DEFINE_STATEFUL_VALIDATOR_WITH_TYPE(VALIDATOR_NAME, NOTIFICATION_TYPE, ([](const auto& notification, const auto& context) { \
return Validate<RESTRICTION_VALUE_TYPE, NOTIFICATION_TYPE>(notification, context); \
}));
DEFINE_STATEFUL_VALIDATOR_WITH_TYPE
#define DEFINE_STATEFUL_VALIDATOR_WITH_TYPE(NAME, NOTIFICATION_TYPE, HANDLER)
Defines a functional stateful validator with NAME around HANDLER for notifications of type NOTIFICATI...
Definition: ValidatorTypes.h:134