sgns::IBridgeInitObserver¶
Observer interface notified when RPC endpoints have been loaded and wired. More...
#include <ChainRpcEndpointProvider.hpp>
Inherited by sgns::BridgeRelayer, sgns::GeniusNode
Public Functions¶
| Name | |
|---|---|
| virtual void | OnRpcEndpointsReady(std::vector< ChainContractPair > chains) =0 Called when RPC endpoint initialization completes successfully. |
| virtual | ~IBridgeInitObserver() =default |
Detailed Description¶
Observer interface notified when RPC endpoints have been loaded and wired.
Subscribers (e.g. BridgeRelayer) implement this interface and call ChainRpcEndpointProvider::AddObserver() before Initialize() is posted to the io_context. The callback fires synchronously inside Initialize() after all endpoints are wired and IInputValidator::Register has been called for each discovered chain.
Public Functions Documentation¶
function OnRpcEndpointsReady¶
Called when RPC endpoint initialization completes successfully.
Parameters:
- chains List of (chain_name, contract_address, chain_id) pairs discovered.
Reimplemented by: sgns::BridgeRelayer::OnRpcEndpointsReady, sgns::GeniusNode::OnRpcEndpointsReady
function ~IBridgeInitObserver¶
Updated on 2026-06-28 at 18:54:57 -0700