@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
297 lines • 6.69 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var UniswapV3QuoterV2Implementation_exports = {};
__export(UniswapV3QuoterV2Implementation_exports, {
UniswapV3QuoterV2ABI: () => UniswapV3QuoterV2ABI,
default: () => UniswapV3QuoterV2Implementation_default
});
module.exports = __toCommonJS(UniswapV3QuoterV2Implementation_exports);
const UniswapV3QuoterV2ABI = [
{
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: "struct IQuoterV2.QuoteExactInputSingleParams",
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: "struct IQuoterV2.QuoteExactOutputSingleParams",
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"
}
];
var UniswapV3QuoterV2Implementation_default = UniswapV3QuoterV2ABI;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
UniswapV3QuoterV2ABI
});
//# sourceMappingURL=UniswapV3QuoterV2Implementation.cjs.map