OPNet
    Preparing search index...

    Interface IMotoswapPoolContract

    This interface represents a motoswap pool contract. IMotoswapPoolContract

    Contracts

    interface IMotoswapPoolContract {
        address: string | Address;
        p2opOrTweaked: string;
        airdrop(map: AddressMap<bigint>): Promise<Airdrop>;
        airdropWithAmount(
            amount: bigint,
            addresses: Address[],
        ): Promise<AirdropWithAmount>;
        allowance(owner: Address, spender: Address): Promise<Allowance>;
        balanceOf(account: Address): Promise<BalanceOf>;
        blockTimestampLast(): Promise<
            CallResult<
                { blockTimestampLast: bigint },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        burn(
            to: Address,
        ): Promise<
            CallResult<
                { amount0: bigint; amount1: bigint },
                [OPNetEvent<LiquidityRemovedEvent>],
            >,
        >;
        currentGasParameters(): Promise<BlockGasParameters>;
        decimals(): Promise<Decimals>;
        decodeEvent(event: NetEvent): OPNetEvent;
        decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
        decreaseAllowance(
            spender: Address,
            amount: bigint,
        ): Promise<DecreaseAllowance>;
        decreaseAllowanceBySignature(
            owner: Address,
            spender: Address,
            amount: bigint,
            deadline: bigint,
            signature: Uint8Array,
        ): Promise<DecreaseAllowanceBySignature>;
        deployer(): Promise<
            CallResult<
                { deployer: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        domainSeparator(): Promise<DomainSeparator>;
        encodeCalldata(method: string, ...args: unknown[]): Buffer;
        getReserves(): Promise<
            CallResult<Reserves, OPNetEvent<ContractDecodedObjectResult>[]>,
        >;
        icon(): Promise<TokenIcon>;
        increaseAllowance(
            spender: Address,
            amount: bigint,
        ): Promise<IncreaseAllowance>;
        increaseAllowanceBySignature(
            owner: Address,
            spender: Address,
            amount: bigint,
            deadline: bigint,
            signature: Uint8Array,
        ): Promise<IncreaseAllowanceBySignature>;
        initialize(
            token0: Address,
            token1: Address,
        ): Promise<CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>>;
        kLast(): Promise<
            CallResult<
                { kLast: bigint },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        maximumSupply(): Promise<MaxSupply>;
        metadata(): Promise<TokenMetadata>;
        MINIMUM_LIQUIDITY(): Promise<
            CallResult<
                { MINIMUM_LIQUIDITY: bigint },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        mint(
            to: Address,
        ): Promise<
            CallResult<{ liquidity: bigint }, [OPNetEvent<LiquidityAddedEvent>]>,
        >;
        name(): Promise<Name>;
        nonceOf(owner: Address): Promise<NonceOf>;
        price0CumulativeLast(): Promise<
            CallResult<
                { price0CumulativeLast: bigint },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        price1CumulativeLast(): Promise<
            CallResult<
                { price1CumulativeLast: bigint },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        safeTransfer(
            to: Address,
            amount: bigint,
            data: Uint8Array,
        ): Promise<SafeTransfer>;
        safeTransferFrom(
            from: Address,
            to: Address,
            amount: bigint,
            data: Uint8Array,
        ): Promise<SafeTransferFrom>;
        setAccessList(accessList: IAccessList): void;
        setSender(sender: Address): void;
        setSimulatedHeight(height: undefined | bigint): void;
        setTransactionDetails(tx: ParsedSimulatedTransaction): void;
        skim(): Promise<CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>>;
        swap(
            amount0Out: bigint,
            amount1Out: bigint,
            to: string,
            data: Uint8Array,
        ): Promise<CallResult<{}, [OPNetEvent<SwappedEvent>]>>;
        symbol(): Promise<SymbolOf>;
        sync(): Promise<CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>>;
        token0(): Promise<
            CallResult<
                { token0: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        token1(): Promise<
            CallResult<
                { token1: Address },
                OPNetEvent<ContractDecodedObjectResult>[],
            >,
        >;
        totalSupply(): Promise<TotalSupply>;
        [key: symbol]: CallResult<{}, OPNetEvent<ContractDecodedObjectResult>[]>;
    }

    Hierarchy

    Indexable

    Index

    Properties

    address: string | Address
    p2opOrTweaked: string

    Methods