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

Public Member Functions

virtual std::shared_ptr< TezosLikeTransactionBuildersetType (TezosOperationTag type)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuildersendToAddress (const std::shared_ptr< Amount > &amount, const std::string &address)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuilderwipeToAddress (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
 
virtual std::shared_ptr< TezosLikeTransactionBuilderclone ()=0
 
virtual void reset ()=0
 

Static Public Member Functions

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

◆ build()

virtual void ledger::core::api::TezosLikeTransactionBuilder::build ( const std::shared_ptr< TezosLikeTransactionCallback > &  callback)
pure virtual

Build a transaction from the given builder parameters.

◆ clone()

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

Creates a clone of this builder.

Returns
A copy of the current builder instance.

Implemented in ledger::core::TezosLikeTransactionBuilder.

◆ reset()

virtual void ledger::core::api::TezosLikeTransactionBuilder::reset ( )
pure virtual

Reset the current instance to its initial state

Implemented in ledger::core::TezosLikeTransactionBuilder.

◆ sendToAddress()

virtual std::shared_ptr<TezosLikeTransactionBuilder> ledger::core::api::TezosLikeTransactionBuilder::sendToAddress ( const std::shared_ptr< Amount > &  amount,
const std::string &  address 
)
pure virtual

Send funds to the given address. This method can be called multiple times to send to multiple addresses.

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

◆ setFees()

virtual std::shared_ptr<TezosLikeTransactionBuilder> ledger::core::api::TezosLikeTransactionBuilder::setFees ( const std::shared_ptr< Amount > &  fees)
pure virtual

Set fees (in drop) the originator is willing to pay

Returns
A reference on the same builder in order to chain calls.

◆ setGasLimit()

virtual std::shared_ptr<TezosLikeTransactionBuilder> ledger::core::api::TezosLikeTransactionBuilder::setGasLimit ( const std::shared_ptr< Amount > &  gasLimit)
pure virtual

Set gas limit the originator is not willing to exceed.

Returns
A reference on the same builder in order to chain calls.

◆ setStorageLimit()

virtual std::shared_ptr<TezosLikeTransactionBuilder> ledger::core::api::TezosLikeTransactionBuilder::setStorageLimit ( const std::shared_ptr< BigInt > &  storageLimit)
pure virtual

Set storage limit the originator is not willing to exceed. Reference : https://tezos.gitlab.io/zeronet/whitedoc/michelson.html

Returns
A reference on the same builder in order to chain calls.

◆ setType()

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

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

Implemented in ledger::core::TezosLikeTransactionBuilder.

◆ wipeToAddress()

virtual std::shared_ptr<TezosLikeTransactionBuilder> ledger::core::api::TezosLikeTransactionBuilder::wipeToAddress ( const std::string &  address)
pure virtual

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.

Implemented in ledger::core::TezosLikeTransactionBuilder.


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