Variable quoterV2AbiConst
quoterV2Abi: readonly [
{
inputs: readonly [
{
components: readonly [
{ name: "tokenIn"; type: "address" },
{ name: "tokenOut"; type: "address" },
{ name: "amountIn"; type: "uint256" },
{ name: "fee"; type: "uint24" },
{ name: "sqrtPriceLimitX96"; type: "uint160" },
];
name: "params";
type: "tuple";
},
];
name: "quoteExactInputSingle";
outputs: readonly [
{ name: "amountOut"; type: "uint256" },
{ name: "sqrtPriceX96After"; type: "uint160" },
{ name: "initializedTicksCrossed"; type: "uint32" },
{ name: "gasEstimate"; type: "uint256" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ name: "path"; type: "bytes" },
{ name: "amountIn"; type: "uint256" },
];
name: "quoteExactInput";
outputs: readonly [
{ name: "amountOut"; type: "uint256" },
{ name: "sqrtPriceX96AfterList"; type: "uint160[]" },
{ name: "initializedTicksCrossedList"; type: "uint32[]" },
{ name: "gasEstimate"; type: "uint256" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [];
name: "factory";
outputs: readonly [{ type: "address" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "WETH9";
outputs: readonly [{ type: "address" }];
stateMutability: "view";
type: "function";
},
] = ...
Uniswap v3 QuoterV2 (quote functions are nonpayable and must be simulated).