aavepool2

package
v1.4.476-rc-4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Aavepool2ABI = Aavepool2MetaData.ABI

Aavepool2ABI is the input ABI used to generate the binding from. Deprecated: Use Aavepool2MetaData.ABI instead.

View Source
var Aavepool2MetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"borrowRateMode\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"borrowRate\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referral\",\"type\":\"uint16\"}],\"name\":\"Borrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referral\",\"type\":\"uint16\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"premium\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidatedCollateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"LiquidationCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"RebalanceStableBorrowRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"repayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Repay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowIndex\",\"type\":\"uint256\"}],\"name\":\"ReserveDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rateMode\",\"type\":\"uint256\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FLASHLOAN_PREMIUM_TOTAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LENDINGPOOL_REVISION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_NUMBER_RESERVES\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_STABLE_RATE_BORROW_SIZE_PERCENT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"borrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceFromBefore\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceToBefore\",\"type\":\"uint256\"}],\"name\":\"finalizeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"modes\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAddressesProvider\",\"outputs\":[{\"internalType\":\"contractILendingPoolAddressesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ReserveConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveData\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ReserveConfigurationMap\",\"name\":\"configuration\",\"type\":\"tuple\"},{\"internalType\":\"uint128\",\"name\":\"liquidityIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"variableBorrowIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentLiquidityRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentVariableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentStableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint40\",\"name\":\"lastUpdateTimestamp\",\"type\":\"uint40\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"id\",\"type\":\"uint8\"}],\"internalType\":\"structDataTypes.ReserveData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedIncome\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedVariableDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReservesList\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserAccountData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDebtETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableBorrowsETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentLiquidationThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ltv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"healthFactor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.UserConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"}],\"name\":\"initReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractILendingPoolAddressesProvider\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"liquidationCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"rebalanceStableBorrowRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"repay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"configuration\",\"type\":\"uint256\"}],\"name\":\"setConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"val\",\"type\":\"bool\"}],\"name\":\"setPause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rateStrategyAddress\",\"type\":\"address\"}],\"name\":\"setReserveInterestRateStrategyAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useAsCollateral\",\"type\":\"bool\"}],\"name\":\"setUserUseReserveAsCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"rateMode\",\"type\":\"uint256\"}],\"name\":\"swapBorrowRateMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Aavepool2MetaData contains all meta data concerning the Aavepool2 contract.

Functions

This section is empty.

Types

type Aavepool2

type Aavepool2 struct {
	Aavepool2Caller     // Read-only binding to the contract
	Aavepool2Transactor // Write-only binding to the contract
	Aavepool2Filterer   // Log filterer for contract events
}

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

func NewAavepool2

func NewAavepool2(address common.Address, backend bind.ContractBackend) (*Aavepool2, error)

NewAavepool2 creates a new instance of Aavepool2, bound to a specific deployed contract.

type Aavepool2Borrow

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

Aavepool2Borrow represents a Borrow event raised by the Aavepool2 contract.

type Aavepool2BorrowIterator

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

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

func (*Aavepool2BorrowIterator) Close

func (it *Aavepool2BorrowIterator) Close() error

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

func (*Aavepool2BorrowIterator) Error

func (it *Aavepool2BorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2BorrowIterator) Next

func (it *Aavepool2BorrowIterator) 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 Aavepool2Caller

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

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

func NewAavepool2Caller

func NewAavepool2Caller(address common.Address, caller bind.ContractCaller) (*Aavepool2Caller, error)

NewAavepool2Caller creates a new read-only instance of Aavepool2, bound to a specific deployed contract.

func (*Aavepool2Caller) FLASHLOANPREMIUMTOTAL

func (_Aavepool2 *Aavepool2Caller) FLASHLOANPREMIUMTOTAL(opts *bind.CallOpts) (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint256)

func (*Aavepool2Caller) GetAddressesProvider

func (_Aavepool2 *Aavepool2Caller) GetAddressesProvider(opts *bind.CallOpts) (common.Address, error)

GetAddressesProvider is a free data retrieval call binding the contract method 0xfe65acfe.

Solidity: function getAddressesProvider() view returns(address)

func (*Aavepool2Caller) GetConfiguration

func (_Aavepool2 *Aavepool2Caller) GetConfiguration(opts *bind.CallOpts, asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*Aavepool2Caller) GetReserveData

func (_Aavepool2 *Aavepool2Caller) GetReserveData(opts *bind.CallOpts, asset common.Address) (DataTypesReserveData, error)

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

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,address,address,address,address,uint8))

func (*Aavepool2Caller) GetReserveNormalizedIncome

func (_Aavepool2 *Aavepool2Caller) GetReserveNormalizedIncome(opts *bind.CallOpts, asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*Aavepool2Caller) GetReserveNormalizedVariableDebt

func (_Aavepool2 *Aavepool2Caller) GetReserveNormalizedVariableDebt(opts *bind.CallOpts, asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*Aavepool2Caller) GetReservesList

