ledger-core
Public Member Functions | List of all members
ledger::core::LedgerApiEthereumLikeBlockchainExplorer Class Reference
+ Inheritance diagram for ledger::core::LedgerApiEthereumLikeBlockchainExplorer:
+ Collaboration diagram for ledger::core::LedgerApiEthereumLikeBlockchainExplorer:

Public Member Functions

 LedgerApiEthereumLikeBlockchainExplorer (const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< HttpClient > &http, const api::EthereumLikeNetworkParameters &parameters, const std::shared_ptr< api::DynamicObject > &configuration)
 
Future< std::shared_ptr< BigInt > > getNonce (const std::string &address) override
 
Future< std::shared_ptr< BigInt > > getBalance (const std::vector< EthereumLikeKeychain::Address > &addresses) override
 
Future< std::shared_ptr< BigInt > > getGasPrice () override
 
Future< std::shared_ptr< BigInt > > getEstimatedGasLimit (const std::string &address) override
 
Future< std::shared_ptr< BigInt > > getERC20Balance (const std::string &address, const std::string &erc20Address) override
 
Future< std::vector< BigInt > > getERC20Balances (const std::string &address, const std::vector< std::string > &erc20Addresses) override
 
Future< StringpushLedgerApiTransaction (const std::vector< uint8_t > &transaction) override
 
Future< void * > startSession () override
 
Future< UnitkillSession (void *session) override
 
Future< BytesgetRawTransaction (const String &transactionHash) override
 
Future< StringpushTransaction (const std::vector< uint8_t > &transaction) override
 
FuturePtr< EthereumLikeBlockchainExplorer::TransactionsBulk > getTransactions (const std::vector< std::string > &addresses, Option< std::string > fromBlockHash=Option< std::string >(), Option< void *> session=Option< void *>()) override
 
FuturePtr< BlockgetCurrentBlock () const override
 
FuturePtr< EthereumLikeBlockchainExplorerTransactiongetTransactionByHash (const String &transactionHash) const override
 
Future< int64_t > getTimestamp () const override
 
std::shared_ptr< api::ExecutionContextgetExplorerContext () const override
 
api::EthereumLikeNetworkParameters getNetworkParameters () const override
 
std::string getExplorerVersion () const override
 
- Public Member Functions inherited from ledger::core::EthereumLikeBlockchainExplorer
 EthereumLikeBlockchainExplorer (const std::shared_ptr< ledger::core::api::DynamicObject > &configuration, const std::vector< std::string > &matchableKeys)
 
- Public Member Functions inherited from ledger::core::ConfigurationMatchable
 ConfigurationMatchable (const std::vector< std::string > &matchableKeys)
 
bool match (const std::shared_ptr< api::DynamicObject > &configuration)
 
void setConfiguration (const std::shared_ptr< api::DynamicObject > &configuration)
 
- Public Member Functions inherited from ledger::core::AbstractLedgerApiBlockchainExplorer< BlockchainExplorerTransaction, TransactionsBulk, TransactionsParser, TransactionsBulkParser, BlockParser, NetworkParameters >
FuturePtr< TransactionsBulk > getLedgerApiTransactions (const std::vector< std::string > &addresses, Option< std::string > fromBlockHash, Option< void *> session, bool isSnakeCase=false)
 
FuturePtr< BlockgetLedgerApiCurrentBlock () const
 
FuturePtr< BlockchainExplorerTransaction > getLedgerApiTransactionByHash (const String &transactionHash) const
 
Future< void * > startLedgerApiSession () const
 
Future< UnitkillLedgerApiSession (void *session) const
 
Future< BytesgetLedgerApiRawTransaction (const String &transactionHash) const
 
Future< int64_t > getLedgerApiTimestamp () const
 
- Public Member Functions inherited from ledger::core::DedicatedContext
 DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context)
 
template<typename T >
Future< T > async (std::function< T()> f)
 
template<typename T >
Future< T > async (std::function< T()> f) const
 
Future< Unitrun (std::function< void()> f)
 
std::shared_ptr< api::ExecutionContextgetContext () const
 

Additional Inherited Members

- Public Types inherited from ledger::core::EthereumLikeBlockchainExplorer
typedef ledger::core::Block Block
 
- Protected Attributes inherited from ledger::core::AbstractLedgerApiBlockchainExplorer< BlockchainExplorerTransaction, TransactionsBulk, TransactionsParser, TransactionsBulkParser, BlockParser, NetworkParameters >
std::shared_ptr< HttpClient_http
 
- Protected Attributes inherited from ledger::core::DedicatedContext
std::shared_ptr< api::ExecutionContext_executionContext
 

The documentation for this class was generated from the following files: