@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
1,605 lines (1,601 loc) • 29.9 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 { ILockManager, ILockManagerInterface } from "../ILockManager";
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "AlreadyVoted",
type: "error",
},
{
inputs: [],
name: "LockManager_ArithmeticUnderflow",
type: "error",
},
{
inputs: [],
name: "LockManager_Deprecated",
type: "error",
},
{
inputs: [],
name: "LockManager_DeprecationRequired",
type: "error",
},
{
inputs: [],
name: "LockManager_InvalidAddress",
type: "error",
},
{
inputs: [],
name: "LockManager_NoLockedWeth",
type: "error",
},
{
inputs: [],
name: "LockManager_NoPositions",
type: "error",
},
{
inputs: [],
name: "LockManager_NoRewardsToClaim",
type: "error",
},
{
inputs: [],
name: "LockManager_NotLockManager",
type: "error",
},
{
inputs: [],
name: "LockManager_OnlyPool",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_totalSupply",
type: "uint256",
},
{
internalType: "uint256",
name: "_concentratedWeth",
type: "uint256",
},
],
name: "LockManager_OverlimitMint",
type: "error",
},
{
inputs: [],
name: "LockManager_PoolManipulated",
type: "error",
},
{
inputs: [],
name: "LockManager_TransferFailed",
type: "error",
},
{
inputs: [],
name: "LockManager_WithdrawalsNotEnabled",
type: "error",
},
{
inputs: [],
name: "LockManager_ZeroAddress",
type: "error",
},
{
inputs: [],
name: "LockManager_ZeroAmount",
type: "error",
},
{
inputs: [],
name: "LockManager_ZeroBalance",
type: "error",
},
{
inputs: [],
name: "NoVotes",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_expectedParameters",
type: "bytes",
},
{
internalType: "bytes",
name: "_actualParameters",
type: "bytes",
},
],
name: "ParametersMismatch",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalAlreadyQueued",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalClosed",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "ProposalNotExecutable",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "QuorumNotReached",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
],
name: "Burned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_user",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "_to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "ClaimedRewards",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_wethFees",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_tokenFees",
type: "uint256",
},
],
name: "FeesCollected",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
],
name: "Locked",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "NewProposal",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_votes",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "NewVote",
type: "event",
},
{
anonymous: false,
inputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
{
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
],
indexed: false,
internalType: "struct IStrategy.LiquidityPosition",
name: "_position",
type: "tuple",
},
{
indexed: false,
internalType: "uint256",
name: "_amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_amount1",
type: "uint256",
},
],
name: "PositionBurned",
type: "event",
},
{
anonymous: false,
inputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
{
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
],
indexed: false,
internalType: "struct IStrategy.LiquidityPosition",
name: "_position",
type: "tuple",
},
{
indexed: false,
internalType: "uint256",
name: "_amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_amount1",
type: "uint256",
},
],
name: "PositionMinted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalCancelled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalExecuted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "_params",
type: "bytes",
},
],
name: "ProposalQueued",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "RewardsAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "VoteCancelled",
type: "event",
},
{
anonymous: false,
inputs: [],
name: "WithdrawalsEnabled",
type: "event",
},
{
inputs: [],
name: "DOMAIN_SEPARATOR",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "FEE",
outputs: [
{
internalType: "uint24",
name: "_fee",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "IS_WETH_TOKEN0",
outputs: [
{
internalType: "bool",
name: "_isWethToken0",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "POOL",
outputs: [
{
internalType: "contract IUniswapV3Pool",
name: "_pool",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "POOL_MANAGER",
outputs: [
{
internalType: "contract IPoolManager",
name: "_poolManager",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "POOL_MANAGER_FACTORY",
outputs: [
{
internalType: "contract IPoolManagerFactory",
name: "_poolManagerFactory",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "QUORUM",
outputs: [
{
internalType: "uint256",
name: "_quorum",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "STRATEGY",
outputs: [
{
internalType: "contract IStrategy",
name: "_strategy",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "TOKEN",
outputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "WETH",
outputs: [
{
internalType: "contract IERC20",
name: "_weth",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "acceptDeprecate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "addRewards",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "address",
name: "_spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_lockedWethAmount",
type: "uint256",
},
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "int24",
name: "lowerTick",
type: "int24",
},
{
internalType: "int24",
name: "upperTick",
type: "int24",
},
],
internalType: "struct IStrategy.Position",
name: "_position",
type: "tuple",
},
],
name: "burnPosition",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "cancelProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "cancelVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "claimRewards",
outputs: [
{
internalType: "uint256",
name: "_rewardWeth",
type: "uint256",
},
{
internalType: "uint256",
name: "_rewardToken",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "claimable",
outputs: [
{
internalType: "uint256",
name: "_wethClaimable",
type: "uint256",
},
{
internalType: "uint256",
name: "_tokenClaimable",
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: "_positions",
type: "tuple[]",
},
],
name: "collectFees",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "concentratedWeth",
outputs: [
{
internalType: "uint256",
name: "_concentratedWeth",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "_decimals",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "deprecated",
outputs: [
{
internalType: "bool",
name: "_deprecated",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_parameters",
type: "bytes",
},
],
name: "execute",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "executionTimelock",
outputs: [
{
internalType: "uint256",
name: "_executionTimelock",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "getLatest",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256",
},
{
internalType: "bytes",
name: "params",
type: "bytes",
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256",
},
{
internalType: "bool",
name: "open",
type: "bool",
},
{
internalType: "uint256",
name: "timelockExpiry",
type: "uint256",
},
],
internalType: "struct IGovernorMiniBravo.Proposal",
name: "_proposal",
type: "tuple",
},
],
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",
},
],
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: "nonpayable",
type: "function",
},
{
inputs: [],
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: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getPositionsCount",
outputs: [
{
internalType: "uint256",
name: "_positionsCount",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "isExecutable",
outputs: [
{
internalType: "bool",
name: "_availableToExecute",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "mintPosition",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "_name",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "nonces",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "value",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
name: "permit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "poolRewards",
outputs: [
{
internalType: "uint256",
name: "wethPerLockedWeth",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenPerLockedWeth",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_startFrom",
type: "uint256",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "positionsList",
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: "_positions",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "bytes",
name: "_parameters",
type: "bytes",
},
],
name: "queue",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "quorumReached",
outputs: [
{
internalType: "bool",
name: "_quorumReached",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "_totalSupply",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotes",
outputs: [
{
internalType: "uint256",
name: "_totalVotes",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_amount0Owed",
type: "uint256",
},
{
internalType: "uint256",
name: "_amount1Owed",
type: "uint256",
},
{
internalType: "bytes",
name: "_data",
type: "bytes",
},
],
name: "uniswapV3MintCallback",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_positions",
type: "uint256",
},
],
name: "unwind",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "userRewards",
outputs: [
{
internalType: "uint256",
name: "wethPaid",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenPaid",
type: "uint256",
},
{
internalType: "uint256",
name: "wethAvailable",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenAvailable",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address",
},
],
name: "votingPower",
outputs: [
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_receiver",
type: "address",
},
],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "withdrawalData",
outputs: [
{
internalType: "bool",
name: "withdrawalsEnabled",
type: "bool",
},
{
internalType: "uint256",
name: "totalWeth",
type: "uint256",
},
{
internalType: "uint256",
name: "totalToken",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
];
export class ILockManager__factory {
static readonly abi = _abi;
static createInterface(): ILockManagerInterface {
return new utils.Interface(_abi) as ILockManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILockManager {
return new Contract(address, _abi, signerOrProvider) as ILockManager;
}
}