ledger-core
ERC20LikeOperation.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from erc20.djinni
3 
4 #ifndef DJINNI_GENERATED_ERC20LIKEOPERATION_HPP
5 #define DJINNI_GENERATED_ERC20LIKEOPERATION_HPP
6 
7 #include "../utils/optional.hpp"
8 #include <chrono>
9 #include <cstdint>
10 #include <memory>
11 #include <string>
12 #include <vector>
13 #ifndef LIBCORE_EXPORT
14  #if defined(_MSC_VER)
15  #include <libcore_export.h>
16  #else
17  #define LIBCORE_EXPORT
18  #endif
19 #endif
20 
21 namespace ledger { namespace core { namespace api {
22 
23 class BigInt;
24 enum class OperationType;
25 
27 class LIBCORE_EXPORT ERC20LikeOperation {
28 public:
29  virtual ~ERC20LikeOperation() {}
30 
32  virtual std::string getHash() = 0;
33 
35  virtual std::shared_ptr<BigInt> getNonce() = 0;
36 
38  virtual std::shared_ptr<BigInt> getGasPrice() = 0;
39 
41  virtual std::shared_ptr<BigInt> getGasLimit() = 0;
42 
44  virtual std::shared_ptr<BigInt> getUsedGas() = 0;
45 
47  virtual std::string getSender() = 0;
48 
50  virtual std::string getReceiver() = 0;
51 
53  virtual std::shared_ptr<BigInt> getValue() = 0;
54 
56  virtual std::vector<uint8_t> getData() = 0;
57 
62  virtual std::chrono::system_clock::time_point getTime() = 0;
63 
65  virtual OperationType getOperationType() = 0;
66 
68  virtual int32_t getStatus() = 0;
69 
74  virtual std::experimental::optional<int64_t> getBlockHeight() = 0;
75 };
76 
77 } } } // namespace ledger::core::api
78 #endif //DJINNI_GENERATED_ERC20LIKEOPERATION_HPP
Definition: ERC20LikeOperation.hpp:27
Definition: Account.cpp:8