UNPKG

@kaiachain/ethers-ext

Version:
28 lines (27 loc) 805 B
import { TransactionRequest as EthersTransactionRequest } from "ethers"; export type EthersExternalProvider = { isMetaMask?: boolean; isStatus?: boolean; host?: string; path?: string; sendAsync?: (request: { method: string; params?: Array<any>; }, callback: (error: any, response: any) => void) => void; send?: (request: { method: string; params?: Array<any>; }, callback: (error: any, response: any) => void) => void; request?: (request: { method: string; params?: Array<any>; }) => Promise<any>; }; export interface TransactionRequest extends EthersTransactionRequest { txSignatures?: any[]; feePayer?: string; feePayerSignatures?: any[]; } export interface ExternalProvider { isKaikas?: boolean; }