UNPKG

@cryptoalgebra/integral-periphery

Version:

Peripheral smart contracts of Algebra Integral protocol

272 lines (271 loc) 6.56 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IQuoterV2", "sourceName": "contracts/interfaces/IQuoterV2.sol", "abi": [ { "inputs": [ { "internalType": "bytes", "name": "path", "type": "bytes" }, { "internalType": "bytes[]", "name": "pluginsData", "type": "bytes[]" }, { "internalType": "uint256", "name": "amountInRequired", "type": "uint256" } ], "name": "quoteExactInput", "outputs": [ { "internalType": "uint256[]", "name": "amountOutList", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amountInList", "type": "uint256[]" }, { "internalType": "uint160[]", "name": "sqrtPriceX96AfterList", "type": "uint160[]" }, { "internalType": "uint32[]", "name": "initializedTicksCrossedList", "type": "uint32[]" }, { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }, { "internalType": "uint16[]", "name": "feeList", "type": "uint16[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bytes", "name": "pluginData", "type": "bytes" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "address", "name": "deployer", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint160", "name": "limitSqrtPrice", "type": "uint160" } ], "internalType": "struct IQuoterV2.QuoteExactInputSingleParams", "name": "params", "type": "tuple" } ], "name": "quoteExactInputSingle", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint160", "name": "sqrtPriceX96After", "type": "uint160" }, { "internalType": "uint32", "name": "initializedTicksCrossed", "type": "uint32" }, { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }, { "internalType": "uint16", "name": "fee", "type": "uint16" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "path", "type": "bytes" }, { "internalType": "bytes[]", "name": "pluginsData", "type": "bytes[]" }, { "internalType": "uint256", "name": "amountOutRequired", "type": "uint256" } ], "name": "quoteExactOutput", "outputs": [ { "internalType": "uint256[]", "name": "amountOutList", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amountInList", "type": "uint256[]" }, { "internalType": "uint160[]", "name": "sqrtPriceX96AfterList", "type": "uint160[]" }, { "internalType": "uint32[]", "name": "initializedTicksCrossedList", "type": "uint32[]" }, { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }, { "internalType": "uint16[]", "name": "feeList", "type": "uint16[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bytes", "name": "pluginData", "type": "bytes" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "address", "name": "deployer", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint160", "name": "limitSqrtPrice", "type": "uint160" } ], "internalType": "struct IQuoterV2.QuoteExactOutputSingleParams", "name": "params", "type": "tuple" } ], "name": "quoteExactOutputSingle", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint160", "name": "sqrtPriceX96After", "type": "uint160" }, { "internalType": "uint32", "name": "initializedTicksCrossed", "type": "uint32" }, { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }, { "internalType": "uint16", "name": "fee", "type": "uint16" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }