ledger-core
TezosLikeTransaction.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from tezos_like_wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_TEZOSLIKETRANSACTION_HPP
5 #define DJINNI_GENERATED_TEZOSLIKETRANSACTION_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 Amount;
24 class BigInt;
25 class TezosLikeAddress;
26 enum class TezosOperationTag;
27 
29 class LIBCORE_EXPORT TezosLikeTransaction {
30 public:
31  virtual ~TezosLikeTransaction() {}
32 
34  virtual TezosOperationTag getType() = 0;
35 
37  virtual std::string getHash() = 0;
38 
40  virtual std::shared_ptr<Amount> getFees() = 0;
41 
43  virtual std::shared_ptr<TezosLikeAddress> getReceiver() = 0;
44 
46  virtual std::shared_ptr<TezosLikeAddress> getSender() = 0;
47 
49  virtual std::shared_ptr<Amount> getValue() = 0;
50 
52  virtual std::vector<uint8_t> serialize() = 0;
53 
55  virtual void setSignature(const std::vector<uint8_t> & signature) = 0;
56 
61  virtual std::chrono::system_clock::time_point getDate() = 0;
62 
64  virtual std::vector<uint8_t> getSigningPubKey() = 0;
65 
66  virtual std::shared_ptr<BigInt> getCounter() = 0;
67 
68  virtual std::shared_ptr<Amount> getGasLimit() = 0;
69 
70  virtual std::shared_ptr<BigInt> getStorageLimit() = 0;
71 
73  virtual std::experimental::optional<std::string> getBlockHash() = 0;
74 
76  virtual int32_t getStatus() = 0;
77 };
78 
79 } } } // namespace ledger::core::api
80 #endif //DJINNI_GENERATED_TEZOSLIKETRANSACTION_HPP
Definition: Account.cpp:8
Definition: TezosLikeTransaction.hpp:29