ledger-core
Public Member Functions | Static Public Member Functions | List of all members
ledger::core::EthereumLikeTransactionBuilder Class Reference
+ Inheritance diagram for ledger::core::EthereumLikeTransactionBuilder:
+ Collaboration diagram for ledger::core::EthereumLikeTransactionBuilder:

Public Member Functions

 EthereumLikeTransactionBuilder (const std::shared_ptr< api::ExecutionContext > &context, const api::Currency &params, const std::shared_ptr< EthereumLikeBlockchainExplorer > &explorer, const std::shared_ptr< spdlog::logger > &logger, const EthereumLikeTransactionBuildFunction &buildFunction)
 
 EthereumLikeTransactionBuilder (const EthereumLikeTransactionBuilder &cpy)
 
std::shared_ptr< api::EthereumLikeTransactionBuildersendToAddress (const std::shared_ptr< api::Amount > &amount, const std::string &address) override
 
std::shared_ptr< api::EthereumLikeTransactionBuilderwipeToAddress (const std::string &address) override
 
std::shared_ptr< api::EthereumLikeTransactionBuildersetGasPrice (const std::shared_ptr< api::Amount > &gasPrice) override
 
std::shared_ptr< api::EthereumLikeTransactionBuildersetGasLimit (const std::shared_ptr< api::Amount > &gasLimit) override
 
std::shared_ptr< api::EthereumLikeTransactionBuildersetInputData (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::EthereumLikeTransactionBuilderclone () override
 
void reset () override
 
- Public Member Functions inherited from ledger::core::api::EthereumLikeTransactionBuilder
virtual std::shared_ptr< EthereumLikeTransactionBuildersendToAddress (const std::shared_ptr< Amount > &amount, const std::string &address)=0
 
virtual std::shared_ptr< EthereumLikeTransactionBuildersetGasPrice (const std::shared_ptr< Amount > &gasPrice)=0
 
virtual std::shared_ptr< EthereumLikeTransactionBuildersetGasLimit (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::EthereumLikeTransactionparseRawTransaction (const api::Currency &currency, const std::vector< uint8_t > &rawTransaction, bool isSigned)
 
- Static Public Member Functions inherited from ledger::core::api::EthereumLikeTransactionBuilder
static std::shared_ptr< EthereumLikeTransactionparseRawUnsignedTransaction (const Currency &currency, const std::vector< uint8_t > &rawTransaction)
 
static std::shared_ptr< EthereumLikeTransactionparseRawSignedTransaction (const Currency &currency, const std::vector< uint8_t > &rawTransaction)
 

Member Function Documentation

◆ clone()

std::shared_ptr< api::EthereumLikeTransactionBuilder > ledger::core::EthereumLikeTransactionBuilder::clone ( )
overridevirtual

Create a clone of this builder.

Returns
A copy of the current builder instance.

Implements ledger::core::api::EthereumLikeTransactionBuilder.

◆ reset()

void ledger::core::EthereumLikeTransactionBuilder::reset ( )
overridevirtual

Reset the current instance to its initial state

Implements ledger::core::api::EthereumLikeTransactionBuilder.

◆ setInputData()

std::shared_ptr< api::EthereumLikeTransactionBuilder > ledger::core::EthereumLikeTransactionBuilder::setInputData ( const std::vector< uint8_t > &  data)
overridevirtual

Set input data the originator wants to embed in transaction.

Implements ledger::core::api::EthereumLikeTransactionBuilder.

◆ wipeToAddress()

std::shared_ptr< api::EthereumLikeTransactionBuilder > ledger::core::EthereumLikeTransactionBuilder::wipeToAddress ( const std::string &  address)
overridevirtual

Send all available funds to the given address.

Parameters
addressAddress of the recipient
Returns
A reference on the same builder in order to chain calls.

Implements ledger::core::api::EthereumLikeTransactionBuilder.


The documentation for this class was generated from the following files: