Documentation
¶
Index ¶
- Variables
- type Rewards
- type RewardsCaller
- func (_Rewards *RewardsCaller) AccRewardsPerSignal(opts *bind.CallOpts) (*big.Int, error)
- func (_Rewards *RewardsCaller) AccRewardsPerSignalLastBlockUpdated(opts *bind.CallOpts) (*big.Int, error)
- func (_Rewards *RewardsCaller) AddressCache(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
- func (_Rewards *RewardsCaller) Controller(opts *bind.CallOpts) (common.Address, error)
- func (_Rewards *RewardsCaller) Denylist(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_Rewards *RewardsCaller) GetAccRewardsForSubgraph(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_Rewards *RewardsCaller) GetAccRewardsPerAllocatedToken(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
- func (_Rewards *RewardsCaller) GetAccRewardsPerSignal(opts *bind.CallOpts) (*big.Int, error)
- func (_Rewards *RewardsCaller) GetNewRewardsPerSignal(opts *bind.CallOpts) (*big.Int, error)
- func (_Rewards *RewardsCaller) GetRewards(opts *bind.CallOpts, _allocationID common.Address) (*big.Int, error)
- func (_Rewards *RewardsCaller) IsDenied(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (bool, error)
- func (_Rewards *RewardsCaller) IssuanceRate(opts *bind.CallOpts) (*big.Int, error)
- func (_Rewards *RewardsCaller) SubgraphAvailabilityOracle(opts *bind.CallOpts) (common.Address, error)
- func (_Rewards *RewardsCaller) Subgraphs(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- type RewardsCallerRaw
- type RewardsCallerSession
- func (_Rewards *RewardsCallerSession) AccRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsCallerSession) AccRewardsPerSignalLastBlockUpdated() (*big.Int, error)
- func (_Rewards *RewardsCallerSession) AddressCache(arg0 [32]byte) (common.Address, error)
- func (_Rewards *RewardsCallerSession) Controller() (common.Address, error)
- func (_Rewards *RewardsCallerSession) Denylist(arg0 [32]byte) (*big.Int, error)
- func (_Rewards *RewardsCallerSession) GetAccRewardsForSubgraph(_subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_Rewards *RewardsCallerSession) GetAccRewardsPerAllocatedToken(_subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
- func (_Rewards *RewardsCallerSession) GetAccRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsCallerSession) GetNewRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsCallerSession) GetRewards(_allocationID common.Address) (*big.Int, error)
- func (_Rewards *RewardsCallerSession) IsDenied(_subgraphDeploymentID [32]byte) (bool, error)
- func (_Rewards *RewardsCallerSession) IssuanceRate() (*big.Int, error)
- func (_Rewards *RewardsCallerSession) SubgraphAvailabilityOracle() (common.Address, error)
- func (_Rewards *RewardsCallerSession) Subgraphs(arg0 [32]byte) (struct{ ... }, error)
- type RewardsFilterer
- func (_Rewards *RewardsFilterer) FilterParameterUpdated(opts *bind.FilterOpts) (*RewardsParameterUpdatedIterator, error)
- func (_Rewards *RewardsFilterer) FilterRewardsAssigned(opts *bind.FilterOpts, indexer []common.Address, allocationID []common.Address) (*RewardsRewardsAssignedIterator, error)
- func (_Rewards *RewardsFilterer) FilterRewardsDenied(opts *bind.FilterOpts, indexer []common.Address, allocationID []common.Address) (*RewardsRewardsDeniedIterator, error)
- func (_Rewards *RewardsFilterer) FilterRewardsDenylistUpdated(opts *bind.FilterOpts, subgraphDeploymentID [][32]byte) (*RewardsRewardsDenylistUpdatedIterator, error)
- func (_Rewards *RewardsFilterer) FilterSetController(opts *bind.FilterOpts) (*RewardsSetControllerIterator, error)
- func (_Rewards *RewardsFilterer) ParseParameterUpdated(log types.Log) (*RewardsParameterUpdated, error)
- func (_Rewards *RewardsFilterer) ParseRewardsAssigned(log types.Log) (*RewardsRewardsAssigned, error)
- func (_Rewards *RewardsFilterer) ParseRewardsDenied(log types.Log) (*RewardsRewardsDenied, error)
- func (_Rewards *RewardsFilterer) ParseRewardsDenylistUpdated(log types.Log) (*RewardsRewardsDenylistUpdated, error)
- func (_Rewards *RewardsFilterer) ParseSetController(log types.Log) (*RewardsSetController, error)
- func (_Rewards *RewardsFilterer) WatchParameterUpdated(opts *bind.WatchOpts, sink chan<- *RewardsParameterUpdated) (event.Subscription, error)
- func (_Rewards *RewardsFilterer) WatchRewardsAssigned(opts *bind.WatchOpts, sink chan<- *RewardsRewardsAssigned, ...) (event.Subscription, error)
- func (_Rewards *RewardsFilterer) WatchRewardsDenied(opts *bind.WatchOpts, sink chan<- *RewardsRewardsDenied, ...) (event.Subscription, error)
- func (_Rewards *RewardsFilterer) WatchRewardsDenylistUpdated(opts *bind.WatchOpts, sink chan<- *RewardsRewardsDenylistUpdated, ...) (event.Subscription, error)
- func (_Rewards *RewardsFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *RewardsSetController) (event.Subscription, error)
- type RewardsParameterUpdated
- type RewardsParameterUpdatedIterator
- type RewardsRaw
- func (_Rewards *RewardsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Rewards *RewardsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Rewards *RewardsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RewardsRewardsAssigned
- type RewardsRewardsAssignedIterator
- type RewardsRewardsDenied
- type RewardsRewardsDeniedIterator
- type RewardsRewardsDenylistUpdated
- type RewardsRewardsDenylistUpdatedIterator
- type RewardsSession
- func (_Rewards *RewardsSession) AccRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsSession) AccRewardsPerSignalLastBlockUpdated() (*big.Int, error)
- func (_Rewards *RewardsSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_Rewards *RewardsSession) AddressCache(arg0 [32]byte) (common.Address, error)
- func (_Rewards *RewardsSession) Controller() (common.Address, error)
- func (_Rewards *RewardsSession) Denylist(arg0 [32]byte) (*big.Int, error)
- func (_Rewards *RewardsSession) GetAccRewardsForSubgraph(_subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_Rewards *RewardsSession) GetAccRewardsPerAllocatedToken(_subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
- func (_Rewards *RewardsSession) GetAccRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsSession) GetNewRewardsPerSignal() (*big.Int, error)
- func (_Rewards *RewardsSession) GetRewards(_allocationID common.Address) (*big.Int, error)
- func (_Rewards *RewardsSession) Initialize(_controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsSession) IsDenied(_subgraphDeploymentID [32]byte) (bool, error)
- func (_Rewards *RewardsSession) IssuanceRate() (*big.Int, error)
- func (_Rewards *RewardsSession) OnSubgraphAllocationUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsSession) OnSubgraphSignalUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SetController(_controller common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SetDenied(_subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SetDeniedMany(_subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SetIssuanceRate(_issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SetSubgraphAvailabilityOracle(_subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsSession) SubgraphAvailabilityOracle() (common.Address, error)
- func (_Rewards *RewardsSession) Subgraphs(arg0 [32]byte) (struct{ ... }, error)
- func (_Rewards *RewardsSession) TakeRewards(_allocationID common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsSession) UpdateAccRewardsPerSignal() (*types.Transaction, error)
- type RewardsSetController
- type RewardsSetControllerIterator
- type RewardsTransactor
- func (_Rewards *RewardsTransactor) AcceptProxy(opts *bind.TransactOpts, _proxy common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) AcceptProxyAndCall(opts *bind.TransactOpts, _proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) Initialize(opts *bind.TransactOpts, _controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) OnSubgraphAllocationUpdate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) OnSubgraphSignalUpdate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) SetDenied(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) SetDeniedMany(opts *bind.TransactOpts, _subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) SetIssuanceRate(opts *bind.TransactOpts, _issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) SetSubgraphAvailabilityOracle(opts *bind.TransactOpts, _subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) TakeRewards(opts *bind.TransactOpts, _allocationID common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactor) UpdateAccRewardsPerSignal(opts *bind.TransactOpts) (*types.Transaction, error)
- type RewardsTransactorRaw
- type RewardsTransactorSession
- func (_Rewards *RewardsTransactorSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) Initialize(_controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) OnSubgraphAllocationUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) OnSubgraphSignalUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) SetController(_controller common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) SetDenied(_subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) SetDeniedMany(_subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) SetIssuanceRate(_issuanceRate *big.Int) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) SetSubgraphAvailabilityOracle(_subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) TakeRewards(_allocationID common.Address) (*types.Transaction, error)
- func (_Rewards *RewardsTransactorSession) UpdateAccRewardsPerSignal() (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var RewardsABI = RewardsMetaData.ABI
RewardsABI is the input ABI used to generate the binding from. Deprecated: Use RewardsMetaData.ABI instead.
var RewardsMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"param\",\"type\":\"string\"}],\"name\":\"ParameterUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsAssigned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"RewardsDenied\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sinceBlock\",\"type\":\"uint256\"}],\"name\":\"RewardsDenylistUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"accRewardsPerSignal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accRewardsPerSignalLastBlockUpdated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIGraphProxy\",\"name\":\"_proxy\",\"type\":\"address\"}],\"name\":\"acceptProxy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIGraphProxy\",\"name\":\"_proxy\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"acceptProxyAndCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"addressCache\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contractIController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"denylist\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"getAccRewardsForSubgraph\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"getAccRewardsPerAllocatedToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccRewardsPerSignal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNewRewardsPerSignal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"getRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_issuanceRate\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"isDenied\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"issuanceRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"onSubgraphAllocationUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"onSubgraphSignalUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"_deny\",\"type\":\"bool\"}],\"name\":\"setDenied\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32[]\"},{\"internalType\":\"bool[]\",\"name\":\"_deny\",\"type\":\"bool[]\"}],\"name\":\"setDeniedMany\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_issuanceRate\",\"type\":\"uint256\"}],\"name\":\"setIssuanceRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_subgraphAvailabilityOracle\",\"type\":\"address\"}],\"name\":\"setSubgraphAvailabilityOracle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"subgraphAvailabilityOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subgraphs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"accRewardsForSubgraph\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accRewardsForSubgraphSnapshot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accRewardsPerSignalSnapshot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accRewardsPerAllocatedToken\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"takeRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateAccRewardsPerSignal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
RewardsMetaData contains all meta data concerning the Rewards contract.
Functions ¶
This section is empty.
Types ¶
type Rewards ¶
type Rewards struct { RewardsCaller // Read-only binding to the contract RewardsTransactor // Write-only binding to the contract RewardsFilterer // Log filterer for contract events }
Rewards is an auto generated Go binding around an Ethereum contract.
func NewRewards ¶
NewRewards creates a new instance of Rewards, bound to a specific deployed contract.
type RewardsCaller ¶
type RewardsCaller struct {
// contains filtered or unexported fields
}
RewardsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRewardsCaller ¶
func NewRewardsCaller(address common.Address, caller bind.ContractCaller) (*RewardsCaller, error)
NewRewardsCaller creates a new read-only instance of Rewards, bound to a specific deployed contract.
func (*RewardsCaller) AccRewardsPerSignal ¶
AccRewardsPerSignal is a free data retrieval call binding the contract method 0xe242cf1e.
Solidity: function accRewardsPerSignal() view returns(uint256)
func (*RewardsCaller) AccRewardsPerSignalLastBlockUpdated ¶
func (_Rewards *RewardsCaller) AccRewardsPerSignalLastBlockUpdated(opts *bind.CallOpts) (*big.Int, error)
AccRewardsPerSignalLastBlockUpdated is a free data retrieval call binding the contract method 0x9006ce8b.
Solidity: function accRewardsPerSignalLastBlockUpdated() view returns(uint256)
func (*RewardsCaller) AddressCache ¶
func (_Rewards *RewardsCaller) AddressCache(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
AddressCache is a free data retrieval call binding the contract method 0xdc675a65.
Solidity: function addressCache(bytes32 ) view returns(address)
func (*RewardsCaller) Controller ¶
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*RewardsCaller) Denylist ¶
Denylist is a free data retrieval call binding the contract method 0x16a84ab2.
Solidity: function denylist(bytes32 ) view returns(uint256)
func (*RewardsCaller) GetAccRewardsForSubgraph ¶
func (_Rewards *RewardsCaller) GetAccRewardsForSubgraph(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, error)
GetAccRewardsForSubgraph is a free data retrieval call binding the contract method 0x5c6cbd59.
Solidity: function getAccRewardsForSubgraph(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*RewardsCaller) GetAccRewardsPerAllocatedToken ¶
func (_Rewards *RewardsCaller) GetAccRewardsPerAllocatedToken(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
GetAccRewardsPerAllocatedToken is a free data retrieval call binding the contract method 0x702a280e.
Solidity: function getAccRewardsPerAllocatedToken(bytes32 _subgraphDeploymentID) view returns(uint256, uint256)
func (*RewardsCaller) GetAccRewardsPerSignal ¶
GetAccRewardsPerSignal is a free data retrieval call binding the contract method 0xa8cc0ee2.
Solidity: function getAccRewardsPerSignal() view returns(uint256)
func (*RewardsCaller) GetNewRewardsPerSignal ¶
GetNewRewardsPerSignal is a free data retrieval call binding the contract method 0xe284f848.
Solidity: function getNewRewardsPerSignal() view returns(uint256)
func (*RewardsCaller) GetRewards ¶
func (_Rewards *RewardsCaller) GetRewards(opts *bind.CallOpts, _allocationID common.Address) (*big.Int, error)
GetRewards is a free data retrieval call binding the contract method 0x79ee54f7.
Solidity: function getRewards(address _allocationID) view returns(uint256)
func (*RewardsCaller) IsDenied ¶
func (_Rewards *RewardsCaller) IsDenied(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (bool, error)
IsDenied is a free data retrieval call binding the contract method 0xe820e284.
Solidity: function isDenied(bytes32 _subgraphDeploymentID) view returns(bool)
func (*RewardsCaller) IssuanceRate ¶
IssuanceRate is a free data retrieval call binding the contract method 0x3c9ae2ba.
Solidity: function issuanceRate() view returns(uint256)
func (*RewardsCaller) SubgraphAvailabilityOracle ¶
func (_Rewards *RewardsCaller) SubgraphAvailabilityOracle(opts *bind.CallOpts) (common.Address, error)
SubgraphAvailabilityOracle is a free data retrieval call binding the contract method 0x05bb8c6b.
Solidity: function subgraphAvailabilityOracle() view returns(address)
func (*RewardsCaller) Subgraphs ¶
func (_Rewards *RewardsCaller) Subgraphs(opts *bind.CallOpts, arg0 [32]byte) (struct { AccRewardsForSubgraph *big.Int AccRewardsForSubgraphSnapshot *big.Int AccRewardsPerSignalSnapshot *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Subgraphs is a free data retrieval call binding the contract method 0x4986594f.
Solidity: function subgraphs(bytes32 ) view returns(uint256 accRewardsForSubgraph, uint256 accRewardsForSubgraphSnapshot, uint256 accRewardsPerSignalSnapshot, uint256 accRewardsPerAllocatedToken)
type RewardsCallerRaw ¶
type RewardsCallerRaw struct {
Contract *RewardsCaller // Generic read-only contract binding to access the raw methods on
}
RewardsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RewardsCallerRaw) Call ¶
func (_Rewards *RewardsCallerRaw) 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 RewardsCallerSession ¶
type RewardsCallerSession struct { Contract *RewardsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RewardsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RewardsCallerSession) AccRewardsPerSignal ¶
func (_Rewards *RewardsCallerSession) AccRewardsPerSignal() (*big.Int, error)
AccRewardsPerSignal is a free data retrieval call binding the contract method 0xe242cf1e.
Solidity: function accRewardsPerSignal() view returns(uint256)
func (*RewardsCallerSession) AccRewardsPerSignalLastBlockUpdated ¶
func (_Rewards *RewardsCallerSession) AccRewardsPerSignalLastBlockUpdated() (*big.Int, error)
AccRewardsPerSignalLastBlockUpdated is a free data retrieval call binding the contract method 0x9006ce8b.
Solidity: function accRewardsPerSignalLastBlockUpdated() view returns(uint256)
func (*RewardsCallerSession) AddressCache ¶
func (_Rewards *RewardsCallerSession) AddressCache(arg0 [32]byte) (common.Address, error)
AddressCache is a free data retrieval call binding the contract method 0xdc675a65.
Solidity: function addressCache(bytes32 ) view returns(address)
func (*RewardsCallerSession) Controller ¶
func (_Rewards *RewardsCallerSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*RewardsCallerSession) Denylist ¶
func (_Rewards *RewardsCallerSession) Denylist(arg0 [32]byte) (*big.Int, error)
Denylist is a free data retrieval call binding the contract method 0x16a84ab2.
Solidity: function denylist(bytes32 ) view returns(uint256)
func (*RewardsCallerSession) GetAccRewardsForSubgraph ¶
func (_Rewards *RewardsCallerSession) GetAccRewardsForSubgraph(_subgraphDeploymentID [32]byte) (*big.Int, error)
GetAccRewardsForSubgraph is a free data retrieval call binding the contract method 0x5c6cbd59.
Solidity: function getAccRewardsForSubgraph(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*RewardsCallerSession) GetAccRewardsPerAllocatedToken ¶
func (_Rewards *RewardsCallerSession) GetAccRewardsPerAllocatedToken(_subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
GetAccRewardsPerAllocatedToken is a free data retrieval call binding the contract method 0x702a280e.
Solidity: function getAccRewardsPerAllocatedToken(bytes32 _subgraphDeploymentID) view returns(uint256, uint256)
func (*RewardsCallerSession) GetAccRewardsPerSignal ¶
func (_Rewards *RewardsCallerSession) GetAccRewardsPerSignal() (*big.Int, error)
GetAccRewardsPerSignal is a free data retrieval call binding the contract method 0xa8cc0ee2.
Solidity: function getAccRewardsPerSignal() view returns(uint256)
func (*RewardsCallerSession) GetNewRewardsPerSignal ¶
func (_Rewards *RewardsCallerSession) GetNewRewardsPerSignal() (*big.Int, error)
GetNewRewardsPerSignal is a free data retrieval call binding the contract method 0xe284f848.
Solidity: function getNewRewardsPerSignal() view returns(uint256)
func (*RewardsCallerSession) GetRewards ¶
GetRewards is a free data retrieval call binding the contract method 0x79ee54f7.
Solidity: function getRewards(address _allocationID) view returns(uint256)
func (*RewardsCallerSession) IsDenied ¶
func (_Rewards *RewardsCallerSession) IsDenied(_subgraphDeploymentID [32]byte) (bool, error)
IsDenied is a free data retrieval call binding the contract method 0xe820e284.
Solidity: function isDenied(bytes32 _subgraphDeploymentID) view returns(bool)
func (*RewardsCallerSession) IssuanceRate ¶
func (_Rewards *RewardsCallerSession) IssuanceRate() (*big.Int, error)
IssuanceRate is a free data retrieval call binding the contract method 0x3c9ae2ba.
Solidity: function issuanceRate() view returns(uint256)
func (*RewardsCallerSession) SubgraphAvailabilityOracle ¶
func (_Rewards *RewardsCallerSession) SubgraphAvailabilityOracle() (common.Address, error)
SubgraphAvailabilityOracle is a free data retrieval call binding the contract method 0x05bb8c6b.
Solidity: function subgraphAvailabilityOracle() view returns(address)
func (*RewardsCallerSession) Subgraphs ¶
func (_Rewards *RewardsCallerSession) Subgraphs(arg0 [32]byte) (struct { AccRewardsForSubgraph *big.Int AccRewardsForSubgraphSnapshot *big.Int AccRewardsPerSignalSnapshot *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Subgraphs is a free data retrieval call binding the contract method 0x4986594f.
Solidity: function subgraphs(bytes32 ) view returns(uint256 accRewardsForSubgraph, uint256 accRewardsForSubgraphSnapshot, uint256 accRewardsPerSignalSnapshot, uint256 accRewardsPerAllocatedToken)
type RewardsFilterer ¶
type RewardsFilterer struct {
// contains filtered or unexported fields
}
RewardsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRewardsFilterer ¶
func NewRewardsFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardsFilterer, error)
NewRewardsFilterer creates a new log filterer instance of Rewards, bound to a specific deployed contract.
func (*RewardsFilterer) FilterParameterUpdated ¶
func (_Rewards *RewardsFilterer) FilterParameterUpdated(opts *bind.FilterOpts) (*RewardsParameterUpdatedIterator, error)
FilterParameterUpdated is a free log retrieval operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*RewardsFilterer) FilterRewardsAssigned ¶
func (_Rewards *RewardsFilterer) FilterRewardsAssigned(opts *bind.FilterOpts, indexer []common.Address, allocationID []common.Address) (*RewardsRewardsAssignedIterator, error)
FilterRewardsAssigned is a free log retrieval operation binding the contract event 0x315d9cdbc182c9118c140c78a121ebb9f24bf73f841339a8a41cdc3586c34e18.
Solidity: event RewardsAssigned(address indexed indexer, address indexed allocationID, uint256 epoch, uint256 amount)
func (*RewardsFilterer) FilterRewardsDenied ¶
func (_Rewards *RewardsFilterer) FilterRewardsDenied(opts *bind.FilterOpts, indexer []common.Address, allocationID []common.Address) (*RewardsRewardsDeniedIterator, error)
FilterRewardsDenied is a free log retrieval operation binding the contract event 0x07b6d8dafdf1323cc892f303125d1308c0edc07b15b14b6de6dcb4a5eea818fa.
Solidity: event RewardsDenied(address indexed indexer, address indexed allocationID, uint256 epoch)
func (*RewardsFilterer) FilterRewardsDenylistUpdated ¶
func (_Rewards *RewardsFilterer) FilterRewardsDenylistUpdated(opts *bind.FilterOpts, subgraphDeploymentID [][32]byte) (*RewardsRewardsDenylistUpdatedIterator, error)
FilterRewardsDenylistUpdated is a free log retrieval operation binding the contract event 0xe016102b339c3889f4967b491f3381f2c352c8fe3d4f880007807d45b124065a.
Solidity: event RewardsDenylistUpdated(bytes32 indexed subgraphDeploymentID, uint256 sinceBlock)
func (*RewardsFilterer) FilterSetController ¶
func (_Rewards *RewardsFilterer) FilterSetController(opts *bind.FilterOpts) (*RewardsSetControllerIterator, error)
FilterSetController is a free log retrieval operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
func (*RewardsFilterer) ParseParameterUpdated ¶
func (_Rewards *RewardsFilterer) ParseParameterUpdated(log types.Log) (*RewardsParameterUpdated, error)
ParseParameterUpdated is a log parse operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*RewardsFilterer) ParseRewardsAssigned ¶
func (_Rewards *RewardsFilterer) ParseRewardsAssigned(log types.Log) (*RewardsRewardsAssigned, error)
ParseRewardsAssigned is a log parse operation binding the contract event 0x315d9cdbc182c9118c140c78a121ebb9f24bf73f841339a8a41cdc3586c34e18.
Solidity: event RewardsAssigned(address indexed indexer, address indexed allocationID, uint256 epoch, uint256 amount)
func (*RewardsFilterer) ParseRewardsDenied ¶
func (_Rewards *RewardsFilterer) ParseRewardsDenied(log types.Log) (*RewardsRewardsDenied, error)
ParseRewardsDenied is a log parse operation binding the contract event 0x07b6d8dafdf1323cc892f303125d1308c0edc07b15b14b6de6dcb4a5eea818fa.
Solidity: event RewardsDenied(address indexed indexer, address indexed allocationID, uint256 epoch)
func (*RewardsFilterer) ParseRewardsDenylistUpdated ¶
func (_Rewards *RewardsFilterer) ParseRewardsDenylistUpdated(log types.Log) (*RewardsRewardsDenylistUpdated, error)
ParseRewardsDenylistUpdated is a log parse operation binding the contract event 0xe016102b339c3889f4967b491f3381f2c352c8fe3d4f880007807d45b124065a.
Solidity: event RewardsDenylistUpdated(bytes32 indexed subgraphDeploymentID, uint256 sinceBlock)
func (*RewardsFilterer) ParseSetController ¶
func (_Rewards *RewardsFilterer) ParseSetController(log types.Log) (*RewardsSetController, error)
ParseSetController is a log parse operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
func (*RewardsFilterer) WatchParameterUpdated ¶
func (_Rewards *RewardsFilterer) WatchParameterUpdated(opts *bind.WatchOpts, sink chan<- *RewardsParameterUpdated) (event.Subscription, error)
WatchParameterUpdated is a free log subscription operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*RewardsFilterer) WatchRewardsAssigned ¶
func (_Rewards *RewardsFilterer) WatchRewardsAssigned(opts *bind.WatchOpts, sink chan<- *RewardsRewardsAssigned, indexer []common.Address, allocationID []common.Address) (event.Subscription, error)
WatchRewardsAssigned is a free log subscription operation binding the contract event 0x315d9cdbc182c9118c140c78a121ebb9f24bf73f841339a8a41cdc3586c34e18.
Solidity: event RewardsAssigned(address indexed indexer, address indexed allocationID, uint256 epoch, uint256 amount)
func (*RewardsFilterer) WatchRewardsDenied ¶
func (_Rewards *RewardsFilterer) WatchRewardsDenied(opts *bind.WatchOpts, sink chan<- *RewardsRewardsDenied, indexer []common.Address, allocationID []common.Address) (event.Subscription, error)
WatchRewardsDenied is a free log subscription operation binding the contract event 0x07b6d8dafdf1323cc892f303125d1308c0edc07b15b14b6de6dcb4a5eea818fa.
Solidity: event RewardsDenied(address indexed indexer, address indexed allocationID, uint256 epoch)
func (*RewardsFilterer) WatchRewardsDenylistUpdated ¶
func (_Rewards *RewardsFilterer) WatchRewardsDenylistUpdated(opts *bind.WatchOpts, sink chan<- *RewardsRewardsDenylistUpdated, subgraphDeploymentID [][32]byte) (event.Subscription, error)
WatchRewardsDenylistUpdated is a free log subscription operation binding the contract event 0xe016102b339c3889f4967b491f3381f2c352c8fe3d4f880007807d45b124065a.
Solidity: event RewardsDenylistUpdated(bytes32 indexed subgraphDeploymentID, uint256 sinceBlock)
func (*RewardsFilterer) WatchSetController ¶
func (_Rewards *RewardsFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *RewardsSetController) (event.Subscription, error)
WatchSetController is a free log subscription operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
type RewardsParameterUpdated ¶
type RewardsParameterUpdated struct { Param string Raw types.Log // Blockchain specific contextual infos }
RewardsParameterUpdated represents a ParameterUpdated event raised by the Rewards contract.
type RewardsParameterUpdatedIterator ¶
type RewardsParameterUpdatedIterator struct { Event *RewardsParameterUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RewardsParameterUpdatedIterator is returned from FilterParameterUpdated and is used to iterate over the raw logs and unpacked data for ParameterUpdated events raised by the Rewards contract.
func (*RewardsParameterUpdatedIterator) Close ¶
func (it *RewardsParameterUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardsParameterUpdatedIterator) Error ¶
func (it *RewardsParameterUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardsParameterUpdatedIterator) Next ¶
func (it *RewardsParameterUpdatedIterator) 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 RewardsRaw ¶
type RewardsRaw struct {
Contract *Rewards // Generic contract binding to access the raw methods on
}
RewardsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RewardsRaw) Call ¶
func (_Rewards *RewardsRaw) 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 (*RewardsRaw) Transact ¶
func (_Rewards *RewardsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RewardsRaw) Transfer ¶
func (_Rewards *RewardsRaw) 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 RewardsRewardsAssigned ¶
type RewardsRewardsAssigned struct { Indexer common.Address AllocationID common.Address Epoch *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
RewardsRewardsAssigned represents a RewardsAssigned event raised by the Rewards contract.
type RewardsRewardsAssignedIterator ¶
type RewardsRewardsAssignedIterator struct { Event *RewardsRewardsAssigned // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RewardsRewardsAssignedIterator is returned from FilterRewardsAssigned and is used to iterate over the raw logs and unpacked data for RewardsAssigned events raised by the Rewards contract.
func (*RewardsRewardsAssignedIterator) Close ¶
func (it *RewardsRewardsAssignedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardsRewardsAssignedIterator) Error ¶
func (it *RewardsRewardsAssignedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardsRewardsAssignedIterator) Next ¶
func (it *RewardsRewardsAssignedIterator) 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 RewardsRewardsDenied ¶
type RewardsRewardsDenied struct { Indexer common.Address AllocationID common.Address Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
RewardsRewardsDenied represents a RewardsDenied event raised by the Rewards contract.
type RewardsRewardsDeniedIterator ¶
type RewardsRewardsDeniedIterator struct { Event *RewardsRewardsDenied // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RewardsRewardsDeniedIterator is returned from FilterRewardsDenied and is used to iterate over the raw logs and unpacked data for RewardsDenied events raised by the Rewards contract.
func (*RewardsRewardsDeniedIterator) Close ¶
func (it *RewardsRewardsDeniedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardsRewardsDeniedIterator) Error ¶
func (it *RewardsRewardsDeniedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardsRewardsDeniedIterator) Next ¶
func (it *RewardsRewardsDeniedIterator) 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 RewardsRewardsDenylistUpdated ¶
type RewardsRewardsDenylistUpdated struct { SubgraphDeploymentID [32]byte SinceBlock *big.Int Raw types.Log // Blockchain specific contextual infos }
RewardsRewardsDenylistUpdated represents a RewardsDenylistUpdated event raised by the Rewards contract.
type RewardsRewardsDenylistUpdatedIterator ¶
type RewardsRewardsDenylistUpdatedIterator struct { Event *RewardsRewardsDenylistUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RewardsRewardsDenylistUpdatedIterator is returned from FilterRewardsDenylistUpdated and is used to iterate over the raw logs and unpacked data for RewardsDenylistUpdated events raised by the Rewards contract.
func (*RewardsRewardsDenylistUpdatedIterator) Close ¶
func (it *RewardsRewardsDenylistUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardsRewardsDenylistUpdatedIterator) Error ¶
func (it *RewardsRewardsDenylistUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardsRewardsDenylistUpdatedIterator) Next ¶
func (it *RewardsRewardsDenylistUpdatedIterator) 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 RewardsSession ¶
type RewardsSession struct { Contract *Rewards // 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 }
RewardsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RewardsSession) AccRewardsPerSignal ¶
func (_Rewards *RewardsSession) AccRewardsPerSignal() (*big.Int, error)
AccRewardsPerSignal is a free data retrieval call binding the contract method 0xe242cf1e.
Solidity: function accRewardsPerSignal() view returns(uint256)
func (*RewardsSession) AccRewardsPerSignalLastBlockUpdated ¶
func (_Rewards *RewardsSession) AccRewardsPerSignalLastBlockUpdated() (*big.Int, error)
AccRewardsPerSignalLastBlockUpdated is a free data retrieval call binding the contract method 0x9006ce8b.
Solidity: function accRewardsPerSignalLastBlockUpdated() view returns(uint256)
func (*RewardsSession) AcceptProxy ¶
func (_Rewards *RewardsSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
AcceptProxy is a paid mutator transaction binding the contract method 0xa2594d82.
Solidity: function acceptProxy(address _proxy) returns()
func (*RewardsSession) AcceptProxyAndCall ¶
func (_Rewards *RewardsSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
AcceptProxyAndCall is a paid mutator transaction binding the contract method 0x9ce7abe5.
Solidity: function acceptProxyAndCall(address _proxy, bytes _data) returns()
func (*RewardsSession) AddressCache ¶
func (_Rewards *RewardsSession) AddressCache(arg0 [32]byte) (common.Address, error)
AddressCache is a free data retrieval call binding the contract method 0xdc675a65.
Solidity: function addressCache(bytes32 ) view returns(address)
func (*RewardsSession) Controller ¶
func (_Rewards *RewardsSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*RewardsSession) Denylist ¶
func (_Rewards *RewardsSession) Denylist(arg0 [32]byte) (*big.Int, error)
Denylist is a free data retrieval call binding the contract method 0x16a84ab2.
Solidity: function denylist(bytes32 ) view returns(uint256)
func (*RewardsSession) GetAccRewardsForSubgraph ¶
func (_Rewards *RewardsSession) GetAccRewardsForSubgraph(_subgraphDeploymentID [32]byte) (*big.Int, error)
GetAccRewardsForSubgraph is a free data retrieval call binding the contract method 0x5c6cbd59.
Solidity: function getAccRewardsForSubgraph(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*RewardsSession) GetAccRewardsPerAllocatedToken ¶
func (_Rewards *RewardsSession) GetAccRewardsPerAllocatedToken(_subgraphDeploymentID [32]byte) (*big.Int, *big.Int, error)
GetAccRewardsPerAllocatedToken is a free data retrieval call binding the contract method 0x702a280e.
Solidity: function getAccRewardsPerAllocatedToken(bytes32 _subgraphDeploymentID) view returns(uint256, uint256)
func (*RewardsSession) GetAccRewardsPerSignal ¶
func (_Rewards *RewardsSession) GetAccRewardsPerSignal() (*big.Int, error)
GetAccRewardsPerSignal is a free data retrieval call binding the contract method 0xa8cc0ee2.
Solidity: function getAccRewardsPerSignal() view returns(uint256)
func (*RewardsSession) GetNewRewardsPerSignal ¶
func (_Rewards *RewardsSession) GetNewRewardsPerSignal() (*big.Int, error)
GetNewRewardsPerSignal is a free data retrieval call binding the contract method 0xe284f848.
Solidity: function getNewRewardsPerSignal() view returns(uint256)
func (*RewardsSession) GetRewards ¶
GetRewards is a free data retrieval call binding the contract method 0x79ee54f7.
Solidity: function getRewards(address _allocationID) view returns(uint256)
func (*RewardsSession) Initialize ¶
func (_Rewards *RewardsSession) Initialize(_controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.
Solidity: function initialize(address _controller, uint256 _issuanceRate) returns()
func (*RewardsSession) IsDenied ¶
func (_Rewards *RewardsSession) IsDenied(_subgraphDeploymentID [32]byte) (bool, error)
IsDenied is a free data retrieval call binding the contract method 0xe820e284.
Solidity: function isDenied(bytes32 _subgraphDeploymentID) view returns(bool)
func (*RewardsSession) IssuanceRate ¶
func (_Rewards *RewardsSession) IssuanceRate() (*big.Int, error)
IssuanceRate is a free data retrieval call binding the contract method 0x3c9ae2ba.
Solidity: function issuanceRate() view returns(uint256)
func (*RewardsSession) OnSubgraphAllocationUpdate ¶
func (_Rewards *RewardsSession) OnSubgraphAllocationUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphAllocationUpdate is a paid mutator transaction binding the contract method 0xeeac3e0e.
Solidity: function onSubgraphAllocationUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsSession) OnSubgraphSignalUpdate ¶
func (_Rewards *RewardsSession) OnSubgraphSignalUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphSignalUpdate is a paid mutator transaction binding the contract method 0x1d1c2fec.
Solidity: function onSubgraphSignalUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsSession) SetController ¶
func (_Rewards *RewardsSession) SetController(_controller common.Address) (*types.Transaction, error)
SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
Solidity: function setController(address _controller) returns()
func (*RewardsSession) SetDenied ¶
func (_Rewards *RewardsSession) SetDenied(_subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
SetDenied is a paid mutator transaction binding the contract method 0x1324a506.
Solidity: function setDenied(bytes32 _subgraphDeploymentID, bool _deny) returns()
func (*RewardsSession) SetDeniedMany ¶
func (_Rewards *RewardsSession) SetDeniedMany(_subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
SetDeniedMany is a paid mutator transaction binding the contract method 0x1debaded.
Solidity: function setDeniedMany(bytes32[] _subgraphDeploymentID, bool[] _deny) returns()
func (*RewardsSession) SetIssuanceRate ¶
func (_Rewards *RewardsSession) SetIssuanceRate(_issuanceRate *big.Int) (*types.Transaction, error)
SetIssuanceRate is a paid mutator transaction binding the contract method 0xfc24ffdf.
Solidity: function setIssuanceRate(uint256 _issuanceRate) returns()
func (*RewardsSession) SetSubgraphAvailabilityOracle ¶
func (_Rewards *RewardsSession) SetSubgraphAvailabilityOracle(_subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
SetSubgraphAvailabilityOracle is a paid mutator transaction binding the contract method 0x0903c094.
Solidity: function setSubgraphAvailabilityOracle(address _subgraphAvailabilityOracle) returns()
func (*RewardsSession) SubgraphAvailabilityOracle ¶
func (_Rewards *RewardsSession) SubgraphAvailabilityOracle() (common.Address, error)
SubgraphAvailabilityOracle is a free data retrieval call binding the contract method 0x05bb8c6b.
Solidity: function subgraphAvailabilityOracle() view returns(address)
func (*RewardsSession) Subgraphs ¶
func (_Rewards *RewardsSession) Subgraphs(arg0 [32]byte) (struct { AccRewardsForSubgraph *big.Int AccRewardsForSubgraphSnapshot *big.Int AccRewardsPerSignalSnapshot *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Subgraphs is a free data retrieval call binding the contract method 0x4986594f.
Solidity: function subgraphs(bytes32 ) view returns(uint256 accRewardsForSubgraph, uint256 accRewardsForSubgraphSnapshot, uint256 accRewardsPerSignalSnapshot, uint256 accRewardsPerAllocatedToken)
func (*RewardsSession) TakeRewards ¶
func (_Rewards *RewardsSession) TakeRewards(_allocationID common.Address) (*types.Transaction, error)
TakeRewards is a paid mutator transaction binding the contract method 0xdb750926.
Solidity: function takeRewards(address _allocationID) returns(uint256)
func (*RewardsSession) UpdateAccRewardsPerSignal ¶
func (_Rewards *RewardsSession) UpdateAccRewardsPerSignal() (*types.Transaction, error)
UpdateAccRewardsPerSignal is a paid mutator transaction binding the contract method 0xc7d1117d.
Solidity: function updateAccRewardsPerSignal() returns(uint256)
type RewardsSetController ¶
type RewardsSetController struct { Controller common.Address Raw types.Log // Blockchain specific contextual infos }
RewardsSetController represents a SetController event raised by the Rewards contract.
type RewardsSetControllerIterator ¶
type RewardsSetControllerIterator struct { Event *RewardsSetController // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RewardsSetControllerIterator is returned from FilterSetController and is used to iterate over the raw logs and unpacked data for SetController events raised by the Rewards contract.
func (*RewardsSetControllerIterator) Close ¶
func (it *RewardsSetControllerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardsSetControllerIterator) Error ¶
func (it *RewardsSetControllerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardsSetControllerIterator) Next ¶
func (it *RewardsSetControllerIterator) 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 RewardsTransactor ¶
type RewardsTransactor struct {
// contains filtered or unexported fields
}
RewardsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRewardsTransactor ¶
func NewRewardsTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardsTransactor, error)
NewRewardsTransactor creates a new write-only instance of Rewards, bound to a specific deployed contract.
func (*RewardsTransactor) AcceptProxy ¶
func (_Rewards *RewardsTransactor) AcceptProxy(opts *bind.TransactOpts, _proxy common.Address) (*types.Transaction, error)
AcceptProxy is a paid mutator transaction binding the contract method 0xa2594d82.
Solidity: function acceptProxy(address _proxy) returns()
func (*RewardsTransactor) AcceptProxyAndCall ¶
func (_Rewards *RewardsTransactor) AcceptProxyAndCall(opts *bind.TransactOpts, _proxy common.Address, _data []byte) (*types.Transaction, error)
AcceptProxyAndCall is a paid mutator transaction binding the contract method 0x9ce7abe5.
Solidity: function acceptProxyAndCall(address _proxy, bytes _data) returns()
func (*RewardsTransactor) Initialize ¶
func (_Rewards *RewardsTransactor) Initialize(opts *bind.TransactOpts, _controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.
Solidity: function initialize(address _controller, uint256 _issuanceRate) returns()
func (*RewardsTransactor) OnSubgraphAllocationUpdate ¶
func (_Rewards *RewardsTransactor) OnSubgraphAllocationUpdate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphAllocationUpdate is a paid mutator transaction binding the contract method 0xeeac3e0e.
Solidity: function onSubgraphAllocationUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsTransactor) OnSubgraphSignalUpdate ¶
func (_Rewards *RewardsTransactor) OnSubgraphSignalUpdate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphSignalUpdate is a paid mutator transaction binding the contract method 0x1d1c2fec.
Solidity: function onSubgraphSignalUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsTransactor) SetController ¶
func (_Rewards *RewardsTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error)
SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
Solidity: function setController(address _controller) returns()
func (*RewardsTransactor) SetDenied ¶
func (_Rewards *RewardsTransactor) SetDenied(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
SetDenied is a paid mutator transaction binding the contract method 0x1324a506.
Solidity: function setDenied(bytes32 _subgraphDeploymentID, bool _deny) returns()
func (*RewardsTransactor) SetDeniedMany ¶
func (_Rewards *RewardsTransactor) SetDeniedMany(opts *bind.TransactOpts, _subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
SetDeniedMany is a paid mutator transaction binding the contract method 0x1debaded.
Solidity: function setDeniedMany(bytes32[] _subgraphDeploymentID, bool[] _deny) returns()
func (*RewardsTransactor) SetIssuanceRate ¶
func (_Rewards *RewardsTransactor) SetIssuanceRate(opts *bind.TransactOpts, _issuanceRate *big.Int) (*types.Transaction, error)
SetIssuanceRate is a paid mutator transaction binding the contract method 0xfc24ffdf.
Solidity: function setIssuanceRate(uint256 _issuanceRate) returns()
func (*RewardsTransactor) SetSubgraphAvailabilityOracle ¶
func (_Rewards *RewardsTransactor) SetSubgraphAvailabilityOracle(opts *bind.TransactOpts, _subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
SetSubgraphAvailabilityOracle is a paid mutator transaction binding the contract method 0x0903c094.
Solidity: function setSubgraphAvailabilityOracle(address _subgraphAvailabilityOracle) returns()
func (*RewardsTransactor) TakeRewards ¶
func (_Rewards *RewardsTransactor) TakeRewards(opts *bind.TransactOpts, _allocationID common.Address) (*types.Transaction, error)
TakeRewards is a paid mutator transaction binding the contract method 0xdb750926.
Solidity: function takeRewards(address _allocationID) returns(uint256)
func (*RewardsTransactor) UpdateAccRewardsPerSignal ¶
func (_Rewards *RewardsTransactor) UpdateAccRewardsPerSignal(opts *bind.TransactOpts) (*types.Transaction, error)
UpdateAccRewardsPerSignal is a paid mutator transaction binding the contract method 0xc7d1117d.
Solidity: function updateAccRewardsPerSignal() returns(uint256)
type RewardsTransactorRaw ¶
type RewardsTransactorRaw struct {
Contract *RewardsTransactor // Generic write-only contract binding to access the raw methods on
}
RewardsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RewardsTransactorRaw) Transact ¶
func (_Rewards *RewardsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RewardsTransactorRaw) Transfer ¶
func (_Rewards *RewardsTransactorRaw) 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 RewardsTransactorSession ¶
type RewardsTransactorSession struct { Contract *RewardsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RewardsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RewardsTransactorSession) AcceptProxy ¶
func (_Rewards *RewardsTransactorSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
AcceptProxy is a paid mutator transaction binding the contract method 0xa2594d82.
Solidity: function acceptProxy(address _proxy) returns()
func (*RewardsTransactorSession) AcceptProxyAndCall ¶
func (_Rewards *RewardsTransactorSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
AcceptProxyAndCall is a paid mutator transaction binding the contract method 0x9ce7abe5.
Solidity: function acceptProxyAndCall(address _proxy, bytes _data) returns()
func (*RewardsTransactorSession) Initialize ¶
func (_Rewards *RewardsTransactorSession) Initialize(_controller common.Address, _issuanceRate *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.
Solidity: function initialize(address _controller, uint256 _issuanceRate) returns()
func (*RewardsTransactorSession) OnSubgraphAllocationUpdate ¶
func (_Rewards *RewardsTransactorSession) OnSubgraphAllocationUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphAllocationUpdate is a paid mutator transaction binding the contract method 0xeeac3e0e.
Solidity: function onSubgraphAllocationUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsTransactorSession) OnSubgraphSignalUpdate ¶
func (_Rewards *RewardsTransactorSession) OnSubgraphSignalUpdate(_subgraphDeploymentID [32]byte) (*types.Transaction, error)
OnSubgraphSignalUpdate is a paid mutator transaction binding the contract method 0x1d1c2fec.
Solidity: function onSubgraphSignalUpdate(bytes32 _subgraphDeploymentID) returns(uint256)
func (*RewardsTransactorSession) SetController ¶
func (_Rewards *RewardsTransactorSession) SetController(_controller common.Address) (*types.Transaction, error)
SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
Solidity: function setController(address _controller) returns()
func (*RewardsTransactorSession) SetDenied ¶
func (_Rewards *RewardsTransactorSession) SetDenied(_subgraphDeploymentID [32]byte, _deny bool) (*types.Transaction, error)
SetDenied is a paid mutator transaction binding the contract method 0x1324a506.
Solidity: function setDenied(bytes32 _subgraphDeploymentID, bool _deny) returns()
func (*RewardsTransactorSession) SetDeniedMany ¶
func (_Rewards *RewardsTransactorSession) SetDeniedMany(_subgraphDeploymentID [][32]byte, _deny []bool) (*types.Transaction, error)
SetDeniedMany is a paid mutator transaction binding the contract method 0x1debaded.
Solidity: function setDeniedMany(bytes32[] _subgraphDeploymentID, bool[] _deny) returns()
func (*RewardsTransactorSession) SetIssuanceRate ¶
func (_Rewards *RewardsTransactorSession) SetIssuanceRate(_issuanceRate *big.Int) (*types.Transaction, error)
SetIssuanceRate is a paid mutator transaction binding the contract method 0xfc24ffdf.
Solidity: function setIssuanceRate(uint256 _issuanceRate) returns()
func (*RewardsTransactorSession) SetSubgraphAvailabilityOracle ¶
func (_Rewards *RewardsTransactorSession) SetSubgraphAvailabilityOracle(_subgraphAvailabilityOracle common.Address) (*types.Transaction, error)
SetSubgraphAvailabilityOracle is a paid mutator transaction binding the contract method 0x0903c094.
Solidity: function setSubgraphAvailabilityOracle(address _subgraphAvailabilityOracle) returns()
func (*RewardsTransactorSession) TakeRewards ¶
func (_Rewards *RewardsTransactorSession) TakeRewards(_allocationID common.Address) (*types.Transaction, error)
TakeRewards is a paid mutator transaction binding the contract method 0xdb750926.
Solidity: function takeRewards(address _allocationID) returns(uint256)
func (*RewardsTransactorSession) UpdateAccRewardsPerSignal ¶
func (_Rewards *RewardsTransactorSession) UpdateAccRewardsPerSignal() (*types.Transaction, error)
UpdateAccRewardsPerSignal is a paid mutator transaction binding the contract method 0xc7d1117d.
Solidity: function updateAccRewardsPerSignal() returns(uint256)