MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / make_server

Function make_server

fendermint/eth/api/src/lib.rs:87–91  ·  view source on GitHub ↗

Register method handlers with the JSON-RPC server construct.

(state: Arc<JsonRpcState<HybridClient>>)

Source from the content-addressed store, hash-verified

85
86/// Register method handlers with the JSON-RPC server construct.
87fn make_server(state: Arc<JsonRpcState<HybridClient>>) -> JsonRpcServer {
88 let server = jsonrpc_v2::Server::new().with_data(Data(state));
89 let server = apis::register_methods(server);
90 server.finish()
91}
92
93/// Register routes in the `axum` HTTP router to handle JSON-RPC and WebSocket calls.
94fn make_router(state: AppState) -> axum::Router {

Callers 1

listenFunction · 0.85

Calls 2

register_methodsFunction · 0.85
finishMethod · 0.80

Tested by

no test coverage detected