func (_Aavepool2 *Aavepool2Caller) GetReservesList(opts *bind.CallOpts) ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

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

func (*Aavepool2Caller) GetUserAccountData

func (_Aavepool2 *Aavepool2Caller) GetUserAccountData(opts *bind.CallOpts, user common.Address) (struct {
	TotalCollateralETH          *big.Int
	TotalDebtETH                *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 totalCollateralETH, uint256 totalDebtETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*Aavepool2Caller) GetUserConfiguration

func (_Aavepool2 *Aavepool2Caller) GetUserConfiguration(opts *bind.CallOpts, user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*Aavepool2Caller) LENDINGPOOLREVISION

func (_Aavepool2 *Aavepool2Caller) 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 (*Aavepool2Caller) MAXNUMBERRESERVES

func (_Aavepool2 *Aavepool2Caller) MAXNUMBERRESERVES(opts *bind.CallOpts) (*big.Int, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint256)

func (*Aavepool2Caller) MAXSTABLERATEBORROWSIZEPERCENT

func (_Aavepool2 *Aavepool2Caller) MAXSTABLERATEBORROWSIZEPERCENT(opts *bind.CallOpts) (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

func (*Aavepool2Caller) Paused

func (_Aavepool2 *Aavepool2Caller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

type Aavepool2CallerRaw

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

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

func (*Aavepool2CallerRaw) Call

func (_Aavepool2 *Aavepool2CallerRaw) 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 Aavepool2CallerSession

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

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

func (*Aavepool2CallerSession) FLASHLOANPREMIUMTOTAL

func (_Aavepool2 *Aavepool2CallerSession) FLASHLOANPREMIUMTOTAL() (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint256)

func (*Aavepool2CallerSession) GetAddressesProvider

func (_Aavepool2 *Aavepool2CallerSession) GetAddressesProvider() (common.Address, error)

GetAddressesProvider is a free data retrieval call binding the contract method 0xfe65acfe.

Solidity: function getAddressesProvider() view returns(address)

func (*Aavepool2CallerSession) GetConfiguration

func (_Aavepool2 *Aavepool2CallerSession) GetConfiguration(asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*Aavepool2CallerSession) GetReserveData

func (_Aavepool2 *Aavepool2CallerSession) GetReserveData(asset common.Address) (DataTypesReserveData, error)

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

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,address,address,address,address,uint8))

func (*Aavepool2CallerSession) GetReserveNormalizedIncome

func (_Aavepool2 *Aavepool2CallerSession) GetReserveNormalizedIncome(asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*Aavepool2CallerSession) GetReserveNormalizedVariableDebt

func (_Aavepool2 *Aavepool2CallerSession) GetReserveNormalizedVariableDebt(asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*Aavepool2CallerSession) GetReservesList

func (_Aavepool2 *Aavepool2CallerSession) GetReservesList() ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

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

func (*Aavepool2CallerSession) GetUserAccountData

func (_Aavepool2 *Aavepool2CallerSession) GetUserAccountData(user common.Address) (struct {
	TotalCollateralETH          *big.Int
	TotalDebtETH                *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 totalCollateralETH, uint256 totalDebtETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*Aavepool2CallerSession) GetUserConfiguration

func (_Aavepool2 *Aavepool2CallerSession) GetUserConfiguration(user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*Aavepool2CallerSession) LENDINGPOOLREVISION

func (_Aavepool2 *Aavepool2CallerSession) LENDINGPOOLREVISION() (*big.Int, error)

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

Solidity: function LENDINGPOOL_REVISION() view returns(uint256)

func (*Aavepool2CallerSession) MAXNUMBERRESERVES

func (_Aavepool2 *Aavepool2CallerSession) MAXNUMBERRESERVES() (*big.Int, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint256)

func (*Aavepool2CallerSession) MAXSTABLERATEBORROWSIZEPERCENT

func (_Aavepool2 *Aavepool2CallerSession) MAXSTABLERATEBORROWSIZEPERCENT() (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

func (*Aavepool2CallerSession) Paused

func (_Aavepool2 *Aavepool2CallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

type Aavepool2Deposit

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

Aavepool2Deposit represents a Deposit event raised by the Aavepool2 contract.

type Aavepool2DepositIterator

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

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

func (*Aavepool2DepositIterator) Close

func (it *Aavepool2DepositIterator) Close() error

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

func (*Aavepool2DepositIterator) Error

func (it *Aavepool2DepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2DepositIterator) Next

func (it *Aavepool2DepositIterator) 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 Aavepool2Filterer

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

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

func NewAavepool2Filterer

func NewAavepool2Filterer(address common.Address, filterer bind.ContractFilterer) (*Aavepool2Filterer, error)

NewAavepool2Filterer creates a new log filterer instance of Aavepool2, bound to a specific deployed contract.

func (*Aavepool2Filterer) FilterBorrow

func (_Aavepool2 *Aavepool2Filterer) FilterBorrow(opts *bind.FilterOpts, reserve []common.Address, onBehalfOf []common.Address, referral []uint16) (*Aavepool2BorrowIterator, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint256 borrowRateMode, uint256 borrowRate, uint16 indexed referral)

func (*Aavepool2Filterer) FilterDeposit

func (_Aavepool2 *Aavepool2Filterer) FilterDeposit(opts *bind.FilterOpts, reserve []common.Address, onBehalfOf []common.Address, referral []uint16) (*Aavepool2DepositIterator, error)

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

Solidity: event Deposit(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referral)

func (*Aavepool2Filterer) FilterFlashLoan

func (_Aavepool2 *Aavepool2Filterer) FilterFlashLoan(opts *bind.FilterOpts, target []common.Address, initiator []common.Address, asset []common.Address) (*Aavepool2FlashLoanIterator, error)

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

Solidity: event FlashLoan(address indexed target, address indexed initiator, address indexed asset, uint256 amount, uint256 premium, uint16 referralCode)

func (*Aavepool2Filterer) FilterLiquidationCall

func (_Aavepool2 *Aavepool2Filterer) FilterLiquidationCall(opts *bind.FilterOpts, collateralAsset []common.Address, debtAsset []common.Address, user []common.Address) (*Aavepool2LiquidationCallIterator, error)

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

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*Aavepool2Filterer) FilterPaused

func (_Aavepool2 *Aavepool2Filterer) FilterPaused(opts *bind.FilterOpts) (*Aavepool2PausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752.

Solidity: event Paused()

func (*Aavepool2Filterer) FilterRebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2Filterer) FilterRebalanceStableBorrowRate(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*Aavepool2RebalanceStableBorrowRateIterator, error)

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

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) FilterRepay

func (_Aavepool2 *Aavepool2Filterer) FilterRepay(opts *bind.FilterOpts, reserve []common.Address, user []common.Address, repayer []common.Address) (*Aavepool2RepayIterator, error)

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

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount)

func (*Aavepool2Filterer) FilterReserveDataUpdated

func (_Aavepool2 *Aavepool2Filterer) FilterReserveDataUpdated(opts *bind.FilterOpts, reserve []common.Address) (*Aavepool2ReserveDataUpdatedIterator, error)

FilterReserveDataUpdated is a free log retrieval operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*Aavepool2Filterer) FilterReserveUsedAsCollateralDisabled

