Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain_apis::resolver_factory Struct Reference

Static Public Member Functions

static auto make (const controller &control, abi_serializer::yield_function_t yield)
 

Detailed Description

Definition at line 1949 of file chain_plugin.cpp.

Member Function Documentation

◆ make()

static auto sysio::chain_apis::resolver_factory::make ( const controller & control,
abi_serializer::yield_function_t yield )
inlinestatic

Definition at line 1950 of file chain_plugin.cpp.

1950 {
1951 return [&control, yield{std::move(yield)}](const account_name &name) -> std::optional<abi_serializer> {
1952 const auto* accnt = control.db().template find<account_object, by_name>(name);
1953 if (accnt != nullptr) {
1954 abi_def abi;
1955 if (abi_serializer::to_abi(accnt->abi, abi)) {
1956 return abi_serializer(abi, yield);
1957 }
1958 }
1959 return std::optional<abi_serializer>();
1960 };
1961 }
std::string name
thread_local yield_t yield
Definition yield.hpp:52
name account_name
Definition types.hpp:120
static bool to_abi(const Vec &abi_vec, abi_def &abi)
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: