staking

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StakingABI = StakingMetaData.ABI

StakingABI is the input ABI used to generate the binding from. Deprecated: Use StakingMetaData.ABI instead.

View Source
var StakingMetaData = &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\":\"isDelegator\",\"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\":\"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\":\"\",\"type\":\"bytes32\"}],\"name\":\"addressCache\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\":\"structIStaking.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\":\"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\":\"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\"}]",
}

StakingMetaData contains all meta data concerning the Staking contract.

Functions

This section is empty.

Types

type IStakingCloseAllocationRequest

type IStakingCloseAllocationRequest struct {
	AllocationID common.Address
	Poi          [32]byte
}

IStakingCloseAllocationRequest is an auto generated low-level Go binding around an user-defined struct.

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 IStakingDataDelegation

type IStakingDataDelegation struct {
	Shares            *big.Int
	TokensLocked      *big.Int
	TokensLockedUntil *big.Int
}

IStakingDataDelegation is an auto generated low-level Go binding around an user-defined struct.

type Staking

type Staking struct {
	StakingCaller     // Read-only binding to the contract
	StakingTransactor // Write-only binding to the contract
	StakingFilterer   // Log filterer for contract events
}

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

func NewStaking

func NewStaking(address common.Address, backend bind.ContractBackend) (*Staking, error)

NewStaking creates a new instance of Staking, bound to a specific deployed contract.

type StakingAllocationClosed

type StakingAllocationClosed 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
	IsDelegator          bool
	Raw                  types.Log // Blockchain specific contextual infos
}

StakingAllocationClosed represents a AllocationClosed event raised by the Staking contract.

type StakingAllocationClosedIterator

type StakingAllocationClosedIterator struct {
	Event *StakingAllocationClosed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingAllocationClosedIterator is returned from FilterAllocationClosed and is used to iterate over the raw logs and unpacked data for AllocationClosed events raised by the Staking contract.

func (*StakingAllocationClosedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingAllocationClosedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingAllocationClosedIterator) Next

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 StakingAllocationCollected

type StakingAllocationCollected 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
}

StakingAllocationCollected represents a AllocationCollected event raised by the Staking contract.

type StakingAllocationCollectedIterator

type StakingAllocationCollectedIterator struct {
	Event *StakingAllocationCollected // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingAllocationCollectedIterator is returned from FilterAllocationCollected and is used to iterate over the raw logs and unpacked data for AllocationCollected events raised by the Staking contract.

func (*StakingAllocationCollectedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingAllocationCollectedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingAllocationCollectedIterator) Next

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 StakingAllocationCreated

type StakingAllocationCreated 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
}

StakingAllocationCreated represents a AllocationCreated event raised by the Staking contract.

type StakingAllocationCreatedIterator

type StakingAllocationCreatedIterator struct {
	Event *StakingAllocationCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingAllocationCreatedIterator is returned from FilterAllocationCreated and is used to iterate over the raw logs and unpacked data for AllocationCreated events raised by the Staking contract.

func (*StakingAllocationCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingAllocationCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingAllocationCreatedIterator) Next

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 StakingAssetHolderUpdate

type StakingAssetHolderUpdate struct {
	Caller      common.Address
	AssetHolder common.Address
	Allowed     bool
	Raw         types.Log // Blockchain specific contextual infos
}

StakingAssetHolderUpdate represents a AssetHolderUpdate event raised by the Staking contract.

type StakingAssetHolderUpdateIterator

type StakingAssetHolderUpdateIterator struct {
	Event *StakingAssetHolderUpdate // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingAssetHolderUpdateIterator is returned from FilterAssetHolderUpdate and is used to iterate over the raw logs and unpacked data for AssetHolderUpdate events raised by the Staking contract.

func (*StakingAssetHolderUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingAssetHolderUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingAssetHolderUpdateIterator) Next

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 StakingCaller

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

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

func NewStakingCaller

func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)

NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.

func (*StakingCaller) AddressCache

func (_Staking *StakingCaller) AddressCache(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

AddressCache is a free data retrieval call binding the contract method 0xdc675a65.

Solidity: function addressCache(bytes32 ) view returns(address)

func (*StakingCaller) Allocations

func (_Staking *StakingCaller) 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 (*StakingCaller) AlphaDenominator

func (_Staking *StakingCaller) 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 (*StakingCaller) AlphaNumerator

func (_Staking *StakingCaller) 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 (*StakingCaller) AssetHolders

func (_Staking *StakingCaller) 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 (*StakingCaller) ChannelDisputeEpochs

func (_Staking *StakingCaller) 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 (*StakingCaller) Controller

func (_Staking *StakingCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*StakingCaller) CurationPercentage

func (_Staking *StakingCaller) 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 (*StakingCaller) DelegationParametersCooldown

func (_Staking *StakingCaller) 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 (*StakingCaller) DelegationPools

func (_Staking *StakingCaller) 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 (*StakingCaller) DelegationRatio

func (_Staking *StakingCaller) 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 (*StakingCaller) DelegationTaxPercentage

func (_Staking *StakingCaller) 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 (*StakingCaller) DelegationUnbondingPeriod

func (_Staking *StakingCaller) 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 (*StakingCaller) GetAllocation

func (_Staking *StakingCaller) 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 (*StakingCaller) GetAllocationState

func (_Staking *StakingCaller) 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 (*StakingCaller) GetDelegation

func (_Staking *StakingCaller) 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 (*StakingCaller) GetIndexerCapacity

func (_Staking *StakingCaller) 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 (*StakingCaller) GetIndexerStakedTokens

func (_Staking *StakingCaller) 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 (*StakingCaller) GetSubgraphAllocatedTokens

func (_Staking *StakingCaller) 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 (*StakingCaller) GetWithdraweableDelegatedTokens

func (_Staking *StakingCaller) 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 (*StakingCaller) HasStake

func (_Staking *StakingCaller) 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 (*StakingCaller) IsAllocation

func (_Staking *StakingCaller) 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 (*StakingCaller) IsDelegator

func (_Staking *StakingCaller) 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 (*StakingCaller) IsOperator

func (_Staking *StakingCaller) 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 (*StakingCaller) MaxAllocationEpochs

func (_Staking *StakingCaller) 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 (*StakingCaller) MinimumIndexerStake

func (_Staking *StakingCaller) MinimumIndexerStake(opts *bind.CallOpts) (*big.Int, error)

MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.

Solidity: function minimumIndexerStake() view returns(uint256)

func (*StakingCaller) OperatorAuth

func (_Staking *StakingCaller) 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 (*StakingCaller) ProtocolPercentage

func (_Staking *StakingCaller) 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 (*StakingCaller) Rebates

func (_Staking *StakingCaller) 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 (*StakingCaller) RewardsDestination

func (_Staking *StakingCaller) 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 (*StakingCaller) Slashers

func (_Staking *StakingCaller) 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 (*StakingCaller) Stakes

func (_Staking *StakingCaller) 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 (*StakingCaller) SubgraphAllocations

func (_Staking *StakingCaller) 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 (*StakingCaller) ThawingPeriod

func (_Staking *StakingCaller) 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 StakingCallerRaw

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

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

func (*StakingCallerRaw) Call

func (_Staking *StakingCallerRaw) 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 StakingCallerSession

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

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

func (*StakingCallerSession) AddressCache

func (_Staking *StakingCallerSession) AddressCache(arg0 [32]byte) (common.Address, error)

AddressCache is a free data retrieval call binding the contract method 0xdc675a65.

Solidity: function addressCache(bytes32 ) view returns(address)

func (*StakingCallerSession) Allocations

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) AlphaDenominator

func (_Staking *StakingCallerSession) AlphaDenominator() (uint32, error)

AlphaDenominator is a free data retrieval call binding the contract method 0xce853613.

Solidity: function alphaDenominator() view returns(uint32)

func (*StakingCallerSession) AlphaNumerator

func (_Staking *StakingCallerSession) AlphaNumerator() (uint32, error)

AlphaNumerator is a free data retrieval call binding the contract method 0x7ef82070.

Solidity: function alphaNumerator() view returns(uint32)

func (*StakingCallerSession) AssetHolders

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) ChannelDisputeEpochs

