/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  PayableOverrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface FutureRouterInterface extends ethers.utils.Interface {
  functions: {
    "bulkCancelOrder(uint256[],uint256[])": FunctionFragment;
    "bulkLimitOrderExec(address[],uint256[],address[],uint256[])": FunctionFragment;
    "bulkLimitOrderExecable(address[],uint256[],address[],uint256[])": FunctionFragment;
    "bulkLiquidatePosition(address[],address[],address[],bool[])": FunctionFragment;
    "cancelDecreaseOrder(uint256)": FunctionFragment;
    "cancelIncreaseOrder(uint256)": FunctionFragment;
    "decreaseMargin(address,address,bool,uint256,address,address)": FunctionFragment;
    "decreasePosition(address,address,bool,uint256,uint256,uint256,uint256,address,address)": FunctionFragment;
    "execDecreaseOrder(address,uint256)": FunctionFragment;
    "execIncreaseOrder(address,uint256)": FunctionFragment;
    "future()": FunctionFragment;
    "futureLimit()": FunctionFragment;
    "getLimitMinExecFee()": FunctionFragment;
    "increaseInsuranceFund(address,uint256)": FunctionFragment;
    "increaseMargin(address,address,address,bool,uint256,uint256)": FunctionFragment;
    "increasePosition(address,address,address,bool,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
    "increasePositionAndLimitDecrasePosition(address,address,address,bool,uint256,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
    "limitDecrasePosition(address,address,bool,uint256,uint256,uint256,uint256)": FunctionFragment;
    "limitIncreaseAndDecreasePosition(address,address,bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
    "limitIncreaseAndDecreasePositionETH(address,address,bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
    "limitIncreasePosition(address,address,bool,uint256,uint256,uint256,uint256)": FunctionFragment;
    "limitIncreasePositionETH(address,address,bool,uint256,uint256,uint256,uint256)": FunctionFragment;
    "liquidatePosition(address,address,address,bool)": FunctionFragment;
    "owner()": FunctionFragment;
    "renounceOwnership()": FunctionFragment;
    "setFutureLimit(address)": FunctionFragment;
    "setStableCoin(address,bool)": FunctionFragment;
    "stableCoinMapper(address)": FunctionFragment;
    "swapPool()": FunctionFragment;
    "tradeStakeUpdater()": FunctionFragment;
    "transferOwnership(address)": FunctionFragment;
    "weth()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "bulkCancelOrder",
    values: [BigNumberish[], BigNumberish[]]
  ): string;
  encodeFunctionData(
    functionFragment: "bulkLimitOrderExec",
    values: [string[], BigNumberish[], string[], BigNumberish[]]
  ): string;
  encodeFunctionData(
    functionFragment: "bulkLimitOrderExecable",
    values: [string[], BigNumberish[], string[], BigNumberish[]]
  ): string;
  encodeFunctionData(
    functionFragment: "bulkLiquidatePosition",
    values: [string[], string[], string[], boolean[]]
  ): string;
  encodeFunctionData(
    functionFragment: "cancelDecreaseOrder",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "cancelIncreaseOrder",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "decreaseMargin",
    values: [string, string, boolean, BigNumberish, string, string]
  ): string;
  encodeFunctionData(
    functionFragment: "decreasePosition",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      string,
      string
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "execDecreaseOrder",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "execIncreaseOrder",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "future", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "futureLimit",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLimitMinExecFee",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "increaseInsuranceFund",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "increaseMargin",
    values: [string, string, string, boolean, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "increasePosition",
    values: [
      string,
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "increasePositionAndLimitDecrasePosition",
    values: [
      string,
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "limitDecrasePosition",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "limitIncreaseAndDecreasePosition",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "limitIncreaseAndDecreasePositionETH",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "limitIncreasePosition",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "limitIncreasePositionETH",
    values: [
      string,
      string,
      boolean,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "liquidatePosition",
    values: [string, string, string, boolean]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setFutureLimit",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setStableCoin",
    values: [string, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "stableCoinMapper",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "swapPool", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "tradeStakeUpdater",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "weth", values?: undefined): string;

  decodeFunctionResult(
    functionFragment: "bulkCancelOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "bulkLimitOrderExec",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "bulkLimitOrderExecable",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "bulkLiquidatePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "cancelDecreaseOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "cancelIncreaseOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "decreaseMargin",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "decreasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "execDecreaseOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "execIncreaseOrder",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "future", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "futureLimit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLimitMinExecFee",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "increaseInsuranceFund",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "increaseMargin",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "increasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "increasePositionAndLimitDecrasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitDecrasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitIncreaseAndDecreasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitIncreaseAndDecreasePositionETH",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitIncreasePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "limitIncreasePositionETH",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "liquidatePosition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setFutureLimit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setStableCoin",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "stableCoinMapper",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "swapPool", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "tradeStakeUpdater",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "weth", data: BytesLike): Result;

  events: {
    "OwnershipTransferred(address,address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
}

export type OwnershipTransferredEvent = TypedEvent<
  [string, string] & { previousOwner: string; newOwner: string }
>;

export class FutureRouter extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: FutureRouterInterface;

  functions: {
    bulkCancelOrder(
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    bulkLimitOrderExec(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    bulkLimitOrderExecable(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<
      [boolean[], boolean[]] & {
        increaseOrderExecables: boolean[];
        decreaseOrderExecables: boolean[];
      }
    >;

    bulkLiquidatePosition(
      _collTokens: string[],
      _indexTokens: string[],
      _accounts: string[],
      _isLongs: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    cancelDecreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    cancelIncreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    decreaseMargin(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountOut: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    decreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      arg3: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    execDecreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    execIncreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    future(overrides?: CallOverrides): Promise<[string]>;

    futureLimit(overrides?: CallOverrides): Promise<[string]>;

    getLimitMinExecFee(overrides?: CallOverrides): Promise<[BigNumber]>;

    increaseInsuranceFund(
      _collateralToken: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    increaseMargin(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    increasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    increasePositionAndLimitDecrasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    limitDecrasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    limitIncreaseAndDecreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    limitIncreaseAndDecreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    limitIncreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    limitIncreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    liquidatePosition(
      _collateralToken: string,
      _indexToken: string,
      _account: string,
      _isLong: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    owner(overrides?: CallOverrides): Promise<[string]>;

    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setFutureLimit(
      _futureLimit: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setStableCoin(
      _token: string,
      _allowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    stableCoinMapper(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    swapPool(overrides?: CallOverrides): Promise<[string]>;

    tradeStakeUpdater(overrides?: CallOverrides): Promise<[string]>;

    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    weth(overrides?: CallOverrides): Promise<[string]>;
  };

  bulkCancelOrder(
    increaseOrderIndexes: BigNumberish[],
    decreaseOrderIndexes: BigNumberish[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  bulkLimitOrderExec(
    increaseOrderAccounts: string[],
    increaseOrderIndexes: BigNumberish[],
    decreaseOrderAccounts: string[],
    decreaseOrderIndexes: BigNumberish[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  bulkLimitOrderExecable(
    increaseOrderAccounts: string[],
    increaseOrderIndexes: BigNumberish[],
    decreaseOrderAccounts: string[],
    decreaseOrderIndexes: BigNumberish[],
    overrides?: CallOverrides
  ): Promise<
    [boolean[], boolean[]] & {
      increaseOrderExecables: boolean[];
      decreaseOrderExecables: boolean[];
    }
  >;

  bulkLiquidatePosition(
    _collTokens: string[],
    _indexTokens: string[],
    _accounts: string[],
    _isLongs: boolean[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  cancelDecreaseOrder(
    _orderIndex: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  cancelIncreaseOrder(
    _orderIndex: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  decreaseMargin(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _amountOut: BigNumberish,
    _receiver: string,
    _tokenOut: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  decreasePosition(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    arg3: BigNumberish,
    _notionalDelta: BigNumberish,
    _collateralPrice: BigNumberish,
    _indexPrice: BigNumberish,
    _receiver: string,
    _tokenOut: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  execDecreaseOrder(
    _account: string,
    _orderIndex: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  execIncreaseOrder(
    _account: string,
    _orderIndex: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  future(overrides?: CallOverrides): Promise<string>;

  futureLimit(overrides?: CallOverrides): Promise<string>;

  getLimitMinExecFee(overrides?: CallOverrides): Promise<BigNumber>;

  increaseInsuranceFund(
    _collateralToken: string,
    _amount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  increaseMargin(
    _tokenIn: string,
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _amountIn: BigNumberish,
    _minOut: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  increasePosition(
    _tokenIn: string,
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _amountIn: BigNumberish,
    _minOut: BigNumberish,
    _notionalDelta: BigNumberish,
    _collateralPrice: BigNumberish,
    _indexPrice: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  increasePositionAndLimitDecrasePosition(
    _tokenIn: string,
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _amountIn: BigNumberish,
    _minOut: BigNumberish,
    _notionalDelta: BigNumberish,
    _minSizeDelta: BigNumberish,
    _maxSizeDelta: BigNumberish,
    _execFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  limitDecrasePosition(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _notionalDelta: BigNumberish,
    _minSizeDelta: BigNumberish,
    _maxSizeDelta: BigNumberish,
    _execFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  limitIncreaseAndDecreasePosition(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _increaseMarginDelta: BigNumberish,
    _increaseNotionalDelta: BigNumberish,
    _increaseSizeDelta: BigNumberish,
    _increaseExecFee: BigNumberish,
    _decreaseNotionalDelta: BigNumberish,
    _decreaseMinSizeDelta: BigNumberish,
    _decreaseMaxSizeDelta: BigNumberish,
    _decreaseExecFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  limitIncreaseAndDecreasePositionETH(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _increaseMarginDelta: BigNumberish,
    _increaseNotionalDelta: BigNumberish,
    _increaseSizeDelta: BigNumberish,
    _increaseExecFee: BigNumberish,
    _decreaseNotionalDelta: BigNumberish,
    _decreaseMinSizeDelta: BigNumberish,
    _decreaseMaxSizeDelta: BigNumberish,
    _decreaseExecFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  limitIncreasePosition(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _marginDelta: BigNumberish,
    _notionalDelta: BigNumberish,
    _sizeDelta: BigNumberish,
    _execFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  limitIncreasePositionETH(
    _collateralToken: string,
    _indexToken: string,
    _isLong: boolean,
    _marginDelta: BigNumberish,
    _notionalDelta: BigNumberish,
    _sizeDelta: BigNumberish,
    _execFee: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  liquidatePosition(
    _collateralToken: string,
    _indexToken: string,
    _account: string,
    _isLong: boolean,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  owner(overrides?: CallOverrides): Promise<string>;

  renounceOwnership(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setFutureLimit(
    _futureLimit: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setStableCoin(
    _token: string,
    _allowed: boolean,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  stableCoinMapper(arg0: string, overrides?: CallOverrides): Promise<boolean>;

  swapPool(overrides?: CallOverrides): Promise<string>;

  tradeStakeUpdater(overrides?: CallOverrides): Promise<string>;

  transferOwnership(
    newOwner: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  weth(overrides?: CallOverrides): Promise<string>;

  callStatic: {
    bulkCancelOrder(
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<void>;

    bulkLimitOrderExec(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<void>;

    bulkLimitOrderExecable(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<
      [boolean[], boolean[]] & {
        increaseOrderExecables: boolean[];
        decreaseOrderExecables: boolean[];
      }
    >;

    bulkLiquidatePosition(
      _collTokens: string[],
      _indexTokens: string[],
      _accounts: string[],
      _isLongs: boolean[],
      overrides?: CallOverrides
    ): Promise<void>;

    cancelDecreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    cancelIncreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    decreaseMargin(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountOut: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: CallOverrides
    ): Promise<void>;

    decreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      arg3: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: CallOverrides
    ): Promise<void>;

    execDecreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    execIncreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    future(overrides?: CallOverrides): Promise<string>;

    futureLimit(overrides?: CallOverrides): Promise<string>;

    getLimitMinExecFee(overrides?: CallOverrides): Promise<BigNumber>;

    increaseInsuranceFund(
      _collateralToken: string,
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    increaseMargin(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    increasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    increasePositionAndLimitDecrasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    limitDecrasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    limitIncreaseAndDecreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    limitIncreaseAndDecreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    limitIncreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    limitIncreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    liquidatePosition(
      _collateralToken: string,
      _indexToken: string,
      _account: string,
      _isLong: boolean,
      overrides?: CallOverrides
    ): Promise<void>;

    owner(overrides?: CallOverrides): Promise<string>;

    renounceOwnership(overrides?: CallOverrides): Promise<void>;

    setFutureLimit(
      _futureLimit: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setStableCoin(
      _token: string,
      _allowed: boolean,
      overrides?: CallOverrides
    ): Promise<void>;

    stableCoinMapper(arg0: string, overrides?: CallOverrides): Promise<boolean>;

    swapPool(overrides?: CallOverrides): Promise<string>;

    tradeStakeUpdater(overrides?: CallOverrides): Promise<string>;

    transferOwnership(
      newOwner: string,
      overrides?: CallOverrides
    ): Promise<void>;

    weth(overrides?: CallOverrides): Promise<string>;
  };

  filters: {
    "OwnershipTransferred(address,address)"(
      previousOwner?: string | null,
      newOwner?: string | null
    ): TypedEventFilter<
      [string, string],
      { previousOwner: string; newOwner: string }
    >;

    OwnershipTransferred(
      previousOwner?: string | null,
      newOwner?: string | null
    ): TypedEventFilter<
      [string, string],
      { previousOwner: string; newOwner: string }
    >;
  };

  estimateGas: {
    bulkCancelOrder(
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    bulkLimitOrderExec(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    bulkLimitOrderExecable(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    bulkLiquidatePosition(
      _collTokens: string[],
      _indexTokens: string[],
      _accounts: string[],
      _isLongs: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    cancelDecreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    cancelIncreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    decreaseMargin(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountOut: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    decreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      arg3: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    execDecreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    execIncreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    future(overrides?: CallOverrides): Promise<BigNumber>;

    futureLimit(overrides?: CallOverrides): Promise<BigNumber>;

    getLimitMinExecFee(overrides?: CallOverrides): Promise<BigNumber>;

    increaseInsuranceFund(
      _collateralToken: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    increaseMargin(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    increasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    increasePositionAndLimitDecrasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    limitDecrasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    limitIncreaseAndDecreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    limitIncreaseAndDecreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    limitIncreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    limitIncreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    liquidatePosition(
      _collateralToken: string,
      _indexToken: string,
      _account: string,
      _isLong: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    owner(overrides?: CallOverrides): Promise<BigNumber>;

    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setFutureLimit(
      _futureLimit: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setStableCoin(
      _token: string,
      _allowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    stableCoinMapper(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    swapPool(overrides?: CallOverrides): Promise<BigNumber>;

    tradeStakeUpdater(overrides?: CallOverrides): Promise<BigNumber>;

    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    weth(overrides?: CallOverrides): Promise<BigNumber>;
  };

  populateTransaction: {
    bulkCancelOrder(
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    bulkLimitOrderExec(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    bulkLimitOrderExecable(
      increaseOrderAccounts: string[],
      increaseOrderIndexes: BigNumberish[],
      decreaseOrderAccounts: string[],
      decreaseOrderIndexes: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    bulkLiquidatePosition(
      _collTokens: string[],
      _indexTokens: string[],
      _accounts: string[],
      _isLongs: boolean[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    cancelDecreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    cancelIncreaseOrder(
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    decreaseMargin(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountOut: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    decreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      arg3: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      _receiver: string,
      _tokenOut: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    execDecreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    execIncreaseOrder(
      _account: string,
      _orderIndex: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    future(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    futureLimit(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getLimitMinExecFee(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    increaseInsuranceFund(
      _collateralToken: string,
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    increaseMargin(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    increasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _collateralPrice: BigNumberish,
      _indexPrice: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    increasePositionAndLimitDecrasePosition(
      _tokenIn: string,
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _amountIn: BigNumberish,
      _minOut: BigNumberish,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    limitDecrasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _notionalDelta: BigNumberish,
      _minSizeDelta: BigNumberish,
      _maxSizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    limitIncreaseAndDecreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    limitIncreaseAndDecreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _increaseMarginDelta: BigNumberish,
      _increaseNotionalDelta: BigNumberish,
      _increaseSizeDelta: BigNumberish,
      _increaseExecFee: BigNumberish,
      _decreaseNotionalDelta: BigNumberish,
      _decreaseMinSizeDelta: BigNumberish,
      _decreaseMaxSizeDelta: BigNumberish,
      _decreaseExecFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    limitIncreasePosition(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    limitIncreasePositionETH(
      _collateralToken: string,
      _indexToken: string,
      _isLong: boolean,
      _marginDelta: BigNumberish,
      _notionalDelta: BigNumberish,
      _sizeDelta: BigNumberish,
      _execFee: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    liquidatePosition(
      _collateralToken: string,
      _indexToken: string,
      _account: string,
      _isLong: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setFutureLimit(
      _futureLimit: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setStableCoin(
      _token: string,
      _allowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    stableCoinMapper(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    swapPool(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    tradeStakeUpdater(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    weth(overrides?: CallOverrides): Promise<PopulatedTransaction>;
  };
}
