@orionprotocol/contracts
Version:
Orion Protocol contracts typings
337 lines (336 loc) • 8.16 kB
JavaScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface } from "ethers";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_poolCode",
type: "address",
},
{
internalType: "address",
name: "_listLib",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "CreateError",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "fee",
type: "uint24",
},
{
indexed: false,
internalType: "int128",
name: "tickMultiplier",
type: "int128",
},
],
name: "FeeAmountEnabled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "oldOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnerChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "token0",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "token1",
type: "address",
},
{
indexed: true,
internalType: "uint24",
name: "fee",
type: "uint24",
},
{
indexed: false,
internalType: "address",
name: "pool",
type: "address",
},
],
name: "PoolCreated",
type: "event",
},
{
inputs: [],
name: "POOL_INIT_CODE_HASH",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "tokenA",
type: "address",
},
{
internalType: "address",
name: "tokenB",
type: "address",
},
{
internalType: "uint24",
name: "fee",
type: "uint24",
},
],
name: "createPool",
outputs: [
{
internalType: "address",
name: "pool",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "fee",
type: "uint24",
},
{
internalType: "int128",
name: "tickMultiplier",
type: "int128",
},
],
name: "enableFeeAmount",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
name: "feeAmountTickMultiplier",
outputs: [
{
internalType: "int128",
name: "",
type: "int128",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
{
internalType: "address",
name: "",
type: "address",
},
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
name: "getPool",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPoolData",
outputs: [
{
components: [
{
internalType: "address",
name: "poolToken0",
type: "address",
},
{
internalType: "address",
name: "poolToken1",
type: "address",
},
{
internalType: "uint24",
name: "poolFee",
type: "uint24",
},
{
internalType: "int128",
name: "tickMultiplier",
type: "int128",
},
{
internalType: "address",
name: "listLib",
type: "address",
},
],
internalType: "struct IOrionV3Factory.PoolPrarms",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "listLib",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint32",
name: "startKey",
type: "uint32",
},
{
internalType: "uint32",
name: "counts",
type: "uint32",
},
],
name: "listPool",
outputs: [
{
internalType: "address[]",
name: "Arr",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "poolCode",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "setOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class OrionV3Factory__factory {
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
}
OrionV3Factory__factory.abi = _abi;
export { OrionV3Factory__factory };