4 #ifndef DJINNI_GENERATED_ETHEREUMLIKETRANSACTION_HPP 5 #define DJINNI_GENERATED_ETHEREUMLIKETRANSACTION_HPP 7 #include "../utils/optional.hpp" 13 #ifndef LIBCORE_EXPORT 15 #include <libcore_export.h> 17 #define LIBCORE_EXPORT 21 namespace ledger {
namespace core {
namespace api {
24 class EthereumLikeAddress;
25 class EthereumLikeBlock;
33 virtual std::string getHash() = 0;
36 virtual int32_t getNonce() = 0;
39 virtual std::shared_ptr<Amount> getGasPrice() = 0;
42 virtual std::shared_ptr<Amount> getGasLimit() = 0;
45 virtual std::shared_ptr<Amount> getGasUsed() = 0;
48 virtual std::shared_ptr<EthereumLikeAddress> getReceiver() = 0;
51 virtual std::shared_ptr<EthereumLikeAddress> getSender() = 0;
54 virtual std::shared_ptr<Amount> getValue() = 0;
60 virtual int32_t getStatus() = 0;
63 virtual std::vector<uint8_t> serialize() = 0;
66 virtual void setSignature(
const std::vector<uint8_t> & vSignature,
const std::vector<uint8_t> & rSignature,
const std::vector<uint8_t> & sSignature) = 0;
68 virtual void setDERSignature(
const std::vector<uint8_t> & signature) = 0;
70 virtual void setVSignature(
const std::vector<uint8_t> & vSignature) = 0;
76 virtual std::chrono::system_clock::time_point getDate() = 0;
79 virtual std::shared_ptr<EthereumLikeBlock> getBlock() = 0;
83 #endif //DJINNI_GENERATED_ETHEREUMLIKETRANSACTION_HPP Definition: EthereumLikeTransaction.hpp:28
Definition: Account.cpp:8
Definition: optional.hpp:177