scrypt-ts
Version:
A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.
8 lines (7 loc) • 311 B
TypeScript
import { RequestMethod } from "./request-controller";
export interface Action<Request, JSONRequest, JSONResponse, Response> {
method: RequestMethod;
pathPattern: string;
serilizeRequest(request: Request): JSONRequest;
deserilizeResponse(response: JSONResponse, requestCtx: Request): Response;
}