ledger-core
Public Member Functions | List of all members
ledger::core::api::TezosLikeAccount Class Referenceabstract

#include <TezosLikeAccount.hpp>

+ Inheritance diagram for ledger::core::api::TezosLikeAccount:

Public Member Functions

virtual void broadcastRawTransaction (const std::vector< uint8_t > &transaction, const std::shared_ptr< StringCallback > &callback)=0
 
virtual void broadcastTransaction (const std::shared_ptr< TezosLikeTransaction > &transaction, const std::shared_ptr< StringCallback > &callback)=0
 
virtual std::shared_ptr< TezosLikeTransactionBuilderbuildTransaction ()=0
 
virtual void getStorage (const std::string &address, const std::shared_ptr< BigIntCallback > &callback)=0
 
virtual void getEstimatedGasLimit (const std::string &address, const std::shared_ptr< BigIntCallback > &callback)=0
 
virtual void getFees (const std::shared_ptr< BigIntCallback > &callback)=0
 
virtual std::vector< std::shared_ptr< TezosLikeOriginatedAccount > > getOriginatedAccounts ()=0
 

Detailed Description

Class representing a Tezos account

Member Function Documentation

◆ getEstimatedGasLimit()

virtual void ledger::core::api::TezosLikeAccount::getEstimatedGasLimit ( const std::string &  address,
const std::shared_ptr< BigIntCallback > &  callback 
)
pure virtual

Get estimated gas limit to set so the transaction will succeed The passed address could be implicit address or contract This estimation is based on X last incoming txs (to address) that succeeded Note: same note as for getFees method on BitcoinLikeAccount

◆ getFees()

virtual void ledger::core::api::TezosLikeAccount::getFees ( const std::shared_ptr< BigIntCallback > &  callback)
pure virtual

Get fees from network

◆ getOriginatedAccounts()

virtual std::vector<std::shared_ptr<TezosLikeOriginatedAccount> > ledger::core::api::TezosLikeAccount::getOriginatedAccounts ( )
pure virtual

Get originated accounts by current account

Implemented in ledger::core::TezosLikeAccount.

◆ getStorage()

virtual void ledger::core::api::TezosLikeAccount::getStorage ( const std::string &  address,
const std::shared_ptr< BigIntCallback > &  callback 
)
pure virtual

Get needed storage to proceed a tx

Parameters
addressto which we want to send tx
Returns
needed storage to interact with address/contract Note: same note as for getGasPrice method on EthereumLikeAccount

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