func (_Aavepool2 *Aavepool2Filterer) FilterReserveUsedAsCollateralDisabled(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*Aavepool2ReserveUsedAsCollateralDisabledIterator, error)

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

Solidity: event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) FilterReserveUsedAsCollateralEnabled

func (_Aavepool2 *Aavepool2Filterer) FilterReserveUsedAsCollateralEnabled(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*Aavepool2ReserveUsedAsCollateralEnabledIterator, error)

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

Solidity: event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) FilterSwap

func (_Aavepool2 *Aavepool2Filterer) FilterSwap(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*Aavepool2SwapIterator, error)

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

Solidity: event Swap(address indexed reserve, address indexed user, uint256 rateMode)

func (*Aavepool2Filterer) FilterUnpaused

func (_Aavepool2 *Aavepool2Filterer) FilterUnpaused(opts *bind.FilterOpts) (*Aavepool2UnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0xa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933.

Solidity: event Unpaused()

func (*Aavepool2Filterer) FilterWithdraw

func (_Aavepool2 *Aavepool2Filterer) FilterWithdraw(opts *bind.FilterOpts, reserve []common.Address, user []common.Address, to []common.Address) (*Aavepool2WithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

func (*Aavepool2Filterer) ParseBorrow

func (_Aavepool2 *Aavepool2Filterer) ParseBorrow(log types.Log) (*Aavepool2Borrow, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint256 borrowRateMode, uint256 borrowRate, uint16 indexed referral)

func (*Aavepool2Filterer) ParseDeposit

func (_Aavepool2 *Aavepool2Filterer) ParseDeposit(log types.Log) (*Aavepool2Deposit, error)

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

Solidity: event Deposit(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referral)

func (*Aavepool2Filterer) ParseFlashLoan

func (_Aavepool2 *Aavepool2Filterer) ParseFlashLoan(log types.Log) (*Aavepool2FlashLoan, error)

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

Solidity: event FlashLoan(address indexed target, address indexed initiator, address indexed asset, uint256 amount, uint256 premium, uint16 referralCode)

func (*Aavepool2Filterer) ParseLiquidationCall

func (_Aavepool2 *Aavepool2Filterer) ParseLiquidationCall(log types.Log) (*Aavepool2LiquidationCall, error)

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

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*Aavepool2Filterer) ParsePaused

func (_Aavepool2 *Aavepool2Filterer) ParsePaused(log types.Log) (*Aavepool2Paused, error)

ParsePaused is a log parse operation binding the contract event 0x9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752.

Solidity: event Paused()

func (*Aavepool2Filterer) ParseRebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2Filterer) ParseRebalanceStableBorrowRate(log types.Log) (*Aavepool2RebalanceStableBorrowRate, error)

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

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) ParseRepay

