32 #ifndef LEDGER_CORE_TEZOSLIKEBLOCKCHAINEXPLORER_H 33 #define LEDGER_CORE_TEZOSLIKEBLOCKCHAINEXPLORER_H 37 #include <api/DynamicObject.hpp> 38 #include <api/ExecutionContext.hpp> 39 #include <api/TezosLikeNetworkParameters.hpp> 40 #include <async/DedicatedContext.hpp> 41 #include <collections/DynamicObject.hpp> 42 #include <math/BigInt.h> 43 #include <net/HttpClient.hpp> 44 #include <utils/ConfigurationMatchable.h> 45 #include <utils/Option.hpp> 46 #include <wallet/common/Block.h> 47 #include <wallet/common/explorers/AbstractBlockchainExplorer.h> 48 #include <wallet/tezos/keychains/TezosLikeKeychain.h> 49 #include <api/TezosOperationTag.hpp> 56 bool isSpendable =
false,
57 bool isDelegatable =
false) :
59 spendable(isSpendable),
60 delegatable(isDelegatable) {
70 std::chrono::system_clock::time_point receivedAt;
78 uint64_t confirmations;
79 api::TezosOperationTag type;
85 type = api::TezosOperationTag::OPERATION_TAG_NONE;
90 this->hash = cpy.hash;
91 this->receivedAt = cpy.receivedAt;
92 this->value = cpy.value;
93 this->fees = cpy.fees;
94 this->gas_limit = cpy.gas_limit;
95 this->storage_limit = cpy.storage_limit;
96 this->receiver = cpy.receiver;
97 this->sender = cpy.sender;
98 this->block = cpy.block;
99 this->confirmations = cpy.confirmations;
100 this->type = cpy.type;
101 this->publicKey = cpy.publicKey;
102 this->originatedAccount = cpy.originatedAccount;
103 this->status = cpy.status;
114 const std::vector<std::string> &matchableKeys);
117 getBalance(
const std::vector<TezosLikeKeychain::Address> &addresses) = 0;
123 getEstimatedGasLimit(
const std::string &address) = 0;
126 getStorage(
const std::string &address) = 0;
129 getCounter(
const std::string &address) = 0;
135 const std::shared_ptr<api::ExecutionContext> &context,
136 const std::shared_ptr<HttpClient> &http,
137 const std::string &rpcNode);
143 const std::shared_ptr<api::ExecutionContext> &context,
144 const std::shared_ptr<HttpClient> &http,
145 const std::string &rpcNode);
147 virtual Future<bool> isAllocated(
const std::string &address) = 0;
148 static Future<bool> isAllocated(
const std::string &address,
149 const std::shared_ptr<api::ExecutionContext> &context,
150 const std::shared_ptr<HttpClient> &http,
151 const std::string &rpcNode);
154 std::string getRPCNodeEndpoint()
const {
158 std::string _rpcNode;
162 #endif //LEDGER_CORE_TEZOSLIKEBLOCKCHAINEXPLORER_H Definition: TezosLikeBlockchainExplorer.h:54
Definition: TezosLikeBlockchainExplorer.h:68
Definition: Option.hpp:49
Definition: TezosLikeTransactionApi.h:45
Definition: AbstractBlockchainExplorer.h:48
Definition: Deffered.hpp:49
Definition: ConfigurationMatchable.h:38
Definition: TezosLikeBlockchainExplorer.h:108
Definition: Account.cpp:8