func (_Staking *StakingCallerSession) ChannelDisputeEpochs() (uint32, error)

ChannelDisputeEpochs is a free data retrieval call binding the contract method 0xba8c8193.

Solidity: function channelDisputeEpochs() view returns(uint32)

func (*StakingCallerSession) Controller

func (_Staking *StakingCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*StakingCallerSession) CurationPercentage

func (_Staking *StakingCallerSession) CurationPercentage() (uint32, error)

CurationPercentage is a free data retrieval call binding the contract method 0x85b52ad0.

Solidity: function curationPercentage() view returns(uint32)

func (*StakingCallerSession) DelegationParametersCooldown

func (_Staking *StakingCallerSession) DelegationParametersCooldown() (uint32, error)

DelegationParametersCooldown is a free data retrieval call binding the contract method 0x8a7ff87d.

Solidity: function delegationParametersCooldown() view returns(uint32)

func (*StakingCallerSession) DelegationPools

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) DelegationRatio

func (_Staking *StakingCallerSession) DelegationRatio() (uint32, error)

DelegationRatio is a free data retrieval call binding the contract method 0xbfdfa7af.

Solidity: function delegationRatio() view returns(uint32)

func (*StakingCallerSession) DelegationTaxPercentage

func (_Staking *StakingCallerSession) DelegationTaxPercentage() (uint32, error)

DelegationTaxPercentage is a free data retrieval call binding the contract method 0xe6aeb796.

Solidity: function delegationTaxPercentage() view returns(uint32)

func (*StakingCallerSession) DelegationUnbondingPeriod

func (_Staking *StakingCallerSession) DelegationUnbondingPeriod() (uint32, error)

DelegationUnbondingPeriod is a free data retrieval call binding the contract method 0xb6846e47.

Solidity: function delegationUnbondingPeriod() view returns(uint32)

func (*StakingCallerSession) GetAllocation

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetAllocationState

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetDelegation

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetIndexerCapacity

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetIndexerStakedTokens

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetSubgraphAllocatedTokens

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) GetWithdraweableDelegatedTokens

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) HasStake

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) IsAllocation

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) IsDelegator

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) IsOperator

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) MaxAllocationEpochs

func (_Staking *StakingCallerSession) MaxAllocationEpochs() (uint32, error)

MaxAllocationEpochs is a free data retrieval call binding the contract method 0xfb765938.

Solidity: function maxAllocationEpochs() view returns(uint32)

func (*StakingCallerSession) MinimumIndexerStake

func (_Staking *StakingCallerSession) MinimumIndexerStake() (*big.Int, error)

MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.

Solidity: function minimumIndexerStake() view returns(uint256)

func (*StakingCallerSession) OperatorAuth

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) ProtocolPercentage

func (_Staking *StakingCallerSession) ProtocolPercentage() (uint32, error)

ProtocolPercentage is a free data retrieval call binding the contract method 0xa26b90f2.

Solidity: function protocolPercentage() view returns(uint32)

func (*StakingCallerSession) Rebates

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) RewardsDestination

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) Slashers

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) Stakes

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) SubgraphAllocations

func (_Staking *StakingCallerSession) 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 (*StakingCallerSession) ThawingPeriod

func (_Staking *StakingCallerSession) ThawingPeriod() (uint32, error)

ThawingPeriod is a free data retrieval call binding the contract method 0xcdc747dd.

Solidity: function thawingPeriod() view returns(uint32)

type StakingDelegationParametersUpdated

type StakingDelegationParametersUpdated struct {
	Indexer           common.Address
	IndexingRewardCut uint32
	QueryFeeCut       uint32
	CooldownBlocks    uint32
	Raw               types.Log // Blockchain specific contextual infos
}

StakingDelegationParametersUpdated represents a DelegationParametersUpdated event raised by the Staking contract.

type StakingDelegationParametersUpdatedIterator

type StakingDelegationParametersUpdatedIterator struct {
	Event *StakingDelegationParametersUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingDelegationParametersUpdatedIterator is returned from FilterDelegationParametersUpdated and is used to iterate over the raw logs and unpacked data for DelegationParametersUpdated events raised by the Staking contract.

func (*StakingDelegationParametersUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingDelegationParametersUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingDelegationParametersUpdatedIterator) Next

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 StakingFilterer

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

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

func NewStakingFilterer

func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)

NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.

func (*StakingFilterer) FilterAllocationClosed

func (_Staking *StakingFilterer) FilterAllocationClosed(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*StakingAllocationClosedIterator, 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 isDelegator)

func (*StakingFilterer) FilterAllocationCollected

