@orionprotocol/contracts
Version:
Orion Protocol contracts typings
1,314 lines (1,313 loc) • 33.5 kB
JavaScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface } from "ethers";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_factory",
type: "address",
},
{
internalType: "address",
name: "_WETH9",
type: "address",
},
{
internalType: "address",
name: "_tokenDescriptor",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "InvalidDeadline",
type: "error",
},
{
inputs: [],
name: "InvalidOwner",
type: "error",
},
{
inputs: [],
name: "PriceSlippage",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "approved",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "approved",
type: "bool",
},
],
name: "ApprovalForAll",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
],
name: "Collect",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
indexed: false,
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
name: "DecreaseLiquidity",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
indexed: false,
internalType: "uint128",
name: "liquidity",
type: "uint128",
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
name: "IncreaseLiquidity",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [],
name: "DOMAIN_SEPARATOR",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "PERMIT_TYPEHASH",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "WETH9",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "baseTokenURI",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "baseURI",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint32",
name: "key",
type: "uint32",
},
],
name: "burnByKey",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "collect",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint32",
name: "startKey",
type: "uint32",
},
{
internalType: "uint32",
name: "counts",
type: "uint32",
},
],
name: "collectList",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token0",
type: "address",
},
{
internalType: "address",
name: "token1",
type: "address",
},
{
internalType: "uint24",
name: "fee",
type: "uint24",
},
{
internalType: "int24",
name: "tickStart",
type: "int24",
},
],
name: "createAndInitializePoolIfNecessary",
outputs: [
{
internalType: "address",
name: "pool",
type: "address",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "amount0Min",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1Min",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
internalType: "struct IOrionV3NFTManager.ModifyLiqParams",
name: "params",
type: "tuple",
},
],
name: "decreaseLiquidity",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "factory",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "getApproved",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "amount0Min",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1Min",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
internalType: "struct IOrionV3NFTManager.ModifyLiqParams",
name: "params",
type: "tuple",
},
],
name: "increaseLiquidity",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "operator",
type: "address",
},
],
name: "isApprovedForAll",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint32",
name: "startKey",
type: "uint32",
},
{
internalType: "uint32",
name: "counts",
type: "uint32",
},
],
name: "listNFT",
outputs: [
{
components: [
{
internalType: "uint32",
name: "key",
type: "uint32",
},
{
internalType: "uint192",
name: "value",
type: "uint192",
},
],
internalType: "struct KeyList.SItemValue[]",
name: "Arr",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint32",
name: "startKey",
type: "uint32",
},
{
internalType: "uint32",
name: "counts",
type: "uint32",
},
],
name: "listNFTOrder",
outputs: [
{
components: [
{
internalType: "uint128",
name: "key",
type: "uint128",
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
internalType: "int128",
name: "amount",
type: "int128",
},
{
internalType: "int128",
name: "fee",
type: "int128",
},
{
internalType: "int128",
name: "collectFee",
type: "int128",
},
{
internalType: "int24",
name: "indexFrom",
type: "int24",
},
{
internalType: "int24",
name: "indexTo",
type: "int24",
},
{
internalType: "uint8",
name: "disable",
type: "uint8",
},
{
internalType: "address",
name: "pool",
type: "address",
},
{
internalType: "address",
name: "token0",
type: "address",
},
{
internalType: "address",
name: "token1",
type: "address",
},
{
internalType: "uint24",
name: "poolFee",
type: "uint24",
},
{
internalType: "int128",
name: "tickMultiplier",
type: "int128",
},
{
internalType: "int128",
name: "denominator0",
type: "int128",
},
{
internalType: "int128",
name: "denominator1",
type: "int128",
},
{
internalType: "int128",
name: "amount0",
type: "int128",
},
{
internalType: "int128",
name: "amount1",
type: "int128",
},
],
internalType: "struct IOrionV3NFTManager.NFTOrder[]",
name: "Arr",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "listPermit",
outputs: [
{
internalType: "uint96",
name: "nonce",
type: "uint96",
},
{
internalType: "address",
name: "operator",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "address",
name: "token0",
type: "address",
},
{
internalType: "address",
name: "token1",
type: "address",
},
{
internalType: "uint24",
name: "fee",
type: "uint24",
},
{
internalType: "int24",
name: "indexFrom",
type: "int24",
},
{
internalType: "int24",
name: "indexTo",
type: "int24",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "amount0Min",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1Min",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
internalType: "struct IOrionV3NFTManager.MintParams",
name: "params",
type: "tuple",
},
],
name: "mint",
outputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
internalType: "uint256",
name: "amount0",
type: "uint256",
},
{
internalType: "uint256",
name: "amount1",
type: "uint256",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes[]",
name: "data",
type: "bytes[]",
},
],
name: "multicall",
outputs: [
{
internalType: "bytes[]",
name: "results",
type: "bytes[]",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "ownerOf",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "tokenId",
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: "payable",
type: "function",
},
{
inputs: [],
name: "refundETH",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
{
internalType: "bytes",
name: "data",
type: "bytes",
},
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
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: "selfPermit",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "uint256",
name: "expiry",
type: "uint256",
},
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
name: "selfPermitAllowed",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "uint256",
name: "expiry",
type: "uint256",
},
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
name: "selfPermitAllowedIfNecessary",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
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: "selfPermitIfNecessary",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address",
},
{
internalType: "bool",
name: "approved",
type: "bool",
},
],
name: "setApprovalForAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_tokenDescriptor",
type: "address",
},
],
name: "setNFTDescriptor",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4",
},
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amountMinimum",
type: "uint256",
},
{
internalType: "address",
name: "recipient",
type: "address",
},
],
name: "sweepToken",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "tokenDescriptor",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "tokenURI",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256",
},
],
name: "transferFrom",
outputs: [],
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: "amountMinimum",
type: "uint256",
},
{
internalType: "address",
name: "recipient",
type: "address",
},
],
name: "unwrapWETH9",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
stateMutability: "payable",
type: "receive",
},
];
class OrionV3NFTManager__factory {
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
}
OrionV3NFTManager__factory.abi = _abi;
export { OrionV3NFTManager__factory };