CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace builders {
31 using Transaction = model::AccountOperationRestrictionTransaction;
52 std::unique_ptr<Transaction>
build()
const;
58 template<
typename TTransaction>
61 template<
typename TTransaction>
62 std::unique_ptr<TTransaction>
buildImpl()
const;
size_t sizeImpl() const
Definition: AccountOperationRestrictionBuilder.cpp:52
void addModification(const model::AccountOperationRestrictionModification &modification)
Adds modification to account restriction modifications.
Definition: AccountOperationRestrictionBuilder.cpp:35
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
utils::ByteArray< Address_Decoded_Size, UnresolvedAddress_tag > UnresolvedAddress
Definition: src/catapult/types.h:66
AccountRestrictionModification< EntityType > AccountOperationRestrictionModification
Modification type used with account operation restriction transaction.
Definition: AccountOperationRestrictionTransaction.h:27
AccountOperationRestrictionBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: AccountOperationRestrictionBuilder.cpp:25
AccountRestrictionType
Account restriction types.
Definition: AccountRestrictionTypes.h:31
model::AccountOperationRestrictionTransaction Transaction
Definition: AccountOperationRestrictionBuilder.h:31
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded account operation restriction transaction.
Definition: AccountOperationRestrictionBuilder.cpp:47
model::AccountRestrictionType m_restrictionType
Definition: AccountOperationRestrictionBuilder.h:65
Builder for an account operation restriction transaction.
Definition: AccountOperationRestrictionBuilder.h:29
std::vector< model::AccountOperationRestrictionModification > m_modifications
Definition: AccountOperationRestrictionBuilder.h:66
const ObserverContext & m_context
Definition: AccountObserver.cpp:54
std::unique_ptr< TTransaction > buildImpl() const
std::unique_ptr< Transaction > build() const
Builds a new account operation restriction transaction.
Definition: AccountOperationRestrictionBuilder.cpp:43
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
model::EmbeddedAccountOperationRestrictionTransaction EmbeddedTransaction
Definition: AccountOperationRestrictionBuilder.h:32
Definition: AddressExtractionExtension.cpp:28
Binary layout for an account restriction modification.
Definition: AccountRestrictionTypes.h:61
void setRestrictionType(model::AccountRestrictionType restrictionType)
Sets the account restriction type to restrictionType.
Definition: AccountOperationRestrictionBuilder.cpp:31
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
size_t size() const
Definition: AccountOperationRestrictionBuilder.cpp:39