Documentation
¶
Index ¶
- Variables
- type GPUManager
- type GPUManagerBlocksPerEpoch
- type GPUManagerBlocksPerEpochIterator
- type GPUManagerCaller
- func (_GPUManager *GPUManagerCaller) BlocksPerEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) FinePercentage(opts *bind.CallOpts) (uint16, error)
- func (_GPUManager *GPUManagerCaller) GetAllMinerUnstakeRequests(opts *bind.CallOpts) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCaller) GetMinFeeToUse(opts *bind.CallOpts, modelId uint32) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) GetMinerAddresses(opts *bind.CallOpts) ([]common.Address, error)
- func (_GPUManager *GPUManagerCaller) GetMinerAddressesOfModel(opts *bind.CallOpts, modelId uint32) ([]common.Address, error)
- func (_GPUManager *GPUManagerCaller) GetModelIds(opts *bind.CallOpts) ([]*big.Int, error)
- func (_GPUManager *GPUManagerCaller) GetModelInfo(opts *bind.CallOpts, modelId uint32) (IGPUManagerModel, error)
- func (_GPUManager *GPUManagerCaller) GetNOMiner(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) IsActiveModel(opts *bind.CallOpts, modelId uint32) (bool, error)
- func (_GPUManager *GPUManagerCaller) LastBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) MaximumTier(opts *bind.CallOpts) (uint16, error)
- func (_GPUManager *GPUManagerCaller) MinFeeToUse(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) MinerMinimumStake(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) MinerUnstakeRequests(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCaller) Miners(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCaller) ModelCollection(opts *bind.CallOpts) (common.Address, error)
- func (_GPUManager *GPUManagerCaller) Models(opts *bind.CallOpts, arg0 uint32) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCaller) Multiplier(opts *bind.CallOpts, miner common.Address) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_GPUManager *GPUManagerCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_GPUManager *GPUManagerCaller) PenaltyDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) PromptScheduler(opts *bind.CallOpts) (common.Address, error)
- func (_GPUManager *GPUManagerCaller) RewardInEpoch(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCaller) RewardPerEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) Treasury(opts *bind.CallOpts) (common.Address, error)
- func (_GPUManager *GPUManagerCaller) UnstakeDelayTime(opts *bind.CallOpts) (*big.Int, error)
- func (_GPUManager *GPUManagerCaller) WEAIToken(opts *bind.CallOpts) (common.Address, error)
- type GPUManagerCallerRaw
- type GPUManagerCallerSession
- func (_GPUManager *GPUManagerCallerSession) BlocksPerEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) CurrentEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) FinePercentage() (uint16, error)
- func (_GPUManager *GPUManagerCallerSession) GetAllMinerUnstakeRequests() (struct{ ... }, error)
- func (_GPUManager *GPUManagerCallerSession) GetMinFeeToUse(modelId uint32) (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) GetMinerAddresses() ([]common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) GetMinerAddressesOfModel(modelId uint32) ([]common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) GetModelIds() ([]*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) GetModelInfo(modelId uint32) (IGPUManagerModel, error)
- func (_GPUManager *GPUManagerCallerSession) GetNOMiner() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) IsActiveModel(modelId uint32) (bool, error)
- func (_GPUManager *GPUManagerCallerSession) LastBlock() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) MaximumTier() (uint16, error)
- func (_GPUManager *GPUManagerCallerSession) MinFeeToUse() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) MinerMinimumStake() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) MinerUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCallerSession) Miners(arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCallerSession) ModelCollection() (common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) Models(arg0 uint32) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCallerSession) Multiplier(miner common.Address) (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) Owner() (common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) Paused() (bool, error)
- func (_GPUManager *GPUManagerCallerSession) PenaltyDuration() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) PromptScheduler() (common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) RewardInEpoch(arg0 *big.Int) (struct{ ... }, error)
- func (_GPUManager *GPUManagerCallerSession) RewardPerEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) Treasury() (common.Address, error)
- func (_GPUManager *GPUManagerCallerSession) UnstakeDelayTime() (*big.Int, error)
- func (_GPUManager *GPUManagerCallerSession) WEAIToken() (common.Address, error)
- type GPUManagerFilterer
- func (_GPUManager *GPUManagerFilterer) FilterBlocksPerEpoch(opts *bind.FilterOpts) (*GPUManagerBlocksPerEpochIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterFinePercentageUpdated(opts *bind.FilterOpts) (*GPUManagerFinePercentageUpdatedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterFraudulentMinerPenalized(opts *bind.FilterOpts, miner []common.Address, modelId []uint32, ...) (*GPUManagerFraudulentMinerPenalizedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*GPUManagerInitializedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinFeeToUseUpdated(opts *bind.FilterOpts) (*GPUManagerMinFeeToUseUpdatedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerDeactivated(opts *bind.FilterOpts, miner []common.Address, modelId []uint32) (*GPUManagerMinerDeactivatedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerExtraStake(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerExtraStakeIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerJoin(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerJoinIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerRegistration(opts *bind.FilterOpts, miner []common.Address, tier []uint16) (*GPUManagerMinerRegistrationIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerUnregistration(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerUnregistrationIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterMinerUnstake(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerUnstakeIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterModelMinimumFeeUpdate(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelMinimumFeeUpdateIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterModelRegistration(opts *bind.FilterOpts, modelId []uint32, tier []uint16) (*GPUManagerModelRegistrationIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterModelTierUpdate(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelTierUpdateIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterModelUnregistration(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelUnregistrationIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*GPUManagerOwnershipTransferredIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterPaused(opts *bind.FilterOpts) (*GPUManagerPausedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterPenaltyDurationUpdated(opts *bind.FilterOpts) (*GPUManagerPenaltyDurationUpdatedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterRestake(opts *bind.FilterOpts, miner []common.Address, modelId []uint32) (*GPUManagerRestakeIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterRewardClaim(opts *bind.FilterOpts, worker []common.Address) (*GPUManagerRewardClaimIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterRewardPerEpoch(opts *bind.FilterOpts) (*GPUManagerRewardPerEpochIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterUnpaused(opts *bind.FilterOpts) (*GPUManagerUnpausedIterator, error)
- func (_GPUManager *GPUManagerFilterer) FilterUnstakeDelayTime(opts *bind.FilterOpts) (*GPUManagerUnstakeDelayTimeIterator, error)
- func (_GPUManager *GPUManagerFilterer) ParseBlocksPerEpoch(log types.Log) (*GPUManagerBlocksPerEpoch, error)
- func (_GPUManager *GPUManagerFilterer) ParseFinePercentageUpdated(log types.Log) (*GPUManagerFinePercentageUpdated, error)
- func (_GPUManager *GPUManagerFilterer) ParseFraudulentMinerPenalized(log types.Log) (*GPUManagerFraudulentMinerPenalized, error)
- func (_GPUManager *GPUManagerFilterer) ParseInitialized(log types.Log) (*GPUManagerInitialized, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinFeeToUseUpdated(log types.Log) (*GPUManagerMinFeeToUseUpdated, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerDeactivated(log types.Log) (*GPUManagerMinerDeactivated, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerExtraStake(log types.Log) (*GPUManagerMinerExtraStake, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerJoin(log types.Log) (*GPUManagerMinerJoin, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerRegistration(log types.Log) (*GPUManagerMinerRegistration, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerUnregistration(log types.Log) (*GPUManagerMinerUnregistration, error)
- func (_GPUManager *GPUManagerFilterer) ParseMinerUnstake(log types.Log) (*GPUManagerMinerUnstake, error)
- func (_GPUManager *GPUManagerFilterer) ParseModelMinimumFeeUpdate(log types.Log) (*GPUManagerModelMinimumFeeUpdate, error)
- func (_GPUManager *GPUManagerFilterer) ParseModelRegistration(log types.Log) (*GPUManagerModelRegistration, error)
- func (_GPUManager *GPUManagerFilterer) ParseModelTierUpdate(log types.Log) (*GPUManagerModelTierUpdate, error)
- func (_GPUManager *GPUManagerFilterer) ParseModelUnregistration(log types.Log) (*GPUManagerModelUnregistration, error)
- func (_GPUManager *GPUManagerFilterer) ParseOwnershipTransferred(log types.Log) (*GPUManagerOwnershipTransferred, error)
- func (_GPUManager *GPUManagerFilterer) ParsePaused(log types.Log) (*GPUManagerPaused, error)
- func (_GPUManager *GPUManagerFilterer) ParsePenaltyDurationUpdated(log types.Log) (*GPUManagerPenaltyDurationUpdated, error)
- func (_GPUManager *GPUManagerFilterer) ParseRestake(log types.Log) (*GPUManagerRestake, error)
- func (_GPUManager *GPUManagerFilterer) ParseRewardClaim(log types.Log) (*GPUManagerRewardClaim, error)
- func (_GPUManager *GPUManagerFilterer) ParseRewardPerEpoch(log types.Log) (*GPUManagerRewardPerEpoch, error)
- func (_GPUManager *GPUManagerFilterer) ParseUnpaused(log types.Log) (*GPUManagerUnpaused, error)
- func (_GPUManager *GPUManagerFilterer) ParseUnstakeDelayTime(log types.Log) (*GPUManagerUnstakeDelayTime, error)
- func (_GPUManager *GPUManagerFilterer) WatchBlocksPerEpoch(opts *bind.WatchOpts, sink chan<- *GPUManagerBlocksPerEpoch) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchFinePercentageUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerFinePercentageUpdated) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchFraudulentMinerPenalized(opts *bind.WatchOpts, sink chan<- *GPUManagerFraudulentMinerPenalized, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *GPUManagerInitialized) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinFeeToUseUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerMinFeeToUseUpdated) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerDeactivated(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerDeactivated, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerExtraStake(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerExtraStake, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerJoin(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerJoin, miner []common.Address) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerRegistration(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerRegistration, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerUnregistration(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerUnregistration, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchMinerUnstake(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerUnstake, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchModelMinimumFeeUpdate(opts *bind.WatchOpts, sink chan<- *GPUManagerModelMinimumFeeUpdate, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchModelRegistration(opts *bind.WatchOpts, sink chan<- *GPUManagerModelRegistration, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchModelTierUpdate(opts *bind.WatchOpts, sink chan<- *GPUManagerModelTierUpdate, modelId []uint32) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchModelUnregistration(opts *bind.WatchOpts, sink chan<- *GPUManagerModelUnregistration, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GPUManagerOwnershipTransferred, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *GPUManagerPaused) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchPenaltyDurationUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerPenaltyDurationUpdated) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchRestake(opts *bind.WatchOpts, sink chan<- *GPUManagerRestake, miner []common.Address, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchRewardClaim(opts *bind.WatchOpts, sink chan<- *GPUManagerRewardClaim, ...) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchRewardPerEpoch(opts *bind.WatchOpts, sink chan<- *GPUManagerRewardPerEpoch) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *GPUManagerUnpaused) (event.Subscription, error)
- func (_GPUManager *GPUManagerFilterer) WatchUnstakeDelayTime(opts *bind.WatchOpts, sink chan<- *GPUManagerUnstakeDelayTime) (event.Subscription, error)
- type GPUManagerFinePercentageUpdated
- type GPUManagerFinePercentageUpdatedIterator
- type GPUManagerFraudulentMinerPenalized
- type GPUManagerFraudulentMinerPenalizedIterator
- type GPUManagerInitialized
- type GPUManagerInitializedIterator
- type GPUManagerMinFeeToUseUpdated
- type GPUManagerMinFeeToUseUpdatedIterator
- type GPUManagerMinerDeactivated
- type GPUManagerMinerDeactivatedIterator
- type GPUManagerMinerExtraStake
- type GPUManagerMinerExtraStakeIterator
- type GPUManagerMinerJoin
- type GPUManagerMinerJoinIterator
- type GPUManagerMinerRegistration
- type GPUManagerMinerRegistrationIterator
- type GPUManagerMinerUnregistration
- type GPUManagerMinerUnregistrationIterator
- type GPUManagerMinerUnstake
- type GPUManagerMinerUnstakeIterator
- type GPUManagerModelMinimumFeeUpdate
- type GPUManagerModelMinimumFeeUpdateIterator
- type GPUManagerModelRegistration
- type GPUManagerModelRegistrationIterator
- type GPUManagerModelTierUpdate
- type GPUManagerModelTierUpdateIterator
- type GPUManagerModelUnregistration
- type GPUManagerModelUnregistrationIterator
- type GPUManagerOwnershipTransferred
- type GPUManagerOwnershipTransferredIterator
- type GPUManagerPaused
- type GPUManagerPausedIterator
- type GPUManagerPenaltyDurationUpdated
- type GPUManagerPenaltyDurationUpdatedIterator
- type GPUManagerRaw
- func (_GPUManager *GPUManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_GPUManager *GPUManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_GPUManager *GPUManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GPUManagerRestake
- type GPUManagerRestakeIterator
- type GPUManagerRewardClaim
- type GPUManagerRewardClaimIterator
- type GPUManagerRewardPerEpoch
- type GPUManagerRewardPerEpochIterator
- type GPUManagerSession
- func (_GPUManager *GPUManagerSession) BlocksPerEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) ClaimReward(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) CurrentEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) FinePercentage() (uint16, error)
- func (_GPUManager *GPUManagerSession) ForceChangeModelForMiner(miner common.Address, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) GetAllMinerUnstakeRequests() (struct{ ... }, error)
- func (_GPUManager *GPUManagerSession) GetMinFeeToUse(modelId uint32) (*big.Int, error)
- func (_GPUManager *GPUManagerSession) GetMinerAddresses() ([]common.Address, error)
- func (_GPUManager *GPUManagerSession) GetMinerAddressesOfModel(modelId uint32) ([]common.Address, error)
- func (_GPUManager *GPUManagerSession) GetModelIds() ([]*big.Int, error)
- func (_GPUManager *GPUManagerSession) GetModelInfo(modelId uint32) (IGPUManagerModel, error)
- func (_GPUManager *GPUManagerSession) GetNOMiner() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) IncreaseMinerStake(wEAIAmt *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) Initialize(wEAIToken_ common.Address, modelCollection_ common.Address, ...) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) IsActiveModel(modelId uint32) (bool, error)
- func (_GPUManager *GPUManagerSession) JoinForMinting() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) LastBlock() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) MaximumTier() (uint16, error)
- func (_GPUManager *GPUManagerSession) MinFeeToUse() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) MinerMinimumStake() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) MinerUnstakeRequests(arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerSession) Miners(arg0 common.Address) (struct{ ... }, error)
- func (_GPUManager *GPUManagerSession) ModelCollection() (common.Address, error)
- func (_GPUManager *GPUManagerSession) Models(arg0 uint32) (struct{ ... }, error)
- func (_GPUManager *GPUManagerSession) Multiplier(miner common.Address) (*big.Int, error)
- func (_GPUManager *GPUManagerSession) Owner() (common.Address, error)
- func (_GPUManager *GPUManagerSession) Paused() (bool, error)
- func (_GPUManager *GPUManagerSession) PenaltyDuration() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) PromptScheduler() (common.Address, error)
- func (_GPUManager *GPUManagerSession) Receive() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RegisterMiner(tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RegisterMiner0(tier uint16, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RegisterModel(modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RenounceOwnership() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) RewardInEpoch(arg0 *big.Int) (struct{ ... }, error)
- func (_GPUManager *GPUManagerSession) RewardPerEpoch() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) RewardToClaim(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetBlocksPerEpoch(blocks *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetFinePercentage(newPercentage uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetMinFeeToUse(minFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetMinerMinimumStake(_minerMinimumStake *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetNewRewardInEpoch(newReward *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetPenaltyDuration(duration *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetPromptSchedulerAddress(newPromptScheduler common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetUnstakeDelayTime(delayTime *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SetWEAIAddress(wEAIToken common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) SlashMiner(miner common.Address, isFined bool) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) Treasury() (common.Address, error)
- func (_GPUManager *GPUManagerSession) UnregisterMiner() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) UnregisterModel(modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) UnstakeDelayTime() (*big.Int, error)
- func (_GPUManager *GPUManagerSession) UnstakeForMiner() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) UpdateEpoch() (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) UpdateModelMinimumFee(modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) UpdateModelTier(modelId uint32, tier uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) ValidateMiner(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) ValidateModelAndChooseRandomMiner(modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerSession) WEAIToken() (common.Address, error)
- type GPUManagerTransactor
- func (_GPUManager *GPUManagerTransactor) ClaimReward(opts *bind.TransactOpts, miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) ForceChangeModelForMiner(opts *bind.TransactOpts, miner common.Address, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) IncreaseMinerStake(opts *bind.TransactOpts, wEAIAmt *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) Initialize(opts *bind.TransactOpts, wEAIToken_ common.Address, ...) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) JoinForMinting(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RegisterMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RegisterMiner0(opts *bind.TransactOpts, tier uint16, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RegisterModel(opts *bind.TransactOpts, modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RestakeForMiner(opts *bind.TransactOpts, tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) RewardToClaim(opts *bind.TransactOpts, miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetBlocksPerEpoch(opts *bind.TransactOpts, blocks *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetFinePercentage(opts *bind.TransactOpts, newPercentage uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetMinFeeToUse(opts *bind.TransactOpts, minFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetMinerMinimumStake(opts *bind.TransactOpts, _minerMinimumStake *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetNewRewardInEpoch(opts *bind.TransactOpts, newReward *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetPenaltyDuration(opts *bind.TransactOpts, duration *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetPromptSchedulerAddress(opts *bind.TransactOpts, newPromptScheduler common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetUnstakeDelayTime(opts *bind.TransactOpts, delayTime *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SetWEAIAddress(opts *bind.TransactOpts, wEAIToken common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) SlashMiner(opts *bind.TransactOpts, miner common.Address, isFined bool) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UnregisterMiner(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UnregisterModel(opts *bind.TransactOpts, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UnstakeForMiner(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UpdateEpoch(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UpdateModelMinimumFee(opts *bind.TransactOpts, modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) UpdateModelTier(opts *bind.TransactOpts, modelId uint32, tier uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) ValidateMiner(opts *bind.TransactOpts, miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactor) ValidateModelAndChooseRandomMiner(opts *bind.TransactOpts, modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
- type GPUManagerTransactorRaw
- type GPUManagerTransactorSession
- func (_GPUManager *GPUManagerTransactorSession) ClaimReward(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) ForceChangeModelForMiner(miner common.Address, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) IncreaseMinerStake(wEAIAmt *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) Initialize(wEAIToken_ common.Address, modelCollection_ common.Address, ...) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) JoinForMinting() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) Receive() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RegisterMiner(tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RegisterMiner0(tier uint16, modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RegisterModel(modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) RewardToClaim(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetBlocksPerEpoch(blocks *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetFinePercentage(newPercentage uint16) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetMinFeeToUse(minFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetMinerMinimumStake(_minerMinimumStake *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetNewRewardInEpoch(newReward *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetPenaltyDuration(duration *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetPromptSchedulerAddress(newPromptScheduler common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetUnstakeDelayTime(delayTime *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SetWEAIAddress(wEAIToken common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) SlashMiner(miner common.Address, isFined bool) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UnregisterMiner() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UnregisterModel(modelId uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UnstakeForMiner() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UpdateEpoch() (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UpdateModelMinimumFee(modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) UpdateModelTier(modelId uint32, tier uint32) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) ValidateMiner(miner common.Address) (*types.Transaction, error)
- func (_GPUManager *GPUManagerTransactorSession) ValidateModelAndChooseRandomMiner(modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
- type GPUManagerUnpaused
- type GPUManagerUnpausedIterator
- type GPUManagerUnstakeDelayTime
- type GPUManagerUnstakeDelayTimeIterator
- type IGPUManagerModel
- type IGPUManagerUnstakeRequest
Constants ¶
This section is empty.
Variables ¶
var GPUManagerABI = GPUManagerMetaData.ABI
GPUManagerABI is the input ABI used to generate the binding from. Deprecated: Use GPUManagerMetaData.ABI instead.
var GPUManagerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"}],\"name\":\"AddressSet_DuplicatedValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"}],\"name\":\"AddressSet_ValueNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidBlockValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidMiner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidModel\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTier\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MinerInDeactivationTime\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughMiners\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SameModelAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakeTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StillBeingLocked\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Uint256Set_DuplicatedValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Uint256Set_ValueNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroValue\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldBlocks\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newBlocks\",\"type\":\"uint256\"}],\"name\":\"BlocksPerEpoch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"oldPercent\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newPercent\",\"type\":\"uint16\"}],\"name\":\"FinePercentageUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"treasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fine\",\"type\":\"uint256\"}],\"name\":\"FraudulentMinerPenalized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"MinFeeToUseUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint40\",\"name\":\"activeTime\",\"type\":\"uint40\"}],\"name\":\"MinerDeactivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"MinerExtraStake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"MinerJoin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"MinerRegistration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"MinerUnregistration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"}],\"name\":\"MinerUnstake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"}],\"name\":\"ModelMinimumFeeUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"}],\"name\":\"ModelRegistration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"tier\",\"type\":\"uint32\"}],\"name\":\"ModelTierUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"ModelUnregistration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint40\",\"name\":\"oldDuration\",\"type\":\"uint40\"},{\"indexed\":false,\"internalType\":\"uint40\",\"name\":\"newDuration\",\"type\":\"uint40\"}],\"name\":\"PenaltyDurationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"restake\",\"type\":\"uint256\"}],\"name\":\"Restake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"worker\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"RewardClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldReward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newReward\",\"type\":\"uint256\"}],\"name\":\"RewardPerEpoch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDelayTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelayTime\",\"type\":\"uint256\"}],\"name\":\"UnstakeDelayTime\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"_blocksPerEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_currentEpoch\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_finePercentage\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_lastBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_maximumTier\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_minFeeToUse\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_minerMinimumStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"_minerUnstakeRequests\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint40\",\"name\":\"unlockAt\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"_miners\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"internalType\":\"uint40\",\"name\":\"lastClaimedEpoch\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"activeTime\",\"type\":\"uint40\"},{\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_modelCollection\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"name\":\"_models\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"tier\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_penaltyDuration\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_promptScheduler\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"_rewardInEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"perfReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"epochReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalTaskCompleted\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalMiner\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_rewardPerEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_treasury\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_unstakeDelayTime\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_wEAIToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"forceChangeModelForMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllMinerUnstakeRequests\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"unstakeAddresses\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint40\",\"name\":\"unlockAt\",\"type\":\"uint40\"}],\"internalType\":\"structIGPUManager.UnstakeRequest[]\",\"name\":\"unstakeRequests\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"getMinFeeToUse\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinerAddresses\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"getMinerAddressesOfModel\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getModelIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"getModelInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"tier\",\"type\":\"uint32\"}],\"internalType\":\"structIGPUManager.Model\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNOMiner\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wEAIAmt\",\"type\":\"uint256\"}],\"name\":\"increaseMinerStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wEAIToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"modelCollection_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"treasury_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minerMinimumStake_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blocksPerEpoch_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerEpoch_\",\"type\":\"uint256\"},{\"internalType\":\"uint40\",\"name\":\"unstakeDelayTime_\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"penaltyDuration_\",\"type\":\"uint40\"},{\"internalType\":\"uint16\",\"name\":\"finePercentage_\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"minFeeToUse_\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"isActiveModel\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"joinForMinting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"multiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"}],\"name\":\"registerMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"registerMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"}],\"name\":\"registerModel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"tier\",\"type\":\"uint16\"}],\"name\":\"restakeForMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"rewardToClaim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blocks\",\"type\":\"uint256\"}],\"name\":\"setBlocksPerEpoch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newPercentage\",\"type\":\"uint16\"}],\"name\":\"setFinePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minFee\",\"type\":\"uint256\"}],\"name\":\"setMinFeeToUse\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minerMinimumStake\",\"type\":\"uint256\"}],\"name\":\"setMinerMinimumStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newReward\",\"type\":\"uint256\"}],\"name\":\"setNewRewardInEpoch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint40\",\"name\":\"duration\",\"type\":\"uint40\"}],\"name\":\"setPenaltyDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPromptScheduler\",\"type\":\"address\"}],\"name\":\"setPromptSchedulerAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint40\",\"name\":\"delayTime\",\"type\":\"uint40\"}],\"name\":\"setUnstakeDelayTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wEAIToken\",\"type\":\"address\"}],\"name\":\"setWEAIAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isFined\",\"type\":\"bool\"}],\"name\":\"slashMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unregisterMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"}],\"name\":\"unregisterModel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unstakeForMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateEpoch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"minimumFee\",\"type\":\"uint256\"}],\"name\":\"updateModelMinimumFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"tier\",\"type\":\"uint32\"}],\"name\":\"updateModelTier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"miner\",\"type\":\"address\"}],\"name\":\"validateMiner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"modelId\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"minersRequired\",\"type\":\"uint256\"}],\"name\":\"validateModelAndChooseRandomMiner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
GPUManagerMetaData contains all meta data concerning the GPUManager contract.
Functions ¶
This section is empty.
Types ¶
type GPUManager ¶
type GPUManager struct { GPUManagerCaller // Read-only binding to the contract GPUManagerTransactor // Write-only binding to the contract GPUManagerFilterer // Log filterer for contract events }
GPUManager is an auto generated Go binding around an Ethereum contract.
func NewGPUManager ¶
func NewGPUManager(address common.Address, backend bind.ContractBackend) (*GPUManager, error)
NewGPUManager creates a new instance of GPUManager, bound to a specific deployed contract.
type GPUManagerBlocksPerEpoch ¶
type GPUManagerBlocksPerEpoch struct { OldBlocks *big.Int NewBlocks *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerBlocksPerEpoch represents a BlocksPerEpoch event raised by the GPUManager contract.
type GPUManagerBlocksPerEpochIterator ¶
type GPUManagerBlocksPerEpochIterator struct { Event *GPUManagerBlocksPerEpoch // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerBlocksPerEpochIterator is returned from FilterBlocksPerEpoch and is used to iterate over the raw logs and unpacked data for BlocksPerEpoch events raised by the GPUManager contract.
func (*GPUManagerBlocksPerEpochIterator) Close ¶
func (it *GPUManagerBlocksPerEpochIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerBlocksPerEpochIterator) Error ¶
func (it *GPUManagerBlocksPerEpochIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerBlocksPerEpochIterator) Next ¶
func (it *GPUManagerBlocksPerEpochIterator) 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 GPUManagerCaller ¶
type GPUManagerCaller struct {
// contains filtered or unexported fields
}
GPUManagerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGPUManagerCaller ¶
func NewGPUManagerCaller(address common.Address, caller bind.ContractCaller) (*GPUManagerCaller, error)
NewGPUManagerCaller creates a new read-only instance of GPUManager, bound to a specific deployed contract.
func (*GPUManagerCaller) BlocksPerEpoch ¶
BlocksPerEpoch is a free data retrieval call binding the contract method 0xb2424e3f.
Solidity: function _blocksPerEpoch() view returns(uint256)
func (*GPUManagerCaller) CurrentEpoch ¶
CurrentEpoch is a free data retrieval call binding the contract method 0x4c98e243.
Solidity: function _currentEpoch() view returns(uint40)
func (*GPUManagerCaller) FinePercentage ¶
func (_GPUManager *GPUManagerCaller) FinePercentage(opts *bind.CallOpts) (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x92cdf038.
Solidity: function _finePercentage() view returns(uint16)
func (*GPUManagerCaller) GetAllMinerUnstakeRequests ¶
func (_GPUManager *GPUManagerCaller) GetAllMinerUnstakeRequests(opts *bind.CallOpts) (struct { UnstakeAddresses []common.Address UnstakeRequests []IGPUManagerUnstakeRequest }, error)
GetAllMinerUnstakeRequests is a free data retrieval call binding the contract method 0x9280f078.
Solidity: function getAllMinerUnstakeRequests() view returns(address[] unstakeAddresses, (uint256,uint40)[] unstakeRequests)
func (*GPUManagerCaller) GetMinFeeToUse ¶
func (_GPUManager *GPUManagerCaller) GetMinFeeToUse(opts *bind.CallOpts, modelId uint32) (*big.Int, error)
GetMinFeeToUse is a free data retrieval call binding the contract method 0x963a0278.
Solidity: function getMinFeeToUse(uint32 modelId) view returns(uint256)
func (*GPUManagerCaller) GetMinerAddresses ¶
func (_GPUManager *GPUManagerCaller) GetMinerAddresses(opts *bind.CallOpts) ([]common.Address, error)
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*GPUManagerCaller) GetMinerAddressesOfModel ¶
func (_GPUManager *GPUManagerCaller) GetMinerAddressesOfModel(opts *bind.CallOpts, modelId uint32) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0xa5f85cc8.
Solidity: function getMinerAddressesOfModel(uint32 modelId) view returns(address[])
func (*GPUManagerCaller) GetModelIds ¶
GetModelIds is a free data retrieval call binding the contract method 0x84881115.
Solidity: function getModelIds() view returns(uint256[])
func (*GPUManagerCaller) GetModelInfo ¶
func (_GPUManager *GPUManagerCaller) GetModelInfo(opts *bind.CallOpts, modelId uint32) (IGPUManagerModel, error)
GetModelInfo is a free data retrieval call binding the contract method 0x77495c20.
Solidity: function getModelInfo(uint32 modelId) view returns((uint256,uint32))
func (*GPUManagerCaller) GetNOMiner ¶
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*GPUManagerCaller) IsActiveModel ¶
func (_GPUManager *GPUManagerCaller) IsActiveModel(opts *bind.CallOpts, modelId uint32) (bool, error)
IsActiveModel is a free data retrieval call binding the contract method 0xbce2845a.
Solidity: function isActiveModel(uint32 modelId) view returns(bool)
func (*GPUManagerCaller) LastBlock ¶
LastBlock is a free data retrieval call binding the contract method 0xf712b279.
Solidity: function _lastBlock() view returns(uint256)
func (*GPUManagerCaller) MaximumTier ¶
func (_GPUManager *GPUManagerCaller) MaximumTier(opts *bind.CallOpts) (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x88f12044.
Solidity: function _maximumTier() view returns(uint16)
func (*GPUManagerCaller) MinFeeToUse ¶
MinFeeToUse is a free data retrieval call binding the contract method 0xf6a74d05.
Solidity: function _minFeeToUse() view returns(uint256)
func (*GPUManagerCaller) MinerMinimumStake ¶
MinerMinimumStake is a free data retrieval call binding the contract method 0xc5fc548d.
Solidity: function _minerMinimumStake() view returns(uint256)
func (*GPUManagerCaller) MinerUnstakeRequests ¶
func (_GPUManager *GPUManagerCaller) 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 0x54eb2d2a.
Solidity: function _minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*GPUManagerCaller) Miners ¶
func (_GPUManager *GPUManagerCaller) Miners(opts *bind.CallOpts, arg0 common.Address) (struct { Stake *big.Int ModelId uint32 LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0xb1a976ef.
Solidity: function _miners(address ) view returns(uint256 stake, uint32 modelId, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*GPUManagerCaller) ModelCollection ¶
ModelCollection is a free data retrieval call binding the contract method 0x1c49c2d6.
Solidity: function _modelCollection() view returns(address)
func (*GPUManagerCaller) Models ¶
func (_GPUManager *GPUManagerCaller) Models(opts *bind.CallOpts, arg0 uint32) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x55f89085.
Solidity: function _models(uint32 ) view returns(uint256 minimumFee, uint32 tier)
func (*GPUManagerCaller) Multiplier ¶
func (_GPUManager *GPUManagerCaller) 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 (*GPUManagerCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*GPUManagerCaller) Paused ¶
func (_GPUManager *GPUManagerCaller) 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 (*GPUManagerCaller) PenaltyDuration ¶
PenaltyDuration is a free data retrieval call binding the contract method 0xab692134.
Solidity: function _penaltyDuration() view returns(uint40)
func (*GPUManagerCaller) PromptScheduler ¶
PromptScheduler is a free data retrieval call binding the contract method 0x25abc002.
Solidity: function _promptScheduler() view returns(address)
func (*GPUManagerCaller) RewardInEpoch ¶
func (_GPUManager *GPUManagerCaller) 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 0xa662f84d.
Solidity: function _rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*GPUManagerCaller) RewardPerEpoch ¶
RewardPerEpoch is a free data retrieval call binding the contract method 0x62423112.
Solidity: function _rewardPerEpoch() view returns(uint256)
func (*GPUManagerCaller) Treasury ¶
Treasury is a free data retrieval call binding the contract method 0xe319a3d9.
Solidity: function _treasury() view returns(address)
func (*GPUManagerCaller) UnstakeDelayTime ¶
UnstakeDelayTime is a free data retrieval call binding the contract method 0x72b1f3e4.
Solidity: function _unstakeDelayTime() view returns(uint40)
type GPUManagerCallerRaw ¶
type GPUManagerCallerRaw struct {
Contract *GPUManagerCaller // Generic read-only contract binding to access the raw methods on
}
GPUManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GPUManagerCallerRaw) Call ¶
func (_GPUManager *GPUManagerCallerRaw) 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 GPUManagerCallerSession ¶
type GPUManagerCallerSession struct { Contract *GPUManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GPUManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GPUManagerCallerSession) BlocksPerEpoch ¶
func (_GPUManager *GPUManagerCallerSession) BlocksPerEpoch() (*big.Int, error)
BlocksPerEpoch is a free data retrieval call binding the contract method 0xb2424e3f.
Solidity: function _blocksPerEpoch() view returns(uint256)
func (*GPUManagerCallerSession) CurrentEpoch ¶
func (_GPUManager *GPUManagerCallerSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x4c98e243.
Solidity: function _currentEpoch() view returns(uint40)
func (*GPUManagerCallerSession) FinePercentage ¶
func (_GPUManager *GPUManagerCallerSession) FinePercentage() (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x92cdf038.
Solidity: function _finePercentage() view returns(uint16)
func (*GPUManagerCallerSession) GetAllMinerUnstakeRequests ¶
func (_GPUManager *GPUManagerCallerSession) GetAllMinerUnstakeRequests() (struct { UnstakeAddresses []common.Address UnstakeRequests []IGPUManagerUnstakeRequest }, error)
GetAllMinerUnstakeRequests is a free data retrieval call binding the contract method 0x9280f078.
Solidity: function getAllMinerUnstakeRequests() view returns(address[] unstakeAddresses, (uint256,uint40)[] unstakeRequests)
func (*GPUManagerCallerSession) GetMinFeeToUse ¶
func (_GPUManager *GPUManagerCallerSession) GetMinFeeToUse(modelId uint32) (*big.Int, error)
GetMinFeeToUse is a free data retrieval call binding the contract method 0x963a0278.
Solidity: function getMinFeeToUse(uint32 modelId) view returns(uint256)
func (*GPUManagerCallerSession) GetMinerAddresses ¶
func (_GPUManager *GPUManagerCallerSession) GetMinerAddresses() ([]common.Address, error)
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*GPUManagerCallerSession) GetMinerAddressesOfModel ¶
func (_GPUManager *GPUManagerCallerSession) GetMinerAddressesOfModel(modelId uint32) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0xa5f85cc8.
Solidity: function getMinerAddressesOfModel(uint32 modelId) view returns(address[])
func (*GPUManagerCallerSession) GetModelIds ¶
func (_GPUManager *GPUManagerCallerSession) GetModelIds() ([]*big.Int, error)
GetModelIds is a free data retrieval call binding the contract method 0x84881115.
Solidity: function getModelIds() view returns(uint256[])
func (*GPUManagerCallerSession) GetModelInfo ¶
func (_GPUManager *GPUManagerCallerSession) GetModelInfo(modelId uint32) (IGPUManagerModel, error)
GetModelInfo is a free data retrieval call binding the contract method 0x77495c20.
Solidity: function getModelInfo(uint32 modelId) view returns((uint256,uint32))
func (*GPUManagerCallerSession) GetNOMiner ¶
func (_GPUManager *GPUManagerCallerSession) GetNOMiner() (*big.Int, error)
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*GPUManagerCallerSession) IsActiveModel ¶
func (_GPUManager *GPUManagerCallerSession) IsActiveModel(modelId uint32) (bool, error)
IsActiveModel is a free data retrieval call binding the contract method 0xbce2845a.
Solidity: function isActiveModel(uint32 modelId) view returns(bool)
func (*GPUManagerCallerSession) LastBlock ¶
func (_GPUManager *GPUManagerCallerSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0xf712b279.
Solidity: function _lastBlock() view returns(uint256)
func (*GPUManagerCallerSession) MaximumTier ¶
func (_GPUManager *GPUManagerCallerSession) MaximumTier() (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x88f12044.
Solidity: function _maximumTier() view returns(uint16)
func (*GPUManagerCallerSession) MinFeeToUse ¶
func (_GPUManager *GPUManagerCallerSession) MinFeeToUse() (*big.Int, error)
MinFeeToUse is a free data retrieval call binding the contract method 0xf6a74d05.
Solidity: function _minFeeToUse() view returns(uint256)
func (*GPUManagerCallerSession) MinerMinimumStake ¶
func (_GPUManager *GPUManagerCallerSession) MinerMinimumStake() (*big.Int, error)
MinerMinimumStake is a free data retrieval call binding the contract method 0xc5fc548d.
Solidity: function _minerMinimumStake() view returns(uint256)
func (*GPUManagerCallerSession) MinerUnstakeRequests ¶
func (_GPUManager *GPUManagerCallerSession) MinerUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
MinerUnstakeRequests is a free data retrieval call binding the contract method 0x54eb2d2a.
Solidity: function _minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*GPUManagerCallerSession) Miners ¶
func (_GPUManager *GPUManagerCallerSession) Miners(arg0 common.Address) (struct { Stake *big.Int ModelId uint32 LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0xb1a976ef.
Solidity: function _miners(address ) view returns(uint256 stake, uint32 modelId, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*GPUManagerCallerSession) ModelCollection ¶
func (_GPUManager *GPUManagerCallerSession) ModelCollection() (common.Address, error)
ModelCollection is a free data retrieval call binding the contract method 0x1c49c2d6.
Solidity: function _modelCollection() view returns(address)
func (*GPUManagerCallerSession) Models ¶
func (_GPUManager *GPUManagerCallerSession) Models(arg0 uint32) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x55f89085.
Solidity: function _models(uint32 ) view returns(uint256 minimumFee, uint32 tier)
func (*GPUManagerCallerSession) Multiplier ¶
Multiplier is a free data retrieval call binding the contract method 0xa9b3f8b7.
Solidity: function multiplier(address miner) view returns(uint256)
func (*GPUManagerCallerSession) Owner ¶
func (_GPUManager *GPUManagerCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*GPUManagerCallerSession) Paused ¶
func (_GPUManager *GPUManagerCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*GPUManagerCallerSession) PenaltyDuration ¶
func (_GPUManager *GPUManagerCallerSession) PenaltyDuration() (*big.Int, error)
PenaltyDuration is a free data retrieval call binding the contract method 0xab692134.
Solidity: function _penaltyDuration() view returns(uint40)
func (*GPUManagerCallerSession) PromptScheduler ¶
func (_GPUManager *GPUManagerCallerSession) PromptScheduler() (common.Address, error)
PromptScheduler is a free data retrieval call binding the contract method 0x25abc002.
Solidity: function _promptScheduler() view returns(address)
func (*GPUManagerCallerSession) RewardInEpoch ¶
func (_GPUManager *GPUManagerCallerSession) 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 0xa662f84d.
Solidity: function _rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*GPUManagerCallerSession) RewardPerEpoch ¶
func (_GPUManager *GPUManagerCallerSession) RewardPerEpoch() (*big.Int, error)
RewardPerEpoch is a free data retrieval call binding the contract method 0x62423112.
Solidity: function _rewardPerEpoch() view returns(uint256)
func (*GPUManagerCallerSession) Treasury ¶
func (_GPUManager *GPUManagerCallerSession) Treasury() (common.Address, error)
Treasury is a free data retrieval call binding the contract method 0xe319a3d9.
Solidity: function _treasury() view returns(address)
func (*GPUManagerCallerSession) UnstakeDelayTime ¶
func (_GPUManager *GPUManagerCallerSession) UnstakeDelayTime() (*big.Int, error)
UnstakeDelayTime is a free data retrieval call binding the contract method 0x72b1f3e4.
Solidity: function _unstakeDelayTime() view returns(uint40)
type GPUManagerFilterer ¶
type GPUManagerFilterer struct {
// contains filtered or unexported fields
}
GPUManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGPUManagerFilterer ¶
func NewGPUManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*GPUManagerFilterer, error)
NewGPUManagerFilterer creates a new log filterer instance of GPUManager, bound to a specific deployed contract.
func (*GPUManagerFilterer) FilterBlocksPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) FilterBlocksPerEpoch(opts *bind.FilterOpts) (*GPUManagerBlocksPerEpochIterator, error)
FilterBlocksPerEpoch is a free log retrieval operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*GPUManagerFilterer) FilterFinePercentageUpdated ¶
func (_GPUManager *GPUManagerFilterer) FilterFinePercentageUpdated(opts *bind.FilterOpts) (*GPUManagerFinePercentageUpdatedIterator, error)
FilterFinePercentageUpdated is a free log retrieval operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*GPUManagerFilterer) FilterFraudulentMinerPenalized ¶
func (_GPUManager *GPUManagerFilterer) FilterFraudulentMinerPenalized(opts *bind.FilterOpts, miner []common.Address, modelId []uint32, treasury []common.Address) (*GPUManagerFraudulentMinerPenalizedIterator, error)
FilterFraudulentMinerPenalized is a free log retrieval operation binding the contract event 0x396ee931f435c63405d255f5e0d31a0d1a1f6b57d59ef9559155464a15b13593.
Solidity: event FraudulentMinerPenalized(address indexed miner, uint32 indexed modelId, address indexed treasury, uint256 fine)
func (*GPUManagerFilterer) FilterInitialized ¶
func (_GPUManager *GPUManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*GPUManagerInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*GPUManagerFilterer) FilterMinFeeToUseUpdated ¶
func (_GPUManager *GPUManagerFilterer) FilterMinFeeToUseUpdated(opts *bind.FilterOpts) (*GPUManagerMinFeeToUseUpdatedIterator, error)
FilterMinFeeToUseUpdated is a free log retrieval operation binding the contract event 0x37bba2c63397e7d89baa40e3d0c29e309913eb87b9691bacb16dba509fad523c.
Solidity: event MinFeeToUseUpdated(uint256 oldValue, uint256 newValue)
func (*GPUManagerFilterer) FilterMinerDeactivated ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerDeactivated(opts *bind.FilterOpts, miner []common.Address, modelId []uint32) (*GPUManagerMinerDeactivatedIterator, error)
FilterMinerDeactivated is a free log retrieval operation binding the contract event 0x6e4a7233a3b583018e3a3d018e76ad619bab8ad6e8fe05e12cb83ec1fa75d85e.
Solidity: event MinerDeactivated(address indexed miner, uint32 indexed modelId, uint40 activeTime)
func (*GPUManagerFilterer) FilterMinerExtraStake ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerExtraStake(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerExtraStakeIterator, error)
FilterMinerExtraStake is a free log retrieval operation binding the contract event 0x3d236e8f743e932a32c84d3114ce3e7ee0b75225cb3b39f72faac62495fd21c1.
Solidity: event MinerExtraStake(address indexed miner, uint256 value)
func (*GPUManagerFilterer) FilterMinerJoin ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerJoin(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerJoinIterator, error)
FilterMinerJoin is a free log retrieval operation binding the contract event 0xb7041987154996ed34981c2bc6fbafd4b1fcab9964486d7cc386f0d8abcc5446.
Solidity: event MinerJoin(address indexed miner)
func (*GPUManagerFilterer) FilterMinerRegistration ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerRegistration(opts *bind.FilterOpts, miner []common.Address, tier []uint16) (*GPUManagerMinerRegistrationIterator, 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 (*GPUManagerFilterer) FilterMinerUnregistration ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerUnregistration(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerUnregistrationIterator, error)
FilterMinerUnregistration is a free log retrieval operation binding the contract event 0x8f54596d72781f60dbf7dad7e576f06ce17bbda0bdf384463f7734f85f51498e.
Solidity: event MinerUnregistration(address indexed miner)
func (*GPUManagerFilterer) FilterMinerUnstake ¶
func (_GPUManager *GPUManagerFilterer) FilterMinerUnstake(opts *bind.FilterOpts, miner []common.Address) (*GPUManagerMinerUnstakeIterator, error)
FilterMinerUnstake is a free log retrieval operation binding the contract event 0x1051154647682075e7cc0645853209e75208cb5acd862fc83f7fd0fcaa9624b4.
Solidity: event MinerUnstake(address indexed miner, uint256 stake)
func (*GPUManagerFilterer) FilterModelMinimumFeeUpdate ¶
func (_GPUManager *GPUManagerFilterer) FilterModelMinimumFeeUpdate(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelMinimumFeeUpdateIterator, error)
FilterModelMinimumFeeUpdate is a free log retrieval operation binding the contract event 0x32fdbd4cff3135e1bb0ae98bb593ee0c78a48a5e92e80ccf8a8ab6e72b21ffb9.
Solidity: event ModelMinimumFeeUpdate(uint32 indexed modelId, uint256 minimumFee)
func (*GPUManagerFilterer) FilterModelRegistration ¶
func (_GPUManager *GPUManagerFilterer) FilterModelRegistration(opts *bind.FilterOpts, modelId []uint32, tier []uint16) (*GPUManagerModelRegistrationIterator, error)
FilterModelRegistration is a free log retrieval operation binding the contract event 0xbf8d4447fa6c121c179656152534cb5032c1ce50f747e90c56580bec25583d81.
Solidity: event ModelRegistration(uint32 indexed modelId, uint16 indexed tier, uint256 minimumFee)
func (*GPUManagerFilterer) FilterModelTierUpdate ¶
func (_GPUManager *GPUManagerFilterer) FilterModelTierUpdate(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelTierUpdateIterator, error)
FilterModelTierUpdate is a free log retrieval operation binding the contract event 0x4ecbcd19e308970fa368644f223de37bf9800e203349b5873d83970277c30356.
Solidity: event ModelTierUpdate(uint32 indexed modelId, uint32 tier)
func (*GPUManagerFilterer) FilterModelUnregistration ¶
func (_GPUManager *GPUManagerFilterer) FilterModelUnregistration(opts *bind.FilterOpts, modelId []uint32) (*GPUManagerModelUnregistrationIterator, error)
FilterModelUnregistration is a free log retrieval operation binding the contract event 0x543408e7ce45c07531e494b8909d4d1b9dea7a8d8f5907b4673949a90fc56ba2.
Solidity: event ModelUnregistration(uint32 indexed modelId)
func (*GPUManagerFilterer) FilterOwnershipTransferred ¶
func (_GPUManager *GPUManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GPUManagerOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*GPUManagerFilterer) FilterPaused ¶
func (_GPUManager *GPUManagerFilterer) FilterPaused(opts *bind.FilterOpts) (*GPUManagerPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*GPUManagerFilterer) FilterPenaltyDurationUpdated ¶
func (_GPUManager *GPUManagerFilterer) FilterPenaltyDurationUpdated(opts *bind.FilterOpts) (*GPUManagerPenaltyDurationUpdatedIterator, error)
FilterPenaltyDurationUpdated is a free log retrieval operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*GPUManagerFilterer) FilterRestake ¶
func (_GPUManager *GPUManagerFilterer) FilterRestake(opts *bind.FilterOpts, miner []common.Address, modelId []uint32) (*GPUManagerRestakeIterator, error)
FilterRestake is a free log retrieval operation binding the contract event 0xd71961af2f46a633dc473cc0dda9e08783282fdb38c8f90482a143eb63b039e0.
Solidity: event Restake(address indexed miner, uint32 indexed modelId, uint256 restake)
func (*GPUManagerFilterer) FilterRewardClaim ¶
func (_GPUManager *GPUManagerFilterer) FilterRewardClaim(opts *bind.FilterOpts, worker []common.Address) (*GPUManagerRewardClaimIterator, error)
FilterRewardClaim is a free log retrieval operation binding the contract event 0x75690555e75b04e280e646889defdcbefd8401507e5394d1173fd84290944c29.
Solidity: event RewardClaim(address indexed worker, uint256 value)
func (*GPUManagerFilterer) FilterRewardPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) FilterRewardPerEpoch(opts *bind.FilterOpts) (*GPUManagerRewardPerEpochIterator, error)
FilterRewardPerEpoch is a free log retrieval operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*GPUManagerFilterer) FilterUnpaused ¶
func (_GPUManager *GPUManagerFilterer) FilterUnpaused(opts *bind.FilterOpts) (*GPUManagerUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*GPUManagerFilterer) FilterUnstakeDelayTime ¶
func (_GPUManager *GPUManagerFilterer) FilterUnstakeDelayTime(opts *bind.FilterOpts) (*GPUManagerUnstakeDelayTimeIterator, error)
FilterUnstakeDelayTime is a free log retrieval operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
func (*GPUManagerFilterer) ParseBlocksPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) ParseBlocksPerEpoch(log types.Log) (*GPUManagerBlocksPerEpoch, error)
ParseBlocksPerEpoch is a log parse operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*GPUManagerFilterer) ParseFinePercentageUpdated ¶
func (_GPUManager *GPUManagerFilterer) ParseFinePercentageUpdated(log types.Log) (*GPUManagerFinePercentageUpdated, error)
ParseFinePercentageUpdated is a log parse operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*GPUManagerFilterer) ParseFraudulentMinerPenalized ¶
func (_GPUManager *GPUManagerFilterer) ParseFraudulentMinerPenalized(log types.Log) (*GPUManagerFraudulentMinerPenalized, error)
ParseFraudulentMinerPenalized is a log parse operation binding the contract event 0x396ee931f435c63405d255f5e0d31a0d1a1f6b57d59ef9559155464a15b13593.
Solidity: event FraudulentMinerPenalized(address indexed miner, uint32 indexed modelId, address indexed treasury, uint256 fine)
func (*GPUManagerFilterer) ParseInitialized ¶
func (_GPUManager *GPUManagerFilterer) ParseInitialized(log types.Log) (*GPUManagerInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*GPUManagerFilterer) ParseMinFeeToUseUpdated ¶
func (_GPUManager *GPUManagerFilterer) ParseMinFeeToUseUpdated(log types.Log) (*GPUManagerMinFeeToUseUpdated, error)
ParseMinFeeToUseUpdated is a log parse operation binding the contract event 0x37bba2c63397e7d89baa40e3d0c29e309913eb87b9691bacb16dba509fad523c.
Solidity: event MinFeeToUseUpdated(uint256 oldValue, uint256 newValue)
func (*GPUManagerFilterer) ParseMinerDeactivated ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerDeactivated(log types.Log) (*GPUManagerMinerDeactivated, error)
ParseMinerDeactivated is a log parse operation binding the contract event 0x6e4a7233a3b583018e3a3d018e76ad619bab8ad6e8fe05e12cb83ec1fa75d85e.
Solidity: event MinerDeactivated(address indexed miner, uint32 indexed modelId, uint40 activeTime)
func (*GPUManagerFilterer) ParseMinerExtraStake ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerExtraStake(log types.Log) (*GPUManagerMinerExtraStake, error)
ParseMinerExtraStake is a log parse operation binding the contract event 0x3d236e8f743e932a32c84d3114ce3e7ee0b75225cb3b39f72faac62495fd21c1.
Solidity: event MinerExtraStake(address indexed miner, uint256 value)
func (*GPUManagerFilterer) ParseMinerJoin ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerJoin(log types.Log) (*GPUManagerMinerJoin, error)
ParseMinerJoin is a log parse operation binding the contract event 0xb7041987154996ed34981c2bc6fbafd4b1fcab9964486d7cc386f0d8abcc5446.
Solidity: event MinerJoin(address indexed miner)
func (*GPUManagerFilterer) ParseMinerRegistration ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerRegistration(log types.Log) (*GPUManagerMinerRegistration, error)
ParseMinerRegistration is a log parse operation binding the contract event 0x55e488821080f3f5cdf6088b02793df0d26f40053a70b6154347d2ac313015a1.
Solidity: event MinerRegistration(address indexed miner, uint16 indexed tier, uint256 value)
func (*GPUManagerFilterer) ParseMinerUnregistration ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerUnregistration(log types.Log) (*GPUManagerMinerUnregistration, error)
ParseMinerUnregistration is a log parse operation binding the contract event 0x8f54596d72781f60dbf7dad7e576f06ce17bbda0bdf384463f7734f85f51498e.
Solidity: event MinerUnregistration(address indexed miner)
func (*GPUManagerFilterer) ParseMinerUnstake ¶
func (_GPUManager *GPUManagerFilterer) ParseMinerUnstake(log types.Log) (*GPUManagerMinerUnstake, error)
ParseMinerUnstake is a log parse operation binding the contract event 0x1051154647682075e7cc0645853209e75208cb5acd862fc83f7fd0fcaa9624b4.
Solidity: event MinerUnstake(address indexed miner, uint256 stake)
func (*GPUManagerFilterer) ParseModelMinimumFeeUpdate ¶
func (_GPUManager *GPUManagerFilterer) ParseModelMinimumFeeUpdate(log types.Log) (*GPUManagerModelMinimumFeeUpdate, error)
ParseModelMinimumFeeUpdate is a log parse operation binding the contract event 0x32fdbd4cff3135e1bb0ae98bb593ee0c78a48a5e92e80ccf8a8ab6e72b21ffb9.
Solidity: event ModelMinimumFeeUpdate(uint32 indexed modelId, uint256 minimumFee)
func (*GPUManagerFilterer) ParseModelRegistration ¶
func (_GPUManager *GPUManagerFilterer) ParseModelRegistration(log types.Log) (*GPUManagerModelRegistration, error)
ParseModelRegistration is a log parse operation binding the contract event 0xbf8d4447fa6c121c179656152534cb5032c1ce50f747e90c56580bec25583d81.
Solidity: event ModelRegistration(uint32 indexed modelId, uint16 indexed tier, uint256 minimumFee)
func (*GPUManagerFilterer) ParseModelTierUpdate ¶
func (_GPUManager *GPUManagerFilterer) ParseModelTierUpdate(log types.Log) (*GPUManagerModelTierUpdate, error)
ParseModelTierUpdate is a log parse operation binding the contract event 0x4ecbcd19e308970fa368644f223de37bf9800e203349b5873d83970277c30356.
Solidity: event ModelTierUpdate(uint32 indexed modelId, uint32 tier)
func (*GPUManagerFilterer) ParseModelUnregistration ¶
func (_GPUManager *GPUManagerFilterer) ParseModelUnregistration(log types.Log) (*GPUManagerModelUnregistration, error)
ParseModelUnregistration is a log parse operation binding the contract event 0x543408e7ce45c07531e494b8909d4d1b9dea7a8d8f5907b4673949a90fc56ba2.
Solidity: event ModelUnregistration(uint32 indexed modelId)
func (*GPUManagerFilterer) ParseOwnershipTransferred ¶
func (_GPUManager *GPUManagerFilterer) ParseOwnershipTransferred(log types.Log) (*GPUManagerOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*GPUManagerFilterer) ParsePaused ¶
func (_GPUManager *GPUManagerFilterer) ParsePaused(log types.Log) (*GPUManagerPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*GPUManagerFilterer) ParsePenaltyDurationUpdated ¶
func (_GPUManager *GPUManagerFilterer) ParsePenaltyDurationUpdated(log types.Log) (*GPUManagerPenaltyDurationUpdated, error)
ParsePenaltyDurationUpdated is a log parse operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*GPUManagerFilterer) ParseRestake ¶
func (_GPUManager *GPUManagerFilterer) ParseRestake(log types.Log) (*GPUManagerRestake, error)
ParseRestake is a log parse operation binding the contract event 0xd71961af2f46a633dc473cc0dda9e08783282fdb38c8f90482a143eb63b039e0.
Solidity: event Restake(address indexed miner, uint32 indexed modelId, uint256 restake)
func (*GPUManagerFilterer) ParseRewardClaim ¶
func (_GPUManager *GPUManagerFilterer) ParseRewardClaim(log types.Log) (*GPUManagerRewardClaim, error)
ParseRewardClaim is a log parse operation binding the contract event 0x75690555e75b04e280e646889defdcbefd8401507e5394d1173fd84290944c29.
Solidity: event RewardClaim(address indexed worker, uint256 value)
func (*GPUManagerFilterer) ParseRewardPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) ParseRewardPerEpoch(log types.Log) (*GPUManagerRewardPerEpoch, error)
ParseRewardPerEpoch is a log parse operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*GPUManagerFilterer) ParseUnpaused ¶
func (_GPUManager *GPUManagerFilterer) ParseUnpaused(log types.Log) (*GPUManagerUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*GPUManagerFilterer) ParseUnstakeDelayTime ¶
func (_GPUManager *GPUManagerFilterer) ParseUnstakeDelayTime(log types.Log) (*GPUManagerUnstakeDelayTime, error)
ParseUnstakeDelayTime is a log parse operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
func (*GPUManagerFilterer) WatchBlocksPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) WatchBlocksPerEpoch(opts *bind.WatchOpts, sink chan<- *GPUManagerBlocksPerEpoch) (event.Subscription, error)
WatchBlocksPerEpoch is a free log subscription operation binding the contract event 0x3179ee2c3011a36d6d80a4b422f208df28ef9493d1d9ce1555b3116bd26ddb3d.
Solidity: event BlocksPerEpoch(uint256 oldBlocks, uint256 newBlocks)
func (*GPUManagerFilterer) WatchFinePercentageUpdated ¶
func (_GPUManager *GPUManagerFilterer) WatchFinePercentageUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerFinePercentageUpdated) (event.Subscription, error)
WatchFinePercentageUpdated is a free log subscription operation binding the contract event 0xcf2ba21ec685fb1baf4b5e5df96fd2da47ab299e7d95e586c7898f114b6c1269.
Solidity: event FinePercentageUpdated(uint16 oldPercent, uint16 newPercent)
func (*GPUManagerFilterer) WatchFraudulentMinerPenalized ¶
func (_GPUManager *GPUManagerFilterer) WatchFraudulentMinerPenalized(opts *bind.WatchOpts, sink chan<- *GPUManagerFraudulentMinerPenalized, miner []common.Address, modelId []uint32, treasury []common.Address) (event.Subscription, error)
WatchFraudulentMinerPenalized is a free log subscription operation binding the contract event 0x396ee931f435c63405d255f5e0d31a0d1a1f6b57d59ef9559155464a15b13593.
Solidity: event FraudulentMinerPenalized(address indexed miner, uint32 indexed modelId, address indexed treasury, uint256 fine)
func (*GPUManagerFilterer) WatchInitialized ¶
func (_GPUManager *GPUManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *GPUManagerInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*GPUManagerFilterer) WatchMinFeeToUseUpdated ¶
func (_GPUManager *GPUManagerFilterer) WatchMinFeeToUseUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerMinFeeToUseUpdated) (event.Subscription, error)
WatchMinFeeToUseUpdated is a free log subscription operation binding the contract event 0x37bba2c63397e7d89baa40e3d0c29e309913eb87b9691bacb16dba509fad523c.
Solidity: event MinFeeToUseUpdated(uint256 oldValue, uint256 newValue)
func (*GPUManagerFilterer) WatchMinerDeactivated ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerDeactivated(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerDeactivated, miner []common.Address, modelId []uint32) (event.Subscription, error)
WatchMinerDeactivated is a free log subscription operation binding the contract event 0x6e4a7233a3b583018e3a3d018e76ad619bab8ad6e8fe05e12cb83ec1fa75d85e.
Solidity: event MinerDeactivated(address indexed miner, uint32 indexed modelId, uint40 activeTime)
func (*GPUManagerFilterer) WatchMinerExtraStake ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerExtraStake(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerExtraStake, 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 (*GPUManagerFilterer) WatchMinerJoin ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerJoin(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerJoin, 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 (*GPUManagerFilterer) WatchMinerRegistration ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerRegistration(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerRegistration, 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 (*GPUManagerFilterer) WatchMinerUnregistration ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerUnregistration(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerUnregistration, 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 (*GPUManagerFilterer) WatchMinerUnstake ¶
func (_GPUManager *GPUManagerFilterer) WatchMinerUnstake(opts *bind.WatchOpts, sink chan<- *GPUManagerMinerUnstake, 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 (*GPUManagerFilterer) WatchModelMinimumFeeUpdate ¶
func (_GPUManager *GPUManagerFilterer) WatchModelMinimumFeeUpdate(opts *bind.WatchOpts, sink chan<- *GPUManagerModelMinimumFeeUpdate, modelId []uint32) (event.Subscription, error)
WatchModelMinimumFeeUpdate is a free log subscription operation binding the contract event 0x32fdbd4cff3135e1bb0ae98bb593ee0c78a48a5e92e80ccf8a8ab6e72b21ffb9.
Solidity: event ModelMinimumFeeUpdate(uint32 indexed modelId, uint256 minimumFee)
func (*GPUManagerFilterer) WatchModelRegistration ¶
func (_GPUManager *GPUManagerFilterer) WatchModelRegistration(opts *bind.WatchOpts, sink chan<- *GPUManagerModelRegistration, modelId []uint32, tier []uint16) (event.Subscription, error)
WatchModelRegistration is a free log subscription operation binding the contract event 0xbf8d4447fa6c121c179656152534cb5032c1ce50f747e90c56580bec25583d81.
Solidity: event ModelRegistration(uint32 indexed modelId, uint16 indexed tier, uint256 minimumFee)
func (*GPUManagerFilterer) WatchModelTierUpdate ¶
func (_GPUManager *GPUManagerFilterer) WatchModelTierUpdate(opts *bind.WatchOpts, sink chan<- *GPUManagerModelTierUpdate, modelId []uint32) (event.Subscription, error)
WatchModelTierUpdate is a free log subscription operation binding the contract event 0x4ecbcd19e308970fa368644f223de37bf9800e203349b5873d83970277c30356.
Solidity: event ModelTierUpdate(uint32 indexed modelId, uint32 tier)
func (*GPUManagerFilterer) WatchModelUnregistration ¶
func (_GPUManager *GPUManagerFilterer) WatchModelUnregistration(opts *bind.WatchOpts, sink chan<- *GPUManagerModelUnregistration, modelId []uint32) (event.Subscription, error)
WatchModelUnregistration is a free log subscription operation binding the contract event 0x543408e7ce45c07531e494b8909d4d1b9dea7a8d8f5907b4673949a90fc56ba2.
Solidity: event ModelUnregistration(uint32 indexed modelId)
func (*GPUManagerFilterer) WatchOwnershipTransferred ¶
func (_GPUManager *GPUManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GPUManagerOwnershipTransferred, 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 (*GPUManagerFilterer) WatchPaused ¶
func (_GPUManager *GPUManagerFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *GPUManagerPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*GPUManagerFilterer) WatchPenaltyDurationUpdated ¶
func (_GPUManager *GPUManagerFilterer) WatchPenaltyDurationUpdated(opts *bind.WatchOpts, sink chan<- *GPUManagerPenaltyDurationUpdated) (event.Subscription, error)
WatchPenaltyDurationUpdated is a free log subscription operation binding the contract event 0xf7a437a25c636d2b29d0ba34f0f6870af14f44478eff2ac852f36030f2e2924e.
Solidity: event PenaltyDurationUpdated(uint40 oldDuration, uint40 newDuration)
func (*GPUManagerFilterer) WatchRestake ¶
func (_GPUManager *GPUManagerFilterer) WatchRestake(opts *bind.WatchOpts, sink chan<- *GPUManagerRestake, miner []common.Address, modelId []uint32) (event.Subscription, error)
WatchRestake is a free log subscription operation binding the contract event 0xd71961af2f46a633dc473cc0dda9e08783282fdb38c8f90482a143eb63b039e0.
Solidity: event Restake(address indexed miner, uint32 indexed modelId, uint256 restake)
func (*GPUManagerFilterer) WatchRewardClaim ¶
func (_GPUManager *GPUManagerFilterer) WatchRewardClaim(opts *bind.WatchOpts, sink chan<- *GPUManagerRewardClaim, 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 (*GPUManagerFilterer) WatchRewardPerEpoch ¶
func (_GPUManager *GPUManagerFilterer) WatchRewardPerEpoch(opts *bind.WatchOpts, sink chan<- *GPUManagerRewardPerEpoch) (event.Subscription, error)
WatchRewardPerEpoch is a free log subscription operation binding the contract event 0x3d731857045dfa7982ed8ff308eeda54c7e156ba99609db02c50b4485f64c463.
Solidity: event RewardPerEpoch(uint256 oldReward, uint256 newReward)
func (*GPUManagerFilterer) WatchUnpaused ¶
func (_GPUManager *GPUManagerFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *GPUManagerUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*GPUManagerFilterer) WatchUnstakeDelayTime ¶
func (_GPUManager *GPUManagerFilterer) WatchUnstakeDelayTime(opts *bind.WatchOpts, sink chan<- *GPUManagerUnstakeDelayTime) (event.Subscription, error)
WatchUnstakeDelayTime is a free log subscription operation binding the contract event 0xdf63c46e5024e57c66aafc6698e317c78589c870dca694678c89dd379c5fd490.
Solidity: event UnstakeDelayTime(uint256 oldDelayTime, uint256 newDelayTime)
type GPUManagerFinePercentageUpdated ¶
type GPUManagerFinePercentageUpdated struct { OldPercent uint16 NewPercent uint16 Raw types.Log // Blockchain specific contextual infos }
GPUManagerFinePercentageUpdated represents a FinePercentageUpdated event raised by the GPUManager contract.
type GPUManagerFinePercentageUpdatedIterator ¶
type GPUManagerFinePercentageUpdatedIterator struct { Event *GPUManagerFinePercentageUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerFinePercentageUpdatedIterator is returned from FilterFinePercentageUpdated and is used to iterate over the raw logs and unpacked data for FinePercentageUpdated events raised by the GPUManager contract.
func (*GPUManagerFinePercentageUpdatedIterator) Close ¶
func (it *GPUManagerFinePercentageUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerFinePercentageUpdatedIterator) Error ¶
func (it *GPUManagerFinePercentageUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerFinePercentageUpdatedIterator) Next ¶
func (it *GPUManagerFinePercentageUpdatedIterator) 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 GPUManagerFraudulentMinerPenalized ¶
type GPUManagerFraudulentMinerPenalized struct { Miner common.Address ModelId uint32 Treasury common.Address Fine *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerFraudulentMinerPenalized represents a FraudulentMinerPenalized event raised by the GPUManager contract.
type GPUManagerFraudulentMinerPenalizedIterator ¶
type GPUManagerFraudulentMinerPenalizedIterator struct { Event *GPUManagerFraudulentMinerPenalized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerFraudulentMinerPenalizedIterator is returned from FilterFraudulentMinerPenalized and is used to iterate over the raw logs and unpacked data for FraudulentMinerPenalized events raised by the GPUManager contract.
func (*GPUManagerFraudulentMinerPenalizedIterator) Close ¶
func (it *GPUManagerFraudulentMinerPenalizedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerFraudulentMinerPenalizedIterator) Error ¶
func (it *GPUManagerFraudulentMinerPenalizedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerFraudulentMinerPenalizedIterator) Next ¶
func (it *GPUManagerFraudulentMinerPenalizedIterator) 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 GPUManagerInitialized ¶
type GPUManagerInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
GPUManagerInitialized represents a Initialized event raised by the GPUManager contract.
type GPUManagerInitializedIterator ¶
type GPUManagerInitializedIterator struct { Event *GPUManagerInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the GPUManager contract.
func (*GPUManagerInitializedIterator) Close ¶
func (it *GPUManagerInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerInitializedIterator) Error ¶
func (it *GPUManagerInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerInitializedIterator) Next ¶
func (it *GPUManagerInitializedIterator) 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 GPUManagerMinFeeToUseUpdated ¶
type GPUManagerMinFeeToUseUpdated struct { OldValue *big.Int NewValue *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinFeeToUseUpdated represents a MinFeeToUseUpdated event raised by the GPUManager contract.
type GPUManagerMinFeeToUseUpdatedIterator ¶
type GPUManagerMinFeeToUseUpdatedIterator struct { Event *GPUManagerMinFeeToUseUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinFeeToUseUpdatedIterator is returned from FilterMinFeeToUseUpdated and is used to iterate over the raw logs and unpacked data for MinFeeToUseUpdated events raised by the GPUManager contract.
func (*GPUManagerMinFeeToUseUpdatedIterator) Close ¶
func (it *GPUManagerMinFeeToUseUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinFeeToUseUpdatedIterator) Error ¶
func (it *GPUManagerMinFeeToUseUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinFeeToUseUpdatedIterator) Next ¶
func (it *GPUManagerMinFeeToUseUpdatedIterator) 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 GPUManagerMinerDeactivated ¶
type GPUManagerMinerDeactivated struct { Miner common.Address ModelId uint32 ActiveTime *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerDeactivated represents a MinerDeactivated event raised by the GPUManager contract.
type GPUManagerMinerDeactivatedIterator ¶
type GPUManagerMinerDeactivatedIterator struct { Event *GPUManagerMinerDeactivated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerDeactivatedIterator is returned from FilterMinerDeactivated and is used to iterate over the raw logs and unpacked data for MinerDeactivated events raised by the GPUManager contract.
func (*GPUManagerMinerDeactivatedIterator) Close ¶
func (it *GPUManagerMinerDeactivatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerDeactivatedIterator) Error ¶
func (it *GPUManagerMinerDeactivatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerDeactivatedIterator) Next ¶
func (it *GPUManagerMinerDeactivatedIterator) 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 GPUManagerMinerExtraStake ¶
type GPUManagerMinerExtraStake struct { Miner common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerExtraStake represents a MinerExtraStake event raised by the GPUManager contract.
type GPUManagerMinerExtraStakeIterator ¶
type GPUManagerMinerExtraStakeIterator struct { Event *GPUManagerMinerExtraStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerExtraStakeIterator is returned from FilterMinerExtraStake and is used to iterate over the raw logs and unpacked data for MinerExtraStake events raised by the GPUManager contract.
func (*GPUManagerMinerExtraStakeIterator) Close ¶
func (it *GPUManagerMinerExtraStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerExtraStakeIterator) Error ¶
func (it *GPUManagerMinerExtraStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerExtraStakeIterator) Next ¶
func (it *GPUManagerMinerExtraStakeIterator) 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 GPUManagerMinerJoin ¶
type GPUManagerMinerJoin struct { Miner common.Address Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerJoin represents a MinerJoin event raised by the GPUManager contract.
type GPUManagerMinerJoinIterator ¶
type GPUManagerMinerJoinIterator struct { Event *GPUManagerMinerJoin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerJoinIterator is returned from FilterMinerJoin and is used to iterate over the raw logs and unpacked data for MinerJoin events raised by the GPUManager contract.
func (*GPUManagerMinerJoinIterator) Close ¶
func (it *GPUManagerMinerJoinIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerJoinIterator) Error ¶
func (it *GPUManagerMinerJoinIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerJoinIterator) Next ¶
func (it *GPUManagerMinerJoinIterator) 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 GPUManagerMinerRegistration ¶
type GPUManagerMinerRegistration struct { Miner common.Address Tier uint16 Value *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerRegistration represents a MinerRegistration event raised by the GPUManager contract.
type GPUManagerMinerRegistrationIterator ¶
type GPUManagerMinerRegistrationIterator struct { Event *GPUManagerMinerRegistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerRegistrationIterator is returned from FilterMinerRegistration and is used to iterate over the raw logs and unpacked data for MinerRegistration events raised by the GPUManager contract.
func (*GPUManagerMinerRegistrationIterator) Close ¶
func (it *GPUManagerMinerRegistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerRegistrationIterator) Error ¶
func (it *GPUManagerMinerRegistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerRegistrationIterator) Next ¶
func (it *GPUManagerMinerRegistrationIterator) 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 GPUManagerMinerUnregistration ¶
type GPUManagerMinerUnregistration struct { Miner common.Address Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerUnregistration represents a MinerUnregistration event raised by the GPUManager contract.
type GPUManagerMinerUnregistrationIterator ¶
type GPUManagerMinerUnregistrationIterator struct { Event *GPUManagerMinerUnregistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerUnregistrationIterator is returned from FilterMinerUnregistration and is used to iterate over the raw logs and unpacked data for MinerUnregistration events raised by the GPUManager contract.
func (*GPUManagerMinerUnregistrationIterator) Close ¶
func (it *GPUManagerMinerUnregistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerUnregistrationIterator) Error ¶
func (it *GPUManagerMinerUnregistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerUnregistrationIterator) Next ¶
func (it *GPUManagerMinerUnregistrationIterator) 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 GPUManagerMinerUnstake ¶
type GPUManagerMinerUnstake struct { Miner common.Address Stake *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerMinerUnstake represents a MinerUnstake event raised by the GPUManager contract.
type GPUManagerMinerUnstakeIterator ¶
type GPUManagerMinerUnstakeIterator struct { Event *GPUManagerMinerUnstake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerMinerUnstakeIterator is returned from FilterMinerUnstake and is used to iterate over the raw logs and unpacked data for MinerUnstake events raised by the GPUManager contract.
func (*GPUManagerMinerUnstakeIterator) Close ¶
func (it *GPUManagerMinerUnstakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerMinerUnstakeIterator) Error ¶
func (it *GPUManagerMinerUnstakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerMinerUnstakeIterator) Next ¶
func (it *GPUManagerMinerUnstakeIterator) 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 GPUManagerModelMinimumFeeUpdate ¶
type GPUManagerModelMinimumFeeUpdate struct { ModelId uint32 MinimumFee *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerModelMinimumFeeUpdate represents a ModelMinimumFeeUpdate event raised by the GPUManager contract.
type GPUManagerModelMinimumFeeUpdateIterator ¶
type GPUManagerModelMinimumFeeUpdateIterator struct { Event *GPUManagerModelMinimumFeeUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerModelMinimumFeeUpdateIterator is returned from FilterModelMinimumFeeUpdate and is used to iterate over the raw logs and unpacked data for ModelMinimumFeeUpdate events raised by the GPUManager contract.
func (*GPUManagerModelMinimumFeeUpdateIterator) Close ¶
func (it *GPUManagerModelMinimumFeeUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerModelMinimumFeeUpdateIterator) Error ¶
func (it *GPUManagerModelMinimumFeeUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerModelMinimumFeeUpdateIterator) Next ¶
func (it *GPUManagerModelMinimumFeeUpdateIterator) 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 GPUManagerModelRegistration ¶
type GPUManagerModelRegistration struct { ModelId uint32 Tier uint16 MinimumFee *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerModelRegistration represents a ModelRegistration event raised by the GPUManager contract.
type GPUManagerModelRegistrationIterator ¶
type GPUManagerModelRegistrationIterator struct { Event *GPUManagerModelRegistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerModelRegistrationIterator is returned from FilterModelRegistration and is used to iterate over the raw logs and unpacked data for ModelRegistration events raised by the GPUManager contract.
func (*GPUManagerModelRegistrationIterator) Close ¶
func (it *GPUManagerModelRegistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerModelRegistrationIterator) Error ¶
func (it *GPUManagerModelRegistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerModelRegistrationIterator) Next ¶
func (it *GPUManagerModelRegistrationIterator) 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 GPUManagerModelTierUpdate ¶
type GPUManagerModelTierUpdate struct { ModelId uint32 Tier uint32 Raw types.Log // Blockchain specific contextual infos }
GPUManagerModelTierUpdate represents a ModelTierUpdate event raised by the GPUManager contract.
type GPUManagerModelTierUpdateIterator ¶
type GPUManagerModelTierUpdateIterator struct { Event *GPUManagerModelTierUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerModelTierUpdateIterator is returned from FilterModelTierUpdate and is used to iterate over the raw logs and unpacked data for ModelTierUpdate events raised by the GPUManager contract.
func (*GPUManagerModelTierUpdateIterator) Close ¶
func (it *GPUManagerModelTierUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerModelTierUpdateIterator) Error ¶
func (it *GPUManagerModelTierUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerModelTierUpdateIterator) Next ¶
func (it *GPUManagerModelTierUpdateIterator) 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 GPUManagerModelUnregistration ¶
type GPUManagerModelUnregistration struct { ModelId uint32 Raw types.Log // Blockchain specific contextual infos }
GPUManagerModelUnregistration represents a ModelUnregistration event raised by the GPUManager contract.
type GPUManagerModelUnregistrationIterator ¶
type GPUManagerModelUnregistrationIterator struct { Event *GPUManagerModelUnregistration // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerModelUnregistrationIterator is returned from FilterModelUnregistration and is used to iterate over the raw logs and unpacked data for ModelUnregistration events raised by the GPUManager contract.
func (*GPUManagerModelUnregistrationIterator) Close ¶
func (it *GPUManagerModelUnregistrationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerModelUnregistrationIterator) Error ¶
func (it *GPUManagerModelUnregistrationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerModelUnregistrationIterator) Next ¶
func (it *GPUManagerModelUnregistrationIterator) 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 GPUManagerOwnershipTransferred ¶
type GPUManagerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
GPUManagerOwnershipTransferred represents a OwnershipTransferred event raised by the GPUManager contract.
type GPUManagerOwnershipTransferredIterator ¶
type GPUManagerOwnershipTransferredIterator struct { Event *GPUManagerOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the GPUManager contract.
func (*GPUManagerOwnershipTransferredIterator) Close ¶
func (it *GPUManagerOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerOwnershipTransferredIterator) Error ¶
func (it *GPUManagerOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerOwnershipTransferredIterator) Next ¶
func (it *GPUManagerOwnershipTransferredIterator) 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 GPUManagerPaused ¶
type GPUManagerPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
GPUManagerPaused represents a Paused event raised by the GPUManager contract.
type GPUManagerPausedIterator ¶
type GPUManagerPausedIterator struct { Event *GPUManagerPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the GPUManager contract.
func (*GPUManagerPausedIterator) Close ¶
func (it *GPUManagerPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerPausedIterator) Error ¶
func (it *GPUManagerPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerPausedIterator) Next ¶
func (it *GPUManagerPausedIterator) 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 GPUManagerPenaltyDurationUpdated ¶
type GPUManagerPenaltyDurationUpdated struct { OldDuration *big.Int NewDuration *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerPenaltyDurationUpdated represents a PenaltyDurationUpdated event raised by the GPUManager contract.
type GPUManagerPenaltyDurationUpdatedIterator ¶
type GPUManagerPenaltyDurationUpdatedIterator struct { Event *GPUManagerPenaltyDurationUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerPenaltyDurationUpdatedIterator is returned from FilterPenaltyDurationUpdated and is used to iterate over the raw logs and unpacked data for PenaltyDurationUpdated events raised by the GPUManager contract.
func (*GPUManagerPenaltyDurationUpdatedIterator) Close ¶
func (it *GPUManagerPenaltyDurationUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerPenaltyDurationUpdatedIterator) Error ¶
func (it *GPUManagerPenaltyDurationUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerPenaltyDurationUpdatedIterator) Next ¶
func (it *GPUManagerPenaltyDurationUpdatedIterator) 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 GPUManagerRaw ¶
type GPUManagerRaw struct {
Contract *GPUManager // Generic contract binding to access the raw methods on
}
GPUManagerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GPUManagerRaw) Call ¶
func (_GPUManager *GPUManagerRaw) 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 (*GPUManagerRaw) Transact ¶
func (_GPUManager *GPUManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GPUManagerRaw) Transfer ¶
func (_GPUManager *GPUManagerRaw) 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 GPUManagerRestake ¶
type GPUManagerRestake struct { Miner common.Address ModelId uint32 Restake *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerRestake represents a Restake event raised by the GPUManager contract.
type GPUManagerRestakeIterator ¶
type GPUManagerRestakeIterator struct { Event *GPUManagerRestake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerRestakeIterator is returned from FilterRestake and is used to iterate over the raw logs and unpacked data for Restake events raised by the GPUManager contract.
func (*GPUManagerRestakeIterator) Close ¶
func (it *GPUManagerRestakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerRestakeIterator) Error ¶
func (it *GPUManagerRestakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerRestakeIterator) Next ¶
func (it *GPUManagerRestakeIterator) 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 GPUManagerRewardClaim ¶
type GPUManagerRewardClaim struct { Worker common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerRewardClaim represents a RewardClaim event raised by the GPUManager contract.
type GPUManagerRewardClaimIterator ¶
type GPUManagerRewardClaimIterator struct { Event *GPUManagerRewardClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerRewardClaimIterator is returned from FilterRewardClaim and is used to iterate over the raw logs and unpacked data for RewardClaim events raised by the GPUManager contract.
func (*GPUManagerRewardClaimIterator) Close ¶
func (it *GPUManagerRewardClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerRewardClaimIterator) Error ¶
func (it *GPUManagerRewardClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerRewardClaimIterator) Next ¶
func (it *GPUManagerRewardClaimIterator) 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 GPUManagerRewardPerEpoch ¶
type GPUManagerRewardPerEpoch struct { OldReward *big.Int NewReward *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerRewardPerEpoch represents a RewardPerEpoch event raised by the GPUManager contract.
type GPUManagerRewardPerEpochIterator ¶
type GPUManagerRewardPerEpochIterator struct { Event *GPUManagerRewardPerEpoch // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerRewardPerEpochIterator is returned from FilterRewardPerEpoch and is used to iterate over the raw logs and unpacked data for RewardPerEpoch events raised by the GPUManager contract.
func (*GPUManagerRewardPerEpochIterator) Close ¶
func (it *GPUManagerRewardPerEpochIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerRewardPerEpochIterator) Error ¶
func (it *GPUManagerRewardPerEpochIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerRewardPerEpochIterator) Next ¶
func (it *GPUManagerRewardPerEpochIterator) 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 GPUManagerSession ¶
type GPUManagerSession struct { Contract *GPUManager // 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 }
GPUManagerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GPUManagerSession) BlocksPerEpoch ¶
func (_GPUManager *GPUManagerSession) BlocksPerEpoch() (*big.Int, error)
BlocksPerEpoch is a free data retrieval call binding the contract method 0xb2424e3f.
Solidity: function _blocksPerEpoch() view returns(uint256)
func (*GPUManagerSession) ClaimReward ¶
func (_GPUManager *GPUManagerSession) 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 (*GPUManagerSession) CurrentEpoch ¶
func (_GPUManager *GPUManagerSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x4c98e243.
Solidity: function _currentEpoch() view returns(uint40)
func (*GPUManagerSession) FinePercentage ¶
func (_GPUManager *GPUManagerSession) FinePercentage() (uint16, error)
FinePercentage is a free data retrieval call binding the contract method 0x92cdf038.
Solidity: function _finePercentage() view returns(uint16)
func (*GPUManagerSession) ForceChangeModelForMiner ¶
func (_GPUManager *GPUManagerSession) ForceChangeModelForMiner(miner common.Address, modelId uint32) (*types.Transaction, error)
ForceChangeModelForMiner is a paid mutator transaction binding the contract method 0x49f5ef62.
Solidity: function forceChangeModelForMiner(address miner, uint32 modelId) returns()
func (*GPUManagerSession) GetAllMinerUnstakeRequests ¶
func (_GPUManager *GPUManagerSession) GetAllMinerUnstakeRequests() (struct { UnstakeAddresses []common.Address UnstakeRequests []IGPUManagerUnstakeRequest }, error)
GetAllMinerUnstakeRequests is a free data retrieval call binding the contract method 0x9280f078.
Solidity: function getAllMinerUnstakeRequests() view returns(address[] unstakeAddresses, (uint256,uint40)[] unstakeRequests)
func (*GPUManagerSession) GetMinFeeToUse ¶
func (_GPUManager *GPUManagerSession) GetMinFeeToUse(modelId uint32) (*big.Int, error)
GetMinFeeToUse is a free data retrieval call binding the contract method 0x963a0278.
Solidity: function getMinFeeToUse(uint32 modelId) view returns(uint256)
func (*GPUManagerSession) GetMinerAddresses ¶
func (_GPUManager *GPUManagerSession) GetMinerAddresses() ([]common.Address, error)
GetMinerAddresses is a free data retrieval call binding the contract method 0xe8d6f2f1.
Solidity: function getMinerAddresses() view returns(address[])
func (*GPUManagerSession) GetMinerAddressesOfModel ¶
func (_GPUManager *GPUManagerSession) GetMinerAddressesOfModel(modelId uint32) ([]common.Address, error)
GetMinerAddressesOfModel is a free data retrieval call binding the contract method 0xa5f85cc8.
Solidity: function getMinerAddressesOfModel(uint32 modelId) view returns(address[])
func (*GPUManagerSession) GetModelIds ¶
func (_GPUManager *GPUManagerSession) GetModelIds() ([]*big.Int, error)
GetModelIds is a free data retrieval call binding the contract method 0x84881115.
Solidity: function getModelIds() view returns(uint256[])
func (*GPUManagerSession) GetModelInfo ¶
func (_GPUManager *GPUManagerSession) GetModelInfo(modelId uint32) (IGPUManagerModel, error)
GetModelInfo is a free data retrieval call binding the contract method 0x77495c20.
Solidity: function getModelInfo(uint32 modelId) view returns((uint256,uint32))
func (*GPUManagerSession) GetNOMiner ¶
func (_GPUManager *GPUManagerSession) GetNOMiner() (*big.Int, error)
GetNOMiner is a free data retrieval call binding the contract method 0xd2d89be8.
Solidity: function getNOMiner() view returns(uint256)
func (*GPUManagerSession) IncreaseMinerStake ¶
func (_GPUManager *GPUManagerSession) IncreaseMinerStake(wEAIAmt *big.Int) (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0xb1d1a56b.
Solidity: function increaseMinerStake(uint256 wEAIAmt) returns()
func (*GPUManagerSession) Initialize ¶
func (_GPUManager *GPUManagerSession) Initialize(wEAIToken_ common.Address, modelCollection_ common.Address, treasury_ common.Address, minerMinimumStake_ *big.Int, blocksPerEpoch_ *big.Int, rewardPerEpoch_ *big.Int, unstakeDelayTime_ *big.Int, penaltyDuration_ *big.Int, finePercentage_ uint16, minFeeToUse_ *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x04bb771f.
Solidity: function initialize(address wEAIToken_, address modelCollection_, address treasury_, uint256 minerMinimumStake_, uint256 blocksPerEpoch_, uint256 rewardPerEpoch_, uint40 unstakeDelayTime_, uint40 penaltyDuration_, uint16 finePercentage_, uint256 minFeeToUse_) returns()
func (*GPUManagerSession) IsActiveModel ¶
func (_GPUManager *GPUManagerSession) IsActiveModel(modelId uint32) (bool, error)
IsActiveModel is a free data retrieval call binding the contract method 0xbce2845a.
Solidity: function isActiveModel(uint32 modelId) view returns(bool)
func (*GPUManagerSession) JoinForMinting ¶
func (_GPUManager *GPUManagerSession) JoinForMinting() (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*GPUManagerSession) LastBlock ¶
func (_GPUManager *GPUManagerSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0xf712b279.
Solidity: function _lastBlock() view returns(uint256)
func (*GPUManagerSession) MaximumTier ¶
func (_GPUManager *GPUManagerSession) MaximumTier() (uint16, error)
MaximumTier is a free data retrieval call binding the contract method 0x88f12044.
Solidity: function _maximumTier() view returns(uint16)
func (*GPUManagerSession) MinFeeToUse ¶
func (_GPUManager *GPUManagerSession) MinFeeToUse() (*big.Int, error)
MinFeeToUse is a free data retrieval call binding the contract method 0xf6a74d05.
Solidity: function _minFeeToUse() view returns(uint256)
func (*GPUManagerSession) MinerMinimumStake ¶
func (_GPUManager *GPUManagerSession) MinerMinimumStake() (*big.Int, error)
MinerMinimumStake is a free data retrieval call binding the contract method 0xc5fc548d.
Solidity: function _minerMinimumStake() view returns(uint256)
func (*GPUManagerSession) MinerUnstakeRequests ¶
func (_GPUManager *GPUManagerSession) MinerUnstakeRequests(arg0 common.Address) (struct { Stake *big.Int UnlockAt *big.Int }, error)
MinerUnstakeRequests is a free data retrieval call binding the contract method 0x54eb2d2a.
Solidity: function _minerUnstakeRequests(address ) view returns(uint256 stake, uint40 unlockAt)
func (*GPUManagerSession) Miners ¶
func (_GPUManager *GPUManagerSession) Miners(arg0 common.Address) (struct { Stake *big.Int ModelId uint32 LastClaimedEpoch *big.Int ActiveTime *big.Int Tier uint16 }, error)
Miners is a free data retrieval call binding the contract method 0xb1a976ef.
Solidity: function _miners(address ) view returns(uint256 stake, uint32 modelId, uint40 lastClaimedEpoch, uint40 activeTime, uint16 tier)
func (*GPUManagerSession) ModelCollection ¶
func (_GPUManager *GPUManagerSession) ModelCollection() (common.Address, error)
ModelCollection is a free data retrieval call binding the contract method 0x1c49c2d6.
Solidity: function _modelCollection() view returns(address)
func (*GPUManagerSession) Models ¶
func (_GPUManager *GPUManagerSession) Models(arg0 uint32) (struct { MinimumFee *big.Int Tier uint32 }, error)
Models is a free data retrieval call binding the contract method 0x55f89085.
Solidity: function _models(uint32 ) view returns(uint256 minimumFee, uint32 tier)
func (*GPUManagerSession) Multiplier ¶
Multiplier is a free data retrieval call binding the contract method 0xa9b3f8b7.
Solidity: function multiplier(address miner) view returns(uint256)
func (*GPUManagerSession) Owner ¶
func (_GPUManager *GPUManagerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*GPUManagerSession) Paused ¶
func (_GPUManager *GPUManagerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*GPUManagerSession) PenaltyDuration ¶
func (_GPUManager *GPUManagerSession) PenaltyDuration() (*big.Int, error)
PenaltyDuration is a free data retrieval call binding the contract method 0xab692134.
Solidity: function _penaltyDuration() view returns(uint40)
func (*GPUManagerSession) PromptScheduler ¶
func (_GPUManager *GPUManagerSession) PromptScheduler() (common.Address, error)
PromptScheduler is a free data retrieval call binding the contract method 0x25abc002.
Solidity: function _promptScheduler() view returns(address)
func (*GPUManagerSession) Receive ¶
func (_GPUManager *GPUManagerSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GPUManagerSession) RegisterMiner ¶
func (_GPUManager *GPUManagerSession) RegisterMiner(tier uint16) (*types.Transaction, error)
RegisterMiner is a paid mutator transaction binding the contract method 0x1fdadcb7.
Solidity: function registerMiner(uint16 tier) returns()
func (*GPUManagerSession) RegisterMiner0 ¶
func (_GPUManager *GPUManagerSession) RegisterMiner0(tier uint16, modelId uint32) (*types.Transaction, error)
RegisterMiner0 is a paid mutator transaction binding the contract method 0x70423c2a.
Solidity: function registerMiner(uint16 tier, uint32 modelId) returns()
func (*GPUManagerSession) RegisterModel ¶
func (_GPUManager *GPUManagerSession) RegisterModel(modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0x88184775.
Solidity: function registerModel(uint32 modelId, uint16 tier, uint256 minimumFee) returns()
func (*GPUManagerSession) RenounceOwnership ¶
func (_GPUManager *GPUManagerSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GPUManagerSession) RestakeForMiner ¶
func (_GPUManager *GPUManagerSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
RestakeForMiner is a paid mutator transaction binding the contract method 0x4fb9bc1e.
Solidity: function restakeForMiner(uint16 tier) returns()
func (*GPUManagerSession) RewardInEpoch ¶
func (_GPUManager *GPUManagerSession) 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 0xa662f84d.
Solidity: function _rewardInEpoch(uint256 ) view returns(uint256 perfReward, uint256 epochReward, uint256 totalTaskCompleted, uint256 totalMiner)
func (*GPUManagerSession) RewardPerEpoch ¶
func (_GPUManager *GPUManagerSession) RewardPerEpoch() (*big.Int, error)
RewardPerEpoch is a free data retrieval call binding the contract method 0x62423112.
Solidity: function _rewardPerEpoch() view returns(uint256)
func (*GPUManagerSession) RewardToClaim ¶
func (_GPUManager *GPUManagerSession) 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 (*GPUManagerSession) SetBlocksPerEpoch ¶
func (_GPUManager *GPUManagerSession) 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 (*GPUManagerSession) SetFinePercentage ¶
func (_GPUManager *GPUManagerSession) SetFinePercentage(newPercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 newPercentage) returns()
func (*GPUManagerSession) SetMinFeeToUse ¶
func (_GPUManager *GPUManagerSession) SetMinFeeToUse(minFee *big.Int) (*types.Transaction, error)
SetMinFeeToUse is a paid mutator transaction binding the contract method 0xaf5e3be0.
Solidity: function setMinFeeToUse(uint256 minFee) returns()
func (*GPUManagerSession) SetMinerMinimumStake ¶
func (_GPUManager *GPUManagerSession) SetMinerMinimumStake(_minerMinimumStake *big.Int) (*types.Transaction, error)
SetMinerMinimumStake is a paid mutator transaction binding the contract method 0xe69d5b98.
Solidity: function setMinerMinimumStake(uint256 _minerMinimumStake) returns()
func (*GPUManagerSession) SetNewRewardInEpoch ¶
func (_GPUManager *GPUManagerSession) SetNewRewardInEpoch(newReward *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 newReward) returns()
func (*GPUManagerSession) SetPenaltyDuration ¶
func (_GPUManager *GPUManagerSession) SetPenaltyDuration(duration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 duration) returns()
func (*GPUManagerSession) SetPromptSchedulerAddress ¶
func (_GPUManager *GPUManagerSession) SetPromptSchedulerAddress(newPromptScheduler common.Address) (*types.Transaction, error)
SetPromptSchedulerAddress is a paid mutator transaction binding the contract method 0x00f19f45.
Solidity: function setPromptSchedulerAddress(address newPromptScheduler) returns()
func (*GPUManagerSession) SetUnstakeDelayTime ¶
func (_GPUManager *GPUManagerSession) SetUnstakeDelayTime(delayTime *big.Int) (*types.Transaction, error)
SetUnstakeDelayTime is a paid mutator transaction binding the contract method 0x466ca9f9.
Solidity: function setUnstakeDelayTime(uint40 delayTime) returns()
func (*GPUManagerSession) SetWEAIAddress ¶
func (_GPUManager *GPUManagerSession) SetWEAIAddress(wEAIToken common.Address) (*types.Transaction, error)
SetWEAIAddress is a paid mutator transaction binding the contract method 0x7362323c.
Solidity: function setWEAIAddress(address wEAIToken) returns()
func (*GPUManagerSession) SlashMiner ¶
func (_GPUManager *GPUManagerSession) 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 (*GPUManagerSession) TransferOwnership ¶
func (_GPUManager *GPUManagerSession) 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 (*GPUManagerSession) Treasury ¶
func (_GPUManager *GPUManagerSession) Treasury() (common.Address, error)
Treasury is a free data retrieval call binding the contract method 0xe319a3d9.
Solidity: function _treasury() view returns(address)
func (*GPUManagerSession) UnregisterMiner ¶
func (_GPUManager *GPUManagerSession) UnregisterMiner() (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*GPUManagerSession) UnregisterModel ¶
func (_GPUManager *GPUManagerSession) UnregisterModel(modelId uint32) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0x781f1453.
Solidity: function unregisterModel(uint32 modelId) returns()
func (*GPUManagerSession) UnstakeDelayTime ¶
func (_GPUManager *GPUManagerSession) UnstakeDelayTime() (*big.Int, error)
UnstakeDelayTime is a free data retrieval call binding the contract method 0x72b1f3e4.
Solidity: function _unstakeDelayTime() view returns(uint40)
func (*GPUManagerSession) UnstakeForMiner ¶
func (_GPUManager *GPUManagerSession) UnstakeForMiner() (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*GPUManagerSession) UpdateEpoch ¶
func (_GPUManager *GPUManagerSession) UpdateEpoch() (*types.Transaction, error)
UpdateEpoch is a paid mutator transaction binding the contract method 0x36f4fb02.
Solidity: function updateEpoch() returns()
func (*GPUManagerSession) UpdateModelMinimumFee ¶
func (_GPUManager *GPUManagerSession) UpdateModelMinimumFee(modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0x13ee7dbc.
Solidity: function updateModelMinimumFee(uint32 modelId, uint256 minimumFee) returns()
func (*GPUManagerSession) UpdateModelTier ¶
func (_GPUManager *GPUManagerSession) UpdateModelTier(modelId uint32, tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0xfdf22bc8.
Solidity: function updateModelTier(uint32 modelId, uint32 tier) returns()
func (*GPUManagerSession) ValidateMiner ¶
func (_GPUManager *GPUManagerSession) ValidateMiner(miner common.Address) (*types.Transaction, error)
ValidateMiner is a paid mutator transaction binding the contract method 0xdfecce6f.
Solidity: function validateMiner(address miner) returns()
func (*GPUManagerSession) ValidateModelAndChooseRandomMiner ¶
func (_GPUManager *GPUManagerSession) ValidateModelAndChooseRandomMiner(modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
ValidateModelAndChooseRandomMiner is a paid mutator transaction binding the contract method 0xe13f220e.
Solidity: function validateModelAndChooseRandomMiner(uint32 modelId, uint256 minersRequired) returns(address, uint256)
type GPUManagerTransactor ¶
type GPUManagerTransactor struct {
// contains filtered or unexported fields
}
GPUManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGPUManagerTransactor ¶
func NewGPUManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*GPUManagerTransactor, error)
NewGPUManagerTransactor creates a new write-only instance of GPUManager, bound to a specific deployed contract.
func (*GPUManagerTransactor) ClaimReward ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) ForceChangeModelForMiner ¶
func (_GPUManager *GPUManagerTransactor) ForceChangeModelForMiner(opts *bind.TransactOpts, miner common.Address, modelId uint32) (*types.Transaction, error)
ForceChangeModelForMiner is a paid mutator transaction binding the contract method 0x49f5ef62.
Solidity: function forceChangeModelForMiner(address miner, uint32 modelId) returns()
func (*GPUManagerTransactor) IncreaseMinerStake ¶
func (_GPUManager *GPUManagerTransactor) IncreaseMinerStake(opts *bind.TransactOpts, wEAIAmt *big.Int) (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0xb1d1a56b.
Solidity: function increaseMinerStake(uint256 wEAIAmt) returns()
func (*GPUManagerTransactor) Initialize ¶
func (_GPUManager *GPUManagerTransactor) Initialize(opts *bind.TransactOpts, wEAIToken_ common.Address, modelCollection_ common.Address, treasury_ common.Address, minerMinimumStake_ *big.Int, blocksPerEpoch_ *big.Int, rewardPerEpoch_ *big.Int, unstakeDelayTime_ *big.Int, penaltyDuration_ *big.Int, finePercentage_ uint16, minFeeToUse_ *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x04bb771f.
Solidity: function initialize(address wEAIToken_, address modelCollection_, address treasury_, uint256 minerMinimumStake_, uint256 blocksPerEpoch_, uint256 rewardPerEpoch_, uint40 unstakeDelayTime_, uint40 penaltyDuration_, uint16 finePercentage_, uint256 minFeeToUse_) returns()
func (*GPUManagerTransactor) JoinForMinting ¶
func (_GPUManager *GPUManagerTransactor) JoinForMinting(opts *bind.TransactOpts) (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*GPUManagerTransactor) Receive ¶
func (_GPUManager *GPUManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GPUManagerTransactor) RegisterMiner ¶
func (_GPUManager *GPUManagerTransactor) 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) returns()
func (*GPUManagerTransactor) RegisterMiner0 ¶
func (_GPUManager *GPUManagerTransactor) RegisterMiner0(opts *bind.TransactOpts, tier uint16, modelId uint32) (*types.Transaction, error)
RegisterMiner0 is a paid mutator transaction binding the contract method 0x70423c2a.
Solidity: function registerMiner(uint16 tier, uint32 modelId) returns()
func (*GPUManagerTransactor) RegisterModel ¶
func (_GPUManager *GPUManagerTransactor) RegisterModel(opts *bind.TransactOpts, modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0x88184775.
Solidity: function registerModel(uint32 modelId, uint16 tier, uint256 minimumFee) returns()
func (*GPUManagerTransactor) RenounceOwnership ¶
func (_GPUManager *GPUManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GPUManagerTransactor) RestakeForMiner ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) RewardToClaim ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) SetBlocksPerEpoch ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) SetFinePercentage ¶
func (_GPUManager *GPUManagerTransactor) SetFinePercentage(opts *bind.TransactOpts, newPercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 newPercentage) returns()
func (*GPUManagerTransactor) SetMinFeeToUse ¶
func (_GPUManager *GPUManagerTransactor) SetMinFeeToUse(opts *bind.TransactOpts, minFee *big.Int) (*types.Transaction, error)
SetMinFeeToUse is a paid mutator transaction binding the contract method 0xaf5e3be0.
Solidity: function setMinFeeToUse(uint256 minFee) returns()
func (*GPUManagerTransactor) SetMinerMinimumStake ¶
func (_GPUManager *GPUManagerTransactor) SetMinerMinimumStake(opts *bind.TransactOpts, _minerMinimumStake *big.Int) (*types.Transaction, error)
SetMinerMinimumStake is a paid mutator transaction binding the contract method 0xe69d5b98.
Solidity: function setMinerMinimumStake(uint256 _minerMinimumStake) returns()
func (*GPUManagerTransactor) SetNewRewardInEpoch ¶
func (_GPUManager *GPUManagerTransactor) SetNewRewardInEpoch(opts *bind.TransactOpts, newReward *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 newReward) returns()
func (*GPUManagerTransactor) SetPenaltyDuration ¶
func (_GPUManager *GPUManagerTransactor) SetPenaltyDuration(opts *bind.TransactOpts, duration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 duration) returns()
func (*GPUManagerTransactor) SetPromptSchedulerAddress ¶
func (_GPUManager *GPUManagerTransactor) SetPromptSchedulerAddress(opts *bind.TransactOpts, newPromptScheduler common.Address) (*types.Transaction, error)
SetPromptSchedulerAddress is a paid mutator transaction binding the contract method 0x00f19f45.
Solidity: function setPromptSchedulerAddress(address newPromptScheduler) returns()
func (*GPUManagerTransactor) SetUnstakeDelayTime ¶
func (_GPUManager *GPUManagerTransactor) SetUnstakeDelayTime(opts *bind.TransactOpts, delayTime *big.Int) (*types.Transaction, error)
SetUnstakeDelayTime is a paid mutator transaction binding the contract method 0x466ca9f9.
Solidity: function setUnstakeDelayTime(uint40 delayTime) returns()
func (*GPUManagerTransactor) SetWEAIAddress ¶
func (_GPUManager *GPUManagerTransactor) SetWEAIAddress(opts *bind.TransactOpts, wEAIToken common.Address) (*types.Transaction, error)
SetWEAIAddress is a paid mutator transaction binding the contract method 0x7362323c.
Solidity: function setWEAIAddress(address wEAIToken) returns()
func (*GPUManagerTransactor) SlashMiner ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) TransferOwnership ¶
func (_GPUManager *GPUManagerTransactor) 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 (*GPUManagerTransactor) UnregisterMiner ¶
func (_GPUManager *GPUManagerTransactor) UnregisterMiner(opts *bind.TransactOpts) (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*GPUManagerTransactor) UnregisterModel ¶
func (_GPUManager *GPUManagerTransactor) UnregisterModel(opts *bind.TransactOpts, modelId uint32) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0x781f1453.
Solidity: function unregisterModel(uint32 modelId) returns()
func (*GPUManagerTransactor) UnstakeForMiner ¶
func (_GPUManager *GPUManagerTransactor) UnstakeForMiner(opts *bind.TransactOpts) (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*GPUManagerTransactor) UpdateEpoch ¶
func (_GPUManager *GPUManagerTransactor) UpdateEpoch(opts *bind.TransactOpts) (*types.Transaction, error)
UpdateEpoch is a paid mutator transaction binding the contract method 0x36f4fb02.
Solidity: function updateEpoch() returns()
func (*GPUManagerTransactor) UpdateModelMinimumFee ¶
func (_GPUManager *GPUManagerTransactor) UpdateModelMinimumFee(opts *bind.TransactOpts, modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0x13ee7dbc.
Solidity: function updateModelMinimumFee(uint32 modelId, uint256 minimumFee) returns()
func (*GPUManagerTransactor) UpdateModelTier ¶
func (_GPUManager *GPUManagerTransactor) UpdateModelTier(opts *bind.TransactOpts, modelId uint32, tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0xfdf22bc8.
Solidity: function updateModelTier(uint32 modelId, uint32 tier) returns()
func (*GPUManagerTransactor) ValidateMiner ¶
func (_GPUManager *GPUManagerTransactor) ValidateMiner(opts *bind.TransactOpts, miner common.Address) (*types.Transaction, error)
ValidateMiner is a paid mutator transaction binding the contract method 0xdfecce6f.
Solidity: function validateMiner(address miner) returns()
func (*GPUManagerTransactor) ValidateModelAndChooseRandomMiner ¶
func (_GPUManager *GPUManagerTransactor) ValidateModelAndChooseRandomMiner(opts *bind.TransactOpts, modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
ValidateModelAndChooseRandomMiner is a paid mutator transaction binding the contract method 0xe13f220e.
Solidity: function validateModelAndChooseRandomMiner(uint32 modelId, uint256 minersRequired) returns(address, uint256)
type GPUManagerTransactorRaw ¶
type GPUManagerTransactorRaw struct {
Contract *GPUManagerTransactor // Generic write-only contract binding to access the raw methods on
}
GPUManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GPUManagerTransactorRaw) Transact ¶
func (_GPUManager *GPUManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GPUManagerTransactorRaw) Transfer ¶
func (_GPUManager *GPUManagerTransactorRaw) 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 GPUManagerTransactorSession ¶
type GPUManagerTransactorSession struct { Contract *GPUManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GPUManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GPUManagerTransactorSession) ClaimReward ¶
func (_GPUManager *GPUManagerTransactorSession) 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 (*GPUManagerTransactorSession) ForceChangeModelForMiner ¶
func (_GPUManager *GPUManagerTransactorSession) ForceChangeModelForMiner(miner common.Address, modelId uint32) (*types.Transaction, error)
ForceChangeModelForMiner is a paid mutator transaction binding the contract method 0x49f5ef62.
Solidity: function forceChangeModelForMiner(address miner, uint32 modelId) returns()
func (*GPUManagerTransactorSession) IncreaseMinerStake ¶
func (_GPUManager *GPUManagerTransactorSession) IncreaseMinerStake(wEAIAmt *big.Int) (*types.Transaction, error)
IncreaseMinerStake is a paid mutator transaction binding the contract method 0xb1d1a56b.
Solidity: function increaseMinerStake(uint256 wEAIAmt) returns()
func (*GPUManagerTransactorSession) Initialize ¶
func (_GPUManager *GPUManagerTransactorSession) Initialize(wEAIToken_ common.Address, modelCollection_ common.Address, treasury_ common.Address, minerMinimumStake_ *big.Int, blocksPerEpoch_ *big.Int, rewardPerEpoch_ *big.Int, unstakeDelayTime_ *big.Int, penaltyDuration_ *big.Int, finePercentage_ uint16, minFeeToUse_ *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x04bb771f.
Solidity: function initialize(address wEAIToken_, address modelCollection_, address treasury_, uint256 minerMinimumStake_, uint256 blocksPerEpoch_, uint256 rewardPerEpoch_, uint40 unstakeDelayTime_, uint40 penaltyDuration_, uint16 finePercentage_, uint256 minFeeToUse_) returns()
func (*GPUManagerTransactorSession) JoinForMinting ¶
func (_GPUManager *GPUManagerTransactorSession) JoinForMinting() (*types.Transaction, error)
JoinForMinting is a paid mutator transaction binding the contract method 0x1a8ef584.
Solidity: function joinForMinting() returns()
func (*GPUManagerTransactorSession) Receive ¶
func (_GPUManager *GPUManagerTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*GPUManagerTransactorSession) RegisterMiner ¶
func (_GPUManager *GPUManagerTransactorSession) RegisterMiner(tier uint16) (*types.Transaction, error)
RegisterMiner is a paid mutator transaction binding the contract method 0x1fdadcb7.
Solidity: function registerMiner(uint16 tier) returns()
func (*GPUManagerTransactorSession) RegisterMiner0 ¶
func (_GPUManager *GPUManagerTransactorSession) RegisterMiner0(tier uint16, modelId uint32) (*types.Transaction, error)
RegisterMiner0 is a paid mutator transaction binding the contract method 0x70423c2a.
Solidity: function registerMiner(uint16 tier, uint32 modelId) returns()
func (*GPUManagerTransactorSession) RegisterModel ¶
func (_GPUManager *GPUManagerTransactorSession) RegisterModel(modelId uint32, tier uint16, minimumFee *big.Int) (*types.Transaction, error)
RegisterModel is a paid mutator transaction binding the contract method 0x88184775.
Solidity: function registerModel(uint32 modelId, uint16 tier, uint256 minimumFee) returns()
func (*GPUManagerTransactorSession) RenounceOwnership ¶
func (_GPUManager *GPUManagerTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*GPUManagerTransactorSession) RestakeForMiner ¶
func (_GPUManager *GPUManagerTransactorSession) RestakeForMiner(tier uint16) (*types.Transaction, error)
RestakeForMiner is a paid mutator transaction binding the contract method 0x4fb9bc1e.
Solidity: function restakeForMiner(uint16 tier) returns()
func (*GPUManagerTransactorSession) RewardToClaim ¶
func (_GPUManager *GPUManagerTransactorSession) 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 (*GPUManagerTransactorSession) SetBlocksPerEpoch ¶
func (_GPUManager *GPUManagerTransactorSession) 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 (*GPUManagerTransactorSession) SetFinePercentage ¶
func (_GPUManager *GPUManagerTransactorSession) SetFinePercentage(newPercentage uint16) (*types.Transaction, error)
SetFinePercentage is a paid mutator transaction binding the contract method 0x431a4457.
Solidity: function setFinePercentage(uint16 newPercentage) returns()
func (*GPUManagerTransactorSession) SetMinFeeToUse ¶
func (_GPUManager *GPUManagerTransactorSession) SetMinFeeToUse(minFee *big.Int) (*types.Transaction, error)
SetMinFeeToUse is a paid mutator transaction binding the contract method 0xaf5e3be0.
Solidity: function setMinFeeToUse(uint256 minFee) returns()
func (*GPUManagerTransactorSession) SetMinerMinimumStake ¶
func (_GPUManager *GPUManagerTransactorSession) SetMinerMinimumStake(_minerMinimumStake *big.Int) (*types.Transaction, error)
SetMinerMinimumStake is a paid mutator transaction binding the contract method 0xe69d5b98.
Solidity: function setMinerMinimumStake(uint256 _minerMinimumStake) returns()
func (*GPUManagerTransactorSession) SetNewRewardInEpoch ¶
func (_GPUManager *GPUManagerTransactorSession) SetNewRewardInEpoch(newReward *big.Int) (*types.Transaction, error)
SetNewRewardInEpoch is a paid mutator transaction binding the contract method 0xe32bd90c.
Solidity: function setNewRewardInEpoch(uint256 newReward) returns()
func (*GPUManagerTransactorSession) SetPenaltyDuration ¶
func (_GPUManager *GPUManagerTransactorSession) SetPenaltyDuration(duration *big.Int) (*types.Transaction, error)
SetPenaltyDuration is a paid mutator transaction binding the contract method 0x885b050f.
Solidity: function setPenaltyDuration(uint40 duration) returns()
func (*GPUManagerTransactorSession) SetPromptSchedulerAddress ¶
func (_GPUManager *GPUManagerTransactorSession) SetPromptSchedulerAddress(newPromptScheduler common.Address) (*types.Transaction, error)
SetPromptSchedulerAddress is a paid mutator transaction binding the contract method 0x00f19f45.
Solidity: function setPromptSchedulerAddress(address newPromptScheduler) returns()
func (*GPUManagerTransactorSession) SetUnstakeDelayTime ¶
func (_GPUManager *GPUManagerTransactorSession) SetUnstakeDelayTime(delayTime *big.Int) (*types.Transaction, error)
SetUnstakeDelayTime is a paid mutator transaction binding the contract method 0x466ca9f9.
Solidity: function setUnstakeDelayTime(uint40 delayTime) returns()
func (*GPUManagerTransactorSession) SetWEAIAddress ¶
func (_GPUManager *GPUManagerTransactorSession) SetWEAIAddress(wEAIToken common.Address) (*types.Transaction, error)
SetWEAIAddress is a paid mutator transaction binding the contract method 0x7362323c.
Solidity: function setWEAIAddress(address wEAIToken) returns()
func (*GPUManagerTransactorSession) SlashMiner ¶
func (_GPUManager *GPUManagerTransactorSession) 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 (*GPUManagerTransactorSession) TransferOwnership ¶
func (_GPUManager *GPUManagerTransactorSession) 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 (*GPUManagerTransactorSession) UnregisterMiner ¶
func (_GPUManager *GPUManagerTransactorSession) UnregisterMiner() (*types.Transaction, error)
UnregisterMiner is a paid mutator transaction binding the contract method 0x656a1b20.
Solidity: function unregisterMiner() returns()
func (*GPUManagerTransactorSession) UnregisterModel ¶
func (_GPUManager *GPUManagerTransactorSession) UnregisterModel(modelId uint32) (*types.Transaction, error)
UnregisterModel is a paid mutator transaction binding the contract method 0x781f1453.
Solidity: function unregisterModel(uint32 modelId) returns()
func (*GPUManagerTransactorSession) UnstakeForMiner ¶
func (_GPUManager *GPUManagerTransactorSession) UnstakeForMiner() (*types.Transaction, error)
UnstakeForMiner is a paid mutator transaction binding the contract method 0x73df250d.
Solidity: function unstakeForMiner() returns()
func (*GPUManagerTransactorSession) UpdateEpoch ¶
func (_GPUManager *GPUManagerTransactorSession) UpdateEpoch() (*types.Transaction, error)
UpdateEpoch is a paid mutator transaction binding the contract method 0x36f4fb02.
Solidity: function updateEpoch() returns()
func (*GPUManagerTransactorSession) UpdateModelMinimumFee ¶
func (_GPUManager *GPUManagerTransactorSession) UpdateModelMinimumFee(modelId uint32, minimumFee *big.Int) (*types.Transaction, error)
UpdateModelMinimumFee is a paid mutator transaction binding the contract method 0x13ee7dbc.
Solidity: function updateModelMinimumFee(uint32 modelId, uint256 minimumFee) returns()
func (*GPUManagerTransactorSession) UpdateModelTier ¶
func (_GPUManager *GPUManagerTransactorSession) UpdateModelTier(modelId uint32, tier uint32) (*types.Transaction, error)
UpdateModelTier is a paid mutator transaction binding the contract method 0xfdf22bc8.
Solidity: function updateModelTier(uint32 modelId, uint32 tier) returns()
func (*GPUManagerTransactorSession) ValidateMiner ¶
func (_GPUManager *GPUManagerTransactorSession) ValidateMiner(miner common.Address) (*types.Transaction, error)
ValidateMiner is a paid mutator transaction binding the contract method 0xdfecce6f.
Solidity: function validateMiner(address miner) returns()
func (*GPUManagerTransactorSession) ValidateModelAndChooseRandomMiner ¶
func (_GPUManager *GPUManagerTransactorSession) ValidateModelAndChooseRandomMiner(modelId uint32, minersRequired *big.Int) (*types.Transaction, error)
ValidateModelAndChooseRandomMiner is a paid mutator transaction binding the contract method 0xe13f220e.
Solidity: function validateModelAndChooseRandomMiner(uint32 modelId, uint256 minersRequired) returns(address, uint256)
type GPUManagerUnpaused ¶
type GPUManagerUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
GPUManagerUnpaused represents a Unpaused event raised by the GPUManager contract.
type GPUManagerUnpausedIterator ¶
type GPUManagerUnpausedIterator struct { Event *GPUManagerUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the GPUManager contract.
func (*GPUManagerUnpausedIterator) Close ¶
func (it *GPUManagerUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerUnpausedIterator) Error ¶
func (it *GPUManagerUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerUnpausedIterator) Next ¶
func (it *GPUManagerUnpausedIterator) 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 GPUManagerUnstakeDelayTime ¶
type GPUManagerUnstakeDelayTime struct { OldDelayTime *big.Int NewDelayTime *big.Int Raw types.Log // Blockchain specific contextual infos }
GPUManagerUnstakeDelayTime represents a UnstakeDelayTime event raised by the GPUManager contract.
type GPUManagerUnstakeDelayTimeIterator ¶
type GPUManagerUnstakeDelayTimeIterator struct { Event *GPUManagerUnstakeDelayTime // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GPUManagerUnstakeDelayTimeIterator is returned from FilterUnstakeDelayTime and is used to iterate over the raw logs and unpacked data for UnstakeDelayTime events raised by the GPUManager contract.
func (*GPUManagerUnstakeDelayTimeIterator) Close ¶
func (it *GPUManagerUnstakeDelayTimeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GPUManagerUnstakeDelayTimeIterator) Error ¶
func (it *GPUManagerUnstakeDelayTimeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GPUManagerUnstakeDelayTimeIterator) Next ¶
func (it *GPUManagerUnstakeDelayTimeIterator) 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 IGPUManagerModel ¶
IGPUManagerModel is an auto generated low-level Go binding around an user-defined struct.