Extension methods for the EVM Default Chain SDK

interface IEVMDefaultChain {
    chainId: number;
    contracts: Map<string, Contract>;
    createRawTransaction: ((tx_data: any) => Promise<any>);
    getContractInstance: ((address: string, abi: string) => Promise<Contract>);
    isEIP1559: boolean;
    listenForAllEvents: ((contract: string, abi: Interface | InterfaceAbi, callback: ((...args: any[]) => void)) => (() => void));
    listenForEvent: ((contract: string, abi: Interface | InterfaceAbi, event: string, timeout: number) => Promise<any>);
    prepareBaseTxWithType: (() => Promise<any>);
    readFromContract: ((contract: any, method: string, args: any) => Promise<any>);
    waitForReceipt: ((tx_hash: string) => Promise<TransactionReceipt>);
    writeToContract: ((contract: any, method: string, args: any) => Promise<any>);
}

Implemented by

Properties

chainId: number
contracts: Map<string, Contract>
createRawTransaction: ((tx_data: any) => Promise<any>)
getContractInstance: ((address: string, abi: string) => Promise<Contract>)
isEIP1559: boolean
listenForAllEvents: ((contract: string, abi: Interface | InterfaceAbi, callback: ((...args: any[]) => void)) => (() => void))
listenForEvent: ((contract: string, abi: Interface | InterfaceAbi, event: string, timeout: number) => Promise<any>)
prepareBaseTxWithType: (() => Promise<any>)
readFromContract: ((contract: any, method: string, args: any) => Promise<any>)
waitForReceipt: ((tx_hash: string) => Promise<TransactionReceipt>)
writeToContract: ((contract: any, method: string, args: any) => Promise<any>)