func (_Aavepool2 *Aavepool2Filterer) ParseRepay(log types.Log) (*Aavepool2Repay, error)

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

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount)

func (*Aavepool2Filterer) ParseReserveDataUpdated

func (_Aavepool2 *Aavepool2Filterer) ParseReserveDataUpdated(log types.Log) (*Aavepool2ReserveDataUpdated, error)

ParseReserveDataUpdated is a log parse operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*Aavepool2Filterer) ParseReserveUsedAsCollateralDisabled

func (_Aavepool2 *Aavepool2Filterer) ParseReserveUsedAsCollateralDisabled(log types.Log) (*Aavepool2ReserveUsedAsCollateralDisabled, error)

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

Solidity: event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) ParseReserveUsedAsCollateralEnabled

func (_Aavepool2 *Aavepool2Filterer) ParseReserveUsedAsCollateralEnabled(log types.Log) (*Aavepool2ReserveUsedAsCollateralEnabled, error)

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

Solidity: event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) ParseSwap

func (_Aavepool2 *Aavepool2Filterer) ParseSwap(log types.Log) (*Aavepool2Swap, error)

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

Solidity: event Swap(address indexed reserve, address indexed user, uint256 rateMode)

func (*Aavepool2Filterer) ParseUnpaused

func (_Aavepool2 *Aavepool2Filterer) ParseUnpaused(log types.Log) (*Aavepool2Unpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0xa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933.

Solidity: event Unpaused()

func (*Aavepool2Filterer) ParseWithdraw

func (_Aavepool2 *Aavepool2Filterer) ParseWithdraw(log types.Log) (*Aavepool2Withdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

func (*Aavepool2Filterer) WatchBorrow

func (_Aavepool2 *Aavepool2Filterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *Aavepool2Borrow, reserve []common.Address, onBehalfOf []common.Address, referral []uint16) (event.Subscription, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint256 borrowRateMode, uint256 borrowRate, uint16 indexed referral)

func (*Aavepool2Filterer) WatchDeposit

func (_Aavepool2 *Aavepool2Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *Aavepool2Deposit, reserve []common.Address, onBehalfOf []common.Address, referral []uint16) (event.Subscription, error)

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

Solidity: event Deposit(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referral)

func (*Aavepool2Filterer) WatchFlashLoan

func (_Aavepool2 *Aavepool2Filterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *Aavepool2FlashLoan, target []common.Address, initiator []common.Address, asset []common.Address) (event.Subscription, error)

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

Solidity: event FlashLoan(address indexed target, address indexed initiator, address indexed asset, uint256 amount, uint256 premium, uint16 referralCode)

func (*Aavepool2Filterer) WatchLiquidationCall

func (_Aavepool2 *Aavepool2Filterer) WatchLiquidationCall(opts *bind.WatchOpts, sink chan<- *Aavepool2LiquidationCall, collateralAsset []common.Address, debtAsset []common.Address, user []common.Address) (event.Subscription, error)

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

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*Aavepool2Filterer) WatchPaused

func (_Aavepool2 *Aavepool2Filterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *Aavepool2Paused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752.

Solidity: event Paused()

func (*Aavepool2Filterer) WatchRebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2Filterer) WatchRebalanceStableBorrowRate(opts *bind.WatchOpts, sink chan<- *Aavepool2RebalanceStableBorrowRate, reserve []common.Address, user []common.Address) (event.Subscription, error)

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

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*Aavepool2Filterer) WatchRepay

func (_Aavepool2 *Aavepool2Filterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *Aavepool2Repay, reserve []common.Address, user []common.Address, repayer []common.Address) (event.Subscription, error)

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

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount)

func (*Aavepool2Filterer) WatchReserveDataUpdated

func (_Aavepool2 *Aavepool2Filterer) WatchReserveDataUpdated(opts *bind.WatchOpts, sink chan<- *Aavepool2ReserveDataUpdated, reserve []common.Address) (event.Subscription, error)

WatchReserveDataUpdated is a free log subscription operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*Aavepool2Filterer) WatchReserveUsedAsCollateralDisabled

