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

Public Member Functions

 TezosLikeTransactionApi (const api::Currency &currency, const std::string &protocolUpdate)
 
 TezosLikeTransactionApi (const std::shared_ptr< OperationApi > &operation, const std::string &protocolUpdate)
 
api::TezosOperationTag getType () override
 
std::string getHash () override
 
std::shared_ptr< api::AmountgetFees () override
 
std::shared_ptr< api::TezosLikeAddressgetReceiver () override
 
std::shared_ptr< api::TezosLikeAddressgetSender () override
 
std::shared_ptr< api::AmountgetValue () override
 
std::vector< uint8_t > serialize () override
 
std::vector< uint8_t > serializeWithType (api::TezosOperationTag type)
 
std::chrono::system_clock::time_point getDate () override
 
std::shared_ptr< api::BigIntgetCounter () override
 
std::shared_ptr< api::AmountgetGasLimit () override
 
std::shared_ptr< api::BigIntgetStorageLimit () override
 
std::experimental::optional< std::string > getBlockHash () override
 
void setSignature (const std::vector< uint8_t > &signature) override
 
std::vector< uint8_t > getSigningPubKey () override
 
int32_t getStatus () override
 
TezosLikeTransactionApisetFees (const std::shared_ptr< BigInt > &fees)
 
TezosLikeTransactionApisetValue (const std::shared_ptr< BigInt > &value)
 
TezosLikeTransactionApisetSender (const std::shared_ptr< api::TezosLikeAddress > &sender, api::TezosCurve curve=api::TezosCurve::ED25519)
 
TezosLikeTransactionApisetReceiver (const std::shared_ptr< api::TezosLikeAddress > &receiver, api::TezosCurve curve=api::TezosCurve::ED25519)
 
TezosLikeTransactionApisetSigningPubKey (const std::vector< uint8_t > &pubKey)
 
TezosLikeTransactionApisetHash (const std::string &hash)
 
TezosLikeTransactionApisetBlockHash (const std::string &blockHash)
 
TezosLikeTransactionApisetGasLimit (const std::shared_ptr< BigInt > &gasLimit)
 
TezosLikeTransactionApisetCounter (const std::shared_ptr< BigInt > &counter)
 
TezosLikeTransactionApisetStorage (const std::shared_ptr< BigInt > &storage)
 
TezosLikeTransactionApisetType (api::TezosOperationTag type)
 
TezosLikeTransactionApisetBalance (const BigInt &balance)
 
TezosLikeTransactionApisetManagerAddress (const std::string &managerAddress, api::TezosCurve curve)
 
std::string getManagerAddress () const
 
TezosLikeTransactionApisetRawTx (const std::vector< uint8_t > &rawTx)
 
TezosLikeTransactionApireveal (bool needReveal)
 
bool toReveal () const
 

Member Function Documentation

◆ getBlockHash()

std::experimental::optional< std::string > ledger::core::TezosLikeTransactionApi::getBlockHash ( )
overridevirtual

Get hash of block in which tx is included

Implements ledger::core::api::TezosLikeTransaction.

◆ getDate()

std::chrono::system_clock::time_point ledger::core::TezosLikeTransactionApi::getDate ( )
overridevirtual

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

Implements ledger::core::api::TezosLikeTransaction.

◆ getFees()

std::shared_ptr< api::Amount > ledger::core::TezosLikeTransactionApi::getFees ( )
overridevirtual

Get Fees (in drop)

Implements ledger::core::api::TezosLikeTransaction.

◆ getHash()

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

Get the hash of the transaction.

Implements ledger::core::api::TezosLikeTransaction.

◆ getReceiver()

std::shared_ptr< api::TezosLikeAddress > ledger::core::TezosLikeTransactionApi::getReceiver ( )
overridevirtual

Get destination XTZ. address

Implements ledger::core::api::TezosLikeTransaction.

◆ getSender()

std::shared_ptr< api::TezosLikeAddress > ledger::core::TezosLikeTransactionApi::getSender ( )
overridevirtual

Get XTZ. sender address

Implements ledger::core::api::TezosLikeTransaction.

◆ getSigningPubKey()

std::vector< uint8_t > ledger::core::TezosLikeTransactionApi::getSigningPubKey ( )
overridevirtual

Get Signing public Key

Implements ledger::core::api::TezosLikeTransaction.

◆ getStatus()

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

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

Implements ledger::core::api::TezosLikeTransaction.

◆ getType()

api::TezosOperationTag ledger::core::TezosLikeTransactionApi::getType ( )
overridevirtual

Get type of operation (transaction, reveal ... cf TezosOperationTag)

Implements ledger::core::api::TezosLikeTransaction.

◆ getValue()

std::shared_ptr< api::Amount > ledger::core::TezosLikeTransactionApi::getValue ( )
overridevirtual

Get amount of XTZ to send

Implements ledger::core::api::TezosLikeTransaction.

◆ serialize()

std::vector< uint8_t > ledger::core::TezosLikeTransactionApi::serialize ( )
overridevirtual

Serialize the transaction to its raw format.

Implements ledger::core::api::TezosLikeTransaction.

◆ setSignature()

void ledger::core::TezosLikeTransactionApi::setSignature ( const std::vector< uint8_t > &  signature)
overridevirtual

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

Implements ledger::core::api::TezosLikeTransaction.


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