Kagome
Polkadot Runtime Engine in C++17
account_nonce_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_RUNTIME_IMPL_ACCOUNTNONCEAPI_HPP
7 #define KAGOME_RUNTIME_IMPL_ACCOUNTNONCEAPI_HPP
8 
10 
11 namespace kagome::runtime {
12 
13  class Executor;
14 
15  class AccountNonceApiImpl final : public AccountNonceApi {
16  public:
17  explicit AccountNonceApiImpl(std::shared_ptr<Executor> executor);
18 
19  outcome::result<primitives::AccountNonce> account_nonce(
20  const primitives::BlockHash &block,
21  const primitives::AccountId &account_id) override;
22 
23  private:
24  std::shared_ptr<Executor> executor_;
25  };
26 
27 } // namespace kagome::runtime
28 
29 #endif // KAGOME_ACCOUNTNONCEAPI_HPP
AccountNonceApiImpl(std::shared_ptr< Executor > executor)
crypto::Sr25519PublicKey AccountId
Definition: account.hpp:13
std::shared_ptr< Executor > executor_
outcome::result< primitives::AccountNonce > account_nonce(const primitives::BlockHash &block, const primitives::AccountId &account_id) override