UNPKG

@orionprotocol/contracts

Version:
1,377 lines (1,376 loc) 32.1 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface } from "ethers"; const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { inputs: [], name: "BelowMinimumK", type: "error", }, { inputs: [], name: "DepositsNotEqual", type: "error", }, { inputs: [], name: "FactoryAlreadySet", type: "error", }, { inputs: [], name: "InsufficientInputAmount", type: "error", }, { inputs: [], name: "InsufficientLiquidity", type: "error", }, { inputs: [], name: "InsufficientLiquidityBurned", type: "error", }, { inputs: [], name: "InsufficientLiquidityMinted", type: "error", }, { inputs: [], name: "InsufficientOutputAmount", type: "error", }, { inputs: [], name: "InvalidShortString", type: "error", }, { inputs: [], name: "InvalidTo", type: "error", }, { inputs: [], name: "IsPaused", type: "error", }, { inputs: [], name: "K", type: "error", }, { inputs: [], name: "NotEmergencyCouncil", type: "error", }, { inputs: [ { internalType: "string", name: "str", type: "string", }, ], name: "StringTooLong", 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: "value", type: "uint256", }, ], name: "Approval", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256", name: "amount0", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1", type: "uint256", }, ], name: "Burn", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "address", name: "recipient", type: "address", }, { indexed: false, internalType: "uint256", name: "amount0", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1", type: "uint256", }, ], name: "Claim", type: "event", }, { anonymous: false, inputs: [], name: "EIP712DomainChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: false, internalType: "uint256", name: "amount0", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1", type: "uint256", }, ], name: "Fees", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: false, internalType: "uint256", name: "amount0", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1", type: "uint256", }, ], name: "Mint", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256", name: "amount0In", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1In", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount0Out", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount1Out", type: "uint256", }, ], name: "Swap", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "reserve0", type: "uint256", }, { indexed: false, internalType: "uint256", name: "reserve1", type: "uint256", }, ], name: "Sync", 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: "value", type: "uint256", }, ], name: "Transfer", type: "event", }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", 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: [], name: "blockTimestampLast", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, ], name: "burn", outputs: [ { internalType: "uint256", name: "amount0", type: "uint256", }, { internalType: "uint256", name: "amount1", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "claimFees", outputs: [ { internalType: "uint256", name: "claimed0", type: "uint256", }, { internalType: "uint256", name: "claimed1", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "claimable0", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "claimable1", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "currentCumulativePrices", outputs: [ { internalType: "uint256", name: "reserve0Cumulative", type: "uint256", }, { internalType: "uint256", name: "reserve1Cumulative", type: "uint256", }, { internalType: "uint256", name: "blockTimestamp", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "decimals", outputs: [ { internalType: "uint8", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "spender", type: "address", }, { internalType: "uint256", name: "subtractedValue", type: "uint256", }, ], name: "decreaseAllowance", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "eip712Domain", outputs: [ { internalType: "bytes1", name: "fields", type: "bytes1", }, { internalType: "string", name: "name", type: "string", }, { internalType: "string", name: "version", type: "string", }, { internalType: "uint256", name: "chainId", type: "uint256", }, { internalType: "address", name: "verifyingContract", type: "address", }, { internalType: "bytes32", name: "salt", type: "bytes32", }, { internalType: "uint256[]", name: "extensions", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "factory", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "amountIn", type: "uint256", }, { internalType: "address", name: "tokenIn", type: "address", }, ], name: "getAmountOut", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getK", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getReserves", outputs: [ { internalType: "uint256", name: "_reserve0", type: "uint256", }, { internalType: "uint256", name: "_reserve1", type: "uint256", }, { internalType: "uint256", name: "_blockTimestampLast", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "spender", type: "address", }, { internalType: "uint256", name: "addedValue", type: "uint256", }, ], name: "increaseAllowance", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "index0", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "index1", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_token0", type: "address", }, { internalType: "address", name: "_token1", type: "address", }, { internalType: "bool", name: "_stable", type: "bool", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "lastObservation", outputs: [ { components: [ { internalType: "uint256", name: "timestamp", type: "uint256", }, { internalType: "uint256", name: "reserve0Cumulative", type: "uint256", }, { internalType: "uint256", name: "reserve1Cumulative", type: "uint256", }, ], internalType: "struct IPool.Observation", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "metadata", outputs: [ { internalType: "uint256", name: "dec0", type: "uint256", }, { internalType: "uint256", name: "dec1", type: "uint256", }, { internalType: "uint256", name: "r0", type: "uint256", }, { internalType: "uint256", name: "r1", type: "uint256", }, { internalType: "bool", name: "st", type: "bool", }, { internalType: "address", name: "t0", type: "address", }, { internalType: "address", name: "t1", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, ], name: "mint", outputs: [ { internalType: "uint256", name: "liquidity", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "nonces", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "observationLength", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "observations", outputs: [ { internalType: "uint256", name: "timestamp", type: "uint256", }, { internalType: "uint256", name: "reserve0Cumulative", type: "uint256", }, { internalType: "uint256", name: "reserve1Cumulative", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "periodSize", 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: "poolFees", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "tokenIn", type: "address", }, { internalType: "uint256", name: "amountIn", type: "uint256", }, { internalType: "uint256", name: "points", type: "uint256", }, ], name: "prices", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "tokenIn", type: "address", }, { internalType: "uint256", name: "amountIn", type: "uint256", }, { internalType: "uint256", name: "granularity", type: "uint256", }, ], name: "quote", outputs: [ { internalType: "uint256", name: "amountOut", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "reserve0", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "reserve0CumulativeLast", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "reserve1", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "reserve1CumulativeLast", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "tokenIn", type: "address", }, { internalType: "uint256", name: "amountIn", type: "uint256", }, { internalType: "uint256", name: "points", type: "uint256", }, { internalType: "uint256", name: "window", type: "uint256", }, ], name: "sample", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "__name", type: "string", }, ], name: "setName", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "__symbol", type: "string", }, ], name: "setSymbol", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, ], name: "skim", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "stable", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "supplyIndex0", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "supplyIndex1", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount0Out", type: "uint256", }, { internalType: "uint256", name: "amount1Out", type: "uint256", }, { internalType: "address", name: "to", type: "address", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "swap", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "symbol", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "sync", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "token0", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "token1", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "tokens", outputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", 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", }, ]; class AeroPool__factory { static createInterface() { return new Interface(_abi); } static connect(address, runner) { return new Contract(address, _abi, runner); } } AeroPool__factory.abi = _abi; export { AeroPool__factory };