@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
283 lines (279 loc) • 6.07 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type { IStrategy, IStrategyInterface } from "../IStrategy";
const _abi = [
{
inputs: [],
name: "Strategy_NotEnoughWeth",
type: "error",
},
{
inputs: [],
name: "Strategy_NotFarEnoughToLeft",
type: "error",
},
{
inputs: [],
name: "Strategy_NotFarEnoughToRight",
type: "error",
},
{
inputs: [],
name: "Strategy_PoolManipulated",
type: "error",
},
{
inputs: [],
name: "LOWER_BURN_DIFF",
outputs: [
{
internalType: "int24",
name: "_lowerBurnDiff",
type: "int24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "MAX_WETH_TO_MINT",
outputs: [
{
internalType: "uint256",
name: "_maxWethToMint",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "MIN_WETH_TO_MINT",
outputs: [
{
internalType: "uint256",
name: "_minWethToMint",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "PERCENT_WETH_TO_MINT",
outputs: [
{
internalType: "uint256",
name: "_percentWethToMint",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "UPPER_BURN_DIFF",
outputs: [
{
internalType: "int24",
name: "_upperBurnDiff",
type: "int24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "VOLATILITY_SAFE_RANGE_MAX",
outputs: [
{
internalType: "uint256",
name: "_volatilitySafeRangeMax",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "VOLATILITY_SAFE_RANGE_MIN",
outputs: [
{
internalType: "uint256",
name: "_volatilitySafeRangeMin",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
],
internalType: "struct IStrategy.Position",
name: "_position",
type: "tuple",
},
{
internalType: "uint128",
name: "_positionLiquidity",
type: "uint128",
},
{
components: [
{
internalType: "contract IPoolManager",
name: "poolManager",
type: "address",
},
{
internalType: "contract IUniswapV3Pool",
name: "pool",
type: "address",
},
{
internalType: "uint256",
name: "availableWeth",
type: "uint256",
},
{
internalType: "bool",
name: "isWethToken0",
type: "bool",
},
{
internalType: "int24",
name: "tickSpacing",
type: "int24",
},
],
internalType: "struct IStrategy.LockManagerState",
name: "_lockManagerState",
type: "tuple",
},
],
name: "getPositionToBurn",
outputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
{
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
],
internalType: "struct IStrategy.LiquidityPosition",
name: "_positionToBurn",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "contract IPoolManager",
name: "poolManager",
type: "address",
},
{
internalType: "contract IUniswapV3Pool",
name: "pool",
type: "address",
},
{
internalType: "uint256",
name: "availableWeth",
type: "uint256",
},
{
internalType: "bool",
name: "isWethToken0",
type: "bool",
},
{
internalType: "int24",
name: "tickSpacing",
type: "int24",
},
],
internalType: "struct IStrategy.LockManagerState",
name: "_lockManagerState",
type: "tuple",
},
],
name: "getPositionToMint",
outputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
{
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
],
internalType: "struct IStrategy.LiquidityPosition",
name: "_positionToMint",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
];
export class IStrategy__factory {
static readonly abi = _abi;
static createInterface(): IStrategyInterface {
return new utils.Interface(_abi) as IStrategyInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IStrategy {
return new Contract(address, _abi, signerOrProvider) as IStrategy;
}
}