/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; import { Listener, Provider } from "ethers/providers"; import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription } from "."; interface LendingPoolInterface extends Interface { functions: { LENDINGPOOL_REVISION: TypedFunctionDescription<{ encode([]: []): string }>; UINT_MAX_VALUE: TypedFunctionDescription<{ encode([]: []): string }>; addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>; balanceDecreaseAllowed: TypedFunctionDescription<{ encode([_reserve, _user, _amount]: [ string, string, BigNumberish ]): string; }>; borrow: TypedFunctionDescription<{ encode([_reserve, _amount, _interestRateMode, _referralCode]: [ string, BigNumberish, BigNumberish, BigNumberish ]): string; }>; deposit: TypedFunctionDescription<{ encode([_reserve, _amount, _referralCode]: [ string, BigNumberish, BigNumberish ]): string; }>; flashLoan: TypedFunctionDescription<{ encode([_receiver, _reserve, _amount, _params]: [ string, string, BigNumberish, Arrayish ]): string; }>; getConfiguration: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserveConfigurationData: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserveData: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserveNormalizedIncome: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserveNormalizedVariableDebt: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserveTokensAddresses: TypedFunctionDescription<{ encode([_reserve]: [string]): string; }>; getReserves: TypedFunctionDescription<{ encode([]: []): string }>; getUserAccountData: TypedFunctionDescription<{ encode([_user]: [string]): string; }>; getUserReserveData: TypedFunctionDescription<{ encode([_reserve, _user]: [string, string]): string; }>; initReserve: TypedFunctionDescription<{ encode([ _reserve, _aTokenAddress, _stableDebtAddress, _variableDebtAddress, _interestRateStrategyAddress ]: [string, string, string, string, string]): string; }>; initialize: TypedFunctionDescription<{ encode([_addressesProvider]: [string]): string; }>; liquidationCall: TypedFunctionDescription<{ encode([_collateral, _reserve, _user, _purchaseAmount, _receiveAToken]: [ string, string, string, BigNumberish, boolean ]): string; }>; rebalanceStableBorrowRate: TypedFunctionDescription<{ encode([_reserve, _user]: [string, string]): string; }>; redeemUnderlying: TypedFunctionDescription<{ encode([_reserve, _user, _amount, _aTokenBalanceAfterRedeem]: [ string, string, BigNumberish, BigNumberish ]): string; }>; repay: TypedFunctionDescription<{ encode([_reserve, _amount, _rateMode, _onBehalfOf]: [ string, BigNumberish, BigNumberish, string ]): string; }>; reservesList: TypedFunctionDescription<{ encode([]: [BigNumberish]): string; }>; setConfiguration: TypedFunctionDescription<{ encode([_reserve, _configuration]: [string, BigNumberish]): string; }>; setReserveInterestRateStrategyAddress: TypedFunctionDescription<{ encode([_reserve, _rateStrategyAddress]: [string, string]): string; }>; setUserUseReserveAsCollateral: TypedFunctionDescription<{ encode([_reserve, _useAsCollateral]: [string, boolean]): string; }>; swapBorrowRateMode: TypedFunctionDescription<{ encode([_reserve, _rateMode]: [string, BigNumberish]): string; }>; }; events: { Borrow: TypedEventDescription<{ encodeTopics([ _reserve, _user, _amount, _borrowRateMode, _borrowRate, _referral, _timestamp ]: [ string | null, string | null, null, null, null, BigNumberish | null, null ]): string[]; }>; Deposit: TypedEventDescription<{ encodeTopics([_reserve, _user, _amount, _referral, _timestamp]: [ string | null, string | null, null, BigNumberish | null, null ]): string[]; }>; FlashLoan: TypedEventDescription<{ encodeTopics([ _target, _reserve, _amount, _totalFee, _protocolFee, _timestamp ]: [string | null, string | null, null, null, null, null]): string[]; }>; LiquidationCall: TypedEventDescription<{ encodeTopics([ _collateral, _reserve, _user, _purchaseAmount, _liquidatedCollateralAmount, _accruedBorrowInterest, _liquidator, _receiveAToken, _timestamp ]: [ string | null, string | null, string | null, null, null, null, null, null, null ]): string[]; }>; OriginationFeeLiquidated: TypedEventDescription<{ encodeTopics([ _collateral, _reserve, _user, _feeLiquidated, _liquidatedCollateralForFee, _timestamp ]: [ string | null, string | null, string | null, null, null, null ]): string[]; }>; RebalanceStableBorrowRate: TypedEventDescription<{ encodeTopics([_reserve, _user, _timestamp]: [ string | null, string | null, null ]): string[]; }>; RedeemUnderlying: TypedEventDescription<{ encodeTopics([_reserve, _user, _amount, _timestamp]: [ string | null, string | null, null, null ]): string[]; }>; Repay: TypedEventDescription<{ encodeTopics([_reserve, _user, _repayer, _amount, _timestamp]: [ string | null, string | null, string | null, null, null ]): string[]; }>; ReserveUsedAsCollateralDisabled: TypedEventDescription<{ encodeTopics([_reserve, _user]: [string | null, string | null]): string[]; }>; ReserveUsedAsCollateralEnabled: TypedEventDescription<{ encodeTopics([_reserve, _user]: [string | null, string | null]): string[]; }>; Swap: TypedEventDescription<{ encodeTopics([_reserve, _user, _timestamp]: [ string | null, string | null, null ]): string[]; }>; }; } export class LendingPool extends Contract { connect(signerOrProvider: Signer | Provider | string): LendingPool; attach(addressOrName: string): LendingPool; deployed(): Promise; on(event: EventFilter | string, listener: Listener): LendingPool; once(event: EventFilter | string, listener: Listener): LendingPool; addListener(eventName: EventFilter | string, listener: Listener): LendingPool; removeAllListeners(eventName: EventFilter | string): LendingPool; removeListener(eventName: any, listener: Listener): LendingPool; interface: LendingPoolInterface; functions: { LENDINGPOOL_REVISION(): Promise; UINT_MAX_VALUE(): Promise; addressesProvider(): Promise; balanceDecreaseAllowed( _reserve: string, _user: string, _amount: BigNumberish ): Promise; borrow( _reserve: string, _amount: BigNumberish, _interestRateMode: BigNumberish, _referralCode: BigNumberish, overrides?: TransactionOverrides ): Promise; deposit( _reserve: string, _amount: BigNumberish, _referralCode: BigNumberish, overrides?: TransactionOverrides ): Promise; flashLoan( _receiver: string, _reserve: string, _amount: BigNumberish, _params: Arrayish, overrides?: TransactionOverrides ): Promise; getConfiguration( _reserve: string ): Promise<{ data: BigNumber; 0: BigNumber }>; getReserveConfigurationData( _reserve: string ): Promise<{ decimals: BigNumber; ltv: BigNumber; liquidationThreshold: BigNumber; liquidationBonus: BigNumber; interestRateStrategyAddress: string; usageAsCollateralEnabled: boolean; borrowingEnabled: boolean; stableBorrowRateEnabled: boolean; isActive: boolean; isFreezed: boolean; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: string; 5: boolean; 6: boolean; 7: boolean; 8: boolean; 9: boolean; }>; getReserveData( _reserve: string ): Promise<{ availableLiquidity: BigNumber; totalBorrowsStable: BigNumber; totalBorrowsVariable: BigNumber; liquidityRate: BigNumber; variableBorrowRate: BigNumber; stableBorrowRate: BigNumber; averageStableBorrowRate: BigNumber; liquidityIndex: BigNumber; variableBorrowIndex: BigNumber; lastUpdateTimestamp: number; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; 6: BigNumber; 7: BigNumber; 8: BigNumber; 9: number; }>; getReserveNormalizedIncome(_reserve: string): Promise; getReserveNormalizedVariableDebt(_reserve: string): Promise; getReserveTokensAddresses( _reserve: string ): Promise<{ aTokenAddress: string; stableDebtTokenAddress: string; variableDebtTokenAddress: string; 0: string; 1: string; 2: string; }>; getReserves(): Promise; getUserAccountData( _user: string ): Promise<{ totalCollateralETH: BigNumber; totalBorrowsETH: BigNumber; availableBorrowsETH: BigNumber; currentLiquidationThreshold: BigNumber; ltv: BigNumber; healthFactor: BigNumber; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; }>; getUserReserveData( _reserve: string, _user: string ): Promise<{ currentATokenBalance: BigNumber; currentStableDebt: BigNumber; currentVariableDebt: BigNumber; principalStableDebt: BigNumber; principalVariableDebt: BigNumber; stableBorrowRate: BigNumber; liquidityRate: BigNumber; variableBorrowIndex: BigNumber; stableRateLastUpdated: number; usageAsCollateralEnabled: boolean; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; 6: BigNumber; 7: BigNumber; 8: number; 9: boolean; }>; initReserve( _reserve: string, _aTokenAddress: string, _stableDebtAddress: string, _variableDebtAddress: string, _interestRateStrategyAddress: string, overrides?: TransactionOverrides ): Promise; initialize( _addressesProvider: string, overrides?: TransactionOverrides ): Promise; liquidationCall( _collateral: string, _reserve: string, _user: string, _purchaseAmount: BigNumberish, _receiveAToken: boolean, overrides?: TransactionOverrides ): Promise; rebalanceStableBorrowRate( _reserve: string, _user: string, overrides?: TransactionOverrides ): Promise; redeemUnderlying( _reserve: string, _user: string, _amount: BigNumberish, _aTokenBalanceAfterRedeem: BigNumberish, overrides?: TransactionOverrides ): Promise; repay( _reserve: string, _amount: BigNumberish, _rateMode: BigNumberish, _onBehalfOf: string, overrides?: TransactionOverrides ): Promise; reservesList(arg0: BigNumberish): Promise; setConfiguration( _reserve: string, _configuration: BigNumberish, overrides?: TransactionOverrides ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string, overrides?: TransactionOverrides ): Promise; setUserUseReserveAsCollateral( _reserve: string, _useAsCollateral: boolean, overrides?: TransactionOverrides ): Promise; swapBorrowRateMode( _reserve: string, _rateMode: BigNumberish, overrides?: TransactionOverrides ): Promise; }; LENDINGPOOL_REVISION(): Promise; UINT_MAX_VALUE(): Promise; addressesProvider(): Promise; balanceDecreaseAllowed( _reserve: string, _user: string, _amount: BigNumberish ): Promise; borrow( _reserve: string, _amount: BigNumberish, _interestRateMode: BigNumberish, _referralCode: BigNumberish, overrides?: TransactionOverrides ): Promise; deposit( _reserve: string, _amount: BigNumberish, _referralCode: BigNumberish, overrides?: TransactionOverrides ): Promise; flashLoan( _receiver: string, _reserve: string, _amount: BigNumberish, _params: Arrayish, overrides?: TransactionOverrides ): Promise; getConfiguration( _reserve: string ): Promise<{ data: BigNumber; 0: BigNumber }>; getReserveConfigurationData( _reserve: string ): Promise<{ decimals: BigNumber; ltv: BigNumber; liquidationThreshold: BigNumber; liquidationBonus: BigNumber; interestRateStrategyAddress: string; usageAsCollateralEnabled: boolean; borrowingEnabled: boolean; stableBorrowRateEnabled: boolean; isActive: boolean; isFreezed: boolean; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: string; 5: boolean; 6: boolean; 7: boolean; 8: boolean; 9: boolean; }>; getReserveData( _reserve: string ): Promise<{ availableLiquidity: BigNumber; totalBorrowsStable: BigNumber; totalBorrowsVariable: BigNumber; liquidityRate: BigNumber; variableBorrowRate: BigNumber; stableBorrowRate: BigNumber; averageStableBorrowRate: BigNumber; liquidityIndex: BigNumber; variableBorrowIndex: BigNumber; lastUpdateTimestamp: number; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; 6: BigNumber; 7: BigNumber; 8: BigNumber; 9: number; }>; getReserveNormalizedIncome(_reserve: string): Promise; getReserveNormalizedVariableDebt(_reserve: string): Promise; getReserveTokensAddresses( _reserve: string ): Promise<{ aTokenAddress: string; stableDebtTokenAddress: string; variableDebtTokenAddress: string; 0: string; 1: string; 2: string; }>; getReserves(): Promise; getUserAccountData( _user: string ): Promise<{ totalCollateralETH: BigNumber; totalBorrowsETH: BigNumber; availableBorrowsETH: BigNumber; currentLiquidationThreshold: BigNumber; ltv: BigNumber; healthFactor: BigNumber; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; }>; getUserReserveData( _reserve: string, _user: string ): Promise<{ currentATokenBalance: BigNumber; currentStableDebt: BigNumber; currentVariableDebt: BigNumber; principalStableDebt: BigNumber; principalVariableDebt: BigNumber; stableBorrowRate: BigNumber; liquidityRate: BigNumber; variableBorrowIndex: BigNumber; stableRateLastUpdated: number; usageAsCollateralEnabled: boolean; 0: BigNumber; 1: BigNumber; 2: BigNumber; 3: BigNumber; 4: BigNumber; 5: BigNumber; 6: BigNumber; 7: BigNumber; 8: number; 9: boolean; }>; initReserve( _reserve: string, _aTokenAddress: string, _stableDebtAddress: string, _variableDebtAddress: string, _interestRateStrategyAddress: string, overrides?: TransactionOverrides ): Promise; initialize( _addressesProvider: string, overrides?: TransactionOverrides ): Promise; liquidationCall( _collateral: string, _reserve: string, _user: string, _purchaseAmount: BigNumberish, _receiveAToken: boolean, overrides?: TransactionOverrides ): Promise; rebalanceStableBorrowRate( _reserve: string, _user: string, overrides?: TransactionOverrides ): Promise; redeemUnderlying( _reserve: string, _user: string, _amount: BigNumberish, _aTokenBalanceAfterRedeem: BigNumberish, overrides?: TransactionOverrides ): Promise; repay( _reserve: string, _amount: BigNumberish, _rateMode: BigNumberish, _onBehalfOf: string, overrides?: TransactionOverrides ): Promise; reservesList(arg0: BigNumberish): Promise; setConfiguration( _reserve: string, _configuration: BigNumberish, overrides?: TransactionOverrides ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string, overrides?: TransactionOverrides ): Promise; setUserUseReserveAsCollateral( _reserve: string, _useAsCollateral: boolean, overrides?: TransactionOverrides ): Promise; swapBorrowRateMode( _reserve: string, _rateMode: BigNumberish, overrides?: TransactionOverrides ): Promise; filters: { Borrow( _reserve: string | null, _user: string | null, _amount: null, _borrowRateMode: null, _borrowRate: null, _referral: BigNumberish | null, _timestamp: null ): EventFilter; Deposit( _reserve: string | null, _user: string | null, _amount: null, _referral: BigNumberish | null, _timestamp: null ): EventFilter; FlashLoan( _target: string | null, _reserve: string | null, _amount: null, _totalFee: null, _protocolFee: null, _timestamp: null ): EventFilter; LiquidationCall( _collateral: string | null, _reserve: string | null, _user: string | null, _purchaseAmount: null, _liquidatedCollateralAmount: null, _accruedBorrowInterest: null, _liquidator: null, _receiveAToken: null, _timestamp: null ): EventFilter; OriginationFeeLiquidated( _collateral: string | null, _reserve: string | null, _user: string | null, _feeLiquidated: null, _liquidatedCollateralForFee: null, _timestamp: null ): EventFilter; RebalanceStableBorrowRate( _reserve: string | null, _user: string | null, _timestamp: null ): EventFilter; RedeemUnderlying( _reserve: string | null, _user: string | null, _amount: null, _timestamp: null ): EventFilter; Repay( _reserve: string | null, _user: string | null, _repayer: string | null, _amount: null, _timestamp: null ): EventFilter; ReserveUsedAsCollateralDisabled( _reserve: string | null, _user: string | null ): EventFilter; ReserveUsedAsCollateralEnabled( _reserve: string | null, _user: string | null ): EventFilter; Swap( _reserve: string | null, _user: string | null, _timestamp: null ): EventFilter; }; estimate: { LENDINGPOOL_REVISION(): Promise; UINT_MAX_VALUE(): Promise; addressesProvider(): Promise; balanceDecreaseAllowed( _reserve: string, _user: string, _amount: BigNumberish ): Promise; borrow( _reserve: string, _amount: BigNumberish, _interestRateMode: BigNumberish, _referralCode: BigNumberish ): Promise; deposit( _reserve: string, _amount: BigNumberish, _referralCode: BigNumberish ): Promise; flashLoan( _receiver: string, _reserve: string, _amount: BigNumberish, _params: Arrayish ): Promise; getConfiguration(_reserve: string): Promise; getReserveConfigurationData(_reserve: string): Promise; getReserveData(_reserve: string): Promise; getReserveNormalizedIncome(_reserve: string): Promise; getReserveNormalizedVariableDebt(_reserve: string): Promise; getReserveTokensAddresses(_reserve: string): Promise; getReserves(): Promise; getUserAccountData(_user: string): Promise; getUserReserveData(_reserve: string, _user: string): Promise; initReserve( _reserve: string, _aTokenAddress: string, _stableDebtAddress: string, _variableDebtAddress: string, _interestRateStrategyAddress: string ): Promise; initialize(_addressesProvider: string): Promise; liquidationCall( _collateral: string, _reserve: string, _user: string, _purchaseAmount: BigNumberish, _receiveAToken: boolean ): Promise; rebalanceStableBorrowRate( _reserve: string, _user: string ): Promise; redeemUnderlying( _reserve: string, _user: string, _amount: BigNumberish, _aTokenBalanceAfterRedeem: BigNumberish ): Promise; repay( _reserve: string, _amount: BigNumberish, _rateMode: BigNumberish, _onBehalfOf: string ): Promise; reservesList(arg0: BigNumberish): Promise; setConfiguration( _reserve: string, _configuration: BigNumberish ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string ): Promise; setUserUseReserveAsCollateral( _reserve: string, _useAsCollateral: boolean ): Promise; swapBorrowRateMode( _reserve: string, _rateMode: BigNumberish ): Promise; }; }