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

Public Member Functions

 TezosLikeTransactionBuilder (const std::string &senderAddress, const std::shared_ptr< api::ExecutionContext > &context, const api::Currency &params, const std::shared_ptr< TezosLikeBlockchainExplorer > &explorer, const std::shared_ptr< spdlog::logger > &logger, const TezosLikeTransactionBuildFunction &buildFunction, const std::string &protocolUpdate="")
 
 TezosLikeTransactionBuilder (const TezosLikeTransactionBuilder &cpy)
 
std::shared_ptr< api::TezosLikeTransactionBuildersetType (api::TezosOperationTag type) override
 
std::shared_ptr< api::TezosLikeTransactionBuildersendToAddress (const std::shared_ptr< api::Amount > &amount, const std::string &address) override
 
std::shared_ptr< api::TezosLikeTransactionBuilderwipeToAddress (const std::string &address) override
 
std::shared_ptr< api::TezosLikeTransactionBuildersetFees (const std::shared_ptr< api::Amount > &fees) override
 
std::shared_ptr< api::TezosLikeTransactionBuildersetGasLimit (const std::shared_ptr< api::Amount > &gasLimit) override
 
std::shared_ptr< api::TezosLikeTransactionBuildersetStorageLimit (const std::shared_ptr< api::BigInt > &storageLimit) override
 
void build (const std::shared_ptr< api::TezosLikeTransactionCallback > &callback) override
 
Future< std::shared_ptr< api::TezosLikeTransaction > > build ()
 
std::shared_ptr< api::TezosLikeTransactionBuilderclone () override
 
void reset () override
 
- Public Member Functions inherited from ledger::core::api::TezosLikeTransactionBuilder
virtual std::shared_ptr< TezosLikeTransactionBuildersendToAddress (const std::shared_ptr< Amount > &amount, const std::string &address)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuildersetFees (const std::shared_ptr< Amount > &fees)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuildersetGasLimit (const std::shared_ptr< Amount > &gasLimit)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuildersetStorageLimit (const std::shared_ptr< BigInt > &storageLimit)=0
 
virtual void build (const std::shared_ptr< TezosLikeTransactionCallback > &callback)=0
 

Static Public Member Functions

static std::shared_ptr< api::TezosLikeTransactionparseRawTransaction (const api::Currency &currency, const std::vector< uint8_t > &rawTransaction, bool isSigned, const std::string &protocolUpdate)
 
- Static Public Member Functions inherited from ledger::core::api::TezosLikeTransactionBuilder
static std::shared_ptr< TezosLikeTransactionparseRawUnsignedTransaction (const Currency &currency, const std::vector< uint8_t > &rawTransaction)
 
static std::shared_ptr< TezosLikeTransactionparseRawSignedTransaction (const Currency &currency, const std::vector< uint8_t > &rawTransaction)
 

Member Function Documentation

◆ clone()

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

Creates a clone of this builder.

Returns
A copy of the current builder instance.

Implements ledger::core::api::TezosLikeTransactionBuilder.

◆ reset()

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

Reset the current instance to its initial state

Implements ledger::core::api::TezosLikeTransactionBuilder.

◆ setType()

std::shared_ptr< api::TezosLikeTransactionBuilder > ledger::core::TezosLikeTransactionBuilder::setType ( api::TezosOperationTag  type)
overridevirtual

Set type of operation (transaction, origination, reveal ...) Default operation is "transaction" type

Implements ledger::core::api::TezosLikeTransactionBuilder.

◆ wipeToAddress()

std::shared_ptr< api::TezosLikeTransactionBuilder > ledger::core::TezosLikeTransactionBuilder::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::TezosLikeTransactionBuilder.


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