func (_Aavepool2 *Aavepool2Filterer) WatchReserveUsedAsCollateralDisabled(opts *bind.WatchOpts, sink chan<- *Aavepool2ReserveUsedAsCollateralDisabled, 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 (*Aavepool2Filterer) WatchReserveUsedAsCollateralEnabled

func (_Aavepool2 *Aavepool2Filterer) WatchReserveUsedAsCollateralEnabled(opts *bind.WatchOpts, sink chan<- *Aavepool2ReserveUsedAsCollateralEnabled, 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 (*Aavepool2Filterer) WatchSwap

func (_Aavepool2 *Aavepool2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Aavepool2Swap, reserve []common.Address, user []common.Address) (event.Subscription, error)

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

Solidity: event Swap(address indexed reserve, address indexed user, uint256 rateMode)

func (*Aavepool2Filterer) WatchUnpaused

func (_Aavepool2 *Aavepool2Filterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *Aavepool2Unpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0xa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933.

Solidity: event Unpaused()

func (*Aavepool2Filterer) WatchWithdraw

func (_Aavepool2 *Aavepool2Filterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *Aavepool2Withdraw, reserve []common.Address, user []common.Address, to []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

type Aavepool2FlashLoan

type Aavepool2FlashLoan struct {
	Target       common.Address
	Initiator    common.Address
	Asset        common.Address
	Amount       *big.Int
	Premium      *big.Int
	ReferralCode uint16
	Raw          types.Log // Blockchain specific contextual infos
}

Aavepool2FlashLoan represents a FlashLoan event raised by the Aavepool2 contract.

type Aavepool2FlashLoanIterator

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

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

func (*Aavepool2FlashLoanIterator) Close

func (it *Aavepool2FlashLoanIterator) Close() error

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

func (*Aavepool2FlashLoanIterator) Error

func (it *Aavepool2FlashLoanIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2FlashLoanIterator) Next

func (it *Aavepool2FlashLoanIterator) 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 Aavepool2LiquidationCall

type Aavepool2LiquidationCall struct {
	CollateralAsset            common.Address
	DebtAsset                  common.Address
	User                       common.Address
	DebtToCover                *big.Int
	LiquidatedCollateralAmount *big.Int
	Liquidator                 common.Address
	ReceiveAToken              bool
	Raw                        types.Log // Blockchain specific contextual infos
}

Aavepool2LiquidationCall represents a LiquidationCall event raised by the Aavepool2 contract.

type Aavepool2LiquidationCallIterator

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

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

func (*Aavepool2LiquidationCallIterator) Close

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

func (*Aavepool2LiquidationCallIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2LiquidationCallIterator) 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 Aavepool2Paused

type Aavepool2Paused struct {
	Raw types.Log // Blockchain specific contextual infos
}

Aavepool2Paused represents a Paused event raised by the Aavepool2 contract.

type Aavepool2PausedIterator

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

Aavepool2PausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Aavepool2 contract.

func (*Aavepool2PausedIterator) Close

func (it *Aavepool2PausedIterator) Close() error

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

func (*Aavepool2PausedIterator) Error

func (it *Aavepool2PausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2PausedIterator) Next

func (it *Aavepool2PausedIterator) 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 Aavepool2Raw

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

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

func (*Aavepool2Raw) Call

func (_Aavepool2 *Aavepool2Raw) 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 (*Aavepool2Raw) Transact

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

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

func (*Aavepool2Raw) Transfer

func (_Aavepool2 *Aavepool2Raw) 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 Aavepool2RebalanceStableBorrowRate

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

Aavepool2RebalanceStableBorrowRate represents a RebalanceStableBorrowRate event raised by the Aavepool2 contract.

type Aavepool2RebalanceStableBorrowRateIterator

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

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

func (*Aavepool2RebalanceStableBorrowRateIterator) Close

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

func (*Aavepool2RebalanceStableBorrowRateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2RebalanceStableBorrowRateIterator) 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 Aavepool2Repay

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

Aavepool2Repay represents a Repay event raised by the Aavepool2 contract.

type Aavepool2RepayIterator

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

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

func (*Aavepool2RepayIterator) Close

func (it *Aavepool2RepayIterator) Close() error

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

func (*Aavepool2RepayIterator) Error

func (it *Aavepool2RepayIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2RepayIterator) Next

func (it *Aavepool2RepayIterator) 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 Aavepool2ReserveDataUpdated

type Aavepool2ReserveDataUpdated struct {
	Reserve             common.Address
	LiquidityRate       *big.Int
	StableBorrowRate    *big.Int
	VariableBorrowRate  *big.Int
	LiquidityIndex      *big.Int
	VariableBorrowIndex *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

Aavepool2ReserveDataUpdated represents a ReserveDataUpdated event raised by the Aavepool2 contract.

type Aavepool2ReserveDataUpdatedIterator

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

Aavepool2ReserveDataUpdatedIterator is returned from FilterReserveDataUpdated and is used to iterate over the raw logs and unpacked data for ReserveDataUpdated events raised by the Aavepool2 contract.

func (*Aavepool2ReserveDataUpdatedIterator) Close

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

func (*Aavepool2ReserveDataUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2ReserveDataUpdatedIterator) 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 Aavepool2ReserveUsedAsCollateralDisabled

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

Aavepool2ReserveUsedAsCollateralDisabled represents a ReserveUsedAsCollateralDisabled event raised by the Aavepool2 contract.

type Aavepool2ReserveUsedAsCollateralDisabledIterator

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

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

func (*Aavepool2ReserveUsedAsCollateralDisabledIterator) Close

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

func (*Aavepool2ReserveUsedAsCollateralDisabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2ReserveUsedAsCollateralDisabledIterator) 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 Aavepool2ReserveUsedAsCollateralEnabled

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

Aavepool2ReserveUsedAsCollateralEnabled represents a ReserveUsedAsCollateralEnabled event raised by the Aavepool2 contract.

type Aavepool2ReserveUsedAsCollateralEnabledIterator

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

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

func (*Aavepool2ReserveUsedAsCollateralEnabledIterator) Close

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

func (*Aavepool2ReserveUsedAsCollateralEnabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2ReserveUsedAsCollateralEnabledIterator) 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 Aavepool2Session

type Aavepool2Session struct {
	Contract     *Aavepool2        // 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
}

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

func (*Aavepool2Session) Borrow

func (_Aavepool2 *Aavepool2Session) Borrow(asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*Aavepool2Session) Deposit

func (_Aavepool2 *Aavepool2Session) Deposit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

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

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*Aavepool2Session) FLASHLOANPREMIUMTOTAL

func (_Aavepool2 *Aavepool2Session) FLASHLOANPREMIUMTOTAL() (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint256)

func (*Aavepool2Session) FinalizeTransfer

func (_Aavepool2 *Aavepool2Session) FinalizeTransfer(asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*Aavepool2Session) FlashLoan

func (_Aavepool2 *Aavepool2Session) FlashLoan(receiverAddress common.Address, assets []common.Address, amounts []*big.Int, modes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

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

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] modes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*Aavepool2Session) GetAddressesProvider

func (_Aavepool2 *Aavepool2Session) GetAddressesProvider() (common.Address, error)

GetAddressesProvider is a free data retrieval call binding the contract method 0xfe65acfe.

Solidity: function getAddressesProvider() view returns(address)

func (*Aavepool2Session) GetConfiguration

func (_Aavepool2 *Aavepool2Session) GetConfiguration(asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*Aavepool2Session) GetReserveData

func (_Aavepool2 *Aavepool2Session) GetReserveData(asset common.Address) (DataTypesReserveData, error)

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

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,address,address,address,address,uint8))

func (*Aavepool2Session) GetReserveNormalizedIncome

func (_Aavepool2 *Aavepool2Session) GetReserveNormalizedIncome(asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*Aavepool2Session) GetReserveNormalizedVariableDebt

func (_Aavepool2 *Aavepool2Session) GetReserveNormalizedVariableDebt(asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*Aavepool2Session) GetReservesList

func (_Aavepool2 *Aavepool2Session) GetReservesList() ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

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

func (*Aavepool2Session) GetUserAccountData

func (_Aavepool2 *Aavepool2Session) GetUserAccountData(user common.Address) (struct {
	TotalCollateralETH          *big.Int
	TotalDebtETH                *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 totalCollateralETH, uint256 totalDebtETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*Aavepool2Session) GetUserConfiguration

func (_Aavepool2 *Aavepool2Session) GetUserConfiguration(user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*Aavepool2Session) InitReserve

func (_Aavepool2 *Aavepool2Session) InitReserve(asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*Aavepool2Session) Initialize

func (_Aavepool2 *Aavepool2Session) Initialize(provider common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address provider) returns()

func (*Aavepool2Session) LENDINGPOOLREVISION

func (_Aavepool2 *Aavepool2Session) LENDINGPOOLREVISION() (*big.Int, error)

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

Solidity: function LENDINGPOOL_REVISION() view returns(uint256)

func (*Aavepool2Session) LiquidationCall

func (_Aavepool2 *Aavepool2Session) LiquidationCall(collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

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

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*Aavepool2Session) MAXNUMBERRESERVES

func (_Aavepool2 *Aavepool2Session) MAXNUMBERRESERVES() (*big.Int, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint256)

func (*Aavepool2Session) MAXSTABLERATEBORROWSIZEPERCENT

func (_Aavepool2 *Aavepool2Session) MAXSTABLERATEBORROWSIZEPERCENT() (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

func (*Aavepool2Session) Paused

func (_Aavepool2 *Aavepool2Session) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*Aavepool2Session) RebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2Session) RebalanceStableBorrowRate(asset common.Address, user common.Address) (*types.Transaction, error)

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

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*Aavepool2Session) Repay

