[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "router_",
        "type": "address",
        "internalType": "contract StonkBrokerAIRouter"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "GAS_CEILING",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "MAX_BATCH",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "balancesOf",
    "inputs": [
      {
        "name": "holder",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokens",
        "type": "address[]",
        "internalType": "address[]"
      }
    ],
    "outputs": [
      {
        "name": "out",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "feedStatus",
    "inputs": [
      {
        "name": "feed",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "maxAge",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "s",
        "type": "tuple",
        "internalType": "struct FeedStatus",
        "components": [
          {
            "name": "reason",
            "type": "uint8",
            "internalType": "enum Reason"
          },
          {
            "name": "answer",
            "type": "int256",
            "internalType": "int256"
          },
          {
            "name": "updatedAt",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "age",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "feedStatusBatch",
    "inputs": [
      {
        "name": "feeds",
        "type": "address[]",
        "internalType": "address[]"
      },
      {
        "name": "maxAge",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "out",
        "type": "tuple[]",
        "internalType": "struct FeedStatus[]",
        "components": [
          {
            "name": "reason",
            "type": "uint8",
            "internalType": "enum Reason"
          },
          {
            "name": "answer",
            "type": "int256",
            "internalType": "int256"
          },
          {
            "name": "updatedAt",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "age",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "isPaused",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "enum Reason"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "poolDepth",
    "inputs": [
      {
        "name": "venue",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "tokenA",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenB",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "fee",
        "type": "uint24",
        "internalType": "uint24"
      }
    ],
    "outputs": [
      {
        "name": "d",
        "type": "tuple",
        "internalType": "struct PoolDepth",
        "components": [
          {
            "name": "reason",
            "type": "uint8",
            "internalType": "enum Reason"
          },
          {
            "name": "pool",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "liquidity",
            "type": "uint128",
            "internalType": "uint128"
          },
          {
            "name": "sqrtPriceX96",
            "type": "uint160",
            "internalType": "uint160"
          },
          {
            "name": "tick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "balance0",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "balance1",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "quote",
    "inputs": [
      {
        "name": "q",
        "type": "tuple",
        "internalType": "struct SwapQuery",
        "components": [
          {
            "name": "tokenIn",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "amountIn",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "hops",
            "type": "tuple[]",
            "internalType": "struct Hop[]",
            "components": [
              {
                "name": "venue",
                "type": "uint8",
                "internalType": "uint8"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tokenOut",
                "type": "address",
                "internalType": "address"
              }
            ]
          },
          {
            "name": "integrator",
            "type": "tuple",
            "internalType": "struct Integrator",
            "components": [
              {
                "name": "feeTo",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "feeBps",
                "type": "uint16",
                "internalType": "uint16"
              },
              {
                "name": "ref",
                "type": "bytes32",
                "internalType": "bytes32"
              }
            ]
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "r",
        "type": "tuple",
        "internalType": "struct SwapQuote",
        "components": [
          {
            "name": "reason",
            "type": "uint8",
            "internalType": "enum Reason"
          },
          {
            "name": "amountOut",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "protocolFee",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "integratorFee",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "totalIn",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "quoteBatch",
    "inputs": [
      {
        "name": "qs",
        "type": "tuple[]",
        "internalType": "struct SwapQuery[]",
        "components": [
          {
            "name": "tokenIn",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "amountIn",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "hops",
            "type": "tuple[]",
            "internalType": "struct Hop[]",
            "components": [
              {
                "name": "venue",
                "type": "uint8",
                "internalType": "uint8"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tokenOut",
                "type": "address",
                "internalType": "address"
              }
            ]
          },
          {
            "name": "integrator",
            "type": "tuple",
            "internalType": "struct Integrator",
            "components": [
              {
                "name": "feeTo",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "feeBps",
                "type": "uint16",
                "internalType": "uint16"
              },
              {
                "name": "ref",
                "type": "bytes32",
                "internalType": "bytes32"
              }
            ]
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "out",
        "type": "tuple[]",
        "internalType": "struct SwapQuote[]",
        "components": [
          {
            "name": "reason",
            "type": "uint8",
            "internalType": "enum Reason"
          },
          {
            "name": "amountOut",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "protocolFee",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "integratorFee",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "totalIn",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "gasUsed",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "routeHealth",
    "inputs": [
      {
        "name": "venue",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "quoteToken",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "fee",
        "type": "uint24",
        "internalType": "uint24"
      },
      {
        "name": "minQuote",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "reason",
        "type": "uint8",
        "internalType": "enum Reason"
      },
      {
        "name": "quoteBalance",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "router",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract StonkBrokerAIRouter"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "error",
    "name": "BatchTooLarge",
    "inputs": [
      {
        "name": "n",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  }
]