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

#include <ERC20LikeAccount.hpp>

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

Public Member Functions

virtual ERC20Token getToken ()=0
 
virtual std::string getAddress ()=0
 
virtual void getBalance (const std::shared_ptr< BigIntCallback > &callback)=0
 
virtual std::vector< std::shared_ptr< BigInt > > getBalanceHistoryFor (const std::chrono::system_clock::time_point &start, const std::chrono::system_clock::time_point &end, TimePeriod period)=0
 
virtual std::vector< std::shared_ptr< ERC20LikeOperation > > getOperations ()=0
 
virtual void getTransferToAddressData (const std::shared_ptr< BigInt > &amount, const std::string &address, const std::shared_ptr< BinaryCallback > &data)=0
 
virtual std::shared_ptr< OperationQueryqueryOperations ()=0
 

Detailed Description

ERC20-like accounts class.

Member Function Documentation

◆ getAddress()

virtual std::string ledger::core::api::ERC20LikeAccount::getAddress ( )
pure virtual

Get the address of this ERC20 account.

Implemented in ledger::core::ERC20LikeAccount.

◆ getBalance()

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

Get the current balance of this ERC20 account.

◆ getBalanceHistoryFor()

virtual std::vector<std::shared_ptr<BigInt> > ledger::core::api::ERC20LikeAccount::getBalanceHistoryFor ( const std::chrono::system_clock::time_point &  start,
const std::chrono::system_clock::time_point &  end,
TimePeriod  period 
)
pure virtual

Get the balance history of this ERC20 account from a starting date (included) to an ending date (included).

Implemented in ledger::core::ERC20LikeAccount.

◆ getOperations()

virtual std::vector<std::shared_ptr<ERC20LikeOperation> > ledger::core::api::ERC20LikeAccount::getOperations ( )
pure virtual

Get the list of operations performed on this ERC20 account.

Implemented in ledger::core::ERC20LikeAccount.

◆ getToken()

virtual ERC20Token ledger::core::api::ERC20LikeAccount::getToken ( )
pure virtual

Get an ERC20 token.

Implemented in ledger::core::ERC20LikeAccount.

◆ getTransferToAddressData()

virtual void ledger::core::api::ERC20LikeAccount::getTransferToAddressData ( const std::shared_ptr< BigInt > &  amount,
const std::string &  address,
const std::shared_ptr< BinaryCallback > &  data 
)
pure virtual

Retrieve raw data concerning a transaction of a given amount to a given address.


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