@kaiachain/ethers-ext
Version:
ethers.js extension for kaia blockchain
28 lines (27 loc) • 805 B
TypeScript
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;
}