OPNet
    Preparing search index...

    Interface IMotoswapFactoryContract

    This is the interface that represent the MotoSwap Factory contract. IMotoswapFactoryContract

    Contracts

    interface IMotoswapFactoryContract {
        address: string | Address;
        get p2opOrTweaked(): string;
        createPool(
            token0: Address,
            token1: Address,
        ): Promise<
            CallResult<{ address: Address }, [OPNetEvent<PoolCreatedEvent>]>,
        >;
        currentGasParameters(): Promise<BlockGasParameters>;
        decodeEvent(event: NetEvent): OPNetEvent;
        decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
        deployer(): Promise<
            CallResult<
                { deployer: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        encodeCalldata(method: string, ...args: unknown[]): Buffer;
        getPool(
            token0: Address,
            token1: Address,
        ): Promise<
            CallResult<
                { pool: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        getStakingContractAddress(): Promise<
            CallResult<
                { stakingContractAddress: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        setAccessList(accessList: IAccessList): void;
        setSender(sender: Address): void;
        setSimulatedHeight(height: undefined | bigint): void;
        setStakingContractAddress(
            stakingContractAddress: Address,
        ): Promise<CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>>;
        setTransactionDetails(tx: ParsedSimulatedTransaction): void;
        [key: symbol]: CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>;
    }

    Hierarchy (View Summary)

    Indexable

    Index

    Properties

    address: string | Address

    Accessors

    Methods