func (_Aavepool2 *Aavepool2Session) Repay(asset common.Address, amount *big.Int, rateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 rateMode, address onBehalfOf) returns(uint256)

func (*Aavepool2Session) SetConfiguration

func (_Aavepool2 *Aavepool2Session) SetConfiguration(asset common.Address, configuration *big.Int) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xb8d29276.

Solidity: function setConfiguration(address asset, uint256 configuration) returns()

func (*Aavepool2Session) SetPause

func (_Aavepool2 *Aavepool2Session) SetPause(val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*Aavepool2Session) SetReserveInterestRateStrategyAddress

func (_Aavepool2 *Aavepool2Session) SetReserveInterestRateStrategyAddress(asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*Aavepool2Session) SetUserUseReserveAsCollateral

func (_Aavepool2 *Aavepool2Session) SetUserUseReserveAsCollateral(asset common.Address, useAsCollateral bool) (*types.Transaction, error)

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

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*Aavepool2Session) SwapBorrowRateMode

func (_Aavepool2 *Aavepool2Session) SwapBorrowRateMode(asset common.Address, rateMode *big.Int) (*types.Transaction, error)

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

Solidity: function swapBorrowRateMode(address asset, uint256 rateMode) returns()

func (*Aavepool2Session) Withdraw

func (_Aavepool2 *Aavepool2Session) Withdraw(asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type Aavepool2Swap

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

Aavepool2Swap represents a Swap event raised by the Aavepool2 contract.

type Aavepool2SwapIterator

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

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

func (*Aavepool2SwapIterator) Close

func (it *Aavepool2SwapIterator) Close() error

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

func (*Aavepool2SwapIterator) Error

func (it *Aavepool2SwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2SwapIterator) Next

func (it *Aavepool2SwapIterator) 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 Aavepool2Transactor

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

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

func NewAavepool2Transactor

func NewAavepool2Transactor(address common.Address, transactor bind.ContractTransactor) (*Aavepool2Transactor, error)

NewAavepool2Transactor creates a new write-only instance of Aavepool2, bound to a specific deployed contract.

func (*Aavepool2Transactor) Borrow

func (_Aavepool2 *Aavepool2Transactor) Borrow(opts *bind.TransactOpts, asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*Aavepool2Transactor) Deposit

func (_Aavepool2 *Aavepool2Transactor) Deposit(opts *bind.TransactOpts, asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

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

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*Aavepool2Transactor) FinalizeTransfer

func (_Aavepool2 *Aavepool2Transactor) FinalizeTransfer(opts *bind.TransactOpts, asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*Aavepool2Transactor) FlashLoan

func (_Aavepool2 *Aavepool2Transactor) FlashLoan(opts *bind.TransactOpts, receiverAddress common.Address, assets []common.Address, amounts []*big.Int, modes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

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

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] modes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*Aavepool2Transactor) InitReserve

