VaultReader

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VaultReaderABI = VaultReaderMetaData.ABI

VaultReaderABI is the input ABI used to generate the binding from. Deprecated: Use VaultReaderMetaData.ABI instead.

View Source
var VaultReaderMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"getVaultTokenInfoV3\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_positionManager\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVaultTokenInfoV4\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_positionManager\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"}]",
}

VaultReaderMetaData contains all meta data concerning the VaultReader contract.

Functions

This section is empty.

Types

type VaultReader

type VaultReader struct {
	VaultReaderCaller     // Read-only binding to the contract
	VaultReaderTransactor // Write-only binding to the contract
	VaultReaderFilterer   // Log filterer for contract events
}

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

func NewVaultReader

func NewVaultReader(address common.Address, backend bind.ContractBackend) (*VaultReader, error)

NewVaultReader creates a new instance of VaultReader, bound to a specific deployed contract.

type VaultReaderCaller

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

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

func NewVaultReaderCaller

func NewVaultReaderCaller(address common.Address, caller bind.ContractCaller) (*VaultReaderCaller, error)

NewVaultReaderCaller creates a new read-only instance of VaultReader, bound to a specific deployed contract.

func (*VaultReaderCaller) GetVaultTokenInfoV3

func (_VaultReader *VaultReaderCaller) GetVaultTokenInfoV3(opts *bind.CallOpts, _vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV3 is a free data retrieval call binding the contract method 0xf75e8101.

Solidity: function getVaultTokenInfoV3(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

func (*VaultReaderCaller) GetVaultTokenInfoV4

func (_VaultReader *VaultReaderCaller) GetVaultTokenInfoV4(opts *bind.CallOpts, _vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV4 is a free data retrieval call binding the contract method 0xd3f3265c.

Solidity: function getVaultTokenInfoV4(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

type VaultReaderCallerRaw

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

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

func (*VaultReaderCallerRaw) Call

func (_VaultReader *VaultReaderCallerRaw) 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 VaultReaderCallerSession

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

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

func (*VaultReaderCallerSession) GetVaultTokenInfoV3

func (_VaultReader *VaultReaderCallerSession) GetVaultTokenInfoV3(_vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV3 is a free data retrieval call binding the contract method 0xf75e8101.

Solidity: function getVaultTokenInfoV3(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

func (*VaultReaderCallerSession) GetVaultTokenInfoV4

func (_VaultReader *VaultReaderCallerSession) GetVaultTokenInfoV4(_vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV4 is a free data retrieval call binding the contract method 0xd3f3265c.

Solidity: function getVaultTokenInfoV4(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

type VaultReaderFilterer

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

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

func NewVaultReaderFilterer

func NewVaultReaderFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultReaderFilterer, error)

NewVaultReaderFilterer creates a new log filterer instance of VaultReader, bound to a specific deployed contract.

type VaultReaderRaw

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

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

func (*VaultReaderRaw) Call

func (_VaultReader *VaultReaderRaw) 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 (*VaultReaderRaw) Transact

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

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

func (*VaultReaderRaw) Transfer

func (_VaultReader *VaultReaderRaw) 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 VaultReaderSession

type VaultReaderSession struct {
	Contract     *VaultReader      // 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
}

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

func (*VaultReaderSession) GetVaultTokenInfoV3

func (_VaultReader *VaultReaderSession) GetVaultTokenInfoV3(_vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV3 is a free data retrieval call binding the contract method 0xf75e8101.

Solidity: function getVaultTokenInfoV3(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

func (*VaultReaderSession) GetVaultTokenInfoV4

func (_VaultReader *VaultReaderSession) GetVaultTokenInfoV4(_vault common.Address, _positionManager common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)

GetVaultTokenInfoV4 is a free data retrieval call binding the contract method 0xd3f3265c.

Solidity: function getVaultTokenInfoV4(address _vault, address _positionManager, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])

type VaultReaderTransactor

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

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

func NewVaultReaderTransactor

func NewVaultReaderTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultReaderTransactor, error)

NewVaultReaderTransactor creates a new write-only instance of VaultReader, bound to a specific deployed contract.

type VaultReaderTransactorRaw

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

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

func (*VaultReaderTransactorRaw) Transact

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

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

func (*VaultReaderTransactorRaw) Transfer

func (_VaultReader *VaultReaderTransactorRaw) 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 VaultReaderTransactorSession

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

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

Jump to

Keyboard shortcuts

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