[
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_positionManager",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_executor",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_owner",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [],
    "name": "ExecutorNotApproved",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "InvalidOrderParams",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "NoOrderSet",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "NotExecutor",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "NotPositionOwner",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "OrderStillValid",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      }
    ],
    "name": "OwnableInvalidOwner",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "OwnableUnauthorizedAccount",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "OwnershipCannotBeRenounced",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "pair",
        "type": "address"
      }
    ],
    "name": "PairNotApproved",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "ZeroAddress",
    "type": "error"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "oldExecutor",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newExecutor",
        "type": "address"
      }
    ],
    "name": "ExecutorUpdated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "positionOwner",
        "type": "address"
      }
    ],
    "name": "OrderCancelled",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "OrderCleaned",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "OrderCleared",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousCreator",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newCreator",
        "type": "address"
      }
    ],
    "name": "OrderOverwritten",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "positionOwner",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "feeTargetX",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "feeTargetY",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint24",
        "name": "slBinId",
        "type": "uint24"
      },
      {
        "indexed": false,
        "internalType": "uint24",
        "name": "tpBinId",
        "type": "uint24"
      }
    ],
    "name": "OrderSet",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "cancelOrder",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "cleanupOrder",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "clearOrder",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "executor",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "getOrder",
    "outputs": [
      {
        "components": [
          {
            "internalType": "bool",
            "name": "active",
            "type": "bool"
          },
          {
            "internalType": "address",
            "name": "creator",
            "type": "address"
          },
          {
            "internalType": "uint256",
            "name": "feeTargetX",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "feeTargetY",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "feeBaselineX",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "feeBaselineY",
            "type": "uint256"
          },
          {
            "internalType": "uint24",
            "name": "slBinId",
            "type": "uint24"
          },
          {
            "internalType": "uint24",
            "name": "tpBinId",
            "type": "uint24"
          },
          {
            "internalType": "uint128",
            "name": "minAmountX",
            "type": "uint128"
          },
          {
            "internalType": "uint128",
            "name": "minAmountY",
            "type": "uint128"
          },
          {
            "internalType": "uint256",
            "name": "minValueFloor",
            "type": "uint256"
          },
          {
            "internalType": "uint8",
            "name": "valueDenomToken",
            "type": "uint8"
          },
          {
            "internalType": "uint64",
            "name": "createdAt",
            "type": "uint64"
          }
        ],
        "internalType": "struct OrderManager.Order",
        "name": "",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "isActive",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "name": "orders",
    "outputs": [
      {
        "internalType": "bool",
        "name": "active",
        "type": "bool"
      },
      {
        "internalType": "address",
        "name": "creator",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "feeTargetX",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "feeTargetY",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "feeBaselineX",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "feeBaselineY",
        "type": "uint256"
      },
      {
        "internalType": "uint24",
        "name": "slBinId",
        "type": "uint24"
      },
      {
        "internalType": "uint24",
        "name": "tpBinId",
        "type": "uint24"
      },
      {
        "internalType": "uint128",
        "name": "minAmountX",
        "type": "uint128"
      },
      {
        "internalType": "uint128",
        "name": "minAmountY",
        "type": "uint128"
      },
      {
        "internalType": "uint256",
        "name": "minValueFloor",
        "type": "uint256"
      },
      {
        "internalType": "uint8",
        "name": "valueDenomToken",
        "type": "uint8"
      },
      {
        "internalType": "uint64",
        "name": "createdAt",
        "type": "uint64"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "positionManager",
    "outputs": [
      {
        "internalType": "contract IPositionNFTManager",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "pure",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newExecutor",
        "type": "address"
      }
    ],
    "name": "setExecutor",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "tokenId",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "feeTargetX",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "feeTargetY",
            "type": "uint256"
          },
          {
            "internalType": "uint24",
            "name": "slBinId",
            "type": "uint24"
          },
          {
            "internalType": "uint24",
            "name": "tpBinId",
            "type": "uint24"
          },
          {
            "internalType": "uint128",
            "name": "minAmountX",
            "type": "uint128"
          },
          {
            "internalType": "uint128",
            "name": "minAmountY",
            "type": "uint128"
          },
          {
            "internalType": "uint256",
            "name": "minValueFloor",
            "type": "uint256"
          },
          {
            "internalType": "uint8",
            "name": "valueDenomToken",
            "type": "uint8"
          }
        ],
        "internalType": "struct OrderManager.SetOrderParams",
        "name": "params",
        "type": "tuple"
      }
    ],
    "name": "setOrder",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]