func (_Staking *StakingFilterer) FilterAllocationCollected(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*StakingAllocationCollectedIterator, 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 (*StakingFilterer) FilterAllocationCreated

func (_Staking *StakingFilterer) FilterAllocationCreated(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*StakingAllocationCreatedIterator, 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 (*StakingFilterer) FilterAssetHolderUpdate

func (_Staking *StakingFilterer) FilterAssetHolderUpdate(opts *bind.FilterOpts, caller []common.Address, assetHolder []common.Address) (*StakingAssetHolderUpdateIterator, 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 (*StakingFilterer) FilterDelegationParametersUpdated

func (_Staking *StakingFilterer) FilterDelegationParametersUpdated(opts *bind.FilterOpts, indexer []common.Address) (*StakingDelegationParametersUpdatedIterator, 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 (*StakingFilterer) FilterParameterUpdated

func (_Staking *StakingFilterer) FilterParameterUpdated(opts *bind.FilterOpts) (*StakingParameterUpdatedIterator, error)

FilterParameterUpdated is a free log retrieval operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.

Solidity: event ParameterUpdated(string param)

func (*StakingFilterer) FilterRebateClaimed

func (_Staking *StakingFilterer) FilterRebateClaimed(opts *bind.FilterOpts, indexer []common.Address, subgraphDeploymentID [][32]byte, allocationID []common.Address) (*StakingRebateClaimedIterator, 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 (*StakingFilterer) FilterSetController

func (_Staking *StakingFilterer) FilterSetController(opts *bind.FilterOpts) (*StakingSetControllerIterator, error)

FilterSetController is a free log retrieval operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.

Solidity: event SetController(address controller)

func (*StakingFilterer) FilterSetOperator

func (_Staking *StakingFilterer) FilterSetOperator(opts *bind.FilterOpts, indexer []common.Address, operator []common.Address) (*StakingSetOperatorIterator, 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 (*StakingFilterer) FilterSetRewardsDestination

func (_Staking *StakingFilterer) FilterSetRewardsDestination(opts *bind.FilterOpts, indexer []common.Address, destination []common.Address) (*StakingSetRewardsDestinationIterator, error)

FilterSetRewardsDestination is a free log retrieval operation binding the contract event 0x29c33cd533c17d8916c8e471a4e2c4d1e34caa9b8844527c0bb182b3c104c7d3.

Solidity: event SetRewardsDestination(address indexed indexer, address indexed destination)

func (*StakingFilterer) FilterSlasherUpdate

func (_Staking *StakingFilterer) FilterSlasherUpdate(opts *bind.FilterOpts, caller []common.Address, slasher []common.Address) (*StakingSlasherUpdateIterator, 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 (*StakingFilterer) FilterStakeDelegated

func (_Staking *StakingFilterer) FilterStakeDelegated(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*StakingStakeDelegatedIterator, 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 (*StakingFilterer) FilterStakeDelegatedLocked

func (_Staking *StakingFilterer) FilterStakeDelegatedLocked(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*StakingStakeDelegatedLockedIterator, 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 (*StakingFilterer) FilterStakeDelegatedWithdrawn

func (_Staking *StakingFilterer) FilterStakeDelegatedWithdrawn(opts *bind.FilterOpts, indexer []common.Address, delegator []common.Address) (*StakingStakeDelegatedWithdrawnIterator, 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 (*StakingFilterer) FilterStakeDeposited

func (_Staking *StakingFilterer) FilterStakeDeposited(opts *bind.FilterOpts, indexer []common.Address) (*StakingStakeDepositedIterator, error)

FilterStakeDeposited is a free log retrieval operation binding the contract event 0x0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2.

Solidity: event StakeDeposited(address indexed indexer, uint256 tokens)

func (*StakingFilterer) FilterStakeLocked

func (_Staking *StakingFilterer) FilterStakeLocked(opts *bind.FilterOpts, indexer []common.Address) (*StakingStakeLockedIterator, error)

FilterStakeLocked is a free log retrieval operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.

Solidity: event StakeLocked(address indexed indexer, uint256 tokens, uint256 until)

func (*StakingFilterer) FilterStakeSlashed

func (_Staking *StakingFilterer) FilterStakeSlashed(opts *bind.FilterOpts, indexer []common.Address) (*StakingStakeSlashedIterator, 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 (*StakingFilterer) FilterStakeWithdrawn

func (_Staking *StakingFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, indexer []common.Address) (*StakingStakeWithdrawnIterator, error)

FilterStakeWithdrawn is a free log retrieval operation binding the contract event 0x8108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc.

Solidity: event StakeWithdrawn(address indexed indexer, uint256 tokens)

func (*StakingFilterer) ParseAllocationClosed

func (_Staking *StakingFilterer) ParseAllocationClosed(log types.Log) (*StakingAllocationClosed, 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 isDelegator)

func (*StakingFilterer) ParseAllocationCollected

func (_Staking *StakingFilterer) ParseAllocationCollected(log types.Log) (*StakingAllocationCollected, 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 (*StakingFilterer) ParseAllocationCreated

func (_Staking *StakingFilterer) ParseAllocationCreated(log types.Log) (*StakingAllocationCreated, 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 (*StakingFilterer) ParseAssetHolderUpdate

func (_Staking *StakingFilterer) ParseAssetHolderUpdate(log types.Log) (*StakingAssetHolderUpdate, error)

ParseAssetHolderUpdate is a log parse operation binding the contract event 0x3a8d5e92bb089ebd158e2c22dc449009d62b0df02b6a6792bb0c5fc33f240fcb.

Solidity: event AssetHolderUpdate(address indexed caller, address indexed assetHolder, bool allowed)

func (*StakingFilterer) ParseDelegationParametersUpdated

func (_Staking *StakingFilterer) ParseDelegationParametersUpdated(log types.Log) (*StakingDelegationParametersUpdated, 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 (*StakingFilterer) ParseParameterUpdated

func (_Staking *StakingFilterer) ParseParameterUpdated(log types.Log) (*StakingParameterUpdated, error)

ParseParameterUpdated is a log parse operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.

Solidity: event ParameterUpdated(string param)

func (*StakingFilterer) ParseRebateClaimed

func (_Staking *StakingFilterer) ParseRebateClaimed(log types.Log) (*StakingRebateClaimed, 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 (*StakingFilterer) ParseSetController

func (_Staking *StakingFilterer) ParseSetController(log types.Log) (*StakingSetController, error)

ParseSetController is a log parse operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.

Solidity: event SetController(address controller)

func (*StakingFilterer) ParseSetOperator

func (_Staking *StakingFilterer) ParseSetOperator(log types.Log) (*StakingSetOperator, error)

ParseSetOperator is a log parse operation binding the contract event 0xa3581229e2c315eb01303f468621e07aa9b628a23b1608162ae063f143355135.

Solidity: event SetOperator(address indexed indexer, address indexed operator, bool allowed)

func (*StakingFilterer) ParseSetRewardsDestination

func (_Staking *StakingFilterer) ParseSetRewardsDestination(log types.Log) (*StakingSetRewardsDestination, error)

ParseSetRewardsDestination is a log parse operation binding the contract event 0x29c33cd533c17d8916c8e471a4e2c4d1e34caa9b8844527c0bb182b3c104c7d3.

Solidity: event SetRewardsDestination(address indexed indexer, address indexed destination)

func (*StakingFilterer) ParseSlasherUpdate

func (_Staking *StakingFilterer) ParseSlasherUpdate(log types.Log) (*StakingSlasherUpdate, error)

ParseSlasherUpdate is a log parse operation binding the contract event 0x87ea6771e87d96ce16dbe8eda64da9473733e4c1c568baf8ae47256c5bd765e9.

Solidity: event SlasherUpdate(address indexed caller, address indexed slasher, bool allowed)

func (*StakingFilterer) ParseStakeDelegated

func (_Staking *StakingFilterer) ParseStakeDelegated(log types.Log) (*StakingStakeDelegated, 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 (*StakingFilterer) ParseStakeDelegatedLocked

func (_Staking *StakingFilterer) ParseStakeDelegatedLocked(log types.Log) (*StakingStakeDelegatedLocked, 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 (*StakingFilterer) ParseStakeDelegatedWithdrawn

func (_Staking *StakingFilterer) ParseStakeDelegatedWithdrawn(log types.Log) (*StakingStakeDelegatedWithdrawn, error)

ParseStakeDelegatedWithdrawn is a log parse operation binding the contract event 0x1b2e7737e043c5cf1b587ceb4daeb7ae00148b9bda8f79f1093eead08f141952.

Solidity: event StakeDelegatedWithdrawn(address indexed indexer, address indexed delegator, uint256 tokens)

func (*StakingFilterer) ParseStakeDeposited

func (_Staking *StakingFilterer) ParseStakeDeposited(log types.Log) (*StakingStakeDeposited, error)

ParseStakeDeposited is a log parse operation binding the contract event 0x0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2.

Solidity: event StakeDeposited(address indexed indexer, uint256 tokens)

func (*StakingFilterer) ParseStakeLocked

func (_Staking *StakingFilterer) ParseStakeLocked(log types.Log) (*StakingStakeLocked, error)

ParseStakeLocked is a log parse operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.

Solidity: event StakeLocked(address indexed indexer, uint256 tokens, uint256 until)

func (*StakingFilterer) ParseStakeSlashed

func (_Staking *StakingFilterer) ParseStakeSlashed(log types.Log) (*StakingStakeSlashed, 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 (*StakingFilterer) ParseStakeWithdrawn

func (_Staking *StakingFilterer) ParseStakeWithdrawn(log types.Log) (*StakingStakeWithdrawn, error)

ParseStakeWithdrawn is a log parse operation binding the contract event 0x8108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc.

Solidity: event StakeWithdrawn(address indexed indexer, uint256 tokens)

func (*StakingFilterer) WatchAllocationClosed

func (_Staking *StakingFilterer) WatchAllocationClosed(opts *bind.WatchOpts, sink chan<- *StakingAllocationClosed, 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 isDelegator)

func (*StakingFilterer) WatchAllocationCollected

func (_Staking *StakingFilterer) WatchAllocationCollected(opts *bind.WatchOpts, sink chan<- *StakingAllocationCollected, 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 (*StakingFilterer) WatchAllocationCreated

func (_Staking *StakingFilterer) WatchAllocationCreated(opts *bind.WatchOpts, sink chan<- *StakingAllocationCreated, 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 (*StakingFilterer) WatchAssetHolderUpdate

func (_Staking *StakingFilterer) WatchAssetHolderUpdate(opts *bind.WatchOpts, sink chan<- *StakingAssetHolderUpdate, 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 (*StakingFilterer) WatchDelegationParametersUpdated

func (_Staking *StakingFilterer) WatchDelegationParametersUpdated(opts *bind.WatchOpts, sink chan<- *StakingDelegationParametersUpdated, 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 (*StakingFilterer) WatchParameterUpdated

func (_Staking *StakingFilterer) WatchParameterUpdated(opts *bind.WatchOpts, sink chan<- *StakingParameterUpdated) (event.Subscription, error)

WatchParameterUpdated is a free log subscription operation binding the contract event 0x96d5a4b4edf1cefd0900c166d64447f8da1d01d1861a6a60894b5b82a2c15c3c.

Solidity: event ParameterUpdated(string param)

func (*StakingFilterer) WatchRebateClaimed

func (_Staking *StakingFilterer) WatchRebateClaimed(opts *bind.WatchOpts, sink chan<- *StakingRebateClaimed, 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 (*StakingFilterer) WatchSetController

func (_Staking *StakingFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *StakingSetController) (event.Subscription, error)

WatchSetController is a free log subscription operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.

Solidity: event SetController(address controller)

func (*StakingFilterer) WatchSetOperator

func (_Staking *StakingFilterer) WatchSetOperator(opts *bind.WatchOpts, sink chan<- *StakingSetOperator, 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 (*StakingFilterer) WatchSetRewardsDestination

func (_Staking *StakingFilterer) WatchSetRewardsDestination(opts *bind.WatchOpts, sink chan<- *StakingSetRewardsDestination, 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 (*StakingFilterer) WatchSlasherUpdate

func (_Staking *StakingFilterer) WatchSlasherUpdate(opts *bind.WatchOpts, sink chan<- *StakingSlasherUpdate, 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 (*StakingFilterer) WatchStakeDelegated

func (_Staking *StakingFilterer) WatchStakeDelegated(opts *bind.WatchOpts, sink chan<- *StakingStakeDelegated, 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 (*StakingFilterer) WatchStakeDelegatedLocked

func (_Staking *StakingFilterer) WatchStakeDelegatedLocked(opts *bind.WatchOpts, sink chan<- *StakingStakeDelegatedLocked, 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 (*StakingFilterer) WatchStakeDelegatedWithdrawn

func (_Staking *StakingFilterer) WatchStakeDelegatedWithdrawn(opts *bind.WatchOpts, sink chan<- *StakingStakeDelegatedWithdrawn, 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 (*StakingFilterer) WatchStakeDeposited

func (_Staking *StakingFilterer) WatchStakeDeposited(opts *bind.WatchOpts, sink chan<- *StakingStakeDeposited, 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 (*StakingFilterer) WatchStakeLocked

func (_Staking *StakingFilterer) WatchStakeLocked(opts *bind.WatchOpts, sink chan<- *StakingStakeLocked, 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 (*StakingFilterer) WatchStakeSlashed

func (_Staking *StakingFilterer) WatchStakeSlashed(opts *bind.WatchOpts, sink chan<- *StakingStakeSlashed, 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 (*StakingFilterer) WatchStakeWithdrawn

func (_Staking *StakingFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *StakingStakeWithdrawn, 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 StakingParameterUpdated

type StakingParameterUpdated struct {
	Param string
	Raw   types.Log // Blockchain specific contextual infos
}

StakingParameterUpdated represents a ParameterUpdated event raised by the Staking contract.

type StakingParameterUpdatedIterator

type StakingParameterUpdatedIterator struct {
	Event *StakingParameterUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingParameterUpdatedIterator is returned from FilterParameterUpdated and is used to iterate over the raw logs and unpacked data for ParameterUpdated events raised by the Staking contract.

func (*StakingParameterUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingParameterUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingParameterUpdatedIterator) Next

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 StakingRaw

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

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

func (*StakingRaw) Call

func (_Staking *StakingRaw) 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 (*StakingRaw) Transact

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

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

func (*StakingRaw) Transfer

func (_Staking *StakingRaw) 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 StakingRebateClaimed

type StakingRebateClaimed 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
}

StakingRebateClaimed represents a RebateClaimed event raised by the Staking contract.

type StakingRebateClaimedIterator

type StakingRebateClaimedIterator struct {
	Event *StakingRebateClaimed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingRebateClaimedIterator is returned from FilterRebateClaimed and is used to iterate over the raw logs and unpacked data for RebateClaimed events raised by the Staking contract.

func (*StakingRebateClaimedIterator) Close

func (it *StakingRebateClaimedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingRebateClaimedIterator) Error

func (it *StakingRebateClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingRebateClaimedIterator) Next

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 StakingSession

type StakingSession struct {
	Contract     *Staking          // 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
}

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

func (*StakingSession) AcceptProxy

func (_Staking *StakingSession) 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 (*StakingSession) AcceptProxyAndCall

func (_Staking *StakingSession) 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 (*StakingSession) AddressCache

func (_Staking *StakingSession) AddressCache(arg0 [32]byte) (common.Address, error)

AddressCache is a free data retrieval call binding the contract method 0xdc675a65.

Solidity: function addressCache(bytes32 ) view returns(address)

func (*StakingSession) Allocate

func (_Staking *StakingSession) 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 (*StakingSession) AllocateFrom

func (_Staking *StakingSession) 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 (*StakingSession) Allocations

func (_Staking *StakingSession) 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 (*StakingSession) AlphaDenominator

func (_Staking *StakingSession) AlphaDenominator() (uint32, error)

AlphaDenominator is a free data retrieval call binding the contract method 0xce853613.

Solidity: function alphaDenominator() view returns(uint32)

func (*StakingSession) AlphaNumerator

func (_Staking *StakingSession) AlphaNumerator() (uint32, error)

AlphaNumerator is a free data retrieval call binding the contract method 0x7ef82070.

Solidity: function alphaNumerator() view returns(uint32)

func (*StakingSession) AssetHolders

func (_Staking *StakingSession) 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 (*StakingSession) ChannelDisputeEpochs

func (_Staking *StakingSession) ChannelDisputeEpochs() (uint32, error)

ChannelDisputeEpochs is a free data retrieval call binding the contract method 0xba8c8193.

Solidity: function channelDisputeEpochs() view returns(uint32)

func (*StakingSession) Claim

func (_Staking *StakingSession) 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 (*StakingSession) ClaimMany

func (_Staking *StakingSession) 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 (*StakingSession) CloseAllocation

func (_Staking *StakingSession) 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 (*StakingSession) CloseAllocationMany

func (_Staking *StakingSession) CloseAllocationMany(_requests []IStakingCloseAllocationRequest) (*types.Transaction, error)

CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.

Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()

func (*StakingSession) CloseAndAllocate

func (_Staking *StakingSession) 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 (*StakingSession) Collect

func (_Staking *StakingSession) 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 (*StakingSession) Controller

func (_Staking *StakingSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*StakingSession) CurationPercentage

func (_Staking *StakingSession) CurationPercentage() (uint32, error)

CurationPercentage is a free data retrieval call binding the contract method 0x85b52ad0.

Solidity: function curationPercentage() view returns(uint32)

func (*StakingSession) Delegate

func (_Staking *StakingSession) 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 (*StakingSession) DelegationParametersCooldown

func (_Staking *StakingSession) DelegationParametersCooldown() (uint32, error)

DelegationParametersCooldown is a free data retrieval call binding the contract method 0x8a7ff87d.

Solidity: function delegationParametersCooldown() view returns(uint32)

func (*StakingSession) DelegationPools

func (_Staking *StakingSession) 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 (*StakingSession) DelegationRatio

func (_Staking *StakingSession) DelegationRatio() (uint32, error)

DelegationRatio is a free data retrieval call binding the contract method 0xbfdfa7af.

Solidity: function delegationRatio() view returns(uint32)

func (*StakingSession) DelegationTaxPercentage

func (_Staking *StakingSession) DelegationTaxPercentage() (uint32, error)

DelegationTaxPercentage is a free data retrieval call binding the contract method 0xe6aeb796.

Solidity: function delegationTaxPercentage() view returns(uint32)

func (*StakingSession) DelegationUnbondingPeriod

func (_Staking *StakingSession) DelegationUnbondingPeriod() (uint32, error)

DelegationUnbondingPeriod is a free data retrieval call binding the contract method 0xb6846e47.

Solidity: function delegationUnbondingPeriod() view returns(uint32)

func (*StakingSession) GetAllocation

func (_Staking *StakingSession) 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 (*StakingSession) GetAllocationState

func (_Staking *StakingSession) 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 (*StakingSession) GetDelegation

func (_Staking *StakingSession) 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 (*StakingSession) GetIndexerCapacity

func (_Staking *StakingSession) 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 (*StakingSession) GetIndexerStakedTokens

func (_Staking *StakingSession) 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 (*StakingSession) GetSubgraphAllocatedTokens

func (_Staking *StakingSession) 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 (*StakingSession) GetWithdraweableDelegatedTokens

func (_Staking *StakingSession) 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 (*StakingSession) HasStake

func (_Staking *StakingSession) 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 (*StakingSession) Initialize

func (_Staking *StakingSession) 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 (*StakingSession) IsAllocation

func (_Staking *StakingSession) 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 (*StakingSession) IsDelegator

func (_Staking *StakingSession) 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 (*StakingSession) IsOperator

func (_Staking *StakingSession) 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 (*StakingSession) MaxAllocationEpochs

func (_Staking *StakingSession) MaxAllocationEpochs() (uint32, error)

MaxAllocationEpochs is a free data retrieval call binding the contract method 0xfb765938.

Solidity: function maxAllocationEpochs() view returns(uint32)

func (*StakingSession) MinimumIndexerStake

func (_Staking *StakingSession) MinimumIndexerStake() (*big.Int, error)

MinimumIndexerStake is a free data retrieval call binding the contract method 0xf2485bf2.

Solidity: function minimumIndexerStake() view returns(uint256)

func (*StakingSession) OperatorAuth

func (_Staking *StakingSession) 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 (*StakingSession) ProtocolPercentage

func (_Staking *StakingSession) ProtocolPercentage() (uint32, error)

ProtocolPercentage is a free data retrieval call binding the contract method 0xa26b90f2.

Solidity: function protocolPercentage() view returns(uint32)

func (*StakingSession) Rebates

func (_Staking *StakingSession) 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 (*StakingSession) RewardsDestination

func (_Staking *StakingSession) 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 (*StakingSession) SetAssetHolder

func (_Staking *StakingSession) 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 (*StakingSession) SetChannelDisputeEpochs

func (_Staking *StakingSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)

SetChannelDisputeEpochs is a paid mutator transaction binding the contract method 0x1d72e623.

Solidity: function setChannelDisputeEpochs(uint32 _channelDisputeEpochs) returns()

func (*StakingSession) SetController

func (_Staking *StakingSession) 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 (*StakingSession) SetCurationPercentage

func (_Staking *StakingSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)

SetCurationPercentage is a paid mutator transaction binding the contract method 0x39dcf476.

Solidity: function setCurationPercentage(uint32 _percentage) returns()

func (*StakingSession) SetDelegationParameters

func (_Staking *StakingSession) 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 (*StakingSession) SetDelegationParametersCooldown

func (_Staking *StakingSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)

SetDelegationParametersCooldown is a paid mutator transaction binding the contract method 0xf8b80a92.

Solidity: function setDelegationParametersCooldown(uint32 _blocks) returns()

func (*StakingSession) SetDelegationRatio

func (_Staking *StakingSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)

SetDelegationRatio is a paid mutator transaction binding the contract method 0x1dd42f60.

Solidity: function setDelegationRatio(uint32 _delegationRatio) returns()

func (*StakingSession) SetDelegationTaxPercentage

func (_Staking *StakingSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)

SetDelegationTaxPercentage is a paid mutator transaction binding the contract method 0xe6dc5a1c.

Solidity: function setDelegationTaxPercentage(uint32 _percentage) returns()

func (*StakingSession) SetDelegationUnbondingPeriod

func (_Staking *StakingSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)

SetDelegationUnbondingPeriod is a paid mutator transaction binding the contract method 0x5e9a6392.

Solidity: function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod) returns()

func (*StakingSession) SetMaxAllocationEpochs

func (_Staking *StakingSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)

SetMaxAllocationEpochs is a paid mutator transaction binding the contract method 0x2652d75e.

Solidity: function setMaxAllocationEpochs(uint32 _maxAllocationEpochs) returns()

func (*StakingSession) SetMinimumIndexerStake

func (_Staking *StakingSession) 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 (*StakingSession) SetOperator

func (_Staking *StakingSession) 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 (*StakingSession) SetProtocolPercentage

func (_Staking *StakingSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)

SetProtocolPercentage is a paid mutator transaction binding the contract method 0x9a48bf83.

Solidity: function setProtocolPercentage(uint32 _percentage) returns()

func (*StakingSession) SetRebateRatio

func (_Staking *StakingSession) 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 (*StakingSession) SetRewardsDestination

func (_Staking *StakingSession) 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 (*StakingSession) SetSlasher

func (_Staking *StakingSession) 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 (*StakingSession) SetThawingPeriod

func (_Staking *StakingSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)

SetThawingPeriod is a paid mutator transaction binding the contract method 0x32bc9108.

Solidity: function setThawingPeriod(uint32 _thawingPeriod) returns()

func (*StakingSession) Slash

func (_Staking *StakingSession) 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 (*StakingSession) Slashers

func (_Staking *StakingSession) 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 (*StakingSession) Stake

func (_Staking *StakingSession) 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 (*StakingSession) StakeTo

func (_Staking *StakingSession) 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 (*StakingSession) Stakes

func (_Staking *StakingSession) 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 (*StakingSession) SubgraphAllocations

func (_Staking *StakingSession) 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 (*StakingSession) ThawingPeriod

func (_Staking *StakingSession) ThawingPeriod() (uint32, error)

ThawingPeriod is a free data retrieval call binding the contract method 0xcdc747dd.

Solidity: function thawingPeriod() view returns(uint32)

func (*StakingSession) Undelegate

func (_Staking *StakingSession) 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 (*StakingSession) Unstake

func (_Staking *StakingSession) 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 (*StakingSession) Withdraw

func (_Staking *StakingSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*StakingSession) WithdrawDelegated

func (_Staking *StakingSession) 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 StakingSetController

type StakingSetController struct {
	Controller common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

StakingSetController represents a SetController event raised by the Staking contract.

type StakingSetControllerIterator

type StakingSetControllerIterator struct {
	Event *StakingSetController // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingSetControllerIterator is returned from FilterSetController and is used to iterate over the raw logs and unpacked data for SetController events raised by the Staking contract.

func (*StakingSetControllerIterator) Close

func (it *StakingSetControllerIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingSetControllerIterator) Error

func (it *StakingSetControllerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingSetControllerIterator) Next

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 StakingSetOperator

type StakingSetOperator struct {
	Indexer  common.Address
	Operator common.Address
	Allowed  bool
	Raw      types.Log // Blockchain specific contextual infos
}

StakingSetOperator represents a SetOperator event raised by the Staking contract.

type StakingSetOperatorIterator

type StakingSetOperatorIterator struct {
	Event *StakingSetOperator // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingSetOperatorIterator is returned from FilterSetOperator and is used to iterate over the raw logs and unpacked data for SetOperator events raised by the Staking contract.

func (*StakingSetOperatorIterator) Close

func (it *StakingSetOperatorIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingSetOperatorIterator) Error

func (it *StakingSetOperatorIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingSetOperatorIterator) Next

func (it *StakingSetOperatorIterator) 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 StakingSetRewardsDestination

type StakingSetRewardsDestination struct {
	Indexer     common.Address
	Destination common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

StakingSetRewardsDestination represents a SetRewardsDestination event raised by the Staking contract.

type StakingSetRewardsDestinationIterator

type StakingSetRewardsDestinationIterator struct {
	Event *StakingSetRewardsDestination // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingSetRewardsDestinationIterator is returned from FilterSetRewardsDestination and is used to iterate over the raw logs and unpacked data for SetRewardsDestination events raised by the Staking contract.

func (*StakingSetRewardsDestinationIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingSetRewardsDestinationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingSetRewardsDestinationIterator) Next

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 StakingSlasherUpdate

type StakingSlasherUpdate struct {
	Caller  common.Address
	Slasher common.Address
	Allowed bool
	Raw     types.Log // Blockchain specific contextual infos
}

StakingSlasherUpdate represents a SlasherUpdate event raised by the Staking contract.

type StakingSlasherUpdateIterator

type StakingSlasherUpdateIterator struct {
	Event *StakingSlasherUpdate // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingSlasherUpdateIterator is returned from FilterSlasherUpdate and is used to iterate over the raw logs and unpacked data for SlasherUpdate events raised by the Staking contract.

func (*StakingSlasherUpdateIterator) Close

func (it *StakingSlasherUpdateIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingSlasherUpdateIterator) Error

func (it *StakingSlasherUpdateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingSlasherUpdateIterator) Next

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 StakingStakeDelegated

type StakingStakeDelegated struct {
	Indexer   common.Address
	Delegator common.Address
	Tokens    *big.Int
	Shares    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingStakeDelegated represents a StakeDelegated event raised by the Staking contract.

type StakingStakeDelegatedIterator

type StakingStakeDelegatedIterator struct {
	Event *StakingStakeDelegated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeDelegatedIterator is returned from FilterStakeDelegated and is used to iterate over the raw logs and unpacked data for StakeDelegated events raised by the Staking contract.

func (*StakingStakeDelegatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeDelegatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeDelegatedIterator) Next

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 StakingStakeDelegatedLocked

type StakingStakeDelegatedLocked struct {
	Indexer   common.Address
	Delegator common.Address
	Tokens    *big.Int
	Shares    *big.Int
	Until     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingStakeDelegatedLocked represents a StakeDelegatedLocked event raised by the Staking contract.

type StakingStakeDelegatedLockedIterator

type StakingStakeDelegatedLockedIterator struct {
	Event *StakingStakeDelegatedLocked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeDelegatedLockedIterator is returned from FilterStakeDelegatedLocked and is used to iterate over the raw logs and unpacked data for StakeDelegatedLocked events raised by the Staking contract.

func (*StakingStakeDelegatedLockedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeDelegatedLockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeDelegatedLockedIterator) Next

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 StakingStakeDelegatedWithdrawn

type StakingStakeDelegatedWithdrawn struct {
	Indexer   common.Address
	Delegator common.Address
	Tokens    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingStakeDelegatedWithdrawn represents a StakeDelegatedWithdrawn event raised by the Staking contract.

type StakingStakeDelegatedWithdrawnIterator

type StakingStakeDelegatedWithdrawnIterator struct {
	Event *StakingStakeDelegatedWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeDelegatedWithdrawnIterator is returned from FilterStakeDelegatedWithdrawn and is used to iterate over the raw logs and unpacked data for StakeDelegatedWithdrawn events raised by the Staking contract.

func (*StakingStakeDelegatedWithdrawnIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeDelegatedWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeDelegatedWithdrawnIterator) Next

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 StakingStakeDeposited

type StakingStakeDeposited struct {
	Indexer common.Address
	Tokens  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakingStakeDeposited represents a StakeDeposited event raised by the Staking contract.

type StakingStakeDepositedIterator

type StakingStakeDepositedIterator struct {
	Event *StakingStakeDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeDepositedIterator is returned from FilterStakeDeposited and is used to iterate over the raw logs and unpacked data for StakeDeposited events raised by the Staking contract.

func (*StakingStakeDepositedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeDepositedIterator) Next

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 StakingStakeLocked

type StakingStakeLocked struct {
	Indexer common.Address
	Tokens  *big.Int
	Until   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakingStakeLocked represents a StakeLocked event raised by the Staking contract.

type StakingStakeLockedIterator

type StakingStakeLockedIterator struct {
	Event *StakingStakeLocked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeLockedIterator is returned from FilterStakeLocked and is used to iterate over the raw logs and unpacked data for StakeLocked events raised by the Staking contract.

func (*StakingStakeLockedIterator) Close

func (it *StakingStakeLockedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeLockedIterator) Error

func (it *StakingStakeLockedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeLockedIterator) Next

func (it *StakingStakeLockedIterator) 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 StakingStakeSlashed

type StakingStakeSlashed struct {
	Indexer     common.Address
	Tokens      *big.Int
	Reward      *big.Int
	Beneficiary common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

StakingStakeSlashed represents a StakeSlashed event raised by the Staking contract.

type StakingStakeSlashedIterator

type StakingStakeSlashedIterator struct {
	Event *StakingStakeSlashed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeSlashedIterator is returned from FilterStakeSlashed and is used to iterate over the raw logs and unpacked data for StakeSlashed events raised by the Staking contract.

func (*StakingStakeSlashedIterator) Close

func (it *StakingStakeSlashedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeSlashedIterator) Error

func (it *StakingStakeSlashedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeSlashedIterator) Next

func (it *StakingStakeSlashedIterator) 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 StakingStakeWithdrawn

type StakingStakeWithdrawn struct {
	Indexer common.Address
	Tokens  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakingStakeWithdrawn represents a StakeWithdrawn event raised by the Staking contract.

type StakingStakeWithdrawnIterator

type StakingStakeWithdrawnIterator struct {
	Event *StakingStakeWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StakingStakeWithdrawnIterator is returned from FilterStakeWithdrawn and is used to iterate over the raw logs and unpacked data for StakeWithdrawn events raised by the Staking contract.

func (*StakingStakeWithdrawnIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*StakingStakeWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingStakeWithdrawnIterator) Next

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 StakingTransactor

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

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

func NewStakingTransactor

func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)

NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.

func (*StakingTransactor) AcceptProxy

func (_Staking *StakingTransactor) 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 (*StakingTransactor) AcceptProxyAndCall

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Allocate

func (_Staking *StakingTransactor) 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 (*StakingTransactor) AllocateFrom

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Claim

func (_Staking *StakingTransactor) 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 (*StakingTransactor) ClaimMany

func (_Staking *StakingTransactor) 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 (*StakingTransactor) CloseAllocation

func (_Staking *StakingTransactor) 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 (*StakingTransactor) CloseAllocationMany

func (_Staking *StakingTransactor) CloseAllocationMany(opts *bind.TransactOpts, _requests []IStakingCloseAllocationRequest) (*types.Transaction, error)

CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.

Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()

func (*StakingTransactor) CloseAndAllocate

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Collect

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Delegate

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Initialize

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetAssetHolder

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetChannelDisputeEpochs

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetController

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetCurationPercentage

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetDelegationParameters

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetDelegationParametersCooldown

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetDelegationRatio

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetDelegationTaxPercentage

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetDelegationUnbondingPeriod

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetMaxAllocationEpochs

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetMinimumIndexerStake

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetOperator

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetProtocolPercentage

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetRebateRatio

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetRewardsDestination

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetSlasher

func (_Staking *StakingTransactor) 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 (*StakingTransactor) SetThawingPeriod

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Slash

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Stake

func (_Staking *StakingTransactor) 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 (*StakingTransactor) StakeTo

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Undelegate

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Unstake

func (_Staking *StakingTransactor) 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 (*StakingTransactor) Withdraw

func (_Staking *StakingTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*StakingTransactor) WithdrawDelegated

func (_Staking *StakingTransactor) 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 StakingTransactorRaw

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

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

func (*StakingTransactorRaw) Transact

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

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

func (*StakingTransactorRaw) Transfer

func (_Staking *StakingTransactorRaw) 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 StakingTransactorSession

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

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

func (*StakingTransactorSession) AcceptProxy

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) AcceptProxyAndCall

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Allocate

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) AllocateFrom

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Claim

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) ClaimMany

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) CloseAllocation

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) CloseAllocationMany

func (_Staking *StakingTransactorSession) CloseAllocationMany(_requests []IStakingCloseAllocationRequest) (*types.Transaction, error)

CloseAllocationMany is a paid mutator transaction binding the contract method 0x0d851d97.

Solidity: function closeAllocationMany((address,bytes32)[] _requests) returns()

func (*StakingTransactorSession) CloseAndAllocate

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Collect

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Delegate

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Initialize

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetAssetHolder

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetChannelDisputeEpochs

func (_Staking *StakingTransactorSession) SetChannelDisputeEpochs(_channelDisputeEpochs uint32) (*types.Transaction, error)

SetChannelDisputeEpochs is a paid mutator transaction binding the contract method 0x1d72e623.

Solidity: function setChannelDisputeEpochs(uint32 _channelDisputeEpochs) returns()

func (*StakingTransactorSession) SetController

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetCurationPercentage

func (_Staking *StakingTransactorSession) SetCurationPercentage(_percentage uint32) (*types.Transaction, error)

SetCurationPercentage is a paid mutator transaction binding the contract method 0x39dcf476.

Solidity: function setCurationPercentage(uint32 _percentage) returns()

func (*StakingTransactorSession) SetDelegationParameters

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetDelegationParametersCooldown

func (_Staking *StakingTransactorSession) SetDelegationParametersCooldown(_blocks uint32) (*types.Transaction, error)

SetDelegationParametersCooldown is a paid mutator transaction binding the contract method 0xf8b80a92.

Solidity: function setDelegationParametersCooldown(uint32 _blocks) returns()

func (*StakingTransactorSession) SetDelegationRatio

func (_Staking *StakingTransactorSession) SetDelegationRatio(_delegationRatio uint32) (*types.Transaction, error)

SetDelegationRatio is a paid mutator transaction binding the contract method 0x1dd42f60.

Solidity: function setDelegationRatio(uint32 _delegationRatio) returns()

func (*StakingTransactorSession) SetDelegationTaxPercentage

func (_Staking *StakingTransactorSession) SetDelegationTaxPercentage(_percentage uint32) (*types.Transaction, error)

SetDelegationTaxPercentage is a paid mutator transaction binding the contract method 0xe6dc5a1c.

Solidity: function setDelegationTaxPercentage(uint32 _percentage) returns()

func (*StakingTransactorSession) SetDelegationUnbondingPeriod

func (_Staking *StakingTransactorSession) SetDelegationUnbondingPeriod(_delegationUnbondingPeriod uint32) (*types.Transaction, error)

SetDelegationUnbondingPeriod is a paid mutator transaction binding the contract method 0x5e9a6392.

Solidity: function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod) returns()

func (*StakingTransactorSession) SetMaxAllocationEpochs

func (_Staking *StakingTransactorSession) SetMaxAllocationEpochs(_maxAllocationEpochs uint32) (*types.Transaction, error)

SetMaxAllocationEpochs is a paid mutator transaction binding the contract method 0x2652d75e.

Solidity: function setMaxAllocationEpochs(uint32 _maxAllocationEpochs) returns()

func (*StakingTransactorSession) SetMinimumIndexerStake

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetOperator

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetProtocolPercentage

func (_Staking *StakingTransactorSession) SetProtocolPercentage(_percentage uint32) (*types.Transaction, error)

SetProtocolPercentage is a paid mutator transaction binding the contract method 0x9a48bf83.

Solidity: function setProtocolPercentage(uint32 _percentage) returns()

func (*StakingTransactorSession) SetRebateRatio

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetRewardsDestination

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetSlasher

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) SetThawingPeriod

func (_Staking *StakingTransactorSession) SetThawingPeriod(_thawingPeriod uint32) (*types.Transaction, error)

SetThawingPeriod is a paid mutator transaction binding the contract method 0x32bc9108.

Solidity: function setThawingPeriod(uint32 _thawingPeriod) returns()

func (*StakingTransactorSession) Slash

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Stake

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) StakeTo

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Undelegate

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Unstake

func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Withdraw

func (_Staking *StakingTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*StakingTransactorSession) WithdrawDelegated

func (_Staking *StakingTransactorSession) 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)

Jump to

Keyboard shortcuts

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