CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a modify multisig account transaction. More...
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< Transaction > | build () const |
Builds a new modify multisig account transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () 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 Key & | signer () 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< TransactionType > | buildImpl () const |
Private Attributes | |
int8_t | m_minRemovalDelta |
int8_t | m_minApprovalDelta |
std::vector< model::CosignatoryModification > | m_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) |
Builder for a modify multisig account transaction.
using catapult::builders::ModifyMultisigAccountBuilder::EmbeddedTransaction = model::EmbeddedModifyMultisigAccountTransaction |
using catapult::builders::ModifyMultisigAccountBuilder::Transaction = model::ModifyMultisigAccountTransaction |
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.
void catapult::builders::ModifyMultisigAccountBuilder::addModification | ( | const model::CosignatoryModification & | modification | ) |
Adds modification to attached cosignatory modifications.
std::unique_ptr< ModifyMultisigAccountBuilder::Transaction > catapult::builders::ModifyMultisigAccountBuilder::build | ( | ) | const |
Builds a new modify multisig account transaction.
std::unique_ptr< ModifyMultisigAccountBuilder::EmbeddedTransaction > catapult::builders::ModifyMultisigAccountBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded modify multisig account transaction.
|
private |
|
private |
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.
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_t catapult::builders::ModifyMultisigAccountBuilder::size | ( | ) | const |
Returns size of modify multisig account transaction.
|
private |
|
private |
|
private |
|
private |