ledger-core
|
#include <EthereumLikeTransaction.hpp>
Public Member Functions | |
virtual std::string | getHash ()=0 |
virtual int32_t | getNonce ()=0 |
virtual std::shared_ptr< Amount > | getGasPrice ()=0 |
virtual std::shared_ptr< Amount > | getGasLimit ()=0 |
virtual std::shared_ptr< Amount > | getGasUsed ()=0 |
virtual std::shared_ptr< EthereumLikeAddress > | getReceiver ()=0 |
virtual std::shared_ptr< EthereumLikeAddress > | getSender ()=0 |
virtual std::shared_ptr< Amount > | getValue ()=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< EthereumLikeBlock > | getBlock ()=0 |
Class representing a Ethereum transaction.
|
pure virtual |
Get block to which transaction belongs (was mined in).
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get binary data payload.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get the time when the transaction was issued or the time of the block including this transaction.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get start gas (in wei) : maximum amount of gas the originator is willing to pay.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get Gas price (in wei).
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Effective used gas.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get the hash of the transaction.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get the nonce of the transaction : sequence number issued by originating EOA.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get destination ETH address.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get ETH sender address.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get status of transaction: equals to 1 if succeeded, 0 otherwise
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Get amount of ether to send.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Serialize the transaction to its raw format.
Implemented in ledger::core::EthereumLikeTransactionApi.
|
pure virtual |
Set signature of transaction, when a signature is set serialize method gives back serialized Tx.
Implemented in ledger::core::EthereumLikeTransactionApi.