types-interfaces
Type definitions used in web3 service, follow the guidelines to get better performance.
ApproveParam
export interface ApproveParam {
amount: number;
approveContract: any;
address: string;
toAddress: string;
chainId: string;
}
connectParams
export interface connectParams {
chainId: string;
rpcUrl?: string;
infuraApiKey?: string;
}
connectResponse
export interface connectResponse {
status: boolean;
message: string;
account: any;
}
SendTransactionParam
export interface SendTransactionParam {
fromAddress: string;
toAddress: string;
abi: any;
value?: any;
chainId?: string;
}
ETHsendTransactionParam
export interface ETHsendTransactionParam {
method: string;
from: string;
to: string;
data: any;
value?: any;
chainId?: string;
}