func (_Aavepool2 *Aavepool2Transactor) InitReserve(opts *bind.TransactOpts, asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*Aavepool2Transactor) Initialize

func (_Aavepool2 *Aavepool2Transactor) Initialize(opts *bind.TransactOpts, provider common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address provider) returns()

func (*Aavepool2Transactor) LiquidationCall

func (_Aavepool2 *Aavepool2Transactor) LiquidationCall(opts *bind.TransactOpts, collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

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

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*Aavepool2Transactor) RebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2Transactor) RebalanceStableBorrowRate(opts *bind.TransactOpts, asset common.Address, user common.Address) (*types.Transaction, error)

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

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*Aavepool2Transactor) Repay

func (_Aavepool2 *Aavepool2Transactor) Repay(opts *bind.TransactOpts, asset common.Address, amount *big.Int, rateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 rateMode, address onBehalfOf) returns(uint256)

func (*Aavepool2Transactor) SetConfiguration

func (_Aavepool2 *Aavepool2Transactor) SetConfiguration(opts *bind.TransactOpts, asset common.Address, configuration *big.Int) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xb8d29276.

Solidity: function setConfiguration(address asset, uint256 configuration) returns()

func (*Aavepool2Transactor) SetPause

func (_Aavepool2 *Aavepool2Transactor) SetPause(opts *bind.TransactOpts, val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*Aavepool2Transactor) SetReserveInterestRateStrategyAddress

func (_Aavepool2 *Aavepool2Transactor) SetReserveInterestRateStrategyAddress(opts *bind.TransactOpts, asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*Aavepool2Transactor) SetUserUseReserveAsCollateral

func (_Aavepool2 *Aavepool2Transactor) SetUserUseReserveAsCollateral(opts *bind.TransactOpts, asset common.Address, useAsCollateral bool) (*types.Transaction, error)

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

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*Aavepool2Transactor) SwapBorrowRateMode

func (_Aavepool2 *Aavepool2Transactor) SwapBorrowRateMode(opts *bind.TransactOpts, asset common.Address, rateMode *big.Int) (*types.Transaction, error)

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

Solidity: function swapBorrowRateMode(address asset, uint256 rateMode) returns()

func (*Aavepool2Transactor) Withdraw

func (_Aavepool2 *Aavepool2Transactor) Withdraw(opts *bind.TransactOpts, asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type Aavepool2TransactorRaw

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

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

func (*Aavepool2TransactorRaw) Transact

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

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

func (*Aavepool2TransactorRaw) Transfer

func (_Aavepool2 *Aavepool2TransactorRaw) 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 Aavepool2TransactorSession

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

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

func (*Aavepool2TransactorSession) Borrow

func (_Aavepool2 *Aavepool2TransactorSession) Borrow(asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*Aavepool2TransactorSession) Deposit

func (_Aavepool2 *Aavepool2TransactorSession) Deposit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

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

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*Aavepool2TransactorSession) FinalizeTransfer

