CatapultServer  v0.5.0.1 (Elephant)
txes/namespace/src/validators/Validators.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "Results.h"
26 #include <unordered_set>
27 
28 namespace catapult { namespace validators {
29 
32  DECLARE_STATELESS_VALIDATOR(NamespaceType, model::NamespaceNotification)();
33 
39  DECLARE_STATELESS_VALIDATOR(NamespaceName, model::NamespaceNameNotification)(
40  uint8_t maxNameSize,
41  const std::unordered_set<std::string>& reservedRootNamespaceNames);
42 
46  DECLARE_STATELESS_VALIDATOR(RootNamespace, model::RootNamespaceNotification)(BlockDuration maxDuration);
47 
50  DECLARE_STATEFUL_VALIDATOR(RootNamespaceAvailability, model::RootNamespaceNotification)();
51 
54  DECLARE_STATEFUL_VALIDATOR(NamespaceDurationOverflow, model::RootNamespaceNotification)(BlockDuration maxNamespaceDuration);
55 
58  DECLARE_STATEFUL_VALIDATOR(ChildNamespaceAvailability, model::ChildNamespaceNotification)();
59 
62  DECLARE_STATEFUL_VALIDATOR(RootNamespaceMaxChildren, model::ChildNamespaceNotification)(uint16_t maxChildren);
63 
66  DECLARE_STATELESS_VALIDATOR(AliasAction, model::AliasOwnerNotification)();
67 
73  DECLARE_STATEFUL_VALIDATOR(AliasAvailability, model::AliasOwnerNotification)();
74 
77  DECLARE_STATEFUL_VALIDATOR(UnlinkAliasedAddressConsistency, model::AliasedAddressNotification)();
78 
81  DECLARE_STATEFUL_VALIDATOR(UnlinkAliasedMosaicIdConsistency, model::AliasedMosaicIdNotification)();
82 
86 }}
catapult::validators::reservedRootNamespaceNames
const NameSet & reservedRootNamespaceNames
Definition: NamespaceNameValidator.cpp:31
catapult::BlockDuration
utils::BaseValue< uint64_t, BlockDuration_tag > BlockDuration
Definition: src/catapult/types.h:88
AliasNotifications.h
catapult::validators::DECLARE_STATEFUL_VALIDATOR
DECLARE_STATEFUL_VALIDATOR(Address, Notification)(model
Definition: AddressValidator.cpp:29
catapult::model::NamespaceType
NamespaceType
Namespace types.
Definition: NamespaceTypes.h:27
catapult::model::AliasedMosaicIdNotification
AliasedDataNotification< MosaicId, Namespace_Aliased_MosaicId_Notification > AliasedMosaicIdNotification
Notification of an aliased mosaic id.
Definition: AliasNotifications.h:122
Results.h
catapult::model::AliasedAddressNotification
AliasedDataNotification< Address, Namespace_Aliased_Address_Notification > AliasedAddressNotification
Notification of an aliased address.
Definition: AliasNotifications.h:119
ValidatorTypes.h
catapult::validators::DECLARE_STATELESS_VALIDATOR
DECLARE_STATELESS_VALIDATOR(MaxTransactions, Notification)(uint32_t maxTransactions)
Definition: MaxTransactionsValidator.cpp:27
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::AliasAction
AliasAction
Alias transaction action.
Definition: NamespaceTypes.h:36
NamespaceNotifications.h