|
CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a hash lock transaction. More...


Public Types | |
| using | Transaction = model::HashLockTransaction |
| using | EmbeddedTransaction = model::EmbeddedHashLockTransaction |
Public Member Functions | |
| HashLockBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
| void | setMosaic (const model::UnresolvedMosaic &mosaic) |
| Sets the lock mosaic to mosaic. More... | |
| void | setDuration (BlockDuration duration) |
| Sets the number of blocks for which a lock should be valid to duration. More... | |
| void | setHash (const Hash256 &hash) |
| Sets the lock hash to hash. More... | |
| size_t | size () const |
| std::unique_ptr< Transaction > | build () const |
| Builds a new hash lock transaction. More... | |
| std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
| Builds a new embedded hash lock 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::UnresolvedMosaic | m_mosaic |
| BlockDuration | m_duration |
| Hash256 | m_hash |
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 hash lock transaction.
| using catapult::builders::HashLockBuilder::EmbeddedTransaction = model::EmbeddedHashLockTransaction |
| using catapult::builders::HashLockBuilder::Transaction = model::HashLockTransaction |
| catapult::builders::HashLockBuilder::HashLockBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
| const Key & | signer | ||
| ) |
Creates a hash lock builder for building a hash lock transaction from signer for the network specified by networkIdentifier.
| std::unique_ptr< HashLockBuilder::Transaction > catapult::builders::HashLockBuilder::build | ( | ) | const |
Builds a new hash lock transaction.
| std::unique_ptr< HashLockBuilder::EmbeddedTransaction > catapult::builders::HashLockBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded hash lock transaction.
|
private |
|
private |
| void catapult::builders::HashLockBuilder::setDuration | ( | BlockDuration | duration | ) |
Sets the number of blocks for which a lock should be valid to duration.
| void catapult::builders::HashLockBuilder::setHash | ( | const Hash256 & | hash | ) |
Sets the lock hash to hash.
| void catapult::builders::HashLockBuilder::setMosaic | ( | const model::UnresolvedMosaic & | mosaic | ) |
Sets the lock mosaic to mosaic.
| size_t catapult::builders::HashLockBuilder::size | ( | ) | const |
Returns size of hash lock transaction.

|
private |

|
private |
|
private |
|
private |