@json-rpc-tools/types
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,4 +0,5 @@ | ||
import { JsonRpcError, JsonRpcMethodsMap, JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { BaseMultiServiceProviderConfig, IMultiServiceProvider } from "./multi"; | ||
import { JsonRpcError, JsonRpcRequest, JsonRpcResponse } from "./jsonrpc"; | ||
import { IMultiServiceProvider, JsonRpcProvidersMap, JsonRpcRoutesConfig, MultiServiceProviderConfig } from "./multi"; | ||
import { IEvents, IStore } from "./misc"; | ||
import { IJsonRpcProvider } from "./provider"; | ||
export declare abstract class IPendingRequests { | ||
@@ -25,11 +26,26 @@ store?: IStore | undefined; | ||
} | ||
export interface BlockchainStateJsonRpcConfig { | ||
chainId: string; | ||
accounts: string; | ||
export interface BaseBlockchainProviders extends JsonRpcProvidersMap { | ||
http: IJsonRpcProvider; | ||
signer: IJsonRpcProvider; | ||
} | ||
export interface BlockchainJsonRpcConfig { | ||
state: BlockchainStateJsonRpcConfig; | ||
schemas?: JsonRpcMethodsMap; | ||
export interface BlockchainProvidersWithWebsockets extends BaseBlockchainProviders { | ||
ws: IJsonRpcProvider; | ||
} | ||
export declare type BlockchainProviderConfig = BlockchainJsonRpcConfig & BaseMultiServiceProviderConfig; | ||
export declare type BlockchainProviders = BaseBlockchainProviders | BlockchainProvidersWithWebsockets; | ||
export interface BaseBlockchainRoutes extends JsonRpcRoutesConfig { | ||
http: string[]; | ||
signer: string[]; | ||
} | ||
export interface BlockchainRoutesWithWebsockets extends BaseBlockchainRoutes { | ||
ws: string[]; | ||
} | ||
export declare type BlockchainRoutes = BaseBlockchainRoutes | BlockchainRoutesWithWebsockets; | ||
export interface BlockchainProviderConfig extends MultiServiceProviderConfig { | ||
providers: BlockchainProviders; | ||
routes: BlockchainRoutes; | ||
state: { | ||
chainId: string; | ||
accounts: string; | ||
}; | ||
} | ||
export declare abstract class IBlockchainProvider extends IMultiServiceProvider { | ||
@@ -36,0 +52,0 @@ config: BlockchainProviderConfig; |
{ | ||
"name": "@json-rpc-tools/types", | ||
"description": "Typings for JSON-RPC", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"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
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
125196
349