eth::cli::EventRegistry¶
Registry mapping event signatures to their ABI parameter descriptors. More...
#include <eth_watch_cli.hpp>
Public Functions¶
| Name | |
|---|---|
| void | register_event(std::string sig, std::vector< abi::AbiParam > params) Register (or overwrite) the ABI parameter list for sig. |
| const std::vector< abi::AbiParam > * | lookup(const std::string & sig) const Look up ABI parameters for sig. |
| std::vector< abi::AbiParam > | params_for(const std::string & sig) const Convenience: return params for sig, or empty vector if unknown. |
Detailed Description¶
Registry mapping event signatures to their ABI parameter descriptors.
Pre-populated with common GNUS/ERC-20/bridge events. External code can call [event_registry()](/SuperGenius/Namespaces/d7/d8d/namespaceeth_1_1cli/#function-event-registry).register_event(sig, params) to add project-specific events before starting the watcher.
Example — adding a custom event:
eth::cli::event_registry().register_event(
"MyEvent(address,uint256)",
{ {eth::abi::AbiParamKind::kAddress, true, "owner"},
{eth::abi::AbiParamKind::kUint, false, "value"} });
Public Functions Documentation¶
function register_event¶
Register (or overwrite) the ABI parameter list for sig.
function lookup¶
Look up ABI parameters for sig.
Return: Pointer to the parameter list, or nullptr if unknown.
function params_for¶
Convenience: return params for sig, or empty vector if unknown.
Updated on 2026-04-13 at 23:22:46 -0700