import { JsonRpcAdapter , JsonRpcRequest , JsonRpcResponse , HttpRequest , HttpResponse , } from '../../../types' ; /**
 * Adapter for using JSON-RPC over HTTP.
 */ export class JsonRpcHttpAdapter implements JsonRpcAdapter < HttpRequest , HttpResponse > { param request returns public encodeRequest ( request ) { return { url : '' , method : 'post' , data : request , } ; } param response returns public decodeResponse ( response ) { return response . data ; } }