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

#include <EthereumLikeTransaction.hpp>

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

Public Member Functions

virtual std::string getHash ()=0
 
virtual int32_t getNonce ()=0
 
virtual std::shared_ptr< AmountgetGasPrice ()=0
 
virtual std::shared_ptr< AmountgetGasLimit ()=0
 
virtual std::shared_ptr< AmountgetGasUsed ()=0
 
virtual std::shared_ptr< EthereumLikeAddressgetReceiver ()=0
 
virtual std::shared_ptr< EthereumLikeAddressgetSender ()=0
 
virtual std::shared_ptr< AmountgetValue ()=0
 
virtual std::experimental::optional< std::vector< uint8_t > > getData ()=0
 
virtual int32_t getStatus ()=0
 
virtual std::vector< uint8_t > serialize ()=0
 
virtual void setSignature (const std::vector< uint8_t > &vSignature, const std::vector< uint8_t > &rSignature, const std::vector< uint8_t > &sSignature)=0
 
virtual void setDERSignature (const std::vector< uint8_t > &signature)=0
 
virtual void setVSignature (const std::vector< uint8_t > &vSignature)=0
 
virtual std::chrono::system_clock::time_point getDate ()=0
 
virtual std::shared_ptr< EthereumLikeBlockgetBlock ()=0
 

Detailed Description

Class representing a Ethereum transaction.

Member Function Documentation

◆ getBlock()

virtual std::shared_ptr<EthereumLikeBlock> ledger::core::api::EthereumLikeTransaction::getBlock ( )
pure virtual

Get block to which transaction belongs (was mined in).

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getData()

virtual std::experimental::optional<std::vector<uint8_t> > ledger::core::api::EthereumLikeTransaction::getData ( )
pure virtual

Get binary data payload.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getDate()

virtual std::chrono::system_clock::time_point ledger::core::api::EthereumLikeTransaction::getDate ( )
pure virtual

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

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getGasLimit()

virtual std::shared_ptr<Amount> ledger::core::api::EthereumLikeTransaction::getGasLimit ( )
pure virtual

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

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getGasPrice()

virtual std::shared_ptr<Amount> ledger::core::api::EthereumLikeTransaction::getGasPrice ( )
pure virtual

Get Gas price (in wei).

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getGasUsed()

virtual std::shared_ptr<Amount> ledger::core::api::EthereumLikeTransaction::getGasUsed ( )
pure virtual

Effective used gas.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getHash()

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

Get the hash of the transaction.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getNonce()

virtual int32_t ledger::core::api::EthereumLikeTransaction::getNonce ( )
pure virtual

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

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getReceiver()

virtual std::shared_ptr<EthereumLikeAddress> ledger::core::api::EthereumLikeTransaction::getReceiver ( )
pure virtual

Get destination ETH address.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getSender()

virtual std::shared_ptr<EthereumLikeAddress> ledger::core::api::EthereumLikeTransaction::getSender ( )
pure virtual

Get ETH sender address.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getStatus()

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

Get status of transaction: equals to 1 if succeeded, 0 otherwise

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ getValue()

virtual std::shared_ptr<Amount> ledger::core::api::EthereumLikeTransaction::getValue ( )
pure virtual

Get amount of ether to send.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ serialize()

virtual std::vector<uint8_t> ledger::core::api::EthereumLikeTransaction::serialize ( )
pure virtual

Serialize the transaction to its raw format.

Implemented in ledger::core::EthereumLikeTransactionApi.

◆ setSignature()

virtual void ledger::core::api::EthereumLikeTransaction::setSignature ( const std::vector< uint8_t > &  vSignature,
const std::vector< uint8_t > &  rSignature,
const std::vector< uint8_t > &  sSignature 
)
pure virtual

Set signature of transaction, when a signature is set serialize method gives back serialized Tx.

Implemented in ledger::core::EthereumLikeTransactionApi.


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