Documentation ¶
Index ¶
- Variables
- type IncentivesDataTypesDistribution
- type IncentivesDataTypesGlobal
- type IncentivesDataTypesUser
- type StapleIncentives
- type StapleIncentivesCaller
- func (_StapleIncentives *StapleIncentivesCaller) EstimateIncentivesForUser(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) (struct{ ... }, error)
- func (_StapleIncentives *StapleIncentivesCaller) GetDistributionInfo(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int, ...) (IncentivesDataTypesDistribution, error)
- func (_StapleIncentives *StapleIncentivesCaller) GetGlobalIncentivesInfo(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int, ...) (IncentivesDataTypesGlobal, error)
- func (_StapleIncentives *StapleIncentivesCaller) GetTokenActiveIncentivesIDs(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesCaller) GetTokenIncentivesIDs(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesCaller) GetUserIncentivesInfo(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) (IncentivesDataTypesUser, error)
- type StapleIncentivesCallerRaw
- type StapleIncentivesCallerSession
- func (_StapleIncentives *StapleIncentivesCallerSession) EstimateIncentivesForUser(user common.Address, underlying common.Address, vtpID *big.Int) (struct{ ... }, error)
- func (_StapleIncentives *StapleIncentivesCallerSession) GetDistributionInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesDistribution, error)
- func (_StapleIncentives *StapleIncentivesCallerSession) GetGlobalIncentivesInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesGlobal, error)
- func (_StapleIncentives *StapleIncentivesCallerSession) GetTokenActiveIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesCallerSession) GetTokenIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesCallerSession) GetUserIncentivesInfo(user common.Address, underlying common.Address, vtpID *big.Int, ...) (IncentivesDataTypesUser, error)
- type StapleIncentivesClaimIncentives
- type StapleIncentivesClaimIncentivesIterator
- type StapleIncentivesFilterer
- func (_StapleIncentives *StapleIncentivesFilterer) FilterClaimIncentives(opts *bind.FilterOpts, owner []common.Address, receiver []common.Address) (*StapleIncentivesClaimIncentivesIterator, error)
- func (_StapleIncentives *StapleIncentivesFilterer) FilterUpdateController(opts *bind.FilterOpts) (*StapleIncentivesUpdateControllerIterator, error)
- func (_StapleIncentives *StapleIncentivesFilterer) FilterUpdateIncentives(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int, ...) (*StapleIncentivesUpdateIncentivesIterator, error)
- func (_StapleIncentives *StapleIncentivesFilterer) ParseClaimIncentives(log types.Log) (*StapleIncentivesClaimIncentives, error)
- func (_StapleIncentives *StapleIncentivesFilterer) ParseUpdateController(log types.Log) (*StapleIncentivesUpdateController, error)
- func (_StapleIncentives *StapleIncentivesFilterer) ParseUpdateIncentives(log types.Log) (*StapleIncentivesUpdateIncentives, error)
- func (_StapleIncentives *StapleIncentivesFilterer) WatchClaimIncentives(opts *bind.WatchOpts, sink chan<- *StapleIncentivesClaimIncentives, ...) (event.Subscription, error)
- func (_StapleIncentives *StapleIncentivesFilterer) WatchUpdateController(opts *bind.WatchOpts, sink chan<- *StapleIncentivesUpdateController) (event.Subscription, error)
- func (_StapleIncentives *StapleIncentivesFilterer) WatchUpdateIncentives(opts *bind.WatchOpts, sink chan<- *StapleIncentivesUpdateIncentives, ...) (event.Subscription, error)
- type StapleIncentivesRaw
- func (_StapleIncentives *StapleIncentivesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StapleIncentives *StapleIncentivesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StapleIncentives *StapleIncentivesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StapleIncentivesSession
- func (_StapleIncentives *StapleIncentivesSession) ClaimFor(_for common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
- func (_StapleIncentives *StapleIncentivesSession) EstimateIncentivesForUser(user common.Address, underlying common.Address, vtpID *big.Int) (struct{ ... }, error)
- func (_StapleIncentives *StapleIncentivesSession) GetDistributionInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesDistribution, error)
- func (_StapleIncentives *StapleIncentivesSession) GetGlobalIncentivesInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesGlobal, error)
- func (_StapleIncentives *StapleIncentivesSession) GetTokenActiveIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesSession) GetTokenIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
- func (_StapleIncentives *StapleIncentivesSession) GetUserIncentivesInfo(user common.Address, underlying common.Address, vtpID *big.Int, ...) (IncentivesDataTypesUser, error)
- func (_StapleIncentives *StapleIncentivesSession) Refresh(user common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
- type StapleIncentivesTransactor
- func (_StapleIncentives *StapleIncentivesTransactor) ClaimFor(opts *bind.TransactOpts, _for common.Address, underlying common.Address, ...) (*types.Transaction, error)
- func (_StapleIncentives *StapleIncentivesTransactor) Refresh(opts *bind.TransactOpts, user common.Address, underlying common.Address, ...) (*types.Transaction, error)
- type StapleIncentivesTransactorRaw
- type StapleIncentivesTransactorSession
- func (_StapleIncentives *StapleIncentivesTransactorSession) ClaimFor(_for common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
- func (_StapleIncentives *StapleIncentivesTransactorSession) Refresh(user common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
- type StapleIncentivesUpdateController
- type StapleIncentivesUpdateControllerIterator
- type StapleIncentivesUpdateIncentives
- type StapleIncentivesUpdateIncentivesIterator
Constants ¶
This section is empty.
Variables ¶
var StapleIncentivesABI = StapleIncentivesMetaData.ABI
StapleIncentivesABI is the input ABI used to generate the binding from. Deprecated: Use StapleIncentivesMetaData.ABI instead.
var StapleIncentivesMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"incentivesID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimIncentives\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"UpdateController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"incentivesID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"incentivesToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"emissionPerTick\",\"type\":\"uint256\"}],\"name\":\"UpdateIncentives\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_for\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"claimFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"estimateIncentivesForUser\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"incentivesIDs_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"incentivesID\",\"type\":\"uint256\"}],\"name\":\"getDistributionInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"emissionPerTick\",\"type\":\"uint256\"}],\"internalType\":\"structIncentivesDataTypes.Distribution\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"incentivesID\",\"type\":\"uint256\"}],\"name\":\"getGlobalIncentivesInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"lastUpdateTick\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastClaimEmission\",\"type\":\"uint256\"}],\"internalType\":\"structIncentivesDataTypes.Global\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getTokenActiveIncentivesIDs\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getTokenIncentivesIDs\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"incentivesID\",\"type\":\"uint256\"}],\"name\":\"getUserIncentivesInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"lastClaimTick\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastClaimEmission\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unclaimed\",\"type\":\"uint256\"}],\"internalType\":\"structIncentivesDataTypes.User\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"refresh\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
StapleIncentivesMetaData contains all meta data concerning the StapleIncentives contract.
Functions ¶
This section is empty.
Types ¶
type IncentivesDataTypesDistribution ¶
type IncentivesDataTypesDistribution struct { Addr common.Address StartTime *big.Int EndTime *big.Int EmissionPerTick *big.Int }
IncentivesDataTypesDistribution is an auto generated low-level Go binding around an user-defined struct.
type IncentivesDataTypesGlobal ¶
IncentivesDataTypesGlobal is an auto generated low-level Go binding around an user-defined struct.
type IncentivesDataTypesUser ¶
type IncentivesDataTypesUser struct { LastClaimTick *big.Int LastClaimEmission *big.Int Unclaimed *big.Int }
IncentivesDataTypesUser is an auto generated low-level Go binding around an user-defined struct.
type StapleIncentives ¶
type StapleIncentives struct { StapleIncentivesCaller // Read-only binding to the contract StapleIncentivesTransactor // Write-only binding to the contract StapleIncentivesFilterer // Log filterer for contract events }
StapleIncentives is an auto generated Go binding around an Ethereum contract.
func NewStapleIncentives ¶
func NewStapleIncentives(address common.Address, backend bind.ContractBackend) (*StapleIncentives, error)
NewStapleIncentives creates a new instance of StapleIncentives, bound to a specific deployed contract.
type StapleIncentivesCaller ¶
type StapleIncentivesCaller struct {
// contains filtered or unexported fields
}
StapleIncentivesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStapleIncentivesCaller ¶
func NewStapleIncentivesCaller(address common.Address, caller bind.ContractCaller) (*StapleIncentivesCaller, error)
NewStapleIncentivesCaller creates a new read-only instance of StapleIncentives, bound to a specific deployed contract.
func (*StapleIncentivesCaller) EstimateIncentivesForUser ¶
func (_StapleIncentives *StapleIncentivesCaller) EstimateIncentivesForUser(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int) (struct { IncentivesIDs []*big.Int Amounts []*big.Int }, error)
EstimateIncentivesForUser is a free data retrieval call binding the contract method 0xb803c28c.
Solidity: function estimateIncentivesForUser(address user, address underlying, uint256 vtpID) view returns(uint256[] incentivesIDs_, uint256[] amounts_)
func (*StapleIncentivesCaller) GetDistributionInfo ¶
func (_StapleIncentives *StapleIncentivesCaller) GetDistributionInfo(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesDistribution, error)
GetDistributionInfo is a free data retrieval call binding the contract method 0xd6ec965d.
Solidity: function getDistributionInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((address,uint256,uint256,uint256))
func (*StapleIncentivesCaller) GetGlobalIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesCaller) GetGlobalIncentivesInfo(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesGlobal, error)
GetGlobalIncentivesInfo is a free data retrieval call binding the contract method 0x4c97aba0.
Solidity: function getGlobalIncentivesInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256))
func (*StapleIncentivesCaller) GetTokenActiveIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesCaller) GetTokenActiveIncentivesIDs(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenActiveIncentivesIDs is a free data retrieval call binding the contract method 0xf7d5be56.
Solidity: function getTokenActiveIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesCaller) GetTokenIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesCaller) GetTokenIncentivesIDs(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenIncentivesIDs is a free data retrieval call binding the contract method 0x8b06665b.
Solidity: function getTokenIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesCaller) GetUserIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesCaller) GetUserIncentivesInfo(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesUser, error)
GetUserIncentivesInfo is a free data retrieval call binding the contract method 0x6683ea12.
Solidity: function getUserIncentivesInfo(address user, address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256,uint256))
type StapleIncentivesCallerRaw ¶
type StapleIncentivesCallerRaw struct {
Contract *StapleIncentivesCaller // Generic read-only contract binding to access the raw methods on
}
StapleIncentivesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StapleIncentivesCallerRaw) Call ¶
func (_StapleIncentives *StapleIncentivesCallerRaw) 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 StapleIncentivesCallerSession ¶
type StapleIncentivesCallerSession struct { Contract *StapleIncentivesCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StapleIncentivesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StapleIncentivesCallerSession) EstimateIncentivesForUser ¶
func (_StapleIncentives *StapleIncentivesCallerSession) EstimateIncentivesForUser(user common.Address, underlying common.Address, vtpID *big.Int) (struct { IncentivesIDs []*big.Int Amounts []*big.Int }, error)
EstimateIncentivesForUser is a free data retrieval call binding the contract method 0xb803c28c.
Solidity: function estimateIncentivesForUser(address user, address underlying, uint256 vtpID) view returns(uint256[] incentivesIDs_, uint256[] amounts_)
func (*StapleIncentivesCallerSession) GetDistributionInfo ¶
func (_StapleIncentives *StapleIncentivesCallerSession) GetDistributionInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesDistribution, error)
GetDistributionInfo is a free data retrieval call binding the contract method 0xd6ec965d.
Solidity: function getDistributionInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((address,uint256,uint256,uint256))
func (*StapleIncentivesCallerSession) GetGlobalIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesCallerSession) GetGlobalIncentivesInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesGlobal, error)
GetGlobalIncentivesInfo is a free data retrieval call binding the contract method 0x4c97aba0.
Solidity: function getGlobalIncentivesInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256))
func (*StapleIncentivesCallerSession) GetTokenActiveIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesCallerSession) GetTokenActiveIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenActiveIncentivesIDs is a free data retrieval call binding the contract method 0xf7d5be56.
Solidity: function getTokenActiveIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesCallerSession) GetTokenIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesCallerSession) GetTokenIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenIncentivesIDs is a free data retrieval call binding the contract method 0x8b06665b.
Solidity: function getTokenIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesCallerSession) GetUserIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesCallerSession) GetUserIncentivesInfo(user common.Address, underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesUser, error)
GetUserIncentivesInfo is a free data retrieval call binding the contract method 0x6683ea12.
Solidity: function getUserIncentivesInfo(address user, address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256,uint256))
type StapleIncentivesClaimIncentives ¶
type StapleIncentivesClaimIncentives struct { Owner common.Address Receiver common.Address Underlying common.Address VtpID *big.Int IncentivesID *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleIncentivesClaimIncentives represents a ClaimIncentives event raised by the StapleIncentives contract.
type StapleIncentivesClaimIncentivesIterator ¶
type StapleIncentivesClaimIncentivesIterator struct { Event *StapleIncentivesClaimIncentives // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleIncentivesClaimIncentivesIterator is returned from FilterClaimIncentives and is used to iterate over the raw logs and unpacked data for ClaimIncentives events raised by the StapleIncentives contract.
func (*StapleIncentivesClaimIncentivesIterator) Close ¶
func (it *StapleIncentivesClaimIncentivesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleIncentivesClaimIncentivesIterator) Error ¶
func (it *StapleIncentivesClaimIncentivesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleIncentivesClaimIncentivesIterator) Next ¶
func (it *StapleIncentivesClaimIncentivesIterator) 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 StapleIncentivesFilterer ¶
type StapleIncentivesFilterer struct {
// contains filtered or unexported fields
}
StapleIncentivesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStapleIncentivesFilterer ¶
func NewStapleIncentivesFilterer(address common.Address, filterer bind.ContractFilterer) (*StapleIncentivesFilterer, error)
NewStapleIncentivesFilterer creates a new log filterer instance of StapleIncentives, bound to a specific deployed contract.
func (*StapleIncentivesFilterer) FilterClaimIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) FilterClaimIncentives(opts *bind.FilterOpts, owner []common.Address, receiver []common.Address) (*StapleIncentivesClaimIncentivesIterator, error)
FilterClaimIncentives is a free log retrieval operation binding the contract event 0x7b2cdf9bab072af59077ca3041e3e90dac022f02c42fc1b9573273f757402fb3.
Solidity: event ClaimIncentives(address indexed owner, address indexed receiver, address underlying, uint256 vtpID, uint256 incentivesID, uint256 amount)
func (*StapleIncentivesFilterer) FilterUpdateController ¶
func (_StapleIncentives *StapleIncentivesFilterer) FilterUpdateController(opts *bind.FilterOpts) (*StapleIncentivesUpdateControllerIterator, error)
FilterUpdateController is a free log retrieval operation binding the contract event 0xfce593255b7647c9b730cf207aed89b0761a9c7ff374009a869068dffa08fb2a.
Solidity: event UpdateController(address newAddress)
func (*StapleIncentivesFilterer) FilterUpdateIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) FilterUpdateIncentives(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int, incentivesID []*big.Int) (*StapleIncentivesUpdateIncentivesIterator, error)
FilterUpdateIncentives is a free log retrieval operation binding the contract event 0xda743ac955b3eb50ca52b072cc175d8975250179f5e498f5876f665af710c1d0.
Solidity: event UpdateIncentives(address indexed underlying, uint256 indexed vtpID, uint256 indexed incentivesID, address incentivesToken, uint256 startTime, uint256 endTime, uint256 emissionPerTick)
func (*StapleIncentivesFilterer) ParseClaimIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) ParseClaimIncentives(log types.Log) (*StapleIncentivesClaimIncentives, error)
ParseClaimIncentives is a log parse operation binding the contract event 0x7b2cdf9bab072af59077ca3041e3e90dac022f02c42fc1b9573273f757402fb3.
Solidity: event ClaimIncentives(address indexed owner, address indexed receiver, address underlying, uint256 vtpID, uint256 incentivesID, uint256 amount)
func (*StapleIncentivesFilterer) ParseUpdateController ¶
func (_StapleIncentives *StapleIncentivesFilterer) ParseUpdateController(log types.Log) (*StapleIncentivesUpdateController, error)
ParseUpdateController is a log parse operation binding the contract event 0xfce593255b7647c9b730cf207aed89b0761a9c7ff374009a869068dffa08fb2a.
Solidity: event UpdateController(address newAddress)
func (*StapleIncentivesFilterer) ParseUpdateIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) ParseUpdateIncentives(log types.Log) (*StapleIncentivesUpdateIncentives, error)
ParseUpdateIncentives is a log parse operation binding the contract event 0xda743ac955b3eb50ca52b072cc175d8975250179f5e498f5876f665af710c1d0.
Solidity: event UpdateIncentives(address indexed underlying, uint256 indexed vtpID, uint256 indexed incentivesID, address incentivesToken, uint256 startTime, uint256 endTime, uint256 emissionPerTick)
func (*StapleIncentivesFilterer) WatchClaimIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) WatchClaimIncentives(opts *bind.WatchOpts, sink chan<- *StapleIncentivesClaimIncentives, owner []common.Address, receiver []common.Address) (event.Subscription, error)
WatchClaimIncentives is a free log subscription operation binding the contract event 0x7b2cdf9bab072af59077ca3041e3e90dac022f02c42fc1b9573273f757402fb3.
Solidity: event ClaimIncentives(address indexed owner, address indexed receiver, address underlying, uint256 vtpID, uint256 incentivesID, uint256 amount)
func (*StapleIncentivesFilterer) WatchUpdateController ¶
func (_StapleIncentives *StapleIncentivesFilterer) WatchUpdateController(opts *bind.WatchOpts, sink chan<- *StapleIncentivesUpdateController) (event.Subscription, error)
WatchUpdateController is a free log subscription operation binding the contract event 0xfce593255b7647c9b730cf207aed89b0761a9c7ff374009a869068dffa08fb2a.
Solidity: event UpdateController(address newAddress)
func (*StapleIncentivesFilterer) WatchUpdateIncentives ¶
func (_StapleIncentives *StapleIncentivesFilterer) WatchUpdateIncentives(opts *bind.WatchOpts, sink chan<- *StapleIncentivesUpdateIncentives, underlying []common.Address, vtpID []*big.Int, incentivesID []*big.Int) (event.Subscription, error)
WatchUpdateIncentives is a free log subscription operation binding the contract event 0xda743ac955b3eb50ca52b072cc175d8975250179f5e498f5876f665af710c1d0.
Solidity: event UpdateIncentives(address indexed underlying, uint256 indexed vtpID, uint256 indexed incentivesID, address incentivesToken, uint256 startTime, uint256 endTime, uint256 emissionPerTick)
type StapleIncentivesRaw ¶
type StapleIncentivesRaw struct {
Contract *StapleIncentives // Generic contract binding to access the raw methods on
}
StapleIncentivesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StapleIncentivesRaw) Call ¶
func (_StapleIncentives *StapleIncentivesRaw) 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 (*StapleIncentivesRaw) Transact ¶
func (_StapleIncentives *StapleIncentivesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleIncentivesRaw) Transfer ¶
func (_StapleIncentives *StapleIncentivesRaw) 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 StapleIncentivesSession ¶
type StapleIncentivesSession struct { Contract *StapleIncentives // 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 }
StapleIncentivesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StapleIncentivesSession) ClaimFor ¶
func (_StapleIncentives *StapleIncentivesSession) ClaimFor(_for common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
ClaimFor is a paid mutator transaction binding the contract method 0x44dae040.
Solidity: function claimFor(address _for, address underlying, uint256 vtpID) returns()
func (*StapleIncentivesSession) EstimateIncentivesForUser ¶
func (_StapleIncentives *StapleIncentivesSession) EstimateIncentivesForUser(user common.Address, underlying common.Address, vtpID *big.Int) (struct { IncentivesIDs []*big.Int Amounts []*big.Int }, error)
EstimateIncentivesForUser is a free data retrieval call binding the contract method 0xb803c28c.
Solidity: function estimateIncentivesForUser(address user, address underlying, uint256 vtpID) view returns(uint256[] incentivesIDs_, uint256[] amounts_)
func (*StapleIncentivesSession) GetDistributionInfo ¶
func (_StapleIncentives *StapleIncentivesSession) GetDistributionInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesDistribution, error)
GetDistributionInfo is a free data retrieval call binding the contract method 0xd6ec965d.
Solidity: function getDistributionInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((address,uint256,uint256,uint256))
func (*StapleIncentivesSession) GetGlobalIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesSession) GetGlobalIncentivesInfo(underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesGlobal, error)
GetGlobalIncentivesInfo is a free data retrieval call binding the contract method 0x4c97aba0.
Solidity: function getGlobalIncentivesInfo(address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256))
func (*StapleIncentivesSession) GetTokenActiveIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesSession) GetTokenActiveIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenActiveIncentivesIDs is a free data retrieval call binding the contract method 0xf7d5be56.
Solidity: function getTokenActiveIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesSession) GetTokenIncentivesIDs ¶
func (_StapleIncentives *StapleIncentivesSession) GetTokenIncentivesIDs(underlying common.Address, vtpID *big.Int) ([]*big.Int, error)
GetTokenIncentivesIDs is a free data retrieval call binding the contract method 0x8b06665b.
Solidity: function getTokenIncentivesIDs(address underlying, uint256 vtpID) view returns(uint256[])
func (*StapleIncentivesSession) GetUserIncentivesInfo ¶
func (_StapleIncentives *StapleIncentivesSession) GetUserIncentivesInfo(user common.Address, underlying common.Address, vtpID *big.Int, incentivesID *big.Int) (IncentivesDataTypesUser, error)
GetUserIncentivesInfo is a free data retrieval call binding the contract method 0x6683ea12.
Solidity: function getUserIncentivesInfo(address user, address underlying, uint256 vtpID, uint256 incentivesID) view returns((uint256,uint256,uint256))
func (*StapleIncentivesSession) Refresh ¶
func (_StapleIncentives *StapleIncentivesSession) Refresh(user common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
Refresh is a paid mutator transaction binding the contract method 0xf25eca49.
Solidity: function refresh(address user, address underlying, uint256 vtpID) returns()
type StapleIncentivesTransactor ¶
type StapleIncentivesTransactor struct {
// contains filtered or unexported fields
}
StapleIncentivesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStapleIncentivesTransactor ¶
func NewStapleIncentivesTransactor(address common.Address, transactor bind.ContractTransactor) (*StapleIncentivesTransactor, error)
NewStapleIncentivesTransactor creates a new write-only instance of StapleIncentives, bound to a specific deployed contract.
func (*StapleIncentivesTransactor) ClaimFor ¶
func (_StapleIncentives *StapleIncentivesTransactor) ClaimFor(opts *bind.TransactOpts, _for common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
ClaimFor is a paid mutator transaction binding the contract method 0x44dae040.
Solidity: function claimFor(address _for, address underlying, uint256 vtpID) returns()
func (*StapleIncentivesTransactor) Refresh ¶
func (_StapleIncentives *StapleIncentivesTransactor) Refresh(opts *bind.TransactOpts, user common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
Refresh is a paid mutator transaction binding the contract method 0xf25eca49.
Solidity: function refresh(address user, address underlying, uint256 vtpID) returns()
type StapleIncentivesTransactorRaw ¶
type StapleIncentivesTransactorRaw struct {
Contract *StapleIncentivesTransactor // Generic write-only contract binding to access the raw methods on
}
StapleIncentivesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StapleIncentivesTransactorRaw) Transact ¶
func (_StapleIncentives *StapleIncentivesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleIncentivesTransactorRaw) Transfer ¶
func (_StapleIncentives *StapleIncentivesTransactorRaw) 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 StapleIncentivesTransactorSession ¶
type StapleIncentivesTransactorSession struct { Contract *StapleIncentivesTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StapleIncentivesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StapleIncentivesTransactorSession) ClaimFor ¶
func (_StapleIncentives *StapleIncentivesTransactorSession) ClaimFor(_for common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
ClaimFor is a paid mutator transaction binding the contract method 0x44dae040.
Solidity: function claimFor(address _for, address underlying, uint256 vtpID) returns()
func (*StapleIncentivesTransactorSession) Refresh ¶
func (_StapleIncentives *StapleIncentivesTransactorSession) Refresh(user common.Address, underlying common.Address, vtpID *big.Int) (*types.Transaction, error)
Refresh is a paid mutator transaction binding the contract method 0xf25eca49.
Solidity: function refresh(address user, address underlying, uint256 vtpID) returns()
type StapleIncentivesUpdateController ¶
type StapleIncentivesUpdateController struct { NewAddress common.Address Raw types.Log // Blockchain specific contextual infos }
StapleIncentivesUpdateController represents a UpdateController event raised by the StapleIncentives contract.
type StapleIncentivesUpdateControllerIterator ¶
type StapleIncentivesUpdateControllerIterator struct { Event *StapleIncentivesUpdateController // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleIncentivesUpdateControllerIterator is returned from FilterUpdateController and is used to iterate over the raw logs and unpacked data for UpdateController events raised by the StapleIncentives contract.
func (*StapleIncentivesUpdateControllerIterator) Close ¶
func (it *StapleIncentivesUpdateControllerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleIncentivesUpdateControllerIterator) Error ¶
func (it *StapleIncentivesUpdateControllerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleIncentivesUpdateControllerIterator) Next ¶
func (it *StapleIncentivesUpdateControllerIterator) 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 StapleIncentivesUpdateIncentives ¶
type StapleIncentivesUpdateIncentives struct { Underlying common.Address VtpID *big.Int IncentivesID *big.Int IncentivesToken common.Address StartTime *big.Int EndTime *big.Int EmissionPerTick *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleIncentivesUpdateIncentives represents a UpdateIncentives event raised by the StapleIncentives contract.
type StapleIncentivesUpdateIncentivesIterator ¶
type StapleIncentivesUpdateIncentivesIterator struct { Event *StapleIncentivesUpdateIncentives // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleIncentivesUpdateIncentivesIterator is returned from FilterUpdateIncentives and is used to iterate over the raw logs and unpacked data for UpdateIncentives events raised by the StapleIncentives contract.
func (*StapleIncentivesUpdateIncentivesIterator) Close ¶
func (it *StapleIncentivesUpdateIncentivesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleIncentivesUpdateIncentivesIterator) Error ¶
func (it *StapleIncentivesUpdateIncentivesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleIncentivesUpdateIncentivesIterator) Next ¶
func (it *StapleIncentivesUpdateIncentivesIterator) 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.