OPNet
    Preparing search index...

    Interface IContract

    This interface is used to define a contract. IContract

    interface IContract {
        address: string | Address;
        get p2opOrTweaked(): string;
        currentGasParameters(): Promise<BlockGasParameters>;
        decodeEvent(event: NetEvent): OPNetEvent;
        decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
        encodeCalldata(method: string, ...args: unknown[]): Buffer;
        setAccessList(accessList: IAccessList): void;
        setSender(sender: Address): void;
        setSimulatedHeight(height: undefined | bigint): void;
        setTransactionDetails(tx: ParsedSimulatedTransaction): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    address: string | Address

    Accessors

    Methods