ledger-core
TezosLikeOriginatedAccount.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from tezos_like_wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_TEZOSLIKEORIGINATEDACCOUNT_HPP
5 #define DJINNI_GENERATED_TEZOSLIKEORIGINATEDACCOUNT_HPP
6 
7 #include "../utils/optional.hpp"
8 #include <chrono>
9 #include <memory>
10 #include <string>
11 #ifndef LIBCORE_EXPORT
12  #if defined(_MSC_VER)
13  #include <libcore_export.h>
14  #else
15  #define LIBCORE_EXPORT
16  #endif
17 #endif
18 
19 namespace ledger { namespace core { namespace api {
20 
21 class AmountCallback;
22 class AmountListCallback;
23 class OperationQuery;
24 class TezosLikeTransactionBuilder;
25 enum class TimePeriod;
26 
28 class LIBCORE_EXPORT TezosLikeOriginatedAccount {
29 public:
30  virtual ~TezosLikeOriginatedAccount() {}
31 
33  virtual std::string getAddress() = 0;
34 
39  virtual std::experimental::optional<std::string> getPublicKey() = 0;
40 
42  virtual void getBalance(const std::shared_ptr<AmountCallback> & callback) = 0;
43 
45  virtual void getBalanceHistory(const std::chrono::system_clock::time_point & start, const std::chrono::system_clock::time_point & end, TimePeriod period, const std::shared_ptr<AmountListCallback> & callback) = 0;
46 
51  virtual bool isSpendable() = 0;
52 
57  virtual bool isDelegatable() = 0;
58 
60  virtual std::shared_ptr<OperationQuery> queryOperations() = 0;
61 
63  virtual std::shared_ptr<TezosLikeTransactionBuilder> buildTransaction() = 0;
64 };
65 
66 } } } // namespace ledger::core::api
67 #endif //DJINNI_GENERATED_TEZOSLIKEORIGINATEDACCOUNT_HPP
Definition: TezosLikeOriginatedAccount.hpp:28
Definition: Account.cpp:8