ledger-core
|
Public Member Functions | |
EthereumLikeTransactionApi (const api::Currency ¤cy) | |
EthereumLikeTransactionApi (const std::shared_ptr< OperationApi > &operation) | |
std::string | getHash () override |
int32_t | getNonce () override |
std::shared_ptr< api::Amount > | getGasPrice () override |
std::shared_ptr< api::Amount > | getGasLimit () override |
std::shared_ptr< api::Amount > | getGasUsed () override |
std::shared_ptr< api::EthereumLikeAddress > | getReceiver () override |
std::shared_ptr< api::EthereumLikeAddress > | getSender () override |
std::shared_ptr< api::Amount > | getValue () override |
std::experimental::optional< std::vector< uint8_t > > | getData () override |
int32_t | getStatus () override |
std::vector< uint8_t > | serialize () override |
std::chrono::system_clock::time_point | getDate () override |
std::shared_ptr< api::EthereumLikeBlock > | getBlock () override |
void | setSignature (const std::vector< uint8_t > &vSignature, const std::vector< uint8_t > &rSignature, const std::vector< uint8_t > &sSignature) override |
void | setDERSignature (const std::vector< uint8_t > &signature) override |
void | setVSignature (const std::vector< uint8_t > &vSignature) override |
EthereumLikeTransactionApi & | setGasPrice (const std::shared_ptr< BigInt > &gasPrice) |
EthereumLikeTransactionApi & | setGasLimit (const std::shared_ptr< BigInt > &gasLimit) |
EthereumLikeTransactionApi & | setNonce (const std::shared_ptr< BigInt > &nonce) |
EthereumLikeTransactionApi & | setValue (const std::shared_ptr< BigInt > &value) |
EthereumLikeTransactionApi & | setData (const std::vector< uint8_t > &data) |
EthereumLikeTransactionApi & | setStatus (int32_t status) |
EthereumLikeTransactionApi & | setReceiver (const std::string &receiver) |
EthereumLikeTransactionApi & | setSender (const std::string &sender) |
|
overridevirtual |
Get block to which transaction belongs (was mined in).
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get binary data payload.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get the time when the transaction was issued or the time of the block including this transaction.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get start gas (in wei) : maximum amount of gas the originator is willing to pay.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get Gas price (in wei).
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Effective used gas.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get the hash of the transaction.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get the nonce of the transaction : sequence number issued by originating EOA.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get destination ETH address.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get ETH sender address.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get status of transaction: equals to 1 if succeeded, 0 otherwise
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Get amount of ether to send.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Serialize the transaction to its raw format.
Implements ledger::core::api::EthereumLikeTransaction.
|
overridevirtual |
Set signature of transaction, when a signature is set serialize method gives back serialized Tx.
Implements ledger::core::api::EthereumLikeTransaction.