/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { KasuPoolExternalTVLAbi, KasuPoolExternalTVLAbiInterface, } from "../KasuPoolExternalTVLAbi"; const _abi = [ { inputs: [ { internalType: "contract IKasuController", name: "kasuController_", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "bytes32", name: "neededRole", type: "bytes32", }, ], name: "AccessControlUnauthorizedAccount", type: "error", }, { inputs: [], name: "ConfigurationAddressZero", type: "error", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, { internalType: "uint256", name: "balance", type: "uint256", }, { internalType: "uint256", name: "needed", type: "uint256", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, ], name: "ERC1155InsufficientBalance", type: "error", }, { inputs: [ { internalType: "address", name: "approver", type: "address", }, ], name: "ERC1155InvalidApprover", type: "error", }, { inputs: [ { internalType: "uint256", name: "idsLength", type: "uint256", }, { internalType: "uint256", name: "valuesLength", type: "uint256", }, ], name: "ERC1155InvalidArrayLength", type: "error", }, { inputs: [ { internalType: "address", name: "operator", type: "address", }, ], name: "ERC1155InvalidOperator", type: "error", }, { inputs: [ { internalType: "address", name: "receiver", type: "address", }, ], name: "ERC1155InvalidReceiver", type: "error", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, ], name: "ERC1155InvalidSender", type: "error", }, { inputs: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "address", name: "owner", type: "address", }, ], name: "ERC1155MissingApprovalForAll", type: "error", }, { inputs: [], name: "InvalidInitialization", type: "error", }, { inputs: [], name: "LengthMismatch", type: "error", }, { inputs: [], name: "NotInitializing", type: "error", }, { 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: "pool", type: "address", }, { indexed: false, internalType: "uint256", name: "oldAmount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newAmount", type: "uint256", }, ], name: "ExternalTVLSet", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64", }, ], name: "Initialized", 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", }, { 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: "accounts", type: "address[]", }, { internalType: "uint256[]", name: "ids", type: "uint256[]", }, ], name: "balanceOfBatch", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, ], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, { internalType: "uint256[]", name: "ids", type: "uint256[]", }, { internalType: "uint256[]", name: "values", type: "uint256[]", }, ], name: "burnBatch", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "burnExternalTVL", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "id", type: "uint256", }, ], name: "exists", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "externalTVLOfPool", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "baseURI_", type: "string", }, ], name: "initialize", outputs: [], 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: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], name: "mintExternalTVL", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "uint256[]", name: "", type: "uint256[]", }, { internalType: "uint256[]", name: "", type: "uint256[]", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "onERC1155BatchReceived", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "onERC1155Received", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "pool", type: "address", }, ], name: "poolId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "pure", 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: "address", name: "pool", type: "address", }, { internalType: "uint256", name: "targetAmount", type: "uint256", }, ], name: "setExternalTVL", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "pools", type: "address[]", }, { internalType: "uint256[]", name: "targetAmounts", type: "uint256[]", }, ], name: "setExternalTVLBatch", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "newURI", type: "string", }, ], name: "setURI", 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: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "id", type: "uint256", }, ], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "uri", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, ] as const; export class KasuPoolExternalTVLAbi__factory { static readonly abi = _abi; static createInterface(): KasuPoolExternalTVLAbiInterface { return new utils.Interface(_abi) as KasuPoolExternalTVLAbiInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): KasuPoolExternalTVLAbi { return new Contract( address, _abi, signerOrProvider ) as KasuPoolExternalTVLAbi; } }