CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace builders {
55 std::unique_ptr<Transaction>
build()
const;
61 template<
typename TTransaction>
64 template<
typename TTransaction>
65 std::unique_ptr<TTransaction>
buildImpl()
const;
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
size_t size() const
Definition: TransferBuilder.cpp:53
size_t sizeImpl() const
Definition: TransferBuilder.cpp:66
void addMosaic(const model::UnresolvedMosaic &mosaic)
Adds mosaic to attached mosaics.
Definition: TransferBuilder.cpp:47
Account restriction type is a transaction type.
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
model::TransferTransaction Transaction
Definition: TransferBuilder.h:31
std::unique_ptr< Transaction > build() const
Builds a new transfer transaction.
Definition: TransferBuilder.cpp:57
MosaicT< UnresolvedMosaicId > UnresolvedMosaic
Definition: Mosaic.h:39
TransferBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: TransferBuilder.cpp:25
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded transfer transaction.
Definition: TransferBuilder.cpp:61
std::vector< uint8_t > m_message
Definition: TransferBuilder.h:69
void setRecipient(const UnresolvedAddress &recipient)
Sets the transaction recipient to recipient.
Definition: TransferBuilder.cpp:32
UnresolvedAddress m_recipient
Definition: TransferBuilder.h:68
Builder for a transfer transaction.
Definition: TransferBuilder.h:29
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
void setMessage(const RawBuffer &message)
Sets the transaction message to message.
Definition: TransferBuilder.cpp:36
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
std::vector< model::UnresolvedMosaic > m_mosaics
Definition: TransferBuilder.h:70
TMosaicId MosaicId
Mosaic id.
Definition: Mosaic.h:32
model::EmbeddedTransferTransaction EmbeddedTransaction
Definition: TransferBuilder.h:32
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
std::unique_ptr< TTransaction > buildImpl() const
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
static void InsertSorted(std::vector< T > &vector, const T &element, Predicate orderPredicate)
Definition: TransactionBuilder.h:83