Documentation ¶
Index ¶
- Variables
- type GraphStaking
- type GraphStakingAllocationClosed
- type GraphStakingAllocationClosedIterator
- type GraphStakingAllocationCollected
- type GraphStakingAllocationCollectedIterator
- type GraphStakingAllocationCreated
- type GraphStakingAllocationCreatedIterator
- type GraphStakingAssetHolderUpdate
- type GraphStakingAssetHolderUpdateIterator
- type GraphStakingCaller
- func (_GraphStaking *GraphStakingCaller) Allocations(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCaller) AlphaDenominator(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) AlphaNumerator(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) AssetHolders(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) ChannelDisputeEpochs(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) Controller(opts *bind.CallOpts) (common.Address, error)
- func (_GraphStaking *GraphStakingCaller) CurationPercentage(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) DelegationParametersCooldown(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) DelegationPools(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCaller) DelegationRatio(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) DelegationTaxPercentage(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) DelegationUnbondingPeriod(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) GetAllocation(opts *bind.CallOpts, _allocationID common.Address) (IStakingDataAllocation, error)
- func (_GraphStaking *GraphStakingCaller) GetAllocationState(opts *bind.CallOpts, _allocationID common.Address) (uint8, error)
- func (_GraphStaking *GraphStakingCaller) GetDelegation(opts *bind.CallOpts, _indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
- func (_GraphStaking *GraphStakingCaller) GetIndexerCapacity(opts *bind.CallOpts, _indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) GetIndexerStakedTokens(opts *bind.CallOpts, _indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) GetSubgraphAllocatedTokens(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) GetWithdraweableDelegatedTokens(opts *bind.CallOpts, _delegation IStakingDataDelegation) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) HasStake(opts *bind.CallOpts, _indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) IsAllocation(opts *bind.CallOpts, _allocationID common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) IsDelegator(opts *bind.CallOpts, _indexer common.Address, _delegator common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) IsOperator(opts *bind.CallOpts, _operator common.Address, _indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) MaxAllocationEpochs(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) MinimumIndexerStake(opts *bind.CallOpts) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) OperatorAuth(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) ProtocolPercentage(opts *bind.CallOpts) (uint32, error)
- func (_GraphStaking *GraphStakingCaller) Rebates(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCaller) RewardsDestination(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_GraphStaking *GraphStakingCaller) Slashers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCaller) Stakes(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCaller) SubgraphAllocations(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingCaller) ThawingPeriod(opts *bind.CallOpts) (uint32, error)
- type GraphStakingCallerRaw
- type GraphStakingCallerSession
- func (_GraphStaking *GraphStakingCallerSession) Allocations(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCallerSession) AlphaDenominator() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) AlphaNumerator() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) AssetHolders(arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) ChannelDisputeEpochs() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) Controller() (common.Address, error)
- func (_GraphStaking *GraphStakingCallerSession) CurationPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) DelegationParametersCooldown() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) DelegationPools(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCallerSession) DelegationRatio() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) DelegationTaxPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) DelegationUnbondingPeriod() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) GetAllocation(_allocationID common.Address) (IStakingDataAllocation, error)
- func (_GraphStaking *GraphStakingCallerSession) GetAllocationState(_allocationID common.Address) (uint8, error)
- func (_GraphStaking *GraphStakingCallerSession) GetDelegation(_indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
- func (_GraphStaking *GraphStakingCallerSession) GetIndexerCapacity(_indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) GetIndexerStakedTokens(_indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) GetSubgraphAllocatedTokens(_subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) GetWithdraweableDelegatedTokens(_delegation IStakingDataDelegation) (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) HasStake(_indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) IsAllocation(_allocationID common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) IsDelegator(_indexer common.Address, _delegator common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) IsOperator(_operator common.Address, _indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) MaxAllocationEpochs() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) MinimumIndexerStake() (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) OperatorAuth(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) ProtocolPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingCallerSession) Rebates(arg0 *big.Int) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCallerSession) RewardsDestination(arg0 common.Address) (common.Address, error)
- func (_GraphStaking *GraphStakingCallerSession) Slashers(arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingCallerSession) Stakes(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingCallerSession) SubgraphAllocations(arg0 [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingCallerSession) ThawingPeriod() (uint32, error)
- type GraphStakingContractSynced
- type GraphStakingContractSyncedIterator
- type GraphStakingDelegationParametersUpdated
- type GraphStakingDelegationParametersUpdatedIterator
- type GraphStakingFilterer
- func (_GraphStaking *GraphStakingFilterer) FilterAllocationClosed(opts *bind.FilterOpts, indexer []common.Address, ...) (*GraphStakingAllocationClosedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterAllocationCollected(opts *bind.FilterOpts, indexer []common.Address, ...) (*GraphStakingAllocationCollectedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterAllocationCreated(opts *bind.FilterOpts, indexer []common.Address, ...) (*GraphStakingAllocationCreatedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterAssetHolderUpdate(opts *bind.FilterOpts, caller []common.Address, assetHolder []common.Address) (*GraphStakingAssetHolderUpdateIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterContractSynced(opts *bind.FilterOpts, nameHash [][32]byte) (*GraphStakingContractSyncedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterDelegationParametersUpdated(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingDelegationParametersUpdatedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterParameterUpdated(opts *bind.FilterOpts) (*GraphStakingParameterUpdatedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterRebateClaimed(opts *bind.FilterOpts, indexer []common.Address, ...) (*GraphStakingRebateClaimedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterSetController(opts *bind.FilterOpts) (*GraphStakingSetControllerIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterSetOperator(opts *bind.FilterOpts, indexer []common.Address, operator []common.Address) (*GraphStakingSetOperatorIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterSetRewardsDestination(opts *bind.FilterOpts, indexer []common.Address, destination []common.Address) (*GraphStakingSetRewardsDestinationIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterSlasherUpdate(opts *bind.FilterOpts, caller []common.Address, slasher []common.Address) (*GraphStakingSlasherUpdateIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegated(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegatedLocked(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedLockedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegatedWithdrawn(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedWithdrawnIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeDeposited(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeDepositedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeLocked(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeLockedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeSlashed(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeSlashedIterator, error)
- func (_GraphStaking *GraphStakingFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeWithdrawnIterator, error)
- func (_GraphStaking *GraphStakingFilterer) ParseAllocationClosed(log types.Log) (*GraphStakingAllocationClosed, error)
- func (_GraphStaking *GraphStakingFilterer) ParseAllocationCollected(log types.Log) (*GraphStakingAllocationCollected, error)
- func (_GraphStaking *GraphStakingFilterer) ParseAllocationCreated(log types.Log) (*GraphStakingAllocationCreated, error)
- func (_GraphStaking *GraphStakingFilterer) ParseAssetHolderUpdate(log types.Log) (*GraphStakingAssetHolderUpdate, error)
- func (_GraphStaking *GraphStakingFilterer) ParseContractSynced(log types.Log) (*GraphStakingContractSynced, error)
- func (_GraphStaking *GraphStakingFilterer) ParseDelegationParametersUpdated(log types.Log) (*GraphStakingDelegationParametersUpdated, error)
- func (_GraphStaking *GraphStakingFilterer) ParseParameterUpdated(log types.Log) (*GraphStakingParameterUpdated, error)
- func (_GraphStaking *GraphStakingFilterer) ParseRebateClaimed(log types.Log) (*GraphStakingRebateClaimed, error)
- func (_GraphStaking *GraphStakingFilterer) ParseSetController(log types.Log) (*GraphStakingSetController, error)
- func (_GraphStaking *GraphStakingFilterer) ParseSetOperator(log types.Log) (*GraphStakingSetOperator, error)
- func (_GraphStaking *GraphStakingFilterer) ParseSetRewardsDestination(log types.Log) (*GraphStakingSetRewardsDestination, error)
- func (_GraphStaking *GraphStakingFilterer) ParseSlasherUpdate(log types.Log) (*GraphStakingSlasherUpdate, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegated(log types.Log) (*GraphStakingStakeDelegated, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegatedLocked(log types.Log) (*GraphStakingStakeDelegatedLocked, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegatedWithdrawn(log types.Log) (*GraphStakingStakeDelegatedWithdrawn, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeDeposited(log types.Log) (*GraphStakingStakeDeposited, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeLocked(log types.Log) (*GraphStakingStakeLocked, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeSlashed(log types.Log) (*GraphStakingStakeSlashed, error)
- func (_GraphStaking *GraphStakingFilterer) ParseStakeWithdrawn(log types.Log) (*GraphStakingStakeWithdrawn, error)
- func (_GraphStaking *GraphStakingFilterer) WatchAllocationClosed(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationClosed, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchAllocationCollected(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationCollected, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchAllocationCreated(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationCreated, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchAssetHolderUpdate(opts *bind.WatchOpts, sink chan<- *GraphStakingAssetHolderUpdate, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchContractSynced(opts *bind.WatchOpts, sink chan<- *GraphStakingContractSynced, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchDelegationParametersUpdated(opts *bind.WatchOpts, sink chan<- *GraphStakingDelegationParametersUpdated, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchParameterUpdated(opts *bind.WatchOpts, sink chan<- *GraphStakingParameterUpdated) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchRebateClaimed(opts *bind.WatchOpts, sink chan<- *GraphStakingRebateClaimed, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *GraphStakingSetController) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchSetOperator(opts *bind.WatchOpts, sink chan<- *GraphStakingSetOperator, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchSetRewardsDestination(opts *bind.WatchOpts, sink chan<- *GraphStakingSetRewardsDestination, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchSlasherUpdate(opts *bind.WatchOpts, sink chan<- *GraphStakingSlasherUpdate, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegated(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegated, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegatedLocked(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegatedLocked, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegatedWithdrawn(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegatedWithdrawn, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeDeposited(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDeposited, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeLocked(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeLocked, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeSlashed(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeSlashed, ...) (event.Subscription, error)
- func (_GraphStaking *GraphStakingFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeWithdrawn, ...) (event.Subscription, error)
- type GraphStakingParameterUpdated
- type GraphStakingParameterUpdatedIterator
- type GraphStakingRaw
- func (_GraphStaking *GraphStakingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_GraphStaking *GraphStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GraphStakingRebateClaimed
- type GraphStakingRebateClaimedIterator
- type GraphStakingSession
- func (_GraphStaking *GraphStakingSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Allocate(_subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) AllocateFrom(_indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Allocations(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingSession) AlphaDenominator() (uint32, error)
- func (_GraphStaking *GraphStakingSession) AlphaNumerator() (uint32, error)
- func (_GraphStaking *GraphStakingSession) AssetHolders(arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) ChannelDisputeEpochs() (uint32, error)
- func (_GraphStaking *GraphStakingSession) Claim(_allocationID common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) ClaimMany(_allocationID []common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) CloseAllocation(_allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) CloseAllocationMany(_requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) CloseAndAllocate(_closingAllocationID common.Address, _poi [32]byte, _indexer common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Collect(_tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Controller() (common.Address, error)
- func (_GraphStaking *GraphStakingSession) CurationPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingSession) Delegate(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) DelegationParametersCooldown() (uint32, error)
- func (_GraphStaking *GraphStakingSession) DelegationPools(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingSession) DelegationRatio() (uint32, error)
- func (_GraphStaking *GraphStakingSession) DelegationTaxPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingSession) DelegationUnbondingPeriod() (uint32, error)
- func (_GraphStaking *GraphStakingSession) GetAllocation(_allocationID common.Address) (IStakingDataAllocation, error)
- func (_GraphStaking *GraphStakingSession) GetAllocationState(_allocationID common.Address) (uint8, error)
- func (_GraphStaking *GraphStakingSession) GetDelegation(_indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
- func (_GraphStaking *GraphStakingSession) GetIndexerCapacity(_indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) GetIndexerStakedTokens(_indexer common.Address) (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) GetSubgraphAllocatedTokens(_subgraphDeploymentID [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) GetWithdraweableDelegatedTokens(_delegation IStakingDataDelegation) (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) HasStake(_indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) Initialize(_controller common.Address, _minimumIndexerStake *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) IsAllocation(_allocationID common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) IsDelegator(_indexer common.Address, _delegator common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) IsOperator(_operator common.Address, _indexer common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) MaxAllocationEpochs() (uint32, error)
- func (_GraphStaking *GraphStakingSession) MinimumIndexerStake() (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) OperatorAuth(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) ProtocolPercentage() (uint32, error)
- func (_GraphStaking *GraphStakingSession) Rebates(arg0 *big.Int) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingSession) RewardsDestination(arg0 common.Address) (common.Address, error)
- func (_GraphStaking *GraphStakingSession) SetAssetHolder(_assetHolder common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetController(_controller common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetDelegationParameters(_indexingRewardCut uint32, _queryFeeCut uint32, _cooldownBlocks uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetMinimumIndexerStake(_minimumIndexerStake *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetOperator(_operator common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetRebateRatio(_alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetRewardsDestination(_destination common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetSlasher(_slasher common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Slash(_indexer common.Address, _tokens *big.Int, _reward *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Slashers(arg0 common.Address) (bool, error)
- func (_GraphStaking *GraphStakingSession) Stake(_tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) StakeTo(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Stakes(arg0 common.Address) (struct{ ... }, error)
- func (_GraphStaking *GraphStakingSession) SubgraphAllocations(arg0 [32]byte) (*big.Int, error)
- func (_GraphStaking *GraphStakingSession) SyncAllContracts() (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) ThawingPeriod() (uint32, error)
- func (_GraphStaking *GraphStakingSession) Undelegate(_indexer common.Address, _shares *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Unstake(_tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) Withdraw() (*types.Transaction, error)
- func (_GraphStaking *GraphStakingSession) WithdrawDelegated(_indexer common.Address, _delegateToIndexer common.Address) (*types.Transaction, error)
- type GraphStakingSetController
- type GraphStakingSetControllerIterator
- type GraphStakingSetOperator
- type GraphStakingSetOperatorIterator
- type GraphStakingSetRewardsDestination
- type GraphStakingSetRewardsDestinationIterator
- type GraphStakingSlasherUpdate
- type GraphStakingSlasherUpdateIterator
- type GraphStakingStakeDelegated
- type GraphStakingStakeDelegatedIterator
- type GraphStakingStakeDelegatedLocked
- type GraphStakingStakeDelegatedLockedIterator
- type GraphStakingStakeDelegatedWithdrawn
- type GraphStakingStakeDelegatedWithdrawnIterator
- type GraphStakingStakeDeposited
- type GraphStakingStakeDepositedIterator
- type GraphStakingStakeLocked
- type GraphStakingStakeLockedIterator
- type GraphStakingStakeSlashed
- type GraphStakingStakeSlashedIterator
- type GraphStakingStakeWithdrawn
- type GraphStakingStakeWithdrawnIterator
- type GraphStakingTransactor
- func (_GraphStaking *GraphStakingTransactor) AcceptProxy(opts *bind.TransactOpts, _proxy common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) AcceptProxyAndCall(opts *bind.TransactOpts, _proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Allocate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte, _tokens *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) AllocateFrom(opts *bind.TransactOpts, _indexer common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Claim(opts *bind.TransactOpts, _allocationID common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) ClaimMany(opts *bind.TransactOpts, _allocationID []common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) CloseAllocation(opts *bind.TransactOpts, _allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) CloseAllocationMany(opts *bind.TransactOpts, _requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) CloseAndAllocate(opts *bind.TransactOpts, _closingAllocationID common.Address, _poi [32]byte, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Collect(opts *bind.TransactOpts, _tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Delegate(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Initialize(opts *bind.TransactOpts, _controller common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetAssetHolder(opts *bind.TransactOpts, _assetHolder common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetChannelDisputeEpochs(opts *bind.TransactOpts, _channelDisputeEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetCurationPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetDelegationParameters(opts *bind.TransactOpts, _indexingRewardCut uint32, _queryFeeCut uint32, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetDelegationParametersCooldown(opts *bind.TransactOpts, _blocks uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetDelegationRatio(opts *bind.TransactOpts, _delegationRatio uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetDelegationTaxPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetDelegationUnbondingPeriod(opts *bind.TransactOpts, _delegationUnbondingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetMaxAllocationEpochs(opts *bind.TransactOpts, _maxAllocationEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetMinimumIndexerStake(opts *bind.TransactOpts, _minimumIndexerStake *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetOperator(opts *bind.TransactOpts, _operator common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetProtocolPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetRebateRatio(opts *bind.TransactOpts, _alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetRewardsDestination(opts *bind.TransactOpts, _destination common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetSlasher(opts *bind.TransactOpts, _slasher common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SetThawingPeriod(opts *bind.TransactOpts, _thawingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Slash(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Stake(opts *bind.TransactOpts, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) StakeTo(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) SyncAllContracts(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Undelegate(opts *bind.TransactOpts, _indexer common.Address, _shares *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Unstake(opts *bind.TransactOpts, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactor) WithdrawDelegated(opts *bind.TransactOpts, _indexer common.Address, ...) (*types.Transaction, error)
- type GraphStakingTransactorRaw
- type GraphStakingTransactorSession
- func (_GraphStaking *GraphStakingTransactorSession) AcceptProxy(_proxy common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) AcceptProxyAndCall(_proxy common.Address, _data []byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Allocate(_subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) AllocateFrom(_indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Claim(_allocationID common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) ClaimMany(_allocationID []common.Address, _restake bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) CloseAllocation(_allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) CloseAllocationMany(_requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) CloseAndAllocate(_closingAllocationID common.Address, _poi [32]byte, _indexer common.Address, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Collect(_tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Delegate(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Initialize(_controller common.Address, _minimumIndexerStake *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetAssetHolder(_assetHolder common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetController(_controller common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetDelegationParameters(_indexingRewardCut uint32, _queryFeeCut uint32, _cooldownBlocks uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetMinimumIndexerStake(_minimumIndexerStake *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetOperator(_operator common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetRebateRatio(_alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetRewardsDestination(_destination common.Address) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetSlasher(_slasher common.Address, _allowed bool) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Slash(_indexer common.Address, _tokens *big.Int, _reward *big.Int, ...) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Stake(_tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) StakeTo(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) SyncAllContracts() (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Undelegate(_indexer common.Address, _shares *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Unstake(_tokens *big.Int) (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) Withdraw() (*types.Transaction, error)
- func (_GraphStaking *GraphStakingTransactorSession) WithdrawDelegated(_indexer common.Address, _delegateToIndexer common.Address) (*types.Transaction, error)
- type IStakingDataAllocation
- type IStakingDataCloseAllocationRequest
- type IStakingDataDelegation
Constants ¶
This section is empty.
Variables ¶
var GraphStakingABI = GraphStakingMetaData.ABI
GraphStakingABI is the input ABI used to generate the binding from. Deprecated: Use GraphStakingMetaData.ABI instead.
var GraphStakingMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"effectiveAllocation\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"poi\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isPublic\",\"type\":\"bool\"}],\"name\":\"AllocationClosed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"curationFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rebateFees\",\"type\":\"uint256\"}],\"name\":\"AllocationCollected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"metadata\",\"type\":\"bytes32\"}],\"name\":\"AllocationCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"assetHolder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"AssetHolderUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"nameHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"ContractSynced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"indexingRewardCut\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"queryFeeCut\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"cooldownBlocks\",\"type\":\"uint32\"}],\"name\":\"DelegationParametersUpdated\",\"type\":\"event\"},{\"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\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"forEpoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unclaimedAllocationsCount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"delegationFees\",\"type\":\"uint256\"}],\"name\":\"RebateClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"SetOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"}],\"name\":\"SetRewardsDestination\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"slasher\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"SlasherUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"StakeDelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"until\",\"type\":\"uint256\"}],\"name\":\"StakeDelegatedLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"StakeDelegatedWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"StakeDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"until\",\"type\":\"uint256\"}],\"name\":\"StakeLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"StakeSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"StakeWithdrawn\",\"type\":\"event\"},{\"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\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_metadata\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\"}],\"name\":\"allocate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_metadata\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\"}],\"name\":\"allocateFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allocations\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtEpoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAtEpoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"effectiveAllocation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accRewardsPerAllocatedToken\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"alphaDenominator\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"alphaNumerator\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"assetHolders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"channelDisputeEpochs\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_restake\",\"type\":\"bool\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_allocationID\",\"type\":\"address[]\"},{\"internalType\":\"bool\",\"name\":\"_restake\",\"type\":\"bool\"}],\"name\":\"claimMany\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_poi\",\"type\":\"bytes32\"}],\"name\":\"closeAllocation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"allocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"poi\",\"type\":\"bytes32\"}],\"internalType\":\"structIStakingData.CloseAllocationRequest[]\",\"name\":\"_requests\",\"type\":\"tuple[]\"}],\"name\":\"closeAllocationMany\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_closingAllocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_poi\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_metadata\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\"}],\"name\":\"closeAndAllocate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"collect\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contractIController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"curationPercentage\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"}],\"name\":\"delegate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegationParametersCooldown\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"delegationPools\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"cooldownBlocks\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"indexingRewardCut\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"queryFeeCut\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"updatedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegationRatio\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegationTaxPercentage\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegationUnbondingPeriod\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"getAllocation\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"indexer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"subgraphDeploymentID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAtEpoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAtEpoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"effectiveAllocation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accRewardsPerAllocatedToken\",\"type\":\"uint256\"}],\"internalType\":\"structIStakingData.Allocation\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"getAllocationState\",\"outputs\":[{\"internalType\":\"enumIStaking.AllocationState\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"}],\"name\":\"getDelegation\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLocked\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLockedUntil\",\"type\":\"uint256\"}],\"internalType\":\"structIStakingData.Delegation\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"}],\"name\":\"getIndexerCapacity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"}],\"name\":\"getIndexerStakedTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_subgraphDeploymentID\",\"type\":\"bytes32\"}],\"name\":\"getSubgraphAllocatedTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLocked\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLockedUntil\",\"type\":\"uint256\"}],\"internalType\":\"structIStakingData.Delegation\",\"name\":\"_delegation\",\"type\":\"tuple\"}],\"name\":\"getWithdraweableDelegatedTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"}],\"name\":\"hasStake\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_minimumIndexerStake\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"_thawingPeriod\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_protocolPercentage\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_curationPercentage\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_channelDisputeEpochs\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_maxAllocationEpochs\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_delegationUnbondingPeriod\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_delegationRatio\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_rebateAlphaNumerator\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_rebateAlphaDenominator\",\"type\":\"uint32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_allocationID\",\"type\":\"address\"}],\"name\":\"isAllocation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_delegator\",\"type\":\"address\"}],\"name\":\"isDelegator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"}],\"name\":\"isOperator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxAllocationEpochs\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minimumIndexerStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"operatorAuth\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolPercentage\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rebates\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"effectiveAllocatedStake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"unclaimedAllocationsCount\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"alphaNumerator\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"alphaDenominator\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardsDestination\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_assetHolder\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_allowed\",\"type\":\"bool\"}],\"name\":\"setAssetHolder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_channelDisputeEpochs\",\"type\":\"uint32\"}],\"name\":\"setChannelDisputeEpochs\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_percentage\",\"type\":\"uint32\"}],\"name\":\"setCurationPercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_indexingRewardCut\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_queryFeeCut\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_cooldownBlocks\",\"type\":\"uint32\"}],\"name\":\"setDelegationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_blocks\",\"type\":\"uint32\"}],\"name\":\"setDelegationParametersCooldown\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_delegationRatio\",\"type\":\"uint32\"}],\"name\":\"setDelegationRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_percentage\",\"type\":\"uint32\"}],\"name\":\"setDelegationTaxPercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_delegationUnbondingPeriod\",\"type\":\"uint32\"}],\"name\":\"setDelegationUnbondingPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_maxAllocationEpochs\",\"type\":\"uint32\"}],\"name\":\"setMaxAllocationEpochs\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minimumIndexerStake\",\"type\":\"uint256\"}],\"name\":\"setMinimumIndexerStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_allowed\",\"type\":\"bool\"}],\"name\":\"setOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_percentage\",\"type\":\"uint32\"}],\"name\":\"setProtocolPercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_alphaNumerator\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_alphaDenominator\",\"type\":\"uint32\"}],\"name\":\"setRebateRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_destination\",\"type\":\"address\"}],\"name\":\"setRewardsDestination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_slasher\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_allowed\",\"type\":\"bool\"}],\"name\":\"setSlasher\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_thawingPeriod\",\"type\":\"uint32\"}],\"name\":\"setThawingPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reward\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"slash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"slashers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"}],\"name\":\"stakeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"stakes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokensStaked\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensAllocated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLocked\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokensLockedUntil\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subgraphAllocations\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"syncAllContracts\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"thawingPeriod\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_shares\",\"type\":\"uint256\"}],\"name\":\"undelegate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokens\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_indexer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_delegateToIndexer\",\"type\":\"address\"}],\"name\":\"withdrawDelegated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
GraphStakingMetaData contains all meta data concerning the GraphStaking contract.
Functions ¶
This section is empty.
Types ¶
type GraphStaking ¶
type GraphStaking struct { GraphStakingCaller // Read-only binding to the contract GraphStakingTransactor // Write-only binding to the contract GraphStakingFilterer // Log filterer for contract events }
GraphStaking is an auto generated Go binding around an Ethereum contract.
func NewGraphStaking ¶
func NewGraphStaking(address common.Address, backend bind.ContractBackend) (*GraphStaking, error)
NewGraphStaking creates a new instance of GraphStaking, bound to a specific deployed contract.
type GraphStakingAllocationClosed ¶
type GraphStakingAllocationClosed struct { Indexer common.Address SubgraphDeploymentID [32]byte Epoch *big.Int Tokens *big.Int AllocationID common.Address EffectiveAllocation *big.Int Sender common.Address Poi [32]byte IsPublic bool Raw types.Log // Blockchain specific contextual infos }
GraphStakingAllocationClosed represents a AllocationClosed event raised by the GraphStaking contract.
type GraphStakingAllocationClosedIterator ¶
type GraphStakingAllocationClosedIterator struct { Event *GraphStakingAllocationClosed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingAllocationClosedIterator is returned from FilterAllocationClosed and is used to iterate over the raw logs and unpacked data for AllocationClosed events raised by the GraphStaking contract.
func (*GraphStakingAllocationClosedIterator) Close ¶
func (it *GraphStakingAllocationClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingAllocationClosedIterator) Error ¶
func (it *GraphStakingAllocationClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingAllocationClosedIterator) Next ¶
func (it *GraphStakingAllocationClosedIterator) 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 GraphStakingAllocationCollected ¶
type GraphStakingAllocationCollected struct { Indexer common.Address SubgraphDeploymentID [32]byte Epoch *big.Int Tokens *big.Int AllocationID common.Address From common.Address CurationFees *big.Int RebateFees *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingAllocationCollected represents a AllocationCollected event raised by the GraphStaking contract.
type GraphStakingAllocationCollectedIterator ¶
type GraphStakingAllocationCollectedIterator struct { Event *GraphStakingAllocationCollected // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingAllocationCollectedIterator is returned from FilterAllocationCollected and is used to iterate over the raw logs and unpacked data for AllocationCollected events raised by the GraphStaking contract.
func (*GraphStakingAllocationCollectedIterator) Close ¶
func (it *GraphStakingAllocationCollectedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingAllocationCollectedIterator) Error ¶
func (it *GraphStakingAllocationCollectedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingAllocationCollectedIterator) Next ¶
func (it *GraphStakingAllocationCollectedIterator) 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 GraphStakingAllocationCreated ¶
type GraphStakingAllocationCreated struct { Indexer common.Address SubgraphDeploymentID [32]byte Epoch *big.Int Tokens *big.Int AllocationID common.Address Metadata [32]byte Raw types.Log // Blockchain specific contextual infos }
GraphStakingAllocationCreated represents a AllocationCreated event raised by the GraphStaking contract.
type GraphStakingAllocationCreatedIterator ¶
type GraphStakingAllocationCreatedIterator struct { Event *GraphStakingAllocationCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingAllocationCreatedIterator is returned from FilterAllocationCreated and is used to iterate over the raw logs and unpacked data for AllocationCreated events raised by the GraphStaking contract.
func (*GraphStakingAllocationCreatedIterator) Close ¶
func (it *GraphStakingAllocationCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingAllocationCreatedIterator) Error ¶
func (it *GraphStakingAllocationCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingAllocationCreatedIterator) Next ¶
func (it *GraphStakingAllocationCreatedIterator) 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 GraphStakingAssetHolderUpdate ¶
type GraphStakingAssetHolderUpdate struct { Caller common.Address AssetHolder common.Address Allowed bool Raw types.Log // Blockchain specific contextual infos }
GraphStakingAssetHolderUpdate represents a AssetHolderUpdate event raised by the GraphStaking contract.
type GraphStakingAssetHolderUpdateIterator ¶
type GraphStakingAssetHolderUpdateIterator struct { Event *GraphStakingAssetHolderUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingAssetHolderUpdateIterator is returned from FilterAssetHolderUpdate and is used to iterate over the raw logs and unpacked data for AssetHolderUpdate events raised by the GraphStaking contract.
func (*GraphStakingAssetHolderUpdateIterator) Close ¶
func (it *GraphStakingAssetHolderUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingAssetHolderUpdateIterator) Error ¶
func (it *GraphStakingAssetHolderUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingAssetHolderUpdateIterator) Next ¶
func (it *GraphStakingAssetHolderUpdateIterator) 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 GraphStakingCaller ¶
type GraphStakingCaller struct {
// contains filtered or unexported fields
}
GraphStakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGraphStakingCaller ¶
func NewGraphStakingCaller(address common.Address, caller bind.ContractCaller) (*GraphStakingCaller, error)
NewGraphStakingCaller creates a new read-only instance of GraphStaking, bound to a specific deployed contract.
func (*GraphStakingCaller) Allocations ¶
func (_GraphStaking *GraphStakingCaller) Allocations(opts *bind.CallOpts, arg0 common.Address) (struct { Indexer common.Address SubgraphDeploymentID [32]byte Tokens *big.Int CreatedAtEpoch *big.Int ClosedAtEpoch *big.Int CollectedFees *big.Int EffectiveAllocation *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Allocations is a free data retrieval call binding the contract method 0x52a9039c.
Solidity: function allocations(address ) view returns(address indexer, bytes32 subgraphDeploymentID, uint256 tokens, uint256 createdAtEpoch, uint256 closedAtEpoch, uint256 collectedFees, uint256 effectiveAllocation, uint256 accRewardsPerAllocatedToken)
func (*GraphStakingCaller) AlphaDenominator ¶
func (_GraphStaking *GraphStakingCaller) AlphaDenominator(opts *bind.CallOpts) (uint32, error)
AlphaDenominator is a free data retrieval call binding the contract method 0xce853613.
Solidity: function alphaDenominator() view returns(uint32)
func (*GraphStakingCaller) AlphaNumerator ¶
func (_GraphStaking *GraphStakingCaller) AlphaNumerator(opts *bind.CallOpts) (uint32, error)
AlphaNumerator is a free data retrieval call binding the contract method 0x7ef82070.
Solidity: function alphaNumerator() view returns(uint32)
func (*GraphStakingCaller) AssetHolders ¶
func (_GraphStaking *GraphStakingCaller) AssetHolders(opts *bind.CallOpts, arg0 common.Address) (bool, error)
AssetHolders is a free data retrieval call binding the contract method 0x6b535d7e.
Solidity: function assetHolders(address ) view returns(bool)
func (*GraphStakingCaller) ChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingCaller) ChannelDisputeEpochs(opts *bind.CallOpts) (uint32, error)
ChannelDisputeEpochs is a free data retrieval call binding the contract method 0xba8c8193.
Solidity: function channelDisputeEpochs() view returns(uint32)
func (*GraphStakingCaller) Controller ¶
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*GraphStakingCaller) CurationPercentage ¶
func (_GraphStaking *GraphStakingCaller) CurationPercentage(opts *bind.CallOpts) (uint32, error)
CurationPercentage is a free data retrieval call binding the contract method 0x85b52ad0.
Solidity: function curationPercentage() view returns(uint32)
func (*GraphStakingCaller) DelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingCaller) DelegationParametersCooldown(opts *bind.CallOpts) (uint32, error)
DelegationParametersCooldown is a free data retrieval call binding the contract method 0x8a7ff87d.
Solidity: function delegationParametersCooldown() view returns(uint32)
func (*GraphStakingCaller) DelegationPools ¶
func (_GraphStaking *GraphStakingCaller) DelegationPools(opts *bind.CallOpts, arg0 common.Address) (struct { CooldownBlocks uint32 IndexingRewardCut uint32 QueryFeeCut uint32 UpdatedAtBlock *big.Int Tokens *big.Int Shares *big.Int }, error)
DelegationPools is a free data retrieval call binding the contract method 0x92511c8f.
Solidity: function delegationPools(address ) view returns(uint32 cooldownBlocks, uint32 indexingRewardCut, uint32 queryFeeCut, uint256 updatedAtBlock, uint256 tokens, uint256 shares)
func (*GraphStakingCaller) DelegationRatio ¶
func (_GraphStaking *GraphStakingCaller) DelegationRatio(opts *bind.CallOpts) (uint32, error)
DelegationRatio is a free data retrieval call binding the contract method 0xbfdfa7af.
Solidity: function delegationRatio() view returns(uint32)
func (*GraphStakingCaller) DelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingCaller) DelegationTaxPercentage(opts *bind.CallOpts) (uint32, error)
DelegationTaxPercentage is a free data retrieval call binding the contract method 0xe6aeb796.
Solidity: function delegationTaxPercentage() view returns(uint32)
func (*GraphStakingCaller) DelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingCaller) DelegationUnbondingPeriod(opts *bind.CallOpts) (uint32, error)
DelegationUnbondingPeriod is a free data retrieval call binding the contract method 0xb6846e47.
Solidity: function delegationUnbondingPeriod() view returns(uint32)
func (*GraphStakingCaller) GetAllocation ¶
func (_GraphStaking *GraphStakingCaller) GetAllocation(opts *bind.CallOpts, _allocationID common.Address) (IStakingDataAllocation, error)
GetAllocation is a free data retrieval call binding the contract method 0x0e022923.
Solidity: function getAllocation(address _allocationID) view returns((address,bytes32,uint256,uint256,uint256,uint256,uint256,uint256))
func (*GraphStakingCaller) GetAllocationState ¶
func (_GraphStaking *GraphStakingCaller) GetAllocationState(opts *bind.CallOpts, _allocationID common.Address) (uint8, error)
GetAllocationState is a free data retrieval call binding the contract method 0x98c657dc.
Solidity: function getAllocationState(address _allocationID) view returns(uint8)
func (*GraphStakingCaller) GetDelegation ¶
func (_GraphStaking *GraphStakingCaller) GetDelegation(opts *bind.CallOpts, _indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address _indexer, address _delegator) view returns((uint256,uint256,uint256))
func (*GraphStakingCaller) GetIndexerCapacity ¶
func (_GraphStaking *GraphStakingCaller) GetIndexerCapacity(opts *bind.CallOpts, _indexer common.Address) (*big.Int, error)
GetIndexerCapacity is a free data retrieval call binding the contract method 0xa510be20.
Solidity: function getIndexerCapacity(address _indexer) view returns(uint256)
func (*GraphStakingCaller) GetIndexerStakedTokens ¶
func (_GraphStaking *GraphStakingCaller) GetIndexerStakedTokens(opts *bind.CallOpts, _indexer common.Address) (*big.Int, error)
GetIndexerStakedTokens is a free data retrieval call binding the contract method 0x1787e69f.
Solidity: function getIndexerStakedTokens(address _indexer) view returns(uint256)
func (*GraphStakingCaller) GetSubgraphAllocatedTokens ¶
func (_GraphStaking *GraphStakingCaller) GetSubgraphAllocatedTokens(opts *bind.CallOpts, _subgraphDeploymentID [32]byte) (*big.Int, error)
GetSubgraphAllocatedTokens is a free data retrieval call binding the contract method 0xe2e1e8e9.
Solidity: function getSubgraphAllocatedTokens(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*GraphStakingCaller) GetWithdraweableDelegatedTokens ¶
func (_GraphStaking *GraphStakingCaller) GetWithdraweableDelegatedTokens(opts *bind.CallOpts, _delegation IStakingDataDelegation) (*big.Int, error)
GetWithdraweableDelegatedTokens is a free data retrieval call binding the contract method 0x130bea57.
Solidity: function getWithdraweableDelegatedTokens((uint256,uint256,uint256) _delegation) view returns(uint256)
func (*GraphStakingCaller) HasStake ¶
func (_GraphStaking *GraphStakingCaller) HasStake(opts *bind.CallOpts, _indexer common.Address) (bool, error)
HasStake is a free data retrieval call binding the contract method 0xe73e14bf.
Solidity: function hasStake(address _indexer) view returns(bool)
func (*GraphStakingCaller) IsAllocation ¶
func (_GraphStaking *GraphStakingCaller) IsAllocation(opts *bind.CallOpts, _allocationID common.Address) (bool, error)
IsAllocation is a free data retrieval call binding the contract method 0xf1d60d66.
Solidity: function isAllocation(address _allocationID) view returns(bool)
func (*GraphStakingCaller) IsDelegator ¶
func (_GraphStaking *GraphStakingCaller) IsDelegator(opts *bind.CallOpts, _indexer common.Address, _delegator common.Address) (bool, error)
IsDelegator is a free data retrieval call binding the contract method 0xa0e11929.
Solidity: function isDelegator(address _indexer, address _delegator) view returns(bool)
func (*GraphStakingCaller) IsOperator ¶
func (_GraphStaking *GraphStakingCaller) IsOperator(opts *bind.CallOpts, _operator common.Address, _indexer common.Address) (bool, error)
IsOperator is a free data retrieval call binding the contract method 0xb6363cf2.
Solidity: function isOperator(address _operator, address _indexer) view returns(bool)
func (*GraphStakingCaller) MaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingCaller) MaxAllocationEpochs(opts *bind.CallOpts) (uint32, error)
MaxAllocationEpochs is a free data retrieval call binding the contract method 0xfb765938.
Solidity: function maxAllocationEpochs() view returns(uint32)
func (*GraphStakingCaller) MinimumIndexerStake ¶
MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.
Solidity: function minimumIndexerStake() view returns(uint256)
func (*GraphStakingCaller) OperatorAuth ¶
func (_GraphStaking *GraphStakingCaller) OperatorAuth(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
OperatorAuth is a free data retrieval call binding the contract method 0xe2e94656.
Solidity: function operatorAuth(address , address ) view returns(bool)
func (*GraphStakingCaller) ProtocolPercentage ¶
func (_GraphStaking *GraphStakingCaller) ProtocolPercentage(opts *bind.CallOpts) (uint32, error)
ProtocolPercentage is a free data retrieval call binding the contract method 0xa26b90f2.
Solidity: function protocolPercentage() view returns(uint32)
func (*GraphStakingCaller) Rebates ¶
func (_GraphStaking *GraphStakingCaller) Rebates(opts *bind.CallOpts, arg0 *big.Int) (struct { Fees *big.Int EffectiveAllocatedStake *big.Int ClaimedRewards *big.Int UnclaimedAllocationsCount uint32 AlphaNumerator uint32 AlphaDenominator uint32 }, error)
Rebates is a free data retrieval call binding the contract method 0xd3cb644c.
Solidity: function rebates(uint256 ) view returns(uint256 fees, uint256 effectiveAllocatedStake, uint256 claimedRewards, uint32 unclaimedAllocationsCount, uint32 alphaNumerator, uint32 alphaDenominator)
func (*GraphStakingCaller) RewardsDestination ¶
func (_GraphStaking *GraphStakingCaller) RewardsDestination(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
RewardsDestination is a free data retrieval call binding the contract method 0x7203ca78.
Solidity: function rewardsDestination(address ) view returns(address)
func (*GraphStakingCaller) Slashers ¶
func (_GraphStaking *GraphStakingCaller) Slashers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
Slashers is a free data retrieval call binding the contract method 0xb87fcbff.
Solidity: function slashers(address ) view returns(bool)
func (*GraphStakingCaller) Stakes ¶
func (_GraphStaking *GraphStakingCaller) Stakes(opts *bind.CallOpts, arg0 common.Address) (struct { TokensStaked *big.Int TokensAllocated *big.Int TokensLocked *big.Int TokensLockedUntil *big.Int }, error)
Stakes is a free data retrieval call binding the contract method 0x16934fc4.
Solidity: function stakes(address ) view returns(uint256 tokensStaked, uint256 tokensAllocated, uint256 tokensLocked, uint256 tokensLockedUntil)
func (*GraphStakingCaller) SubgraphAllocations ¶
func (_GraphStaking *GraphStakingCaller) SubgraphAllocations(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
SubgraphAllocations is a free data retrieval call binding the contract method 0xb1468f52.
Solidity: function subgraphAllocations(bytes32 ) view returns(uint256)
func (*GraphStakingCaller) ThawingPeriod ¶
func (_GraphStaking *GraphStakingCaller) ThawingPeriod(opts *bind.CallOpts) (uint32, error)
ThawingPeriod is a free data retrieval call binding the contract method 0xcdc747dd.
Solidity: function thawingPeriod() view returns(uint32)
type GraphStakingCallerRaw ¶
type GraphStakingCallerRaw struct {
Contract *GraphStakingCaller // Generic read-only contract binding to access the raw methods on
}
GraphStakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GraphStakingCallerRaw) Call ¶
func (_GraphStaking *GraphStakingCallerRaw) 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 GraphStakingCallerSession ¶
type GraphStakingCallerSession struct { Contract *GraphStakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GraphStakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GraphStakingCallerSession) Allocations ¶
func (_GraphStaking *GraphStakingCallerSession) Allocations(arg0 common.Address) (struct { Indexer common.Address SubgraphDeploymentID [32]byte Tokens *big.Int CreatedAtEpoch *big.Int ClosedAtEpoch *big.Int CollectedFees *big.Int EffectiveAllocation *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Allocations is a free data retrieval call binding the contract method 0x52a9039c.
Solidity: function allocations(address ) view returns(address indexer, bytes32 subgraphDeploymentID, uint256 tokens, uint256 createdAtEpoch, uint256 closedAtEpoch, uint256 collectedFees, uint256 effectiveAllocation, uint256 accRewardsPerAllocatedToken)
func (*GraphStakingCallerSession) AlphaDenominator ¶
func (_GraphStaking *GraphStakingCallerSession) AlphaDenominator() (uint32, error)
AlphaDenominator is a free data retrieval call binding the contract method 0xce853613.
Solidity: function alphaDenominator() view returns(uint32)
func (*GraphStakingCallerSession) AlphaNumerator ¶
func (_GraphStaking *GraphStakingCallerSession) AlphaNumerator() (uint32, error)
AlphaNumerator is a free data retrieval call binding the contract method 0x7ef82070.
Solidity: function alphaNumerator() view returns(uint32)
func (*GraphStakingCallerSession) AssetHolders ¶
func (_GraphStaking *GraphStakingCallerSession) AssetHolders(arg0 common.Address) (bool, error)
AssetHolders is a free data retrieval call binding the contract method 0x6b535d7e.
Solidity: function assetHolders(address ) view returns(bool)
func (*GraphStakingCallerSession) ChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingCallerSession) ChannelDisputeEpochs() (uint32, error)
ChannelDisputeEpochs is a free data retrieval call binding the contract method 0xba8c8193.
Solidity: function channelDisputeEpochs() view returns(uint32)
func (*GraphStakingCallerSession) Controller ¶
func (_GraphStaking *GraphStakingCallerSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*GraphStakingCallerSession) CurationPercentage ¶
func (_GraphStaking *GraphStakingCallerSession) CurationPercentage() (uint32, error)
CurationPercentage is a free data retrieval call binding the contract method 0x85b52ad0.
Solidity: function curationPercentage() view returns(uint32)
func (*GraphStakingCallerSession) DelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingCallerSession) DelegationParametersCooldown() (uint32, error)
DelegationParametersCooldown is a free data retrieval call binding the contract method 0x8a7ff87d.
Solidity: function delegationParametersCooldown() view returns(uint32)
func (*GraphStakingCallerSession) DelegationPools ¶
func (_GraphStaking *GraphStakingCallerSession) DelegationPools(arg0 common.Address) (struct { CooldownBlocks uint32 IndexingRewardCut uint32 QueryFeeCut uint32 UpdatedAtBlock *big.Int Tokens *big.Int Shares *big.Int }, error)
DelegationPools is a free data retrieval call binding the contract method 0x92511c8f.
Solidity: function delegationPools(address ) view returns(uint32 cooldownBlocks, uint32 indexingRewardCut, uint32 queryFeeCut, uint256 updatedAtBlock, uint256 tokens, uint256 shares)
func (*GraphStakingCallerSession) DelegationRatio ¶
func (_GraphStaking *GraphStakingCallerSession) DelegationRatio() (uint32, error)
DelegationRatio is a free data retrieval call binding the contract method 0xbfdfa7af.
Solidity: function delegationRatio() view returns(uint32)
func (*GraphStakingCallerSession) DelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingCallerSession) DelegationTaxPercentage() (uint32, error)
DelegationTaxPercentage is a free data retrieval call binding the contract method 0xe6aeb796.
Solidity: function delegationTaxPercentage() view returns(uint32)
func (*GraphStakingCallerSession) DelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingCallerSession) DelegationUnbondingPeriod() (uint32, error)
DelegationUnbondingPeriod is a free data retrieval call binding the contract method 0xb6846e47.
Solidity: function delegationUnbondingPeriod() view returns(uint32)
func (*GraphStakingCallerSession) GetAllocation ¶
func (_GraphStaking *GraphStakingCallerSession) GetAllocation(_allocationID common.Address) (IStakingDataAllocation, error)
GetAllocation is a free data retrieval call binding the contract method 0x0e022923.
Solidity: function getAllocation(address _allocationID) view returns((address,bytes32,uint256,uint256,uint256,uint256,uint256,uint256))
func (*GraphStakingCallerSession) GetAllocationState ¶
func (_GraphStaking *GraphStakingCallerSession) GetAllocationState(_allocationID common.Address) (uint8, error)
GetAllocationState is a free data retrieval call binding the contract method 0x98c657dc.
Solidity: function getAllocationState(address _allocationID) view returns(uint8)
func (*GraphStakingCallerSession) GetDelegation ¶
func (_GraphStaking *GraphStakingCallerSession) GetDelegation(_indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address _indexer, address _delegator) view returns((uint256,uint256,uint256))
func (*GraphStakingCallerSession) GetIndexerCapacity ¶
func (_GraphStaking *GraphStakingCallerSession) GetIndexerCapacity(_indexer common.Address) (*big.Int, error)
GetIndexerCapacity is a free data retrieval call binding the contract method 0xa510be20.
Solidity: function getIndexerCapacity(address _indexer) view returns(uint256)
func (*GraphStakingCallerSession) GetIndexerStakedTokens ¶
func (_GraphStaking *GraphStakingCallerSession) GetIndexerStakedTokens(_indexer common.Address) (*big.Int, error)
GetIndexerStakedTokens is a free data retrieval call binding the contract method 0x1787e69f.
Solidity: function getIndexerStakedTokens(address _indexer) view returns(uint256)
func (*GraphStakingCallerSession) GetSubgraphAllocatedTokens ¶
func (_GraphStaking *GraphStakingCallerSession) GetSubgraphAllocatedTokens(_subgraphDeploymentID [32]byte) (*big.Int, error)
GetSubgraphAllocatedTokens is a free data retrieval call binding the contract method 0xe2e1e8e9.
Solidity: function getSubgraphAllocatedTokens(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*GraphStakingCallerSession) GetWithdraweableDelegatedTokens ¶
func (_GraphStaking *GraphStakingCallerSession) GetWithdraweableDelegatedTokens(_delegation IStakingDataDelegation) (*big.Int, error)
GetWithdraweableDelegatedTokens is a free data retrieval call binding the contract method 0x130bea57.
Solidity: function getWithdraweableDelegatedTokens((uint256,uint256,uint256) _delegation) view returns(uint256)
func (*GraphStakingCallerSession) HasStake ¶
func (_GraphStaking *GraphStakingCallerSession) HasStake(_indexer common.Address) (bool, error)
HasStake is a free data retrieval call binding the contract method 0xe73e14bf.
Solidity: function hasStake(address _indexer) view returns(bool)
func (*GraphStakingCallerSession) IsAllocation ¶
func (_GraphStaking *GraphStakingCallerSession) IsAllocation(_allocationID common.Address) (bool, error)
IsAllocation is a free data retrieval call binding the contract method 0xf1d60d66.
Solidity: function isAllocation(address _allocationID) view returns(bool)
func (*GraphStakingCallerSession) IsDelegator ¶
func (_GraphStaking *GraphStakingCallerSession) IsDelegator(_indexer common.Address, _delegator common.Address) (bool, error)
IsDelegator is a free data retrieval call binding the contract method 0xa0e11929.
Solidity: function isDelegator(address _indexer, address _delegator) view returns(bool)
func (*GraphStakingCallerSession) IsOperator ¶
func (_GraphStaking *GraphStakingCallerSession) IsOperator(_operator common.Address, _indexer common.Address) (bool, error)
IsOperator is a free data retrieval call binding the contract method 0xb6363cf2.
Solidity: function isOperator(address _operator, address _indexer) view returns(bool)
func (*GraphStakingCallerSession) MaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingCallerSession) MaxAllocationEpochs() (uint32, error)
MaxAllocationEpochs is a free data retrieval call binding the contract method 0xfb765938.
Solidity: function maxAllocationEpochs() view returns(uint32)
func (*GraphStakingCallerSession) MinimumIndexerStake ¶
func (_GraphStaking *GraphStakingCallerSession) MinimumIndexerStake() (*big.Int, error)
MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.
Solidity: function minimumIndexerStake() view returns(uint256)
func (*GraphStakingCallerSession) OperatorAuth ¶
func (_GraphStaking *GraphStakingCallerSession) OperatorAuth(arg0 common.Address, arg1 common.Address) (bool, error)
OperatorAuth is a free data retrieval call binding the contract method 0xe2e94656.
Solidity: function operatorAuth(address , address ) view returns(bool)
func (*GraphStakingCallerSession) ProtocolPercentage ¶
func (_GraphStaking *GraphStakingCallerSession) ProtocolPercentage() (uint32, error)
ProtocolPercentage is a free data retrieval call binding the contract method 0xa26b90f2.
Solidity: function protocolPercentage() view returns(uint32)
func (*GraphStakingCallerSession) Rebates ¶
func (_GraphStaking *GraphStakingCallerSession) Rebates(arg0 *big.Int) (struct { Fees *big.Int EffectiveAllocatedStake *big.Int ClaimedRewards *big.Int UnclaimedAllocationsCount uint32 AlphaNumerator uint32 AlphaDenominator uint32 }, error)
Rebates is a free data retrieval call binding the contract method 0xd3cb644c.
Solidity: function rebates(uint256 ) view returns(uint256 fees, uint256 effectiveAllocatedStake, uint256 claimedRewards, uint32 unclaimedAllocationsCount, uint32 alphaNumerator, uint32 alphaDenominator)
func (*GraphStakingCallerSession) RewardsDestination ¶
func (_GraphStaking *GraphStakingCallerSession) RewardsDestination(arg0 common.Address) (common.Address, error)
RewardsDestination is a free data retrieval call binding the contract method 0x7203ca78.
Solidity: function rewardsDestination(address ) view returns(address)
func (*GraphStakingCallerSession) Slashers ¶
func (_GraphStaking *GraphStakingCallerSession) Slashers(arg0 common.Address) (bool, error)
Slashers is a free data retrieval call binding the contract method 0xb87fcbff.
Solidity: function slashers(address ) view returns(bool)
func (*GraphStakingCallerSession) Stakes ¶
func (_GraphStaking *GraphStakingCallerSession) Stakes(arg0 common.Address) (struct { TokensStaked *big.Int TokensAllocated *big.Int TokensLocked *big.Int TokensLockedUntil *big.Int }, error)
Stakes is a free data retrieval call binding the contract method 0x16934fc4.
Solidity: function stakes(address ) view returns(uint256 tokensStaked, uint256 tokensAllocated, uint256 tokensLocked, uint256 tokensLockedUntil)
func (*GraphStakingCallerSession) SubgraphAllocations ¶
func (_GraphStaking *GraphStakingCallerSession) SubgraphAllocations(arg0 [32]byte) (*big.Int, error)
SubgraphAllocations is a free data retrieval call binding the contract method 0xb1468f52.
Solidity: function subgraphAllocations(bytes32 ) view returns(uint256)
func (*GraphStakingCallerSession) ThawingPeriod ¶
func (_GraphStaking *GraphStakingCallerSession) ThawingPeriod() (uint32, error)
ThawingPeriod is a free data retrieval call binding the contract method 0xcdc747dd.
Solidity: function thawingPeriod() view returns(uint32)
type GraphStakingContractSynced ¶
type GraphStakingContractSynced struct { NameHash [32]byte ContractAddress common.Address Raw types.Log // Blockchain specific contextual infos }
GraphStakingContractSynced represents a ContractSynced event raised by the GraphStaking contract.
type GraphStakingContractSyncedIterator ¶
type GraphStakingContractSyncedIterator struct { Event *GraphStakingContractSynced // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingContractSyncedIterator is returned from FilterContractSynced and is used to iterate over the raw logs and unpacked data for ContractSynced events raised by the GraphStaking contract.
func (*GraphStakingContractSyncedIterator) Close ¶
func (it *GraphStakingContractSyncedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingContractSyncedIterator) Error ¶
func (it *GraphStakingContractSyncedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingContractSyncedIterator) Next ¶
func (it *GraphStakingContractSyncedIterator) 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 GraphStakingDelegationParametersUpdated ¶
type GraphStakingDelegationParametersUpdated struct { Indexer common.Address IndexingRewardCut uint32 QueryFeeCut uint32 CooldownBlocks uint32 Raw types.Log // Blockchain specific contextual infos }
GraphStakingDelegationParametersUpdated represents a DelegationParametersUpdated event raised by the GraphStaking contract.
type GraphStakingDelegationParametersUpdatedIterator ¶
type GraphStakingDelegationParametersUpdatedIterator struct { Event *GraphStakingDelegationParametersUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingDelegationParametersUpdatedIterator is returned from FilterDelegationParametersUpdated and is used to iterate over the raw logs and unpacked data for DelegationParametersUpdated events raised by the GraphStaking contract.
func (*GraphStakingDelegationParametersUpdatedIterator) Close ¶
func (it *GraphStakingDelegationParametersUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingDelegationParametersUpdatedIterator) Error ¶
func (it *GraphStakingDelegationParametersUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingDelegationParametersUpdatedIterator) Next ¶
func (it *GraphStakingDelegationParametersUpdatedIterator) 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 GraphStakingFilterer ¶
type GraphStakingFilterer struct {
// contains filtered or unexported fields
}
GraphStakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGraphStakingFilterer ¶
func NewGraphStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*GraphStakingFilterer, error)
NewGraphStakingFilterer creates a new log filterer instance of GraphStaking, bound to a specific deployed contract.
func (*GraphStakingFilterer) FilterAllocationClosed ¶
func (_GraphStaking *GraphStakingFilterer) FilterAllocationClosed(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*GraphStakingAllocationClosedIterator, error)
FilterAllocationClosed is a free log retrieval operation binding the contract event 0x7203ffa6902c4c2a85ac2612321460fa20e29a972c272ecedfdf95f944616269.
Solidity: event AllocationClosed(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, uint256 effectiveAllocation, address sender, bytes32 poi, bool isPublic)
func (*GraphStakingFilterer) FilterAllocationCollected ¶
func (_GraphStaking *GraphStakingFilterer) FilterAllocationCollected(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*GraphStakingAllocationCollectedIterator, error)
FilterAllocationCollected is a free log retrieval operation binding the contract event 0x18040f6f54270f646d21bc8e963105c53499cbcebe6f2a5b32c7018e18a3451e.
Solidity: event AllocationCollected(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, address from, uint256 curationFees, uint256 rebateFees)
func (*GraphStakingFilterer) FilterAllocationCreated ¶
func (_GraphStaking *GraphStakingFilterer) FilterAllocationCreated(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*GraphStakingAllocationCreatedIterator, error)
FilterAllocationCreated is a free log retrieval operation binding the contract event 0x0f73ab5f706106366951b51f760e0a6f60c794f233d90958d81c82ad84fa6e87.
Solidity: event AllocationCreated(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, bytes32 metadata)
func (*GraphStakingFilterer) FilterAssetHolderUpdate ¶
func (_GraphStaking *GraphStakingFilterer) FilterAssetHolderUpdate(opts *bind.FilterOpts, caller []common.Address, assetHolder []common.Address) (*GraphStakingAssetHolderUpdateIterator, error)
FilterAssetHolderUpdate is a free log retrieval operation binding the contract event 0x3a8d5e92bb089ebd158e2c22dc449009d62b0df02b6a6792bb0c5fc33f240fcb.
Solidity: event AssetHolderUpdate(address indexed caller, address indexed assetHolder, bool allowed)
func (*GraphStakingFilterer) FilterContractSynced ¶
func (_GraphStaking *GraphStakingFilterer) FilterContractSynced(opts *bind.FilterOpts, nameHash [][32]byte) (*GraphStakingContractSyncedIterator, error)
FilterContractSynced is a free log retrieval operation binding the contract event 0xd0e7a942b1fc38c411c4f53d153ba14fd24542a6a35ebacd9b6afca1a154e206.
Solidity: event ContractSynced(bytes32 indexed nameHash, address contractAddress)
func (*GraphStakingFilterer) FilterDelegationParametersUpdated ¶
func (_GraphStaking *GraphStakingFilterer) FilterDelegationParametersUpdated(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingDelegationParametersUpdatedIterator, error)
FilterDelegationParametersUpdated is a free log retrieval operation binding the contract event 0xdd5c1add84431df7ff63c721510522fbccafda37dfc33f0f5094d90135a8f22a.
Solidity: event DelegationParametersUpdated(address indexed indexer, uint32 indexingRewardCut, uint32 queryFeeCut, uint32 cooldownBlocks)
func (*GraphStakingFilterer) FilterParameterUpdated ¶
func (_GraphStaking *GraphStakingFilterer) FilterParameterUpdated(opts *bind.FilterOpts) (*GraphStakingParameterUpdatedIterator, error)
FilterParameterUpdated is a free log retrieval operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*GraphStakingFilterer) FilterRebateClaimed ¶
func (_GraphStaking *GraphStakingFilterer) FilterRebateClaimed(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*GraphStakingRebateClaimedIterator, error)
FilterRebateClaimed is a free log retrieval operation binding the contract event 0xb5f11a762db39abff5529064f3103b1abb9a5a3ba3d61972c1a7006d09db7d20.
Solidity: event RebateClaimed(address indexed indexer, bytes32 indexed subgraphDeploymentID, address indexed allocationID, uint256 epoch, uint256 forEpoch, uint256 tokens, uint256 unclaimedAllocationsCount, uint256 delegationFees)
func (*GraphStakingFilterer) FilterSetController ¶
func (_GraphStaking *GraphStakingFilterer) FilterSetController(opts *bind.FilterOpts) (*GraphStakingSetControllerIterator, error)
FilterSetController is a free log retrieval operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
func (*GraphStakingFilterer) FilterSetOperator ¶
func (_GraphStaking *GraphStakingFilterer) FilterSetOperator(opts *bind.FilterOpts, indexer []common.Address, operator []common.Address) (*GraphStakingSetOperatorIterator, error)
FilterSetOperator is a free log retrieval operation binding the contract event 0xa3581229e2c315eb01303f468621e07aa9b628a23b1608162ae063f143355135.
Solidity: event SetOperator(address indexed indexer, address indexed operator, bool allowed)
func (*GraphStakingFilterer) FilterSetRewardsDestination ¶
func (_GraphStaking *GraphStakingFilterer) FilterSetRewardsDestination(opts *bind.FilterOpts, indexer []common.Address, destination []common.Address) (*GraphStakingSetRewardsDestinationIterator, error)
FilterSetRewardsDestination is a free log retrieval operation binding the contract event 0x29c33cd533c17d8916c8e471a4e2c4d1e34caa9b8844527c0bb182b3c104c7d3.
Solidity: event SetRewardsDestination(address indexed indexer, address indexed destination)
func (*GraphStakingFilterer) FilterSlasherUpdate ¶
func (_GraphStaking *GraphStakingFilterer) FilterSlasherUpdate(opts *bind.FilterOpts, caller []common.Address, slasher []common.Address) (*GraphStakingSlasherUpdateIterator, error)
FilterSlasherUpdate is a free log retrieval operation binding the contract event 0x87ea6771e87d96ce16dbe8eda64da9473733e4c1c568baf8ae47256c5bd765e9.
Solidity: event SlasherUpdate(address indexed caller, address indexed slasher, bool allowed)
func (*GraphStakingFilterer) FilterStakeDelegated ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegated(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedIterator, error)
FilterStakeDelegated is a free log retrieval operation binding the contract event 0xcd0366dce5247d874ffc60a762aa7abbb82c1695bbb171609c1b8861e279eb73.
Solidity: event StakeDelegated(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares)
func (*GraphStakingFilterer) FilterStakeDelegatedLocked ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegatedLocked(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedLockedIterator, error)
FilterStakeDelegatedLocked is a free log retrieval operation binding the contract event 0x0430183f84d9c4502386d499da806543dee1d9de83c08b01e39a6d2116c43b25.
Solidity: event StakeDelegatedLocked(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares, uint256 until)
func (*GraphStakingFilterer) FilterStakeDelegatedWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeDelegatedWithdrawn(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*GraphStakingStakeDelegatedWithdrawnIterator, error)
FilterStakeDelegatedWithdrawn is a free log retrieval operation binding the contract event 0x1b2e7737e043c5cf1b587ceb4daeb7ae00148b9bda8f79f1093eead08f141952.
Solidity: event StakeDelegatedWithdrawn(address indexed indexer, address indexed delegator, uint256 tokens)
func (*GraphStakingFilterer) FilterStakeDeposited ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeDeposited(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeDepositedIterator, error)
FilterStakeDeposited is a free log retrieval operation binding the contract event 0x0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2.
Solidity: event StakeDeposited(address indexed indexer, uint256 tokens)
func (*GraphStakingFilterer) FilterStakeLocked ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeLocked(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeLockedIterator, error)
FilterStakeLocked is a free log retrieval operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.
Solidity: event StakeLocked(address indexed indexer, uint256 tokens, uint256 until)
func (*GraphStakingFilterer) FilterStakeSlashed ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeSlashed(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeSlashedIterator, error)
FilterStakeSlashed is a free log retrieval operation binding the contract event 0xf2717be2f27d9d2d7d265e42dc556e40d2d9aeaba02f49c5286030f30c0571f3.
Solidity: event StakeSlashed(address indexed indexer, uint256 tokens, uint256 reward, address beneficiary)
func (*GraphStakingFilterer) FilterStakeWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, indexer []common.Address) (*GraphStakingStakeWithdrawnIterator, error)
FilterStakeWithdrawn is a free log retrieval operation binding the contract event 0x8108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc.
Solidity: event StakeWithdrawn(address indexed indexer, uint256 tokens)
func (*GraphStakingFilterer) ParseAllocationClosed ¶
func (_GraphStaking *GraphStakingFilterer) ParseAllocationClosed(log types.Log) (*GraphStakingAllocationClosed, error)
ParseAllocationClosed is a log parse operation binding the contract event 0x7203ffa6902c4c2a85ac2612321460fa20e29a972c272ecedfdf95f944616269.
Solidity: event AllocationClosed(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, uint256 effectiveAllocation, address sender, bytes32 poi, bool isPublic)
func (*GraphStakingFilterer) ParseAllocationCollected ¶
func (_GraphStaking *GraphStakingFilterer) ParseAllocationCollected(log types.Log) (*GraphStakingAllocationCollected, error)
ParseAllocationCollected is a log parse operation binding the contract event 0x18040f6f54270f646d21bc8e963105c53499cbcebe6f2a5b32c7018e18a3451e.
Solidity: event AllocationCollected(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, address from, uint256 curationFees, uint256 rebateFees)
func (*GraphStakingFilterer) ParseAllocationCreated ¶
func (_GraphStaking *GraphStakingFilterer) ParseAllocationCreated(log types.Log) (*GraphStakingAllocationCreated, error)
ParseAllocationCreated is a log parse operation binding the contract event 0x0f73ab5f706106366951b51f760e0a6f60c794f233d90958d81c82ad84fa6e87.
Solidity: event AllocationCreated(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, bytes32 metadata)
func (*GraphStakingFilterer) ParseAssetHolderUpdate ¶
func (_GraphStaking *GraphStakingFilterer) ParseAssetHolderUpdate(log types.Log) (*GraphStakingAssetHolderUpdate, error)
ParseAssetHolderUpdate is a log parse operation binding the contract event 0x3a8d5e92bb089ebd158e2c22dc449009d62b0df02b6a6792bb0c5fc33f240fcb.
Solidity: event AssetHolderUpdate(address indexed caller, address indexed assetHolder, bool allowed)
func (*GraphStakingFilterer) ParseContractSynced ¶
func (_GraphStaking *GraphStakingFilterer) ParseContractSynced(log types.Log) (*GraphStakingContractSynced, error)
ParseContractSynced is a log parse operation binding the contract event 0xd0e7a942b1fc38c411c4f53d153ba14fd24542a6a35ebacd9b6afca1a154e206.
Solidity: event ContractSynced(bytes32 indexed nameHash, address contractAddress)
func (*GraphStakingFilterer) ParseDelegationParametersUpdated ¶
func (_GraphStaking *GraphStakingFilterer) ParseDelegationParametersUpdated(log types.Log) (*GraphStakingDelegationParametersUpdated, error)
ParseDelegationParametersUpdated is a log parse operation binding the contract event 0xdd5c1add84431df7ff63c721510522fbccafda37dfc33f0f5094d90135a8f22a.
Solidity: event DelegationParametersUpdated(address indexed indexer, uint32 indexingRewardCut, uint32 queryFeeCut, uint32 cooldownBlocks)
func (*GraphStakingFilterer) ParseParameterUpdated ¶
func (_GraphStaking *GraphStakingFilterer) ParseParameterUpdated(log types.Log) (*GraphStakingParameterUpdated, error)
ParseParameterUpdated is a log parse operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*GraphStakingFilterer) ParseRebateClaimed ¶
func (_GraphStaking *GraphStakingFilterer) ParseRebateClaimed(log types.Log) (*GraphStakingRebateClaimed, error)
ParseRebateClaimed is a log parse operation binding the contract event 0xb5f11a762db39abff5529064f3103b1abb9a5a3ba3d61972c1a7006d09db7d20.
Solidity: event RebateClaimed(address indexed indexer, bytes32 indexed subgraphDeploymentID, address indexed allocationID, uint256 epoch, uint256 forEpoch, uint256 tokens, uint256 unclaimedAllocationsCount, uint256 delegationFees)
func (*GraphStakingFilterer) ParseSetController ¶
func (_GraphStaking *GraphStakingFilterer) ParseSetController(log types.Log) (*GraphStakingSetController, error)
ParseSetController is a log parse operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
func (*GraphStakingFilterer) ParseSetOperator ¶
func (_GraphStaking *GraphStakingFilterer) ParseSetOperator(log types.Log) (*GraphStakingSetOperator, error)
ParseSetOperator is a log parse operation binding the contract event 0xa3581229e2c315eb01303f468621e07aa9b628a23b1608162ae063f143355135.
Solidity: event SetOperator(address indexed indexer, address indexed operator, bool allowed)
func (*GraphStakingFilterer) ParseSetRewardsDestination ¶
func (_GraphStaking *GraphStakingFilterer) ParseSetRewardsDestination(log types.Log) (*GraphStakingSetRewardsDestination, error)
ParseSetRewardsDestination is a log parse operation binding the contract event 0x29c33cd533c17d8916c8e471a4e2c4d1e34caa9b8844527c0bb182b3c104c7d3.
Solidity: event SetRewardsDestination(address indexed indexer, address indexed destination)
func (*GraphStakingFilterer) ParseSlasherUpdate ¶
func (_GraphStaking *GraphStakingFilterer) ParseSlasherUpdate(log types.Log) (*GraphStakingSlasherUpdate, error)
ParseSlasherUpdate is a log parse operation binding the contract event 0x87ea6771e87d96ce16dbe8eda64da9473733e4c1c568baf8ae47256c5bd765e9.
Solidity: event SlasherUpdate(address indexed caller, address indexed slasher, bool allowed)
func (*GraphStakingFilterer) ParseStakeDelegated ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegated(log types.Log) (*GraphStakingStakeDelegated, error)
ParseStakeDelegated is a log parse operation binding the contract event 0xcd0366dce5247d874ffc60a762aa7abbb82c1695bbb171609c1b8861e279eb73.
Solidity: event StakeDelegated(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares)
func (*GraphStakingFilterer) ParseStakeDelegatedLocked ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegatedLocked(log types.Log) (*GraphStakingStakeDelegatedLocked, error)
ParseStakeDelegatedLocked is a log parse operation binding the contract event 0x0430183f84d9c4502386d499da806543dee1d9de83c08b01e39a6d2116c43b25.
Solidity: event StakeDelegatedLocked(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares, uint256 until)
func (*GraphStakingFilterer) ParseStakeDelegatedWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeDelegatedWithdrawn(log types.Log) (*GraphStakingStakeDelegatedWithdrawn, error)
ParseStakeDelegatedWithdrawn is a log parse operation binding the contract event 0x1b2e7737e043c5cf1b587ceb4daeb7ae00148b9bda8f79f1093eead08f141952.
Solidity: event StakeDelegatedWithdrawn(address indexed indexer, address indexed delegator, uint256 tokens)
func (*GraphStakingFilterer) ParseStakeDeposited ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeDeposited(log types.Log) (*GraphStakingStakeDeposited, error)
ParseStakeDeposited is a log parse operation binding the contract event 0x0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2.
Solidity: event StakeDeposited(address indexed indexer, uint256 tokens)
func (*GraphStakingFilterer) ParseStakeLocked ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeLocked(log types.Log) (*GraphStakingStakeLocked, error)
ParseStakeLocked is a log parse operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.
Solidity: event StakeLocked(address indexed indexer, uint256 tokens, uint256 until)
func (*GraphStakingFilterer) ParseStakeSlashed ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeSlashed(log types.Log) (*GraphStakingStakeSlashed, error)
ParseStakeSlashed is a log parse operation binding the contract event 0xf2717be2f27d9d2d7d265e42dc556e40d2d9aeaba02f49c5286030f30c0571f3.
Solidity: event StakeSlashed(address indexed indexer, uint256 tokens, uint256 reward, address beneficiary)
func (*GraphStakingFilterer) ParseStakeWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) ParseStakeWithdrawn(log types.Log) (*GraphStakingStakeWithdrawn, error)
ParseStakeWithdrawn is a log parse operation binding the contract event 0x8108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc.
Solidity: event StakeWithdrawn(address indexed indexer, uint256 tokens)
func (*GraphStakingFilterer) WatchAllocationClosed ¶
func (_GraphStaking *GraphStakingFilterer) WatchAllocationClosed(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationClosed, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (event.Subscription, error)
WatchAllocationClosed is a free log subscription operation binding the contract event 0x7203ffa6902c4c2a85ac2612321460fa20e29a972c272ecedfdf95f944616269.
Solidity: event AllocationClosed(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, uint256 effectiveAllocation, address sender, bytes32 poi, bool isPublic)
func (*GraphStakingFilterer) WatchAllocationCollected ¶
func (_GraphStaking *GraphStakingFilterer) WatchAllocationCollected(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationCollected, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (event.Subscription, error)
WatchAllocationCollected is a free log subscription operation binding the contract event 0x18040f6f54270f646d21bc8e963105c53499cbcebe6f2a5b32c7018e18a3451e.
Solidity: event AllocationCollected(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, address from, uint256 curationFees, uint256 rebateFees)
func (*GraphStakingFilterer) WatchAllocationCreated ¶
func (_GraphStaking *GraphStakingFilterer) WatchAllocationCreated(opts *bind.WatchOpts, sink chan<- *GraphStakingAllocationCreated, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (event.Subscription, error)
WatchAllocationCreated is a free log subscription operation binding the contract event 0x0f73ab5f706106366951b51f760e0a6f60c794f233d90958d81c82ad84fa6e87.
Solidity: event AllocationCreated(address indexed indexer, bytes32 indexed subgraphDeploymentID, uint256 epoch, uint256 tokens, address indexed allocationID, bytes32 metadata)
func (*GraphStakingFilterer) WatchAssetHolderUpdate ¶
func (_GraphStaking *GraphStakingFilterer) WatchAssetHolderUpdate(opts *bind.WatchOpts, sink chan<- *GraphStakingAssetHolderUpdate, caller []common.Address, assetHolder []common.Address) (event.Subscription, error)
WatchAssetHolderUpdate is a free log subscription operation binding the contract event 0x3a8d5e92bb089ebd158e2c22dc449009d62b0df02b6a6792bb0c5fc33f240fcb.
Solidity: event AssetHolderUpdate(address indexed caller, address indexed assetHolder, bool allowed)
func (*GraphStakingFilterer) WatchContractSynced ¶
func (_GraphStaking *GraphStakingFilterer) WatchContractSynced(opts *bind.WatchOpts, sink chan<- *GraphStakingContractSynced, nameHash [][32]byte) (event.Subscription, error)
WatchContractSynced is a free log subscription operation binding the contract event 0xd0e7a942b1fc38c411c4f53d153ba14fd24542a6a35ebacd9b6afca1a154e206.
Solidity: event ContractSynced(bytes32 indexed nameHash, address contractAddress)
func (*GraphStakingFilterer) WatchDelegationParametersUpdated ¶
func (_GraphStaking *GraphStakingFilterer) WatchDelegationParametersUpdated(opts *bind.WatchOpts, sink chan<- *GraphStakingDelegationParametersUpdated, indexer []common.Address) (event.Subscription, error)
WatchDelegationParametersUpdated is a free log subscription operation binding the contract event 0xdd5c1add84431df7ff63c721510522fbccafda37dfc33f0f5094d90135a8f22a.
Solidity: event DelegationParametersUpdated(address indexed indexer, uint32 indexingRewardCut, uint32 queryFeeCut, uint32 cooldownBlocks)
func (*GraphStakingFilterer) WatchParameterUpdated ¶
func (_GraphStaking *GraphStakingFilterer) WatchParameterUpdated(opts *bind.WatchOpts, sink chan<- *GraphStakingParameterUpdated) (event.Subscription, error)
WatchParameterUpdated is a free log subscription operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.
Solidity: event ParameterUpdated(string param)
func (*GraphStakingFilterer) WatchRebateClaimed ¶
func (_GraphStaking *GraphStakingFilterer) WatchRebateClaimed(opts *bind.WatchOpts, sink chan<- *GraphStakingRebateClaimed, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (event.Subscription, error)
WatchRebateClaimed is a free log subscription operation binding the contract event 0xb5f11a762db39abff5529064f3103b1abb9a5a3ba3d61972c1a7006d09db7d20.
Solidity: event RebateClaimed(address indexed indexer, bytes32 indexed subgraphDeploymentID, address indexed allocationID, uint256 epoch, uint256 forEpoch, uint256 tokens, uint256 unclaimedAllocationsCount, uint256 delegationFees)
func (*GraphStakingFilterer) WatchSetController ¶
func (_GraphStaking *GraphStakingFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *GraphStakingSetController) (event.Subscription, error)
WatchSetController is a free log subscription operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
Solidity: event SetController(address controller)
func (*GraphStakingFilterer) WatchSetOperator ¶
func (_GraphStaking *GraphStakingFilterer) WatchSetOperator(opts *bind.WatchOpts, sink chan<- *GraphStakingSetOperator, indexer []common.Address, operator []common.Address) (event.Subscription, error)
WatchSetOperator is a free log subscription operation binding the contract event 0xa3581229e2c315eb01303f468621e07aa9b628a23b1608162ae063f143355135.
Solidity: event SetOperator(address indexed indexer, address indexed operator, bool allowed)
func (*GraphStakingFilterer) WatchSetRewardsDestination ¶
func (_GraphStaking *GraphStakingFilterer) WatchSetRewardsDestination(opts *bind.WatchOpts, sink chan<- *GraphStakingSetRewardsDestination, indexer []common.Address, destination []common.Address) (event.Subscription, error)
WatchSetRewardsDestination is a free log subscription operation binding the contract event 0x29c33cd533c17d8916c8e471a4e2c4d1e34caa9b8844527c0bb182b3c104c7d3.
Solidity: event SetRewardsDestination(address indexed indexer, address indexed destination)
func (*GraphStakingFilterer) WatchSlasherUpdate ¶
func (_GraphStaking *GraphStakingFilterer) WatchSlasherUpdate(opts *bind.WatchOpts, sink chan<- *GraphStakingSlasherUpdate, caller []common.Address, slasher []common.Address) (event.Subscription, error)
WatchSlasherUpdate is a free log subscription operation binding the contract event 0x87ea6771e87d96ce16dbe8eda64da9473733e4c1c568baf8ae47256c5bd765e9.
Solidity: event SlasherUpdate(address indexed caller, address indexed slasher, bool allowed)
func (*GraphStakingFilterer) WatchStakeDelegated ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegated(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegated, indexer []common.Address, delegator []common.Address) (event.Subscription, error)
WatchStakeDelegated is a free log subscription operation binding the contract event 0xcd0366dce5247d874ffc60a762aa7abbb82c1695bbb171609c1b8861e279eb73.
Solidity: event StakeDelegated(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares)
func (*GraphStakingFilterer) WatchStakeDelegatedLocked ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegatedLocked(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegatedLocked, indexer []common.Address, delegator []common.Address) (event.Subscription, error)
WatchStakeDelegatedLocked is a free log subscription operation binding the contract event 0x0430183f84d9c4502386d499da806543dee1d9de83c08b01e39a6d2116c43b25.
Solidity: event StakeDelegatedLocked(address indexed indexer, address indexed delegator, uint256 tokens, uint256 shares, uint256 until)
func (*GraphStakingFilterer) WatchStakeDelegatedWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeDelegatedWithdrawn(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDelegatedWithdrawn, indexer []common.Address, delegator []common.Address) (event.Subscription, error)
WatchStakeDelegatedWithdrawn is a free log subscription operation binding the contract event 0x1b2e7737e043c5cf1b587ceb4daeb7ae00148b9bda8f79f1093eead08f141952.
Solidity: event StakeDelegatedWithdrawn(address indexed indexer, address indexed delegator, uint256 tokens)
func (*GraphStakingFilterer) WatchStakeDeposited ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeDeposited(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeDeposited, indexer []common.Address) (event.Subscription, error)
WatchStakeDeposited is a free log subscription operation binding the contract event 0x0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2.
Solidity: event StakeDeposited(address indexed indexer, uint256 tokens)
func (*GraphStakingFilterer) WatchStakeLocked ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeLocked(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeLocked, indexer []common.Address) (event.Subscription, error)
WatchStakeLocked is a free log subscription operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.
Solidity: event StakeLocked(address indexed indexer, uint256 tokens, uint256 until)
func (*GraphStakingFilterer) WatchStakeSlashed ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeSlashed(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeSlashed, indexer []common.Address) (event.Subscription, error)
WatchStakeSlashed is a free log subscription operation binding the contract event 0xf2717be2f27d9d2d7d265e42dc556e40d2d9aeaba02f49c5286030f30c0571f3.
Solidity: event StakeSlashed(address indexed indexer, uint256 tokens, uint256 reward, address beneficiary)
func (*GraphStakingFilterer) WatchStakeWithdrawn ¶
func (_GraphStaking *GraphStakingFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *GraphStakingStakeWithdrawn, indexer []common.Address) (event.Subscription, error)
WatchStakeWithdrawn is a free log subscription operation binding the contract event 0x8108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc.
Solidity: event StakeWithdrawn(address indexed indexer, uint256 tokens)
type GraphStakingParameterUpdated ¶
type GraphStakingParameterUpdated struct { Param string Raw types.Log // Blockchain specific contextual infos }
GraphStakingParameterUpdated represents a ParameterUpdated event raised by the GraphStaking contract.
type GraphStakingParameterUpdatedIterator ¶
type GraphStakingParameterUpdatedIterator struct { Event *GraphStakingParameterUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingParameterUpdatedIterator is returned from FilterParameterUpdated and is used to iterate over the raw logs and unpacked data for ParameterUpdated events raised by the GraphStaking contract.
func (*GraphStakingParameterUpdatedIterator) Close ¶
func (it *GraphStakingParameterUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingParameterUpdatedIterator) Error ¶
func (it *GraphStakingParameterUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingParameterUpdatedIterator) Next ¶
func (it *GraphStakingParameterUpdatedIterator) 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 GraphStakingRaw ¶
type GraphStakingRaw struct {
Contract *GraphStaking // Generic contract binding to access the raw methods on
}
GraphStakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GraphStakingRaw) Call ¶
func (_GraphStaking *GraphStakingRaw) 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 (*GraphStakingRaw) Transact ¶
func (_GraphStaking *GraphStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GraphStakingRaw) Transfer ¶
func (_GraphStaking *GraphStakingRaw) 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 GraphStakingRebateClaimed ¶
type GraphStakingRebateClaimed struct { Indexer common.Address SubgraphDeploymentID [32]byte AllocationID common.Address Epoch *big.Int ForEpoch *big.Int Tokens *big.Int UnclaimedAllocationsCount *big.Int DelegationFees *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingRebateClaimed represents a RebateClaimed event raised by the GraphStaking contract.
type GraphStakingRebateClaimedIterator ¶
type GraphStakingRebateClaimedIterator struct { Event *GraphStakingRebateClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingRebateClaimedIterator is returned from FilterRebateClaimed and is used to iterate over the raw logs and unpacked data for RebateClaimed events raised by the GraphStaking contract.
func (*GraphStakingRebateClaimedIterator) Close ¶
func (it *GraphStakingRebateClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingRebateClaimedIterator) Error ¶
func (it *GraphStakingRebateClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingRebateClaimedIterator) Next ¶
func (it *GraphStakingRebateClaimedIterator) 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 GraphStakingSession ¶
type GraphStakingSession struct { Contract *GraphStaking // 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 }
GraphStakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GraphStakingSession) AcceptProxy ¶
func (_GraphStaking *GraphStakingSession) 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 (*GraphStakingSession) AcceptProxyAndCall ¶
func (_GraphStaking *GraphStakingSession) 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 (*GraphStakingSession) Allocate ¶
func (_GraphStaking *GraphStakingSession) Allocate(_subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0xa6fe292b.
Solidity: function allocate(bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingSession) AllocateFrom ¶
func (_GraphStaking *GraphStakingSession) AllocateFrom(_indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
AllocateFrom is a paid mutator transaction binding the contract method 0x23477e48.
Solidity: function allocateFrom(address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingSession) Allocations ¶
func (_GraphStaking *GraphStakingSession) Allocations(arg0 common.Address) (struct { Indexer common.Address SubgraphDeploymentID [32]byte Tokens *big.Int CreatedAtEpoch *big.Int ClosedAtEpoch *big.Int CollectedFees *big.Int EffectiveAllocation *big.Int AccRewardsPerAllocatedToken *big.Int }, error)
Allocations is a free data retrieval call binding the contract method 0x52a9039c.
Solidity: function allocations(address ) view returns(address indexer, bytes32 subgraphDeploymentID, uint256 tokens, uint256 createdAtEpoch, uint256 closedAtEpoch, uint256 collectedFees, uint256 effectiveAllocation, uint256 accRewardsPerAllocatedToken)
func (*GraphStakingSession) AlphaDenominator ¶
func (_GraphStaking *GraphStakingSession) AlphaDenominator() (uint32, error)
AlphaDenominator is a free data retrieval call binding the contract method 0xce853613.
Solidity: function alphaDenominator() view returns(uint32)
func (*GraphStakingSession) AlphaNumerator ¶
func (_GraphStaking *GraphStakingSession) AlphaNumerator() (uint32, error)
AlphaNumerator is a free data retrieval call binding the contract method 0x7ef82070.
Solidity: function alphaNumerator() view returns(uint32)
func (*GraphStakingSession) AssetHolders ¶
func (_GraphStaking *GraphStakingSession) AssetHolders(arg0 common.Address) (bool, error)
AssetHolders is a free data retrieval call binding the contract method 0x6b535d7e.
Solidity: function assetHolders(address ) view returns(bool)
func (*GraphStakingSession) ChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingSession) ChannelDisputeEpochs() (uint32, error)
ChannelDisputeEpochs is a free data retrieval call binding the contract method 0xba8c8193.
Solidity: function channelDisputeEpochs() view returns(uint32)
func (*GraphStakingSession) Claim ¶
func (_GraphStaking *GraphStakingSession) Claim(_allocationID common.Address, _restake bool) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92fd2daf.
Solidity: function claim(address _allocationID, bool _restake) returns()
func (*GraphStakingSession) ClaimMany ¶
func (_GraphStaking *GraphStakingSession) ClaimMany(_allocationID []common.Address, _restake bool) (*types.Transaction, error)
ClaimMany is a paid mutator transaction binding the contract method 0x36a4fbd6.
Solidity: function claimMany(address[] _allocationID, bool _restake) returns()
func (*GraphStakingSession) CloseAllocation ¶
func (_GraphStaking *GraphStakingSession) CloseAllocation(_allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
CloseAllocation is a paid mutator transaction binding the contract method 0x44c32a61.
Solidity: function closeAllocation(address _allocationID, bytes32 _poi) returns()
func (*GraphStakingSession) CloseAllocationMany ¶
func (_GraphStaking *GraphStakingSession) CloseAllocationMany(_requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.
Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()
func (*GraphStakingSession) CloseAndAllocate ¶
func (_GraphStaking *GraphStakingSession) CloseAndAllocate(_closingAllocationID common.Address, _poi [32]byte, _indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
CloseAndAllocate is a paid mutator transaction binding the contract method 0xc2b6df37.
Solidity: function closeAndAllocate(address _closingAllocationID, bytes32 _poi, address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingSession) Collect ¶
func (_GraphStaking *GraphStakingSession) Collect(_tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
Collect is a paid mutator transaction binding the contract method 0x8d3c100a.
Solidity: function collect(uint256 _tokens, address _allocationID) returns()
func (*GraphStakingSession) Controller ¶
func (_GraphStaking *GraphStakingSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*GraphStakingSession) CurationPercentage ¶
func (_GraphStaking *GraphStakingSession) CurationPercentage() (uint32, error)
CurationPercentage is a free data retrieval call binding the contract method 0x85b52ad0.
Solidity: function curationPercentage() view returns(uint32)
func (*GraphStakingSession) Delegate ¶
func (_GraphStaking *GraphStakingSession) Delegate(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address _indexer, uint256 _tokens) returns(uint256)
func (*GraphStakingSession) DelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingSession) DelegationParametersCooldown() (uint32, error)
DelegationParametersCooldown is a free data retrieval call binding the contract method 0x8a7ff87d.
Solidity: function delegationParametersCooldown() view returns(uint32)
func (*GraphStakingSession) DelegationPools ¶
func (_GraphStaking *GraphStakingSession) DelegationPools(arg0 common.Address) (struct { CooldownBlocks uint32 IndexingRewardCut uint32 QueryFeeCut uint32 UpdatedAtBlock *big.Int Tokens *big.Int Shares *big.Int }, error)
DelegationPools is a free data retrieval call binding the contract method 0x92511c8f.
Solidity: function delegationPools(address ) view returns(uint32 cooldownBlocks, uint32 indexingRewardCut, uint32 queryFeeCut, uint256 updatedAtBlock, uint256 tokens, uint256 shares)
func (*GraphStakingSession) DelegationRatio ¶
func (_GraphStaking *GraphStakingSession) DelegationRatio() (uint32, error)
DelegationRatio is a free data retrieval call binding the contract method 0xbfdfa7af.
Solidity: function delegationRatio() view returns(uint32)
func (*GraphStakingSession) DelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingSession) DelegationTaxPercentage() (uint32, error)
DelegationTaxPercentage is a free data retrieval call binding the contract method 0xe6aeb796.
Solidity: function delegationTaxPercentage() view returns(uint32)
func (*GraphStakingSession) DelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingSession) DelegationUnbondingPeriod() (uint32, error)
DelegationUnbondingPeriod is a free data retrieval call binding the contract method 0xb6846e47.
Solidity: function delegationUnbondingPeriod() view returns(uint32)
func (*GraphStakingSession) GetAllocation ¶
func (_GraphStaking *GraphStakingSession) GetAllocation(_allocationID common.Address) (IStakingDataAllocation, error)
GetAllocation is a free data retrieval call binding the contract method 0x0e022923.
Solidity: function getAllocation(address _allocationID) view returns((address,bytes32,uint256,uint256,uint256,uint256,uint256,uint256))
func (*GraphStakingSession) GetAllocationState ¶
func (_GraphStaking *GraphStakingSession) GetAllocationState(_allocationID common.Address) (uint8, error)
GetAllocationState is a free data retrieval call binding the contract method 0x98c657dc.
Solidity: function getAllocationState(address _allocationID) view returns(uint8)
func (*GraphStakingSession) GetDelegation ¶
func (_GraphStaking *GraphStakingSession) GetDelegation(_indexer common.Address, _delegator common.Address) (IStakingDataDelegation, error)
GetDelegation is a free data retrieval call binding the contract method 0x15049a5a.
Solidity: function getDelegation(address _indexer, address _delegator) view returns((uint256,uint256,uint256))
func (*GraphStakingSession) GetIndexerCapacity ¶
func (_GraphStaking *GraphStakingSession) GetIndexerCapacity(_indexer common.Address) (*big.Int, error)
GetIndexerCapacity is a free data retrieval call binding the contract method 0xa510be20.
Solidity: function getIndexerCapacity(address _indexer) view returns(uint256)
func (*GraphStakingSession) GetIndexerStakedTokens ¶
func (_GraphStaking *GraphStakingSession) GetIndexerStakedTokens(_indexer common.Address) (*big.Int, error)
GetIndexerStakedTokens is a free data retrieval call binding the contract method 0x1787e69f.
Solidity: function getIndexerStakedTokens(address _indexer) view returns(uint256)
func (*GraphStakingSession) GetSubgraphAllocatedTokens ¶
func (_GraphStaking *GraphStakingSession) GetSubgraphAllocatedTokens(_subgraphDeploymentID [32]byte) (*big.Int, error)
GetSubgraphAllocatedTokens is a free data retrieval call binding the contract method 0xe2e1e8e9.
Solidity: function getSubgraphAllocatedTokens(bytes32 _subgraphDeploymentID) view returns(uint256)
func (*GraphStakingSession) GetWithdraweableDelegatedTokens ¶
func (_GraphStaking *GraphStakingSession) GetWithdraweableDelegatedTokens(_delegation IStakingDataDelegation) (*big.Int, error)
GetWithdraweableDelegatedTokens is a free data retrieval call binding the contract method 0x130bea57.
Solidity: function getWithdraweableDelegatedTokens((uint256,uint256,uint256) _delegation) view returns(uint256)
func (*GraphStakingSession) HasStake ¶
func (_GraphStaking *GraphStakingSession) HasStake(_indexer common.Address) (bool, error)
HasStake is a free data retrieval call binding the contract method 0xe73e14bf.
Solidity: function hasStake(address _indexer) view returns(bool)
func (*GraphStakingSession) Initialize ¶
func (_GraphStaking *GraphStakingSession) Initialize(_controller common.Address, _minimumIndexerStake *big.Int, _thawingPeriod uint32, _protocolPercentage uint32, _curationPercentage uint32, _channelDisputeEpochs uint32, _maxAllocationEpochs uint32, _delegationUnbondingPeriod uint32, _delegationRatio uint32, _rebateAlphaNumerator uint32, _rebateAlphaDenominator uint32) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x3fc48624.
Solidity: function initialize(address _controller, uint256 _minimumIndexerStake, uint32 _thawingPeriod, uint32 _protocolPercentage, uint32 _curationPercentage, uint32 _channelDisputeEpochs, uint32 _maxAllocationEpochs, uint32 _delegationUnbondingPeriod, uint32 _delegationRatio, uint32 _rebateAlphaNumerator, uint32 _rebateAlphaDenominator) returns()
func (*GraphStakingSession) IsAllocation ¶
func (_GraphStaking *GraphStakingSession) IsAllocation(_allocationID common.Address) (bool, error)
IsAllocation is a free data retrieval call binding the contract method 0xf1d60d66.
Solidity: function isAllocation(address _allocationID) view returns(bool)
func (*GraphStakingSession) IsDelegator ¶
func (_GraphStaking *GraphStakingSession) IsDelegator(_indexer common.Address, _delegator common.Address) (bool, error)
IsDelegator is a free data retrieval call binding the contract method 0xa0e11929.
Solidity: function isDelegator(address _indexer, address _delegator) view returns(bool)
func (*GraphStakingSession) IsOperator ¶
func (_GraphStaking *GraphStakingSession) IsOperator(_operator common.Address, _indexer common.Address) (bool, error)
IsOperator is a free data retrieval call binding the contract method 0xb6363cf2.
Solidity: function isOperator(address _operator, address _indexer) view returns(bool)
func (*GraphStakingSession) MaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingSession) MaxAllocationEpochs() (uint32, error)
MaxAllocationEpochs is a free data retrieval call binding the contract method 0xfb765938.
Solidity: function maxAllocationEpochs() view returns(uint32)
func (*GraphStakingSession) MinimumIndexerStake ¶
func (_GraphStaking *GraphStakingSession) MinimumIndexerStake() (*big.Int, error)
MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.
Solidity: function minimumIndexerStake() view returns(uint256)
func (*GraphStakingSession) Multicall ¶
func (_GraphStaking *GraphStakingSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*GraphStakingSession) OperatorAuth ¶
func (_GraphStaking *GraphStakingSession) OperatorAuth(arg0 common.Address, arg1 common.Address) (bool, error)
OperatorAuth is a free data retrieval call binding the contract method 0xe2e94656.
Solidity: function operatorAuth(address , address ) view returns(bool)
func (*GraphStakingSession) ProtocolPercentage ¶
func (_GraphStaking *GraphStakingSession) ProtocolPercentage() (uint32, error)
ProtocolPercentage is a free data retrieval call binding the contract method 0xa26b90f2.
Solidity: function protocolPercentage() view returns(uint32)
func (*GraphStakingSession) Rebates ¶
func (_GraphStaking *GraphStakingSession) Rebates(arg0 *big.Int) (struct { Fees *big.Int EffectiveAllocatedStake *big.Int ClaimedRewards *big.Int UnclaimedAllocationsCount uint32 AlphaNumerator uint32 AlphaDenominator uint32 }, error)
Rebates is a free data retrieval call binding the contract method 0xd3cb644c.
Solidity: function rebates(uint256 ) view returns(uint256 fees, uint256 effectiveAllocatedStake, uint256 claimedRewards, uint32 unclaimedAllocationsCount, uint32 alphaNumerator, uint32 alphaDenominator)
func (*GraphStakingSession) RewardsDestination ¶
func (_GraphStaking *GraphStakingSession) RewardsDestination(arg0 common.Address) (common.Address, error)
RewardsDestination is a free data retrieval call binding the contract method 0x7203ca78.
Solidity: function rewardsDestination(address ) view returns(address)
func (*GraphStakingSession) SetAssetHolder ¶
func (_GraphStaking *GraphStakingSession) SetAssetHolder(_assetHolder common.Address, _allowed bool) (*types.Transaction, error)
SetAssetHolder is a paid mutator transaction binding the contract method 0x58d7cf00.
Solidity: function setAssetHolder(address _assetHolder, bool _allowed) returns()
func (*GraphStakingSession) SetChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)
SetChannelDisputeEpochs is a paid mutator transaction binding the contract method 0x1d72e623.
Solidity: function setChannelDisputeEpochs(uint32 _channelDisputeEpochs) returns()
func (*GraphStakingSession) SetController ¶
func (_GraphStaking *GraphStakingSession) 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 (*GraphStakingSession) SetCurationPercentage ¶
func (_GraphStaking *GraphStakingSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)
SetCurationPercentage is a paid mutator transaction binding the contract method 0x39dcf476.
Solidity: function setCurationPercentage(uint32 _percentage) returns()
func (*GraphStakingSession) SetDelegationParameters ¶
func (_GraphStaking *GraphStakingSession) SetDelegationParameters(_indexingRewardCut uint32, _queryFeeCut uint32, _cooldownBlocks uint32) (*types.Transaction, error)
SetDelegationParameters is a paid mutator transaction binding the contract method 0x9dcaa6c9.
Solidity: function setDelegationParameters(uint32 _indexingRewardCut, uint32 _queryFeeCut, uint32 _cooldownBlocks) returns()
func (*GraphStakingSession) SetDelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)
SetDelegationParametersCooldown is a paid mutator transaction binding the contract method 0xf8b80a92.
Solidity: function setDelegationParametersCooldown(uint32 _blocks) returns()
func (*GraphStakingSession) SetDelegationRatio ¶
func (_GraphStaking *GraphStakingSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)
SetDelegationRatio is a paid mutator transaction binding the contract method 0x1dd42f60.
Solidity: function setDelegationRatio(uint32 _delegationRatio) returns()
func (*GraphStakingSession) SetDelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)
SetDelegationTaxPercentage is a paid mutator transaction binding the contract method 0xe6dc5a1c.
Solidity: function setDelegationTaxPercentage(uint32 _percentage) returns()
func (*GraphStakingSession) SetDelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)
SetDelegationUnbondingPeriod is a paid mutator transaction binding the contract method 0x5e9a6392.
Solidity: function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod) returns()
func (*GraphStakingSession) SetMaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)
SetMaxAllocationEpochs is a paid mutator transaction binding the contract method 0x2652d75e.
Solidity: function setMaxAllocationEpochs(uint32 _maxAllocationEpochs) returns()
func (*GraphStakingSession) SetMinimumIndexerStake ¶
func (_GraphStaking *GraphStakingSession) SetMinimumIndexerStake(_minimumIndexerStake *big.Int) (*types.Transaction, error)
SetMinimumIndexerStake is a paid mutator transaction binding the contract method 0xddb8b131.
Solidity: function setMinimumIndexerStake(uint256 _minimumIndexerStake) returns()
func (*GraphStakingSession) SetOperator ¶
func (_GraphStaking *GraphStakingSession) SetOperator(_operator common.Address, _allowed bool) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0x558a7297.
Solidity: function setOperator(address _operator, bool _allowed) returns()
func (*GraphStakingSession) SetProtocolPercentage ¶
func (_GraphStaking *GraphStakingSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)
SetProtocolPercentage is a paid mutator transaction binding the contract method 0x9a48bf83.
Solidity: function setProtocolPercentage(uint32 _percentage) returns()
func (*GraphStakingSession) SetRebateRatio ¶
func (_GraphStaking *GraphStakingSession) SetRebateRatio(_alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
SetRebateRatio is a paid mutator transaction binding the contract method 0x979f9f5c.
Solidity: function setRebateRatio(uint32 _alphaNumerator, uint32 _alphaDenominator) returns()
func (*GraphStakingSession) SetRewardsDestination ¶
func (_GraphStaking *GraphStakingSession) SetRewardsDestination(_destination common.Address) (*types.Transaction, error)
SetRewardsDestination is a paid mutator transaction binding the contract method 0x772495c3.
Solidity: function setRewardsDestination(address _destination) returns()
func (*GraphStakingSession) SetSlasher ¶
func (_GraphStaking *GraphStakingSession) SetSlasher(_slasher common.Address, _allowed bool) (*types.Transaction, error)
SetSlasher is a paid mutator transaction binding the contract method 0x52348080.
Solidity: function setSlasher(address _slasher, bool _allowed) returns()
func (*GraphStakingSession) SetThawingPeriod ¶
func (_GraphStaking *GraphStakingSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)
SetThawingPeriod is a paid mutator transaction binding the contract method 0x32bc9108.
Solidity: function setThawingPeriod(uint32 _thawingPeriod) returns()
func (*GraphStakingSession) Slash ¶
func (_GraphStaking *GraphStakingSession) Slash(_indexer common.Address, _tokens *big.Int, _reward *big.Int, _beneficiary common.Address) (*types.Transaction, error)
Slash is a paid mutator transaction binding the contract method 0xe76fede6.
Solidity: function slash(address _indexer, uint256 _tokens, uint256 _reward, address _beneficiary) returns()
func (*GraphStakingSession) Slashers ¶
func (_GraphStaking *GraphStakingSession) Slashers(arg0 common.Address) (bool, error)
Slashers is a free data retrieval call binding the contract method 0xb87fcbff.
Solidity: function slashers(address ) view returns(bool)
func (*GraphStakingSession) Stake ¶
func (_GraphStaking *GraphStakingSession) Stake(_tokens *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _tokens) returns()
func (*GraphStakingSession) StakeTo ¶
func (_GraphStaking *GraphStakingSession) StakeTo(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
StakeTo is a paid mutator transaction binding the contract method 0xa2a31722.
Solidity: function stakeTo(address _indexer, uint256 _tokens) returns()
func (*GraphStakingSession) Stakes ¶
func (_GraphStaking *GraphStakingSession) Stakes(arg0 common.Address) (struct { TokensStaked *big.Int TokensAllocated *big.Int TokensLocked *big.Int TokensLockedUntil *big.Int }, error)
Stakes is a free data retrieval call binding the contract method 0x16934fc4.
Solidity: function stakes(address ) view returns(uint256 tokensStaked, uint256 tokensAllocated, uint256 tokensLocked, uint256 tokensLockedUntil)
func (*GraphStakingSession) SubgraphAllocations ¶
func (_GraphStaking *GraphStakingSession) SubgraphAllocations(arg0 [32]byte) (*big.Int, error)
SubgraphAllocations is a free data retrieval call binding the contract method 0xb1468f52.
Solidity: function subgraphAllocations(bytes32 ) view returns(uint256)
func (*GraphStakingSession) SyncAllContracts ¶
func (_GraphStaking *GraphStakingSession) SyncAllContracts() (*types.Transaction, error)
SyncAllContracts is a paid mutator transaction binding the contract method 0xd6866ea5.
Solidity: function syncAllContracts() returns()
func (*GraphStakingSession) ThawingPeriod ¶
func (_GraphStaking *GraphStakingSession) ThawingPeriod() (uint32, error)
ThawingPeriod is a free data retrieval call binding the contract method 0xcdc747dd.
Solidity: function thawingPeriod() view returns(uint32)
func (*GraphStakingSession) Undelegate ¶
func (_GraphStaking *GraphStakingSession) Undelegate(_indexer common.Address, _shares *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address _indexer, uint256 _shares) returns(uint256)
func (*GraphStakingSession) Unstake ¶
func (_GraphStaking *GraphStakingSession) Unstake(_tokens *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _tokens) returns()
func (*GraphStakingSession) Withdraw ¶
func (_GraphStaking *GraphStakingSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
func (*GraphStakingSession) WithdrawDelegated ¶
func (_GraphStaking *GraphStakingSession) WithdrawDelegated(_indexer common.Address, _delegateToIndexer common.Address) (*types.Transaction, error)
WithdrawDelegated is a paid mutator transaction binding the contract method 0x51a60b02.
Solidity: function withdrawDelegated(address _indexer, address _delegateToIndexer) returns(uint256)
type GraphStakingSetController ¶
type GraphStakingSetController struct { Controller common.Address Raw types.Log // Blockchain specific contextual infos }
GraphStakingSetController represents a SetController event raised by the GraphStaking contract.
type GraphStakingSetControllerIterator ¶
type GraphStakingSetControllerIterator struct { Event *GraphStakingSetController // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingSetControllerIterator is returned from FilterSetController and is used to iterate over the raw logs and unpacked data for SetController events raised by the GraphStaking contract.
func (*GraphStakingSetControllerIterator) Close ¶
func (it *GraphStakingSetControllerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingSetControllerIterator) Error ¶
func (it *GraphStakingSetControllerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingSetControllerIterator) Next ¶
func (it *GraphStakingSetControllerIterator) 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 GraphStakingSetOperator ¶
type GraphStakingSetOperator struct { Indexer common.Address Operator common.Address Allowed bool Raw types.Log // Blockchain specific contextual infos }
GraphStakingSetOperator represents a SetOperator event raised by the GraphStaking contract.
type GraphStakingSetOperatorIterator ¶
type GraphStakingSetOperatorIterator struct { Event *GraphStakingSetOperator // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingSetOperatorIterator is returned from FilterSetOperator and is used to iterate over the raw logs and unpacked data for SetOperator events raised by the GraphStaking contract.
func (*GraphStakingSetOperatorIterator) Close ¶
func (it *GraphStakingSetOperatorIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingSetOperatorIterator) Error ¶
func (it *GraphStakingSetOperatorIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingSetOperatorIterator) Next ¶
func (it *GraphStakingSetOperatorIterator) 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 GraphStakingSetRewardsDestination ¶
type GraphStakingSetRewardsDestination struct { Indexer common.Address Destination common.Address Raw types.Log // Blockchain specific contextual infos }
GraphStakingSetRewardsDestination represents a SetRewardsDestination event raised by the GraphStaking contract.
type GraphStakingSetRewardsDestinationIterator ¶
type GraphStakingSetRewardsDestinationIterator struct { Event *GraphStakingSetRewardsDestination // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingSetRewardsDestinationIterator is returned from FilterSetRewardsDestination and is used to iterate over the raw logs and unpacked data for SetRewardsDestination events raised by the GraphStaking contract.
func (*GraphStakingSetRewardsDestinationIterator) Close ¶
func (it *GraphStakingSetRewardsDestinationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingSetRewardsDestinationIterator) Error ¶
func (it *GraphStakingSetRewardsDestinationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingSetRewardsDestinationIterator) Next ¶
func (it *GraphStakingSetRewardsDestinationIterator) 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 GraphStakingSlasherUpdate ¶
type GraphStakingSlasherUpdate struct { Caller common.Address Slasher common.Address Allowed bool Raw types.Log // Blockchain specific contextual infos }
GraphStakingSlasherUpdate represents a SlasherUpdate event raised by the GraphStaking contract.
type GraphStakingSlasherUpdateIterator ¶
type GraphStakingSlasherUpdateIterator struct { Event *GraphStakingSlasherUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingSlasherUpdateIterator is returned from FilterSlasherUpdate and is used to iterate over the raw logs and unpacked data for SlasherUpdate events raised by the GraphStaking contract.
func (*GraphStakingSlasherUpdateIterator) Close ¶
func (it *GraphStakingSlasherUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingSlasherUpdateIterator) Error ¶
func (it *GraphStakingSlasherUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingSlasherUpdateIterator) Next ¶
func (it *GraphStakingSlasherUpdateIterator) 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 GraphStakingStakeDelegated ¶
type GraphStakingStakeDelegated struct { Indexer common.Address Delegator common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeDelegated represents a StakeDelegated event raised by the GraphStaking contract.
type GraphStakingStakeDelegatedIterator ¶
type GraphStakingStakeDelegatedIterator struct { Event *GraphStakingStakeDelegated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeDelegatedIterator is returned from FilterStakeDelegated and is used to iterate over the raw logs and unpacked data for StakeDelegated events raised by the GraphStaking contract.
func (*GraphStakingStakeDelegatedIterator) Close ¶
func (it *GraphStakingStakeDelegatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeDelegatedIterator) Error ¶
func (it *GraphStakingStakeDelegatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeDelegatedIterator) Next ¶
func (it *GraphStakingStakeDelegatedIterator) 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 GraphStakingStakeDelegatedLocked ¶
type GraphStakingStakeDelegatedLocked struct { Indexer common.Address Delegator common.Address Tokens *big.Int Until *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeDelegatedLocked represents a StakeDelegatedLocked event raised by the GraphStaking contract.
type GraphStakingStakeDelegatedLockedIterator ¶
type GraphStakingStakeDelegatedLockedIterator struct { Event *GraphStakingStakeDelegatedLocked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeDelegatedLockedIterator is returned from FilterStakeDelegatedLocked and is used to iterate over the raw logs and unpacked data for StakeDelegatedLocked events raised by the GraphStaking contract.
func (*GraphStakingStakeDelegatedLockedIterator) Close ¶
func (it *GraphStakingStakeDelegatedLockedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeDelegatedLockedIterator) Error ¶
func (it *GraphStakingStakeDelegatedLockedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeDelegatedLockedIterator) Next ¶
func (it *GraphStakingStakeDelegatedLockedIterator) 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 GraphStakingStakeDelegatedWithdrawn ¶
type GraphStakingStakeDelegatedWithdrawn struct { Indexer common.Address Delegator common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeDelegatedWithdrawn represents a StakeDelegatedWithdrawn event raised by the GraphStaking contract.
type GraphStakingStakeDelegatedWithdrawnIterator ¶
type GraphStakingStakeDelegatedWithdrawnIterator struct { Event *GraphStakingStakeDelegatedWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeDelegatedWithdrawnIterator is returned from FilterStakeDelegatedWithdrawn and is used to iterate over the raw logs and unpacked data for StakeDelegatedWithdrawn events raised by the GraphStaking contract.
func (*GraphStakingStakeDelegatedWithdrawnIterator) Close ¶
func (it *GraphStakingStakeDelegatedWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeDelegatedWithdrawnIterator) Error ¶
func (it *GraphStakingStakeDelegatedWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeDelegatedWithdrawnIterator) Next ¶
func (it *GraphStakingStakeDelegatedWithdrawnIterator) 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 GraphStakingStakeDeposited ¶
type GraphStakingStakeDeposited struct { Indexer common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeDeposited represents a StakeDeposited event raised by the GraphStaking contract.
type GraphStakingStakeDepositedIterator ¶
type GraphStakingStakeDepositedIterator struct { Event *GraphStakingStakeDeposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeDepositedIterator is returned from FilterStakeDeposited and is used to iterate over the raw logs and unpacked data for StakeDeposited events raised by the GraphStaking contract.
func (*GraphStakingStakeDepositedIterator) Close ¶
func (it *GraphStakingStakeDepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeDepositedIterator) Error ¶
func (it *GraphStakingStakeDepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeDepositedIterator) Next ¶
func (it *GraphStakingStakeDepositedIterator) 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 GraphStakingStakeLocked ¶
type GraphStakingStakeLocked struct { Indexer common.Address Tokens *big.Int Until *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeLocked represents a StakeLocked event raised by the GraphStaking contract.
type GraphStakingStakeLockedIterator ¶
type GraphStakingStakeLockedIterator struct { Event *GraphStakingStakeLocked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeLockedIterator is returned from FilterStakeLocked and is used to iterate over the raw logs and unpacked data for StakeLocked events raised by the GraphStaking contract.
func (*GraphStakingStakeLockedIterator) Close ¶
func (it *GraphStakingStakeLockedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeLockedIterator) Error ¶
func (it *GraphStakingStakeLockedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeLockedIterator) Next ¶
func (it *GraphStakingStakeLockedIterator) 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 GraphStakingStakeSlashed ¶
type GraphStakingStakeSlashed struct { Indexer common.Address Tokens *big.Int Reward *big.Int Beneficiary common.Address Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeSlashed represents a StakeSlashed event raised by the GraphStaking contract.
type GraphStakingStakeSlashedIterator ¶
type GraphStakingStakeSlashedIterator struct { Event *GraphStakingStakeSlashed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeSlashedIterator is returned from FilterStakeSlashed and is used to iterate over the raw logs and unpacked data for StakeSlashed events raised by the GraphStaking contract.
func (*GraphStakingStakeSlashedIterator) Close ¶
func (it *GraphStakingStakeSlashedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeSlashedIterator) Error ¶
func (it *GraphStakingStakeSlashedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeSlashedIterator) Next ¶
func (it *GraphStakingStakeSlashedIterator) 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 GraphStakingStakeWithdrawn ¶
type GraphStakingStakeWithdrawn struct { Indexer common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
GraphStakingStakeWithdrawn represents a StakeWithdrawn event raised by the GraphStaking contract.
type GraphStakingStakeWithdrawnIterator ¶
type GraphStakingStakeWithdrawnIterator struct { Event *GraphStakingStakeWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GraphStakingStakeWithdrawnIterator is returned from FilterStakeWithdrawn and is used to iterate over the raw logs and unpacked data for StakeWithdrawn events raised by the GraphStaking contract.
func (*GraphStakingStakeWithdrawnIterator) Close ¶
func (it *GraphStakingStakeWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GraphStakingStakeWithdrawnIterator) Error ¶
func (it *GraphStakingStakeWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GraphStakingStakeWithdrawnIterator) Next ¶
func (it *GraphStakingStakeWithdrawnIterator) 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 GraphStakingTransactor ¶
type GraphStakingTransactor struct {
// contains filtered or unexported fields
}
GraphStakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGraphStakingTransactor ¶
func NewGraphStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*GraphStakingTransactor, error)
NewGraphStakingTransactor creates a new write-only instance of GraphStaking, bound to a specific deployed contract.
func (*GraphStakingTransactor) AcceptProxy ¶
func (_GraphStaking *GraphStakingTransactor) 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 (*GraphStakingTransactor) AcceptProxyAndCall ¶
func (_GraphStaking *GraphStakingTransactor) 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 (*GraphStakingTransactor) Allocate ¶
func (_GraphStaking *GraphStakingTransactor) Allocate(opts *bind.TransactOpts, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0xa6fe292b.
Solidity: function allocate(bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactor) AllocateFrom ¶
func (_GraphStaking *GraphStakingTransactor) AllocateFrom(opts *bind.TransactOpts, _indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
AllocateFrom is a paid mutator transaction binding the contract method 0x23477e48.
Solidity: function allocateFrom(address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactor) Claim ¶
func (_GraphStaking *GraphStakingTransactor) Claim(opts *bind.TransactOpts, _allocationID common.Address, _restake bool) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92fd2daf.
Solidity: function claim(address _allocationID, bool _restake) returns()
func (*GraphStakingTransactor) ClaimMany ¶
func (_GraphStaking *GraphStakingTransactor) ClaimMany(opts *bind.TransactOpts, _allocationID []common.Address, _restake bool) (*types.Transaction, error)
ClaimMany is a paid mutator transaction binding the contract method 0x36a4fbd6.
Solidity: function claimMany(address[] _allocationID, bool _restake) returns()
func (*GraphStakingTransactor) CloseAllocation ¶
func (_GraphStaking *GraphStakingTransactor) CloseAllocation(opts *bind.TransactOpts, _allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
CloseAllocation is a paid mutator transaction binding the contract method 0x44c32a61.
Solidity: function closeAllocation(address _allocationID, bytes32 _poi) returns()
func (*GraphStakingTransactor) CloseAllocationMany ¶
func (_GraphStaking *GraphStakingTransactor) CloseAllocationMany(opts *bind.TransactOpts, _requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.
Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()
func (*GraphStakingTransactor) CloseAndAllocate ¶
func (_GraphStaking *GraphStakingTransactor) CloseAndAllocate(opts *bind.TransactOpts, _closingAllocationID common.Address, _poi [32]byte, _indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
CloseAndAllocate is a paid mutator transaction binding the contract method 0xc2b6df37.
Solidity: function closeAndAllocate(address _closingAllocationID, bytes32 _poi, address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactor) Collect ¶
func (_GraphStaking *GraphStakingTransactor) Collect(opts *bind.TransactOpts, _tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
Collect is a paid mutator transaction binding the contract method 0x8d3c100a.
Solidity: function collect(uint256 _tokens, address _allocationID) returns()
func (*GraphStakingTransactor) Delegate ¶
func (_GraphStaking *GraphStakingTransactor) Delegate(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address _indexer, uint256 _tokens) returns(uint256)
func (*GraphStakingTransactor) Initialize ¶
func (_GraphStaking *GraphStakingTransactor) Initialize(opts *bind.TransactOpts, _controller common.Address, _minimumIndexerStake *big.Int, _thawingPeriod uint32, _protocolPercentage uint32, _curationPercentage uint32, _channelDisputeEpochs uint32, _maxAllocationEpochs uint32, _delegationUnbondingPeriod uint32, _delegationRatio uint32, _rebateAlphaNumerator uint32, _rebateAlphaDenominator uint32) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x3fc48624.
Solidity: function initialize(address _controller, uint256 _minimumIndexerStake, uint32 _thawingPeriod, uint32 _protocolPercentage, uint32 _curationPercentage, uint32 _channelDisputeEpochs, uint32 _maxAllocationEpochs, uint32 _delegationUnbondingPeriod, uint32 _delegationRatio, uint32 _rebateAlphaNumerator, uint32 _rebateAlphaDenominator) returns()
func (*GraphStakingTransactor) Multicall ¶
func (_GraphStaking *GraphStakingTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*GraphStakingTransactor) SetAssetHolder ¶
func (_GraphStaking *GraphStakingTransactor) SetAssetHolder(opts *bind.TransactOpts, _assetHolder common.Address, _allowed bool) (*types.Transaction, error)
SetAssetHolder is a paid mutator transaction binding the contract method 0x58d7cf00.
Solidity: function setAssetHolder(address _assetHolder, bool _allowed) returns()
func (*GraphStakingTransactor) SetChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingTransactor) SetChannelDisputeEpochs(opts *bind.TransactOpts, _channelDisputeEpochs uint32) (*types.Transaction, error)
SetChannelDisputeEpochs is a paid mutator transaction binding the contract method 0x1d72e623.
Solidity: function setChannelDisputeEpochs(uint32 _channelDisputeEpochs) returns()
func (*GraphStakingTransactor) SetController ¶
func (_GraphStaking *GraphStakingTransactor) 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 (*GraphStakingTransactor) SetCurationPercentage ¶
func (_GraphStaking *GraphStakingTransactor) SetCurationPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
SetCurationPercentage is a paid mutator transaction binding the contract method 0x39dcf476.
Solidity: function setCurationPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactor) SetDelegationParameters ¶
func (_GraphStaking *GraphStakingTransactor) SetDelegationParameters(opts *bind.TransactOpts, _indexingRewardCut uint32, _queryFeeCut uint32, _cooldownBlocks uint32) (*types.Transaction, error)
SetDelegationParameters is a paid mutator transaction binding the contract method 0x9dcaa6c9.
Solidity: function setDelegationParameters(uint32 _indexingRewardCut, uint32 _queryFeeCut, uint32 _cooldownBlocks) returns()
func (*GraphStakingTransactor) SetDelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingTransactor) SetDelegationParametersCooldown(opts *bind.TransactOpts, _blocks uint32) (*types.Transaction, error)
SetDelegationParametersCooldown is a paid mutator transaction binding the contract method 0xf8b80a92.
Solidity: function setDelegationParametersCooldown(uint32 _blocks) returns()
func (*GraphStakingTransactor) SetDelegationRatio ¶
func (_GraphStaking *GraphStakingTransactor) SetDelegationRatio(opts *bind.TransactOpts, _delegationRatio uint32) (*types.Transaction, error)
SetDelegationRatio is a paid mutator transaction binding the contract method 0x1dd42f60.
Solidity: function setDelegationRatio(uint32 _delegationRatio) returns()
func (*GraphStakingTransactor) SetDelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingTransactor) SetDelegationTaxPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
SetDelegationTaxPercentage is a paid mutator transaction binding the contract method 0xe6dc5a1c.
Solidity: function setDelegationTaxPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactor) SetDelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingTransactor) SetDelegationUnbondingPeriod(opts *bind.TransactOpts, _delegationUnbondingPeriod uint32) (*types.Transaction, error)
SetDelegationUnbondingPeriod is a paid mutator transaction binding the contract method 0x5e9a6392.
Solidity: function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod) returns()
func (*GraphStakingTransactor) SetMaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingTransactor) SetMaxAllocationEpochs(opts *bind.TransactOpts, _maxAllocationEpochs uint32) (*types.Transaction, error)
SetMaxAllocationEpochs is a paid mutator transaction binding the contract method 0x2652d75e.
Solidity: function setMaxAllocationEpochs(uint32 _maxAllocationEpochs) returns()
func (*GraphStakingTransactor) SetMinimumIndexerStake ¶
func (_GraphStaking *GraphStakingTransactor) SetMinimumIndexerStake(opts *bind.TransactOpts, _minimumIndexerStake *big.Int) (*types.Transaction, error)
SetMinimumIndexerStake is a paid mutator transaction binding the contract method 0xddb8b131.
Solidity: function setMinimumIndexerStake(uint256 _minimumIndexerStake) returns()
func (*GraphStakingTransactor) SetOperator ¶
func (_GraphStaking *GraphStakingTransactor) SetOperator(opts *bind.TransactOpts, _operator common.Address, _allowed bool) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0x558a7297.
Solidity: function setOperator(address _operator, bool _allowed) returns()
func (*GraphStakingTransactor) SetProtocolPercentage ¶
func (_GraphStaking *GraphStakingTransactor) SetProtocolPercentage(opts *bind.TransactOpts, _percentage uint32) (*types.Transaction, error)
SetProtocolPercentage is a paid mutator transaction binding the contract method 0x9a48bf83.
Solidity: function setProtocolPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactor) SetRebateRatio ¶
func (_GraphStaking *GraphStakingTransactor) SetRebateRatio(opts *bind.TransactOpts, _alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
SetRebateRatio is a paid mutator transaction binding the contract method 0x979f9f5c.
Solidity: function setRebateRatio(uint32 _alphaNumerator, uint32 _alphaDenominator) returns()
func (*GraphStakingTransactor) SetRewardsDestination ¶
func (_GraphStaking *GraphStakingTransactor) SetRewardsDestination(opts *bind.TransactOpts, _destination common.Address) (*types.Transaction, error)
SetRewardsDestination is a paid mutator transaction binding the contract method 0x772495c3.
Solidity: function setRewardsDestination(address _destination) returns()
func (*GraphStakingTransactor) SetSlasher ¶
func (_GraphStaking *GraphStakingTransactor) SetSlasher(opts *bind.TransactOpts, _slasher common.Address, _allowed bool) (*types.Transaction, error)
SetSlasher is a paid mutator transaction binding the contract method 0x52348080.
Solidity: function setSlasher(address _slasher, bool _allowed) returns()
func (*GraphStakingTransactor) SetThawingPeriod ¶
func (_GraphStaking *GraphStakingTransactor) SetThawingPeriod(opts *bind.TransactOpts, _thawingPeriod uint32) (*types.Transaction, error)
SetThawingPeriod is a paid mutator transaction binding the contract method 0x32bc9108.
Solidity: function setThawingPeriod(uint32 _thawingPeriod) returns()
func (*GraphStakingTransactor) Slash ¶
func (_GraphStaking *GraphStakingTransactor) Slash(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int, _reward *big.Int, _beneficiary common.Address) (*types.Transaction, error)
Slash is a paid mutator transaction binding the contract method 0xe76fede6.
Solidity: function slash(address _indexer, uint256 _tokens, uint256 _reward, address _beneficiary) returns()
func (*GraphStakingTransactor) Stake ¶
func (_GraphStaking *GraphStakingTransactor) Stake(opts *bind.TransactOpts, _tokens *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _tokens) returns()
func (*GraphStakingTransactor) StakeTo ¶
func (_GraphStaking *GraphStakingTransactor) StakeTo(opts *bind.TransactOpts, _indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
StakeTo is a paid mutator transaction binding the contract method 0xa2a31722.
Solidity: function stakeTo(address _indexer, uint256 _tokens) returns()
func (*GraphStakingTransactor) SyncAllContracts ¶
func (_GraphStaking *GraphStakingTransactor) SyncAllContracts(opts *bind.TransactOpts) (*types.Transaction, error)
SyncAllContracts is a paid mutator transaction binding the contract method 0xd6866ea5.
Solidity: function syncAllContracts() returns()
func (*GraphStakingTransactor) Undelegate ¶
func (_GraphStaking *GraphStakingTransactor) Undelegate(opts *bind.TransactOpts, _indexer common.Address, _shares *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address _indexer, uint256 _shares) returns(uint256)
func (*GraphStakingTransactor) Unstake ¶
func (_GraphStaking *GraphStakingTransactor) Unstake(opts *bind.TransactOpts, _tokens *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _tokens) returns()
func (*GraphStakingTransactor) Withdraw ¶
func (_GraphStaking *GraphStakingTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
func (*GraphStakingTransactor) WithdrawDelegated ¶
func (_GraphStaking *GraphStakingTransactor) WithdrawDelegated(opts *bind.TransactOpts, _indexer common.Address, _delegateToIndexer common.Address) (*types.Transaction, error)
WithdrawDelegated is a paid mutator transaction binding the contract method 0x51a60b02.
Solidity: function withdrawDelegated(address _indexer, address _delegateToIndexer) returns(uint256)
type GraphStakingTransactorRaw ¶
type GraphStakingTransactorRaw struct {
Contract *GraphStakingTransactor // Generic write-only contract binding to access the raw methods on
}
GraphStakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GraphStakingTransactorRaw) Transact ¶
func (_GraphStaking *GraphStakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GraphStakingTransactorRaw) Transfer ¶
func (_GraphStaking *GraphStakingTransactorRaw) 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 GraphStakingTransactorSession ¶
type GraphStakingTransactorSession struct { Contract *GraphStakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GraphStakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GraphStakingTransactorSession) AcceptProxy ¶
func (_GraphStaking *GraphStakingTransactorSession) 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 (*GraphStakingTransactorSession) AcceptProxyAndCall ¶
func (_GraphStaking *GraphStakingTransactorSession) 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 (*GraphStakingTransactorSession) Allocate ¶
func (_GraphStaking *GraphStakingTransactorSession) Allocate(_subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0xa6fe292b.
Solidity: function allocate(bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactorSession) AllocateFrom ¶
func (_GraphStaking *GraphStakingTransactorSession) AllocateFrom(_indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
AllocateFrom is a paid mutator transaction binding the contract method 0x23477e48.
Solidity: function allocateFrom(address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactorSession) Claim ¶
func (_GraphStaking *GraphStakingTransactorSession) Claim(_allocationID common.Address, _restake bool) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x92fd2daf.
Solidity: function claim(address _allocationID, bool _restake) returns()
func (*GraphStakingTransactorSession) ClaimMany ¶
func (_GraphStaking *GraphStakingTransactorSession) ClaimMany(_allocationID []common.Address, _restake bool) (*types.Transaction, error)
ClaimMany is a paid mutator transaction binding the contract method 0x36a4fbd6.
Solidity: function claimMany(address[] _allocationID, bool _restake) returns()
func (*GraphStakingTransactorSession) CloseAllocation ¶
func (_GraphStaking *GraphStakingTransactorSession) CloseAllocation(_allocationID common.Address, _poi [32]byte) (*types.Transaction, error)
CloseAllocation is a paid mutator transaction binding the contract method 0x44c32a61.
Solidity: function closeAllocation(address _allocationID, bytes32 _poi) returns()
func (*GraphStakingTransactorSession) CloseAllocationMany ¶
func (_GraphStaking *GraphStakingTransactorSession) CloseAllocationMany(_requests []IStakingDataCloseAllocationRequest) (*types.Transaction, error)
CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.
Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()
func (*GraphStakingTransactorSession) CloseAndAllocate ¶
func (_GraphStaking *GraphStakingTransactorSession) CloseAndAllocate(_closingAllocationID common.Address, _poi [32]byte, _indexer common.Address, _subgraphDeploymentID [32]byte, _tokens *big.Int, _allocationID common.Address, _metadata [32]byte, _proof []byte) (*types.Transaction, error)
CloseAndAllocate is a paid mutator transaction binding the contract method 0xc2b6df37.
Solidity: function closeAndAllocate(address _closingAllocationID, bytes32 _poi, address _indexer, bytes32 _subgraphDeploymentID, uint256 _tokens, address _allocationID, bytes32 _metadata, bytes _proof) returns()
func (*GraphStakingTransactorSession) Collect ¶
func (_GraphStaking *GraphStakingTransactorSession) Collect(_tokens *big.Int, _allocationID common.Address) (*types.Transaction, error)
Collect is a paid mutator transaction binding the contract method 0x8d3c100a.
Solidity: function collect(uint256 _tokens, address _allocationID) returns()
func (*GraphStakingTransactorSession) Delegate ¶
func (_GraphStaking *GraphStakingTransactorSession) Delegate(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x026e402b.
Solidity: function delegate(address _indexer, uint256 _tokens) returns(uint256)
func (*GraphStakingTransactorSession) Initialize ¶
func (_GraphStaking *GraphStakingTransactorSession) Initialize(_controller common.Address, _minimumIndexerStake *big.Int, _thawingPeriod uint32, _protocolPercentage uint32, _curationPercentage uint32, _channelDisputeEpochs uint32, _maxAllocationEpochs uint32, _delegationUnbondingPeriod uint32, _delegationRatio uint32, _rebateAlphaNumerator uint32, _rebateAlphaDenominator uint32) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x3fc48624.
Solidity: function initialize(address _controller, uint256 _minimumIndexerStake, uint32 _thawingPeriod, uint32 _protocolPercentage, uint32 _curationPercentage, uint32 _channelDisputeEpochs, uint32 _maxAllocationEpochs, uint32 _delegationUnbondingPeriod, uint32 _delegationRatio, uint32 _rebateAlphaNumerator, uint32 _rebateAlphaDenominator) returns()
func (*GraphStakingTransactorSession) Multicall ¶
func (_GraphStaking *GraphStakingTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (*GraphStakingTransactorSession) SetAssetHolder ¶
func (_GraphStaking *GraphStakingTransactorSession) SetAssetHolder(_assetHolder common.Address, _allowed bool) (*types.Transaction, error)
SetAssetHolder is a paid mutator transaction binding the contract method 0x58d7cf00.
Solidity: function setAssetHolder(address _assetHolder, bool _allowed) returns()
func (*GraphStakingTransactorSession) SetChannelDisputeEpochs ¶
func (_GraphStaking *GraphStakingTransactorSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)
SetChannelDisputeEpochs is a paid mutator transaction binding the contract method 0x1d72e623.
Solidity: function setChannelDisputeEpochs(uint32 _channelDisputeEpochs) returns()
func (*GraphStakingTransactorSession) SetController ¶
func (_GraphStaking *GraphStakingTransactorSession) 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 (*GraphStakingTransactorSession) SetCurationPercentage ¶
func (_GraphStaking *GraphStakingTransactorSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)
SetCurationPercentage is a paid mutator transaction binding the contract method 0x39dcf476.
Solidity: function setCurationPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactorSession) SetDelegationParameters ¶
func (_GraphStaking *GraphStakingTransactorSession) SetDelegationParameters(_indexingRewardCut uint32, _queryFeeCut uint32, _cooldownBlocks uint32) (*types.Transaction, error)
SetDelegationParameters is a paid mutator transaction binding the contract method 0x9dcaa6c9.
Solidity: function setDelegationParameters(uint32 _indexingRewardCut, uint32 _queryFeeCut, uint32 _cooldownBlocks) returns()
func (*GraphStakingTransactorSession) SetDelegationParametersCooldown ¶
func (_GraphStaking *GraphStakingTransactorSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)
SetDelegationParametersCooldown is a paid mutator transaction binding the contract method 0xf8b80a92.
Solidity: function setDelegationParametersCooldown(uint32 _blocks) returns()
func (*GraphStakingTransactorSession) SetDelegationRatio ¶
func (_GraphStaking *GraphStakingTransactorSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)
SetDelegationRatio is a paid mutator transaction binding the contract method 0x1dd42f60.
Solidity: function setDelegationRatio(uint32 _delegationRatio) returns()
func (*GraphStakingTransactorSession) SetDelegationTaxPercentage ¶
func (_GraphStaking *GraphStakingTransactorSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)
SetDelegationTaxPercentage is a paid mutator transaction binding the contract method 0xe6dc5a1c.
Solidity: function setDelegationTaxPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactorSession) SetDelegationUnbondingPeriod ¶
func (_GraphStaking *GraphStakingTransactorSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)
SetDelegationUnbondingPeriod is a paid mutator transaction binding the contract method 0x5e9a6392.
Solidity: function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod) returns()
func (*GraphStakingTransactorSession) SetMaxAllocationEpochs ¶
func (_GraphStaking *GraphStakingTransactorSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)
SetMaxAllocationEpochs is a paid mutator transaction binding the contract method 0x2652d75e.
Solidity: function setMaxAllocationEpochs(uint32 _maxAllocationEpochs) returns()
func (*GraphStakingTransactorSession) SetMinimumIndexerStake ¶
func (_GraphStaking *GraphStakingTransactorSession) SetMinimumIndexerStake(_minimumIndexerStake *big.Int) (*types.Transaction, error)
SetMinimumIndexerStake is a paid mutator transaction binding the contract method 0xddb8b131.
Solidity: function setMinimumIndexerStake(uint256 _minimumIndexerStake) returns()
func (*GraphStakingTransactorSession) SetOperator ¶
func (_GraphStaking *GraphStakingTransactorSession) SetOperator(_operator common.Address, _allowed bool) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0x558a7297.
Solidity: function setOperator(address _operator, bool _allowed) returns()
func (*GraphStakingTransactorSession) SetProtocolPercentage ¶
func (_GraphStaking *GraphStakingTransactorSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)
SetProtocolPercentage is a paid mutator transaction binding the contract method 0x9a48bf83.
Solidity: function setProtocolPercentage(uint32 _percentage) returns()
func (*GraphStakingTransactorSession) SetRebateRatio ¶
func (_GraphStaking *GraphStakingTransactorSession) SetRebateRatio(_alphaNumerator uint32, _alphaDenominator uint32) (*types.Transaction, error)
SetRebateRatio is a paid mutator transaction binding the contract method 0x979f9f5c.
Solidity: function setRebateRatio(uint32 _alphaNumerator, uint32 _alphaDenominator) returns()
func (*GraphStakingTransactorSession) SetRewardsDestination ¶
func (_GraphStaking *GraphStakingTransactorSession) SetRewardsDestination(_destination common.Address) (*types.Transaction, error)
SetRewardsDestination is a paid mutator transaction binding the contract method 0x772495c3.
Solidity: function setRewardsDestination(address _destination) returns()
func (*GraphStakingTransactorSession) SetSlasher ¶
func (_GraphStaking *GraphStakingTransactorSession) SetSlasher(_slasher common.Address, _allowed bool) (*types.Transaction, error)
SetSlasher is a paid mutator transaction binding the contract method 0x52348080.
Solidity: function setSlasher(address _slasher, bool _allowed) returns()
func (*GraphStakingTransactorSession) SetThawingPeriod ¶
func (_GraphStaking *GraphStakingTransactorSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)
SetThawingPeriod is a paid mutator transaction binding the contract method 0x32bc9108.
Solidity: function setThawingPeriod(uint32 _thawingPeriod) returns()
func (*GraphStakingTransactorSession) Slash ¶
func (_GraphStaking *GraphStakingTransactorSession) Slash(_indexer common.Address, _tokens *big.Int, _reward *big.Int, _beneficiary common.Address) (*types.Transaction, error)
Slash is a paid mutator transaction binding the contract method 0xe76fede6.
Solidity: function slash(address _indexer, uint256 _tokens, uint256 _reward, address _beneficiary) returns()
func (*GraphStakingTransactorSession) Stake ¶
func (_GraphStaking *GraphStakingTransactorSession) Stake(_tokens *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _tokens) returns()
func (*GraphStakingTransactorSession) StakeTo ¶
func (_GraphStaking *GraphStakingTransactorSession) StakeTo(_indexer common.Address, _tokens *big.Int) (*types.Transaction, error)
StakeTo is a paid mutator transaction binding the contract method 0xa2a31722.
Solidity: function stakeTo(address _indexer, uint256 _tokens) returns()
func (*GraphStakingTransactorSession) SyncAllContracts ¶
func (_GraphStaking *GraphStakingTransactorSession) SyncAllContracts() (*types.Transaction, error)
SyncAllContracts is a paid mutator transaction binding the contract method 0xd6866ea5.
Solidity: function syncAllContracts() returns()
func (*GraphStakingTransactorSession) Undelegate ¶
func (_GraphStaking *GraphStakingTransactorSession) Undelegate(_indexer common.Address, _shares *big.Int) (*types.Transaction, error)
Undelegate is a paid mutator transaction binding the contract method 0x4d99dd16.
Solidity: function undelegate(address _indexer, uint256 _shares) returns(uint256)
func (*GraphStakingTransactorSession) Unstake ¶
func (_GraphStaking *GraphStakingTransactorSession) Unstake(_tokens *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _tokens) returns()
func (*GraphStakingTransactorSession) Withdraw ¶
func (_GraphStaking *GraphStakingTransactorSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
func (*GraphStakingTransactorSession) WithdrawDelegated ¶
func (_GraphStaking *GraphStakingTransactorSession) WithdrawDelegated(_indexer common.Address, _delegateToIndexer common.Address) (*types.Transaction, error)
WithdrawDelegated is a paid mutator transaction binding the contract method 0x51a60b02.
Solidity: function withdrawDelegated(address _indexer, address _delegateToIndexer) returns(uint256)
type IStakingDataAllocation ¶
type IStakingDataAllocation struct { Indexer common.Address SubgraphDeploymentID [32]byte Tokens *big.Int CreatedAtEpoch *big.Int ClosedAtEpoch *big.Int CollectedFees *big.Int EffectiveAllocation *big.Int AccRewardsPerAllocatedToken *big.Int }
IStakingDataAllocation is an auto generated low-level Go binding around an user-defined struct.
type IStakingDataCloseAllocationRequest ¶
IStakingDataCloseAllocationRequest is an auto generated low-level Go binding around an user-defined struct.