CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace builders {
60 std::unique_ptr<Transaction>
build()
const;
66 template<
typename TTransaction>
69 template<
typename TTransaction>
70 std::unique_ptr<TTransaction>
buildImpl()
const;
void setMosaic(const model::UnresolvedMosaic &mosaic)
Sets the lock mosaic to mosaic.
Definition: SecretLockBuilder.cpp:34
Hash256 m_secret
Definition: SecretLockBuilder.h:76
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
size_t sizeImpl() const
Definition: SecretLockBuilder.cpp:67
SecretLockBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: SecretLockBuilder.cpp:25
void setHashAlgorithm(model::LockHashAlgorithm hashAlgorithm)
Sets the hash alghoritm to hashAlgorithm.
Definition: SecretLockBuilder.cpp:42
void setSecret(const Hash256 &secret)
Sets the secret to secret.
Definition: SecretLockBuilder.cpp:46
model::UnresolvedMosaic m_mosaic
Definition: SecretLockBuilder.h:73
model::LockHashAlgorithm m_hashAlgorithm
Definition: SecretLockBuilder.h:75
BlockDuration m_duration
Definition: SecretLockBuilder.h:74
size_t size() const
Definition: SecretLockBuilder.cpp:54
Builder for a secret lock transaction.
Definition: SecretLockBuilder.h:28
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded secret lock transaction.
Definition: SecretLockBuilder.cpp:62
UnresolvedAddress m_recipient
Definition: SecretLockBuilder.h:77
model::EmbeddedSecretLockTransaction EmbeddedTransaction
Definition: SecretLockBuilder.h:31
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
void setRecipient(const UnresolvedAddress &recipient)
Sets the recipient of the locked mosaic to recipient.
Definition: SecretLockBuilder.cpp:50
std::unique_ptr< Transaction > build() const
Builds a new secret lock transaction.
Definition: SecretLockBuilder.cpp:58
void setDuration(BlockDuration duration)
Sets the number of blocks for which a lock should be valid to duration.
Definition: SecretLockBuilder.cpp:38
Definition: AddressExtractionExtension.cpp:28
model::SecretLockTransaction Transaction
Definition: SecretLockBuilder.h:30
std::unique_ptr< TTransaction > buildImpl() const
LockHashAlgorithm
Lock secret hash algorithm.
Definition: LockHashAlgorithm.h:27
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28