ledger-core
|
Public Member Functions | |
EthereumLikeTransactionBuilder (const std::shared_ptr< api::ExecutionContext > &context, const api::Currency ¶ms, const std::shared_ptr< EthereumLikeBlockchainExplorer > &explorer, const std::shared_ptr< spdlog::logger > &logger, const EthereumLikeTransactionBuildFunction &buildFunction) | |
EthereumLikeTransactionBuilder (const EthereumLikeTransactionBuilder &cpy) | |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | sendToAddress (const std::shared_ptr< api::Amount > &amount, const std::string &address) override |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | wipeToAddress (const std::string &address) override |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | setGasPrice (const std::shared_ptr< api::Amount > &gasPrice) override |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | setGasLimit (const std::shared_ptr< api::Amount > &gasLimit) override |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | setInputData (const std::vector< uint8_t > &data) override |
void | build (const std::shared_ptr< api::EthereumLikeTransactionCallback > &callback) override |
Future< std::shared_ptr< api::EthereumLikeTransaction > > | build () |
std::shared_ptr< api::EthereumLikeTransactionBuilder > | clone () override |
void | reset () override |
![]() | |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | sendToAddress (const std::shared_ptr< Amount > &amount, const std::string &address)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | setGasPrice (const std::shared_ptr< Amount > &gasPrice)=0 |
virtual std::shared_ptr< EthereumLikeTransactionBuilder > | setGasLimit (const std::shared_ptr< Amount > &gasLimit)=0 |
virtual void | build (const std::shared_ptr< EthereumLikeTransactionCallback > &callback)=0 |
Static Public Member Functions | |
static std::shared_ptr< api::EthereumLikeTransaction > | parseRawTransaction (const api::Currency ¤cy, const std::vector< uint8_t > &rawTransaction, bool isSigned) |
![]() | |
static std::shared_ptr< EthereumLikeTransaction > | parseRawUnsignedTransaction (const Currency ¤cy, const std::vector< uint8_t > &rawTransaction) |
static std::shared_ptr< EthereumLikeTransaction > | parseRawSignedTransaction (const Currency ¤cy, const std::vector< uint8_t > &rawTransaction) |
|
overridevirtual |
Create a clone of this builder.
Implements ledger::core::api::EthereumLikeTransactionBuilder.
|
overridevirtual |
Reset the current instance to its initial state
Implements ledger::core::api::EthereumLikeTransactionBuilder.
|
overridevirtual |
Set input data the originator wants to embed in transaction.
Implements ledger::core::api::EthereumLikeTransactionBuilder.
|
overridevirtual |
Send all available funds to the given address.
address | Address of the recipient |
Implements ledger::core::api::EthereumLikeTransactionBuilder.