@json-rpc-tools/types
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,2 +0,2 @@ | ||
import { JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { JsonRpcError, JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { IMultiServiceProvider, MultiServiceProviderConfig } from "./multi"; | ||
@@ -22,3 +22,4 @@ import { IEvents, IStore } from "./misc"; | ||
abstract approve(request: JsonRpcRequest): Promise<JsonRpcResponse>; | ||
abstract resolve(request: JsonRpcRequest): Promise<JsonRpcResponse>; | ||
abstract reject(request: JsonRpcRequest): Promise<JsonRpcError>; | ||
abstract request(request: JsonRpcRequest): Promise<JsonRpcResponse>; | ||
} | ||
@@ -25,0 +26,0 @@ export interface BlockchainProviderConfig extends MultiServiceProviderConfig { |
@@ -19,2 +19,5 @@ import { Schema } from "./schema"; | ||
} | ||
export interface JsonRpcSchemas { | ||
schemas: JsonRpcMethodsMap; | ||
} | ||
export interface JsonRpcRequest<T = any> { | ||
@@ -21,0 +24,0 @@ id: number; |
@@ -13,3 +13,3 @@ import { JsonRpcError, JsonRpcMethodsMap, JsonRpcRequest } from "./jsonrpc"; | ||
routes: JsonRpcRoutesConfig; | ||
methods?: JsonRpcMethodsMap; | ||
schemas?: JsonRpcMethodsMap; | ||
} | ||
@@ -16,0 +16,0 @@ export declare type MultiServiceProviderMap = Record<string, string>; |
{ | ||
"name": "@json-rpc-tools/types", | ||
"description": "Typings for JSON-RPC", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Pedro Gomes <github.com/pedrouid>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/pedrouid/json-rpc-tools/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123605
326