CatapultServer
v0.5.0.1 (Elephant)
|
Builder for an account mosaic restriction transaction. More...
Public Types | |
using | Transaction = model::AccountMosaicRestrictionTransaction |
using | EmbeddedTransaction = model::EmbeddedAccountMosaicRestrictionTransaction |
Public Member Functions | |
AccountMosaicRestrictionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setRestrictionType (model::AccountRestrictionType restrictionType) |
Sets the account restriction type to restrictionType. More... | |
void | addModification (const model::AccountMosaicRestrictionModification &modification) |
Adds modification to account restriction modifications. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new account mosaic restriction transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded account mosaic restriction 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 | |
model::AccountRestrictionType | m_restrictionType |
std::vector< model::AccountMosaicRestrictionModification > | 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 an account mosaic restriction transaction.
using catapult::builders::AccountMosaicRestrictionBuilder::EmbeddedTransaction = model::EmbeddedAccountMosaicRestrictionTransaction |
using catapult::builders::AccountMosaicRestrictionBuilder::Transaction = model::AccountMosaicRestrictionTransaction |
catapult::builders::AccountMosaicRestrictionBuilder::AccountMosaicRestrictionBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates an account mosaic restriction builder for building an account mosaic restriction transaction from signer for the network specified by networkIdentifier.
void catapult::builders::AccountMosaicRestrictionBuilder::addModification | ( | const model::AccountMosaicRestrictionModification & | modification | ) |
Adds modification to account restriction modifications.
std::unique_ptr< AccountMosaicRestrictionBuilder::Transaction > catapult::builders::AccountMosaicRestrictionBuilder::build | ( | ) | const |
Builds a new account mosaic restriction transaction.
std::unique_ptr< AccountMosaicRestrictionBuilder::EmbeddedTransaction > catapult::builders::AccountMosaicRestrictionBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded account mosaic restriction transaction.
|
private |
|
private |
void catapult::builders::AccountMosaicRestrictionBuilder::setRestrictionType | ( | model::AccountRestrictionType | restrictionType | ) |
Sets the account restriction type to restrictionType.
size_t catapult::builders::AccountMosaicRestrictionBuilder::size | ( | ) | const |
Returns size of account mosaic restriction transaction.
|
private |
|
private |
|
private |