Documentation
¶
Index ¶
- Variables
- type IWorkerHubAssignmentInfo
- type IWorkerHubInferenceInfo
- type IWorkerHubWorkerInfo
- type WorkerHub
- type WorkerHubBlocksPerEpoch
- type WorkerHubBlocksPerEpochIterator
- type WorkerHubCaller
- func (_WorkerHub *WorkerHubCaller) AssignmentNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) Assignments(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) BlocksPerEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) DisputingTimeLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) DisqualificationPercentage(opts *bind.CallOpts) (uint16, error)
- func (_WorkerHub *WorkerHubCaller) FeePercentage(opts *bind.CallOpts) (uint16, error)
- func (_WorkerHub *WorkerHubCaller) FinePercentage(opts *bind.CallOpts) (uint16, error)
- func (_WorkerHub *WorkerHubCaller) GetInferences(opts *bind.CallOpts, _inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
- func (_WorkerHub *WorkerHubCaller) GetMinerAddresses(opts *bind.CallOpts) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCaller) GetMinerAddressesOfModel(opts *bind.CallOpts, _model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCaller) GetMiners(opts *bind.CallOpts) ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubCaller) GetMiningAssignments(opts *bind.CallOpts) ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubCaller) GetMintingAssignmentsOfInference(opts *bind.CallOpts, _inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubCaller) GetModelAddresses(opts *bind.CallOpts) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCaller) GetNOMiner(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) GetValidatorAddresses(opts *bind.CallOpts) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCaller) GetValidatorAddressesOfModel(opts *bind.CallOpts, _model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCaller) GetValidators(opts *bind.CallOpts) ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubCaller) InferenceNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) IsAssignmentPending(opts *bind.CallOpts, _assignmentId *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubCaller) LastBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) MaximumTier(opts *bind.CallOpts) (uint16, error)
- func (_WorkerHub *WorkerHubCaller) MinerMinimumStake(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) MinerRequirement(opts *bind.CallOpts) (uint8, error)
- func (_WorkerHub *WorkerHubCaller) MinerUnstakeRequests(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) Miners(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) MiningTimeLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) Models(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) Multiplier(opts *bind.CallOpts, _miner common.Address) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_WorkerHub *WorkerHubCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_WorkerHub *WorkerHubCaller) PenaltyDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) RewardInEpoch(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) RewardPerEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) Treasury(opts *bind.CallOpts) (common.Address, error)
- func (_WorkerHub *WorkerHubCaller) UnstakeDelayTime(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) ValidatingTimeLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) ValidatorDisputed(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubCaller) ValidatorMinimumStake(opts *bind.CallOpts) (*big.Int, error)
- func (_WorkerHub *WorkerHubCaller) ValidatorUnstakeRequests(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) Validators(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCaller) Version(opts *bind.CallOpts) (string, error)
- type WorkerHubCallerRaw
- type WorkerHubCallerSession
- func (_WorkerHub *WorkerHubCallerSession) AssignmentNumber() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) Assignments(arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) BlocksPerEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) CurrentEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) DisputingTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) DisqualificationPercentage() (uint16, error)
- func (_WorkerHub *WorkerHubCallerSession) FeePercentage() (uint16, error)
- func (_WorkerHub *WorkerHubCallerSession) FinePercentage() (uint16, error)
- func (_WorkerHub *WorkerHubCallerSession) GetInferences(_inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
- func (_WorkerHub *WorkerHubCallerSession) GetMinerAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) GetMinerAddressesOfModel(_model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) GetMiners() ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubCallerSession) GetMiningAssignments() ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubCallerSession) GetMintingAssignmentsOfInference(_inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubCallerSession) GetModelAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) GetNOMiner() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) GetValidatorAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) GetValidatorAddressesOfModel(_model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) GetValidators() ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubCallerSession) InferenceNumber() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) IsAssignmentPending(_assignmentId *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubCallerSession) LastBlock() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) MaximumTier() (uint16, error)
- func (_WorkerHub *WorkerHubCallerSession) MinerMinimumStake() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) MinerRequirement() (uint8, error)
- func (_WorkerHub *WorkerHubCallerSession) MinerUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) Miners(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) MiningTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) Models(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) Multiplier(_miner common.Address) (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) Owner() (common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) Paused() (bool, error)
- func (_WorkerHub *WorkerHubCallerSession) PenaltyDuration() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) RewardInEpoch(arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) RewardPerEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) Treasury() (common.Address, error)
- func (_WorkerHub *WorkerHubCallerSession) UnstakeDelayTime() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) ValidatingTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) ValidatorDisputed(arg0 common.Address, arg1 *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubCallerSession) ValidatorMinimumStake() (*big.Int, error)
- func (_WorkerHub *WorkerHubCallerSession) ValidatorUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) Validators(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubCallerSession) Version() (string, error)
- type WorkerHubFilterer
- func (_WorkerHub *WorkerHubFilterer) FilterBlocksPerEpoch(opts *bind.FilterOpts) (*WorkerHubBlocksPerEpochIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterFinePercentageUpdated(opts *bind.FilterOpts) (*WorkerHubFinePercentageUpdatedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterFraudulentMinerPenalized(opts *bind.FilterOpts, miner []common.Address, modelAddress []common.Address, ...) (*WorkerHubFraudulentMinerPenalizedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterInferenceDisputation(opts *bind.FilterOpts, validator []common.Address, assigmentId []*big.Int) (*WorkerHubInferenceDisputationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterInferenceStatusUpdate(opts *bind.FilterOpts, inferenceId []*big.Int) (*WorkerHubInferenceStatusUpdateIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterInitialized(opts *bind.FilterOpts) (*WorkerHubInitializedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerDeactivated(opts *bind.FilterOpts, miner []common.Address, modelAddress []common.Address) (*WorkerHubMinerDeactivatedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerExtraStake(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerExtraStakeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerJoin(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerJoinIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerRegistration(opts *bind.FilterOpts, miner []common.Address, tier []uint16) (*WorkerHubMinerRegistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerUnregistration(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerUnregistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMinerUnstake(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerUnstakeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterMiningTimeLimitUpdate(opts *bind.FilterOpts) (*WorkerHubMiningTimeLimitUpdateIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterModelMinimumFeeUpdate(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelMinimumFeeUpdateIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterModelRegistration(opts *bind.FilterOpts, model []common.Address, tier []uint16) (*WorkerHubModelRegistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterModelTierUpdate(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelTierUpdateIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterModelUnregistration(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelUnregistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterNewAssignment(opts *bind.FilterOpts, assignmentId []*big.Int, inferenceId []*big.Int, ...) (*WorkerHubNewAssignmentIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterNewInference(opts *bind.FilterOpts, inferenceId []*big.Int, model []common.Address, ...) (*WorkerHubNewInferenceIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*WorkerHubOwnershipTransferredIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterPaused(opts *bind.FilterOpts) (*WorkerHubPausedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterPenaltyDurationUpdated(opts *bind.FilterOpts) (*WorkerHubPenaltyDurationUpdatedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterRestake(opts *bind.FilterOpts, miner []common.Address, model []common.Address) (*WorkerHubRestakeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterRewardClaim(opts *bind.FilterOpts, worker []common.Address) (*WorkerHubRewardClaimIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterRewardPerEpoch(opts *bind.FilterOpts) (*WorkerHubRewardPerEpochIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterSolutionSubmission(opts *bind.FilterOpts, miner []common.Address, assigmentId []*big.Int) (*WorkerHubSolutionSubmissionIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterTopUpInfer(opts *bind.FilterOpts, inferenceId []*big.Int, creator []common.Address) (*WorkerHubTopUpInferIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterTransferFee(opts *bind.FilterOpts, miner []common.Address, treasury []common.Address) (*WorkerHubTransferFeeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterUnpaused(opts *bind.FilterOpts) (*WorkerHubUnpausedIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterUnstakeDelayTime(opts *bind.FilterOpts) (*WorkerHubUnstakeDelayTimeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterValidatorExtraStake(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorExtraStakeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterValidatorJoin(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorJoinIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterValidatorRegistration(opts *bind.FilterOpts, validator []common.Address, tier []uint16) (*WorkerHubValidatorRegistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterValidatorUnregistration(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorUnregistrationIterator, error)
- func (_WorkerHub *WorkerHubFilterer) FilterValidatorUnstake(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorUnstakeIterator, error)
- func (_WorkerHub *WorkerHubFilterer) ParseBlocksPerEpoch(log types.Log) (*WorkerHubBlocksPerEpoch, error)
- func (_WorkerHub *WorkerHubFilterer) ParseFinePercentageUpdated(log types.Log) (*WorkerHubFinePercentageUpdated, error)
- func (_WorkerHub *WorkerHubFilterer) ParseFraudulentMinerPenalized(log types.Log) (*WorkerHubFraudulentMinerPenalized, error)
- func (_WorkerHub *WorkerHubFilterer) ParseInferenceDisputation(log types.Log) (*WorkerHubInferenceDisputation, error)
- func (_WorkerHub *WorkerHubFilterer) ParseInferenceStatusUpdate(log types.Log) (*WorkerHubInferenceStatusUpdate, error)
- func (_WorkerHub *WorkerHubFilterer) ParseInitialized(log types.Log) (*WorkerHubInitialized, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerDeactivated(log types.Log) (*WorkerHubMinerDeactivated, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerExtraStake(log types.Log) (*WorkerHubMinerExtraStake, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerJoin(log types.Log) (*WorkerHubMinerJoin, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerRegistration(log types.Log) (*WorkerHubMinerRegistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerUnregistration(log types.Log) (*WorkerHubMinerUnregistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMinerUnstake(log types.Log) (*WorkerHubMinerUnstake, error)
- func (_WorkerHub *WorkerHubFilterer) ParseMiningTimeLimitUpdate(log types.Log) (*WorkerHubMiningTimeLimitUpdate, error)
- func (_WorkerHub *WorkerHubFilterer) ParseModelMinimumFeeUpdate(log types.Log) (*WorkerHubModelMinimumFeeUpdate, error)
- func (_WorkerHub *WorkerHubFilterer) ParseModelRegistration(log types.Log) (*WorkerHubModelRegistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseModelTierUpdate(log types.Log) (*WorkerHubModelTierUpdate, error)
- func (_WorkerHub *WorkerHubFilterer) ParseModelUnregistration(log types.Log) (*WorkerHubModelUnregistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseNewAssignment(log types.Log) (*WorkerHubNewAssignment, error)
- func (_WorkerHub *WorkerHubFilterer) ParseNewInference(log types.Log) (*WorkerHubNewInference, error)
- func (_WorkerHub *WorkerHubFilterer) ParseOwnershipTransferred(log types.Log) (*WorkerHubOwnershipTransferred, error)
- func (_WorkerHub *WorkerHubFilterer) ParsePaused(log types.Log) (*WorkerHubPaused, error)
- func (_WorkerHub *WorkerHubFilterer) ParsePenaltyDurationUpdated(log types.Log) (*WorkerHubPenaltyDurationUpdated, error)
- func (_WorkerHub *WorkerHubFilterer) ParseRestake(log types.Log) (*WorkerHubRestake, error)
- func (_WorkerHub *WorkerHubFilterer) ParseRewardClaim(log types.Log) (*WorkerHubRewardClaim, error)
- func (_WorkerHub *WorkerHubFilterer) ParseRewardPerEpoch(log types.Log) (*WorkerHubRewardPerEpoch, error)
- func (_WorkerHub *WorkerHubFilterer) ParseSolutionSubmission(log types.Log) (*WorkerHubSolutionSubmission, error)
- func (_WorkerHub *WorkerHubFilterer) ParseTopUpInfer(log types.Log) (*WorkerHubTopUpInfer, error)
- func (_WorkerHub *WorkerHubFilterer) ParseTransferFee(log types.Log) (*WorkerHubTransferFee, error)
- func (_WorkerHub *WorkerHubFilterer) ParseUnpaused(log types.Log) (*WorkerHubUnpaused, error)
- func (_WorkerHub *WorkerHubFilterer) ParseUnstakeDelayTime(log types.Log) (*WorkerHubUnstakeDelayTime, error)
- func (_WorkerHub *WorkerHubFilterer) ParseValidatorExtraStake(log types.Log) (*WorkerHubValidatorExtraStake, error)
- func (_WorkerHub *WorkerHubFilterer) ParseValidatorJoin(log types.Log) (*WorkerHubValidatorJoin, error)
- func (_WorkerHub *WorkerHubFilterer) ParseValidatorRegistration(log types.Log) (*WorkerHubValidatorRegistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseValidatorUnregistration(log types.Log) (*WorkerHubValidatorUnregistration, error)
- func (_WorkerHub *WorkerHubFilterer) ParseValidatorUnstake(log types.Log) (*WorkerHubValidatorUnstake, error)
- func (_WorkerHub *WorkerHubFilterer) WatchBlocksPerEpoch(opts *bind.WatchOpts, sink chan<- *WorkerHubBlocksPerEpoch) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchFinePercentageUpdated(opts *bind.WatchOpts, sink chan<- *WorkerHubFinePercentageUpdated) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchFraudulentMinerPenalized(opts *bind.WatchOpts, sink chan<- *WorkerHubFraudulentMinerPenalized, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchInferenceDisputation(opts *bind.WatchOpts, sink chan<- *WorkerHubInferenceDisputation, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchInferenceStatusUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubInferenceStatusUpdate, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *WorkerHubInitialized) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerDeactivated(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerDeactivated, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerExtraStake(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerExtraStake, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerJoin(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerJoin, miner []common.Address) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerRegistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerUnregistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMinerUnstake(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerUnstake, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchMiningTimeLimitUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubMiningTimeLimitUpdate) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchModelMinimumFeeUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubModelMinimumFeeUpdate, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchModelRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubModelRegistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchModelTierUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubModelTierUpdate, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchModelUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubModelUnregistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchNewAssignment(opts *bind.WatchOpts, sink chan<- *WorkerHubNewAssignment, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchNewInference(opts *bind.WatchOpts, sink chan<- *WorkerHubNewInference, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WorkerHubOwnershipTransferred, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *WorkerHubPaused) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchPenaltyDurationUpdated(opts *bind.WatchOpts, sink chan<- *WorkerHubPenaltyDurationUpdated) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchRestake(opts *bind.WatchOpts, sink chan<- *WorkerHubRestake, miner []common.Address, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchRewardClaim(opts *bind.WatchOpts, sink chan<- *WorkerHubRewardClaim, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchRewardPerEpoch(opts *bind.WatchOpts, sink chan<- *WorkerHubRewardPerEpoch) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchSolutionSubmission(opts *bind.WatchOpts, sink chan<- *WorkerHubSolutionSubmission, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchTopUpInfer(opts *bind.WatchOpts, sink chan<- *WorkerHubTopUpInfer, inferenceId []*big.Int, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchTransferFee(opts *bind.WatchOpts, sink chan<- *WorkerHubTransferFee, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *WorkerHubUnpaused) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchUnstakeDelayTime(opts *bind.WatchOpts, sink chan<- *WorkerHubUnstakeDelayTime) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchValidatorExtraStake(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorExtraStake, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchValidatorJoin(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorJoin, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchValidatorRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorRegistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchValidatorUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorUnregistration, ...) (event.Subscription, error)
- func (_WorkerHub *WorkerHubFilterer) WatchValidatorUnstake(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorUnstake, ...) (event.Subscription, error)
- type WorkerHubFinePercentageUpdated
- type WorkerHubFinePercentageUpdatedIterator
- type WorkerHubFraudulentMinerPenalized
- type WorkerHubFraudulentMinerPenalizedIterator
- type WorkerHubInferenceDisputation
- type WorkerHubInferenceDisputationIterator
- type WorkerHubInferenceStatusUpdate
- type WorkerHubInferenceStatusUpdateIterator
- type WorkerHubInitialized
- type WorkerHubInitializedIterator
- type WorkerHubMinerDeactivated
- type WorkerHubMinerDeactivatedIterator
- type WorkerHubMinerExtraStake
- type WorkerHubMinerExtraStakeIterator
- type WorkerHubMinerJoin
- type WorkerHubMinerJoinIterator
- type WorkerHubMinerRegistration
- type WorkerHubMinerRegistrationIterator
- type WorkerHubMinerUnregistration
- type WorkerHubMinerUnregistrationIterator
- type WorkerHubMinerUnstake
- type WorkerHubMinerUnstakeIterator
- type WorkerHubMiningTimeLimitUpdate
- type WorkerHubMiningTimeLimitUpdateIterator
- type WorkerHubModelMinimumFeeUpdate
- type WorkerHubModelMinimumFeeUpdateIterator
- type WorkerHubModelRegistration
- type WorkerHubModelRegistrationIterator
- type WorkerHubModelTierUpdate
- type WorkerHubModelTierUpdateIterator
- type WorkerHubModelUnregistration
- type WorkerHubModelUnregistrationIterator
- type WorkerHubNewAssignment
- type WorkerHubNewAssignmentIterator
- type WorkerHubNewInference
- type WorkerHubNewInferenceIterator
- type WorkerHubOwnershipTransferred
- type WorkerHubOwnershipTransferredIterator
- type WorkerHubPaused
- type WorkerHubPausedIterator
- type WorkerHubPenaltyDurationUpdated
- type WorkerHubPenaltyDurationUpdatedIterator
- type WorkerHubRaw
- func (_WorkerHub *WorkerHubRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_WorkerHub *WorkerHubRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WorkerHubRestake
- type WorkerHubRestakeIterator
- type WorkerHubRewardClaim
- type WorkerHubRewardClaimIterator
- type WorkerHubRewardPerEpoch
- type WorkerHubRewardPerEpochIterator
- type WorkerHubSession
- func (_WorkerHub *WorkerHubSession) AssignmentNumber() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) Assignments(arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) BlocksPerEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) ClaimReward(_miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) CurrentEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) DisputeInfer(_assignmentId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) DisputingTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) DisqualificationPercentage() (uint16, error)
- func (_WorkerHub *WorkerHubSession) FeePercentage() (uint16, error)
- func (_WorkerHub *WorkerHubSession) FinePercentage() (uint16, error)
- func (_WorkerHub *WorkerHubSession) GetInferences(_inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
- func (_WorkerHub *WorkerHubSession) GetMinerAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubSession) GetMinerAddressesOfModel(_model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubSession) GetMiners() ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubSession) GetMiningAssignments() ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubSession) GetMintingAssignmentsOfInference(_inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
- func (_WorkerHub *WorkerHubSession) GetModelAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubSession) GetNOMiner() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) GetValidatorAddresses() ([]common.Address, error)
- func (_WorkerHub *WorkerHubSession) GetValidatorAddressesOfModel(_model common.Address) ([]common.Address, error)
- func (_WorkerHub *WorkerHubSession) GetValidators() ([]IWorkerHubWorkerInfo, error)
- func (_WorkerHub *WorkerHubSession) IncreaseMinerStake() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) IncreaseValidatorStake() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) Infer(_input []byte, _creator common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) InferenceNumber() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) Initialize(_treasury common.Address, _feePercentage uint16, _minerMinimumStake *big.Int, ...) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) IsAssignmentPending(_assignmentId *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubSession) JoinForMinting() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) JoinForValidating() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) LastBlock() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) MaximumTier() (uint16, error)
- func (_WorkerHub *WorkerHubSession) MinerMinimumStake() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) MinerRequirement() (uint8, error)
- func (_WorkerHub *WorkerHubSession) MinerUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) Miners(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) MiningTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) Models(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) Multiplier(_miner common.Address) (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) Owner() (common.Address, error)
- func (_WorkerHub *WorkerHubSession) Pause() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) Paused() (bool, error)
- func (_WorkerHub *WorkerHubSession) PenaltyDuration() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) Receive() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RegisterMiner(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RegisterModel(_model common.Address, _tier uint16, _minimumFee *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RegisterValidator(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RenounceOwnership() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) ResolveInference(_inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) RewardInEpoch(arg0 *big.Int) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) RewardPerEpoch() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) RewardToClaim(_miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SetBlocksPerEpoch(_blocks *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SetFinePercentage(_finePercentage uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SetNewRewardInEpoch(_newRewardAmount *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SetPenaltyDuration(_penaltyDuration *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SetUnstakDelayTime(_newUnstakeDelayTime *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SlashMiner(_miner common.Address, _isFined bool) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) SubmitSolution(_assigmentId *big.Int, _data []byte) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) TopUpInfer(_inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) Treasury() (common.Address, error)
- func (_WorkerHub *WorkerHubSession) Unpause() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UnregisterMiner() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UnregisterModel(_model common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UnregisterValidator() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UnstakeDelayTime() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) UnstakeForMiner() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UnstakeForValidator() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UpdateMiningTimeLimit(_miningTimeLimit *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UpdateModelMinimumFee(_model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) UpdateModelTier(_model common.Address, _tier uint32) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubSession) ValidatingTimeLimit() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) ValidatorDisputed(arg0 common.Address, arg1 *big.Int) (bool, error)
- func (_WorkerHub *WorkerHubSession) ValidatorMinimumStake() (*big.Int, error)
- func (_WorkerHub *WorkerHubSession) ValidatorUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) Validators(arg0 common.Address) (struct{ ... }, error)
- func (_WorkerHub *WorkerHubSession) Version() (string, error)
- type WorkerHubSolutionSubmission
- type WorkerHubSolutionSubmissionIterator
- type WorkerHubTopUpInfer
- type WorkerHubTopUpInferIterator
- type WorkerHubTransactor
- func (_WorkerHub *WorkerHubTransactor) ClaimReward(opts *bind.TransactOpts, _miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) DisputeInfer(opts *bind.TransactOpts, _assignmentId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) IncreaseMinerStake(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) IncreaseValidatorStake(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) Infer(opts *bind.TransactOpts, _input []byte, _creator common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) Initialize(opts *bind.TransactOpts, _treasury common.Address, _feePercentage uint16, ...) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) JoinForMinting(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) JoinForValidating(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RegisterMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RegisterModel(opts *bind.TransactOpts, _model common.Address, _tier uint16, ...) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RegisterValidator(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) ResolveInference(opts *bind.TransactOpts, _inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RestakeForMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) RewardToClaim(opts *bind.TransactOpts, _miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SetBlocksPerEpoch(opts *bind.TransactOpts, _blocks *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SetFinePercentage(opts *bind.TransactOpts, _finePercentage uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SetNewRewardInEpoch(opts *bind.TransactOpts, _newRewardAmount *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SetPenaltyDuration(opts *bind.TransactOpts, _penaltyDuration *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SetUnstakDelayTime(opts *bind.TransactOpts, _newUnstakeDelayTime *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SlashMiner(opts *bind.TransactOpts, _miner common.Address, _isFined bool) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) SubmitSolution(opts *bind.TransactOpts, _assigmentId *big.Int, _data []byte) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) TopUpInfer(opts *bind.TransactOpts, _inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UnregisterMiner(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UnregisterModel(opts *bind.TransactOpts, _model common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UnregisterValidator(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UnstakeForMiner(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UnstakeForValidator(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UpdateMiningTimeLimit(opts *bind.TransactOpts, _miningTimeLimit *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UpdateModelMinimumFee(opts *bind.TransactOpts, _model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactor) UpdateModelTier(opts *bind.TransactOpts, _model common.Address, _tier uint32) (*types.Transaction, error)
- type WorkerHubTransactorRaw
- type WorkerHubTransactorSession
- func (_WorkerHub *WorkerHubTransactorSession) ClaimReward(_miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) DisputeInfer(_assignmentId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) IncreaseMinerStake() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) IncreaseValidatorStake() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) Infer(_input []byte, _creator common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) Initialize(_treasury common.Address, _feePercentage uint16, _minerMinimumStake *big.Int, ...) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) JoinForMinting() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) JoinForValidating() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) Pause() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) Receive() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RegisterMiner(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RegisterModel(_model common.Address, _tier uint16, _minimumFee *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RegisterValidator(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) ResolveInference(_inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) RewardToClaim(_miner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SetBlocksPerEpoch(_blocks *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SetFinePercentage(_finePercentage uint16) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SetNewRewardInEpoch(_newRewardAmount *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SetPenaltyDuration(_penaltyDuration *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SetUnstakDelayTime(_newUnstakeDelayTime *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SlashMiner(_miner common.Address, _isFined bool) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) SubmitSolution(_assigmentId *big.Int, _data []byte) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) TopUpInfer(_inferenceId *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) Unpause() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UnregisterMiner() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UnregisterModel(_model common.Address) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UnregisterValidator() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UnstakeForMiner() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UnstakeForValidator() (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UpdateMiningTimeLimit(_miningTimeLimit *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UpdateModelMinimumFee(_model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
- func (_WorkerHub *WorkerHubTransactorSession) UpdateModelTier(_model common.Address, _tier uint32) (*types.Transaction, error)
- type WorkerHubTransferFee
- type WorkerHubTransferFeeIterator
- type WorkerHubUnpaused
- type WorkerHubUnpausedIterator
- type WorkerHubUnstakeDelayTime
- type WorkerHubUnstakeDelayTimeIterator
- type WorkerHubValidatorExtraStake
- type WorkerHubValidatorExtraStakeIterator
- type WorkerHubValidatorJoin
- type WorkerHubValidatorJoinIterator
- type WorkerHubValidatorRegistration
- type WorkerHubValidatorRegistrationIterator
- type WorkerHubValidatorUnregistration
- type WorkerHubValidatorUnregistrationIterator
- type WorkerHubValidatorUnstake
- type WorkerHubValidatorUnstakeIterator
Constants ¶
This section is empty.
Variables ¶
var WorkerHubABI = WorkerHubMetaData.ABI
WorkerHubABI is the input ABI used to generate the binding from. Deprecated: Use WorkerHubMetaData.ABI instead.
var WorkerHubMetaData = &bind.MetaData{
ABI: "[{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"assignmentNumber\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"assignments\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"output\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"worker\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"disapprovalCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"blocksPerEpoch\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"claimReward\",\"inputs\":[{\"name\":\"_miner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"currentEpoch\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"disputeInfer\",\"inputs\":[{\"name\":\"_assignmentId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"disputingTimeLimit\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"disqualificationPercentage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"feePercentage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"finePercentage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getInferences\",\"inputs\":[{\"name\":\"_inferenceIds\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIWorkerHub.InferenceInfo[]\",\"components\":[{\"name\":\"inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"input\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"output\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"disputingAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiredAt\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"status\",\"type\":\"uint8\",\"internalType\":\"enumIWorkerHub.InferenceStatus\"},{\"name\":\"creator\",\"type\":\"address\",\"internalType\":\"address\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMinerAddresses\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMinerAddressesOfModel\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMiners\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIWorkerHub.WorkerInfo[]\",\"components\":[{\"name\":\"workerAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"commitment\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"lastClaimedEpoch\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"activeTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMiningAssignments\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIWorkerHub.AssignmentInfo[]\",\"components\":[{\"name\":\"assignmentId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"input\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"creator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiredAt\",\"type\":\"uint40\",\"internalType\":\"uint40\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMintingAssignmentsOfInference\",\"inputs\":[{\"name\":\"_inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIWorkerHub.AssignmentInfo[]\",\"components\":[{\"name\":\"assignmentId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"input\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"creator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiredAt\",\"type\":\"uint40\",\"internalType\":\"uint40\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getModelAddresses\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNOMiner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValidatorAddresses\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValidatorAddressesOfModel\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getValidators\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structIWorkerHub.WorkerInfo[]\",\"components\":[{\"name\":\"workerAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"commitment\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"lastClaimedEpoch\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"activeTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increaseMinerStake\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"increaseValidatorStake\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"infer\",\"inputs\":[{\"name\":\"_input\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"_creator\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"inferenceNumber\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_treasury\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_feePercentage\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"_minerMinimumStake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_validatorMinimumStake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_miningTimeLimit\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"_minerRequirement\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"_blocksPerEpoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_rewardPerEpochBasedOnPerf\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_rewardPerEpoch\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_unstakeDelayTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"_penaltyDuration\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"_finePercentage\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isAssignmentPending\",\"inputs\":[{\"name\":\"_assignmentId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"joinForMinting\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"joinForValidating\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"lastBlock\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maximumTier\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minerMinimumStake\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minerRequirement\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minerUnstakeRequests\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unlockAt\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"miners\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"commitment\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"lastClaimedEpoch\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"activeTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"miningTimeLimit\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"models\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"minimumFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"tier\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"multiplier\",\"inputs\":[{\"name\":\"_miner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"paused\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"penaltyDuration\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"registerMiner\",\"inputs\":[{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"registerModel\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"_minimumFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"registerValidator\",\"inputs\":[{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"resolveInference\",\"inputs\":[{\"name\":\"_inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"restakeForMiner\",\"inputs\":[{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"rewardInEpoch\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"perfReward\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"epochReward\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalTaskCompleted\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"totalMiner\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"rewardPerEpoch\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"rewardToClaim\",\"inputs\":[{\"name\":\"_miner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setBlocksPerEpoch\",\"inputs\":[{\"name\":\"_blocks\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFinePercentage\",\"inputs\":[{\"name\":\"_finePercentage\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setNewRewardInEpoch\",\"inputs\":[{\"name\":\"_newRewardAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPenaltyDuration\",\"inputs\":[{\"name\":\"_penaltyDuration\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setUnstakDelayTime\",\"inputs\":[{\"name\":\"_newUnstakeDelayTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"slashMiner\",\"inputs\":[{\"name\":\"_miner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isFined\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"submitSolution\",\"inputs\":[{\"name\":\"_assigmentId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"topUpInfer\",\"inputs\":[{\"name\":\"_inferenceId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"treasury\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unpause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unregisterMiner\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unregisterModel\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unregisterValidator\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unstakeDelayTime\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unstakeForMiner\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unstakeForValidator\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateMiningTimeLimit\",\"inputs\":[{\"name\":\"_miningTimeLimit\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateModelMinimumFee\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_minimumFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateModelTier\",\"inputs\":[{\"name\":\"_model\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tier\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"validatingTimeLimit\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validatorDisputed\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validatorMinimumStake\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validatorUnstakeRequests\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unlockAt\",\"type\":\"uint40\",\"internalType\":\"uint40\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validators\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"commitment\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"lastClaimedEpoch\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"activeTime\",\"type\":\"uint40\",\"internalType\":\"uint40\"},{\"name\":\"tier\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"version\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"pure\"},{\"type\":\"event\",\"name\":\"BlocksPerEpoch\",\"inputs\":[{\"name\":\"oldBlocks\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"newBlocks\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FinePercentageUpdated\",\"inputs\":[{\"name\":\"oldPercent\",\"type\":\"uint16\",\"indexed\":false,\"internalType\":\"uint16\"},{\"name\":\"newPercent\",\"type\":\"uint16\",\"indexed\":false,\"internalType\":\"uint16\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FraudulentMinerPenalized\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"treasury\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"fine\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"InferenceDisputation\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"assigmentId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"InferenceStatusUpdate\",\"inputs\":[{\"name\":\"inferenceId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"newStatus\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"enumIWorkerHub.InferenceStatus\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerDeactivated\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"modelAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"activeTime\",\"type\":\"uint40\",\"indexed\":false,\"internalType\":\"uint40\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerExtraStake\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerJoin\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerRegistration\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tier\",\"type\":\"uint16\",\"indexed\":true,\"internalType\":\"uint16\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerUnregistration\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MinerUnstake\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"stake\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MiningTimeLimitUpdate\",\"inputs\":[{\"name\":\"newValue\",\"type\":\"uint40\",\"indexed\":false,\"internalType\":\"uint40\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ModelMinimumFeeUpdate\",\"inputs\":[{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"minimumFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ModelRegistration\",\"inputs\":[{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tier\",\"type\":\"uint16\",\"indexed\":true,\"internalType\":\"uint16\"},{\"name\":\"minimumFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ModelTierUpdate\",\"inputs\":[{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tier\",\"type\":\"uint32\",\"indexed\":false,\"internalType\":\"uint32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ModelUnregistration\",\"inputs\":[{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NewAssignment\",\"inputs\":[{\"name\":\"assignmentId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"inferenceId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"expiredAt\",\"type\":\"uint40\",\"indexed\":false,\"internalType\":\"uint40\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NewInference\",\"inputs\":[{\"name\":\"inferenceId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"creator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Paused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PenaltyDurationUpdated\",\"inputs\":[{\"name\":\"oldDuration\",\"type\":\"uint40\",\"indexed\":false,\"internalType\":\"uint40\"},{\"name\":\"newDuration\",\"type\":\"uint40\",\"indexed\":false,\"internalType\":\"uint40\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Restake\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"restake\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"model\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardClaim\",\"inputs\":[{\"name\":\"worker\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardPerEpoch\",\"inputs\":[{\"name\":\"oldReward\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"newReward\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SolutionSubmission\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"assigmentId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TopUpInfer\",\"inputs\":[{\"name\":\"inferenceId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"creator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TransferFee\",\"inputs\":[{\"name\":\"miner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"mingingFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"treasury\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"protocolFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Unpaused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UnstakeDelayTime\",\"inputs\":[{\"name\":\"oldDelayTime\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"newDelayTime\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ValidatorExtraStake\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ValidatorJoin\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ValidatorRegistration\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tier\",\"type\":\"uint16\",\"indexed\":true,\"internalType\":\"uint16\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ValidatorUnregistration\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ValidatorUnstake\",\"inputs\":[{\"name\":\"validator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"stake\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressSet_DuplicatedValue\",\"inputs\":[{\"name\":\"value\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AddressSet_ValueNotFound\",\"inputs\":[{\"name\":\"value\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AlreadyRegistered\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"AlreadySubmitted\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FailedTransfer\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FeeTooLow\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InferMustBeSolvingState\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidBlockValue\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidInferenceStatus\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidMiner\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidModel\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidTier\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidValidator\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MinerInDeactivationTime\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MiningSessionEnded\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MiningSessionNotEnded\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotEnoughMiners\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotRegistered\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NullStake\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"StakeTooLow\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"StillBeingLocked\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"Uint256Set_DuplicatedValue\",\"inputs\":[{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"Unauthorized\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ValidatingSessionNotEnded\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ValidatorInDeactivationTime\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ZeroValue\",\"inputs\":[]}]",
}
WorkerHubMetaData contains all meta data concerning the WorkerHub contract.
Functions ¶
This section is empty.
Types ¶
type IWorkerHubAssignmentInfo ¶
type IWorkerHubAssignmentInfo struct { AssignmentId *big.Int InferenceId *big.Int Value *big.Int Input []byte ModelAddress common.Address Creator common.Address ExpiredAt *big.Int }
IWorkerHubAssignmentInfo is an auto generated low-level Go binding around an user-defined struct.
type IWorkerHubInferenceInfo ¶
type IWorkerHubInferenceInfo struct { InferenceId *big.Int Input []byte Output []byte Value *big.Int DisputingAddress common.Address ModelAddress common.Address ExpiredAt *big.Int Status uint8 Creator common.Address }
IWorkerHubInferenceInfo is an auto generated low-level Go binding around an user-defined struct.
type IWorkerHubWorkerInfo ¶
type IWorkerHubWorkerInfo struct { WorkerAddress common.Address Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }
IWorkerHubWorkerInfo is an auto generated low-level Go binding around an user-defined struct.
type WorkerHub ¶
type WorkerHub struct { WorkerHubCaller // Read-only binding to the contract WorkerHubTransactor // Write-only binding to the contract WorkerHubFilterer // Log filterer for contract events }
WorkerHub is an auto generated Go binding around an Ethereum contract.
func NewWorkerHub ¶
NewWorkerHub creates a new instance of WorkerHub, bound to a specific deployed contract.
type WorkerHubBlocksPerEpoch ¶
type WorkerHubBlocksPerEpoch struct { OldBlocks *big.Int NewBlocks *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubBlocksPerEpoch represents a BlocksPerEpoch event raised by the WorkerHub contract.
type WorkerHubBlocksPerEpochIterator ¶
type WorkerHubBlocksPerEpochIterator struct { Event *WorkerHubBlocksPerEpoch // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubBlocksPerEpochIterator is returned from FilterBlocksPerEpoch and is used to iterate over the raw logs and unpacked data for BlocksPerEpoch events raised by the WorkerHub contract.
func (*WorkerHubBlocksPerEpochIterator) Close ¶
func (it *WorkerHubBlocksPerEpochIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubBlocksPerEpochIterator) Error ¶
func (it *WorkerHubBlocksPerEpochIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubBlocksPerEpochIterator) Next ¶
func (it *WorkerHubBlocksPerEpochIterator) 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 WorkerHubCaller ¶
type WorkerHubCaller struct {
// contains filtered or unexported fields
}
WorkerHubCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewWorkerHubCaller ¶
func NewWorkerHubCaller(address common.Address, caller bind.ContractCaller) (*WorkerHubCaller, error)
NewWorkerHubCaller creates a new read-only instance of WorkerHub, bound to a specific deployed contract.
func (*WorkerHubCaller) AssignmentNumber ¶
AssignmentNumber is a free data retrieval call binding the contract method 0x6973d3f2.
Solidity: function assignmentNumber() view returns(uint256)
func (*WorkerHubCaller) Assignments ¶
func (_WorkerHub *WorkerHubCaller) Assignments(opts *bind.CallOpts, arg0 *big.Int) (struct { InferenceId *big.Int Output []byte Worker common.Address DisapprovalCount uint8 }, error)
Assignments is a free data retrieval call binding the contract method 0x4e50c75c.
Solidity: function assignments(uint256 ) view returns(uint256 inferenceId, bytes output, address worker, uint8 disapprovalCount)
func (*WorkerHubCaller) BlocksPerEpoch ¶
BlocksPerEpoch is a free data retrieval call binding the contract method 0xf0682054.
Solidity: function blocksPerEpoch() view returns(uint256)
func (*WorkerHubCaller) CurrentEpoch ¶
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint40)
func (*WorkerHubCaller) DisputingTimeLimit ¶
DisputingTimeLimit is a free data retrieval call binding the contract method 0xd64f1f5f.
Solidity: function disputingTimeLimit() view returns(uint40)
func (*WorkerHubCaller) DisqualificationPercentage ¶
func (_WorkerHub *WorkerHubCaller) DisqualificationPercentage(opts *bind.CallOpts) (uint16, error)
DisqualificationPercentage is a free data retrieval call binding the contract method 0x4670ca47.
Solidity: function disqualificationPercentage() view returns(uint16)
func (*WorkerHubCaller) FeePercentage ¶
func (_WorkerHub *WorkerHubCaller) FeePercentage(opts *bind.CallOpts) (uint16, error)
FeePercentage is a free data retrieval call binding the contract method 0xa001ecdd.
Solidity: function feePercentage() view returns(uint16)
func (*WorkerHubCaller) FinePercentage ¶
func (_WorkerHub *WorkerHubCaller) FinePercentage(opts *bind.CallOpts) (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x74172795.
Solidity: function finePercentage() view returns(uint16)
func (*WorkerHubCaller) GetInferences ¶
func (_WorkerHub *WorkerHubCaller) GetInferences(opts *bind.CallOpts, _inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
GetInferences is a free data retrieval call binding the contract method 0xa01253d8.
Solidity: function getInferences(uint256[] _inferenceIds) view returns((uint256,bytes,bytes,uint256,address,address,uint40,uint8,address)[])
func (*WorkerHubCaller) GetMinerAddresses ¶
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*WorkerHubCaller) GetMinerAddressesOfModel ¶
func (_WorkerHub *WorkerHubCaller) GetMinerAddressesOfModel(opts *bind.CallOpts, _model common.Address) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0x47253baa.
Solidity: function getMinerAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubCaller) GetMiners ¶
func (_WorkerHub *WorkerHubCaller) GetMiners(opts *bind.CallOpts) ([]IWorkerHubWorkerInfo, error)
GetMiners is a free data retrieval call binding the contract method 0x1633da6e.
Solidity: function getMiners() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubCaller) GetMiningAssignments ¶
func (_WorkerHub *WorkerHubCaller) GetMiningAssignments(opts *bind.CallOpts) ([]IWorkerHubAssignmentInfo, error)
GetMiningAssignments is a free data retrieval call binding the contract method 0x37504f57.
Solidity: function getMiningAssignments() view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubCaller) GetMintingAssignmentsOfInference ¶
func (_WorkerHub *WorkerHubCaller) GetMintingAssignmentsOfInference(opts *bind.CallOpts, _inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
GetMintingAssignmentsOfInference is a free data retrieval call binding the contract method 0x5eec7b20.
Solidity: function getMintingAssignmentsOfInference(uint256 _inferenceId) view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubCaller) GetModelAddresses ¶
GetModelAddresses is a free data retrieval call binding the contract method 0x9ae49cd3.
Solidity: function getModelAddresses() view returns(address[])
func (*WorkerHubCaller) GetNOMiner ¶
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*WorkerHubCaller) GetValidatorAddresses ¶
func (_WorkerHub *WorkerHubCaller) GetValidatorAddresses(opts *bind.CallOpts) ([]common.Address, error)
GetValidatorAddresses is a free data retrieval call binding the contract method 0xf74e921f.
Solidity: function getValidatorAddresses() view returns(address[])
func (*WorkerHubCaller) GetValidatorAddressesOfModel ¶
func (_WorkerHub *WorkerHubCaller) GetValidatorAddressesOfModel(opts *bind.CallOpts, _model common.Address) ([]common.Address, error)
GetValidatorAddressesOfModel is a free data retrieval call binding the contract method 0xcbaaf438.
Solidity: function getValidatorAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubCaller) GetValidators ¶
func (_WorkerHub *WorkerHubCaller) GetValidators(opts *bind.CallOpts) ([]IWorkerHubWorkerInfo, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubCaller) InferenceNumber ¶
InferenceNumber is a free data retrieval call binding the contract method 0xf80dca98.
Solidity: function inferenceNumber() view returns(uint256)
func (*WorkerHubCaller) IsAssignmentPending ¶
func (_WorkerHub *WorkerHubCaller) IsAssignmentPending(opts *bind.CallOpts, _assignmentId *big.Int) (bool, error)
IsAssignmentPending is a free data retrieval call binding the contract method 0x57a38def.
Solidity: function isAssignmentPending(uint256 _assignmentId) view returns(bool)
func (*WorkerHubCaller) LastBlock ¶
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*WorkerHubCaller) MaximumTier ¶
func (_WorkerHub *WorkerHubCaller) MaximumTier(opts *bind.CallOpts) (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x0716187f.
Solidity: function maximumTier() view returns(uint16)
func (*WorkerHubCaller) MinerMinimumStake ¶
MinerMinimumStake is a free data retrieval call binding the contract method 0x3304f456.
Solidity: function minerMinimumStake() view returns(uint256)
func (*WorkerHubCaller) MinerRequirement ¶
func (_WorkerHub *WorkerHubCaller) MinerRequirement(opts *bind.CallOpts) (uint8, error)
MinerRequirement is a free data retrieval call binding the contract method 0xdd9b9766.
Solidity: function minerRequirement() view returns(uint8)
func (*WorkerHubCaller) MinerUnstakeRequests ¶
func (_WorkerHub *WorkerHubCaller) MinerUnstakeRequests(opts *bind.CallOpts, arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
MinerUnstakeRequests is a free data retrieval call binding the contract method 0x191a54d8.
Solidity: function minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubCaller) Miners ¶
func (_WorkerHub *WorkerHubCaller) Miners(opts *bind.CallOpts, arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0x648ec7b9.
Solidity: function miners(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*WorkerHubCaller) MiningTimeLimit ¶
MiningTimeLimit is a free data retrieval call binding the contract method 0x691ff7ef.
Solidity: function miningTimeLimit() view returns(uint40)
func (*WorkerHubCaller) Models ¶
func (_WorkerHub *WorkerHubCaller) Models(opts *bind.CallOpts, arg0 common.Address) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x54917f83.
Solidity: function models(address ) view returns(uint256 minimumFee, uint32 tier)
func (*WorkerHubCaller) Multiplier ¶
func (_WorkerHub *WorkerHubCaller) Multiplier(opts *bind.CallOpts, _miner common.Address) (*big.Int, error)
Multiplier is a free data retrieval call binding the contract method 0xa9b3f8b7.
Solidity: function multiplier(address _miner) view returns(uint256)
func (*WorkerHubCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*WorkerHubCaller) Paused ¶
func (_WorkerHub *WorkerHubCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*WorkerHubCaller) PenaltyDuration ¶
PenaltyDuration is a free data retrieval call binding the contract method 0x5aa1326c.
Solidity: function penaltyDuration() view returns(uint40)
func (*WorkerHubCaller) RewardInEpoch ¶
func (_WorkerHub *WorkerHubCaller) RewardInEpoch(opts *bind.CallOpts, arg0 *big.Int) (struct { PerfReward *big.Int EpochReward *big.Int TotalTaskCompleted *big.Int TotalMiner *big.Int }, error)
RewardInEpoch is a free data retrieval call binding the contract method 0x652ff159.
Solidity: function rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*WorkerHubCaller) RewardPerEpoch ¶
RewardPerEpoch is a free data retrieval call binding the contract method 0x84449a9d.
Solidity: function rewardPerEpoch() view returns(uint256)
func (*WorkerHubCaller) Treasury ¶
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(address)
func (*WorkerHubCaller) UnstakeDelayTime ¶
UnstakeDelayTime is a free data retrieval call binding the contract method 0xe4fefd65.
Solidity: function unstakeDelayTime() view returns(uint40)
func (*WorkerHubCaller) ValidatingTimeLimit ¶
ValidatingTimeLimit is a free data retrieval call binding the contract method 0x56f2eca3.
Solidity: function validatingTimeLimit() view returns(uint40)
func (*WorkerHubCaller) ValidatorDisputed ¶
func (_WorkerHub *WorkerHubCaller) ValidatorDisputed(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (bool, error)
ValidatorDisputed is a free data retrieval call binding the contract method 0x7146ab67.
Solidity: function validatorDisputed(address , uint256 ) view returns(bool)
func (*WorkerHubCaller) ValidatorMinimumStake ¶
ValidatorMinimumStake is a free data retrieval call binding the contract method 0x412f9775.
Solidity: function validatorMinimumStake() view returns(uint256)
func (*WorkerHubCaller) ValidatorUnstakeRequests ¶
func (_WorkerHub *WorkerHubCaller) ValidatorUnstakeRequests(opts *bind.CallOpts, arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
ValidatorUnstakeRequests is a free data retrieval call binding the contract method 0xfd3623f7.
Solidity: function validatorUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubCaller) Validators ¶
func (_WorkerHub *WorkerHubCaller) Validators(opts *bind.CallOpts, arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Validators is a free data retrieval call binding the contract method 0xfa52c7d8.
Solidity: function validators(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
type WorkerHubCallerRaw ¶
type WorkerHubCallerRaw struct {
Contract *WorkerHubCaller // Generic read-only contract binding to access the raw methods on
}
WorkerHubCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WorkerHubCallerRaw) Call ¶
func (_WorkerHub *WorkerHubCallerRaw) 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 WorkerHubCallerSession ¶
type WorkerHubCallerSession struct { Contract *WorkerHubCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WorkerHubCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*WorkerHubCallerSession) AssignmentNumber ¶
func (_WorkerHub *WorkerHubCallerSession) AssignmentNumber() (*big.Int, error)
AssignmentNumber is a free data retrieval call binding the contract method 0x6973d3f2.
Solidity: function assignmentNumber() view returns(uint256)
func (*WorkerHubCallerSession) Assignments ¶
func (_WorkerHub *WorkerHubCallerSession) Assignments(arg0 *big.Int) (struct { InferenceId *big.Int Output []byte Worker common.Address DisapprovalCount uint8 }, error)
Assignments is a free data retrieval call binding the contract method 0x4e50c75c.
Solidity: function assignments(uint256 ) view returns(uint256 inferenceId, bytes output, address worker, uint8 disapprovalCount)
func (*WorkerHubCallerSession) BlocksPerEpoch ¶
func (_WorkerHub *WorkerHubCallerSession) BlocksPerEpoch() (*big.Int, error)
BlocksPerEpoch is a free data retrieval call binding the contract method 0xf0682054.
Solidity: function blocksPerEpoch() view returns(uint256)
func (*WorkerHubCallerSession) CurrentEpoch ¶
func (_WorkerHub *WorkerHubCallerSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint40)
func (*WorkerHubCallerSession) DisputingTimeLimit ¶
func (_WorkerHub *WorkerHubCallerSession) DisputingTimeLimit() (*big.Int, error)
DisputingTimeLimit is a free data retrieval call binding the contract method 0xd64f1f5f.
Solidity: function disputingTimeLimit() view returns(uint40)
func (*WorkerHubCallerSession) DisqualificationPercentage ¶
func (_WorkerHub *WorkerHubCallerSession) DisqualificationPercentage() (uint16, error)
DisqualificationPercentage is a free data retrieval call binding the contract method 0x4670ca47.
Solidity: function disqualificationPercentage() view returns(uint16)
func (*WorkerHubCallerSession) FeePercentage ¶
func (_WorkerHub *WorkerHubCallerSession) FeePercentage() (uint16, error)
FeePercentage is a free data retrieval call binding the contract method 0xa001ecdd.
Solidity: function feePercentage() view returns(uint16)
func (*WorkerHubCallerSession) FinePercentage ¶
func (_WorkerHub *WorkerHubCallerSession) FinePercentage() (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x74172795.
Solidity: function finePercentage() view returns(uint16)
func (*WorkerHubCallerSession) GetInferences ¶
func (_WorkerHub *WorkerHubCallerSession) GetInferences(_inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
GetInferences is a free data retrieval call binding the contract method 0xa01253d8.
Solidity: function getInferences(uint256[] _inferenceIds) view returns((uint256,bytes,bytes,uint256,address,address,uint40,uint8,address)[])
func (*WorkerHubCallerSession) GetMinerAddresses ¶
func (_WorkerHub *WorkerHubCallerSession) GetMinerAddresses() ([]common.Address, error)
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*WorkerHubCallerSession) GetMinerAddressesOfModel ¶
func (_WorkerHub *WorkerHubCallerSession) GetMinerAddressesOfModel(_model common.Address) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0x47253baa.
Solidity: function getMinerAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubCallerSession) GetMiners ¶
func (_WorkerHub *WorkerHubCallerSession) GetMiners() ([]IWorkerHubWorkerInfo, error)
GetMiners is a free data retrieval call binding the contract method 0x1633da6e.
Solidity: function getMiners() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubCallerSession) GetMiningAssignments ¶
func (_WorkerHub *WorkerHubCallerSession) GetMiningAssignments() ([]IWorkerHubAssignmentInfo, error)
GetMiningAssignments is a free data retrieval call binding the contract method 0x37504f57.
Solidity: function getMiningAssignments() view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubCallerSession) GetMintingAssignmentsOfInference ¶
func (_WorkerHub *WorkerHubCallerSession) GetMintingAssignmentsOfInference(_inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
GetMintingAssignmentsOfInference is a free data retrieval call binding the contract method 0x5eec7b20.
Solidity: function getMintingAssignmentsOfInference(uint256 _inferenceId) view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubCallerSession) GetModelAddresses ¶
func (_WorkerHub *WorkerHubCallerSession) GetModelAddresses() ([]common.Address, error)
GetModelAddresses is a free data retrieval call binding the contract method 0x9ae49cd3.
Solidity: function getModelAddresses() view returns(address[])
func (*WorkerHubCallerSession) GetNOMiner ¶
func (_WorkerHub *WorkerHubCallerSession) GetNOMiner() (*big.Int, error)
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*WorkerHubCallerSession) GetValidatorAddresses ¶
func (_WorkerHub *WorkerHubCallerSession) GetValidatorAddresses() ([]common.Address, error)
GetValidatorAddresses is a free data retrieval call binding the contract method 0xf74e921f.
Solidity: function getValidatorAddresses() view returns(address[])
func (*WorkerHubCallerSession) GetValidatorAddressesOfModel ¶
func (_WorkerHub *WorkerHubCallerSession) GetValidatorAddressesOfModel(_model common.Address) ([]common.Address, error)
GetValidatorAddressesOfModel is a free data retrieval call binding the contract method 0xcbaaf438.
Solidity: function getValidatorAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubCallerSession) GetValidators ¶
func (_WorkerHub *WorkerHubCallerSession) GetValidators() ([]IWorkerHubWorkerInfo, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubCallerSession) InferenceNumber ¶
func (_WorkerHub *WorkerHubCallerSession) InferenceNumber() (*big.Int, error)
InferenceNumber is a free data retrieval call binding the contract method 0xf80dca98.
Solidity: function inferenceNumber() view returns(uint256)
func (*WorkerHubCallerSession) IsAssignmentPending ¶
func (_WorkerHub *WorkerHubCallerSession) IsAssignmentPending(_assignmentId *big.Int) (bool, error)
IsAssignmentPending is a free data retrieval call binding the contract method 0x57a38def.
Solidity: function isAssignmentPending(uint256 _assignmentId) view returns(bool)
func (*WorkerHubCallerSession) LastBlock ¶
func (_WorkerHub *WorkerHubCallerSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*WorkerHubCallerSession) MaximumTier ¶
func (_WorkerHub *WorkerHubCallerSession) MaximumTier() (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x0716187f.
Solidity: function maximumTier() view returns(uint16)
func (*WorkerHubCallerSession) MinerMinimumStake ¶
func (_WorkerHub *WorkerHubCallerSession) MinerMinimumStake() (*big.Int, error)
MinerMinimumStake is a free data retrieval call binding the contract method 0x3304f456.
Solidity: function minerMinimumStake() view returns(uint256)
func (*WorkerHubCallerSession) MinerRequirement ¶
func (_WorkerHub *WorkerHubCallerSession) MinerRequirement() (uint8, error)
MinerRequirement is a free data retrieval call binding the contract method 0xdd9b9766.
Solidity: function minerRequirement() view returns(uint8)
func (*WorkerHubCallerSession) MinerUnstakeRequests ¶
func (_WorkerHub *WorkerHubCallerSession) MinerUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
MinerUnstakeRequests is a free data retrieval call binding the contract method 0x191a54d8.
Solidity: function minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubCallerSession) Miners ¶
func (_WorkerHub *WorkerHubCallerSession) Miners(arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0x648ec7b9.
Solidity: function miners(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*WorkerHubCallerSession) MiningTimeLimit ¶
func (_WorkerHub *WorkerHubCallerSession) MiningTimeLimit() (*big.Int, error)
MiningTimeLimit is a free data retrieval call binding the contract method 0x691ff7ef.
Solidity: function miningTimeLimit() view returns(uint40)
func (*WorkerHubCallerSession) Models ¶
func (_WorkerHub *WorkerHubCallerSession) Models(arg0 common.Address) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x54917f83.
Solidity: function models(address ) view returns(uint256 minimumFee, uint32 tier)
func (*WorkerHubCallerSession) Multiplier ¶
Multiplier is a free data retrieval call binding the contract method 0xa9b3f8b7.
Solidity: function multiplier(address _miner) view returns(uint256)
func (*WorkerHubCallerSession) Owner ¶
func (_WorkerHub *WorkerHubCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*WorkerHubCallerSession) Paused ¶
func (_WorkerHub *WorkerHubCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*WorkerHubCallerSession) PenaltyDuration ¶
func (_WorkerHub *WorkerHubCallerSession) PenaltyDuration() (*big.Int, error)
PenaltyDuration is a free data retrieval call binding the contract method 0x5aa1326c.
Solidity: function penaltyDuration() view returns(uint40)
func (*WorkerHubCallerSession) RewardInEpoch ¶
func (_WorkerHub *WorkerHubCallerSession) RewardInEpoch(arg0 *big.Int) (struct { PerfReward *big.Int EpochReward *big.Int TotalTaskCompleted *big.Int TotalMiner *big.Int }, error)
RewardInEpoch is a free data retrieval call binding the contract method 0x652ff159.
Solidity: function rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*WorkerHubCallerSession) RewardPerEpoch ¶
func (_WorkerHub *WorkerHubCallerSession) RewardPerEpoch() (*big.Int, error)
RewardPerEpoch is a free data retrieval call binding the contract method 0x84449a9d.
Solidity: function rewardPerEpoch() view returns(uint256)
func (*WorkerHubCallerSession) Treasury ¶
func (_WorkerHub *WorkerHubCallerSession) Treasury() (common.Address, error)
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(address)
func (*WorkerHubCallerSession) UnstakeDelayTime ¶
func (_WorkerHub *WorkerHubCallerSession) UnstakeDelayTime() (*big.Int, error)
UnstakeDelayTime is a free data retrieval call binding the contract method 0xe4fefd65.
Solidity: function unstakeDelayTime() view returns(uint40)
func (*WorkerHubCallerSession) ValidatingTimeLimit ¶
func (_WorkerHub *WorkerHubCallerSession) ValidatingTimeLimit() (*big.Int, error)
ValidatingTimeLimit is a free data retrieval call binding the contract method 0x56f2eca3.
Solidity: function validatingTimeLimit() view returns(uint40)
func (*WorkerHubCallerSession) ValidatorDisputed ¶
func (_WorkerHub *WorkerHubCallerSession) ValidatorDisputed(arg0 common.Address, arg1 *big.Int) (bool, error)
ValidatorDisputed is a free data retrieval call binding the contract method 0x7146ab67.
Solidity: function validatorDisputed(address , uint256 ) view returns(bool)
func (*WorkerHubCallerSession) ValidatorMinimumStake ¶
func (_WorkerHub *WorkerHubCallerSession) ValidatorMinimumStake() (*big.Int, error)
ValidatorMinimumStake is a free data retrieval call binding the contract method 0x412f9775.
Solidity: function validatorMinimumStake() view returns(uint256)
func (*WorkerHubCallerSession) ValidatorUnstakeRequests ¶
func (_WorkerHub *WorkerHubCallerSession) ValidatorUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
ValidatorUnstakeRequests is a free data retrieval call binding the contract method 0xfd3623f7.
Solidity: function validatorUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubCallerSession) Validators ¶
func (_WorkerHub *WorkerHubCallerSession) Validators(arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Validators is a free data retrieval call binding the contract method 0xfa52c7d8.
Solidity: function validators(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*WorkerHubCallerSession) Version ¶
func (_WorkerHub *WorkerHubCallerSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() pure returns(string)
type WorkerHubFilterer ¶
type WorkerHubFilterer struct {
// contains filtered or unexported fields
}
WorkerHubFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWorkerHubFilterer ¶
func NewWorkerHubFilterer(address common.Address, filterer bind.ContractFilterer) (*WorkerHubFilterer, error)
NewWorkerHubFilterer creates a new log filterer instance of WorkerHub, bound to a specific deployed contract.
func (*WorkerHubFilterer) FilterBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) FilterBlocksPerEpoch(opts *bind.FilterOpts) (*WorkerHubBlocksPerEpochIterator, error)
FilterBlocksPerEpoch is a free log retrieval operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*WorkerHubFilterer) FilterFinePercentageUpdated ¶
func (_WorkerHub *WorkerHubFilterer) FilterFinePercentageUpdated(opts *bind.FilterOpts) (*WorkerHubFinePercentageUpdatedIterator, error)
FilterFinePercentageUpdated is a free log retrieval operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*WorkerHubFilterer) FilterFraudulentMinerPenalized ¶
func (_WorkerHub *WorkerHubFilterer) FilterFraudulentMinerPenalized(opts *bind.FilterOpts, miner []common.Address, modelAddress []common.Address, treasury []common.Address) (*WorkerHubFraudulentMinerPenalizedIterator, error)
FilterFraudulentMinerPenalized is a free log retrieval operation binding the contract event 0x63a49f9cdfcfe1fddc8bd7a881449dc97b664e888be5c2fdee7ca4a70b447e43.
Solidity: event FraudulentMinerPenalized(address indexed miner, address indexed modelAddress, address indexed treasury, uint256 fine)
func (*WorkerHubFilterer) FilterInferenceDisputation ¶
func (_WorkerHub *WorkerHubFilterer) FilterInferenceDisputation(opts *bind.FilterOpts, validator []common.Address, assigmentId []*big.Int) (*WorkerHubInferenceDisputationIterator, error)
FilterInferenceDisputation is a free log retrieval operation binding the contract event 0x7a35142f149dfe3f5cd7125e68104edcde63a29e539db29b23cf0823512dec9c.
Solidity: event InferenceDisputation(address indexed validator, uint256 indexed assigmentId)
func (*WorkerHubFilterer) FilterInferenceStatusUpdate ¶
func (_WorkerHub *WorkerHubFilterer) FilterInferenceStatusUpdate(opts *bind.FilterOpts, inferenceId []*big.Int) (*WorkerHubInferenceStatusUpdateIterator, error)
FilterInferenceStatusUpdate is a free log retrieval operation binding the contract event 0xbc645ece538d7606c8ac26de30aef5fbd0ed2ee0c945f4e5d860da3e62781d50.
Solidity: event InferenceStatusUpdate(uint256 indexed inferenceId, uint8 newStatus)
func (*WorkerHubFilterer) FilterInitialized ¶
func (_WorkerHub *WorkerHubFilterer) FilterInitialized(opts *bind.FilterOpts) (*WorkerHubInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*WorkerHubFilterer) FilterMinerDeactivated ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerDeactivated(opts *bind.FilterOpts, miner []common.Address, modelAddress []common.Address) (*WorkerHubMinerDeactivatedIterator, error)
FilterMinerDeactivated is a free log retrieval operation binding the contract event 0x9335a7723b09748526d22902742e96812ad183ab52d86c2030fe407ff626e50d.
Solidity: event MinerDeactivated(address indexed miner, address indexed modelAddress, uint40 activeTime)
func (*WorkerHubFilterer) FilterMinerExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerExtraStake(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerExtraStakeIterator, error)
FilterMinerExtraStake is a free log retrieval operation binding the contract event 0x3d236e8f743e932a32c84d3114ce3e7ee0b75225cb3b39f72faac62495fd21c1.
Solidity: event MinerExtraStake(address indexed miner, uint256 value)
func (*WorkerHubFilterer) FilterMinerJoin ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerJoin(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerJoinIterator, error)
FilterMinerJoin is a free log retrieval operation binding the contract event 0xb7041987154996ed34981c2bc6fbafd4b1fcab9964486d7cc386f0d8abcc5446.
Solidity: event MinerJoin(address indexed miner)
func (*WorkerHubFilterer) FilterMinerRegistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerRegistration(opts *bind.FilterOpts, miner []common.Address, tier []uint16) (*WorkerHubMinerRegistrationIterator, error)
FilterMinerRegistration is a free log retrieval operation binding the contract event 0x55e488821080f3f5cdf6088b02793df0d26f40053a70b6154347d2ac313015a1.
Solidity: event MinerRegistration(address indexed miner, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) FilterMinerUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerUnregistration(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerUnregistrationIterator, error)
FilterMinerUnregistration is a free log retrieval operation binding the contract event 0x8f54596d72781f60dbf7dad7e576f06ce17bbda0bdf384463f7734f85f51498e.
Solidity: event MinerUnregistration(address indexed miner)
func (*WorkerHubFilterer) FilterMinerUnstake ¶
func (_WorkerHub *WorkerHubFilterer) FilterMinerUnstake(opts *bind.FilterOpts, miner []common.Address) (*WorkerHubMinerUnstakeIterator, error)
FilterMinerUnstake is a free log retrieval operation binding the contract event 0x1051154647682075e7cc0645853209e75208cb5acd862fc83f7fd0fcaa9624b4.
Solidity: event MinerUnstake(address indexed miner, uint256 stake)
func (*WorkerHubFilterer) FilterMiningTimeLimitUpdate ¶
func (_WorkerHub *WorkerHubFilterer) FilterMiningTimeLimitUpdate(opts *bind.FilterOpts) (*WorkerHubMiningTimeLimitUpdateIterator, error)
FilterMiningTimeLimitUpdate is a free log retrieval operation binding the contract event 0xd223a90576ecd9f418b264c3465ab13fad46f62b72bf17dca91af5dc8b7e55a8.
Solidity: event MiningTimeLimitUpdate(uint40 newValue)
func (*WorkerHubFilterer) FilterModelMinimumFeeUpdate ¶
func (_WorkerHub *WorkerHubFilterer) FilterModelMinimumFeeUpdate(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelMinimumFeeUpdateIterator, error)
FilterModelMinimumFeeUpdate is a free log retrieval operation binding the contract event 0x923b5fe9c9974b3c93e434ae744faaa60ec86513c02614da5c8d9c51eda2bdd7.
Solidity: event ModelMinimumFeeUpdate(address indexed model, uint256 minimumFee)
func (*WorkerHubFilterer) FilterModelRegistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterModelRegistration(opts *bind.FilterOpts, model []common.Address, tier []uint16) (*WorkerHubModelRegistrationIterator, error)
FilterModelRegistration is a free log retrieval operation binding the contract event 0x7041913a4cb21c28c931da9d9e4b5ed0ad84e47fcf2a65527f03c438d534ed5c.
Solidity: event ModelRegistration(address indexed model, uint16 indexed tier, uint256 minimumFee)
func (*WorkerHubFilterer) FilterModelTierUpdate ¶
func (_WorkerHub *WorkerHubFilterer) FilterModelTierUpdate(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelTierUpdateIterator, error)
FilterModelTierUpdate is a free log retrieval operation binding the contract event 0x64905396482bb1067a551077143915c77b512b1cfea5db34c903943c1c2a5a15.
Solidity: event ModelTierUpdate(address indexed model, uint32 tier)
func (*WorkerHubFilterer) FilterModelUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterModelUnregistration(opts *bind.FilterOpts, model []common.Address) (*WorkerHubModelUnregistrationIterator, error)
FilterModelUnregistration is a free log retrieval operation binding the contract event 0x68180f49300b9177ab3b88d3f909a002abeb9c2f769543a93234ca68333582d7.
Solidity: event ModelUnregistration(address indexed model)
func (*WorkerHubFilterer) FilterNewAssignment ¶
func (_WorkerHub *WorkerHubFilterer) FilterNewAssignment(opts *bind.FilterOpts, assignmentId []*big.Int, inferenceId []*big.Int, miner []common.Address) (*WorkerHubNewAssignmentIterator, error)
FilterNewAssignment is a free log retrieval operation binding the contract event 0x53cc8b652f33c56dac5f1c97a284cc971e7adcb8abe9454b0853f076c6deb7d5.
Solidity: event NewAssignment(uint256 indexed assignmentId, uint256 indexed inferenceId, address indexed miner, uint40 expiredAt)
func (*WorkerHubFilterer) FilterNewInference ¶
func (_WorkerHub *WorkerHubFilterer) FilterNewInference(opts *bind.FilterOpts, inferenceId []*big.Int, model []common.Address, creator []common.Address) (*WorkerHubNewInferenceIterator, error)
FilterNewInference is a free log retrieval operation binding the contract event 0x77f5630b01c86fd0283f51543024803955bf2c66ddc644ef0ebd1dd193d032ee.
Solidity: event NewInference(uint256 indexed inferenceId, address indexed model, address indexed creator, uint256 value)
func (*WorkerHubFilterer) FilterOwnershipTransferred ¶
func (_WorkerHub *WorkerHubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*WorkerHubOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*WorkerHubFilterer) FilterPaused ¶
func (_WorkerHub *WorkerHubFilterer) FilterPaused(opts *bind.FilterOpts) (*WorkerHubPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*WorkerHubFilterer) FilterPenaltyDurationUpdated ¶
func (_WorkerHub *WorkerHubFilterer) FilterPenaltyDurationUpdated(opts *bind.FilterOpts) (*WorkerHubPenaltyDurationUpdatedIterator, error)
FilterPenaltyDurationUpdated is a free log retrieval operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*WorkerHubFilterer) FilterRestake ¶
func (_WorkerHub *WorkerHubFilterer) FilterRestake(opts *bind.FilterOpts, miner []common.Address, model []common.Address) (*WorkerHubRestakeIterator, error)
FilterRestake is a free log retrieval operation binding the contract event 0x5f8a19f664e489b0ebcc62ec24b1bde029195fbb4af60118cecf0e16d6d95b2d.
Solidity: event Restake(address indexed miner, uint256 restake, address indexed model)
func (*WorkerHubFilterer) FilterRewardClaim ¶
func (_WorkerHub *WorkerHubFilterer) FilterRewardClaim(opts *bind.FilterOpts, worker []common.Address) (*WorkerHubRewardClaimIterator, error)
FilterRewardClaim is a free log retrieval operation binding the contract event 0x75690555e75b04e280e646889defdcbefd8401507e5394d1173fd84290944c29.
Solidity: event RewardClaim(address indexed worker, uint256 value)
func (*WorkerHubFilterer) FilterRewardPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) FilterRewardPerEpoch(opts *bind.FilterOpts) (*WorkerHubRewardPerEpochIterator, error)
FilterRewardPerEpoch is a free log retrieval operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*WorkerHubFilterer) FilterSolutionSubmission ¶
func (_WorkerHub *WorkerHubFilterer) FilterSolutionSubmission(opts *bind.FilterOpts, miner []common.Address, assigmentId []*big.Int) (*WorkerHubSolutionSubmissionIterator, error)
FilterSolutionSubmission is a free log retrieval operation binding the contract event 0x9f669b92b9cbc7611f7ab6c77db07a424051c777433e21bd90f1bdf940096dd9.
Solidity: event SolutionSubmission(address indexed miner, uint256 indexed assigmentId)
func (*WorkerHubFilterer) FilterTopUpInfer ¶
func (_WorkerHub *WorkerHubFilterer) FilterTopUpInfer(opts *bind.FilterOpts, inferenceId []*big.Int, creator []common.Address) (*WorkerHubTopUpInferIterator, error)
FilterTopUpInfer is a free log retrieval operation binding the contract event 0xe3154336ce264fe53bcfaedafded1428a28ae47b19b3d7a82e5d5ecde0960a57.
Solidity: event TopUpInfer(uint256 indexed inferenceId, address indexed creator, uint256 value)
func (*WorkerHubFilterer) FilterTransferFee ¶
func (_WorkerHub *WorkerHubFilterer) FilterTransferFee(opts *bind.FilterOpts, miner []common.Address, treasury []common.Address) (*WorkerHubTransferFeeIterator, error)
FilterTransferFee is a free log retrieval operation binding the contract event 0x782aada659bac972b342fea00dfc27389e876bece89a9eb635bd5a2c544e8a6b.
Solidity: event TransferFee(address indexed miner, uint256 mingingFee, address indexed treasury, uint256 protocolFee)
func (*WorkerHubFilterer) FilterUnpaused ¶
func (_WorkerHub *WorkerHubFilterer) FilterUnpaused(opts *bind.FilterOpts) (*WorkerHubUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*WorkerHubFilterer) FilterUnstakeDelayTime ¶
func (_WorkerHub *WorkerHubFilterer) FilterUnstakeDelayTime(opts *bind.FilterOpts) (*WorkerHubUnstakeDelayTimeIterator, error)
FilterUnstakeDelayTime is a free log retrieval operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
func (*WorkerHubFilterer) FilterValidatorExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) FilterValidatorExtraStake(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorExtraStakeIterator, error)
FilterValidatorExtraStake is a free log retrieval operation binding the contract event 0x34922005bddea1820fe67d4e0d79b91845321a99fc0d43fe025b74ac23e1063d.
Solidity: event ValidatorExtraStake(address indexed validator, uint256 value)
func (*WorkerHubFilterer) FilterValidatorJoin ¶
func (_WorkerHub *WorkerHubFilterer) FilterValidatorJoin(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorJoinIterator, error)
FilterValidatorJoin is a free log retrieval operation binding the contract event 0x8c97974b44dade54a2967b9de94b1229332187b50127027ff91c2e9b28d69d75.
Solidity: event ValidatorJoin(address indexed validator)
func (*WorkerHubFilterer) FilterValidatorRegistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterValidatorRegistration(opts *bind.FilterOpts, validator []common.Address, tier []uint16) (*WorkerHubValidatorRegistrationIterator, error)
FilterValidatorRegistration is a free log retrieval operation binding the contract event 0xcc39e21667abb04befce1bb972c8b03a1b15e1f4b84a3db2535c2fcd6179bb6f.
Solidity: event ValidatorRegistration(address indexed validator, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) FilterValidatorUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) FilterValidatorUnregistration(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorUnregistrationIterator, error)
FilterValidatorUnregistration is a free log retrieval operation binding the contract event 0x3b4cb6e47f5990bd17a69f36b4e7e5b9eca32c5fbc0b09ffa37149fb77348816.
Solidity: event ValidatorUnregistration(address indexed validator)
func (*WorkerHubFilterer) FilterValidatorUnstake ¶
func (_WorkerHub *WorkerHubFilterer) FilterValidatorUnstake(opts *bind.FilterOpts, validator []common.Address) (*WorkerHubValidatorUnstakeIterator, error)
FilterValidatorUnstake is a free log retrieval operation binding the contract event 0xfa8e6fe2f340a3c8da106ab24f4645cdc4f034a0c0514cabfa764531f13798b3.
Solidity: event ValidatorUnstake(address indexed validator, uint256 stake)
func (*WorkerHubFilterer) ParseBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) ParseBlocksPerEpoch(log types.Log) (*WorkerHubBlocksPerEpoch, error)
ParseBlocksPerEpoch is a log parse operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*WorkerHubFilterer) ParseFinePercentageUpdated ¶
func (_WorkerHub *WorkerHubFilterer) ParseFinePercentageUpdated(log types.Log) (*WorkerHubFinePercentageUpdated, error)
ParseFinePercentageUpdated is a log parse operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*WorkerHubFilterer) ParseFraudulentMinerPenalized ¶
func (_WorkerHub *WorkerHubFilterer) ParseFraudulentMinerPenalized(log types.Log) (*WorkerHubFraudulentMinerPenalized, error)
ParseFraudulentMinerPenalized is a log parse operation binding the contract event 0x63a49f9cdfcfe1fddc8bd7a881449dc97b664e888be5c2fdee7ca4a70b447e43.
Solidity: event FraudulentMinerPenalized(address indexed miner, address indexed modelAddress, address indexed treasury, uint256 fine)
func (*WorkerHubFilterer) ParseInferenceDisputation ¶
func (_WorkerHub *WorkerHubFilterer) ParseInferenceDisputation(log types.Log) (*WorkerHubInferenceDisputation, error)
ParseInferenceDisputation is a log parse operation binding the contract event 0x7a35142f149dfe3f5cd7125e68104edcde63a29e539db29b23cf0823512dec9c.
Solidity: event InferenceDisputation(address indexed validator, uint256 indexed assigmentId)
func (*WorkerHubFilterer) ParseInferenceStatusUpdate ¶
func (_WorkerHub *WorkerHubFilterer) ParseInferenceStatusUpdate(log types.Log) (*WorkerHubInferenceStatusUpdate, error)
ParseInferenceStatusUpdate is a log parse operation binding the contract event 0xbc645ece538d7606c8ac26de30aef5fbd0ed2ee0c945f4e5d860da3e62781d50.
Solidity: event InferenceStatusUpdate(uint256 indexed inferenceId, uint8 newStatus)
func (*WorkerHubFilterer) ParseInitialized ¶
func (_WorkerHub *WorkerHubFilterer) ParseInitialized(log types.Log) (*WorkerHubInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*WorkerHubFilterer) ParseMinerDeactivated ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerDeactivated(log types.Log) (*WorkerHubMinerDeactivated, error)
ParseMinerDeactivated is a log parse operation binding the contract event 0x9335a7723b09748526d22902742e96812ad183ab52d86c2030fe407ff626e50d.
Solidity: event MinerDeactivated(address indexed miner, address indexed modelAddress, uint40 activeTime)
func (*WorkerHubFilterer) ParseMinerExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerExtraStake(log types.Log) (*WorkerHubMinerExtraStake, error)
ParseMinerExtraStake is a log parse operation binding the contract event 0x3d236e8f743e932a32c84d3114ce3e7ee0b75225cb3b39f72faac62495fd21c1.
Solidity: event MinerExtraStake(address indexed miner, uint256 value)
func (*WorkerHubFilterer) ParseMinerJoin ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerJoin(log types.Log) (*WorkerHubMinerJoin, error)
ParseMinerJoin is a log parse operation binding the contract event 0xb7041987154996ed34981c2bc6fbafd4b1fcab9964486d7cc386f0d8abcc5446.
Solidity: event MinerJoin(address indexed miner)
func (*WorkerHubFilterer) ParseMinerRegistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerRegistration(log types.Log) (*WorkerHubMinerRegistration, error)
ParseMinerRegistration is a log parse operation binding the contract event 0x55e488821080f3f5cdf6088b02793df0d26f40053a70b6154347d2ac313015a1.
Solidity: event MinerRegistration(address indexed miner, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) ParseMinerUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerUnregistration(log types.Log) (*WorkerHubMinerUnregistration, error)
ParseMinerUnregistration is a log parse operation binding the contract event 0x8f54596d72781f60dbf7dad7e576f06ce17bbda0bdf384463f7734f85f51498e.
Solidity: event MinerUnregistration(address indexed miner)
func (*WorkerHubFilterer) ParseMinerUnstake ¶
func (_WorkerHub *WorkerHubFilterer) ParseMinerUnstake(log types.Log) (*WorkerHubMinerUnstake, error)
ParseMinerUnstake is a log parse operation binding the contract event 0x1051154647682075e7cc0645853209e75208cb5acd862fc83f7fd0fcaa9624b4.
Solidity: event MinerUnstake(address indexed miner, uint256 stake)
func (*WorkerHubFilterer) ParseMiningTimeLimitUpdate ¶
func (_WorkerHub *WorkerHubFilterer) ParseMiningTimeLimitUpdate(log types.Log) (*WorkerHubMiningTimeLimitUpdate, error)
ParseMiningTimeLimitUpdate is a log parse operation binding the contract event 0xd223a90576ecd9f418b264c3465ab13fad46f62b72bf17dca91af5dc8b7e55a8.
Solidity: event MiningTimeLimitUpdate(uint40 newValue)
func (*WorkerHubFilterer) ParseModelMinimumFeeUpdate ¶
func (_WorkerHub *WorkerHubFilterer) ParseModelMinimumFeeUpdate(log types.Log) (*WorkerHubModelMinimumFeeUpdate, error)
ParseModelMinimumFeeUpdate is a log parse operation binding the contract event 0x923b5fe9c9974b3c93e434ae744faaa60ec86513c02614da5c8d9c51eda2bdd7.
Solidity: event ModelMinimumFeeUpdate(address indexed model, uint256 minimumFee)
func (*WorkerHubFilterer) ParseModelRegistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseModelRegistration(log types.Log) (*WorkerHubModelRegistration, error)
ParseModelRegistration is a log parse operation binding the contract event 0x7041913a4cb21c28c931da9d9e4b5ed0ad84e47fcf2a65527f03c438d534ed5c.
Solidity: event ModelRegistration(address indexed model, uint16 indexed tier, uint256 minimumFee)
func (*WorkerHubFilterer) ParseModelTierUpdate ¶
func (_WorkerHub *WorkerHubFilterer) ParseModelTierUpdate(log types.Log) (*WorkerHubModelTierUpdate, error)
ParseModelTierUpdate is a log parse operation binding the contract event 0x64905396482bb1067a551077143915c77b512b1cfea5db34c903943c1c2a5a15.
Solidity: event ModelTierUpdate(address indexed model, uint32 tier)
func (*WorkerHubFilterer) ParseModelUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseModelUnregistration(log types.Log) (*WorkerHubModelUnregistration, error)
ParseModelUnregistration is a log parse operation binding the contract event 0x68180f49300b9177ab3b88d3f909a002abeb9c2f769543a93234ca68333582d7.
Solidity: event ModelUnregistration(address indexed model)
func (*WorkerHubFilterer) ParseNewAssignment ¶
func (_WorkerHub *WorkerHubFilterer) ParseNewAssignment(log types.Log) (*WorkerHubNewAssignment, error)
ParseNewAssignment is a log parse operation binding the contract event 0x53cc8b652f33c56dac5f1c97a284cc971e7adcb8abe9454b0853f076c6deb7d5.
Solidity: event NewAssignment(uint256 indexed assignmentId, uint256 indexed inferenceId, address indexed miner, uint40 expiredAt)
func (*WorkerHubFilterer) ParseNewInference ¶
func (_WorkerHub *WorkerHubFilterer) ParseNewInference(log types.Log) (*WorkerHubNewInference, error)
ParseNewInference is a log parse operation binding the contract event 0x77f5630b01c86fd0283f51543024803955bf2c66ddc644ef0ebd1dd193d032ee.
Solidity: event NewInference(uint256 indexed inferenceId, address indexed model, address indexed creator, uint256 value)
func (*WorkerHubFilterer) ParseOwnershipTransferred ¶
func (_WorkerHub *WorkerHubFilterer) ParseOwnershipTransferred(log types.Log) (*WorkerHubOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*WorkerHubFilterer) ParsePaused ¶
func (_WorkerHub *WorkerHubFilterer) ParsePaused(log types.Log) (*WorkerHubPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*WorkerHubFilterer) ParsePenaltyDurationUpdated ¶
func (_WorkerHub *WorkerHubFilterer) ParsePenaltyDurationUpdated(log types.Log) (*WorkerHubPenaltyDurationUpdated, error)
ParsePenaltyDurationUpdated is a log parse operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*WorkerHubFilterer) ParseRestake ¶
func (_WorkerHub *WorkerHubFilterer) ParseRestake(log types.Log) (*WorkerHubRestake, error)
ParseRestake is a log parse operation binding the contract event 0x5f8a19f664e489b0ebcc62ec24b1bde029195fbb4af60118cecf0e16d6d95b2d.
Solidity: event Restake(address indexed miner, uint256 restake, address indexed model)
func (*WorkerHubFilterer) ParseRewardClaim ¶
func (_WorkerHub *WorkerHubFilterer) ParseRewardClaim(log types.Log) (*WorkerHubRewardClaim, error)
ParseRewardClaim is a log parse operation binding the contract event 0x75690555e75b04e280e646889defdcbefd8401507e5394d1173fd84290944c29.
Solidity: event RewardClaim(address indexed worker, uint256 value)
func (*WorkerHubFilterer) ParseRewardPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) ParseRewardPerEpoch(log types.Log) (*WorkerHubRewardPerEpoch, error)
ParseRewardPerEpoch is a log parse operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*WorkerHubFilterer) ParseSolutionSubmission ¶
func (_WorkerHub *WorkerHubFilterer) ParseSolutionSubmission(log types.Log) (*WorkerHubSolutionSubmission, error)
ParseSolutionSubmission is a log parse operation binding the contract event 0x9f669b92b9cbc7611f7ab6c77db07a424051c777433e21bd90f1bdf940096dd9.
Solidity: event SolutionSubmission(address indexed miner, uint256 indexed assigmentId)
func (*WorkerHubFilterer) ParseTopUpInfer ¶
func (_WorkerHub *WorkerHubFilterer) ParseTopUpInfer(log types.Log) (*WorkerHubTopUpInfer, error)
ParseTopUpInfer is a log parse operation binding the contract event 0xe3154336ce264fe53bcfaedafded1428a28ae47b19b3d7a82e5d5ecde0960a57.
Solidity: event TopUpInfer(uint256 indexed inferenceId, address indexed creator, uint256 value)
func (*WorkerHubFilterer) ParseTransferFee ¶
func (_WorkerHub *WorkerHubFilterer) ParseTransferFee(log types.Log) (*WorkerHubTransferFee, error)
ParseTransferFee is a log parse operation binding the contract event 0x782aada659bac972b342fea00dfc27389e876bece89a9eb635bd5a2c544e8a6b.
Solidity: event TransferFee(address indexed miner, uint256 mingingFee, address indexed treasury, uint256 protocolFee)
func (*WorkerHubFilterer) ParseUnpaused ¶
func (_WorkerHub *WorkerHubFilterer) ParseUnpaused(log types.Log) (*WorkerHubUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*WorkerHubFilterer) ParseUnstakeDelayTime ¶
func (_WorkerHub *WorkerHubFilterer) ParseUnstakeDelayTime(log types.Log) (*WorkerHubUnstakeDelayTime, error)
ParseUnstakeDelayTime is a log parse operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
func (*WorkerHubFilterer) ParseValidatorExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) ParseValidatorExtraStake(log types.Log) (*WorkerHubValidatorExtraStake, error)
ParseValidatorExtraStake is a log parse operation binding the contract event 0x34922005bddea1820fe67d4e0d79b91845321a99fc0d43fe025b74ac23e1063d.
Solidity: event ValidatorExtraStake(address indexed validator, uint256 value)
func (*WorkerHubFilterer) ParseValidatorJoin ¶
func (_WorkerHub *WorkerHubFilterer) ParseValidatorJoin(log types.Log) (*WorkerHubValidatorJoin, error)
ParseValidatorJoin is a log parse operation binding the contract event 0x8c97974b44dade54a2967b9de94b1229332187b50127027ff91c2e9b28d69d75.
Solidity: event ValidatorJoin(address indexed validator)
func (*WorkerHubFilterer) ParseValidatorRegistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseValidatorRegistration(log types.Log) (*WorkerHubValidatorRegistration, error)
ParseValidatorRegistration is a log parse operation binding the contract event 0xcc39e21667abb04befce1bb972c8b03a1b15e1f4b84a3db2535c2fcd6179bb6f.
Solidity: event ValidatorRegistration(address indexed validator, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) ParseValidatorUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) ParseValidatorUnregistration(log types.Log) (*WorkerHubValidatorUnregistration, error)
ParseValidatorUnregistration is a log parse operation binding the contract event 0x3b4cb6e47f5990bd17a69f36b4e7e5b9eca32c5fbc0b09ffa37149fb77348816.
Solidity: event ValidatorUnregistration(address indexed validator)
func (*WorkerHubFilterer) ParseValidatorUnstake ¶
func (_WorkerHub *WorkerHubFilterer) ParseValidatorUnstake(log types.Log) (*WorkerHubValidatorUnstake, error)
ParseValidatorUnstake is a log parse operation binding the contract event 0xfa8e6fe2f340a3c8da106ab24f4645cdc4f034a0c0514cabfa764531f13798b3.
Solidity: event ValidatorUnstake(address indexed validator, uint256 stake)
func (*WorkerHubFilterer) WatchBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) WatchBlocksPerEpoch(opts *bind.WatchOpts, sink chan<- *WorkerHubBlocksPerEpoch) (event.Subscription, error)
WatchBlocksPerEpoch is a free log subscription operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*WorkerHubFilterer) WatchFinePercentageUpdated ¶
func (_WorkerHub *WorkerHubFilterer) WatchFinePercentageUpdated(opts *bind.WatchOpts, sink chan<- *WorkerHubFinePercentageUpdated) (event.Subscription, error)
WatchFinePercentageUpdated is a free log subscription operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*WorkerHubFilterer) WatchFraudulentMinerPenalized ¶
func (_WorkerHub *WorkerHubFilterer) WatchFraudulentMinerPenalized(opts *bind.WatchOpts, sink chan<- *WorkerHubFraudulentMinerPenalized, miner []common.Address, modelAddress []common.Address, treasury []common.Address) (event.Subscription, error)
WatchFraudulentMinerPenalized is a free log subscription operation binding the contract event 0x63a49f9cdfcfe1fddc8bd7a881449dc97b664e888be5c2fdee7ca4a70b447e43.
Solidity: event FraudulentMinerPenalized(address indexed miner, address indexed modelAddress, address indexed treasury, uint256 fine)
func (*WorkerHubFilterer) WatchInferenceDisputation ¶
func (_WorkerHub *WorkerHubFilterer) WatchInferenceDisputation(opts *bind.WatchOpts, sink chan<- *WorkerHubInferenceDisputation, validator []common.Address, assigmentId []*big.Int) (event.Subscription, error)
WatchInferenceDisputation is a free log subscription operation binding the contract event 0x7a35142f149dfe3f5cd7125e68104edcde63a29e539db29b23cf0823512dec9c.
Solidity: event InferenceDisputation(address indexed validator, uint256 indexed assigmentId)
func (*WorkerHubFilterer) WatchInferenceStatusUpdate ¶
func (_WorkerHub *WorkerHubFilterer) WatchInferenceStatusUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubInferenceStatusUpdate, inferenceId []*big.Int) (event.Subscription, error)
WatchInferenceStatusUpdate is a free log subscription operation binding the contract event 0xbc645ece538d7606c8ac26de30aef5fbd0ed2ee0c945f4e5d860da3e62781d50.
Solidity: event InferenceStatusUpdate(uint256 indexed inferenceId, uint8 newStatus)
func (*WorkerHubFilterer) WatchInitialized ¶
func (_WorkerHub *WorkerHubFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *WorkerHubInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*WorkerHubFilterer) WatchMinerDeactivated ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerDeactivated(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerDeactivated, miner []common.Address, modelAddress []common.Address) (event.Subscription, error)
WatchMinerDeactivated is a free log subscription operation binding the contract event 0x9335a7723b09748526d22902742e96812ad183ab52d86c2030fe407ff626e50d.
Solidity: event MinerDeactivated(address indexed miner, address indexed modelAddress, uint40 activeTime)
func (*WorkerHubFilterer) WatchMinerExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerExtraStake(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerExtraStake, miner []common.Address) (event.Subscription, error)
WatchMinerExtraStake is a free log subscription operation binding the contract event 0x3d236e8f743e932a32c84d3114ce3e7ee0b75225cb3b39f72faac62495fd21c1.
Solidity: event MinerExtraStake(address indexed miner, uint256 value)
func (*WorkerHubFilterer) WatchMinerJoin ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerJoin(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerJoin, miner []common.Address) (event.Subscription, error)
WatchMinerJoin is a free log subscription operation binding the contract event 0xb7041987154996ed34981c2bc6fbafd4b1fcab9964486d7cc386f0d8abcc5446.
Solidity: event MinerJoin(address indexed miner)
func (*WorkerHubFilterer) WatchMinerRegistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerRegistration, miner []common.Address, tier []uint16) (event.Subscription, error)
WatchMinerRegistration is a free log subscription operation binding the contract event 0x55e488821080f3f5cdf6088b02793df0d26f40053a70b6154347d2ac313015a1.
Solidity: event MinerRegistration(address indexed miner, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) WatchMinerUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerUnregistration, miner []common.Address) (event.Subscription, error)
WatchMinerUnregistration is a free log subscription operation binding the contract event 0x8f54596d72781f60dbf7dad7e576f06ce17bbda0bdf384463f7734f85f51498e.
Solidity: event MinerUnregistration(address indexed miner)
func (*WorkerHubFilterer) WatchMinerUnstake ¶
func (_WorkerHub *WorkerHubFilterer) WatchMinerUnstake(opts *bind.WatchOpts, sink chan<- *WorkerHubMinerUnstake, miner []common.Address) (event.Subscription, error)
WatchMinerUnstake is a free log subscription operation binding the contract event 0x1051154647682075e7cc0645853209e75208cb5acd862fc83f7fd0fcaa9624b4.
Solidity: event MinerUnstake(address indexed miner, uint256 stake)
func (*WorkerHubFilterer) WatchMiningTimeLimitUpdate ¶
func (_WorkerHub *WorkerHubFilterer) WatchMiningTimeLimitUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubMiningTimeLimitUpdate) (event.Subscription, error)
WatchMiningTimeLimitUpdate is a free log subscription operation binding the contract event 0xd223a90576ecd9f418b264c3465ab13fad46f62b72bf17dca91af5dc8b7e55a8.
Solidity: event MiningTimeLimitUpdate(uint40 newValue)
func (*WorkerHubFilterer) WatchModelMinimumFeeUpdate ¶
func (_WorkerHub *WorkerHubFilterer) WatchModelMinimumFeeUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubModelMinimumFeeUpdate, model []common.Address) (event.Subscription, error)
WatchModelMinimumFeeUpdate is a free log subscription operation binding the contract event 0x923b5fe9c9974b3c93e434ae744faaa60ec86513c02614da5c8d9c51eda2bdd7.
Solidity: event ModelMinimumFeeUpdate(address indexed model, uint256 minimumFee)
func (*WorkerHubFilterer) WatchModelRegistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchModelRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubModelRegistration, model []common.Address, tier []uint16) (event.Subscription, error)
WatchModelRegistration is a free log subscription operation binding the contract event 0x7041913a4cb21c28c931da9d9e4b5ed0ad84e47fcf2a65527f03c438d534ed5c.
Solidity: event ModelRegistration(address indexed model, uint16 indexed tier, uint256 minimumFee)
func (*WorkerHubFilterer) WatchModelTierUpdate ¶
func (_WorkerHub *WorkerHubFilterer) WatchModelTierUpdate(opts *bind.WatchOpts, sink chan<- *WorkerHubModelTierUpdate, model []common.Address) (event.Subscription, error)
WatchModelTierUpdate is a free log subscription operation binding the contract event 0x64905396482bb1067a551077143915c77b512b1cfea5db34c903943c1c2a5a15.
Solidity: event ModelTierUpdate(address indexed model, uint32 tier)
func (*WorkerHubFilterer) WatchModelUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchModelUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubModelUnregistration, model []common.Address) (event.Subscription, error)
WatchModelUnregistration is a free log subscription operation binding the contract event 0x68180f49300b9177ab3b88d3f909a002abeb9c2f769543a93234ca68333582d7.
Solidity: event ModelUnregistration(address indexed model)
func (*WorkerHubFilterer) WatchNewAssignment ¶
func (_WorkerHub *WorkerHubFilterer) WatchNewAssignment(opts *bind.WatchOpts, sink chan<- *WorkerHubNewAssignment, assignmentId []*big.Int, inferenceId []*big.Int, miner []common.Address) (event.Subscription, error)
WatchNewAssignment is a free log subscription operation binding the contract event 0x53cc8b652f33c56dac5f1c97a284cc971e7adcb8abe9454b0853f076c6deb7d5.
Solidity: event NewAssignment(uint256 indexed assignmentId, uint256 indexed inferenceId, address indexed miner, uint40 expiredAt)
func (*WorkerHubFilterer) WatchNewInference ¶
func (_WorkerHub *WorkerHubFilterer) WatchNewInference(opts *bind.WatchOpts, sink chan<- *WorkerHubNewInference, inferenceId []*big.Int, model []common.Address, creator []common.Address) (event.Subscription, error)
WatchNewInference is a free log subscription operation binding the contract event 0x77f5630b01c86fd0283f51543024803955bf2c66ddc644ef0ebd1dd193d032ee.
Solidity: event NewInference(uint256 indexed inferenceId, address indexed model, address indexed creator, uint256 value)
func (*WorkerHubFilterer) WatchOwnershipTransferred ¶
func (_WorkerHub *WorkerHubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WorkerHubOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*WorkerHubFilterer) WatchPaused ¶
func (_WorkerHub *WorkerHubFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *WorkerHubPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*WorkerHubFilterer) WatchPenaltyDurationUpdated ¶
func (_WorkerHub *WorkerHubFilterer) WatchPenaltyDurationUpdated(opts *bind.WatchOpts, sink chan<- *WorkerHubPenaltyDurationUpdated) (event.Subscription, error)
WatchPenaltyDurationUpdated is a free log subscription operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*WorkerHubFilterer) WatchRestake ¶
func (_WorkerHub *WorkerHubFilterer) WatchRestake(opts *bind.WatchOpts, sink chan<- *WorkerHubRestake, miner []common.Address, model []common.Address) (event.Subscription, error)
WatchRestake is a free log subscription operation binding the contract event 0x5f8a19f664e489b0ebcc62ec24b1bde029195fbb4af60118cecf0e16d6d95b2d.
Solidity: event Restake(address indexed miner, uint256 restake, address indexed model)
func (*WorkerHubFilterer) WatchRewardClaim ¶
func (_WorkerHub *WorkerHubFilterer) WatchRewardClaim(opts *bind.WatchOpts, sink chan<- *WorkerHubRewardClaim, worker []common.Address) (event.Subscription, error)
WatchRewardClaim is a free log subscription operation binding the contract event 0x75690555e75b04e280e646889defdcbefd8401507e5394d1173fd84290944c29.
Solidity: event RewardClaim(address indexed worker, uint256 value)
func (*WorkerHubFilterer) WatchRewardPerEpoch ¶
func (_WorkerHub *WorkerHubFilterer) WatchRewardPerEpoch(opts *bind.WatchOpts, sink chan<- *WorkerHubRewardPerEpoch) (event.Subscription, error)
WatchRewardPerEpoch is a free log subscription operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*WorkerHubFilterer) WatchSolutionSubmission ¶
func (_WorkerHub *WorkerHubFilterer) WatchSolutionSubmission(opts *bind.WatchOpts, sink chan<- *WorkerHubSolutionSubmission, miner []common.Address, assigmentId []*big.Int) (event.Subscription, error)
WatchSolutionSubmission is a free log subscription operation binding the contract event 0x9f669b92b9cbc7611f7ab6c77db07a424051c777433e21bd90f1bdf940096dd9.
Solidity: event SolutionSubmission(address indexed miner, uint256 indexed assigmentId)
func (*WorkerHubFilterer) WatchTopUpInfer ¶
func (_WorkerHub *WorkerHubFilterer) WatchTopUpInfer(opts *bind.WatchOpts, sink chan<- *WorkerHubTopUpInfer, inferenceId []*big.Int, creator []common.Address) (event.Subscription, error)
WatchTopUpInfer is a free log subscription operation binding the contract event 0xe3154336ce264fe53bcfaedafded1428a28ae47b19b3d7a82e5d5ecde0960a57.
Solidity: event TopUpInfer(uint256 indexed inferenceId, address indexed creator, uint256 value)
func (*WorkerHubFilterer) WatchTransferFee ¶
func (_WorkerHub *WorkerHubFilterer) WatchTransferFee(opts *bind.WatchOpts, sink chan<- *WorkerHubTransferFee, miner []common.Address, treasury []common.Address) (event.Subscription, error)
WatchTransferFee is a free log subscription operation binding the contract event 0x782aada659bac972b342fea00dfc27389e876bece89a9eb635bd5a2c544e8a6b.
Solidity: event TransferFee(address indexed miner, uint256 mingingFee, address indexed treasury, uint256 protocolFee)
func (*WorkerHubFilterer) WatchUnpaused ¶
func (_WorkerHub *WorkerHubFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *WorkerHubUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*WorkerHubFilterer) WatchUnstakeDelayTime ¶
func (_WorkerHub *WorkerHubFilterer) WatchUnstakeDelayTime(opts *bind.WatchOpts, sink chan<- *WorkerHubUnstakeDelayTime) (event.Subscription, error)
WatchUnstakeDelayTime is a free log subscription operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
func (*WorkerHubFilterer) WatchValidatorExtraStake ¶
func (_WorkerHub *WorkerHubFilterer) WatchValidatorExtraStake(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorExtraStake, validator []common.Address) (event.Subscription, error)
WatchValidatorExtraStake is a free log subscription operation binding the contract event 0x34922005bddea1820fe67d4e0d79b91845321a99fc0d43fe025b74ac23e1063d.
Solidity: event ValidatorExtraStake(address indexed validator, uint256 value)
func (*WorkerHubFilterer) WatchValidatorJoin ¶
func (_WorkerHub *WorkerHubFilterer) WatchValidatorJoin(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorJoin, validator []common.Address) (event.Subscription, error)
WatchValidatorJoin is a free log subscription operation binding the contract event 0x8c97974b44dade54a2967b9de94b1229332187b50127027ff91c2e9b28d69d75.
Solidity: event ValidatorJoin(address indexed validator)
func (*WorkerHubFilterer) WatchValidatorRegistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchValidatorRegistration(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorRegistration, validator []common.Address, tier []uint16) (event.Subscription, error)
WatchValidatorRegistration is a free log subscription operation binding the contract event 0xcc39e21667abb04befce1bb972c8b03a1b15e1f4b84a3db2535c2fcd6179bb6f.
Solidity: event ValidatorRegistration(address indexed validator, uint16 indexed tier, uint256 value)
func (*WorkerHubFilterer) WatchValidatorUnregistration ¶
func (_WorkerHub *WorkerHubFilterer) WatchValidatorUnregistration(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorUnregistration, validator []common.Address) (event.Subscription, error)
WatchValidatorUnregistration is a free log subscription operation binding the contract event 0x3b4cb6e47f5990bd17a69f36b4e7e5b9eca32c5fbc0b09ffa37149fb77348816.
Solidity: event ValidatorUnregistration(address indexed validator)
func (*WorkerHubFilterer) WatchValidatorUnstake ¶
func (_WorkerHub *WorkerHubFilterer) WatchValidatorUnstake(opts *bind.WatchOpts, sink chan<- *WorkerHubValidatorUnstake, validator []common.Address) (event.Subscription, error)
WatchValidatorUnstake is a free log subscription operation binding the contract event 0xfa8e6fe2f340a3c8da106ab24f4645cdc4f034a0c0514cabfa764531f13798b3.
Solidity: event ValidatorUnstake(address indexed validator, uint256 stake)
type WorkerHubFinePercentageUpdated ¶
type WorkerHubFinePercentageUpdated struct { OldPercent uint16 NewPercent uint16 Raw types.Log // Blockchain specific contextual infos }
WorkerHubFinePercentageUpdated represents a FinePercentageUpdated event raised by the WorkerHub contract.
type WorkerHubFinePercentageUpdatedIterator ¶
type WorkerHubFinePercentageUpdatedIterator struct { Event *WorkerHubFinePercentageUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubFinePercentageUpdatedIterator is returned from FilterFinePercentageUpdated and is used to iterate over the raw logs and unpacked data for FinePercentageUpdated events raised by the WorkerHub contract.
func (*WorkerHubFinePercentageUpdatedIterator) Close ¶
func (it *WorkerHubFinePercentageUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubFinePercentageUpdatedIterator) Error ¶
func (it *WorkerHubFinePercentageUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubFinePercentageUpdatedIterator) Next ¶
func (it *WorkerHubFinePercentageUpdatedIterator) 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 WorkerHubFraudulentMinerPenalized ¶
type WorkerHubFraudulentMinerPenalized struct { Miner common.Address ModelAddress common.Address Treasury common.Address Fine *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubFraudulentMinerPenalized represents a FraudulentMinerPenalized event raised by the WorkerHub contract.
type WorkerHubFraudulentMinerPenalizedIterator ¶
type WorkerHubFraudulentMinerPenalizedIterator struct { Event *WorkerHubFraudulentMinerPenalized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubFraudulentMinerPenalizedIterator is returned from FilterFraudulentMinerPenalized and is used to iterate over the raw logs and unpacked data for FraudulentMinerPenalized events raised by the WorkerHub contract.
func (*WorkerHubFraudulentMinerPenalizedIterator) Close ¶
func (it *WorkerHubFraudulentMinerPenalizedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubFraudulentMinerPenalizedIterator) Error ¶
func (it *WorkerHubFraudulentMinerPenalizedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubFraudulentMinerPenalizedIterator) Next ¶
func (it *WorkerHubFraudulentMinerPenalizedIterator) 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 WorkerHubInferenceDisputation ¶
type WorkerHubInferenceDisputation struct { Validator common.Address AssigmentId *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubInferenceDisputation represents a InferenceDisputation event raised by the WorkerHub contract.
type WorkerHubInferenceDisputationIterator ¶
type WorkerHubInferenceDisputationIterator struct { Event *WorkerHubInferenceDisputation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubInferenceDisputationIterator is returned from FilterInferenceDisputation and is used to iterate over the raw logs and unpacked data for InferenceDisputation events raised by the WorkerHub contract.
func (*WorkerHubInferenceDisputationIterator) Close ¶
func (it *WorkerHubInferenceDisputationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubInferenceDisputationIterator) Error ¶
func (it *WorkerHubInferenceDisputationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubInferenceDisputationIterator) Next ¶
func (it *WorkerHubInferenceDisputationIterator) 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 WorkerHubInferenceStatusUpdate ¶
type WorkerHubInferenceStatusUpdate struct { InferenceId *big.Int NewStatus uint8 Raw types.Log // Blockchain specific contextual infos }
WorkerHubInferenceStatusUpdate represents a InferenceStatusUpdate event raised by the WorkerHub contract.
type WorkerHubInferenceStatusUpdateIterator ¶
type WorkerHubInferenceStatusUpdateIterator struct { Event *WorkerHubInferenceStatusUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubInferenceStatusUpdateIterator is returned from FilterInferenceStatusUpdate and is used to iterate over the raw logs and unpacked data for InferenceStatusUpdate events raised by the WorkerHub contract.
func (*WorkerHubInferenceStatusUpdateIterator) Close ¶
func (it *WorkerHubInferenceStatusUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubInferenceStatusUpdateIterator) Error ¶
func (it *WorkerHubInferenceStatusUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubInferenceStatusUpdateIterator) Next ¶
func (it *WorkerHubInferenceStatusUpdateIterator) 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 WorkerHubInitialized ¶
type WorkerHubInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
WorkerHubInitialized represents a Initialized event raised by the WorkerHub contract.
type WorkerHubInitializedIterator ¶
type WorkerHubInitializedIterator struct { Event *WorkerHubInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the WorkerHub contract.
func (*WorkerHubInitializedIterator) Close ¶
func (it *WorkerHubInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubInitializedIterator) Error ¶
func (it *WorkerHubInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubInitializedIterator) Next ¶
func (it *WorkerHubInitializedIterator) 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 WorkerHubMinerDeactivated ¶
type WorkerHubMinerDeactivated struct { Miner common.Address ModelAddress common.Address ActiveTime *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerDeactivated represents a MinerDeactivated event raised by the WorkerHub contract.
type WorkerHubMinerDeactivatedIterator ¶
type WorkerHubMinerDeactivatedIterator struct { Event *WorkerHubMinerDeactivated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerDeactivatedIterator is returned from FilterMinerDeactivated and is used to iterate over the raw logs and unpacked data for MinerDeactivated events raised by the WorkerHub contract.
func (*WorkerHubMinerDeactivatedIterator) Close ¶
func (it *WorkerHubMinerDeactivatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerDeactivatedIterator) Error ¶
func (it *WorkerHubMinerDeactivatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerDeactivatedIterator) Next ¶
func (it *WorkerHubMinerDeactivatedIterator) 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 WorkerHubMinerExtraStake ¶
type WorkerHubMinerExtraStake struct { Miner common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerExtraStake represents a MinerExtraStake event raised by the WorkerHub contract.
type WorkerHubMinerExtraStakeIterator ¶
type WorkerHubMinerExtraStakeIterator struct { Event *WorkerHubMinerExtraStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerExtraStakeIterator is returned from FilterMinerExtraStake and is used to iterate over the raw logs and unpacked data for MinerExtraStake events raised by the WorkerHub contract.
func (*WorkerHubMinerExtraStakeIterator) Close ¶
func (it *WorkerHubMinerExtraStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerExtraStakeIterator) Error ¶
func (it *WorkerHubMinerExtraStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerExtraStakeIterator) Next ¶
func (it *WorkerHubMinerExtraStakeIterator) 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 WorkerHubMinerJoin ¶
type WorkerHubMinerJoin struct { Miner common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerJoin represents a MinerJoin event raised by the WorkerHub contract.
type WorkerHubMinerJoinIterator ¶
type WorkerHubMinerJoinIterator struct { Event *WorkerHubMinerJoin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerJoinIterator is returned from FilterMinerJoin and is used to iterate over the raw logs and unpacked data for MinerJoin events raised by the WorkerHub contract.
func (*WorkerHubMinerJoinIterator) Close ¶
func (it *WorkerHubMinerJoinIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerJoinIterator) Error ¶
func (it *WorkerHubMinerJoinIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerJoinIterator) Next ¶
func (it *WorkerHubMinerJoinIterator) 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 WorkerHubMinerRegistration ¶
type WorkerHubMinerRegistration struct { Miner common.Address Tier uint16 Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerRegistration represents a MinerRegistration event raised by the WorkerHub contract.
type WorkerHubMinerRegistrationIterator ¶
type WorkerHubMinerRegistrationIterator struct { Event *WorkerHubMinerRegistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerRegistrationIterator is returned from FilterMinerRegistration and is used to iterate over the raw logs and unpacked data for MinerRegistration events raised by the WorkerHub contract.
func (*WorkerHubMinerRegistrationIterator) Close ¶
func (it *WorkerHubMinerRegistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerRegistrationIterator) Error ¶
func (it *WorkerHubMinerRegistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerRegistrationIterator) Next ¶
func (it *WorkerHubMinerRegistrationIterator) 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 WorkerHubMinerUnregistration ¶
type WorkerHubMinerUnregistration struct { Miner common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerUnregistration represents a MinerUnregistration event raised by the WorkerHub contract.
type WorkerHubMinerUnregistrationIterator ¶
type WorkerHubMinerUnregistrationIterator struct { Event *WorkerHubMinerUnregistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerUnregistrationIterator is returned from FilterMinerUnregistration and is used to iterate over the raw logs and unpacked data for MinerUnregistration events raised by the WorkerHub contract.
func (*WorkerHubMinerUnregistrationIterator) Close ¶
func (it *WorkerHubMinerUnregistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerUnregistrationIterator) Error ¶
func (it *WorkerHubMinerUnregistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerUnregistrationIterator) Next ¶
func (it *WorkerHubMinerUnregistrationIterator) 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 WorkerHubMinerUnstake ¶
type WorkerHubMinerUnstake struct { Miner common.Address Stake *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubMinerUnstake represents a MinerUnstake event raised by the WorkerHub contract.
type WorkerHubMinerUnstakeIterator ¶
type WorkerHubMinerUnstakeIterator struct { Event *WorkerHubMinerUnstake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMinerUnstakeIterator is returned from FilterMinerUnstake and is used to iterate over the raw logs and unpacked data for MinerUnstake events raised by the WorkerHub contract.
func (*WorkerHubMinerUnstakeIterator) Close ¶
func (it *WorkerHubMinerUnstakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMinerUnstakeIterator) Error ¶
func (it *WorkerHubMinerUnstakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMinerUnstakeIterator) Next ¶
func (it *WorkerHubMinerUnstakeIterator) 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 WorkerHubMiningTimeLimitUpdate ¶
type WorkerHubMiningTimeLimitUpdate struct { NewValue *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubMiningTimeLimitUpdate represents a MiningTimeLimitUpdate event raised by the WorkerHub contract.
type WorkerHubMiningTimeLimitUpdateIterator ¶
type WorkerHubMiningTimeLimitUpdateIterator struct { Event *WorkerHubMiningTimeLimitUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubMiningTimeLimitUpdateIterator is returned from FilterMiningTimeLimitUpdate and is used to iterate over the raw logs and unpacked data for MiningTimeLimitUpdate events raised by the WorkerHub contract.
func (*WorkerHubMiningTimeLimitUpdateIterator) Close ¶
func (it *WorkerHubMiningTimeLimitUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubMiningTimeLimitUpdateIterator) Error ¶
func (it *WorkerHubMiningTimeLimitUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubMiningTimeLimitUpdateIterator) Next ¶
func (it *WorkerHubMiningTimeLimitUpdateIterator) 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 WorkerHubModelMinimumFeeUpdate ¶
type WorkerHubModelMinimumFeeUpdate struct { Model common.Address MinimumFee *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubModelMinimumFeeUpdate represents a ModelMinimumFeeUpdate event raised by the WorkerHub contract.
type WorkerHubModelMinimumFeeUpdateIterator ¶
type WorkerHubModelMinimumFeeUpdateIterator struct { Event *WorkerHubModelMinimumFeeUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubModelMinimumFeeUpdateIterator is returned from FilterModelMinimumFeeUpdate and is used to iterate over the raw logs and unpacked data for ModelMinimumFeeUpdate events raised by the WorkerHub contract.
func (*WorkerHubModelMinimumFeeUpdateIterator) Close ¶
func (it *WorkerHubModelMinimumFeeUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubModelMinimumFeeUpdateIterator) Error ¶
func (it *WorkerHubModelMinimumFeeUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubModelMinimumFeeUpdateIterator) Next ¶
func (it *WorkerHubModelMinimumFeeUpdateIterator) 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 WorkerHubModelRegistration ¶
type WorkerHubModelRegistration struct { Model common.Address Tier uint16 MinimumFee *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubModelRegistration represents a ModelRegistration event raised by the WorkerHub contract.
type WorkerHubModelRegistrationIterator ¶
type WorkerHubModelRegistrationIterator struct { Event *WorkerHubModelRegistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubModelRegistrationIterator is returned from FilterModelRegistration and is used to iterate over the raw logs and unpacked data for ModelRegistration events raised by the WorkerHub contract.
func (*WorkerHubModelRegistrationIterator) Close ¶
func (it *WorkerHubModelRegistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubModelRegistrationIterator) Error ¶
func (it *WorkerHubModelRegistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubModelRegistrationIterator) Next ¶
func (it *WorkerHubModelRegistrationIterator) 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 WorkerHubModelTierUpdate ¶
type WorkerHubModelTierUpdate struct { Model common.Address Tier uint32 Raw types.Log // Blockchain specific contextual infos }
WorkerHubModelTierUpdate represents a ModelTierUpdate event raised by the WorkerHub contract.
type WorkerHubModelTierUpdateIterator ¶
type WorkerHubModelTierUpdateIterator struct { Event *WorkerHubModelTierUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubModelTierUpdateIterator is returned from FilterModelTierUpdate and is used to iterate over the raw logs and unpacked data for ModelTierUpdate events raised by the WorkerHub contract.
func (*WorkerHubModelTierUpdateIterator) Close ¶
func (it *WorkerHubModelTierUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubModelTierUpdateIterator) Error ¶
func (it *WorkerHubModelTierUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubModelTierUpdateIterator) Next ¶
func (it *WorkerHubModelTierUpdateIterator) 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 WorkerHubModelUnregistration ¶
type WorkerHubModelUnregistration struct { Model common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubModelUnregistration represents a ModelUnregistration event raised by the WorkerHub contract.
type WorkerHubModelUnregistrationIterator ¶
type WorkerHubModelUnregistrationIterator struct { Event *WorkerHubModelUnregistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubModelUnregistrationIterator is returned from FilterModelUnregistration and is used to iterate over the raw logs and unpacked data for ModelUnregistration events raised by the WorkerHub contract.
func (*WorkerHubModelUnregistrationIterator) Close ¶
func (it *WorkerHubModelUnregistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubModelUnregistrationIterator) Error ¶
func (it *WorkerHubModelUnregistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubModelUnregistrationIterator) Next ¶
func (it *WorkerHubModelUnregistrationIterator) 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 WorkerHubNewAssignment ¶
type WorkerHubNewAssignment struct { AssignmentId *big.Int InferenceId *big.Int Miner common.Address ExpiredAt *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubNewAssignment represents a NewAssignment event raised by the WorkerHub contract.
type WorkerHubNewAssignmentIterator ¶
type WorkerHubNewAssignmentIterator struct { Event *WorkerHubNewAssignment // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubNewAssignmentIterator is returned from FilterNewAssignment and is used to iterate over the raw logs and unpacked data for NewAssignment events raised by the WorkerHub contract.
func (*WorkerHubNewAssignmentIterator) Close ¶
func (it *WorkerHubNewAssignmentIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubNewAssignmentIterator) Error ¶
func (it *WorkerHubNewAssignmentIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubNewAssignmentIterator) Next ¶
func (it *WorkerHubNewAssignmentIterator) 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 WorkerHubNewInference ¶
type WorkerHubNewInference struct { InferenceId *big.Int Model common.Address Creator common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubNewInference represents a NewInference event raised by the WorkerHub contract.
type WorkerHubNewInferenceIterator ¶
type WorkerHubNewInferenceIterator struct { Event *WorkerHubNewInference // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubNewInferenceIterator is returned from FilterNewInference and is used to iterate over the raw logs and unpacked data for NewInference events raised by the WorkerHub contract.
func (*WorkerHubNewInferenceIterator) Close ¶
func (it *WorkerHubNewInferenceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubNewInferenceIterator) Error ¶
func (it *WorkerHubNewInferenceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubNewInferenceIterator) Next ¶
func (it *WorkerHubNewInferenceIterator) 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 WorkerHubOwnershipTransferred ¶
type WorkerHubOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubOwnershipTransferred represents a OwnershipTransferred event raised by the WorkerHub contract.
type WorkerHubOwnershipTransferredIterator ¶
type WorkerHubOwnershipTransferredIterator struct { Event *WorkerHubOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the WorkerHub contract.
func (*WorkerHubOwnershipTransferredIterator) Close ¶
func (it *WorkerHubOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubOwnershipTransferredIterator) Error ¶
func (it *WorkerHubOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubOwnershipTransferredIterator) Next ¶
func (it *WorkerHubOwnershipTransferredIterator) 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 WorkerHubPaused ¶
type WorkerHubPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubPaused represents a Paused event raised by the WorkerHub contract.
type WorkerHubPausedIterator ¶
type WorkerHubPausedIterator struct { Event *WorkerHubPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the WorkerHub contract.
func (*WorkerHubPausedIterator) Close ¶
func (it *WorkerHubPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubPausedIterator) Error ¶
func (it *WorkerHubPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubPausedIterator) Next ¶
func (it *WorkerHubPausedIterator) 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 WorkerHubPenaltyDurationUpdated ¶
type WorkerHubPenaltyDurationUpdated struct { OldDuration *big.Int NewDuration *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubPenaltyDurationUpdated represents a PenaltyDurationUpdated event raised by the WorkerHub contract.
type WorkerHubPenaltyDurationUpdatedIterator ¶
type WorkerHubPenaltyDurationUpdatedIterator struct { Event *WorkerHubPenaltyDurationUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubPenaltyDurationUpdatedIterator is returned from FilterPenaltyDurationUpdated and is used to iterate over the raw logs and unpacked data for PenaltyDurationUpdated events raised by the WorkerHub contract.
func (*WorkerHubPenaltyDurationUpdatedIterator) Close ¶
func (it *WorkerHubPenaltyDurationUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubPenaltyDurationUpdatedIterator) Error ¶
func (it *WorkerHubPenaltyDurationUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubPenaltyDurationUpdatedIterator) Next ¶
func (it *WorkerHubPenaltyDurationUpdatedIterator) 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 WorkerHubRaw ¶
type WorkerHubRaw struct {
Contract *WorkerHub // Generic contract binding to access the raw methods on
}
WorkerHubRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*WorkerHubRaw) Call ¶
func (_WorkerHub *WorkerHubRaw) 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 (*WorkerHubRaw) Transact ¶
func (_WorkerHub *WorkerHubRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WorkerHubRaw) Transfer ¶
func (_WorkerHub *WorkerHubRaw) 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 WorkerHubRestake ¶
type WorkerHubRestake struct { Miner common.Address Restake *big.Int Model common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubRestake represents a Restake event raised by the WorkerHub contract.
type WorkerHubRestakeIterator ¶
type WorkerHubRestakeIterator struct { Event *WorkerHubRestake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubRestakeIterator is returned from FilterRestake and is used to iterate over the raw logs and unpacked data for Restake events raised by the WorkerHub contract.
func (*WorkerHubRestakeIterator) Close ¶
func (it *WorkerHubRestakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubRestakeIterator) Error ¶
func (it *WorkerHubRestakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubRestakeIterator) Next ¶
func (it *WorkerHubRestakeIterator) 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 WorkerHubRewardClaim ¶
type WorkerHubRewardClaim struct { Worker common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubRewardClaim represents a RewardClaim event raised by the WorkerHub contract.
type WorkerHubRewardClaimIterator ¶
type WorkerHubRewardClaimIterator struct { Event *WorkerHubRewardClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubRewardClaimIterator is returned from FilterRewardClaim and is used to iterate over the raw logs and unpacked data for RewardClaim events raised by the WorkerHub contract.
func (*WorkerHubRewardClaimIterator) Close ¶
func (it *WorkerHubRewardClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubRewardClaimIterator) Error ¶
func (it *WorkerHubRewardClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubRewardClaimIterator) Next ¶
func (it *WorkerHubRewardClaimIterator) 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 WorkerHubRewardPerEpoch ¶
type WorkerHubRewardPerEpoch struct { OldReward *big.Int NewReward *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubRewardPerEpoch represents a RewardPerEpoch event raised by the WorkerHub contract.
type WorkerHubRewardPerEpochIterator ¶
type WorkerHubRewardPerEpochIterator struct { Event *WorkerHubRewardPerEpoch // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubRewardPerEpochIterator is returned from FilterRewardPerEpoch and is used to iterate over the raw logs and unpacked data for RewardPerEpoch events raised by the WorkerHub contract.
func (*WorkerHubRewardPerEpochIterator) Close ¶
func (it *WorkerHubRewardPerEpochIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubRewardPerEpochIterator) Error ¶
func (it *WorkerHubRewardPerEpochIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubRewardPerEpochIterator) Next ¶
func (it *WorkerHubRewardPerEpochIterator) 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 WorkerHubSession ¶
type WorkerHubSession struct { Contract *WorkerHub // 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 }
WorkerHubSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*WorkerHubSession) AssignmentNumber ¶
func (_WorkerHub *WorkerHubSession) AssignmentNumber() (*big.Int, error)
AssignmentNumber is a free data retrieval call binding the contract method 0x6973d3f2.
Solidity: function assignmentNumber() view returns(uint256)
func (*WorkerHubSession) Assignments ¶
func (_WorkerHub *WorkerHubSession) Assignments(arg0 *big.Int) (struct { InferenceId *big.Int Output []byte Worker common.Address DisapprovalCount uint8 }, error)
Assignments is a free data retrieval call binding the contract method 0x4e50c75c.
Solidity: function assignments(uint256 ) view returns(uint256 inferenceId, bytes output, address worker, uint8 disapprovalCount)
func (*WorkerHubSession) BlocksPerEpoch ¶
func (_WorkerHub *WorkerHubSession) BlocksPerEpoch() (*big.Int, error)
BlocksPerEpoch is a free data retrieval call binding the contract method 0xf0682054.
Solidity: function blocksPerEpoch() view returns(uint256)
func (*WorkerHubSession) ClaimReward ¶
func (_WorkerHub *WorkerHubSession) ClaimReward(_miner common.Address) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.
Solidity: function claimReward(address _miner) returns()
func (*WorkerHubSession) CurrentEpoch ¶
func (_WorkerHub *WorkerHubSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint40)
func (*WorkerHubSession) DisputeInfer ¶
func (_WorkerHub *WorkerHubSession) DisputeInfer(_assignmentId *big.Int) (*types.Transaction, error)
DisputeInfer is a paid mutator transaction binding the contract method 0x72422748.
Solidity: function disputeInfer(uint256 _assignmentId) returns()
func (*WorkerHubSession) DisputingTimeLimit ¶
func (_WorkerHub *WorkerHubSession) DisputingTimeLimit() (*big.Int, error)
DisputingTimeLimit is a free data retrieval call binding the contract method 0xd64f1f5f.
Solidity: function disputingTimeLimit() view returns(uint40)
func (*WorkerHubSession) DisqualificationPercentage ¶
func (_WorkerHub *WorkerHubSession) DisqualificationPercentage() (uint16, error)
DisqualificationPercentage is a free data retrieval call binding the contract method 0x4670ca47.
Solidity: function disqualificationPercentage() view returns(uint16)
func (*WorkerHubSession) FeePercentage ¶
func (_WorkerHub *WorkerHubSession) FeePercentage() (uint16, error)
FeePercentage is a free data retrieval call binding the contract method 0xa001ecdd.
Solidity: function feePercentage() view returns(uint16)
func (*WorkerHubSession) FinePercentage ¶
func (_WorkerHub *WorkerHubSession) FinePercentage() (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x74172795.
Solidity: function finePercentage() view returns(uint16)
func (*WorkerHubSession) GetInferences ¶
func (_WorkerHub *WorkerHubSession) GetInferences(_inferenceIds []*big.Int) ([]IWorkerHubInferenceInfo, error)
GetInferences is a free data retrieval call binding the contract method 0xa01253d8.
Solidity: function getInferences(uint256[] _inferenceIds) view returns((uint256,bytes,bytes,uint256,address,address,uint40,uint8,address)[])
func (*WorkerHubSession) GetMinerAddresses ¶
func (_WorkerHub *WorkerHubSession) GetMinerAddresses() ([]common.Address, error)
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*WorkerHubSession) GetMinerAddressesOfModel ¶
func (_WorkerHub *WorkerHubSession) GetMinerAddressesOfModel(_model common.Address) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0x47253baa.
Solidity: function getMinerAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubSession) GetMiners ¶
func (_WorkerHub *WorkerHubSession) GetMiners() ([]IWorkerHubWorkerInfo, error)
GetMiners is a free data retrieval call binding the contract method 0x1633da6e.
Solidity: function getMiners() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubSession) GetMiningAssignments ¶
func (_WorkerHub *WorkerHubSession) GetMiningAssignments() ([]IWorkerHubAssignmentInfo, error)
GetMiningAssignments is a free data retrieval call binding the contract method 0x37504f57.
Solidity: function getMiningAssignments() view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubSession) GetMintingAssignmentsOfInference ¶
func (_WorkerHub *WorkerHubSession) GetMintingAssignmentsOfInference(_inferenceId *big.Int) ([]IWorkerHubAssignmentInfo, error)
GetMintingAssignmentsOfInference is a free data retrieval call binding the contract method 0x5eec7b20.
Solidity: function getMintingAssignmentsOfInference(uint256 _inferenceId) view returns((uint256,uint256,uint256,bytes,address,address,uint40)[])
func (*WorkerHubSession) GetModelAddresses ¶
func (_WorkerHub *WorkerHubSession) GetModelAddresses() ([]common.Address, error)
GetModelAddresses is a free data retrieval call binding the contract method 0x9ae49cd3.
Solidity: function getModelAddresses() view returns(address[])
func (*WorkerHubSession) GetNOMiner ¶
func (_WorkerHub *WorkerHubSession) GetNOMiner() (*big.Int, error)
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*WorkerHubSession) GetValidatorAddresses ¶
func (_WorkerHub *WorkerHubSession) GetValidatorAddresses() ([]common.Address, error)
GetValidatorAddresses is a free data retrieval call binding the contract method 0xf74e921f.
Solidity: function getValidatorAddresses() view returns(address[])
func (*WorkerHubSession) GetValidatorAddressesOfModel ¶
func (_WorkerHub *WorkerHubSession) GetValidatorAddressesOfModel(_model common.Address) ([]common.Address, error)
GetValidatorAddressesOfModel is a free data retrieval call binding the contract method 0xcbaaf438.
Solidity: function getValidatorAddressesOfModel(address _model) view returns(address[])
func (*WorkerHubSession) GetValidators ¶
func (_WorkerHub *WorkerHubSession) GetValidators() ([]IWorkerHubWorkerInfo, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() view returns((address,uint256,uint256,address,uint40,uint40,uint16)[])
func (*WorkerHubSession) IncreaseMinerStake ¶
func (_WorkerHub *WorkerHubSession) IncreaseMinerStake() (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0x9fb40bac.
Solidity: function increaseMinerStake() payable returns()
func (*WorkerHubSession) IncreaseValidatorStake ¶
func (_WorkerHub *WorkerHubSession) IncreaseValidatorStake() (*types.Transaction, error)
IncreaseValidatorStake is a paid mutator transaction binding the contract method 0x62ed5c12.
Solidity: function increaseValidatorStake() payable returns()
func (*WorkerHubSession) Infer ¶
func (_WorkerHub *WorkerHubSession) Infer(_input []byte, _creator common.Address) (*types.Transaction, error)
Infer is a paid mutator transaction binding the contract method 0xd9844458.
Solidity: function infer(bytes _input, address _creator) payable returns(uint256)
func (*WorkerHubSession) InferenceNumber ¶
func (_WorkerHub *WorkerHubSession) InferenceNumber() (*big.Int, error)
InferenceNumber is a free data retrieval call binding the contract method 0xf80dca98.
Solidity: function inferenceNumber() view returns(uint256)
func (*WorkerHubSession) Initialize ¶
func (_WorkerHub *WorkerHubSession) Initialize(_treasury common.Address, _feePercentage uint16, _minerMinimumStake *big.Int, _validatorMinimumStake *big.Int, _miningTimeLimit *big.Int, _minerRequirement uint8, _blocksPerEpoch *big.Int, _rewardPerEpochBasedOnPerf *big.Int, _rewardPerEpoch *big.Int, _unstakeDelayTime *big.Int, _penaltyDuration *big.Int, _finePercentage uint16) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xab121bf3.
Solidity: function initialize(address _treasury, uint16 _feePercentage, uint256 _minerMinimumStake, uint256 _validatorMinimumStake, uint40 _miningTimeLimit, uint8 _minerRequirement, uint256 _blocksPerEpoch, uint256 _rewardPerEpochBasedOnPerf, uint256 _rewardPerEpoch, uint40 _unstakeDelayTime, uint40 _penaltyDuration, uint16 _finePercentage) returns()
func (*WorkerHubSession) IsAssignmentPending ¶
func (_WorkerHub *WorkerHubSession) IsAssignmentPending(_assignmentId *big.Int) (bool, error)
IsAssignmentPending is a free data retrieval call binding the contract method 0x57a38def.
Solidity: function isAssignmentPending(uint256 _assignmentId) view returns(bool)
func (*WorkerHubSession) JoinForMinting ¶
func (_WorkerHub *WorkerHubSession) JoinForMinting() (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*WorkerHubSession) JoinForValidating ¶
func (_WorkerHub *WorkerHubSession) JoinForValidating() (*types.Transaction, error)
JoinForValidating is a paid mutator transaction binding the contract method 0xea4a2cac.
Solidity: function joinForValidating() returns()
func (*WorkerHubSession) LastBlock ¶
func (_WorkerHub *WorkerHubSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*WorkerHubSession) MaximumTier ¶
func (_WorkerHub *WorkerHubSession) MaximumTier() (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x0716187f.
Solidity: function maximumTier() view returns(uint16)
func (*WorkerHubSession) MinerMinimumStake ¶
func (_WorkerHub *WorkerHubSession) MinerMinimumStake() (*big.Int, error)
MinerMinimumStake is a free data retrieval call binding the contract method 0x3304f456.
Solidity: function minerMinimumStake() view returns(uint256)
func (*WorkerHubSession) MinerRequirement ¶
func (_WorkerHub *WorkerHubSession) MinerRequirement() (uint8, error)
MinerRequirement is a free data retrieval call binding the contract method 0xdd9b9766.
Solidity: function minerRequirement() view returns(uint8)
func (*WorkerHubSession) MinerUnstakeRequests ¶
func (_WorkerHub *WorkerHubSession) MinerUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
MinerUnstakeRequests is a free data retrieval call binding the contract method 0x191a54d8.
Solidity: function minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubSession) Miners ¶
func (_WorkerHub *WorkerHubSession) Miners(arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0x648ec7b9.
Solidity: function miners(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*WorkerHubSession) MiningTimeLimit ¶
func (_WorkerHub *WorkerHubSession) MiningTimeLimit() (*big.Int, error)
MiningTimeLimit is a free data retrieval call binding the contract method 0x691ff7ef.
Solidity: function miningTimeLimit() view returns(uint40)
func (*WorkerHubSession) Models ¶
func (_WorkerHub *WorkerHubSession) Models(arg0 common.Address) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x54917f83.
Solidity: function models(address ) view returns(uint256 minimumFee, uint32 tier)
func (*WorkerHubSession) Multiplier ¶
Multiplier is a free data retrieval call binding the contract method 0xa9b3f8b7.
Solidity: function multiplier(address _miner) view returns(uint256)
func (*WorkerHubSession) Owner ¶
func (_WorkerHub *WorkerHubSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*WorkerHubSession) Pause ¶
func (_WorkerHub *WorkerHubSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*WorkerHubSession) Paused ¶
func (_WorkerHub *WorkerHubSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*WorkerHubSession) PenaltyDuration ¶
func (_WorkerHub *WorkerHubSession) PenaltyDuration() (*big.Int, error)
PenaltyDuration is a free data retrieval call binding the contract method 0x5aa1326c.
Solidity: function penaltyDuration() view returns(uint40)
func (*WorkerHubSession) Receive ¶
func (_WorkerHub *WorkerHubSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WorkerHubSession) RegisterMiner ¶
func (_WorkerHub *WorkerHubSession) RegisterMiner(tier uint16) (*types.Transaction, error)
RegisterMiner is a paid mutator transaction binding the contract method 0x1fdadcb7.
Solidity: function registerMiner(uint16 tier) payable returns()
func (*WorkerHubSession) RegisterModel ¶
func (_WorkerHub *WorkerHubSession) RegisterModel(_model common.Address, _tier uint16, _minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0xa8d6d3d1.
Solidity: function registerModel(address _model, uint16 _tier, uint256 _minimumFee) returns()
func (*WorkerHubSession) RegisterValidator ¶
func (_WorkerHub *WorkerHubSession) RegisterValidator(tier uint16) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x47f809e7.
Solidity: function registerValidator(uint16 tier) payable returns()
func (*WorkerHubSession) RenounceOwnership ¶
func (_WorkerHub *WorkerHubSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*WorkerHubSession) ResolveInference ¶
func (_WorkerHub *WorkerHubSession) ResolveInference(_inferenceId *big.Int) (*types.Transaction, error)
ResolveInference is a paid mutator transaction binding the contract method 0x6029e786.
Solidity: function resolveInference(uint256 _inferenceId) returns()
func (*WorkerHubSession) RestakeForMiner ¶
func (_WorkerHub *WorkerHubSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
RestakeForMiner is a paid mutator transaction binding the contract method 0x4fb9bc1e.
Solidity: function restakeForMiner(uint16 tier) returns()
func (*WorkerHubSession) RewardInEpoch ¶
func (_WorkerHub *WorkerHubSession) RewardInEpoch(arg0 *big.Int) (struct { PerfReward *big.Int EpochReward *big.Int TotalTaskCompleted *big.Int TotalMiner *big.Int }, error)
RewardInEpoch is a free data retrieval call binding the contract method 0x652ff159.
Solidity: function rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*WorkerHubSession) RewardPerEpoch ¶
func (_WorkerHub *WorkerHubSession) RewardPerEpoch() (*big.Int, error)
RewardPerEpoch is a free data retrieval call binding the contract method 0x84449a9d.
Solidity: function rewardPerEpoch() view returns(uint256)
func (*WorkerHubSession) RewardToClaim ¶
func (_WorkerHub *WorkerHubSession) RewardToClaim(_miner common.Address) (*types.Transaction, error)
RewardToClaim is a paid mutator transaction binding the contract method 0x674a63b9.
Solidity: function rewardToClaim(address _miner) returns(uint256)
func (*WorkerHubSession) SetBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubSession) SetBlocksPerEpoch(_blocks *big.Int) (*types.Transaction, error)
SetBlocksPerEpoch is a paid mutator transaction binding the contract method 0x034438b0.
Solidity: function setBlocksPerEpoch(uint256 _blocks) returns()
func (*WorkerHubSession) SetFinePercentage ¶
func (_WorkerHub *WorkerHubSession) SetFinePercentage(_finePercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 _finePercentage) returns()
func (*WorkerHubSession) SetNewRewardInEpoch ¶
func (_WorkerHub *WorkerHubSession) SetNewRewardInEpoch(_newRewardAmount *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 _newRewardAmount) returns()
func (*WorkerHubSession) SetPenaltyDuration ¶
func (_WorkerHub *WorkerHubSession) SetPenaltyDuration(_penaltyDuration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 _penaltyDuration) returns()
func (*WorkerHubSession) SetUnstakDelayTime ¶
func (_WorkerHub *WorkerHubSession) SetUnstakDelayTime(_newUnstakeDelayTime *big.Int) (*types.Transaction, error)
SetUnstakDelayTime is a paid mutator transaction binding the contract method 0x351b2b33.
Solidity: function setUnstakDelayTime(uint40 _newUnstakeDelayTime) returns()
func (*WorkerHubSession) SlashMiner ¶
func (_WorkerHub *WorkerHubSession) SlashMiner(_miner common.Address, _isFined bool) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x969ceab4.
Solidity: function slashMiner(address _miner, bool _isFined) returns()
func (*WorkerHubSession) SubmitSolution ¶
func (_WorkerHub *WorkerHubSession) SubmitSolution(_assigmentId *big.Int, _data []byte) (*types.Transaction, error)
SubmitSolution is a paid mutator transaction binding the contract method 0xe84dee6b.
Solidity: function submitSolution(uint256 _assigmentId, bytes _data) returns()
func (*WorkerHubSession) TopUpInfer ¶
func (_WorkerHub *WorkerHubSession) TopUpInfer(_inferenceId *big.Int) (*types.Transaction, error)
TopUpInfer is a paid mutator transaction binding the contract method 0xe9bd0e26.
Solidity: function topUpInfer(uint256 _inferenceId) payable returns()
func (*WorkerHubSession) TransferOwnership ¶
func (_WorkerHub *WorkerHubSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*WorkerHubSession) Treasury ¶
func (_WorkerHub *WorkerHubSession) Treasury() (common.Address, error)
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(address)
func (*WorkerHubSession) Unpause ¶
func (_WorkerHub *WorkerHubSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*WorkerHubSession) UnregisterMiner ¶
func (_WorkerHub *WorkerHubSession) UnregisterMiner() (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*WorkerHubSession) UnregisterModel ¶
func (_WorkerHub *WorkerHubSession) UnregisterModel(_model common.Address) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0xdb2dab1d.
Solidity: function unregisterModel(address _model) returns()
func (*WorkerHubSession) UnregisterValidator ¶
func (_WorkerHub *WorkerHubSession) UnregisterValidator() (*types.Transaction, error)
UnregisterValidator is a paid mutator transaction binding the contract method 0x6ca56267.
Solidity: function unregisterValidator() returns()
func (*WorkerHubSession) UnstakeDelayTime ¶
func (_WorkerHub *WorkerHubSession) UnstakeDelayTime() (*big.Int, error)
UnstakeDelayTime is a free data retrieval call binding the contract method 0xe4fefd65.
Solidity: function unstakeDelayTime() view returns(uint40)
func (*WorkerHubSession) UnstakeForMiner ¶
func (_WorkerHub *WorkerHubSession) UnstakeForMiner() (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*WorkerHubSession) UnstakeForValidator ¶
func (_WorkerHub *WorkerHubSession) UnstakeForValidator() (*types.Transaction, error)
UnstakeForValidator is a paid mutator transaction binding the contract method 0x42b093cf.
Solidity: function unstakeForValidator() returns()
func (*WorkerHubSession) UpdateMiningTimeLimit ¶
func (_WorkerHub *WorkerHubSession) UpdateMiningTimeLimit(_miningTimeLimit *big.Int) (*types.Transaction, error)
UpdateMiningTimeLimit is a paid mutator transaction binding the contract method 0x34193a4a.
Solidity: function updateMiningTimeLimit(uint40 _miningTimeLimit) returns()
func (*WorkerHubSession) UpdateModelMinimumFee ¶
func (_WorkerHub *WorkerHubSession) UpdateModelMinimumFee(_model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0xb74cd194.
Solidity: function updateModelMinimumFee(address _model, uint256 _minimumFee) returns()
func (*WorkerHubSession) UpdateModelTier ¶
func (_WorkerHub *WorkerHubSession) UpdateModelTier(_model common.Address, _tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0x0738a9bb.
Solidity: function updateModelTier(address _model, uint32 _tier) returns()
func (*WorkerHubSession) ValidatingTimeLimit ¶
func (_WorkerHub *WorkerHubSession) ValidatingTimeLimit() (*big.Int, error)
ValidatingTimeLimit is a free data retrieval call binding the contract method 0x56f2eca3.
Solidity: function validatingTimeLimit() view returns(uint40)
func (*WorkerHubSession) ValidatorDisputed ¶
func (_WorkerHub *WorkerHubSession) ValidatorDisputed(arg0 common.Address, arg1 *big.Int) (bool, error)
ValidatorDisputed is a free data retrieval call binding the contract method 0x7146ab67.
Solidity: function validatorDisputed(address , uint256 ) view returns(bool)
func (*WorkerHubSession) ValidatorMinimumStake ¶
func (_WorkerHub *WorkerHubSession) ValidatorMinimumStake() (*big.Int, error)
ValidatorMinimumStake is a free data retrieval call binding the contract method 0x412f9775.
Solidity: function validatorMinimumStake() view returns(uint256)
func (*WorkerHubSession) ValidatorUnstakeRequests ¶
func (_WorkerHub *WorkerHubSession) ValidatorUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
ValidatorUnstakeRequests is a free data retrieval call binding the contract method 0xfd3623f7.
Solidity: function validatorUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*WorkerHubSession) Validators ¶
func (_WorkerHub *WorkerHubSession) Validators(arg0 common.Address) (struct { Stake *big.Int Commitment *big.Int ModelAddress common.Address LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Validators is a free data retrieval call binding the contract method 0xfa52c7d8.
Solidity: function validators(address ) view returns(uint256 stake, uint256 commitment, address modelAddress, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*WorkerHubSession) Version ¶
func (_WorkerHub *WorkerHubSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() pure returns(string)
type WorkerHubSolutionSubmission ¶
type WorkerHubSolutionSubmission struct { Miner common.Address AssigmentId *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubSolutionSubmission represents a SolutionSubmission event raised by the WorkerHub contract.
type WorkerHubSolutionSubmissionIterator ¶
type WorkerHubSolutionSubmissionIterator struct { Event *WorkerHubSolutionSubmission // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubSolutionSubmissionIterator is returned from FilterSolutionSubmission and is used to iterate over the raw logs and unpacked data for SolutionSubmission events raised by the WorkerHub contract.
func (*WorkerHubSolutionSubmissionIterator) Close ¶
func (it *WorkerHubSolutionSubmissionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubSolutionSubmissionIterator) Error ¶
func (it *WorkerHubSolutionSubmissionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubSolutionSubmissionIterator) Next ¶
func (it *WorkerHubSolutionSubmissionIterator) 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 WorkerHubTopUpInfer ¶
type WorkerHubTopUpInfer struct { InferenceId *big.Int Creator common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubTopUpInfer represents a TopUpInfer event raised by the WorkerHub contract.
type WorkerHubTopUpInferIterator ¶
type WorkerHubTopUpInferIterator struct { Event *WorkerHubTopUpInfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubTopUpInferIterator is returned from FilterTopUpInfer and is used to iterate over the raw logs and unpacked data for TopUpInfer events raised by the WorkerHub contract.
func (*WorkerHubTopUpInferIterator) Close ¶
func (it *WorkerHubTopUpInferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubTopUpInferIterator) Error ¶
func (it *WorkerHubTopUpInferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubTopUpInferIterator) Next ¶
func (it *WorkerHubTopUpInferIterator) 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 WorkerHubTransactor ¶
type WorkerHubTransactor struct {
// contains filtered or unexported fields
}
WorkerHubTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWorkerHubTransactor ¶
func NewWorkerHubTransactor(address common.Address, transactor bind.ContractTransactor) (*WorkerHubTransactor, error)
NewWorkerHubTransactor creates a new write-only instance of WorkerHub, bound to a specific deployed contract.
func (*WorkerHubTransactor) ClaimReward ¶
func (_WorkerHub *WorkerHubTransactor) ClaimReward(opts *bind.TransactOpts, _miner common.Address) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.
Solidity: function claimReward(address _miner) returns()
func (*WorkerHubTransactor) DisputeInfer ¶
func (_WorkerHub *WorkerHubTransactor) DisputeInfer(opts *bind.TransactOpts, _assignmentId *big.Int) (*types.Transaction, error)
DisputeInfer is a paid mutator transaction binding the contract method 0x72422748.
Solidity: function disputeInfer(uint256 _assignmentId) returns()
func (*WorkerHubTransactor) IncreaseMinerStake ¶
func (_WorkerHub *WorkerHubTransactor) IncreaseMinerStake(opts *bind.TransactOpts) (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0x9fb40bac.
Solidity: function increaseMinerStake() payable returns()
func (*WorkerHubTransactor) IncreaseValidatorStake ¶
func (_WorkerHub *WorkerHubTransactor) IncreaseValidatorStake(opts *bind.TransactOpts) (*types.Transaction, error)
IncreaseValidatorStake is a paid mutator transaction binding the contract method 0x62ed5c12.
Solidity: function increaseValidatorStake() payable returns()
func (*WorkerHubTransactor) Infer ¶
func (_WorkerHub *WorkerHubTransactor) Infer(opts *bind.TransactOpts, _input []byte, _creator common.Address) (*types.Transaction, error)
Infer is a paid mutator transaction binding the contract method 0xd9844458.
Solidity: function infer(bytes _input, address _creator) payable returns(uint256)
func (*WorkerHubTransactor) Initialize ¶
func (_WorkerHub *WorkerHubTransactor) Initialize(opts *bind.TransactOpts, _treasury common.Address, _feePercentage uint16, _minerMinimumStake *big.Int, _validatorMinimumStake *big.Int, _miningTimeLimit *big.Int, _minerRequirement uint8, _blocksPerEpoch *big.Int, _rewardPerEpochBasedOnPerf *big.Int, _rewardPerEpoch *big.Int, _unstakeDelayTime *big.Int, _penaltyDuration *big.Int, _finePercentage uint16) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xab121bf3.
Solidity: function initialize(address _treasury, uint16 _feePercentage, uint256 _minerMinimumStake, uint256 _validatorMinimumStake, uint40 _miningTimeLimit, uint8 _minerRequirement, uint256 _blocksPerEpoch, uint256 _rewardPerEpochBasedOnPerf, uint256 _rewardPerEpoch, uint40 _unstakeDelayTime, uint40 _penaltyDuration, uint16 _finePercentage) returns()
func (*WorkerHubTransactor) JoinForMinting ¶
func (_WorkerHub *WorkerHubTransactor) JoinForMinting(opts *bind.TransactOpts) (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*WorkerHubTransactor) JoinForValidating ¶
func (_WorkerHub *WorkerHubTransactor) JoinForValidating(opts *bind.TransactOpts) (*types.Transaction, error)
JoinForValidating is a paid mutator transaction binding the contract method 0xea4a2cac.
Solidity: function joinForValidating() returns()
func (*WorkerHubTransactor) Pause ¶
func (_WorkerHub *WorkerHubTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*WorkerHubTransactor) Receive ¶
func (_WorkerHub *WorkerHubTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WorkerHubTransactor) RegisterMiner ¶
func (_WorkerHub *WorkerHubTransactor) RegisterMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
RegisterMiner is a paid mutator transaction binding the contract method 0x1fdadcb7.
Solidity: function registerMiner(uint16 tier) payable returns()
func (*WorkerHubTransactor) RegisterModel ¶
func (_WorkerHub *WorkerHubTransactor) RegisterModel(opts *bind.TransactOpts, _model common.Address, _tier uint16, _minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0xa8d6d3d1.
Solidity: function registerModel(address _model, uint16 _tier, uint256 _minimumFee) returns()
func (*WorkerHubTransactor) RegisterValidator ¶
func (_WorkerHub *WorkerHubTransactor) RegisterValidator(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x47f809e7.
Solidity: function registerValidator(uint16 tier) payable returns()
func (*WorkerHubTransactor) RenounceOwnership ¶
func (_WorkerHub *WorkerHubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*WorkerHubTransactor) ResolveInference ¶
func (_WorkerHub *WorkerHubTransactor) ResolveInference(opts *bind.TransactOpts, _inferenceId *big.Int) (*types.Transaction, error)
ResolveInference is a paid mutator transaction binding the contract method 0x6029e786.
Solidity: function resolveInference(uint256 _inferenceId) returns()
func (*WorkerHubTransactor) RestakeForMiner ¶
func (_WorkerHub *WorkerHubTransactor) RestakeForMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
RestakeForMiner is a paid mutator transaction binding the contract method 0x4fb9bc1e.
Solidity: function restakeForMiner(uint16 tier) returns()
func (*WorkerHubTransactor) RewardToClaim ¶
func (_WorkerHub *WorkerHubTransactor) RewardToClaim(opts *bind.TransactOpts, _miner common.Address) (*types.Transaction, error)
RewardToClaim is a paid mutator transaction binding the contract method 0x674a63b9.
Solidity: function rewardToClaim(address _miner) returns(uint256)
func (*WorkerHubTransactor) SetBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubTransactor) SetBlocksPerEpoch(opts *bind.TransactOpts, _blocks *big.Int) (*types.Transaction, error)
SetBlocksPerEpoch is a paid mutator transaction binding the contract method 0x034438b0.
Solidity: function setBlocksPerEpoch(uint256 _blocks) returns()
func (*WorkerHubTransactor) SetFinePercentage ¶
func (_WorkerHub *WorkerHubTransactor) SetFinePercentage(opts *bind.TransactOpts, _finePercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 _finePercentage) returns()
func (*WorkerHubTransactor) SetNewRewardInEpoch ¶
func (_WorkerHub *WorkerHubTransactor) SetNewRewardInEpoch(opts *bind.TransactOpts, _newRewardAmount *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 _newRewardAmount) returns()
func (*WorkerHubTransactor) SetPenaltyDuration ¶
func (_WorkerHub *WorkerHubTransactor) SetPenaltyDuration(opts *bind.TransactOpts, _penaltyDuration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 _penaltyDuration) returns()
func (*WorkerHubTransactor) SetUnstakDelayTime ¶
func (_WorkerHub *WorkerHubTransactor) SetUnstakDelayTime(opts *bind.TransactOpts, _newUnstakeDelayTime *big.Int) (*types.Transaction, error)
SetUnstakDelayTime is a paid mutator transaction binding the contract method 0x351b2b33.
Solidity: function setUnstakDelayTime(uint40 _newUnstakeDelayTime) returns()
func (*WorkerHubTransactor) SlashMiner ¶
func (_WorkerHub *WorkerHubTransactor) SlashMiner(opts *bind.TransactOpts, _miner common.Address, _isFined bool) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x969ceab4.
Solidity: function slashMiner(address _miner, bool _isFined) returns()
func (*WorkerHubTransactor) SubmitSolution ¶
func (_WorkerHub *WorkerHubTransactor) SubmitSolution(opts *bind.TransactOpts, _assigmentId *big.Int, _data []byte) (*types.Transaction, error)
SubmitSolution is a paid mutator transaction binding the contract method 0xe84dee6b.
Solidity: function submitSolution(uint256 _assigmentId, bytes _data) returns()
func (*WorkerHubTransactor) TopUpInfer ¶
func (_WorkerHub *WorkerHubTransactor) TopUpInfer(opts *bind.TransactOpts, _inferenceId *big.Int) (*types.Transaction, error)
TopUpInfer is a paid mutator transaction binding the contract method 0xe9bd0e26.
Solidity: function topUpInfer(uint256 _inferenceId) payable returns()
func (*WorkerHubTransactor) TransferOwnership ¶
func (_WorkerHub *WorkerHubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*WorkerHubTransactor) Unpause ¶
func (_WorkerHub *WorkerHubTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*WorkerHubTransactor) UnregisterMiner ¶
func (_WorkerHub *WorkerHubTransactor) UnregisterMiner(opts *bind.TransactOpts) (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*WorkerHubTransactor) UnregisterModel ¶
func (_WorkerHub *WorkerHubTransactor) UnregisterModel(opts *bind.TransactOpts, _model common.Address) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0xdb2dab1d.
Solidity: function unregisterModel(address _model) returns()
func (*WorkerHubTransactor) UnregisterValidator ¶
func (_WorkerHub *WorkerHubTransactor) UnregisterValidator(opts *bind.TransactOpts) (*types.Transaction, error)
UnregisterValidator is a paid mutator transaction binding the contract method 0x6ca56267.
Solidity: function unregisterValidator() returns()
func (*WorkerHubTransactor) UnstakeForMiner ¶
func (_WorkerHub *WorkerHubTransactor) UnstakeForMiner(opts *bind.TransactOpts) (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*WorkerHubTransactor) UnstakeForValidator ¶
func (_WorkerHub *WorkerHubTransactor) UnstakeForValidator(opts *bind.TransactOpts) (*types.Transaction, error)
UnstakeForValidator is a paid mutator transaction binding the contract method 0x42b093cf.
Solidity: function unstakeForValidator() returns()
func (*WorkerHubTransactor) UpdateMiningTimeLimit ¶
func (_WorkerHub *WorkerHubTransactor) UpdateMiningTimeLimit(opts *bind.TransactOpts, _miningTimeLimit *big.Int) (*types.Transaction, error)
UpdateMiningTimeLimit is a paid mutator transaction binding the contract method 0x34193a4a.
Solidity: function updateMiningTimeLimit(uint40 _miningTimeLimit) returns()
func (*WorkerHubTransactor) UpdateModelMinimumFee ¶
func (_WorkerHub *WorkerHubTransactor) UpdateModelMinimumFee(opts *bind.TransactOpts, _model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0xb74cd194.
Solidity: function updateModelMinimumFee(address _model, uint256 _minimumFee) returns()
func (*WorkerHubTransactor) UpdateModelTier ¶
func (_WorkerHub *WorkerHubTransactor) UpdateModelTier(opts *bind.TransactOpts, _model common.Address, _tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0x0738a9bb.
Solidity: function updateModelTier(address _model, uint32 _tier) returns()
type WorkerHubTransactorRaw ¶
type WorkerHubTransactorRaw struct {
Contract *WorkerHubTransactor // Generic write-only contract binding to access the raw methods on
}
WorkerHubTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WorkerHubTransactorRaw) Transact ¶
func (_WorkerHub *WorkerHubTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WorkerHubTransactorRaw) Transfer ¶
func (_WorkerHub *WorkerHubTransactorRaw) 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 WorkerHubTransactorSession ¶
type WorkerHubTransactorSession struct { Contract *WorkerHubTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WorkerHubTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*WorkerHubTransactorSession) ClaimReward ¶
func (_WorkerHub *WorkerHubTransactorSession) ClaimReward(_miner common.Address) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.
Solidity: function claimReward(address _miner) returns()
func (*WorkerHubTransactorSession) DisputeInfer ¶
func (_WorkerHub *WorkerHubTransactorSession) DisputeInfer(_assignmentId *big.Int) (*types.Transaction, error)
DisputeInfer is a paid mutator transaction binding the contract method 0x72422748.
Solidity: function disputeInfer(uint256 _assignmentId) returns()
func (*WorkerHubTransactorSession) IncreaseMinerStake ¶
func (_WorkerHub *WorkerHubTransactorSession) IncreaseMinerStake() (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0x9fb40bac.
Solidity: function increaseMinerStake() payable returns()
func (*WorkerHubTransactorSession) IncreaseValidatorStake ¶
func (_WorkerHub *WorkerHubTransactorSession) IncreaseValidatorStake() (*types.Transaction, error)
IncreaseValidatorStake is a paid mutator transaction binding the contract method 0x62ed5c12.
Solidity: function increaseValidatorStake() payable returns()
func (*WorkerHubTransactorSession) Infer ¶
func (_WorkerHub *WorkerHubTransactorSession) Infer(_input []byte, _creator common.Address) (*types.Transaction, error)
Infer is a paid mutator transaction binding the contract method 0xd9844458.
Solidity: function infer(bytes _input, address _creator) payable returns(uint256)
func (*WorkerHubTransactorSession) Initialize ¶
func (_WorkerHub *WorkerHubTransactorSession) Initialize(_treasury common.Address, _feePercentage uint16, _minerMinimumStake *big.Int, _validatorMinimumStake *big.Int, _miningTimeLimit *big.Int, _minerRequirement uint8, _blocksPerEpoch *big.Int, _rewardPerEpochBasedOnPerf *big.Int, _rewardPerEpoch *big.Int, _unstakeDelayTime *big.Int, _penaltyDuration *big.Int, _finePercentage uint16) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xab121bf3.
Solidity: function initialize(address _treasury, uint16 _feePercentage, uint256 _minerMinimumStake, uint256 _validatorMinimumStake, uint40 _miningTimeLimit, uint8 _minerRequirement, uint256 _blocksPerEpoch, uint256 _rewardPerEpochBasedOnPerf, uint256 _rewardPerEpoch, uint40 _unstakeDelayTime, uint40 _penaltyDuration, uint16 _finePercentage) returns()
func (*WorkerHubTransactorSession) JoinForMinting ¶
func (_WorkerHub *WorkerHubTransactorSession) JoinForMinting() (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*WorkerHubTransactorSession) JoinForValidating ¶
func (_WorkerHub *WorkerHubTransactorSession) JoinForValidating() (*types.Transaction, error)
JoinForValidating is a paid mutator transaction binding the contract method 0xea4a2cac.
Solidity: function joinForValidating() returns()
func (*WorkerHubTransactorSession) Pause ¶
func (_WorkerHub *WorkerHubTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*WorkerHubTransactorSession) Receive ¶
func (_WorkerHub *WorkerHubTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WorkerHubTransactorSession) RegisterMiner ¶
func (_WorkerHub *WorkerHubTransactorSession) RegisterMiner(tier uint16) (*types.Transaction, error)
RegisterMiner is a paid mutator transaction binding the contract method 0x1fdadcb7.
Solidity: function registerMiner(uint16 tier) payable returns()
func (*WorkerHubTransactorSession) RegisterModel ¶
func (_WorkerHub *WorkerHubTransactorSession) RegisterModel(_model common.Address, _tier uint16, _minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0xa8d6d3d1.
Solidity: function registerModel(address _model, uint16 _tier, uint256 _minimumFee) returns()
func (*WorkerHubTransactorSession) RegisterValidator ¶
func (_WorkerHub *WorkerHubTransactorSession) RegisterValidator(tier uint16) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x47f809e7.
Solidity: function registerValidator(uint16 tier) payable returns()
func (*WorkerHubTransactorSession) RenounceOwnership ¶
func (_WorkerHub *WorkerHubTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*WorkerHubTransactorSession) ResolveInference ¶
func (_WorkerHub *WorkerHubTransactorSession) ResolveInference(_inferenceId *big.Int) (*types.Transaction, error)
ResolveInference is a paid mutator transaction binding the contract method 0x6029e786.
Solidity: function resolveInference(uint256 _inferenceId) returns()
func (*WorkerHubTransactorSession) RestakeForMiner ¶
func (_WorkerHub *WorkerHubTransactorSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
RestakeForMiner is a paid mutator transaction binding the contract method 0x4fb9bc1e.
Solidity: function restakeForMiner(uint16 tier) returns()
func (*WorkerHubTransactorSession) RewardToClaim ¶
func (_WorkerHub *WorkerHubTransactorSession) RewardToClaim(_miner common.Address) (*types.Transaction, error)
RewardToClaim is a paid mutator transaction binding the contract method 0x674a63b9.
Solidity: function rewardToClaim(address _miner) returns(uint256)
func (*WorkerHubTransactorSession) SetBlocksPerEpoch ¶
func (_WorkerHub *WorkerHubTransactorSession) SetBlocksPerEpoch(_blocks *big.Int) (*types.Transaction, error)
SetBlocksPerEpoch is a paid mutator transaction binding the contract method 0x034438b0.
Solidity: function setBlocksPerEpoch(uint256 _blocks) returns()
func (*WorkerHubTransactorSession) SetFinePercentage ¶
func (_WorkerHub *WorkerHubTransactorSession) SetFinePercentage(_finePercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 _finePercentage) returns()
func (*WorkerHubTransactorSession) SetNewRewardInEpoch ¶
func (_WorkerHub *WorkerHubTransactorSession) SetNewRewardInEpoch(_newRewardAmount *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 _newRewardAmount) returns()
func (*WorkerHubTransactorSession) SetPenaltyDuration ¶
func (_WorkerHub *WorkerHubTransactorSession) SetPenaltyDuration(_penaltyDuration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 _penaltyDuration) returns()
func (*WorkerHubTransactorSession) SetUnstakDelayTime ¶
func (_WorkerHub *WorkerHubTransactorSession) SetUnstakDelayTime(_newUnstakeDelayTime *big.Int) (*types.Transaction, error)
SetUnstakDelayTime is a paid mutator transaction binding the contract method 0x351b2b33.
Solidity: function setUnstakDelayTime(uint40 _newUnstakeDelayTime) returns()
func (*WorkerHubTransactorSession) SlashMiner ¶
func (_WorkerHub *WorkerHubTransactorSession) SlashMiner(_miner common.Address, _isFined bool) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x969ceab4.
Solidity: function slashMiner(address _miner, bool _isFined) returns()
func (*WorkerHubTransactorSession) SubmitSolution ¶
func (_WorkerHub *WorkerHubTransactorSession) SubmitSolution(_assigmentId *big.Int, _data []byte) (*types.Transaction, error)
SubmitSolution is a paid mutator transaction binding the contract method 0xe84dee6b.
Solidity: function submitSolution(uint256 _assigmentId, bytes _data) returns()
func (*WorkerHubTransactorSession) TopUpInfer ¶
func (_WorkerHub *WorkerHubTransactorSession) TopUpInfer(_inferenceId *big.Int) (*types.Transaction, error)
TopUpInfer is a paid mutator transaction binding the contract method 0xe9bd0e26.
Solidity: function topUpInfer(uint256 _inferenceId) payable returns()
func (*WorkerHubTransactorSession) TransferOwnership ¶
func (_WorkerHub *WorkerHubTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*WorkerHubTransactorSession) Unpause ¶
func (_WorkerHub *WorkerHubTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*WorkerHubTransactorSession) UnregisterMiner ¶
func (_WorkerHub *WorkerHubTransactorSession) UnregisterMiner() (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*WorkerHubTransactorSession) UnregisterModel ¶
func (_WorkerHub *WorkerHubTransactorSession) UnregisterModel(_model common.Address) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0xdb2dab1d.
Solidity: function unregisterModel(address _model) returns()
func (*WorkerHubTransactorSession) UnregisterValidator ¶
func (_WorkerHub *WorkerHubTransactorSession) UnregisterValidator() (*types.Transaction, error)
UnregisterValidator is a paid mutator transaction binding the contract method 0x6ca56267.
Solidity: function unregisterValidator() returns()
func (*WorkerHubTransactorSession) UnstakeForMiner ¶
func (_WorkerHub *WorkerHubTransactorSession) UnstakeForMiner() (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*WorkerHubTransactorSession) UnstakeForValidator ¶
func (_WorkerHub *WorkerHubTransactorSession) UnstakeForValidator() (*types.Transaction, error)
UnstakeForValidator is a paid mutator transaction binding the contract method 0x42b093cf.
Solidity: function unstakeForValidator() returns()
func (*WorkerHubTransactorSession) UpdateMiningTimeLimit ¶
func (_WorkerHub *WorkerHubTransactorSession) UpdateMiningTimeLimit(_miningTimeLimit *big.Int) (*types.Transaction, error)
UpdateMiningTimeLimit is a paid mutator transaction binding the contract method 0x34193a4a.
Solidity: function updateMiningTimeLimit(uint40 _miningTimeLimit) returns()
func (*WorkerHubTransactorSession) UpdateModelMinimumFee ¶
func (_WorkerHub *WorkerHubTransactorSession) UpdateModelMinimumFee(_model common.Address, _minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0xb74cd194.
Solidity: function updateModelMinimumFee(address _model, uint256 _minimumFee) returns()
func (*WorkerHubTransactorSession) UpdateModelTier ¶
func (_WorkerHub *WorkerHubTransactorSession) UpdateModelTier(_model common.Address, _tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0x0738a9bb.
Solidity: function updateModelTier(address _model, uint32 _tier) returns()
type WorkerHubTransferFee ¶
type WorkerHubTransferFee struct { Miner common.Address MingingFee *big.Int Treasury common.Address ProtocolFee *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubTransferFee represents a TransferFee event raised by the WorkerHub contract.
type WorkerHubTransferFeeIterator ¶
type WorkerHubTransferFeeIterator struct { Event *WorkerHubTransferFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubTransferFeeIterator is returned from FilterTransferFee and is used to iterate over the raw logs and unpacked data for TransferFee events raised by the WorkerHub contract.
func (*WorkerHubTransferFeeIterator) Close ¶
func (it *WorkerHubTransferFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubTransferFeeIterator) Error ¶
func (it *WorkerHubTransferFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubTransferFeeIterator) Next ¶
func (it *WorkerHubTransferFeeIterator) 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 WorkerHubUnpaused ¶
type WorkerHubUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubUnpaused represents a Unpaused event raised by the WorkerHub contract.
type WorkerHubUnpausedIterator ¶
type WorkerHubUnpausedIterator struct { Event *WorkerHubUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the WorkerHub contract.
func (*WorkerHubUnpausedIterator) Close ¶
func (it *WorkerHubUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubUnpausedIterator) Error ¶
func (it *WorkerHubUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubUnpausedIterator) Next ¶
func (it *WorkerHubUnpausedIterator) 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 WorkerHubUnstakeDelayTime ¶
type WorkerHubUnstakeDelayTime struct { OldDelayTime *big.Int NewDelayTime *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubUnstakeDelayTime represents a UnstakeDelayTime event raised by the WorkerHub contract.
type WorkerHubUnstakeDelayTimeIterator ¶
type WorkerHubUnstakeDelayTimeIterator struct { Event *WorkerHubUnstakeDelayTime // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubUnstakeDelayTimeIterator is returned from FilterUnstakeDelayTime and is used to iterate over the raw logs and unpacked data for UnstakeDelayTime events raised by the WorkerHub contract.
func (*WorkerHubUnstakeDelayTimeIterator) Close ¶
func (it *WorkerHubUnstakeDelayTimeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubUnstakeDelayTimeIterator) Error ¶
func (it *WorkerHubUnstakeDelayTimeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubUnstakeDelayTimeIterator) Next ¶
func (it *WorkerHubUnstakeDelayTimeIterator) 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 WorkerHubValidatorExtraStake ¶
type WorkerHubValidatorExtraStake struct { Validator common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubValidatorExtraStake represents a ValidatorExtraStake event raised by the WorkerHub contract.
type WorkerHubValidatorExtraStakeIterator ¶
type WorkerHubValidatorExtraStakeIterator struct { Event *WorkerHubValidatorExtraStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubValidatorExtraStakeIterator is returned from FilterValidatorExtraStake and is used to iterate over the raw logs and unpacked data for ValidatorExtraStake events raised by the WorkerHub contract.
func (*WorkerHubValidatorExtraStakeIterator) Close ¶
func (it *WorkerHubValidatorExtraStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubValidatorExtraStakeIterator) Error ¶
func (it *WorkerHubValidatorExtraStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubValidatorExtraStakeIterator) Next ¶
func (it *WorkerHubValidatorExtraStakeIterator) 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 WorkerHubValidatorJoin ¶
type WorkerHubValidatorJoin struct { Validator common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubValidatorJoin represents a ValidatorJoin event raised by the WorkerHub contract.
type WorkerHubValidatorJoinIterator ¶
type WorkerHubValidatorJoinIterator struct { Event *WorkerHubValidatorJoin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubValidatorJoinIterator is returned from FilterValidatorJoin and is used to iterate over the raw logs and unpacked data for ValidatorJoin events raised by the WorkerHub contract.
func (*WorkerHubValidatorJoinIterator) Close ¶
func (it *WorkerHubValidatorJoinIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubValidatorJoinIterator) Error ¶
func (it *WorkerHubValidatorJoinIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubValidatorJoinIterator) Next ¶
func (it *WorkerHubValidatorJoinIterator) 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 WorkerHubValidatorRegistration ¶
type WorkerHubValidatorRegistration struct { Validator common.Address Tier uint16 Value *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubValidatorRegistration represents a ValidatorRegistration event raised by the WorkerHub contract.
type WorkerHubValidatorRegistrationIterator ¶
type WorkerHubValidatorRegistrationIterator struct { Event *WorkerHubValidatorRegistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubValidatorRegistrationIterator is returned from FilterValidatorRegistration and is used to iterate over the raw logs and unpacked data for ValidatorRegistration events raised by the WorkerHub contract.
func (*WorkerHubValidatorRegistrationIterator) Close ¶
func (it *WorkerHubValidatorRegistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubValidatorRegistrationIterator) Error ¶
func (it *WorkerHubValidatorRegistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubValidatorRegistrationIterator) Next ¶
func (it *WorkerHubValidatorRegistrationIterator) 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 WorkerHubValidatorUnregistration ¶
type WorkerHubValidatorUnregistration struct { Validator common.Address Raw types.Log // Blockchain specific contextual infos }
WorkerHubValidatorUnregistration represents a ValidatorUnregistration event raised by the WorkerHub contract.
type WorkerHubValidatorUnregistrationIterator ¶
type WorkerHubValidatorUnregistrationIterator struct { Event *WorkerHubValidatorUnregistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubValidatorUnregistrationIterator is returned from FilterValidatorUnregistration and is used to iterate over the raw logs and unpacked data for ValidatorUnregistration events raised by the WorkerHub contract.
func (*WorkerHubValidatorUnregistrationIterator) Close ¶
func (it *WorkerHubValidatorUnregistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubValidatorUnregistrationIterator) Error ¶
func (it *WorkerHubValidatorUnregistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubValidatorUnregistrationIterator) Next ¶
func (it *WorkerHubValidatorUnregistrationIterator) 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 WorkerHubValidatorUnstake ¶
type WorkerHubValidatorUnstake struct { Validator common.Address Stake *big.Int Raw types.Log // Blockchain specific contextual infos }
WorkerHubValidatorUnstake represents a ValidatorUnstake event raised by the WorkerHub contract.
type WorkerHubValidatorUnstakeIterator ¶
type WorkerHubValidatorUnstakeIterator struct { Event *WorkerHubValidatorUnstake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WorkerHubValidatorUnstakeIterator is returned from FilterValidatorUnstake and is used to iterate over the raw logs and unpacked data for ValidatorUnstake events raised by the WorkerHub contract.
func (*WorkerHubValidatorUnstakeIterator) Close ¶
func (it *WorkerHubValidatorUnstakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorkerHubValidatorUnstakeIterator) Error ¶
func (it *WorkerHubValidatorUnstakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorkerHubValidatorUnstakeIterator) Next ¶
func (it *WorkerHubValidatorUnstakeIterator) 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.