1 | import { IEthereumProvider } from "@nomiclabs/buidler/types";
|
2 | export interface JsonRpcRequest {
|
3 | jsonrpc: string;
|
4 | method: string;
|
5 | params: any[];
|
6 | id: number;
|
7 | }
|
8 | export interface JsonRpcResponse {
|
9 | jsonrpc: string;
|
10 | id: number;
|
11 | result?: any;
|
12 | error?: {
|
13 | code: number;
|
14 | message: string;
|
15 | data?: any;
|
16 | };
|
17 | }
|
18 | export declare class Web3HTTPProviderAdapter {
|
19 | private readonly _provider;
|
20 | constructor(provider: IEthereumProvider);
|
21 | send(payload: JsonRpcRequest, callback: (error: Error | null, response?: JsonRpcResponse) => void): void;
|
22 | send(payload: JsonRpcRequest[], callback: (error: Error | null, response?: JsonRpcResponse[]) => void): void;
|
23 | isConnected(): boolean;
|
24 | private _sendJsonRpcRequest;
|
25 | }
|
26 | //# sourceMappingURL=web3-provider-adapter.d.ts.map |
\ | No newline at end of file |