lendingpool

package
v0.0.0-...-829fea1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const LendingpoolABI = "" /* 16126-byte string literal not displayed */

LendingpoolABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lendingpool

type Lendingpool struct {
	LendingpoolCaller     // Read-only binding to the contract
	LendingpoolTransactor // Write-only binding to the contract
	LendingpoolFilterer   // Log filterer for contract events
}

Lendingpool is an auto generated Go binding around an Ethereum contract.

func NewLendingpool

func NewLendingpool(address common.Address, backend bind.ContractBackend) (*Lendingpool, error)

NewLendingpool creates a new instance of Lendingpool, bound to a specific deployed contract.

type LendingpoolBorrow

type LendingpoolBorrow struct {
	Reserve               common.Address
	User                  common.Address
	Amount                *big.Int
	BorrowRateMode        *big.Int
	BorrowRate            *big.Int
	OriginationFee        *big.Int
	BorrowBalanceIncrease *big.Int
	Referral              uint16
	Timestamp             *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

LendingpoolBorrow represents a Borrow event raised by the Lendingpool contract.

type LendingpoolBorrowIterator

type LendingpoolBorrowIterator struct {
	Event *LendingpoolBorrow // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolBorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the Lendingpool contract.

func (*LendingpoolBorrowIterator) Close

func (it *LendingpoolBorrowIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolBorrowIterator) Error

func (it *LendingpoolBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolBorrowIterator) Next

func (it *LendingpoolBorrowIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolCaller

type LendingpoolCaller struct {
	// contains filtered or unexported fields
}

LendingpoolCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewLendingpoolCaller

func NewLendingpoolCaller(address common.Address, caller bind.ContractCaller) (*LendingpoolCaller, error)

NewLendingpoolCaller creates a new read-only instance of Lendingpool, bound to a specific deployed contract.

func (*LendingpoolCaller) AddressesProvider

func (_Lendingpool *LendingpoolCaller) AddressesProvider(opts *bind.CallOpts) (common.Address, error)

AddressesProvider is a free data retrieval call binding the contract method 0xc72c4d10.

Solidity: function addressesProvider() view returns(address)

func (*LendingpoolCaller) Core

func (_Lendingpool *LendingpoolCaller) Core(opts *bind.CallOpts) (common.Address, error)

Core is a free data retrieval call binding the contract method 0xf2f4eb26.

Solidity: function core() view returns(address)

func (*LendingpoolCaller) DataProvider

func (_Lendingpool *LendingpoolCaller) DataProvider(opts *bind.CallOpts) (common.Address, error)

DataProvider is a free data retrieval call binding the contract method 0xb334ed86.

Solidity: function dataProvider() view returns(address)

func (*LendingpoolCaller) GetReserveConfigurationData

func (_Lendingpool *LendingpoolCaller) GetReserveConfigurationData(opts *bind.CallOpts, _reserve common.Address) (struct {
	Ltv                         *big.Int
	LiquidationThreshold        *big.Int
	LiquidationBonus            *big.Int
	InterestRateStrategyAddress common.Address
	UsageAsCollateralEnabled    bool
	BorrowingEnabled            bool
	StableBorrowRateEnabled     bool
	IsActive                    bool
}, error)

GetReserveConfigurationData is a free data retrieval call binding the contract method 0x3e150141.

Solidity: function getReserveConfigurationData(address _reserve) view returns(uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus, address interestRateStrategyAddress, bool usageAsCollateralEnabled, bool borrowingEnabled, bool stableBorrowRateEnabled, bool isActive)

func (*LendingpoolCaller) GetReserveData

func (_Lendingpool *LendingpoolCaller) GetReserveData(opts *bind.CallOpts, _reserve common.Address) (struct {
	TotalLiquidity          *big.Int
	AvailableLiquidity      *big.Int
	TotalBorrowsStable      *big.Int
	TotalBorrowsVariable    *big.Int
	LiquidityRate           *big.Int
	VariableBorrowRate      *big.Int
	StableBorrowRate        *big.Int
	AverageStableBorrowRate *big.Int
	UtilizationRate         *big.Int
	LiquidityIndex          *big.Int
	VariableBorrowIndex     *big.Int
	ATokenAddress           common.Address
	LastUpdateTimestamp     *big.Int
}, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address _reserve) view returns(uint256 totalLiquidity, uint256 availableLiquidity, uint256 totalBorrowsStable, uint256 totalBorrowsVariable, uint256 liquidityRate, uint256 variableBorrowRate, uint256 stableBorrowRate, uint256 averageStableBorrowRate, uint256 utilizationRate, uint256 liquidityIndex, uint256 variableBorrowIndex, address aTokenAddress, uint40 lastUpdateTimestamp)

func (*LendingpoolCaller) GetReserves

func (_Lendingpool *LendingpoolCaller) GetReserves(opts *bind.CallOpts) ([]common.Address, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(address[])

func (*LendingpoolCaller) GetUserAccountData

func (_Lendingpool *LendingpoolCaller) GetUserAccountData(opts *bind.CallOpts, _user common.Address) (struct {
	TotalLiquidityETH           *big.Int
	TotalCollateralETH          *big.Int
	TotalBorrowsETH             *big.Int
	TotalFeesETH                *big.Int
	AvailableBorrowsETH         *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address _user) view returns(uint256 totalLiquidityETH, uint256 totalCollateralETH, uint256 totalBorrowsETH, uint256 totalFeesETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*LendingpoolCaller) GetUserReserveData

func (_Lendingpool *LendingpoolCaller) GetUserReserveData(opts *bind.CallOpts, _reserve common.Address, _user common.Address) (struct {
	CurrentATokenBalance     *big.Int
	CurrentBorrowBalance     *big.Int
	PrincipalBorrowBalance   *big.Int
	BorrowRateMode           *big.Int
	BorrowRate               *big.Int
	LiquidityRate            *big.Int
	OriginationFee           *big.Int
	VariableBorrowIndex      *big.Int
	LastUpdateTimestamp      *big.Int
	UsageAsCollateralEnabled bool
}, error)

GetUserReserveData is a free data retrieval call binding the contract method 0x28dd2d01.

Solidity: function getUserReserveData(address _reserve, address _user) view returns(uint256 currentATokenBalance, uint256 currentBorrowBalance, uint256 principalBorrowBalance, uint256 borrowRateMode, uint256 borrowRate, uint256 liquidityRate, uint256 originationFee, uint256 variableBorrowIndex, uint256 lastUpdateTimestamp, bool usageAsCollateralEnabled)

func (*LendingpoolCaller) LENDINGPOOLREVISION

func (_Lendingpool *LendingpoolCaller) LENDINGPOOLREVISION(opts *bind.CallOpts) (*big.Int, error)

LENDINGPOOLREVISION is a free data retrieval call binding the contract method 0x8afaff02.

Solidity: function LENDINGPOOL_REVISION() view returns(uint256)

func (*LendingpoolCaller) ParametersProvider

func (_Lendingpool *LendingpoolCaller) ParametersProvider(opts *bind.CallOpts) (common.Address, error)

ParametersProvider is a free data retrieval call binding the contract method 0x58707e06.

Solidity: function parametersProvider() view returns(address)

func (*LendingpoolCaller) UINTMAXVALUE

func (_Lendingpool *LendingpoolCaller) UINTMAXVALUE(opts *bind.CallOpts) (*big.Int, error)

UINTMAXVALUE is a free data retrieval call binding the contract method 0xd0fc81d2.

Solidity: function UINT_MAX_VALUE() view returns(uint256)

type LendingpoolCallerRaw

type LendingpoolCallerRaw struct {
	Contract *LendingpoolCaller // Generic read-only contract binding to access the raw methods on
}

LendingpoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*LendingpoolCallerRaw) Call

func (_Lendingpool *LendingpoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type LendingpoolCallerSession

type LendingpoolCallerSession struct {
	Contract *LendingpoolCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

LendingpoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*LendingpoolCallerSession) AddressesProvider

func (_Lendingpool *LendingpoolCallerSession) AddressesProvider() (common.Address, error)

AddressesProvider is a free data retrieval call binding the contract method 0xc72c4d10.

Solidity: function addressesProvider() view returns(address)

func (*LendingpoolCallerSession) Core

func (_Lendingpool *LendingpoolCallerSession) Core() (common.Address, error)

Core is a free data retrieval call binding the contract method 0xf2f4eb26.

Solidity: function core() view returns(address)

func (*LendingpoolCallerSession) DataProvider

func (_Lendingpool *LendingpoolCallerSession) DataProvider() (common.Address, error)

DataProvider is a free data retrieval call binding the contract method 0xb334ed86.

Solidity: function dataProvider() view returns(address)

func (*LendingpoolCallerSession) GetReserveConfigurationData

func (_Lendingpool *LendingpoolCallerSession) GetReserveConfigurationData(_reserve common.Address) (struct {
	Ltv                         *big.Int
	LiquidationThreshold        *big.Int
	LiquidationBonus            *big.Int
	InterestRateStrategyAddress common.Address
	UsageAsCollateralEnabled    bool
	BorrowingEnabled            bool
	StableBorrowRateEnabled     bool
	IsActive                    bool
}, error)

GetReserveConfigurationData is a free data retrieval call binding the contract method 0x3e150141.

Solidity: function getReserveConfigurationData(address _reserve) view returns(uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus, address interestRateStrategyAddress, bool usageAsCollateralEnabled, bool borrowingEnabled, bool stableBorrowRateEnabled, bool isActive)

func (*LendingpoolCallerSession) GetReserveData

func (_Lendingpool *LendingpoolCallerSession) GetReserveData(_reserve common.Address) (struct {
	TotalLiquidity          *big.Int
	AvailableLiquidity      *big.Int
	TotalBorrowsStable      *big.Int
	TotalBorrowsVariable    *big.Int
	LiquidityRate           *big.Int
	VariableBorrowRate      *big.Int
	StableBorrowRate        *big.Int
	AverageStableBorrowRate *big.Int
	UtilizationRate         *big.Int
	LiquidityIndex          *big.Int
	VariableBorrowIndex     *big.Int
	ATokenAddress           common.Address
	LastUpdateTimestamp     *big.Int
}, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address _reserve) view returns(uint256 totalLiquidity, uint256 availableLiquidity, uint256 totalBorrowsStable, uint256 totalBorrowsVariable, uint256 liquidityRate, uint256 variableBorrowRate, uint256 stableBorrowRate, uint256 averageStableBorrowRate, uint256 utilizationRate, uint256 liquidityIndex, uint256 variableBorrowIndex, address aTokenAddress, uint40 lastUpdateTimestamp)

func (*LendingpoolCallerSession) GetReserves

func (_Lendingpool *LendingpoolCallerSession) GetReserves() ([]common.Address, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(address[])

func (*LendingpoolCallerSession) GetUserAccountData

func (_Lendingpool *LendingpoolCallerSession) GetUserAccountData(_user common.Address) (struct {
	TotalLiquidityETH           *big.Int
	TotalCollateralETH          *big.Int
	TotalBorrowsETH             *big.Int
	TotalFeesETH                *big.Int
	AvailableBorrowsETH         *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address _user) view returns(uint256 totalLiquidityETH, uint256 totalCollateralETH, uint256 totalBorrowsETH, uint256 totalFeesETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*LendingpoolCallerSession) GetUserReserveData

func (_Lendingpool *LendingpoolCallerSession) GetUserReserveData(_reserve common.Address, _user common.Address) (struct {
	CurrentATokenBalance     *big.Int
	CurrentBorrowBalance     *big.Int
	PrincipalBorrowBalance   *big.Int
	BorrowRateMode           *big.Int
	BorrowRate               *big.Int
	LiquidityRate            *big.Int
	OriginationFee           *big.Int
	VariableBorrowIndex      *big.Int
	LastUpdateTimestamp      *big.Int
	UsageAsCollateralEnabled bool
}, error)

GetUserReserveData is a free data retrieval call binding the contract method 0x28dd2d01.

Solidity: function getUserReserveData(address _reserve, address _user) view returns(uint256 currentATokenBalance, uint256 currentBorrowBalance, uint256 principalBorrowBalance, uint256 borrowRateMode, uint256 borrowRate, uint256 liquidityRate, uint256 originationFee, uint256 variableBorrowIndex, uint256 lastUpdateTimestamp, bool usageAsCollateralEnabled)

func (*LendingpoolCallerSession) LENDINGPOOLREVISION

func (_Lendingpool *LendingpoolCallerSession) LENDINGPOOLREVISION() (*big.Int, error)

LENDINGPOOLREVISION is a free data retrieval call binding the contract method 0x8afaff02.

Solidity: function LENDINGPOOL_REVISION() view returns(uint256)

func (*LendingpoolCallerSession) ParametersProvider

func (_Lendingpool *LendingpoolCallerSession) ParametersProvider() (common.Address, error)

ParametersProvider is a free data retrieval call binding the contract method 0x58707e06.

Solidity: function parametersProvider() view returns(address)

func (*LendingpoolCallerSession) UINTMAXVALUE

func (_Lendingpool *LendingpoolCallerSession) UINTMAXVALUE() (*big.Int, error)

UINTMAXVALUE is a free data retrieval call binding the contract method 0xd0fc81d2.

Solidity: function UINT_MAX_VALUE() view returns(uint256)

type LendingpoolDeposit

type LendingpoolDeposit struct {
	Reserve   common.Address
	User      common.Address
	Amount    *big.Int
	Referral  uint16
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

LendingpoolDeposit represents a Deposit event raised by the Lendingpool contract.

type LendingpoolDepositIterator

type LendingpoolDepositIterator struct {
	Event *LendingpoolDeposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Lendingpool contract.

func (*LendingpoolDepositIterator) Close

func (it *LendingpoolDepositIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolDepositIterator) Error

func (it *LendingpoolDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolDepositIterator) Next

func (it *LendingpoolDepositIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolFilterer

type LendingpoolFilterer struct {
	// contains filtered or unexported fields
}

LendingpoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewLendingpoolFilterer

func NewLendingpoolFilterer(address common.Address, filterer bind.ContractFilterer) (*LendingpoolFilterer, error)

NewLendingpoolFilterer creates a new log filterer instance of Lendingpool, bound to a specific deployed contract.

func (*LendingpoolFilterer) FilterBorrow

func (_Lendingpool *LendingpoolFilterer) FilterBorrow(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, _referral []uint16) (*LendingpoolBorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553.

Solidity: event Borrow(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _borrowRateMode, uint256 _borrowRate, uint256 _originationFee, uint256 _borrowBalanceIncrease, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) FilterDeposit

func (_Lendingpool *LendingpoolFilterer) FilterDeposit(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, _referral []uint16) (*LendingpoolDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82.

Solidity: event Deposit(address indexed _reserve, address indexed _user, uint256 _amount, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) FilterFlashLoan

func (_Lendingpool *LendingpoolFilterer) FilterFlashLoan(opts *bind.FilterOpts, _target []common.Address, _reserve []common.Address) (*LendingpoolFlashLoanIterator, error)

FilterFlashLoan is a free log retrieval operation binding the contract event 0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55.

Solidity: event FlashLoan(address indexed _target, address indexed _reserve, uint256 _amount, uint256 _totalFee, uint256 _protocolFee, uint256 _timestamp)

func (*LendingpoolFilterer) FilterLiquidationCall

func (_Lendingpool *LendingpoolFilterer) FilterLiquidationCall(opts *bind.FilterOpts, _collateral []common.Address, _reserve []common.Address, _user []common.Address) (*LendingpoolLiquidationCallIterator, error)

FilterLiquidationCall is a free log retrieval operation binding the contract event 0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237.

Solidity: event LiquidationCall(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _purchaseAmount, uint256 _liquidatedCollateralAmount, uint256 _accruedBorrowInterest, address _liquidator, bool _receiveAToken, uint256 _timestamp)

func (*LendingpoolFilterer) FilterOriginationFeeLiquidated

func (_Lendingpool *LendingpoolFilterer) FilterOriginationFeeLiquidated(opts *bind.FilterOpts, _collateral []common.Address, _reserve []common.Address, _user []common.Address) (*LendingpoolOriginationFeeLiquidatedIterator, error)

FilterOriginationFeeLiquidated is a free log retrieval operation binding the contract event 0x36ca8b16d61dc13b1062adff83e3778ab92d14f9e35bfe9fd1283e02b13fb0a1.

Solidity: event OriginationFeeLiquidated(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _feeLiquidated, uint256 _liquidatedCollateralForFee, uint256 _timestamp)

func (*LendingpoolFilterer) FilterRebalanceStableBorrowRate

func (_Lendingpool *LendingpoolFilterer) FilterRebalanceStableBorrowRate(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolRebalanceStableBorrowRateIterator, error)

FilterRebalanceStableBorrowRate is a free log retrieval operation binding the contract event 0x5050ad184862424ee0852d1838d355ad65bed1e5e6da67ac9a2dac1922677f60.

Solidity: event RebalanceStableBorrowRate(address indexed _reserve, address indexed _user, uint256 _newStableRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) FilterRedeemUnderlying

func (_Lendingpool *LendingpoolFilterer) FilterRedeemUnderlying(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolRedeemUnderlyingIterator, error)

FilterRedeemUnderlying is a free log retrieval operation binding the contract event 0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6.

Solidity: event RedeemUnderlying(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _timestamp)

func (*LendingpoolFilterer) FilterRepay

func (_Lendingpool *LendingpoolFilterer) FilterRepay(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address, _repayer []common.Address) (*LendingpoolRepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d.

Solidity: event Repay(address indexed _reserve, address indexed _user, address indexed _repayer, uint256 _amountMinusFees, uint256 _fees, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) FilterReserveUsedAsCollateralDisabled

func (_Lendingpool *LendingpoolFilterer) FilterReserveUsedAsCollateralDisabled(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolReserveUsedAsCollateralDisabledIterator, error)

FilterReserveUsedAsCollateralDisabled is a free log retrieval operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) FilterReserveUsedAsCollateralEnabled

func (_Lendingpool *LendingpoolFilterer) FilterReserveUsedAsCollateralEnabled(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolReserveUsedAsCollateralEnabledIterator, error)

FilterReserveUsedAsCollateralEnabled is a free log retrieval operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) FilterSwap

func (_Lendingpool *LendingpoolFilterer) FilterSwap(opts *bind.FilterOpts, _reserve []common.Address, _user []common.Address) (*LendingpoolSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b.

Solidity: event Swap(address indexed _reserve, address indexed _user, uint256 _newRateMode, uint256 _newRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) ParseBorrow

func (_Lendingpool *LendingpoolFilterer) ParseBorrow(log types.Log) (*LendingpoolBorrow, error)

ParseBorrow is a log parse operation binding the contract event 0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553.

Solidity: event Borrow(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _borrowRateMode, uint256 _borrowRate, uint256 _originationFee, uint256 _borrowBalanceIncrease, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) ParseDeposit

func (_Lendingpool *LendingpoolFilterer) ParseDeposit(log types.Log) (*LendingpoolDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82.

Solidity: event Deposit(address indexed _reserve, address indexed _user, uint256 _amount, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) ParseFlashLoan

func (_Lendingpool *LendingpoolFilterer) ParseFlashLoan(log types.Log) (*LendingpoolFlashLoan, error)

ParseFlashLoan is a log parse operation binding the contract event 0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55.

Solidity: event FlashLoan(address indexed _target, address indexed _reserve, uint256 _amount, uint256 _totalFee, uint256 _protocolFee, uint256 _timestamp)

func (*LendingpoolFilterer) ParseLiquidationCall

func (_Lendingpool *LendingpoolFilterer) ParseLiquidationCall(log types.Log) (*LendingpoolLiquidationCall, error)

ParseLiquidationCall is a log parse operation binding the contract event 0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237.

Solidity: event LiquidationCall(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _purchaseAmount, uint256 _liquidatedCollateralAmount, uint256 _accruedBorrowInterest, address _liquidator, bool _receiveAToken, uint256 _timestamp)

func (*LendingpoolFilterer) ParseOriginationFeeLiquidated

func (_Lendingpool *LendingpoolFilterer) ParseOriginationFeeLiquidated(log types.Log) (*LendingpoolOriginationFeeLiquidated, error)

ParseOriginationFeeLiquidated is a log parse operation binding the contract event 0x36ca8b16d61dc13b1062adff83e3778ab92d14f9e35bfe9fd1283e02b13fb0a1.

Solidity: event OriginationFeeLiquidated(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _feeLiquidated, uint256 _liquidatedCollateralForFee, uint256 _timestamp)

func (*LendingpoolFilterer) ParseRebalanceStableBorrowRate

func (_Lendingpool *LendingpoolFilterer) ParseRebalanceStableBorrowRate(log types.Log) (*LendingpoolRebalanceStableBorrowRate, error)

ParseRebalanceStableBorrowRate is a log parse operation binding the contract event 0x5050ad184862424ee0852d1838d355ad65bed1e5e6da67ac9a2dac1922677f60.

Solidity: event RebalanceStableBorrowRate(address indexed _reserve, address indexed _user, uint256 _newStableRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) ParseRedeemUnderlying

func (_Lendingpool *LendingpoolFilterer) ParseRedeemUnderlying(log types.Log) (*LendingpoolRedeemUnderlying, error)

ParseRedeemUnderlying is a log parse operation binding the contract event 0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6.

Solidity: event RedeemUnderlying(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _timestamp)

func (*LendingpoolFilterer) ParseRepay

func (_Lendingpool *LendingpoolFilterer) ParseRepay(log types.Log) (*LendingpoolRepay, error)

ParseRepay is a log parse operation binding the contract event 0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d.

Solidity: event Repay(address indexed _reserve, address indexed _user, address indexed _repayer, uint256 _amountMinusFees, uint256 _fees, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) ParseReserveUsedAsCollateralDisabled

func (_Lendingpool *LendingpoolFilterer) ParseReserveUsedAsCollateralDisabled(log types.Log) (*LendingpoolReserveUsedAsCollateralDisabled, error)

ParseReserveUsedAsCollateralDisabled is a log parse operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) ParseReserveUsedAsCollateralEnabled

func (_Lendingpool *LendingpoolFilterer) ParseReserveUsedAsCollateralEnabled(log types.Log) (*LendingpoolReserveUsedAsCollateralEnabled, error)

ParseReserveUsedAsCollateralEnabled is a log parse operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) ParseSwap

func (_Lendingpool *LendingpoolFilterer) ParseSwap(log types.Log) (*LendingpoolSwap, error)

ParseSwap is a log parse operation binding the contract event 0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b.

Solidity: event Swap(address indexed _reserve, address indexed _user, uint256 _newRateMode, uint256 _newRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) WatchBorrow

func (_Lendingpool *LendingpoolFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *LendingpoolBorrow, _reserve []common.Address, _user []common.Address, _referral []uint16) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553.

Solidity: event Borrow(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _borrowRateMode, uint256 _borrowRate, uint256 _originationFee, uint256 _borrowBalanceIncrease, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) WatchDeposit

func (_Lendingpool *LendingpoolFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *LendingpoolDeposit, _reserve []common.Address, _user []common.Address, _referral []uint16) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82.

Solidity: event Deposit(address indexed _reserve, address indexed _user, uint256 _amount, uint16 indexed _referral, uint256 _timestamp)

func (*LendingpoolFilterer) WatchFlashLoan

func (_Lendingpool *LendingpoolFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *LendingpoolFlashLoan, _target []common.Address, _reserve []common.Address) (event.Subscription, error)

WatchFlashLoan is a free log subscription operation binding the contract event 0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55.

Solidity: event FlashLoan(address indexed _target, address indexed _reserve, uint256 _amount, uint256 _totalFee, uint256 _protocolFee, uint256 _timestamp)

func (*LendingpoolFilterer) WatchLiquidationCall

func (_Lendingpool *LendingpoolFilterer) WatchLiquidationCall(opts *bind.WatchOpts, sink chan<- *LendingpoolLiquidationCall, _collateral []common.Address, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchLiquidationCall is a free log subscription operation binding the contract event 0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237.

Solidity: event LiquidationCall(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _purchaseAmount, uint256 _liquidatedCollateralAmount, uint256 _accruedBorrowInterest, address _liquidator, bool _receiveAToken, uint256 _timestamp)

func (*LendingpoolFilterer) WatchOriginationFeeLiquidated

func (_Lendingpool *LendingpoolFilterer) WatchOriginationFeeLiquidated(opts *bind.WatchOpts, sink chan<- *LendingpoolOriginationFeeLiquidated, _collateral []common.Address, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchOriginationFeeLiquidated is a free log subscription operation binding the contract event 0x36ca8b16d61dc13b1062adff83e3778ab92d14f9e35bfe9fd1283e02b13fb0a1.

Solidity: event OriginationFeeLiquidated(address indexed _collateral, address indexed _reserve, address indexed _user, uint256 _feeLiquidated, uint256 _liquidatedCollateralForFee, uint256 _timestamp)

func (*LendingpoolFilterer) WatchRebalanceStableBorrowRate

func (_Lendingpool *LendingpoolFilterer) WatchRebalanceStableBorrowRate(opts *bind.WatchOpts, sink chan<- *LendingpoolRebalanceStableBorrowRate, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchRebalanceStableBorrowRate is a free log subscription operation binding the contract event 0x5050ad184862424ee0852d1838d355ad65bed1e5e6da67ac9a2dac1922677f60.

Solidity: event RebalanceStableBorrowRate(address indexed _reserve, address indexed _user, uint256 _newStableRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) WatchRedeemUnderlying

func (_Lendingpool *LendingpoolFilterer) WatchRedeemUnderlying(opts *bind.WatchOpts, sink chan<- *LendingpoolRedeemUnderlying, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchRedeemUnderlying is a free log subscription operation binding the contract event 0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6.

Solidity: event RedeemUnderlying(address indexed _reserve, address indexed _user, uint256 _amount, uint256 _timestamp)

func (*LendingpoolFilterer) WatchRepay

func (_Lendingpool *LendingpoolFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *LendingpoolRepay, _reserve []common.Address, _user []common.Address, _repayer []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d.

Solidity: event Repay(address indexed _reserve, address indexed _user, address indexed _repayer, uint256 _amountMinusFees, uint256 _fees, uint256 _borrowBalanceIncrease, uint256 _timestamp)

func (*LendingpoolFilterer) WatchReserveUsedAsCollateralDisabled

func (_Lendingpool *LendingpoolFilterer) WatchReserveUsedAsCollateralDisabled(opts *bind.WatchOpts, sink chan<- *LendingpoolReserveUsedAsCollateralDisabled, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchReserveUsedAsCollateralDisabled is a free log subscription operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) WatchReserveUsedAsCollateralEnabled

func (_Lendingpool *LendingpoolFilterer) WatchReserveUsedAsCollateralEnabled(opts *bind.WatchOpts, sink chan<- *LendingpoolReserveUsedAsCollateralEnabled, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchReserveUsedAsCollateralEnabled is a free log subscription operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed _reserve, address indexed _user)

func (*LendingpoolFilterer) WatchSwap

func (_Lendingpool *LendingpoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *LendingpoolSwap, _reserve []common.Address, _user []common.Address) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b.

Solidity: event Swap(address indexed _reserve, address indexed _user, uint256 _newRateMode, uint256 _newRate, uint256 _borrowBalanceIncrease, uint256 _timestamp)

type LendingpoolFlashLoan

type LendingpoolFlashLoan struct {
	Target      common.Address
	Reserve     common.Address
	Amount      *big.Int
	TotalFee    *big.Int
	ProtocolFee *big.Int
	Timestamp   *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

LendingpoolFlashLoan represents a FlashLoan event raised by the Lendingpool contract.

type LendingpoolFlashLoanIterator

type LendingpoolFlashLoanIterator struct {
	Event *LendingpoolFlashLoan // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolFlashLoanIterator is returned from FilterFlashLoan and is used to iterate over the raw logs and unpacked data for FlashLoan events raised by the Lendingpool contract.

func (*LendingpoolFlashLoanIterator) Close

func (it *LendingpoolFlashLoanIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolFlashLoanIterator) Error

func (it *LendingpoolFlashLoanIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolFlashLoanIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolLiquidationCall

type LendingpoolLiquidationCall struct {
	Collateral                 common.Address
	Reserve                    common.Address
	User                       common.Address
	PurchaseAmount             *big.Int
	LiquidatedCollateralAmount *big.Int
	AccruedBorrowInterest      *big.Int
	Liquidator                 common.Address
	ReceiveAToken              bool
	Timestamp                  *big.Int
	Raw                        types.Log // Blockchain specific contextual infos
}

LendingpoolLiquidationCall represents a LiquidationCall event raised by the Lendingpool contract.

type LendingpoolLiquidationCallIterator

type LendingpoolLiquidationCallIterator struct {
	Event *LendingpoolLiquidationCall // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolLiquidationCallIterator is returned from FilterLiquidationCall and is used to iterate over the raw logs and unpacked data for LiquidationCall events raised by the Lendingpool contract.

func (*LendingpoolLiquidationCallIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolLiquidationCallIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolLiquidationCallIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolOriginationFeeLiquidated

type LendingpoolOriginationFeeLiquidated struct {
	Collateral                 common.Address
	Reserve                    common.Address
	User                       common.Address
	FeeLiquidated              *big.Int
	LiquidatedCollateralForFee *big.Int
	Timestamp                  *big.Int
	Raw                        types.Log // Blockchain specific contextual infos
}

LendingpoolOriginationFeeLiquidated represents a OriginationFeeLiquidated event raised by the Lendingpool contract.

type LendingpoolOriginationFeeLiquidatedIterator

type LendingpoolOriginationFeeLiquidatedIterator struct {
	Event *LendingpoolOriginationFeeLiquidated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolOriginationFeeLiquidatedIterator is returned from FilterOriginationFeeLiquidated and is used to iterate over the raw logs and unpacked data for OriginationFeeLiquidated events raised by the Lendingpool contract.

func (*LendingpoolOriginationFeeLiquidatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolOriginationFeeLiquidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolOriginationFeeLiquidatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolRaw

type LendingpoolRaw struct {
	Contract *Lendingpool // Generic contract binding to access the raw methods on
}

LendingpoolRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*LendingpoolRaw) Call

func (_Lendingpool *LendingpoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*LendingpoolRaw) Transact

func (_Lendingpool *LendingpoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*LendingpoolRaw) Transfer

func (_Lendingpool *LendingpoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type LendingpoolRebalanceStableBorrowRate

type LendingpoolRebalanceStableBorrowRate struct {
	Reserve               common.Address
	User                  common.Address
	NewStableRate         *big.Int
	BorrowBalanceIncrease *big.Int
	Timestamp             *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

LendingpoolRebalanceStableBorrowRate represents a RebalanceStableBorrowRate event raised by the Lendingpool contract.

type LendingpoolRebalanceStableBorrowRateIterator

type LendingpoolRebalanceStableBorrowRateIterator struct {
	Event *LendingpoolRebalanceStableBorrowRate // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolRebalanceStableBorrowRateIterator is returned from FilterRebalanceStableBorrowRate and is used to iterate over the raw logs and unpacked data for RebalanceStableBorrowRate events raised by the Lendingpool contract.

func (*LendingpoolRebalanceStableBorrowRateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolRebalanceStableBorrowRateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolRebalanceStableBorrowRateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolRedeemUnderlying

type LendingpoolRedeemUnderlying struct {
	Reserve   common.Address
	User      common.Address
	Amount    *big.Int
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

LendingpoolRedeemUnderlying represents a RedeemUnderlying event raised by the Lendingpool contract.

type LendingpoolRedeemUnderlyingIterator

type LendingpoolRedeemUnderlyingIterator struct {
	Event *LendingpoolRedeemUnderlying // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolRedeemUnderlyingIterator is returned from FilterRedeemUnderlying and is used to iterate over the raw logs and unpacked data for RedeemUnderlying events raised by the Lendingpool contract.

func (*LendingpoolRedeemUnderlyingIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolRedeemUnderlyingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolRedeemUnderlyingIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolRepay

type LendingpoolRepay struct {
	Reserve               common.Address
	User                  common.Address
	Repayer               common.Address
	AmountMinusFees       *big.Int
	Fees                  *big.Int
	BorrowBalanceIncrease *big.Int
	Timestamp             *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

LendingpoolRepay represents a Repay event raised by the Lendingpool contract.

type LendingpoolRepayIterator

type LendingpoolRepayIterator struct {
	Event *LendingpoolRepay // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolRepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the Lendingpool contract.

func (*LendingpoolRepayIterator) Close

func (it *LendingpoolRepayIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolRepayIterator) Error

func (it *LendingpoolRepayIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolRepayIterator) Next

func (it *LendingpoolRepayIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolReserveUsedAsCollateralDisabled

type LendingpoolReserveUsedAsCollateralDisabled struct {
	Reserve common.Address
	User    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

LendingpoolReserveUsedAsCollateralDisabled represents a ReserveUsedAsCollateralDisabled event raised by the Lendingpool contract.

type LendingpoolReserveUsedAsCollateralDisabledIterator

type LendingpoolReserveUsedAsCollateralDisabledIterator struct {
	Event *LendingpoolReserveUsedAsCollateralDisabled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolReserveUsedAsCollateralDisabledIterator is returned from FilterReserveUsedAsCollateralDisabled and is used to iterate over the raw logs and unpacked data for ReserveUsedAsCollateralDisabled events raised by the Lendingpool contract.

func (*LendingpoolReserveUsedAsCollateralDisabledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolReserveUsedAsCollateralDisabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolReserveUsedAsCollateralDisabledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolReserveUsedAsCollateralEnabled

type LendingpoolReserveUsedAsCollateralEnabled struct {
	Reserve common.Address
	User    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

LendingpoolReserveUsedAsCollateralEnabled represents a ReserveUsedAsCollateralEnabled event raised by the Lendingpool contract.

type LendingpoolReserveUsedAsCollateralEnabledIterator

type LendingpoolReserveUsedAsCollateralEnabledIterator struct {
	Event *LendingpoolReserveUsedAsCollateralEnabled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolReserveUsedAsCollateralEnabledIterator is returned from FilterReserveUsedAsCollateralEnabled and is used to iterate over the raw logs and unpacked data for ReserveUsedAsCollateralEnabled events raised by the Lendingpool contract.

func (*LendingpoolReserveUsedAsCollateralEnabledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolReserveUsedAsCollateralEnabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolReserveUsedAsCollateralEnabledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolSession

type LendingpoolSession struct {
	Contract     *Lendingpool      // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

LendingpoolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*LendingpoolSession) AddressesProvider

func (_Lendingpool *LendingpoolSession) AddressesProvider() (common.Address, error)

AddressesProvider is a free data retrieval call binding the contract method 0xc72c4d10.

Solidity: function addressesProvider() view returns(address)

func (*LendingpoolSession) Borrow

func (_Lendingpool *LendingpoolSession) Borrow(_reserve common.Address, _amount *big.Int, _interestRateMode *big.Int, _referralCode uint16) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0xc858f5f9.

Solidity: function borrow(address _reserve, uint256 _amount, uint256 _interestRateMode, uint16 _referralCode) returns()

func (*LendingpoolSession) Core

func (_Lendingpool *LendingpoolSession) Core() (common.Address, error)

Core is a free data retrieval call binding the contract method 0xf2f4eb26.

Solidity: function core() view returns(address)

func (*LendingpoolSession) DataProvider

func (_Lendingpool *LendingpoolSession) DataProvider() (common.Address, error)

DataProvider is a free data retrieval call binding the contract method 0xb334ed86.

Solidity: function dataProvider() view returns(address)

func (*LendingpoolSession) Deposit

func (_Lendingpool *LendingpoolSession) Deposit(_reserve common.Address, _amount *big.Int, _referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd2d0e066.

Solidity: function deposit(address _reserve, uint256 _amount, uint16 _referralCode) payable returns()

func (*LendingpoolSession) FlashLoan

func (_Lendingpool *LendingpoolSession) FlashLoan(_receiver common.Address, _reserve common.Address, _amount *big.Int, _params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address _receiver, address _reserve, uint256 _amount, bytes _params) returns()

func (*LendingpoolSession) GetReserveConfigurationData

func (_Lendingpool *LendingpoolSession) GetReserveConfigurationData(_reserve common.Address) (struct {
	Ltv                         *big.Int
	LiquidationThreshold        *big.Int
	LiquidationBonus            *big.Int
	InterestRateStrategyAddress common.Address
	UsageAsCollateralEnabled    bool
	BorrowingEnabled            bool
	StableBorrowRateEnabled     bool
	IsActive                    bool
}, error)

GetReserveConfigurationData is a free data retrieval call binding the contract method 0x3e150141.

Solidity: function getReserveConfigurationData(address _reserve) view returns(uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus, address interestRateStrategyAddress, bool usageAsCollateralEnabled, bool borrowingEnabled, bool stableBorrowRateEnabled, bool isActive)

func (*LendingpoolSession) GetReserveData

func (_Lendingpool *LendingpoolSession) GetReserveData(_reserve common.Address) (struct {
	TotalLiquidity          *big.Int
	AvailableLiquidity      *big.Int
	TotalBorrowsStable      *big.Int
	TotalBorrowsVariable    *big.Int
	LiquidityRate           *big.Int
	VariableBorrowRate      *big.Int
	StableBorrowRate        *big.Int
	AverageStableBorrowRate *big.Int
	UtilizationRate         *big.Int
	LiquidityIndex          *big.Int
	VariableBorrowIndex     *big.Int
	ATokenAddress           common.Address
	LastUpdateTimestamp     *big.Int
}, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address _reserve) view returns(uint256 totalLiquidity, uint256 availableLiquidity, uint256 totalBorrowsStable, uint256 totalBorrowsVariable, uint256 liquidityRate, uint256 variableBorrowRate, uint256 stableBorrowRate, uint256 averageStableBorrowRate, uint256 utilizationRate, uint256 liquidityIndex, uint256 variableBorrowIndex, address aTokenAddress, uint40 lastUpdateTimestamp)

func (*LendingpoolSession) GetReserves

func (_Lendingpool *LendingpoolSession) GetReserves() ([]common.Address, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(address[])

func (*LendingpoolSession) GetUserAccountData

func (_Lendingpool *LendingpoolSession) GetUserAccountData(_user common.Address) (struct {
	TotalLiquidityETH           *big.Int
	TotalCollateralETH          *big.Int
	TotalBorrowsETH             *big.Int
	TotalFeesETH                *big.Int
	AvailableBorrowsETH         *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address _user) view returns(uint256 totalLiquidityETH, uint256 totalCollateralETH, uint256 totalBorrowsETH, uint256 totalFeesETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*LendingpoolSession) GetUserReserveData

func (_Lendingpool *LendingpoolSession) GetUserReserveData(_reserve common.Address, _user common.Address) (struct {
	CurrentATokenBalance     *big.Int
	CurrentBorrowBalance     *big.Int
	PrincipalBorrowBalance   *big.Int
	BorrowRateMode           *big.Int
	BorrowRate               *big.Int
	LiquidityRate            *big.Int
	OriginationFee           *big.Int
	VariableBorrowIndex      *big.Int
	LastUpdateTimestamp      *big.Int
	UsageAsCollateralEnabled bool
}, error)

GetUserReserveData is a free data retrieval call binding the contract method 0x28dd2d01.

Solidity: function getUserReserveData(address _reserve, address _user) view returns(uint256 currentATokenBalance, uint256 currentBorrowBalance, uint256 principalBorrowBalance, uint256 borrowRateMode, uint256 borrowRate, uint256 liquidityRate, uint256 originationFee, uint256 variableBorrowIndex, uint256 lastUpdateTimestamp, bool usageAsCollateralEnabled)

func (*LendingpoolSession) Initialize

func (_Lendingpool *LendingpoolSession) Initialize(_addressesProvider common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _addressesProvider) returns()

func (*LendingpoolSession) LENDINGPOOLREVISION

func (_Lendingpool *LendingpoolSession) LENDINGPOOLREVISION() (*big.Int, error)

LENDINGPOOLREVISION is a free data retrieval call binding the contract method 0x8afaff02.

Solidity: function LENDINGPOOL_REVISION() view returns(uint256)

func (*LendingpoolSession) LiquidationCall

func (_Lendingpool *LendingpoolSession) LiquidationCall(_collateral common.Address, _reserve common.Address, _user common.Address, _purchaseAmount *big.Int, _receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address _collateral, address _reserve, address _user, uint256 _purchaseAmount, bool _receiveAToken) payable returns()

func (*LendingpoolSession) ParametersProvider

func (_Lendingpool *LendingpoolSession) ParametersProvider() (common.Address, error)

ParametersProvider is a free data retrieval call binding the contract method 0x58707e06.

Solidity: function parametersProvider() view returns(address)

func (*LendingpoolSession) RebalanceStableBorrowRate

func (_Lendingpool *LendingpoolSession) RebalanceStableBorrowRate(_reserve common.Address, _user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address _reserve, address _user) returns()

func (*LendingpoolSession) RedeemUnderlying

func (_Lendingpool *LendingpoolSession) RedeemUnderlying(_reserve common.Address, _user common.Address, _amount *big.Int, _aTokenBalanceAfterRedeem *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x9895e3d8.

Solidity: function redeemUnderlying(address _reserve, address _user, uint256 _amount, uint256 _aTokenBalanceAfterRedeem) returns()

func (*LendingpoolSession) Repay

func (_Lendingpool *LendingpoolSession) Repay(_reserve common.Address, _amount *big.Int, _onBehalfOf common.Address) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x5ceae9c4.

Solidity: function repay(address _reserve, uint256 _amount, address _onBehalfOf) payable returns()

func (*LendingpoolSession) SetUserUseReserveAsCollateral

func (_Lendingpool *LendingpoolSession) SetUserUseReserveAsCollateral(_reserve common.Address, _useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address _reserve, bool _useAsCollateral) returns()

func (*LendingpoolSession) SwapBorrowRateMode

func (_Lendingpool *LendingpoolSession) SwapBorrowRateMode(_reserve common.Address) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x48ca1300.

Solidity: function swapBorrowRateMode(address _reserve) returns()

func (*LendingpoolSession) UINTMAXVALUE

func (_Lendingpool *LendingpoolSession) UINTMAXVALUE() (*big.Int, error)

UINTMAXVALUE is a free data retrieval call binding the contract method 0xd0fc81d2.

Solidity: function UINT_MAX_VALUE() view returns(uint256)

type LendingpoolSwap

type LendingpoolSwap struct {
	Reserve               common.Address
	User                  common.Address
	NewRateMode           *big.Int
	NewRate               *big.Int
	BorrowBalanceIncrease *big.Int
	Timestamp             *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

LendingpoolSwap represents a Swap event raised by the Lendingpool contract.

type LendingpoolSwapIterator

type LendingpoolSwapIterator struct {
	Event *LendingpoolSwap // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LendingpoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Lendingpool contract.

func (*LendingpoolSwapIterator) Close

func (it *LendingpoolSwapIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LendingpoolSwapIterator) Error

func (it *LendingpoolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LendingpoolSwapIterator) Next

func (it *LendingpoolSwapIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type LendingpoolTransactor

type LendingpoolTransactor struct {
	// contains filtered or unexported fields
}

LendingpoolTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewLendingpoolTransactor

func NewLendingpoolTransactor(address common.Address, transactor bind.ContractTransactor) (*LendingpoolTransactor, error)

NewLendingpoolTransactor creates a new write-only instance of Lendingpool, bound to a specific deployed contract.

func (*LendingpoolTransactor) Borrow

func (_Lendingpool *LendingpoolTransactor) Borrow(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, _interestRateMode *big.Int, _referralCode uint16) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0xc858f5f9.

Solidity: function borrow(address _reserve, uint256 _amount, uint256 _interestRateMode, uint16 _referralCode) returns()

func (*LendingpoolTransactor) Deposit

func (_Lendingpool *LendingpoolTransactor) Deposit(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, _referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd2d0e066.

Solidity: function deposit(address _reserve, uint256 _amount, uint16 _referralCode) payable returns()

func (*LendingpoolTransactor) FlashLoan

func (_Lendingpool *LendingpoolTransactor) FlashLoan(opts *bind.TransactOpts, _receiver common.Address, _reserve common.Address, _amount *big.Int, _params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address _receiver, address _reserve, uint256 _amount, bytes _params) returns()

func (*LendingpoolTransactor) Initialize

func (_Lendingpool *LendingpoolTransactor) Initialize(opts *bind.TransactOpts, _addressesProvider common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _addressesProvider) returns()

func (*LendingpoolTransactor) LiquidationCall

func (_Lendingpool *LendingpoolTransactor) LiquidationCall(opts *bind.TransactOpts, _collateral common.Address, _reserve common.Address, _user common.Address, _purchaseAmount *big.Int, _receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address _collateral, address _reserve, address _user, uint256 _purchaseAmount, bool _receiveAToken) payable returns()

func (*LendingpoolTransactor) RebalanceStableBorrowRate

func (_Lendingpool *LendingpoolTransactor) RebalanceStableBorrowRate(opts *bind.TransactOpts, _reserve common.Address, _user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address _reserve, address _user) returns()

func (*LendingpoolTransactor) RedeemUnderlying

func (_Lendingpool *LendingpoolTransactor) RedeemUnderlying(opts *bind.TransactOpts, _reserve common.Address, _user common.Address, _amount *big.Int, _aTokenBalanceAfterRedeem *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x9895e3d8.

Solidity: function redeemUnderlying(address _reserve, address _user, uint256 _amount, uint256 _aTokenBalanceAfterRedeem) returns()

func (*LendingpoolTransactor) Repay

func (_Lendingpool *LendingpoolTransactor) Repay(opts *bind.TransactOpts, _reserve common.Address, _amount *big.Int, _onBehalfOf common.Address) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x5ceae9c4.

Solidity: function repay(address _reserve, uint256 _amount, address _onBehalfOf) payable returns()

func (*LendingpoolTransactor) SetUserUseReserveAsCollateral

func (_Lendingpool *LendingpoolTransactor) SetUserUseReserveAsCollateral(opts *bind.TransactOpts, _reserve common.Address, _useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address _reserve, bool _useAsCollateral) returns()

func (*LendingpoolTransactor) SwapBorrowRateMode

func (_Lendingpool *LendingpoolTransactor) SwapBorrowRateMode(opts *bind.TransactOpts, _reserve common.Address) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x48ca1300.

Solidity: function swapBorrowRateMode(address _reserve) returns()

type LendingpoolTransactorRaw

type LendingpoolTransactorRaw struct {
	Contract *LendingpoolTransactor // Generic write-only contract binding to access the raw methods on
}

LendingpoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*LendingpoolTransactorRaw) Transact

func (_Lendingpool *LendingpoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*LendingpoolTransactorRaw) Transfer

func (_Lendingpool *LendingpoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type LendingpoolTransactorSession

type LendingpoolTransactorSession struct {
	Contract     *LendingpoolTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

LendingpoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*LendingpoolTransactorSession) Borrow

func (_Lendingpool *LendingpoolTransactorSession) Borrow(_reserve common.Address, _amount *big.Int, _interestRateMode *big.Int, _referralCode uint16) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0xc858f5f9.

Solidity: function borrow(address _reserve, uint256 _amount, uint256 _interestRateMode, uint16 _referralCode) returns()

func (*LendingpoolTransactorSession) Deposit

func (_Lendingpool *LendingpoolTransactorSession) Deposit(_reserve common.Address, _amount *big.Int, _referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd2d0e066.

Solidity: function deposit(address _reserve, uint256 _amount, uint16 _referralCode) payable returns()

func (*LendingpoolTransactorSession) FlashLoan

func (_Lendingpool *LendingpoolTransactorSession) FlashLoan(_receiver common.Address, _reserve common.Address, _amount *big.Int, _params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address _receiver, address _reserve, uint256 _amount, bytes _params) returns()

func (*LendingpoolTransactorSession) Initialize

func (_Lendingpool *LendingpoolTransactorSession) Initialize(_addressesProvider common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _addressesProvider) returns()

func (*LendingpoolTransactorSession) LiquidationCall

func (_Lendingpool *LendingpoolTransactorSession) LiquidationCall(_collateral common.Address, _reserve common.Address, _user common.Address, _purchaseAmount *big.Int, _receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address _collateral, address _reserve, address _user, uint256 _purchaseAmount, bool _receiveAToken) payable returns()

func (*LendingpoolTransactorSession) RebalanceStableBorrowRate

func (_Lendingpool *LendingpoolTransactorSession) RebalanceStableBorrowRate(_reserve common.Address, _user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address _reserve, address _user) returns()

func (*LendingpoolTransactorSession) RedeemUnderlying

func (_Lendingpool *LendingpoolTransactorSession) RedeemUnderlying(_reserve common.Address, _user common.Address, _amount *big.Int, _aTokenBalanceAfterRedeem *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x9895e3d8.

Solidity: function redeemUnderlying(address _reserve, address _user, uint256 _amount, uint256 _aTokenBalanceAfterRedeem) returns()

func (*LendingpoolTransactorSession) Repay

func (_Lendingpool *LendingpoolTransactorSession) Repay(_reserve common.Address, _amount *big.Int, _onBehalfOf common.Address) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x5ceae9c4.

Solidity: function repay(address _reserve, uint256 _amount, address _onBehalfOf) payable returns()

func (*LendingpoolTransactorSession) SetUserUseReserveAsCollateral

func (_Lendingpool *LendingpoolTransactorSession) SetUserUseReserveAsCollateral(_reserve common.Address, _useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address _reserve, bool _useAsCollateral) returns()

func (*LendingpoolTransactorSession) SwapBorrowRateMode

func (_Lendingpool *LendingpoolTransactorSession) SwapBorrowRateMode(_reserve common.Address) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x48ca1300.

Solidity: function swapBorrowRateMode(address _reserve) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL