RewardReader

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 RewardReaderABI = RewardReaderMetaData.ABI

RewardReaderABI is the input ABI used to generate the binding from. Deprecated: Use RewardReaderMetaData.ABI instead.

View Source
var RewardReaderMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"getDepositBalances\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_depositTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_rewardTrackers\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStakingInfo\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_rewardTrackers\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVestingInfoV2\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_vesters\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"}]",
}

RewardReaderMetaData contains all meta data concerning the RewardReader contract.

Functions

This section is empty.

Types

type RewardReader

type RewardReader struct {
	RewardReaderCaller     // Read-only binding to the contract
	RewardReaderTransactor // Write-only binding to the contract
	RewardReaderFilterer   // Log filterer for contract events
}

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

func NewRewardReader

func NewRewardReader(address common.Address, backend bind.ContractBackend) (*RewardReader, error)

NewRewardReader creates a new instance of RewardReader, bound to a specific deployed contract.

type RewardReaderCaller

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

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

func NewRewardReaderCaller

func NewRewardReaderCaller(address common.Address, caller bind.ContractCaller) (*RewardReaderCaller, error)

NewRewardReaderCaller creates a new read-only instance of RewardReader, bound to a specific deployed contract.

func (*RewardReaderCaller) GetDepositBalances

func (_RewardReader *RewardReaderCaller) GetDepositBalances(opts *bind.CallOpts, _account common.Address, _depositTokens []common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetDepositBalances is a free data retrieval call binding the contract method 0x575157e4.

Solidity: function getDepositBalances(address _account, address[] _depositTokens, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderCaller) GetStakingInfo

func (_RewardReader *RewardReaderCaller) GetStakingInfo(opts *bind.CallOpts, _account common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.

Solidity: function getStakingInfo(address _account, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderCaller) GetVestingInfoV2

func (_RewardReader *RewardReaderCaller) GetVestingInfoV2(opts *bind.CallOpts, _account common.Address, _vesters []common.Address) ([]*big.Int, error)

GetVestingInfoV2 is a free data retrieval call binding the contract method 0xe1fc2a38.

Solidity: function getVestingInfoV2(address _account, address[] _vesters) view returns(uint256[])

type RewardReaderCallerRaw

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

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

func (*RewardReaderCallerRaw) Call

func (_RewardReader *RewardReaderCallerRaw) 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 RewardReaderCallerSession

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

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

func (*RewardReaderCallerSession) GetDepositBalances

func (_RewardReader *RewardReaderCallerSession) GetDepositBalances(_account common.Address, _depositTokens []common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetDepositBalances is a free data retrieval call binding the contract method 0x575157e4.

Solidity: function getDepositBalances(address _account, address[] _depositTokens, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderCallerSession) GetStakingInfo

func (_RewardReader *RewardReaderCallerSession) GetStakingInfo(_account common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.

Solidity: function getStakingInfo(address _account, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderCallerSession) GetVestingInfoV2

func (_RewardReader *RewardReaderCallerSession) GetVestingInfoV2(_account common.Address, _vesters []common.Address) ([]*big.Int, error)

GetVestingInfoV2 is a free data retrieval call binding the contract method 0xe1fc2a38.

Solidity: function getVestingInfoV2(address _account, address[] _vesters) view returns(uint256[])

type RewardReaderFilterer

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

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

func NewRewardReaderFilterer

func NewRewardReaderFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardReaderFilterer, error)

NewRewardReaderFilterer creates a new log filterer instance of RewardReader, bound to a specific deployed contract.

type RewardReaderRaw

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

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

func (*RewardReaderRaw) Call

func (_RewardReader *RewardReaderRaw) 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 (*RewardReaderRaw) Transact

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

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

func (*RewardReaderRaw) Transfer

func (_RewardReader *RewardReaderRaw) 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 RewardReaderSession

type RewardReaderSession struct {
	Contract     *RewardReader     // 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
}

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

func (*RewardReaderSession) GetDepositBalances

func (_RewardReader *RewardReaderSession) GetDepositBalances(_account common.Address, _depositTokens []common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetDepositBalances is a free data retrieval call binding the contract method 0x575157e4.

Solidity: function getDepositBalances(address _account, address[] _depositTokens, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderSession) GetStakingInfo

func (_RewardReader *RewardReaderSession) GetStakingInfo(_account common.Address, _rewardTrackers []common.Address) ([]*big.Int, error)

GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.

Solidity: function getStakingInfo(address _account, address[] _rewardTrackers) view returns(uint256[])

func (*RewardReaderSession) GetVestingInfoV2

func (_RewardReader *RewardReaderSession) GetVestingInfoV2(_account common.Address, _vesters []common.Address) ([]*big.Int, error)

GetVestingInfoV2 is a free data retrieval call binding the contract method 0xe1fc2a38.

Solidity: function getVestingInfoV2(address _account, address[] _vesters) view returns(uint256[])

type RewardReaderTransactor

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

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

func NewRewardReaderTransactor

func NewRewardReaderTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardReaderTransactor, error)

NewRewardReaderTransactor creates a new write-only instance of RewardReader, bound to a specific deployed contract.

type RewardReaderTransactorRaw

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

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

func (*RewardReaderTransactorRaw) Transact

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

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

func (*RewardReaderTransactorRaw) Transfer

func (_RewardReader *RewardReaderTransactorRaw) 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 RewardReaderTransactorSession

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

RewardReaderTransactorSession 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