CatapultServer  v0.5.0.1 (Elephant)
catapult::builders::AddressAliasBuilder Class Reference

Builder for an address alias transaction. More...

Inheritance diagram for catapult::builders::AddressAliasBuilder:
Collaboration diagram for catapult::builders::AddressAliasBuilder:

Public Types

using Transaction = model::AddressAliasTransaction
 
using EmbeddedTransaction = model::EmbeddedAddressAliasTransaction
 

Public Member Functions

 AddressAliasBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 
void setAliasAction (model::AliasAction aliasAction)
 Sets the alias action to aliasAction. More...
 
void setNamespaceId (NamespaceId namespaceId)
 Sets the id of a namespace that will become an alias to namespaceId. More...
 
void setAddress (const Address &address)
 Sets the aliased address to address. More...
 
size_t size () const
 
std::unique_ptr< Transactionbuild () const
 Builds a new address alias transaction. More...
 
std::unique_ptr< EmbeddedTransactionbuildEmbedded () const
 Builds a new embedded address alias transaction. More...
 
- Public Member Functions inherited from catapult::builders::TransactionBuilder
 TransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 Creates a transaction builder with networkIdentifier and signer. More...
 
const Keysigner () const
 Returns signer. More...
 
void setDeadline (catapult::Timestamp deadline)
 Sets transaction deadline. More...
 
void setMaxFee (catapult::Amount fee)
 Sets maximum transaction fee. More...
 

Private Member Functions

template<typename TTransaction >
size_t sizeImpl () const
 
template<typename TTransaction >
std::unique_ptr< TTransaction > buildImpl () const
 
template<typename TransactionType >
std::unique_ptr< TransactionTypebuildImpl () const
 

Private Attributes

model::AliasAction m_aliasAction
 
NamespaceId m_namespaceId
 
Address m_address
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::builders::TransactionBuilder
template<typename TTransaction >
std::unique_ptr< TTransaction > createTransaction (size_t size) const
 
- Static Protected Member Functions inherited from catapult::builders::TransactionBuilder
template<typename T , typename Predicate >
static void InsertSorted (std::vector< T > &vector, const T &element, Predicate orderPredicate)
 

Detailed Description

Builder for an address alias transaction.

Member Typedef Documentation

◆ EmbeddedTransaction

using catapult::builders::AddressAliasBuilder::EmbeddedTransaction = model::EmbeddedAddressAliasTransaction

◆ Transaction

using catapult::builders::AddressAliasBuilder::Transaction = model::AddressAliasTransaction

Constructor & Destructor Documentation

◆ AddressAliasBuilder()

catapult::builders::AddressAliasBuilder::AddressAliasBuilder ( model::NetworkIdentifier  networkIdentifier,
const Key signer 
)

Creates an address alias builder for building an address alias transaction from signer for the network specified by networkIdentifier.

Member Function Documentation

◆ build()

std::unique_ptr< AddressAliasBuilder::Transaction > catapult::builders::AddressAliasBuilder::build ( ) const

Builds a new address alias transaction.

◆ buildEmbedded()

std::unique_ptr< AddressAliasBuilder::EmbeddedTransaction > catapult::builders::AddressAliasBuilder::buildEmbedded ( ) const

Builds a new embedded address alias transaction.

◆ buildImpl() [1/2]

template<typename TTransaction >
std::unique_ptr<TTransaction> catapult::builders::AddressAliasBuilder::buildImpl ( ) const
private

◆ buildImpl() [2/2]

template<typename TransactionType >
std::unique_ptr<TransactionType> catapult::builders::AddressAliasBuilder::buildImpl ( ) const
private

◆ setAddress()

void catapult::builders::AddressAliasBuilder::setAddress ( const Address address)

Sets the aliased address to address.

◆ setAliasAction()

void catapult::builders::AddressAliasBuilder::setAliasAction ( model::AliasAction  aliasAction)

Sets the alias action to aliasAction.

◆ setNamespaceId()

void catapult::builders::AddressAliasBuilder::setNamespaceId ( NamespaceId  namespaceId)

Sets the id of a namespace that will become an alias to namespaceId.

◆ size()

size_t catapult::builders::AddressAliasBuilder::size ( ) const

Returns size of address alias transaction.

Note
This returns size of a normal transaction not embedded transaction.
Here is the caller graph for this function:

◆ sizeImpl()

template<typename TransactionType >
size_t catapult::builders::AddressAliasBuilder::sizeImpl ( ) const
private
Here is the call graph for this function:

Member Data Documentation

◆ m_address

Address catapult::builders::AddressAliasBuilder::m_address
private

◆ m_aliasAction

model::AliasAction catapult::builders::AddressAliasBuilder::m_aliasAction
private

◆ m_namespaceId

NamespaceId catapult::builders::AddressAliasBuilder::m_namespaceId
private

The documentation for this class was generated from the following files: