aaveLendingPoolV2

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AaveLendingPoolV2ABI = AaveLendingPoolV2MetaData.ABI

AaveLendingPoolV2ABI is the input ABI used to generate the binding from. Deprecated: Use AaveLendingPoolV2MetaData.ABI instead.

View Source
var AaveLendingPoolV2MetaData = &bind.MetaData{
	ABI: "[{\"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\":\"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\":[{\"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\":[],\"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\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_onBehalfOf\",\"type\":\"address\"}],\"name\":\"repay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_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\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AaveLendingPoolV2MetaData contains all meta data concerning the AaveLendingPoolV2 contract.

Functions

This section is empty.

Types

type AaveLendingPoolV2

type AaveLendingPoolV2 struct {
	AaveLendingPoolV2Caller     // Read-only binding to the contract
	AaveLendingPoolV2Transactor // Write-only binding to the contract
	AaveLendingPoolV2Filterer   // Log filterer for contract events
}

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

func NewAaveLendingPoolV2

func NewAaveLendingPoolV2(address common.Address, backend bind.ContractBackend) (*AaveLendingPoolV2, error)

NewAaveLendingPoolV2 creates a new instance of AaveLendingPoolV2, bound to a specific deployed contract.

type AaveLendingPoolV2Caller

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

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

func NewAaveLendingPoolV2Caller

func NewAaveLendingPoolV2Caller(address common.Address, caller bind.ContractCaller) (*AaveLendingPoolV2Caller, error)

NewAaveLendingPoolV2Caller creates a new read-only instance of AaveLendingPoolV2, bound to a specific deployed contract.

func (*AaveLendingPoolV2Caller) GetReserveData

func (_AaveLendingPoolV2 *AaveLendingPoolV2Caller) 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 (*AaveLendingPoolV2Caller) GetReservesList

func (_AaveLendingPoolV2 *AaveLendingPoolV2Caller) 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 (*AaveLendingPoolV2Caller) GetUserAccountData

func (_AaveLendingPoolV2 *AaveLendingPoolV2Caller) 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 (*AaveLendingPoolV2Caller) GetUserConfiguration

func (_AaveLendingPoolV2 *AaveLendingPoolV2Caller) 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))

type AaveLendingPoolV2CallerRaw

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

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

func (*AaveLendingPoolV2CallerRaw) Call

func (_AaveLendingPoolV2 *AaveLendingPoolV2CallerRaw) 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 AaveLendingPoolV2CallerSession

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

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

func (*AaveLendingPoolV2CallerSession) GetReserveData

func (_AaveLendingPoolV2 *AaveLendingPoolV2CallerSession) 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 (*AaveLendingPoolV2CallerSession) GetReservesList

func (_AaveLendingPoolV2 *AaveLendingPoolV2CallerSession) GetReservesList() ([]common.Address, error)

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

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

func (*AaveLendingPoolV2CallerSession) GetUserAccountData

func (_AaveLendingPoolV2 *AaveLendingPoolV2CallerSession) 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 (*AaveLendingPoolV2CallerSession) GetUserConfiguration

func (_AaveLendingPoolV2 *AaveLendingPoolV2CallerSession) 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))

type AaveLendingPoolV2Filterer

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

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

func NewAaveLendingPoolV2Filterer

func NewAaveLendingPoolV2Filterer(address common.Address, filterer bind.ContractFilterer) (*AaveLendingPoolV2Filterer, error)

NewAaveLendingPoolV2Filterer creates a new log filterer instance of AaveLendingPoolV2, bound to a specific deployed contract.

type AaveLendingPoolV2Raw

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

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

func (*AaveLendingPoolV2Raw) Call

func (_AaveLendingPoolV2 *AaveLendingPoolV2Raw) 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 (*AaveLendingPoolV2Raw) Transact

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

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

func (*AaveLendingPoolV2Raw) Transfer

func (_AaveLendingPoolV2 *AaveLendingPoolV2Raw) 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 AaveLendingPoolV2Session

type AaveLendingPoolV2Session struct {
	Contract     *AaveLendingPoolV2 // 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
}

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

func (*AaveLendingPoolV2Session) Borrow

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) Deposit

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) FlashLoan

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) GetReserveData

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) GetReservesList

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) GetReservesList() ([]common.Address, error)

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

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

func (*AaveLendingPoolV2Session) GetUserAccountData

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) GetUserConfiguration

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) Repay

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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()

func (*AaveLendingPoolV2Session) SetUserUseReserveAsCollateral

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) SwapBorrowRateMode

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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 (*AaveLendingPoolV2Session) Withdraw

func (_AaveLendingPoolV2 *AaveLendingPoolV2Session) 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()

type AaveLendingPoolV2Transactor

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

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

func NewAaveLendingPoolV2Transactor

func NewAaveLendingPoolV2Transactor(address common.Address, transactor bind.ContractTransactor) (*AaveLendingPoolV2Transactor, error)

NewAaveLendingPoolV2Transactor creates a new write-only instance of AaveLendingPoolV2, bound to a specific deployed contract.

func (*AaveLendingPoolV2Transactor) Borrow

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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 (*AaveLendingPoolV2Transactor) Deposit

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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 (*AaveLendingPoolV2Transactor) FlashLoan

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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 (*AaveLendingPoolV2Transactor) Repay

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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()

func (*AaveLendingPoolV2Transactor) SetUserUseReserveAsCollateral

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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 (*AaveLendingPoolV2Transactor) SwapBorrowRateMode

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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 (*AaveLendingPoolV2Transactor) Withdraw

func (_AaveLendingPoolV2 *AaveLendingPoolV2Transactor) 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()

type AaveLendingPoolV2TransactorRaw

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

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

func (*AaveLendingPoolV2TransactorRaw) Transact

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

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

func (*AaveLendingPoolV2TransactorRaw) Transfer

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorRaw) 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 AaveLendingPoolV2TransactorSession

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

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

func (*AaveLendingPoolV2TransactorSession) Borrow

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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 (*AaveLendingPoolV2TransactorSession) Deposit

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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 (*AaveLendingPoolV2TransactorSession) FlashLoan

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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 (*AaveLendingPoolV2TransactorSession) Repay

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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()

func (*AaveLendingPoolV2TransactorSession) SetUserUseReserveAsCollateral

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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 (*AaveLendingPoolV2TransactorSession) SwapBorrowRateMode

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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 (*AaveLendingPoolV2TransactorSession) Withdraw

func (_AaveLendingPoolV2 *AaveLendingPoolV2TransactorSession) 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()

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