32 #include <wallet/common/explorers/AbstractLedgerApiBlockchainExplorer.h> 33 #include <wallet/tezos/explorers/TezosLikeBlockchainExplorer.h> 34 #include <wallet/tezos/explorers/api/TezosLikeTransactionsParser.h> 35 #include <wallet/tezos/explorers/api/TezosLikeTransactionsBulkParser.h> 36 #include <wallet/tezos/explorers/api/TezosLikeBlockParser.h> 37 #include <api/TezosLikeNetworkParameters.hpp> 41 using ExternalApiBlockchainExplorer = AbstractLedgerApiBlockchainExplorer<
42 TezosLikeBlockchainExplorerTransaction,
43 TezosLikeBlockchainExplorer::TransactionsBulk,
44 TezosLikeTransactionsParser,
45 TezosLikeTransactionsBulkParser,
47 api::TezosLikeNetworkParameters>;
52 public std::enable_shared_from_this<ExternalTezosLikeBlockchainExplorer> {
55 const std::shared_ptr<HttpClient> &http,
56 const api::TezosLikeNetworkParameters ¶meters,
57 const std::shared_ptr<api::DynamicObject> &configuration);
60 getBalance(
const std::vector<TezosLikeKeychain::Address> &addresses)
override;
65 Future<String> pushLedgerApiTransaction(
const std::vector<uint8_t> &transaction)
override;
73 Future<String> pushTransaction(
const std::vector<uint8_t> &transaction)
override;
76 getTransactions(
const std::vector<std::string> &addresses,
83 getTransactionByHash(
const String &transactionHash)
const override;
87 std::shared_ptr<api::ExecutionContext> getExplorerContext()
const override;
89 api::TezosLikeNetworkParameters getNetworkParameters()
const override;
91 std::string getExplorerVersion()
const override;
94 getEstimatedGasLimit(
const std::string &address)
override;
97 getStorage(
const std::string &address)
override;
105 Future<bool> isAllocated(
const std::string &address)
override;
116 getHelper(
const std::string &url,
117 const std::string &field,
118 const std::unordered_map<std::string, std::string> ¶ms = std::unordered_map<std::string, std::string>(),
119 const std::string &fallbackValue =
"",
120 const std::string &forceUrl =
"",
121 bool isDecimal =
false);
123 api::TezosLikeNetworkParameters _parameters;
124 std::unordered_map<std::string, uint64_t> _sessions;
Definition: Deffered.hpp:49
Definition: ExternalTezosLikeBlockchainExplorer.h:49
Definition: TezosLikeBlockchainExplorer.h:108
Definition: AbstractLedgerApiBlockchainExplorer.h:51
Definition: Account.cpp:8
Definition: DedicatedContext.hpp:39