aaveOracleV2

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AaveOracleV2ABI = AaveOracleV2MetaData.ABI

AaveOracleV2ABI is the input ABI used to generate the binding from. Deprecated: Use AaveOracleV2MetaData.ABI instead.

View Source
var AaveOracleV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getAssetPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"name\":\"getAssetsPrices\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFallbackOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getSourceOfAsset\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"sources\",\"type\":\"address[]\"}],\"name\":\"setAssetSources\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"fallbackOracle\",\"type\":\"address\"}],\"name\":\"setFallbackOracle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AaveOracleV2MetaData contains all meta data concerning the AaveOracleV2 contract.

Functions

This section is empty.

Types

type AaveOracleV2

type AaveOracleV2 struct {
	AaveOracleV2Caller     // Read-only binding to the contract
	AaveOracleV2Transactor // Write-only binding to the contract
	AaveOracleV2Filterer   // Log filterer for contract events
}

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

func NewAaveOracleV2

func NewAaveOracleV2(address common.Address, backend bind.ContractBackend) (*AaveOracleV2, error)

NewAaveOracleV2 creates a new instance of AaveOracleV2, bound to a specific deployed contract.

type AaveOracleV2Caller

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

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

func NewAaveOracleV2Caller

func NewAaveOracleV2Caller(address common.Address, caller bind.ContractCaller) (*AaveOracleV2Caller, error)

NewAaveOracleV2Caller creates a new read-only instance of AaveOracleV2, bound to a specific deployed contract.

func (*AaveOracleV2Caller) GetAssetPrice

func (_AaveOracleV2 *AaveOracleV2Caller) GetAssetPrice(opts *bind.CallOpts, asset common.Address) (*big.Int, error)

GetAssetPrice is a free data retrieval call binding the contract method 0xb3596f07.

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

func (*AaveOracleV2Caller) GetAssetsPrices

func (_AaveOracleV2 *AaveOracleV2Caller) GetAssetsPrices(opts *bind.CallOpts, assets []common.Address) ([]*big.Int, error)

GetAssetsPrices is a free data retrieval call binding the contract method 0x9d23d9f2.

Solidity: function getAssetsPrices(address[] assets) view returns(uint256[])

func (*AaveOracleV2Caller) GetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2Caller) GetFallbackOracle(opts *bind.CallOpts) (common.Address, error)

GetFallbackOracle is a free data retrieval call binding the contract method 0x6210308c.

Solidity: function getFallbackOracle() view returns(address)

func (*AaveOracleV2Caller) GetSourceOfAsset

func (_AaveOracleV2 *AaveOracleV2Caller) GetSourceOfAsset(opts *bind.CallOpts, asset common.Address) (common.Address, error)

GetSourceOfAsset is a free data retrieval call binding the contract method 0x92bf2be0.

Solidity: function getSourceOfAsset(address asset) view returns(address)

func (*AaveOracleV2Caller) Owner

func (_AaveOracleV2 *AaveOracleV2Caller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AaveOracleV2Caller) WETH

func (_AaveOracleV2 *AaveOracleV2Caller) WETH(opts *bind.CallOpts) (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() view returns(address)

type AaveOracleV2CallerRaw

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

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

func (*AaveOracleV2CallerRaw) Call

func (_AaveOracleV2 *AaveOracleV2CallerRaw) 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 AaveOracleV2CallerSession

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

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

func (*AaveOracleV2CallerSession) GetAssetPrice

func (_AaveOracleV2 *AaveOracleV2CallerSession) GetAssetPrice(asset common.Address) (*big.Int, error)

GetAssetPrice is a free data retrieval call binding the contract method 0xb3596f07.

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

func (*AaveOracleV2CallerSession) GetAssetsPrices

func (_AaveOracleV2 *AaveOracleV2CallerSession) GetAssetsPrices(assets []common.Address) ([]*big.Int, error)

GetAssetsPrices is a free data retrieval call binding the contract method 0x9d23d9f2.

Solidity: function getAssetsPrices(address[] assets) view returns(uint256[])

func (*AaveOracleV2CallerSession) GetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2CallerSession) GetFallbackOracle() (common.Address, error)

GetFallbackOracle is a free data retrieval call binding the contract method 0x6210308c.

Solidity: function getFallbackOracle() view returns(address)

func (*AaveOracleV2CallerSession) GetSourceOfAsset

func (_AaveOracleV2 *AaveOracleV2CallerSession) GetSourceOfAsset(asset common.Address) (common.Address, error)

GetSourceOfAsset is a free data retrieval call binding the contract method 0x92bf2be0.

Solidity: function getSourceOfAsset(address asset) view returns(address)

func (*AaveOracleV2CallerSession) Owner

func (_AaveOracleV2 *AaveOracleV2CallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AaveOracleV2CallerSession) WETH

func (_AaveOracleV2 *AaveOracleV2CallerSession) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() view returns(address)

type AaveOracleV2Filterer

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

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

func NewAaveOracleV2Filterer

func NewAaveOracleV2Filterer(address common.Address, filterer bind.ContractFilterer) (*AaveOracleV2Filterer, error)

NewAaveOracleV2Filterer creates a new log filterer instance of AaveOracleV2, bound to a specific deployed contract.

type AaveOracleV2Raw

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

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

func (*AaveOracleV2Raw) Call

