rubic-sdk
Version:
Simplify dApp creation
120 lines • 4.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SPARK_DEX_V3_FLARE_QUOTER_CONTRACT_ABI = exports.SPARK_DEX_V3_FLARE_QUOTER_CONTRACT_ADDRESS = void 0;
exports.SPARK_DEX_V3_FLARE_QUOTER_CONTRACT_ADDRESS = '0x5B5513c55fd06e2658010c121c37b07fC8e8B705';
exports.SPARK_DEX_V3_FLARE_QUOTER_CONTRACT_ABI = [
{
inputs: [
{ internalType: 'address', name: '_factory', type: 'address' },
{ internalType: 'address', name: '_WETH9', type: 'address' }
],
stateMutability: 'nonpayable',
type: 'constructor'
},
{
inputs: [],
name: 'WETH9',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [],
name: 'factory',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'bytes', name: 'path', type: 'bytes' },
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }
],
name: 'quoteExactInput',
outputs: [
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
{ internalType: 'uint160[]', name: 'sqrtPriceX96AfterList', type: 'uint160[]' },
{ internalType: 'uint32[]', name: 'initializedTicksCrossedList', type: 'uint32[]' },
{ internalType: 'uint256', name: 'gasEstimate', type: 'uint256' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
components: [
{ internalType: 'address', name: 'tokenIn', type: 'address' },
{ internalType: 'address', name: 'tokenOut', type: 'address' },
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
{ internalType: 'uint24', name: 'fee', type: 'uint24' },
{ internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }
],
internalType: 'tuple',
name: 'params',
type: 'tuple'
}
],
name: 'quoteExactInputSingle',
outputs: [
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' },
{ internalType: 'uint160', name: 'sqrtPriceX96After', type: 'uint160' },
{ internalType: 'uint32', name: 'initializedTicksCrossed', type: 'uint32' },
{ internalType: 'uint256', name: 'gasEstimate', type: 'uint256' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{ internalType: 'bytes', name: 'path', type: 'bytes' },
{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }
],
name: 'quoteExactOutput',
outputs: [
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
{ internalType: 'uint160[]', name: 'sqrtPriceX96AfterList', type: 'uint160[]' },
{ internalType: 'uint32[]', name: 'initializedTicksCrossedList', type: 'uint32[]' },
{ internalType: 'uint256', name: 'gasEstimate', type: 'uint256' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
components: [
{ internalType: 'address', name: 'tokenIn', type: 'address' },
{ internalType: 'address', name: 'tokenOut', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'uint24', name: 'fee', type: 'uint24' },
{ internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }
],
internalType: 'tuple',
name: 'params',
type: 'tuple'
}
],
name: 'quoteExactOutputSingle',
outputs: [
{ internalType: 'uint256', name: 'amountIn', type: 'uint256' },
{ internalType: 'uint160', name: 'sqrtPriceX96After', type: 'uint160' },
{ internalType: 'uint32', name: 'initializedTicksCrossed', type: 'uint32' },
{ internalType: 'uint256', name: 'gasEstimate', type: 'uint256' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{ internalType: 'int256', name: 'amount0Delta', type: 'int256' },
{ internalType: 'int256', name: 'amount1Delta', type: 'int256' },
{ internalType: 'bytes', name: 'path', type: 'bytes' }
],
name: 'uniswapV3SwapCallback',
outputs: [],
stateMutability: 'view',
type: 'function'
}
];
//# sourceMappingURL=spark-dex-v3-flare-quoter-data.js.map