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

Namespaces

 catapult
 
 catapult::validators
 

Macros

#define DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_TYPE_VALIDATOR(VALIDATOR_NAME, NOTIFICATION_TYPE, RESTRICTION_VALUE_TYPE)
 

Functions

 catapult::validators::DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_TYPE_VALIDATOR (AccountAddressRestrictionModificationTypes, model::ModifyAccountAddressRestrictionNotification, UnresolvedAddress) DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_TYPE_VALIDATOR(AccountMosaicRestrictionModificationTypes
 

Macro Definition Documentation

◆ DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_TYPE_VALIDATOR

#define DEFINE_ACCOUNT_RESTRICTION_MODIFICATION_TYPE_VALIDATOR (   VALIDATOR_NAME,
  NOTIFICATION_TYPE,
  RESTRICTION_VALUE_TYPE 
)
Value:
DEFINE_STATELESS_VALIDATOR_WITH_TYPE(VALIDATOR_NAME, NOTIFICATION_TYPE, [](const auto& notification) { \
auto areAllValid = AreAllAccountRestrictionModificationTypesValid<RESTRICTION_VALUE_TYPE>( \
notification.ModificationsPtr, \
notification.ModificationsCount); \
return areAllValid ? ValidationResult::Success : Failure_RestrictionAccount_Modification_Type_Invalid; \
});
DEFINE_STATELESS_VALIDATOR_WITH_TYPE
#define DEFINE_STATELESS_VALIDATOR_WITH_TYPE(NAME, NOTIFICATION_TYPE, HANDLER)
Defines a functional stateless validator with NAME around HANDLER for notifications of type NOTIFICAT...
Definition: ValidatorTypes.h:112