@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
1,205 lines (1,201 loc) • 22.6 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 { IPoolManager, IPoolManagerInterface } from "../IPoolManager";
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "AlreadyVoted",
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: [],
name: "PoolManager_ActiveLockManager",
type: "error",
},
{
inputs: [],
name: "PoolManager_FeeManagerAlreadySet",
type: "error",
},
{
inputs: [
{
internalType: "contract IFeeManager",
name: "_expected",
type: "address",
},
{
internalType: "contract IFeeManager",
name: "_actual",
type: "address",
},
],
name: "PoolManager_FeeManagerMismatch",
type: "error",
},
{
inputs: [],
name: "PoolManager_InvalidFeeManager",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "_expected",
type: "address",
},
{
internalType: "address",
name: "_actual",
type: "address",
},
],
name: "PoolManager_MigrationContractMismatch",
type: "error",
},
{
inputs: [],
name: "PoolManager_MigrationFailed",
type: "error",
},
{
inputs: [],
name: "PoolManager_NoRewardsToClaim",
type: "error",
},
{
inputs: [],
name: "PoolManager_OnlyFactory",
type: "error",
},
{
inputs: [],
name: "PoolManager_OnlyPool",
type: "error",
},
{
inputs: [],
name: "PoolManager_PoolManipulated",
type: "error",
},
{
inputs: [],
name: "PoolManager_PriceOracleAlreadySet",
type: "error",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_expected",
type: "address",
},
{
internalType: "contract IPriceOracle",
name: "_actual",
type: "address",
},
],
name: "PoolManager_PriceOracleMismatch",
type: "error",
},
{
inputs: [],
name: "PoolManager_ZeroAddress",
type: "error",
},
{
inputs: [],
name: "PoolManager_ZeroAmount",
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: 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: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "FeeManagerMigrated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_totalFeeWeth",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_totalFeeToken",
type: "uint256",
},
],
name: "FeesCollected",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract ILockManager",
name: "_oldLockManager",
type: "address",
},
{
indexed: false,
internalType: "contract ILockManager",
name: "_newLockManager",
type: "address",
},
],
name: "LockManagerDeprecated",
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: [
{
indexed: false,
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "PriceOracleSet",
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: false,
internalType: "uint256",
name: "_liquidity",
type: "uint256",
},
],
name: "SeederLiquidityBurned",
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",
},
{
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_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: "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: [
{
internalType: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "acceptFeeManagerChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_migrationContract",
type: "address",
},
],
name: "acceptMigrate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "acceptPriceOracleChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_liquidity",
type: "uint256",
},
],
name: "burn",
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: [],
name: "collectFees",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "deprecateLockManager",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "deprecatedLockManagers",
outputs: [
{
internalType: "contract ILockManager",
name: "_deprecatedLockManagers",
type: "address",
},
],
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: [],
name: "feeManager",
outputs: [
{
internalType: "contract IFeeManager",
name: "_feeManager",
type: "address",
},
],
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: [
{
internalType: "address",
name: "_donor",
type: "address",
},
{
internalType: "uint128",
name: "_liquidity",
type: "uint128",
},
{
internalType: "uint160",
name: "_sqrtPriceX96",
type: "uint160",
},
],
name: "increaseFullRangePosition",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "increaseFullRangePosition",
outputs: [
{
internalType: "uint256",
name: "__amountWeth",
type: "uint256",
},
{
internalType: "uint256",
name: "__amountToken",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_method",
type: "uint256",
},
],
name: "isExecutable",
outputs: [
{
internalType: "bool",
name: "_availableToExecute",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lockManager",
outputs: [
{
internalType: "contract ILockManager",
name: "_lockManager",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_wethAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_tokenAmount",
type: "uint256",
},
],
name: "mintLiquidityForFullRange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "poolLiquidity",
outputs: [
{
internalType: "uint256",
name: "_poolLiquidity",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "poolRewards",
outputs: [
{
internalType: "uint256",
name: "wethPerSeededLiquidity",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenPerSeededLiquidity",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "priceOracle",
outputs: [
{
internalType: "contract IPriceOracle",
name: "_priceOracle",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IFeeManager",
name: "_newFeeManager",
type: "address",
},
],
name: "proposeFeeManagerChange",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_migrationContract",
type: "address",
},
],
name: "proposeMigrate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IPriceOracle",
name: "_newPriceOracle",
type: "address",
},
],
name: "proposePriceOracleChange",
outputs: [],
stateMutability: "nonpayable",
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: [
{
internalType: "address",
name: "_donor",
type: "address",
},
],
name: "seederBalance",
outputs: [
{
internalType: "uint256",
name: "_seederBalance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_donor",
type: "address",
},
],
name: "seederBurned",
outputs: [
{
internalType: "uint256",
name: "_seederBurned",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "seederRewards",
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: [],
name: "totalVotes",
outputs: [
{
internalType: "uint256",
name: "_totalVotes",
type: "uint256",
},
],
stateMutability: "view",
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: "address",
name: "_user",
type: "address",
},
],
name: "votingPower",
outputs: [
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
];
export class IPoolManager__factory {
static readonly abi = _abi;
static createInterface(): IPoolManagerInterface {
return new utils.Interface(_abi) as IPoolManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPoolManager {
return new Contract(address, _abi, signerOrProvider) as IPoolManager;
}
}