/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { ILendingPoolTrancheAbi, ILendingPoolTrancheAbiInterface, } from "../ILendingPoolTrancheAbi"; const _abi = [ { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "LossIdNotValid", type: "error", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "LossMintAlreadyComplete", type: "error", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "LossMintingInProgress", type: "error", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "LossMintingNotYetComplete", 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: "account", 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: "address", name: "sender", type: "address", }, { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256", }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256", }, ], name: "Deposit", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "user", type: "address", }, { indexed: true, internalType: "uint256", name: "lossId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "LossClaimed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "LossMintingComplete", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "lossId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "lossAmount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "usersCount", type: "uint256", }, ], name: "LossRegistered", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "lossId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "LossReturned", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "lossId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "batchCount", type: "uint256", }, ], name: "MintedLossTokensToUsers", 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", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "operator", type: "address", }, { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256[]", name: "ids", type: "uint256[]", }, { indexed: false, internalType: "uint256[]", name: "values", type: "uint256[]", }, ], name: "TransferBatch", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "operator", type: "address", }, { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: false, internalType: "uint256", name: "id", type: "uint256", }, { indexed: false, internalType: "uint256", name: "value", type: "uint256", }, ], name: "TransferSingle", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "string", name: "value", type: "string", }, { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, ], name: "URI", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "sender", type: "address", }, { indexed: true, internalType: "address", name: "receiver", type: "address", }, { indexed: true, internalType: "address", name: "owner", type: "address", }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256", }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256", }, ], name: "Withdraw", type: "event", }, { 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: "value", type: "uint256", }, ], name: "approve", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "asset", outputs: [ { internalType: "address", name: "assetTokenAddress", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "uint256", name: "id", type: "uint256", }, ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address[]", name: "accounts", type: "address[]", }, { internalType: "uint256[]", name: "ids", type: "uint256[]", }, ], name: "balanceOfBatch", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, { internalType: "uint256", name: "batchSize", type: "uint256", }, ], name: "batchMintLossTokens", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "calculateMaximumLossAmount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "claimRepaidLoss", outputs: [ { internalType: "uint256", name: "claimedAmount", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], name: "convertToAssets", outputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], name: "convertToShares", outputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "decimals", outputs: [ { internalType: "uint8", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, { internalType: "address", name: "receiver", type: "address", }, ], name: "deposit", outputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "address", name: "operator", type: "address", }, ], name: "isApprovedForAll", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "isLossMintingComplete", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "lossDetails", outputs: [ { components: [ { internalType: "uint256", name: "lossAmount", type: "uint256", }, { internalType: "uint256", name: "usersCount", type: "uint256", }, { internalType: "uint256", name: "usersMintedCount", type: "uint256", }, { internalType: "uint256", name: "recoveredAmount", type: "uint256", }, { internalType: "uint256", name: "totalLossShares", type: "uint256", }, ], internalType: "struct LossDetails", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "receiver", type: "address", }, ], name: "maxDeposit", outputs: [ { internalType: "uint256", name: "maxAssets", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "receiver", type: "address", }, ], name: "maxMint", outputs: [ { internalType: "uint256", name: "maxShares", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "maxRedeem", outputs: [ { internalType: "uint256", name: "maxShares", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "maxWithdraw", outputs: [ { internalType: "uint256", name: "maxAssets", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "minimumAssetAmountLeftAfterLoss", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, { internalType: "address", name: "receiver", type: "address", }, ], name: "mint", outputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], name: "previewDeposit", outputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], name: "previewMint", outputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], name: "previewRedeem", outputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], name: "previewWithdraw", outputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, { internalType: "address", name: "receiver", type: "address", }, { internalType: "address", name: "owner", type: "address", }, ], name: "redeem", outputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, { internalType: "uint256", name: "lossAmount", type: "uint256", }, { internalType: "bool", name: "doMintLossTokens", type: "bool", }, ], name: "registerTrancheLoss", outputs: [ { internalType: "uint256", name: "lossApplied", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "shares", type: "uint256", }, ], name: "removeUserActiveShares", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "lossId", type: "uint256", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "repayLoss", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256[]", name: "ids", type: "uint256[]", }, { internalType: "uint256[]", name: "values", type: "uint256[]", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "safeBatchTransferFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "safeTransferFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "bool", name: "approved", type: "bool", }, ], name: "setApprovalForAll", 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: [], name: "symbol", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "totalAssets", outputs: [ { internalType: "uint256", name: "totalManagedAssets", type: "uint256", }, ], 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: "value", 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: "value", type: "uint256", }, ], name: "transferFrom", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "userActiveAssets", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "userClaimableLoss", outputs: [ { internalType: "uint256", name: "claimableAmount", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "lossId", type: "uint256", }, ], name: "userClaimedLosses", outputs: [ { internalType: "uint256", name: "claimedAmount", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "assets", type: "uint256", }, { internalType: "address", name: "receiver", type: "address", }, { internalType: "address", name: "owner", type: "address", }, ], name: "withdraw", outputs: [ { internalType: "uint256", name: "shares", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, ] as const; export class ILendingPoolTrancheAbi__factory { static readonly abi = _abi; static createInterface(): ILendingPoolTrancheAbiInterface { return new utils.Interface(_abi) as ILendingPoolTrancheAbiInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): ILendingPoolTrancheAbi { return new Contract( address, _abi, signerOrProvider ) as ILendingPoolTrancheAbi; } }