ledger-core
Public Member Functions | List of all members
ledger::core::ERC20LikeOperation Class Reference
+ Inheritance diagram for ledger::core::ERC20LikeOperation:
+ Collaboration diagram for ledger::core::ERC20LikeOperation:

Public Member Functions

 ERC20LikeOperation (const std::string &accountAddress, const std::string &operationUid, const Operation &operation, const ERC20Transaction &erc20Tx, const api::Currency &currency)
 
std::string getHash () override
 
std::shared_ptr< api::BigIntgetNonce () override
 
std::shared_ptr< api::BigIntgetGasPrice () override
 
std::shared_ptr< api::BigIntgetGasLimit () override
 
std::shared_ptr< api::BigIntgetUsedGas () override
 
std::string getSender () override
 
std::string getReceiver () override
 
std::shared_ptr< api::BigIntgetValue () 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
 
ERC20LikeOperationsetHash (const std::string &hash)
 
ERC20LikeOperationsetNonce (const BigInt &nonce)
 
ERC20LikeOperationsetGasPrice (const BigInt &gasPrice)
 
ERC20LikeOperationsetGasLimit (const BigInt &gasLimit)
 
ERC20LikeOperationsetUsedGas (const BigInt &usedGas)
 
ERC20LikeOperationsetSender (const std::string &sender)
 
ERC20LikeOperationsetReceiver (const std::string &receiver)
 
ERC20LikeOperationsetValue (const BigInt &value)
 
ERC20LikeOperationsetData (const std::vector< uint8_t > &data)
 
ERC20LikeOperationsetTime (const std::chrono::system_clock::time_point &time)
 
ERC20LikeOperationsetOperationType (api::OperationType type)
 
ERC20LikeOperationsetOperationUid (const std::string &operationUid)
 
ERC20LikeOperationsetETHOperationUid (const std::string &ethOperationUid)
 
ERC20LikeOperationsetStatus (int32_t status)
 
ERC20LikeOperationsetBlockHeight (int64_t blockHeight)
 

Member Function Documentation

◆ getBlockHeight()

std::experimental::optional< int64_t > ledger::core::ERC20LikeOperation::getBlockHeight ( )
overridevirtual

Get block height on which operation was included.

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getData()

std::vector< uint8_t > ledger::core::ERC20LikeOperation::getData ( )
overridevirtual

Get binary data payload.

Implements ledger::core::api::ERC20LikeOperation.

◆ getGasLimit()

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

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getGasPrice()

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

Get Gas price (in wei).

Implements ledger::core::api::ERC20LikeOperation.

◆ getHash()

std::string ledger::core::ERC20LikeOperation::getHash ( )
overridevirtual

Get the hash of the transaction.

Implements ledger::core::api::ERC20LikeOperation.

◆ getNonce()

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

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getOperationType()

api::OperationType ledger::core::ERC20LikeOperation::getOperationType ( )
overridevirtual

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getReceiver()

std::string ledger::core::ERC20LikeOperation::getReceiver ( )
overridevirtual

Get destination ETH address.

Implements ledger::core::api::ERC20LikeOperation.

◆ getSender()

std::string ledger::core::ERC20LikeOperation::getSender ( )
overridevirtual

Get source ETH address.

Implements ledger::core::api::ERC20LikeOperation.

◆ getStatus()

int32_t ledger::core::ERC20LikeOperation::getStatus ( )
overridevirtual

Get opration status : pending or confirmed.

Implements ledger::core::api::ERC20LikeOperation.

◆ getTime()

std::chrono::system_clock::time_point ledger::core::ERC20LikeOperation::getTime ( )
overridevirtual

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getUsedGas()

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

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

Implements ledger::core::api::ERC20LikeOperation.

◆ getValue()

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

Get amount of ether to send.

Implements ledger::core::api::ERC20LikeOperation.


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