Kagome
Polkadot Runtime Engine in C++17
payment_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_PAYMENT_API_HPP
7 #define KAGOME_PAYMENT_API_HPP
8 
9 #include <boost/multiprecision/cpp_int.hpp>
10 #include <optional>
11 
12 #include "common/blob.hpp"
13 #include "primitives/extrinsic.hpp"
15 
16 namespace kagome::api {
17 
18  class PaymentApi {
19  public:
20  using OptionalHashRef =
21  std::optional<std::reference_wrapper<const common::Hash256>>;
22 
23  virtual ~PaymentApi() = default;
24 
25  virtual outcome::result<primitives::RuntimeDispatchInfo> queryInfo(
26  const primitives::Extrinsic &extrinsic,
27  uint32_t len,
28  OptionalHashRef at) const = 0;
29  };
30 
31 } // namespace kagome::api
32 
33 #endif // KAGOME_PAYMENT_API_HPP
virtual outcome::result< primitives::RuntimeDispatchInfo > queryInfo(const primitives::Extrinsic &extrinsic, uint32_t len, OptionalHashRef at) const =0
std::optional< std::reference_wrapper< const common::Hash256 >> OptionalHashRef
Definition: payment_api.hpp:21
virtual ~PaymentApi()=default
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24