Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
transaction_payment_api.cpp
Go to the documentation of this file.
1
6
#include "
runtime/runtime_api/impl/transaction_payment_api.hpp
"
7
8
#include "
runtime/common/executor.hpp
"
9
10
namespace
kagome::runtime
{
11
12
TransactionPaymentApiImpl::TransactionPaymentApiImpl
(
13
std::shared_ptr<Executor> executor)
14
: executor_{std::move(executor)} {
15
BOOST_ASSERT(
executor_
);
16
}
17
18
outcome::result<primitives::RuntimeDispatchInfo>
19
TransactionPaymentApiImpl::query_info
(
const
primitives::BlockHash
&block,
20
const
primitives::Extrinsic
&ext,
21
uint32_t len) {
22
return
executor_
->callAt<
primitives::RuntimeDispatchInfo
>(
23
block,
"TransactionPaymentApi_query_info"
, ext, len);
24
}
25
26
}
// namespace kagome::runtime
executor.hpp
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::runtime::TransactionPaymentApiImpl::executor_
std::shared_ptr< Executor > executor_
Definition:
transaction_payment_api.hpp:25
kagome::runtime::TransactionPaymentApiImpl::query_info
outcome::result< primitives::RuntimeDispatchInfo > query_info(const primitives::BlockHash &block, const primitives::Extrinsic &ext, uint32_t len) override
Definition:
transaction_payment_api.cpp:19
transaction_payment_api.hpp
kagome::primitives::RuntimeDispatchInfo
Definition:
runtime_dispatch_info.hpp:14
kagome::runtime::TransactionPaymentApiImpl::TransactionPaymentApiImpl
TransactionPaymentApiImpl(std::shared_ptr< Executor > executor)
Definition:
transaction_payment_api.cpp:12
kagome::primitives::Extrinsic
Extrinsic class represents extrinsic.
Definition:
extrinsic.hpp:24
core
runtime
runtime_api
impl
transaction_payment_api.cpp
Generated by
1.8.11