|
Wire Sysio Wire Sysion 1.0.0
|
#include <abi_data_handler.hpp>
Classes | |
| class | shared_provider |
Public Member Functions | |
| abi_data_handler (exception_handler except_handler) | |
| void | add_abi (const chain::name &name, const chain::abi_def &abi) |
| std::tuple< fc::variant, std::optional< fc::variant > > | serialize_to_variant (const std::variant< action_trace_v0, action_trace_v1 > &action, const yield_function &yield) |
Data Handler that uses sysio::chain::abi_serializer to decode data with a known set of ABI's Can be used directly as a Data_handler_provider OR shared between request_handlers using the ::shared_provider abstraction.
Definition at line 19 of file abi_data_handler.hpp.
|
inlineexplicit |
Definition at line 21 of file abi_data_handler.hpp.
| void sysio::trace_api::abi_data_handler::add_abi | ( | const chain::name & | name, |
| const chain::abi_def & | abi ) |
Add an ABI definition to this data handler
| name | - the name of the account/contract that this ABI belongs to |
| abi | - the ABI definition of that ABI |
Definition at line 6 of file abi_data_handler.cpp.


| std::tuple< fc::variant, std::optional< fc::variant > > sysio::trace_api::abi_data_handler::serialize_to_variant | ( | const std::variant< action_trace_v0, action_trace_v1 > & | action, |
| const yield_function & | yield ) |
Given an action trace, produce a tuple representing the data and return_value fields in the trace
| action | - trace of the action including metadata necessary for finding the ABI |
| yield | - a yield function to allow cooperation during long running tasks |
data field of the action interpreted by known ABIs OR an empty variant, and the second element represents the return_value field of the trace. Definition at line 12 of file abi_data_handler.cpp.
