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

#include <ERC20LikeOperation.hpp>

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

Public Member Functions

virtual std::string getHash ()=0
 
virtual std::shared_ptr< BigIntgetNonce ()=0
 
virtual std::shared_ptr< BigIntgetGasPrice ()=0
 
virtual std::shared_ptr< BigIntgetGasLimit ()=0
 
virtual std::shared_ptr< BigIntgetUsedGas ()=0
 
virtual std::string getSender ()=0
 
virtual std::string getReceiver ()=0
 
virtual std::shared_ptr< BigIntgetValue ()=0
 
virtual std::vector< uint8_t > getData ()=0
 
virtual std::chrono::system_clock::time_point getTime ()=0
 
virtual OperationType getOperationType ()=0
 
virtual int32_t getStatus ()=0
 
virtual std::experimental::optional< int64_t > getBlockHeight ()=0
 

Detailed Description

Class representing a Ethereum transaction.

Member Function Documentation

◆ getBlockHeight()

virtual std::experimental::optional<int64_t> ledger::core::api::ERC20LikeOperation::getBlockHeight ( )
pure virtual

Get block height on which operation was included.

Returns
Optional 64-bit integer, height of block in which operation was validated

Implemented in ledger::core::ERC20LikeOperation.

◆ getData()

virtual std::vector<uint8_t> ledger::core::api::ERC20LikeOperation::getData ( )
pure virtual

Get binary data payload.

Implemented in ledger::core::ERC20LikeOperation.

◆ getGasLimit()

virtual std::shared_ptr<BigInt> ledger::core::api::ERC20LikeOperation::getGasLimit ( )
pure virtual

Get start gas (in wei) : maximum amount of gas the originator is willing to pay.

Implemented in ledger::core::ERC20LikeOperation.

◆ getGasPrice()

virtual std::shared_ptr<BigInt> ledger::core::api::ERC20LikeOperation::getGasPrice ( )
pure virtual

Get Gas price (in wei).

Implemented in ledger::core::ERC20LikeOperation.

◆ getHash()

virtual std::string ledger::core::api::ERC20LikeOperation::getHash ( )
pure virtual

Get the hash of the transaction.

Implemented in ledger::core::ERC20LikeOperation.

◆ getNonce()

virtual std::shared_ptr<BigInt> ledger::core::api::ERC20LikeOperation::getNonce ( )
pure virtual

Get the nonce of the transaction : sequence number issued by originating EOA.

Implemented in ledger::core::ERC20LikeOperation.

◆ getOperationType()

virtual OperationType ledger::core::api::ERC20LikeOperation::getOperationType ( )
pure virtual

Get operation type : whether it is a SEND or RECEIVE.

Implemented in ledger::core::ERC20LikeOperation.

◆ getReceiver()

virtual std::string ledger::core::api::ERC20LikeOperation::getReceiver ( )
pure virtual

Get destination ETH address.

Implemented in ledger::core::ERC20LikeOperation.

◆ getSender()

virtual std::string ledger::core::api::ERC20LikeOperation::getSender ( )
pure virtual

Get source ETH address.

Implemented in ledger::core::ERC20LikeOperation.

◆ getStatus()

virtual int32_t ledger::core::api::ERC20LikeOperation::getStatus ( )
pure virtual

Get opration status : pending or confirmed.

Implemented in ledger::core::ERC20LikeOperation.

◆ getTime()

virtual std::chrono::system_clock::time_point ledger::core::api::ERC20LikeOperation::getTime ( )
pure virtual

Get the time when the transaction was issued or the time of the block including this this transaction.

Implemented in ledger::core::ERC20LikeOperation.

◆ getUsedGas()

virtual std::shared_ptr<BigInt> ledger::core::api::ERC20LikeOperation::getUsedGas ( )
pure virtual

Used gas (in wei) : used gas during this transaction:

Implemented in ledger::core::ERC20LikeOperation.

◆ getValue()

virtual std::shared_ptr<BigInt> ledger::core::api::ERC20LikeOperation::getValue ( )
pure virtual

Get amount of ether to send.

Implemented in ledger::core::ERC20LikeOperation.


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