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: any[]) => Promise<any>);
    listenForEvent: ((event: string, contract: string, abi: any[]) => 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: any[]) => Promise<any>)
listenForEvent: ((event: string, contract: string, abi: any[]) => 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>)