func (_AaveOracleV2 *AaveOracleV2Raw) 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 (*AaveOracleV2Raw) Transact

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

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

func (*AaveOracleV2Raw) Transfer

func (_AaveOracleV2 *AaveOracleV2Raw) 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 AaveOracleV2Session

type AaveOracleV2Session struct {
	Contract     *AaveOracleV2     // 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
}

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

func (*AaveOracleV2Session) GetAssetPrice

func (_AaveOracleV2 *AaveOracleV2Session) GetAssetPrice(asset common.Address) (*big.Int, error)

GetAssetPrice is a free data retrieval call binding the contract method 0xb3596f07.

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

func (*AaveOracleV2Session) GetAssetsPrices

func (_AaveOracleV2 *AaveOracleV2Session) GetAssetsPrices(assets []common.Address) ([]*big.Int, error)

GetAssetsPrices is a free data retrieval call binding the contract method 0x9d23d9f2.

Solidity: function getAssetsPrices(address[] assets) view returns(uint256[])

func (*AaveOracleV2Session) GetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2Session) GetFallbackOracle() (common.Address, error)

GetFallbackOracle is a free data retrieval call binding the contract method 0x6210308c.

Solidity: function getFallbackOracle() view returns(address)

func (*AaveOracleV2Session) GetSourceOfAsset

func (_AaveOracleV2 *AaveOracleV2Session) GetSourceOfAsset(asset common.Address) (common.Address, error)

GetSourceOfAsset is a free data retrieval call binding the contract method 0x92bf2be0.

Solidity: function getSourceOfAsset(address asset) view returns(address)

func (*AaveOracleV2Session) Owner

func (_AaveOracleV2 *AaveOracleV2Session) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AaveOracleV2Session) RenounceOwnership

func (_AaveOracleV2 *AaveOracleV2Session) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AaveOracleV2Session) SetAssetSources

func (_AaveOracleV2 *AaveOracleV2Session) SetAssetSources(assets []common.Address, sources []common.Address) (*types.Transaction, error)

SetAssetSources is a paid mutator transaction binding the contract method 0xabfd5310.

Solidity: function setAssetSources(address[] assets, address[] sources) returns()

func (*AaveOracleV2Session) SetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2Session) SetFallbackOracle(fallbackOracle common.Address) (*types.Transaction, error)

SetFallbackOracle is a paid mutator transaction binding the contract method 0x170aee73.

Solidity: function setFallbackOracle(address fallbackOracle) returns()

func (*AaveOracleV2Session) TransferOwnership

func (_AaveOracleV2 *AaveOracleV2Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*AaveOracleV2Session) WETH

func (_AaveOracleV2 *AaveOracleV2Session) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() view returns(address)

type AaveOracleV2Transactor

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

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

func NewAaveOracleV2Transactor

func NewAaveOracleV2Transactor(address common.Address, transactor bind.ContractTransactor) (*AaveOracleV2Transactor, error)

NewAaveOracleV2Transactor creates a new write-only instance of AaveOracleV2, bound to a specific deployed contract.

func (*AaveOracleV2Transactor) RenounceOwnership

func (_AaveOracleV2 *AaveOracleV2Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AaveOracleV2Transactor) SetAssetSources

func (_AaveOracleV2 *AaveOracleV2Transactor) SetAssetSources(opts *bind.TransactOpts, assets []common.Address, sources []common.Address) (*types.Transaction, error)

SetAssetSources is a paid mutator transaction binding the contract method 0xabfd5310.

Solidity: function setAssetSources(address[] assets, address[] sources) returns()

func (*AaveOracleV2Transactor) SetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2Transactor) SetFallbackOracle(opts *bind.TransactOpts, fallbackOracle common.Address) (*types.Transaction, error)

SetFallbackOracle is a paid mutator transaction binding the contract method 0x170aee73.

Solidity: function setFallbackOracle(address fallbackOracle) returns()

func (*AaveOracleV2Transactor) TransferOwnership

func (_AaveOracleV2 *AaveOracleV2Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type AaveOracleV2TransactorRaw

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

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

func (*AaveOracleV2TransactorRaw) Transact

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

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

func (*AaveOracleV2TransactorRaw) Transfer

func (_AaveOracleV2 *AaveOracleV2TransactorRaw) 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 AaveOracleV2TransactorSession

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

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

func (*AaveOracleV2TransactorSession) RenounceOwnership

func (_AaveOracleV2 *AaveOracleV2TransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AaveOracleV2TransactorSession) SetAssetSources

func (_AaveOracleV2 *AaveOracleV2TransactorSession) SetAssetSources(assets []common.Address, sources []common.Address) (*types.Transaction, error)

SetAssetSources is a paid mutator transaction binding the contract method 0xabfd5310.

Solidity: function setAssetSources(address[] assets, address[] sources) returns()

func (*AaveOracleV2TransactorSession) SetFallbackOracle

func (_AaveOracleV2 *AaveOracleV2TransactorSession) SetFallbackOracle(fallbackOracle common.Address) (*types.Transaction, error)

SetFallbackOracle is a paid mutator transaction binding the contract method 0x170aee73.

Solidity: function setFallbackOracle(address fallbackOracle) returns()

func (*AaveOracleV2TransactorSession) TransferOwnership

func (_AaveOracleV2 *AaveOracleV2TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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