CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace builders {
54 std::unique_ptr<Transaction>
build()
const;
60 template<
typename TTransaction>
63 template<
typename TTransaction>
64 std::unique_ptr<TTransaction>
buildImpl()
const;
size_t sizeImpl() const
Definition: RegisterNamespaceBuilder.cpp:69
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
model::EmbeddedRegisterNamespaceTransaction EmbeddedTransaction
Definition: RegisterNamespaceBuilder.h:31
NamespaceId m_namespaceId
Definition: RegisterNamespaceBuilder.h:70
std::vector< uint8_t > m_name
Definition: RegisterNamespaceBuilder.h:71
BlockDuration m_duration
Definition: RegisterNamespaceBuilder.h:68
Builder for a register namespace transaction.
Definition: RegisterNamespaceBuilder.h:28
NamespaceId m_parentId
Definition: RegisterNamespaceBuilder.h:69
model::RegisterNamespaceTransaction Transaction
Definition: RegisterNamespaceBuilder.h:30
NamespaceType
Namespace types.
Definition: NamespaceTypes.h:27
std::unique_ptr< TTransaction > buildImpl() const
void setParentId(NamespaceId parentId)
Sets the id of the parent namespace to parentId and namespaceType to child.
Definition: RegisterNamespaceBuilder.cpp:40
size_t size() const
Definition: RegisterNamespaceBuilder.cpp:56
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
std::string m_name
Definition: JointValidator.cpp:90
std::unique_ptr< Transaction > build() const
Builds a new register namespace transaction.
Definition: RegisterNamespaceBuilder.cpp:60
NamespaceId GenerateNamespaceId(NamespaceId parentId, const RawString &name) noexcept
Generates a namespace id given parentId and namespace name.
Definition: NamespaceIdGenerator.cpp:31
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded register namespace transaction.
Definition: RegisterNamespaceBuilder.cpp:64
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
model::NamespaceType m_namespaceType
Definition: RegisterNamespaceBuilder.h:67
void setName(const RawBuffer &name)
Sets the namespace name to name.
Definition: RegisterNamespaceBuilder.cpp:45
Definition: AddressExtractionExtension.cpp:28
RegisterNamespaceBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: RegisterNamespaceBuilder.cpp:26
void setDuration(BlockDuration duration)
Sets the namespace duration to duration and namespaceType to root.
Definition: RegisterNamespaceBuilder.cpp:35
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62