CatapultServer  v0.5.0.1 (Elephant)
NamespaceLifetimeConstraints.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "NamespaceConstants.h"
23 
24 namespace catapult { namespace model {
25 
28  public:
30  constexpr NamespaceLifetimeConstraints(BlockDuration maxDuration, BlockDuration gracePeriodDuration)
31  : MaxNamespaceDuration(maxDuration.unwrap() + gracePeriodDuration.unwrap())
32  {}
33 
34  public:
37  };
38 }}
NamespaceConstants.h
catapult::utils::BaseValue< uint64_t, BlockDuration_tag >
catapult::model::NamespaceLifetimeConstraints
Constraints for a namespace's lifetime.
Definition: NamespaceLifetimeConstraints.h:27
catapult::model::NamespaceLifetimeConstraints::NamespaceLifetimeConstraints
constexpr NamespaceLifetimeConstraints(BlockDuration maxDuration, BlockDuration gracePeriodDuration)
Creates constraints around maxDuration and gracePeriodDuration.
Definition: NamespaceLifetimeConstraints.h:30
catapult::model::NamespaceLifetimeConstraints::MaxNamespaceDuration
BlockDuration MaxNamespaceDuration
Maximum lifetime a namespace may have including the grace period.
Definition: NamespaceLifetimeConstraints.h:36
catapult
Definition: AddressExtractionExtension.cpp:28