UNPKG

safe-apps-sdk

Version:

SDK developed to integrate third-party apps with Safe app.

9 lines (8 loc) 526 B
import { ErrorResponse, SDKRequestData, RequestId, SuccessResponse, MethodToResponse } from '../types'; import { Methods } from './methods'; declare class MessageFormatter { static makeRequest: <M extends Methods = Methods, P = unknown>(method: M, params: P) => SDKRequestData<M, P>; static makeResponse: (id: RequestId, data: MethodToResponse[Methods], version: string) => SuccessResponse; static makeErrorResponse: (id: RequestId, error: string, version: string) => ErrorResponse; } export { MessageFormatter };