ledger-core
|
Public Member Functions | |
ERC20LikeOperation (const std::string &accountAddress, const std::string &operationUid, const Operation &operation, const ERC20Transaction &erc20Tx, const api::Currency ¤cy) | |
std::string | getHash () override |
std::shared_ptr< api::BigInt > | getNonce () override |
std::shared_ptr< api::BigInt > | getGasPrice () override |
std::shared_ptr< api::BigInt > | getGasLimit () override |
std::shared_ptr< api::BigInt > | getUsedGas () override |
std::string | getSender () override |
std::string | getReceiver () override |
std::shared_ptr< api::BigInt > | getValue () override |
std::vector< uint8_t > | getData () override |
std::chrono::system_clock::time_point | getTime () override |
api::OperationType | getOperationType () override |
std::string | getOperationUid () |
std::string | getETHOperationUid () |
int32_t | getStatus () override |
std::experimental::optional< int64_t > | getBlockHeight () override |
ERC20LikeOperation & | setHash (const std::string &hash) |
ERC20LikeOperation & | setNonce (const BigInt &nonce) |
ERC20LikeOperation & | setGasPrice (const BigInt &gasPrice) |
ERC20LikeOperation & | setGasLimit (const BigInt &gasLimit) |
ERC20LikeOperation & | setUsedGas (const BigInt &usedGas) |
ERC20LikeOperation & | setSender (const std::string &sender) |
ERC20LikeOperation & | setReceiver (const std::string &receiver) |
ERC20LikeOperation & | setValue (const BigInt &value) |
ERC20LikeOperation & | setData (const std::vector< uint8_t > &data) |
ERC20LikeOperation & | setTime (const std::chrono::system_clock::time_point &time) |
ERC20LikeOperation & | setOperationType (api::OperationType type) |
ERC20LikeOperation & | setOperationUid (const std::string &operationUid) |
ERC20LikeOperation & | setETHOperationUid (const std::string ðOperationUid) |
ERC20LikeOperation & | setStatus (int32_t status) |
ERC20LikeOperation & | setBlockHeight (int64_t blockHeight) |
|
overridevirtual |
Get block height on which operation was included.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get binary data payload.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get start gas (in wei) : maximum amount of gas the originator is willing to pay.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get Gas price (in wei).
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get the hash of the transaction.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get the nonce of the transaction : sequence number issued by originating EOA.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get operation type : whether it is a SEND or RECEIVE.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get destination ETH address.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get source ETH address.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get opration status : pending or confirmed.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get the time when the transaction was issued or the time of the block including this this transaction.
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Used gas (in wei) : used gas during this transaction:
Implements ledger::core::api::ERC20LikeOperation.
|
overridevirtual |
Get amount of ether to send.
Implements ledger::core::api::ERC20LikeOperation.