GlowSwap Docs
  • Developer
    • Contract Address
    • Quote
    • Smart Router
    • Position
    • Pool
    • ABI
      • Swap Router ABI
      • Multicall ABI
      • Quote ABI
      • Position ABI
      • Pool ABI
Powered by GitBook
On this page
  1. Developer
  2. ABI

Quote ABI

export quoteABI = [
        {
          type: 'function',
          stateMutability: 'nonpayable',
          outputs: [
            { type: 'uint256', name: 'amountOut', internalType: 'uint256' },
            {
              type: 'uint160[]',
              name: 'sqrtPriceX96AfterList',
              internalType: 'uint160[]',
            },
            {
              type: 'uint32[]',
              name: 'initializedTicksCrossedList',
              internalType: 'uint32[]',
            },
            {
              type: 'uint256',
              name: 'gasEstimate',
              internalType: 'uint256',
            },
          ],
          name: 'quoteExactInput',
          inputs: [
            { type: 'bytes', name: 'path', internalType: 'bytes' },
            { type: 'uint256', name: 'amountIn', internalType: 'uint256' },
          ],
        },
         {
          type: 'function',
          stateMutability: 'nonpayable',
          outputs: [
            { type: 'uint256', name: 'amountIn', internalType: 'uint256' },
            {
              type: 'uint160[]',
              name: 'sqrtPriceX96AfterList',
              internalType: 'uint160[]',
            },
            {
              type: 'uint32[]',
              name: 'initializedTicksCrossedList',
              internalType: 'uint32[]',
            },
            {
              type: 'uint256',
              name: 'gasEstimate',
              internalType: 'uint256',
            },
          ],
          name: 'quoteExactOutput',
          inputs: [
            { type: 'bytes', name: 'path', internalType: 'bytes' },
            { type: 'uint256', name: 'amountOut', internalType: 'uint256' },
          ],
        }
  ] as const
 
PreviousMulticall ABINextPosition ABI

Last updated 1 year ago