UNPKG

@metamask/snaps-simulation

Version:

A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment

16 lines 845 B
import type { JsonRpcEngineEndCallback, JsonRpcEngineNextCallback } from "@metamask/json-rpc-engine"; import type { JsonRpcRequest, PendingJsonRpcResponse } from "@metamask/utils"; /** * A mock handler for net_version that always returns a specific * hardcoded result. * * @param _request - Incoming JSON-RPC request. Ignored for this specific * handler. * @param response - The outgoing JSON-RPC response, modified to return the * result. * @param _next - The `json-rpc-engine` middleware next handler. * @param end - The `json-rpc-engine` middleware end handler. * @returns The JSON-RPC response. */ export declare function getNetworkVersionHandler(_request: JsonRpcRequest, response: PendingJsonRpcResponse, _next: JsonRpcEngineNextCallback, end: JsonRpcEngineEndCallback): Promise<void>; //# sourceMappingURL=net-version.d.cts.map