Versions in this module Expand all Collapse all v0 v0.1.1 Jul 30, 2023 Changes in this version + const LendingpoolABI + type Lendingpool struct + func NewLendingpool(address common.Address, backend bind.ContractBackend) (*Lendingpool, error) + type LendingpoolBorrow struct + Amount *big.Int + BorrowBalanceIncrease *big.Int + BorrowRate *big.Int + BorrowRateMode *big.Int + OriginationFee *big.Int + Raw types.Log + Referral uint16 + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolBorrowIterator struct + Event *LendingpoolBorrow + func (it *LendingpoolBorrowIterator) Close() error + func (it *LendingpoolBorrowIterator) Error() error + func (it *LendingpoolBorrowIterator) Next() bool + type LendingpoolCaller struct + func NewLendingpoolCaller(address common.Address, caller bind.ContractCaller) (*LendingpoolCaller, error) + func (_Lendingpool *LendingpoolCaller) AddressesProvider(opts *bind.CallOpts) (common.Address, error) + func (_Lendingpool *LendingpoolCaller) Core(opts *bind.CallOpts) (common.Address, error) + func (_Lendingpool *LendingpoolCaller) DataProvider(opts *bind.CallOpts) (common.Address, error) + func (_Lendingpool *LendingpoolCaller) GetReserveConfigurationData(opts *bind.CallOpts, _reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCaller) GetReserveData(opts *bind.CallOpts, _reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCaller) GetReserves(opts *bind.CallOpts) ([]common.Address, error) + func (_Lendingpool *LendingpoolCaller) GetUserAccountData(opts *bind.CallOpts, _user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCaller) GetUserReserveData(opts *bind.CallOpts, _reserve common.Address, _user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCaller) LENDINGPOOLREVISION(opts *bind.CallOpts) (*big.Int, error) + func (_Lendingpool *LendingpoolCaller) ParametersProvider(opts *bind.CallOpts) (common.Address, error) + func (_Lendingpool *LendingpoolCaller) UINTMAXVALUE(opts *bind.CallOpts) (*big.Int, error) + type LendingpoolCallerRaw struct + Contract *LendingpoolCaller + func (_Lendingpool *LendingpoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type LendingpoolCallerSession struct + CallOpts bind.CallOpts + Contract *LendingpoolCaller + func (_Lendingpool *LendingpoolCallerSession) AddressesProvider() (common.Address, error) + func (_Lendingpool *LendingpoolCallerSession) Core() (common.Address, error) + func (_Lendingpool *LendingpoolCallerSession) DataProvider() (common.Address, error) + func (_Lendingpool *LendingpoolCallerSession) GetReserveConfigurationData(_reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCallerSession) GetReserveData(_reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCallerSession) GetReserves() ([]common.Address, error) + func (_Lendingpool *LendingpoolCallerSession) GetUserAccountData(_user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCallerSession) GetUserReserveData(_reserve common.Address, _user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolCallerSession) LENDINGPOOLREVISION() (*big.Int, error) + func (_Lendingpool *LendingpoolCallerSession) ParametersProvider() (common.Address, error) + func (_Lendingpool *LendingpoolCallerSession) UINTMAXVALUE() (*big.Int, error) + type LendingpoolDeposit struct + Amount *big.Int + Raw types.Log + Referral uint16 + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolDepositIterator struct + Event *LendingpoolDeposit + func (it *LendingpoolDepositIterator) Close() error + func (it *LendingpoolDepositIterator) Error() error + func (it *LendingpoolDepositIterator) Next() bool + type LendingpoolFilterer struct + func NewLendingpoolFilterer(address common.Address, filterer bind.ContractFilterer) (*LendingpoolFilterer, error) + func (_Lendingpool *LendingpoolFilterer) FilterBorrow(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, ...) (*LendingpoolBorrowIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterDeposit(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, ...) (*LendingpoolDepositIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterFlashLoan(opts *bind.FilterOpts, _target []common.Address, _reserve []common.Address) (*LendingpoolFlashLoanIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterLiquidationCall(opts *bind.FilterOpts, _collateral []common.Address, _reserve []common.Address, ...) (*LendingpoolLiquidationCallIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterOriginationFeeLiquidated(opts *bind.FilterOpts, _collateral []common.Address, _reserve []common.Address, ...) (*LendingpoolOriginationFeeLiquidatedIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterRebalanceStableBorrowRate(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolRebalanceStableBorrowRateIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterRedeemUnderlying(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolRedeemUnderlyingIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterRepay(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, ...) (*LendingpoolRepayIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterReserveUsedAsCollateralDisabled(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolReserveUsedAsCollateralDisabledIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterReserveUsedAsCollateralEnabled(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolReserveUsedAsCollateralEnabledIterator, error) + func (_Lendingpool *LendingpoolFilterer) FilterSwap(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolSwapIterator, error) + func (_Lendingpool *LendingpoolFilterer) ParseBorrow(log types.Log) (*LendingpoolBorrow, error) + func (_Lendingpool *LendingpoolFilterer) ParseDeposit(log types.Log) (*LendingpoolDeposit, error) + func (_Lendingpool *LendingpoolFilterer) ParseFlashLoan(log types.Log) (*LendingpoolFlashLoan, error) + func (_Lendingpool *LendingpoolFilterer) ParseLiquidationCall(log types.Log) (*LendingpoolLiquidationCall, error) + func (_Lendingpool *LendingpoolFilterer) ParseOriginationFeeLiquidated(log types.Log) (*LendingpoolOriginationFeeLiquidated, error) + func (_Lendingpool *LendingpoolFilterer) ParseRebalanceStableBorrowRate(log types.Log) (*LendingpoolRebalanceStableBorrowRate, error) + func (_Lendingpool *LendingpoolFilterer) ParseRedeemUnderlying(log types.Log) (*LendingpoolRedeemUnderlying, error) + func (_Lendingpool *LendingpoolFilterer) ParseRepay(log types.Log) (*LendingpoolRepay, error) + func (_Lendingpool *LendingpoolFilterer) ParseReserveUsedAsCollateralDisabled(log types.Log) (*LendingpoolReserveUsedAsCollateralDisabled, error) + func (_Lendingpool *LendingpoolFilterer) ParseReserveUsedAsCollateralEnabled(log types.Log) (*LendingpoolReserveUsedAsCollateralEnabled, error) + func (_Lendingpool *LendingpoolFilterer) ParseSwap(log types.Log) (*LendingpoolSwap, error) + func (_Lendingpool *LendingpoolFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *LendingpoolBorrow, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *LendingpoolDeposit, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *LendingpoolFlashLoan, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchLiquidationCall(opts *bind.WatchOpts, sink chan<- *LendingpoolLiquidationCall, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchOriginationFeeLiquidated(opts *bind.WatchOpts, sink chan<- *LendingpoolOriginationFeeLiquidated, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchRebalanceStableBorrowRate(opts *bind.WatchOpts, sink chan<- *LendingpoolRebalanceStableBorrowRate, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchRedeemUnderlying(opts *bind.WatchOpts, sink chan<- *LendingpoolRedeemUnderlying, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *LendingpoolRepay, _reserve []common.Address, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchReserveUsedAsCollateralDisabled(opts *bind.WatchOpts, sink chan<- *LendingpoolReserveUsedAsCollateralDisabled, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchReserveUsedAsCollateralEnabled(opts *bind.WatchOpts, sink chan<- *LendingpoolReserveUsedAsCollateralEnabled, ...) (event.Subscription, error) + func (_Lendingpool *LendingpoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *LendingpoolSwap, _reserve []common.Address, ...) (event.Subscription, error) + type LendingpoolFlashLoan struct + Amount *big.Int + ProtocolFee *big.Int + Raw types.Log + Reserve common.Address + Target common.Address + Timestamp *big.Int + TotalFee *big.Int + type LendingpoolFlashLoanIterator struct + Event *LendingpoolFlashLoan + func (it *LendingpoolFlashLoanIterator) Close() error + func (it *LendingpoolFlashLoanIterator) Error() error + func (it *LendingpoolFlashLoanIterator) Next() bool + type LendingpoolLiquidationCall struct + AccruedBorrowInterest *big.Int + Collateral common.Address + LiquidatedCollateralAmount *big.Int + Liquidator common.Address + PurchaseAmount *big.Int + Raw types.Log + ReceiveAToken bool + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolLiquidationCallIterator struct + Event *LendingpoolLiquidationCall + func (it *LendingpoolLiquidationCallIterator) Close() error + func (it *LendingpoolLiquidationCallIterator) Error() error + func (it *LendingpoolLiquidationCallIterator) Next() bool + type LendingpoolOriginationFeeLiquidated struct + Collateral common.Address + FeeLiquidated *big.Int + LiquidatedCollateralForFee *big.Int + Raw types.Log + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolOriginationFeeLiquidatedIterator struct + Event *LendingpoolOriginationFeeLiquidated + func (it *LendingpoolOriginationFeeLiquidatedIterator) Close() error + func (it *LendingpoolOriginationFeeLiquidatedIterator) Error() error + func (it *LendingpoolOriginationFeeLiquidatedIterator) Next() bool + type LendingpoolRaw struct + Contract *Lendingpool + func (_Lendingpool *LendingpoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Lendingpool *LendingpoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Lendingpool *LendingpoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type LendingpoolRebalanceStableBorrowRate struct + BorrowBalanceIncrease *big.Int + NewStableRate *big.Int + Raw types.Log + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolRebalanceStableBorrowRateIterator struct + Event *LendingpoolRebalanceStableBorrowRate + func (it *LendingpoolRebalanceStableBorrowRateIterator) Close() error + func (it *LendingpoolRebalanceStableBorrowRateIterator) Error() error + func (it *LendingpoolRebalanceStableBorrowRateIterator) Next() bool + type LendingpoolRedeemUnderlying struct + Amount *big.Int + Raw types.Log + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolRedeemUnderlyingIterator struct + Event *LendingpoolRedeemUnderlying + func (it *LendingpoolRedeemUnderlyingIterator) Close() error + func (it *LendingpoolRedeemUnderlyingIterator) Error() error + func (it *LendingpoolRedeemUnderlyingIterator) Next() bool + type LendingpoolRepay struct + AmountMinusFees *big.Int + BorrowBalanceIncrease *big.Int + Fees *big.Int + Raw types.Log + Repayer common.Address + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolRepayIterator struct + Event *LendingpoolRepay + func (it *LendingpoolRepayIterator) Close() error + func (it *LendingpoolRepayIterator) Error() error + func (it *LendingpoolRepayIterator) Next() bool + type LendingpoolReserveUsedAsCollateralDisabled struct + Raw types.Log + Reserve common.Address + User common.Address + type LendingpoolReserveUsedAsCollateralDisabledIterator struct + Event *LendingpoolReserveUsedAsCollateralDisabled + func (it *LendingpoolReserveUsedAsCollateralDisabledIterator) Close() error + func (it *LendingpoolReserveUsedAsCollateralDisabledIterator) Error() error + func (it *LendingpoolReserveUsedAsCollateralDisabledIterator) Next() bool + type LendingpoolReserveUsedAsCollateralEnabled struct + Raw types.Log + Reserve common.Address + User common.Address + type LendingpoolReserveUsedAsCollateralEnabledIterator struct + Event *LendingpoolReserveUsedAsCollateralEnabled + func (it *LendingpoolReserveUsedAsCollateralEnabledIterator) Close() error + func (it *LendingpoolReserveUsedAsCollateralEnabledIterator) Error() error + func (it *LendingpoolReserveUsedAsCollateralEnabledIterator) Next() bool + type LendingpoolSession struct + CallOpts bind.CallOpts + Contract *Lendingpool + TransactOpts bind.TransactOpts + func (_Lendingpool *LendingpoolSession) AddressesProvider() (common.Address, error) + func (_Lendingpool *LendingpoolSession) Borrow(_reserve common.Address, _amount *big.Int, _interestRateMode *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) Core() (common.Address, error) + func (_Lendingpool *LendingpoolSession) DataProvider() (common.Address, error) + func (_Lendingpool *LendingpoolSession) Deposit(_reserve common.Address, _amount *big.Int, _referralCode uint16) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) FlashLoan(_receiver common.Address, _reserve common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) GetReserveConfigurationData(_reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolSession) GetReserveData(_reserve common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolSession) GetReserves() ([]common.Address, error) + func (_Lendingpool *LendingpoolSession) GetUserAccountData(_user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolSession) GetUserReserveData(_reserve common.Address, _user common.Address) (struct{ ... }, error) + func (_Lendingpool *LendingpoolSession) Initialize(_addressesProvider common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) LENDINGPOOLREVISION() (*big.Int, error) + func (_Lendingpool *LendingpoolSession) LiquidationCall(_collateral common.Address, _reserve common.Address, _user common.Address, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) ParametersProvider() (common.Address, error) + func (_Lendingpool *LendingpoolSession) RebalanceStableBorrowRate(_reserve common.Address, _user common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) RedeemUnderlying(_reserve common.Address, _user common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) Repay(_reserve common.Address, _amount *big.Int, _onBehalfOf common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) SetUserUseReserveAsCollateral(_reserve common.Address, _useAsCollateral bool) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) SwapBorrowRateMode(_reserve common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolSession) UINTMAXVALUE() (*big.Int, error) + type LendingpoolSwap struct + BorrowBalanceIncrease *big.Int + NewRate *big.Int + NewRateMode *big.Int + Raw types.Log + Reserve common.Address + Timestamp *big.Int + User common.Address + type LendingpoolSwapIterator struct + Event *LendingpoolSwap + func (it *LendingpoolSwapIterator) Close() error + func (it *LendingpoolSwapIterator) Error() error + func (it *LendingpoolSwapIterator) Next() bool + type LendingpoolTransactor struct + func NewLendingpoolTransactor(address common.Address, transactor bind.ContractTransactor) (*LendingpoolTransactor, error) + func (_Lendingpool *LendingpoolTransactor) Borrow(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) Deposit(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) FlashLoan(opts *bind.TransactOpts, _receiver common.Address, _reserve common.Address, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) Initialize(opts *bind.TransactOpts, _addressesProvider common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) LiquidationCall(opts *bind.TransactOpts, _collateral common.Address, _reserve common.Address, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) RebalanceStableBorrowRate(opts *bind.TransactOpts, _reserve common.Address, _user common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) RedeemUnderlying(opts *bind.TransactOpts, _reserve common.Address, _user common.Address, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) Repay(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) SetUserUseReserveAsCollateral(opts *bind.TransactOpts, _reserve common.Address, _useAsCollateral bool) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactor) SwapBorrowRateMode(opts *bind.TransactOpts, _reserve common.Address) (*types.Transaction, error) + type LendingpoolTransactorRaw struct + Contract *LendingpoolTransactor + func (_Lendingpool *LendingpoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type LendingpoolTransactorSession struct + Contract *LendingpoolTransactor + TransactOpts bind.TransactOpts + func (_Lendingpool *LendingpoolTransactorSession) Borrow(_reserve common.Address, _amount *big.Int, _interestRateMode *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) Deposit(_reserve common.Address, _amount *big.Int, _referralCode uint16) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) FlashLoan(_receiver common.Address, _reserve common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) Initialize(_addressesProvider common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) LiquidationCall(_collateral common.Address, _reserve common.Address, _user common.Address, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) RebalanceStableBorrowRate(_reserve common.Address, _user common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) RedeemUnderlying(_reserve common.Address, _user common.Address, _amount *big.Int, ...) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) Repay(_reserve common.Address, _amount *big.Int, _onBehalfOf common.Address) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) SetUserUseReserveAsCollateral(_reserve common.Address, _useAsCollateral bool) (*types.Transaction, error) + func (_Lendingpool *LendingpoolTransactorSession) SwapBorrowRateMode(_reserve common.Address) (*types.Transaction, error)