ledger-core
|
Public Member Functions | |
TezosLikeTransactionApi (const api::Currency ¤cy, 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::Amount > | getFees () override |
std::shared_ptr< api::TezosLikeAddress > | getReceiver () override |
std::shared_ptr< api::TezosLikeAddress > | getSender () override |
std::shared_ptr< api::Amount > | getValue () 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::BigInt > | getCounter () override |
std::shared_ptr< api::Amount > | getGasLimit () override |
std::shared_ptr< api::BigInt > | getStorageLimit () 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 |
TezosLikeTransactionApi & | setFees (const std::shared_ptr< BigInt > &fees) |
TezosLikeTransactionApi & | setValue (const std::shared_ptr< BigInt > &value) |
TezosLikeTransactionApi & | setSender (const std::shared_ptr< api::TezosLikeAddress > &sender, api::TezosCurve curve=api::TezosCurve::ED25519) |
TezosLikeTransactionApi & | setReceiver (const std::shared_ptr< api::TezosLikeAddress > &receiver, api::TezosCurve curve=api::TezosCurve::ED25519) |
TezosLikeTransactionApi & | setSigningPubKey (const std::vector< uint8_t > &pubKey) |
TezosLikeTransactionApi & | setHash (const std::string &hash) |
TezosLikeTransactionApi & | setBlockHash (const std::string &blockHash) |
TezosLikeTransactionApi & | setGasLimit (const std::shared_ptr< BigInt > &gasLimit) |
TezosLikeTransactionApi & | setCounter (const std::shared_ptr< BigInt > &counter) |
TezosLikeTransactionApi & | setStorage (const std::shared_ptr< BigInt > &storage) |
TezosLikeTransactionApi & | setType (api::TezosOperationTag type) |
TezosLikeTransactionApi & | setBalance (const BigInt &balance) |
TezosLikeTransactionApi & | setManagerAddress (const std::string &managerAddress, api::TezosCurve curve) |
std::string | getManagerAddress () const |
TezosLikeTransactionApi & | setRawTx (const std::vector< uint8_t > &rawTx) |
TezosLikeTransactionApi & | reveal (bool needReveal) |
bool | toReveal () const |
|
overridevirtual |
Get hash of block in which tx is included
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get the time when the transaction was issued or the time of the block including this transaction
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get Fees (in drop)
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get the hash of the transaction.
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get destination XTZ. address
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get XTZ. sender address
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get Signing public Key
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get status of transaction: equals to 1 if succeeded, 0 otherwise
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get type of operation (transaction, reveal ... cf TezosOperationTag)
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Get amount of XTZ to send
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Serialize the transaction to its raw format.
Implements ledger::core::api::TezosLikeTransaction.
|
overridevirtual |
Set signature of transaction, when a signature is set serialize method gives back serialized Tx
Implements ledger::core::api::TezosLikeTransaction.