import { Contract , Signer } from "ethers" ; import { Provider } from "@ethersproject/providers" ; import type { ILendingPool } from "../ILendingPool" ; export class ILendingPool__factory { static connect ( address , signerOrProvider ) { return new Contract ( address , _abi , signerOrProvider ) as ILendingPool ; } } const _abi = [ { inputs : [ ] , name : "FLASHLOAN_PREMIUM_TOTAL" , outputs : [ { internalType : "uint256" , name : "" , type : "uint256" , } , ] , stateMutability : "view" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "uint256" , name : "amount" , type : "uint256" , } , { internalType : "uint256" , name : "interestRateMode" , type : "uint256" , } , { internalType : "uint16" , name : "referralCode" , type : "uint16" , } , { internalType : "address" , name : "onBehalfOf" , type : "address" , } , ] , name : "borrow" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "uint256" , name : "amount" , type : "uint256" , } , { internalType : "address" , name : "onBehalfOf" , type : "address" , } , { internalType : "uint16" , name : "referralCode" , type : "uint16" , } , ] , name : "deposit" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "receiver" , type : "address" , } , { internalType : "address[]" , name : "assets" , type : "address[]" , } , { internalType : "uint256[]" , name : "amounts" , type : "uint256[]" , } , { internalType : "uint256[]" , name : "modes" , type : "uint256[]" , } , { internalType : "address" , name : "onBehalfOf" , type : "address" , } , { internalType : "bytes" , name : "params" , type : "bytes" , } , { internalType : "uint16" , name : "referralCode" , type : "uint16" , } , ] , name : "flashLoan" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "collateral" , type : "address" , } , { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "address" , name : "user" , type : "address" , } , { internalType : "uint256" , name : "purchaseAmount" , type : "uint256" , } , { internalType : "bool" , name : "receiveAToken" , type : "bool" , } , ] , name : "liquidationCall" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "uint256" , name : "amount" , type : "uint256" , } , { internalType : "uint256" , name : "rateMode" , type : "uint256" , } , { internalType : "address" , name : "onBehalfOf" , type : "address" , } , ] , name : "repay" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "bool" , name : "useAsCollateral" , type : "bool" , } , ] , name : "setUserUseReserveAsCollateral" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "uint256" , name : "rateMode" , type : "uint256" , } , ] , name : "swapBorrowRateMode" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , { inputs : [ { internalType : "address" , name : "reserve" , type : "address" , } , { internalType : "uint256" , name : "amount" , type : "uint256" , } , { internalType : "address" , name : "to" , type : "address" , } , ] , name : "withdraw" , outputs : [ ] , stateMutability : "nonpayable" , type : "function" , } , ] ;