@json-rpc-tools/types
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,3 +0,3 @@ | ||
import { JsonRpcError, JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { IMultiServiceProvider, MultiServiceProviderConfig } from "./multi"; | ||
import { JsonRpcError, JsonRpcMethodsMap, JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { BaseMultiServiceProviderConfig, IMultiServiceProvider } from "./multi"; | ||
import { IEvents, IStore } from "./misc"; | ||
@@ -25,8 +25,11 @@ export declare abstract class IPendingRequests { | ||
} | ||
export interface BlockchainProviderConfig extends MultiServiceProviderConfig { | ||
state: { | ||
chainId: string; | ||
accounts: string; | ||
}; | ||
export interface BlockchainStateJsonRpcConfig { | ||
chainId: string; | ||
accounts: string; | ||
} | ||
export interface BlockchainJsonRpcConfig { | ||
state: BlockchainStateJsonRpcConfig; | ||
schemas?: JsonRpcMethodsMap; | ||
} | ||
export declare type BlockchainProviderConfig = BlockchainJsonRpcConfig & BaseMultiServiceProviderConfig; | ||
export declare abstract class IBlockchainProvider extends IMultiServiceProvider { | ||
@@ -33,0 +36,0 @@ config: BlockchainProviderConfig; |
@@ -10,5 +10,7 @@ import { JsonRpcError, JsonRpcMethodsMap, JsonRpcRequest } from "./jsonrpc"; | ||
} | ||
export interface MultiServiceProviderConfig { | ||
export interface BaseMultiServiceProviderConfig { | ||
providers: JsonRpcProvidersMap; | ||
routes: JsonRpcRoutesConfig; | ||
} | ||
export interface MultiServiceProviderConfig extends BaseMultiServiceProviderConfig { | ||
schemas?: JsonRpcMethodsMap; | ||
@@ -15,0 +17,0 @@ } |
{ | ||
"name": "@json-rpc-tools/types", | ||
"description": "Typings for JSON-RPC", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"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
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
124036
331