CatapultServer  v0.5.0.1 (Elephant)
NamespaceConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <unordered_set>
24 
25 namespace catapult { namespace utils { class ConfigurationBag; } }
26 
27 namespace catapult { namespace config {
28 
31  public:
33  uint8_t MaxNameSize;
34 
37 
40 
42  std::unordered_set<std::string> ReservedRootNamespaceNames;
43 
46 
49 
52 
55 
56  private:
57  NamespaceConfiguration() = default;
58 
59  public:
62 
65  };
66 }}
catapult::config::NamespaceConfiguration::ReservedRootNamespaceNames
std::unordered_set< std::string > ReservedRootNamespaceNames
Reserved root namespaces that cannot be claimed.
Definition: NamespaceConfiguration.h:42
catapult::config::NamespaceConfiguration::MaxNamespaceDuration
utils::BlockSpan MaxNamespaceDuration
Maximum namespace duration.
Definition: NamespaceConfiguration.h:36
catapult::utils::VerifyBagSizeLte
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
catapult::config::NamespaceConfiguration::RootNamespaceRentalFeePerBlock
Amount RootNamespaceRentalFeePerBlock
Root namespace rental fee per block.
Definition: NamespaceConfiguration.h:48
catapult::config::NamespaceConfiguration::LoadFromBag
static NamespaceConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a namespace configuration from bag.
Definition: NamespaceConfiguration.cpp:31
catapult::config::NamespaceConfiguration::MaxChildNamespaces
uint16_t MaxChildNamespaces
Maximum number of children for a root namespace.
Definition: NamespaceConfiguration.h:54
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
catapult::config::NamespaceConfiguration::Uninitialized
static NamespaceConfiguration Uninitialized()
Creates an uninitialized namespace configuration.
Definition: NamespaceConfiguration.cpp:27
NamespaceConfiguration.h
catapult::utils::BaseValue< uint64_t, Amount_tag >
catapult::utils::BlockSpan
Represents a block duration.
Definition: BlockSpan.h:28
catapult::config::NamespaceConfiguration::ChildNamespaceRentalFee
Amount ChildNamespaceRentalFee
Child namespace rental fee.
Definition: NamespaceConfiguration.h:51
catapult::config::NamespaceConfiguration::NamespaceConfiguration
NamespaceConfiguration()=default
LOAD_PROPERTY
#define LOAD_PROPERTY(NAME)
catapult::config::NamespaceConfiguration::NamespaceRentalFeeSinkPublicKey
Key NamespaceRentalFeeSinkPublicKey
Public key of the namespace rental fee sink account.
Definition: NamespaceConfiguration.h:45
catapult::config::NamespaceConfiguration
Namespace plugin configuration settings.
Definition: NamespaceConfiguration.h:30
ConfigurationUtils.h
BlockSpan.h
ConfigurationBag.h
catapult::config::NamespaceConfiguration::MaxNameSize
uint8_t MaxNameSize
Maximum namespace and mosaic name size.
Definition: NamespaceConfiguration.h:33
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::config::NamespaceConfiguration::NamespaceGracePeriodDuration
utils::BlockSpan NamespaceGracePeriodDuration
Grace period during which time only the previous owner can renew an expired namespace.
Definition: NamespaceConfiguration.h:39