func (_Aavepool2 *Aavepool2TransactorSession) FinalizeTransfer(asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*Aavepool2TransactorSession) FlashLoan

func (_Aavepool2 *Aavepool2TransactorSession) FlashLoan(receiverAddress common.Address, assets []common.Address, amounts []*big.Int, modes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

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

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] modes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*Aavepool2TransactorSession) InitReserve

func (_Aavepool2 *Aavepool2TransactorSession) InitReserve(asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*Aavepool2TransactorSession) Initialize

func (_Aavepool2 *Aavepool2TransactorSession) Initialize(provider common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address provider) returns()

func (*Aavepool2TransactorSession) LiquidationCall

func (_Aavepool2 *Aavepool2TransactorSession) LiquidationCall(collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

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

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*Aavepool2TransactorSession) RebalanceStableBorrowRate

func (_Aavepool2 *Aavepool2TransactorSession) RebalanceStableBorrowRate(asset common.Address, user common.Address) (*types.Transaction, error)

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

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*Aavepool2TransactorSession) Repay

func (_Aavepool2 *Aavepool2TransactorSession) Repay(asset common.Address, amount *big.Int, rateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 rateMode, address onBehalfOf) returns(uint256)

func (*Aavepool2TransactorSession) SetConfiguration

func (_Aavepool2 *Aavepool2TransactorSession) SetConfiguration(asset common.Address, configuration *big.Int) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xb8d29276.

Solidity: function setConfiguration(address asset, uint256 configuration) returns()

func (*Aavepool2TransactorSession) SetPause

func (_Aavepool2 *Aavepool2TransactorSession) SetPause(val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*Aavepool2TransactorSession) SetReserveInterestRateStrategyAddress

func (_Aavepool2 *Aavepool2TransactorSession) SetReserveInterestRateStrategyAddress(asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*Aavepool2TransactorSession) SetUserUseReserveAsCollateral

func (_Aavepool2 *Aavepool2TransactorSession) SetUserUseReserveAsCollateral(asset common.Address, useAsCollateral bool) (*types.Transaction, error)

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

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*Aavepool2TransactorSession) SwapBorrowRateMode

func (_Aavepool2 *Aavepool2TransactorSession) SwapBorrowRateMode(asset common.Address, rateMode *big.Int) (*types.Transaction, error)

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

Solidity: function swapBorrowRateMode(address asset, uint256 rateMode) returns()

func (*Aavepool2TransactorSession) Withdraw

func (_Aavepool2 *Aavepool2TransactorSession) Withdraw(asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type Aavepool2Unpaused

type Aavepool2Unpaused struct {
	Raw types.Log // Blockchain specific contextual infos
}

Aavepool2Unpaused represents a Unpaused event raised by the Aavepool2 contract.

type Aavepool2UnpausedIterator

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

Aavepool2UnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Aavepool2 contract.

func (*Aavepool2UnpausedIterator) Close

func (it *Aavepool2UnpausedIterator) Close() error

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

func (*Aavepool2UnpausedIterator) Error

func (it *Aavepool2UnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2UnpausedIterator) Next

func (it *Aavepool2UnpausedIterator) 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 Aavepool2Withdraw

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

Aavepool2Withdraw represents a Withdraw event raised by the Aavepool2 contract.

type Aavepool2WithdrawIterator

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

Aavepool2WithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Aavepool2 contract.

func (*Aavepool2WithdrawIterator) Close

func (it *Aavepool2WithdrawIterator) Close() error

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

func (*Aavepool2WithdrawIterator) Error

func (it *Aavepool2WithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Aavepool2WithdrawIterator) Next

func (it *Aavepool2WithdrawIterator) 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 DataTypesReserveConfigurationMap

type DataTypesReserveConfigurationMap struct {
	Data *big.Int
}

DataTypesReserveConfigurationMap is an auto generated low-level Go binding around an user-defined struct.

type DataTypesReserveData

type DataTypesReserveData struct {
	Configuration               DataTypesReserveConfigurationMap
	LiquidityIndex              *big.Int
	VariableBorrowIndex         *big.Int
	CurrentLiquidityRate        *big.Int
	CurrentVariableBorrowRate   *big.Int
	CurrentStableBorrowRate     *big.Int
	LastUpdateTimestamp         *big.Int
	ATokenAddress               common.Address
	StableDebtTokenAddress      common.Address
	VariableDebtTokenAddress    common.Address
	InterestRateStrategyAddress common.Address
	Id                          uint8
}

DataTypesReserveData is an auto generated low-level Go binding around an user-defined struct.

type DataTypesUserConfigurationMap

type DataTypesUserConfigurationMap struct {
	Data *big.Int
}

DataTypesUserConfigurationMap is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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