ledger-core
EthereumLikeAccount.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from ethereum_like_wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_ETHEREUMLIKEACCOUNT_HPP
5 #define DJINNI_GENERATED_ETHEREUMLIKEACCOUNT_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #include <string>
10 #include <vector>
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 BigIntCallback;
22 class BigIntListCallback;
23 class ERC20LikeAccount;
24 class EthereumLikeTransaction;
25 class EthereumLikeTransactionBuilder;
26 class StringCallback;
27 
29 class LIBCORE_EXPORT EthereumLikeAccount {
30 public:
31  virtual ~EthereumLikeAccount() {}
32 
34  virtual void broadcastRawTransaction(const std::vector<uint8_t> & transaction, const std::shared_ptr<StringCallback> & callback) = 0;
35 
37  virtual void broadcastTransaction(const std::shared_ptr<EthereumLikeTransaction> & transaction, const std::shared_ptr<StringCallback> & callback) = 0;
38 
40  virtual std::shared_ptr<EthereumLikeTransactionBuilder> buildTransaction() = 0;
41 
43  virtual std::vector<std::shared_ptr<ERC20LikeAccount>> getERC20Accounts() = 0;
44 
52  virtual void getGasPrice(const std::shared_ptr<BigIntCallback> & callback) = 0;
53 
60  virtual void getEstimatedGasLimit(const std::string & address, const std::shared_ptr<BigIntCallback> & callback) = 0;
61 
67  virtual void getERC20Balance(const std::string & erc20Address, const std::shared_ptr<BigIntCallback> & callback) = 0;
68 
74  virtual void getERC20Balances(const std::vector<std::string> & erc20Addresses, const std::shared_ptr<BigIntListCallback> & callback) = 0;
75 };
76 
77 } } } // namespace ledger::core::api
78 #endif //DJINNI_GENERATED_ETHEREUMLIKEACCOUNT_HPP
Definition: EthereumLikeAccount.hpp:29
Definition: Account.cpp:8