UNPKG

@kaiachain/ethers-ext

Version:
35 lines (34 loc) 1.43 kB
import { FetchRequest, Networkish, JsonRpcProvider as EthersJsonRpcProvider, BrowserProvider as EthersWeb3Provider } from "ethers"; import { AsyncNamespaceApi } from "@kaiachain/js-ext-core"; import { JsonRpcSigner } from "./signer.js"; export declare class JsonRpcProvider extends EthersJsonRpcProvider { admin: AsyncNamespaceApi; debug: AsyncNamespaceApi; governance: AsyncNamespaceApi; klay: AsyncNamespaceApi; net: AsyncNamespaceApi; personal: AsyncNamespaceApi; txpool: AsyncNamespaceApi; constructor(url?: FetchRequest | string | undefined, network?: Networkish); } export declare class Web3Provider extends EthersWeb3Provider { admin: AsyncNamespaceApi; debug: AsyncNamespaceApi; governance: AsyncNamespaceApi; klay: AsyncNamespaceApi; net: AsyncNamespaceApi; personal: AsyncNamespaceApi; txpool: AsyncNamespaceApi; isKaikas?: boolean; isMobile?: boolean; private _sendFunction; constructor(provider: any, network?: any); getSigner(addressOrIndex?: string | number): Promise<JsonRpcSigner>; send(method: string, params: Array<any> | Record<string, any>): Promise<any>; listAccounts(): Promise<Array<JsonRpcSigner>>; getTransactionCount(address: string): Promise<number>; estimateGas(tx: any): Promise<any>; signMessage(message: string): Promise<any>; getGasPrice(): Promise<any>; getFeeData(): Promise<any>; }