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

Builder for a modify multisig account transaction. More...

Inheritance diagram for catapult::builders::ModifyMultisigAccountBuilder:
Collaboration diagram for catapult::builders::ModifyMultisigAccountBuilder:

Public Types

using Transaction = model::ModifyMultisigAccountTransaction
 
using EmbeddedTransaction = model::EmbeddedModifyMultisigAccountTransaction
 

Public Member Functions

 ModifyMultisigAccountBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer)
 
void setMinRemovalDelta (int8_t minRemovalDelta)
 Sets the relative change of the minimal number of cosignatories required when removing an account to minRemovalDelta. More...
 
void setMinApprovalDelta (int8_t minApprovalDelta)
 Sets the relative change of the minimal number of cosignatories required when approving a transaction to minApprovalDelta. More...
 
void addModification (const model::CosignatoryModification &modification)
 Adds modification to attached cosignatory modifications. More...
 
size_t size () const
 
std::unique_ptr< Transactionbuild () const
 Builds a new modify multisig account transaction. More...
 
std::unique_ptr< EmbeddedTransactionbuildEmbedded () const
 Builds a new embedded modify multisig account 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

int8_t m_minRemovalDelta
 
int8_t m_minApprovalDelta
 
std::vector< model::CosignatoryModificationm_modifications
 

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 a modify multisig account transaction.

Member Typedef Documentation

◆ EmbeddedTransaction

using catapult::builders::ModifyMultisigAccountBuilder::EmbeddedTransaction = model::EmbeddedModifyMultisigAccountTransaction

◆ Transaction

using catapult::builders::ModifyMultisigAccountBuilder::Transaction = model::ModifyMultisigAccountTransaction

Constructor & Destructor Documentation

◆ ModifyMultisigAccountBuilder()

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

Creates a modify multisig account builder for building a modify multisig account transaction from signer for the network specified by networkIdentifier.

Member Function Documentation

◆ addModification()

void catapult::builders::ModifyMultisigAccountBuilder::addModification ( const model::CosignatoryModification modification)

Adds modification to attached cosignatory modifications.

◆ build()

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

Builds a new modify multisig account transaction.

◆ buildEmbedded()

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

Builds a new embedded modify multisig account transaction.

◆ buildImpl() [1/2]

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

◆ buildImpl() [2/2]

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

◆ setMinApprovalDelta()

void catapult::builders::ModifyMultisigAccountBuilder::setMinApprovalDelta ( int8_t  minApprovalDelta)

Sets the relative change of the minimal number of cosignatories required when approving a transaction to minApprovalDelta.

◆ setMinRemovalDelta()

void catapult::builders::ModifyMultisigAccountBuilder::setMinRemovalDelta ( int8_t  minRemovalDelta)

Sets the relative change of the minimal number of cosignatories required when removing an account to minRemovalDelta.

◆ size()

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

Returns size of modify multisig account 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::ModifyMultisigAccountBuilder::sizeImpl ( ) const
private
Here is the call graph for this function:

Member Data Documentation

◆ m_minApprovalDelta

int8_t catapult::builders::ModifyMultisigAccountBuilder::m_minApprovalDelta
private

◆ m_minRemovalDelta

int8_t catapult::builders::ModifyMultisigAccountBuilder::m_minRemovalDelta
private

◆ m_modifications

std::vector<model::CosignatoryModification> catapult::builders::ModifyMultisigAccountBuilder::m_modifications
private

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