CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
23 #include "catapult/state/MosaicEntry.h"
24 #include "catapult/state/RootNamespace.h"
27 #include <unordered_map>
30 namespace catapult {
namespace utils {
class ConfigurationBag; } }
32 namespace catapult {
namespace tools {
namespace nemgen {
44 using NamespaceIdToNameMap = std::unordered_map<NamespaceId, std::string, utils::BaseValueHasher<NamespaceId>>;
NamespaceId GenerateRootNamespaceId(const RawString &name) noexcept
Generates a root namespace id given name.
Definition: NamespaceIdGenerator.cpp:27
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
MosaicId GenerateMosaicId(const Key &owner, MosaicNonce nonce) noexcept
Generates a mosaic id given owner and nonce.
Definition: MosaicIdGenerator.cpp:26
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
A simple bag of properties.
Definition: ConfigurationBag.h:57
MosaicFlags
Mosaic property flags.
Definition: MosaicProperty.h:50
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
constexpr size_t Num_Mosaic_Properties
Number of available properties.
Definition: MosaicProperty.h:81
Mosaic supply is mutable.
static MosaicProperties FromValues(const PropertyValuesContainer &values)
Creates mosaic properties from values.
Definition: MosaicProperties.h:65
utils::BaseValue< uint32_t, MosaicNonce_tag > MosaicNonce
Definition: plugins/txes/mosaic/src/types.h:28
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
#define LOAD_NEMESIS_PROPERTY(NAME)
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Definition: AddressExtractionExtension.cpp:28
static auto FromString(const std::string &privateKey)
Creates a key pair from privateKey.
Definition: KeyPair.h:46
#define LOAD_CPP_PROPERTY(NAME)
std::array< uint64_t, Num_Mosaic_Properties > PropertyValuesContainer
Type of values container.
Definition: MosaicProperties.h:52
#define LOAD_OUTPUT_PROPERTY(NAME)
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
NamespacePath GenerateNamespacePath(const RawString &name)
Parses a unified namespace name into a path.
Definition: IdGenerator.cpp:75