Documentation ¶
Index ¶
- Constants
- type IOTX
- type IOTXApproval
- type IOTXApprovalIterator
- type IOTXCaller
- func (_IOTX *IOTXCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_IOTX *IOTXCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
- func (_IOTX *IOTXCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_IOTX *IOTXCaller) Name(opts *bind.CallOpts) (string, error)
- func (_IOTX *IOTXCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_IOTX *IOTXCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_IOTX *IOTXCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_IOTX *IOTXCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type IOTXCallerRaw
- type IOTXCallerSession
- func (_IOTX *IOTXCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_IOTX *IOTXCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_IOTX *IOTXCallerSession) Decimals() (uint8, error)
- func (_IOTX *IOTXCallerSession) Name() (string, error)
- func (_IOTX *IOTXCallerSession) Owner() (common.Address, error)
- func (_IOTX *IOTXCallerSession) Paused() (bool, error)
- func (_IOTX *IOTXCallerSession) Symbol() (string, error)
- func (_IOTX *IOTXCallerSession) TotalSupply() (*big.Int, error)
- type IOTXFilterer
- func (_IOTX *IOTXFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IOTXApprovalIterator, error)
- func (_IOTX *IOTXFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*IOTXOwnershipTransferredIterator, error)
- func (_IOTX *IOTXFilterer) FilterPause(opts *bind.FilterOpts) (*IOTXPauseIterator, error)
- func (_IOTX *IOTXFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IOTXTransferIterator, error)
- func (_IOTX *IOTXFilterer) FilterUnpause(opts *bind.FilterOpts) (*IOTXUnpauseIterator, error)
- func (_IOTX *IOTXFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IOTXApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_IOTX *IOTXFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *IOTXOwnershipTransferred, ...) (event.Subscription, error)
- func (_IOTX *IOTXFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *IOTXPause) (event.Subscription, error)
- func (_IOTX *IOTXFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IOTXTransfer, from []common.Address, ...) (event.Subscription, error)
- func (_IOTX *IOTXFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *IOTXUnpause) (event.Subscription, error)
- type IOTXOwnershipTransferred
- type IOTXOwnershipTransferredIterator
- type IOTXPause
- type IOTXPauseIterator
- type IOTXRaw
- func (_IOTX *IOTXRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_IOTX *IOTXRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IOTX *IOTXRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IOTXSession
- func (_IOTX *IOTXSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_IOTX *IOTXSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_IOTX *IOTXSession) Decimals() (uint8, error)
- func (_IOTX *IOTXSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXSession) Name() (string, error)
- func (_IOTX *IOTXSession) Owner() (common.Address, error)
- func (_IOTX *IOTXSession) Pause() (*types.Transaction, error)
- func (_IOTX *IOTXSession) Paused() (bool, error)
- func (_IOTX *IOTXSession) Symbol() (string, error)
- func (_IOTX *IOTXSession) TotalSupply() (*big.Int, error)
- func (_IOTX *IOTXSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_IOTX *IOTXSession) Unpause() (*types.Transaction, error)
- type IOTXTransactor
- func (_IOTX *IOTXTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) DecreaseApproval(opts *bind.TransactOpts, _spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) IncreaseApproval(opts *bind.TransactOpts, _spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_IOTX *IOTXTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- type IOTXTransactorRaw
- type IOTXTransactorSession
- func (_IOTX *IOTXTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) Pause() (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_IOTX *IOTXTransactorSession) Unpause() (*types.Transaction, error)
- type IOTXTransfer
- type IOTXTransferIterator
- type IOTXUnpause
- type IOTXUnpauseIterator
- type Register
- type RegisterCaller
- func (_Register *RegisterCaller) AddrToIdx(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Register *RegisterCaller) CandidateCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Register *RegisterCaller) Candidates(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Register *RegisterCaller) FeeCollector(opts *bind.CallOpts) (common.Address, error)
- func (_Register *RegisterCaller) GetAllCandidates(opts *bind.CallOpts, _startIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Register *RegisterCaller) IoAddrToIdx(opts *bind.CallOpts, arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (_Register *RegisterCaller) IsOwner(opts *bind.CallOpts, _address common.Address) (bool, error)
- func (_Register *RegisterCaller) NameRegistrationFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Register *RegisterCaller) NameToIdx(opts *bind.CallOpts, arg0 [12]byte) (*big.Int, error)
- func (_Register *RegisterCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Register *RegisterCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Register *RegisterCaller) Token(opts *bind.CallOpts) (common.Address, error)
- type RegisterCallerRaw
- type RegisterCallerSession
- func (_Register *RegisterCallerSession) AddrToIdx(arg0 common.Address) (*big.Int, error)
- func (_Register *RegisterCallerSession) CandidateCount() (*big.Int, error)
- func (_Register *RegisterCallerSession) Candidates(arg0 *big.Int) (struct{ ... }, error)
- func (_Register *RegisterCallerSession) FeeCollector() (common.Address, error)
- func (_Register *RegisterCallerSession) GetAllCandidates(_startIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Register *RegisterCallerSession) IoAddrToIdx(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (_Register *RegisterCallerSession) IsOwner(_address common.Address) (bool, error)
- func (_Register *RegisterCallerSession) NameRegistrationFee() (*big.Int, error)
- func (_Register *RegisterCallerSession) NameToIdx(arg0 [12]byte) (*big.Int, error)
- func (_Register *RegisterCallerSession) Owner() (common.Address, error)
- func (_Register *RegisterCallerSession) Paused() (bool, error)
- func (_Register *RegisterCallerSession) Token() (common.Address, error)
- type RegisterFilterer
- func (_Register *RegisterFilterer) FilterPause(opts *bind.FilterOpts) (*RegisterPauseIterator, error)
- func (_Register *RegisterFilterer) FilterRegistered(opts *bind.FilterOpts) (*RegisterRegisteredIterator, error)
- func (_Register *RegisterFilterer) FilterUnpause(opts *bind.FilterOpts) (*RegisterUnpauseIterator, error)
- func (_Register *RegisterFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *RegisterPause) (event.Subscription, error)
- func (_Register *RegisterFilterer) WatchRegistered(opts *bind.WatchOpts, sink chan<- *RegisterRegistered) (event.Subscription, error)
- func (_Register *RegisterFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *RegisterUnpause) (event.Subscription, error)
- type RegisterPause
- type RegisterPauseIterator
- type RegisterRaw
- func (_Register *RegisterRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Register *RegisterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Register *RegisterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RegisterRegistered
- type RegisterRegisteredIterator
- type RegisterSession
- func (_Register *RegisterSession) AddrToIdx(arg0 common.Address) (*big.Int, error)
- func (_Register *RegisterSession) CandidateCount() (*big.Int, error)
- func (_Register *RegisterSession) Candidates(arg0 *big.Int) (struct{ ... }, error)
- func (_Register *RegisterSession) FeeCollector() (common.Address, error)
- func (_Register *RegisterSession) GetAllCandidates(_startIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Register *RegisterSession) IoAddrToIdx(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (_Register *RegisterSession) IsOwner(_address common.Address) (bool, error)
- func (_Register *RegisterSession) NameRegistrationFee() (*big.Int, error)
- func (_Register *RegisterSession) NameToIdx(arg0 [12]byte) (*big.Int, error)
- func (_Register *RegisterSession) Owner() (common.Address, error)
- func (_Register *RegisterSession) Pause() (*types.Transaction, error)
- func (_Register *RegisterSession) Paused() (bool, error)
- func (_Register *RegisterSession) Register(_name [12]byte, _ioOperatorAddr string, _ioRewardAddr string, _data []byte) (*types.Transaction, error)
- func (_Register *RegisterSession) SetFeeCollector(_addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterSession) SetNameAddress(_name [12]byte, _addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterSession) SetNameRegistrationFee(_fee *big.Int) (*types.Transaction, error)
- func (_Register *RegisterSession) SetWeight(_name [12]byte, _weight *big.Int) (*types.Transaction, error)
- func (_Register *RegisterSession) Token() (common.Address, error)
- func (_Register *RegisterSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_Register *RegisterSession) Unpause() (*types.Transaction, error)
- type RegisterTransactor
- func (_Register *RegisterTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Register *RegisterTransactor) Register(opts *bind.TransactOpts, _name [12]byte, _ioOperatorAddr string, ...) (*types.Transaction, error)
- func (_Register *RegisterTransactor) SetFeeCollector(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactor) SetNameAddress(opts *bind.TransactOpts, _name [12]byte, _addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactor) SetNameRegistrationFee(opts *bind.TransactOpts, _fee *big.Int) (*types.Transaction, error)
- func (_Register *RegisterTransactor) SetWeight(opts *bind.TransactOpts, _name [12]byte, _weight *big.Int) (*types.Transaction, error)
- func (_Register *RegisterTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- type RegisterTransactorRaw
- type RegisterTransactorSession
- func (_Register *RegisterTransactorSession) Pause() (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) Register(_name [12]byte, _ioOperatorAddr string, _ioRewardAddr string, _data []byte) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) SetFeeCollector(_addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) SetNameAddress(_name [12]byte, _addr common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) SetNameRegistrationFee(_fee *big.Int) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) SetWeight(_name [12]byte, _weight *big.Int) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_Register *RegisterTransactorSession) Unpause() (*types.Transaction, error)
- type RegisterUnpause
- type RegisterUnpauseIterator
- type Staking
- type StakingBucketCreated
- type StakingBucketCreatedIterator
- type StakingBucketUnstake
- type StakingBucketUnstakeIterator
- type StakingBucketUpdated
- type StakingBucketUpdatedIterator
- type StakingBucketWithdraw
- type StakingBucketWithdrawIterator
- type StakingCaller
- func (_Staking *StakingCaller) Buckets(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetActiveBucketCreateTimes(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetActiveBucketIdx(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetActiveBuckets(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCaller) GetBucketIndexesByAddress(opts *bind.CallOpts, _owner common.Address) ([]*big.Int, error)
- func (_Staking *StakingCaller) IsOwner(opts *bind.CallOpts, _address common.Address) (bool, error)
- func (_Staking *StakingCaller) MaxBucketsPerAddr(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) MaxStakeDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) MinStakeAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) MinStakeDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Staking *StakingCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Staking *StakingCaller) SecondsPerEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) Stakeholders(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Staking *StakingCaller) Token(opts *bind.CallOpts) (common.Address, error)
- func (_Staking *StakingCaller) TotalStaked(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) UnStakeDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_Staking *StakingCaller) Whitelist(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- type StakingCallerRaw
- type StakingCallerSession
- func (_Staking *StakingCallerSession) Buckets(arg0 *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetActiveBucketCreateTimes(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetActiveBucketIdx(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetActiveBuckets(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingCallerSession) GetBucketIndexesByAddress(_owner common.Address) ([]*big.Int, error)
- func (_Staking *StakingCallerSession) IsOwner(_address common.Address) (bool, error)
- func (_Staking *StakingCallerSession) MaxBucketsPerAddr() (*big.Int, error)
- func (_Staking *StakingCallerSession) MaxStakeDuration() (*big.Int, error)
- func (_Staking *StakingCallerSession) MinStakeAmount() (*big.Int, error)
- func (_Staking *StakingCallerSession) MinStakeDuration() (*big.Int, error)
- func (_Staking *StakingCallerSession) Owner() (common.Address, error)
- func (_Staking *StakingCallerSession) Paused() (bool, error)
- func (_Staking *StakingCallerSession) SecondsPerEpoch() (*big.Int, error)
- func (_Staking *StakingCallerSession) Stakeholders(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Staking *StakingCallerSession) Token() (common.Address, error)
- func (_Staking *StakingCallerSession) TotalStaked() (*big.Int, error)
- func (_Staking *StakingCallerSession) UnStakeDuration() (*big.Int, error)
- func (_Staking *StakingCallerSession) Whitelist(arg0 common.Address) (bool, error)
- type StakingFilterer
- func (_Staking *StakingFilterer) FilterBucketCreated(opts *bind.FilterOpts) (*StakingBucketCreatedIterator, error)
- func (_Staking *StakingFilterer) FilterBucketUnstake(opts *bind.FilterOpts) (*StakingBucketUnstakeIterator, error)
- func (_Staking *StakingFilterer) FilterBucketUpdated(opts *bind.FilterOpts) (*StakingBucketUpdatedIterator, error)
- func (_Staking *StakingFilterer) FilterBucketWithdraw(opts *bind.FilterOpts) (*StakingBucketWithdrawIterator, error)
- func (_Staking *StakingFilterer) FilterPause(opts *bind.FilterOpts) (*StakingPauseIterator, error)
- func (_Staking *StakingFilterer) FilterUnpause(opts *bind.FilterOpts) (*StakingUnpauseIterator, error)
- func (_Staking *StakingFilterer) FilterWhitelistedAddressAdded(opts *bind.FilterOpts) (*StakingWhitelistedAddressAddedIterator, error)
- func (_Staking *StakingFilterer) FilterWhitelistedAddressRemoved(opts *bind.FilterOpts) (*StakingWhitelistedAddressRemovedIterator, error)
- func (_Staking *StakingFilterer) WatchBucketCreated(opts *bind.WatchOpts, sink chan<- *StakingBucketCreated) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchBucketUnstake(opts *bind.WatchOpts, sink chan<- *StakingBucketUnstake) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchBucketUpdated(opts *bind.WatchOpts, sink chan<- *StakingBucketUpdated) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchBucketWithdraw(opts *bind.WatchOpts, sink chan<- *StakingBucketWithdraw) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *StakingPause) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *StakingUnpause) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchWhitelistedAddressAdded(opts *bind.WatchOpts, sink chan<- *StakingWhitelistedAddressAdded) (event.Subscription, error)
- func (_Staking *StakingFilterer) WatchWhitelistedAddressRemoved(opts *bind.WatchOpts, sink chan<- *StakingWhitelistedAddressRemoved) (event.Subscription, error)
- type StakingPause
- type StakingPauseIterator
- type StakingRaw
- func (_Staking *StakingRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Staking *StakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Staking *StakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StakingSession
- func (_Staking *StakingSession) AddAddressToWhitelist(addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) AddAddressesToWhitelist(addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) Buckets(arg0 *big.Int) (struct{ ... }, error)
- func (_Staking *StakingSession) CreateBucket(_canName [12]byte, _amount *big.Int, _stakeDuration *big.Int, _nonDecay bool, ...) (*types.Transaction, error)
- func (_Staking *StakingSession) GetActiveBucketCreateTimes(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingSession) GetActiveBucketIdx(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingSession) GetActiveBuckets(_prevIndex *big.Int, _limit *big.Int) (struct{ ... }, error)
- func (_Staking *StakingSession) GetBucketIndexesByAddress(_owner common.Address) ([]*big.Int, error)
- func (_Staking *StakingSession) IsOwner(_address common.Address) (bool, error)
- func (_Staking *StakingSession) MaxBucketsPerAddr() (*big.Int, error)
- func (_Staking *StakingSession) MaxStakeDuration() (*big.Int, error)
- func (_Staking *StakingSession) MinStakeAmount() (*big.Int, error)
- func (_Staking *StakingSession) MinStakeDuration() (*big.Int, error)
- func (_Staking *StakingSession) Owner() (common.Address, error)
- func (_Staking *StakingSession) Pause() (*types.Transaction, error)
- func (_Staking *StakingSession) Paused() (bool, error)
- func (_Staking *StakingSession) RemoveAddressFromWhitelist(addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) RemoveAddressesFromWhitelist(addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) Restake(_bucketIndex *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingSession) Revote(_bucketIndex *big.Int, _canName [12]byte, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingSession) SecondsPerEpoch() (*big.Int, error)
- func (_Staking *StakingSession) SetBucketOwner(_bucketIndex *big.Int, _newOwner common.Address, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingSession) Stakeholders(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Staking *StakingSession) Token() (common.Address, error)
- func (_Staking *StakingSession) TotalStaked() (*big.Int, error)
- func (_Staking *StakingSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_Staking *StakingSession) UnStakeDuration() (*big.Int, error)
- func (_Staking *StakingSession) Unpause() (*types.Transaction, error)
- func (_Staking *StakingSession) Unstake(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingSession) Whitelist(arg0 common.Address) (bool, error)
- func (_Staking *StakingSession) Withdraw(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- type StakingTransactor
- func (_Staking *StakingTransactor) AddAddressToWhitelist(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) AddAddressesToWhitelist(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) CreateBucket(opts *bind.TransactOpts, _canName [12]byte, _amount *big.Int, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RemoveAddressFromWhitelist(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) RemoveAddressesFromWhitelist(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Restake(opts *bind.TransactOpts, _bucketIndex *big.Int, _stakeDuration *big.Int, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Revote(opts *bind.TransactOpts, _bucketIndex *big.Int, _canName [12]byte, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) SetBucketOwner(opts *bind.TransactOpts, _bucketIndex *big.Int, _newOwner common.Address, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Unstake(opts *bind.TransactOpts, _bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingTransactor) Withdraw(opts *bind.TransactOpts, _bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- type StakingTransactorRaw
- type StakingTransactorSession
- func (_Staking *StakingTransactorSession) AddAddressToWhitelist(addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) AddAddressesToWhitelist(addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) CreateBucket(_canName [12]byte, _amount *big.Int, _stakeDuration *big.Int, _nonDecay bool, ...) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Pause() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RemoveAddressFromWhitelist(addr common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) RemoveAddressesFromWhitelist(addrs []common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Restake(_bucketIndex *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Revote(_bucketIndex *big.Int, _canName [12]byte, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) SetBucketOwner(_bucketIndex *big.Int, _newOwner common.Address, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Unpause() (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Unstake(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- func (_Staking *StakingTransactorSession) Withdraw(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
- type StakingUnpause
- type StakingUnpauseIterator
- type StakingWhitelistedAddressAdded
- type StakingWhitelistedAddressAddedIterator
- type StakingWhitelistedAddressRemoved
- type StakingWhitelistedAddressRemovedIterator
Constants ¶
const IOTXABI = "" /* 4449-byte string literal not displayed */
IOTXABI is the input ABI used to generate the binding from.
const RegisterABI = "" /* 5259-byte string literal not displayed */
RegisterABI is the input ABI used to generate the binding from.
const StakingABI = "" /* 10161-byte string literal not displayed */
StakingABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOTX ¶
type IOTX struct { IOTXCaller // Read-only binding to the contract IOTXTransactor // Write-only binding to the contract IOTXFilterer // Log filterer for contract events }
IOTX is an auto generated Go binding around an Ethereum contract.
type IOTXApproval ¶
type IOTXApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IOTXApproval represents a Approval event raised by the IOTX contract.
type IOTXApprovalIterator ¶
type IOTXApprovalIterator struct { Event *IOTXApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IOTXApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IOTX contract.
func (*IOTXApprovalIterator) Close ¶
func (it *IOTXApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IOTXApprovalIterator) Error ¶
func (it *IOTXApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IOTXApprovalIterator) Next ¶
func (it *IOTXApprovalIterator) 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 IOTXCaller ¶
type IOTXCaller struct {
// contains filtered or unexported fields
}
IOTXCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIOTXCaller ¶
func NewIOTXCaller(address common.Address, caller bind.ContractCaller) (*IOTXCaller, error)
NewIOTXCaller creates a new read-only instance of IOTX, bound to a specific deployed contract.
func (*IOTXCaller) Allowance ¶
func (_IOTX *IOTXCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256)
func (*IOTXCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256)
func (*IOTXCaller) Decimals ¶
func (_IOTX *IOTXCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*IOTXCaller) Name ¶
func (_IOTX *IOTXCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*IOTXCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*IOTXCaller) Paused ¶
func (_IOTX *IOTXCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*IOTXCaller) Symbol ¶
func (_IOTX *IOTXCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*IOTXCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type IOTXCallerRaw ¶
type IOTXCallerRaw struct {
Contract *IOTXCaller // Generic read-only contract binding to access the raw methods on
}
IOTXCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IOTXCallerRaw) Call ¶
func (_IOTX *IOTXCallerRaw) 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 IOTXCallerSession ¶
type IOTXCallerSession struct { Contract *IOTXCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IOTXCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IOTXCallerSession) Allowance ¶
func (_IOTX *IOTXCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256)
func (*IOTXCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256)
func (*IOTXCallerSession) Decimals ¶
func (_IOTX *IOTXCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*IOTXCallerSession) Name ¶
func (_IOTX *IOTXCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*IOTXCallerSession) Owner ¶
func (_IOTX *IOTXCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*IOTXCallerSession) Paused ¶
func (_IOTX *IOTXCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*IOTXCallerSession) Symbol ¶
func (_IOTX *IOTXCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*IOTXCallerSession) TotalSupply ¶
func (_IOTX *IOTXCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
type IOTXFilterer ¶
type IOTXFilterer struct {
// contains filtered or unexported fields
}
IOTXFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIOTXFilterer ¶
func NewIOTXFilterer(address common.Address, filterer bind.ContractFilterer) (*IOTXFilterer, error)
NewIOTXFilterer creates a new log filterer instance of IOTX, bound to a specific deployed contract.
func (*IOTXFilterer) FilterApproval ¶
func (_IOTX *IOTXFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IOTXApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*IOTXFilterer) FilterOwnershipTransferred ¶
func (_IOTX *IOTXFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*IOTXOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*IOTXFilterer) FilterPause ¶
func (_IOTX *IOTXFilterer) FilterPause(opts *bind.FilterOpts) (*IOTXPauseIterator, error)
FilterPause is a free log retrieval operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*IOTXFilterer) FilterTransfer ¶
func (_IOTX *IOTXFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IOTXTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*IOTXFilterer) FilterUnpause ¶
func (_IOTX *IOTXFilterer) FilterUnpause(opts *bind.FilterOpts) (*IOTXUnpauseIterator, error)
FilterUnpause is a free log retrieval operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
func (*IOTXFilterer) WatchApproval ¶
func (_IOTX *IOTXFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IOTXApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*IOTXFilterer) WatchOwnershipTransferred ¶
func (_IOTX *IOTXFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *IOTXOwnershipTransferred, 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 (*IOTXFilterer) WatchPause ¶
func (_IOTX *IOTXFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *IOTXPause) (event.Subscription, error)
WatchPause is a free log subscription operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*IOTXFilterer) WatchTransfer ¶
func (_IOTX *IOTXFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IOTXTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*IOTXFilterer) WatchUnpause ¶
func (_IOTX *IOTXFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *IOTXUnpause) (event.Subscription, error)
WatchUnpause is a free log subscription operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
type IOTXOwnershipTransferred ¶
type IOTXOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
IOTXOwnershipTransferred represents a OwnershipTransferred event raised by the IOTX contract.
type IOTXOwnershipTransferredIterator ¶
type IOTXOwnershipTransferredIterator struct { Event *IOTXOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IOTXOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the IOTX contract.
func (*IOTXOwnershipTransferredIterator) Close ¶
func (it *IOTXOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IOTXOwnershipTransferredIterator) Error ¶
func (it *IOTXOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IOTXOwnershipTransferredIterator) Next ¶
func (it *IOTXOwnershipTransferredIterator) 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 IOTXPauseIterator ¶
type IOTXPauseIterator struct { Event *IOTXPause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IOTXPauseIterator is returned from FilterPause and is used to iterate over the raw logs and unpacked data for Pause events raised by the IOTX contract.
func (*IOTXPauseIterator) Close ¶
func (it *IOTXPauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IOTXPauseIterator) Error ¶
func (it *IOTXPauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IOTXPauseIterator) Next ¶
func (it *IOTXPauseIterator) 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 IOTXRaw ¶
type IOTXRaw struct {
Contract *IOTX // Generic contract binding to access the raw methods on
}
IOTXRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IOTXRaw) Call ¶
func (_IOTX *IOTXRaw) 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 (*IOTXRaw) Transact ¶
func (_IOTX *IOTXRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IOTXRaw) Transfer ¶
func (_IOTX *IOTXRaw) 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 IOTXSession ¶
type IOTXSession struct { Contract *IOTX // 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 }
IOTXSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IOTXSession) Allowance ¶
func (_IOTX *IOTXSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256)
func (*IOTXSession) Approve ¶
func (_IOTX *IOTXSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*IOTXSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256)
func (*IOTXSession) Decimals ¶
func (_IOTX *IOTXSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*IOTXSession) DecreaseApproval ¶
func (_IOTX *IOTXSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.
Solidity: function decreaseApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (*IOTXSession) IncreaseApproval ¶
func (_IOTX *IOTXSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.
Solidity: function increaseApproval(address _spender, uint256 _addedValue) returns(bool success)
func (*IOTXSession) Name ¶
func (_IOTX *IOTXSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*IOTXSession) Owner ¶
func (_IOTX *IOTXSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*IOTXSession) Pause ¶
func (_IOTX *IOTXSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*IOTXSession) Paused ¶
func (_IOTX *IOTXSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*IOTXSession) Symbol ¶
func (_IOTX *IOTXSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*IOTXSession) TotalSupply ¶
func (_IOTX *IOTXSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256)
func (*IOTXSession) Transfer ¶
func (_IOTX *IOTXSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*IOTXSession) TransferFrom ¶
func (_IOTX *IOTXSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*IOTXSession) TransferOwnership ¶
func (_IOTX *IOTXSession) 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 (*IOTXSession) Unpause ¶
func (_IOTX *IOTXSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type IOTXTransactor ¶
type IOTXTransactor struct {
// contains filtered or unexported fields
}
IOTXTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIOTXTransactor ¶
func NewIOTXTransactor(address common.Address, transactor bind.ContractTransactor) (*IOTXTransactor, error)
NewIOTXTransactor creates a new write-only instance of IOTX, bound to a specific deployed contract.
func (*IOTXTransactor) Approve ¶
func (_IOTX *IOTXTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*IOTXTransactor) DecreaseApproval ¶
func (_IOTX *IOTXTransactor) DecreaseApproval(opts *bind.TransactOpts, _spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.
Solidity: function decreaseApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (*IOTXTransactor) IncreaseApproval ¶
func (_IOTX *IOTXTransactor) IncreaseApproval(opts *bind.TransactOpts, _spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.
Solidity: function increaseApproval(address _spender, uint256 _addedValue) returns(bool success)
func (*IOTXTransactor) Pause ¶
func (_IOTX *IOTXTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*IOTXTransactor) Transfer ¶
func (_IOTX *IOTXTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*IOTXTransactor) TransferFrom ¶
func (_IOTX *IOTXTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*IOTXTransactor) TransferOwnership ¶
func (_IOTX *IOTXTransactor) 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 (*IOTXTransactor) Unpause ¶
func (_IOTX *IOTXTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type IOTXTransactorRaw ¶
type IOTXTransactorRaw struct {
Contract *IOTXTransactor // Generic write-only contract binding to access the raw methods on
}
IOTXTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IOTXTransactorRaw) Transact ¶
func (_IOTX *IOTXTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IOTXTransactorRaw) Transfer ¶
func (_IOTX *IOTXTransactorRaw) 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 IOTXTransactorSession ¶
type IOTXTransactorSession struct { Contract *IOTXTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IOTXTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IOTXTransactorSession) Approve ¶
func (_IOTX *IOTXTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*IOTXTransactorSession) DecreaseApproval ¶
func (_IOTX *IOTXTransactorSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error)
DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.
Solidity: function decreaseApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (*IOTXTransactorSession) IncreaseApproval ¶
func (_IOTX *IOTXTransactorSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error)
IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.
Solidity: function increaseApproval(address _spender, uint256 _addedValue) returns(bool success)
func (*IOTXTransactorSession) Pause ¶
func (_IOTX *IOTXTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*IOTXTransactorSession) Transfer ¶
func (_IOTX *IOTXTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*IOTXTransactorSession) TransferFrom ¶
func (_IOTX *IOTXTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*IOTXTransactorSession) TransferOwnership ¶
func (_IOTX *IOTXTransactorSession) 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 (*IOTXTransactorSession) Unpause ¶
func (_IOTX *IOTXTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type IOTXTransfer ¶
type IOTXTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IOTXTransfer represents a Transfer event raised by the IOTX contract.
type IOTXTransferIterator ¶
type IOTXTransferIterator struct { Event *IOTXTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IOTXTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IOTX contract.
func (*IOTXTransferIterator) Close ¶
func (it *IOTXTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IOTXTransferIterator) Error ¶
func (it *IOTXTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IOTXTransferIterator) Next ¶
func (it *IOTXTransferIterator) 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 IOTXUnpause ¶
IOTXUnpause represents a Unpause event raised by the IOTX contract.
type IOTXUnpauseIterator ¶
type IOTXUnpauseIterator struct { Event *IOTXUnpause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IOTXUnpauseIterator is returned from FilterUnpause and is used to iterate over the raw logs and unpacked data for Unpause events raised by the IOTX contract.
func (*IOTXUnpauseIterator) Close ¶
func (it *IOTXUnpauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IOTXUnpauseIterator) Error ¶
func (it *IOTXUnpauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IOTXUnpauseIterator) Next ¶
func (it *IOTXUnpauseIterator) 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 Register ¶
type Register struct { RegisterCaller // Read-only binding to the contract RegisterTransactor // Write-only binding to the contract RegisterFilterer // Log filterer for contract events }
Register is an auto generated Go binding around an Ethereum contract.
func NewRegister ¶
NewRegister creates a new instance of Register, bound to a specific deployed contract.
type RegisterCaller ¶
type RegisterCaller struct {
// contains filtered or unexported fields
}
RegisterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRegisterCaller ¶
func NewRegisterCaller(address common.Address, caller bind.ContractCaller) (*RegisterCaller, error)
NewRegisterCaller creates a new read-only instance of Register, bound to a specific deployed contract.
func (*RegisterCaller) AddrToIdx ¶
func (_Register *RegisterCaller) AddrToIdx(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
AddrToIdx is a free data retrieval call binding the contract method 0x5f609695.
Solidity: function addrToIdx(address ) constant returns(uint256)
func (*RegisterCaller) CandidateCount ¶
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*RegisterCaller) Candidates ¶
func (_Register *RegisterCaller) Candidates(opts *bind.CallOpts, arg0 *big.Int) (struct { Name [12]byte Addr common.Address IoOperatorAddr string IoRewardAddr string Weight *big.Int }, error)
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates(uint256 ) constant returns(bytes12 name, address addr, string ioOperatorAddr, string ioRewardAddr, uint256 weight)
func (*RegisterCaller) FeeCollector ¶
FeeCollector is a free data retrieval call binding the contract method 0xc415b95c.
Solidity: function feeCollector() constant returns(address)
func (*RegisterCaller) GetAllCandidates ¶
func (_Register *RegisterCaller) GetAllCandidates(opts *bind.CallOpts, _startIndex *big.Int, _limit *big.Int) (struct { Names [][12]byte Addresses []common.Address IoOperatorAddr [][32]byte IoRewardAddr [][32]byte Weights []*big.Int }, error)
GetAllCandidates is a free data retrieval call binding the contract method 0x5e924246.
Solidity: function getAllCandidates(uint256 _startIndex, uint256 _limit) constant returns(bytes12[] names, address[] addresses, bytes32[] ioOperatorAddr, bytes32[] ioRewardAddr, uint256[] weights)
func (*RegisterCaller) IoAddrToIdx ¶
func (_Register *RegisterCaller) IoAddrToIdx(opts *bind.CallOpts, arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
IoAddrToIdx is a free data retrieval call binding the contract method 0x12f2a2a9.
Solidity: function ioAddrToIdx(bytes32 , bytes32 ) constant returns(uint256)
func (*RegisterCaller) IsOwner ¶
func (_Register *RegisterCaller) IsOwner(opts *bind.CallOpts, _address common.Address) (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*RegisterCaller) NameRegistrationFee ¶
NameRegistrationFee is a free data retrieval call binding the contract method 0x543ca195.
Solidity: function nameRegistrationFee() constant returns(uint256)
func (*RegisterCaller) NameToIdx ¶
NameToIdx is a free data retrieval call binding the contract method 0xd64ac4a6.
Solidity: function nameToIdx(bytes12 ) constant returns(uint256)
func (*RegisterCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
type RegisterCallerRaw ¶
type RegisterCallerRaw struct {
Contract *RegisterCaller // Generic read-only contract binding to access the raw methods on
}
RegisterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RegisterCallerRaw) Call ¶
func (_Register *RegisterCallerRaw) 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 RegisterCallerSession ¶
type RegisterCallerSession struct { Contract *RegisterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RegisterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RegisterCallerSession) AddrToIdx ¶
AddrToIdx is a free data retrieval call binding the contract method 0x5f609695.
Solidity: function addrToIdx(address ) constant returns(uint256)
func (*RegisterCallerSession) CandidateCount ¶
func (_Register *RegisterCallerSession) CandidateCount() (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*RegisterCallerSession) Candidates ¶
func (_Register *RegisterCallerSession) Candidates(arg0 *big.Int) (struct { Name [12]byte Addr common.Address IoOperatorAddr string IoRewardAddr string Weight *big.Int }, error)
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates(uint256 ) constant returns(bytes12 name, address addr, string ioOperatorAddr, string ioRewardAddr, uint256 weight)
func (*RegisterCallerSession) FeeCollector ¶
func (_Register *RegisterCallerSession) FeeCollector() (common.Address, error)
FeeCollector is a free data retrieval call binding the contract method 0xc415b95c.
Solidity: function feeCollector() constant returns(address)
func (*RegisterCallerSession) GetAllCandidates ¶
func (_Register *RegisterCallerSession) GetAllCandidates(_startIndex *big.Int, _limit *big.Int) (struct { Names [][12]byte Addresses []common.Address IoOperatorAddr [][32]byte IoRewardAddr [][32]byte Weights []*big.Int }, error)
GetAllCandidates is a free data retrieval call binding the contract method 0x5e924246.
Solidity: function getAllCandidates(uint256 _startIndex, uint256 _limit) constant returns(bytes12[] names, address[] addresses, bytes32[] ioOperatorAddr, bytes32[] ioRewardAddr, uint256[] weights)
func (*RegisterCallerSession) IoAddrToIdx ¶
IoAddrToIdx is a free data retrieval call binding the contract method 0x12f2a2a9.
Solidity: function ioAddrToIdx(bytes32 , bytes32 ) constant returns(uint256)
func (*RegisterCallerSession) IsOwner ¶
func (_Register *RegisterCallerSession) IsOwner(_address common.Address) (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*RegisterCallerSession) NameRegistrationFee ¶
func (_Register *RegisterCallerSession) NameRegistrationFee() (*big.Int, error)
NameRegistrationFee is a free data retrieval call binding the contract method 0x543ca195.
Solidity: function nameRegistrationFee() constant returns(uint256)
func (*RegisterCallerSession) NameToIdx ¶
func (_Register *RegisterCallerSession) NameToIdx(arg0 [12]byte) (*big.Int, error)
NameToIdx is a free data retrieval call binding the contract method 0xd64ac4a6.
Solidity: function nameToIdx(bytes12 ) constant returns(uint256)
func (*RegisterCallerSession) Owner ¶
func (_Register *RegisterCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*RegisterCallerSession) Paused ¶
func (_Register *RegisterCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
type RegisterFilterer ¶
type RegisterFilterer struct {
// contains filtered or unexported fields
}
RegisterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRegisterFilterer ¶
func NewRegisterFilterer(address common.Address, filterer bind.ContractFilterer) (*RegisterFilterer, error)
NewRegisterFilterer creates a new log filterer instance of Register, bound to a specific deployed contract.
func (*RegisterFilterer) FilterPause ¶
func (_Register *RegisterFilterer) FilterPause(opts *bind.FilterOpts) (*RegisterPauseIterator, error)
FilterPause is a free log retrieval operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*RegisterFilterer) FilterRegistered ¶
func (_Register *RegisterFilterer) FilterRegistered(opts *bind.FilterOpts) (*RegisterRegisteredIterator, error)
FilterRegistered is a free log retrieval operation binding the contract event 0x3340640ab5b6f15b631e9400701305335845b74a8bd5054f7b268608b2b869d4.
Solidity: event Registered(uint256 idx, bytes12 name, address addr, string ioOperatorAddr, string ioRewardAddr, bytes data)
func (*RegisterFilterer) FilterUnpause ¶
func (_Register *RegisterFilterer) FilterUnpause(opts *bind.FilterOpts) (*RegisterUnpauseIterator, error)
FilterUnpause is a free log retrieval operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
func (*RegisterFilterer) WatchPause ¶
func (_Register *RegisterFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *RegisterPause) (event.Subscription, error)
WatchPause is a free log subscription operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*RegisterFilterer) WatchRegistered ¶
func (_Register *RegisterFilterer) WatchRegistered(opts *bind.WatchOpts, sink chan<- *RegisterRegistered) (event.Subscription, error)
WatchRegistered is a free log subscription operation binding the contract event 0x3340640ab5b6f15b631e9400701305335845b74a8bd5054f7b268608b2b869d4.
Solidity: event Registered(uint256 idx, bytes12 name, address addr, string ioOperatorAddr, string ioRewardAddr, bytes data)
func (*RegisterFilterer) WatchUnpause ¶
func (_Register *RegisterFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *RegisterUnpause) (event.Subscription, error)
WatchUnpause is a free log subscription operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
type RegisterPause ¶
RegisterPause represents a Pause event raised by the Register contract.
type RegisterPauseIterator ¶
type RegisterPauseIterator struct { Event *RegisterPause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RegisterPauseIterator is returned from FilterPause and is used to iterate over the raw logs and unpacked data for Pause events raised by the Register contract.
func (*RegisterPauseIterator) Close ¶
func (it *RegisterPauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RegisterPauseIterator) Error ¶
func (it *RegisterPauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RegisterPauseIterator) Next ¶
func (it *RegisterPauseIterator) 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 RegisterRaw ¶
type RegisterRaw struct {
Contract *Register // Generic contract binding to access the raw methods on
}
RegisterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RegisterRaw) Call ¶
func (_Register *RegisterRaw) 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 (*RegisterRaw) Transact ¶
func (_Register *RegisterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RegisterRaw) Transfer ¶
func (_Register *RegisterRaw) 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 RegisterRegistered ¶
type RegisterRegistered struct { Idx *big.Int Name [12]byte Addr common.Address IoOperatorAddr string IoRewardAddr string Data []byte Raw types.Log // Blockchain specific contextual infos }
RegisterRegistered represents a Registered event raised by the Register contract.
type RegisterRegisteredIterator ¶
type RegisterRegisteredIterator struct { Event *RegisterRegistered // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RegisterRegisteredIterator is returned from FilterRegistered and is used to iterate over the raw logs and unpacked data for Registered events raised by the Register contract.
func (*RegisterRegisteredIterator) Close ¶
func (it *RegisterRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RegisterRegisteredIterator) Error ¶
func (it *RegisterRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RegisterRegisteredIterator) Next ¶
func (it *RegisterRegisteredIterator) 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 RegisterSession ¶
type RegisterSession struct { Contract *Register // 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 }
RegisterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RegisterSession) AddrToIdx ¶
AddrToIdx is a free data retrieval call binding the contract method 0x5f609695.
Solidity: function addrToIdx(address ) constant returns(uint256)
func (*RegisterSession) CandidateCount ¶
func (_Register *RegisterSession) CandidateCount() (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*RegisterSession) Candidates ¶
func (_Register *RegisterSession) Candidates(arg0 *big.Int) (struct { Name [12]byte Addr common.Address IoOperatorAddr string IoRewardAddr string Weight *big.Int }, error)
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates(uint256 ) constant returns(bytes12 name, address addr, string ioOperatorAddr, string ioRewardAddr, uint256 weight)
func (*RegisterSession) FeeCollector ¶
func (_Register *RegisterSession) FeeCollector() (common.Address, error)
FeeCollector is a free data retrieval call binding the contract method 0xc415b95c.
Solidity: function feeCollector() constant returns(address)
func (*RegisterSession) GetAllCandidates ¶
func (_Register *RegisterSession) GetAllCandidates(_startIndex *big.Int, _limit *big.Int) (struct { Names [][12]byte Addresses []common.Address IoOperatorAddr [][32]byte IoRewardAddr [][32]byte Weights []*big.Int }, error)
GetAllCandidates is a free data retrieval call binding the contract method 0x5e924246.
Solidity: function getAllCandidates(uint256 _startIndex, uint256 _limit) constant returns(bytes12[] names, address[] addresses, bytes32[] ioOperatorAddr, bytes32[] ioRewardAddr, uint256[] weights)
func (*RegisterSession) IoAddrToIdx ¶
IoAddrToIdx is a free data retrieval call binding the contract method 0x12f2a2a9.
Solidity: function ioAddrToIdx(bytes32 , bytes32 ) constant returns(uint256)
func (*RegisterSession) IsOwner ¶
func (_Register *RegisterSession) IsOwner(_address common.Address) (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*RegisterSession) NameRegistrationFee ¶
func (_Register *RegisterSession) NameRegistrationFee() (*big.Int, error)
NameRegistrationFee is a free data retrieval call binding the contract method 0x543ca195.
Solidity: function nameRegistrationFee() constant returns(uint256)
func (*RegisterSession) NameToIdx ¶
func (_Register *RegisterSession) NameToIdx(arg0 [12]byte) (*big.Int, error)
NameToIdx is a free data retrieval call binding the contract method 0xd64ac4a6.
Solidity: function nameToIdx(bytes12 ) constant returns(uint256)
func (*RegisterSession) Owner ¶
func (_Register *RegisterSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*RegisterSession) Pause ¶
func (_Register *RegisterSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*RegisterSession) Paused ¶
func (_Register *RegisterSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*RegisterSession) Register ¶
func (_Register *RegisterSession) Register(_name [12]byte, _ioOperatorAddr string, _ioRewardAddr string, _data []byte) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x690c1f22.
Solidity: function register(bytes12 _name, string _ioOperatorAddr, string _ioRewardAddr, bytes _data) returns()
func (*RegisterSession) SetFeeCollector ¶
func (_Register *RegisterSession) SetFeeCollector(_addr common.Address) (*types.Transaction, error)
SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.
Solidity: function setFeeCollector(address _addr) returns()
func (*RegisterSession) SetNameAddress ¶
func (_Register *RegisterSession) SetNameAddress(_name [12]byte, _addr common.Address) (*types.Transaction, error)
SetNameAddress is a paid mutator transaction binding the contract method 0xebfd4148.
Solidity: function setNameAddress(bytes12 _name, address _addr) returns()
func (*RegisterSession) SetNameRegistrationFee ¶
func (_Register *RegisterSession) SetNameRegistrationFee(_fee *big.Int) (*types.Transaction, error)
SetNameRegistrationFee is a paid mutator transaction binding the contract method 0x6afee780.
Solidity: function setNameRegistrationFee(uint256 _fee) returns()
func (*RegisterSession) SetWeight ¶
func (_Register *RegisterSession) SetWeight(_name [12]byte, _weight *big.Int) (*types.Transaction, error)
SetWeight is a paid mutator transaction binding the contract method 0x3207bcf0.
Solidity: function setWeight(bytes12 _name, uint256 _weight) returns()
func (*RegisterSession) Token ¶
func (_Register *RegisterSession) Token() (common.Address, error)
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() constant returns(address)
func (*RegisterSession) TransferOwnership ¶
func (_Register *RegisterSession) 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 (*RegisterSession) Unpause ¶
func (_Register *RegisterSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type RegisterTransactor ¶
type RegisterTransactor struct {
// contains filtered or unexported fields
}
RegisterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRegisterTransactor ¶
func NewRegisterTransactor(address common.Address, transactor bind.ContractTransactor) (*RegisterTransactor, error)
NewRegisterTransactor creates a new write-only instance of Register, bound to a specific deployed contract.
func (*RegisterTransactor) Pause ¶
func (_Register *RegisterTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*RegisterTransactor) Register ¶
func (_Register *RegisterTransactor) Register(opts *bind.TransactOpts, _name [12]byte, _ioOperatorAddr string, _ioRewardAddr string, _data []byte) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x690c1f22.
Solidity: function register(bytes12 _name, string _ioOperatorAddr, string _ioRewardAddr, bytes _data) returns()
func (*RegisterTransactor) SetFeeCollector ¶
func (_Register *RegisterTransactor) SetFeeCollector(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)
SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.
Solidity: function setFeeCollector(address _addr) returns()
func (*RegisterTransactor) SetNameAddress ¶
func (_Register *RegisterTransactor) SetNameAddress(opts *bind.TransactOpts, _name [12]byte, _addr common.Address) (*types.Transaction, error)
SetNameAddress is a paid mutator transaction binding the contract method 0xebfd4148.
Solidity: function setNameAddress(bytes12 _name, address _addr) returns()
func (*RegisterTransactor) SetNameRegistrationFee ¶
func (_Register *RegisterTransactor) SetNameRegistrationFee(opts *bind.TransactOpts, _fee *big.Int) (*types.Transaction, error)
SetNameRegistrationFee is a paid mutator transaction binding the contract method 0x6afee780.
Solidity: function setNameRegistrationFee(uint256 _fee) returns()
func (*RegisterTransactor) SetWeight ¶
func (_Register *RegisterTransactor) SetWeight(opts *bind.TransactOpts, _name [12]byte, _weight *big.Int) (*types.Transaction, error)
SetWeight is a paid mutator transaction binding the contract method 0x3207bcf0.
Solidity: function setWeight(bytes12 _name, uint256 _weight) returns()
func (*RegisterTransactor) TransferOwnership ¶
func (_Register *RegisterTransactor) 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 (*RegisterTransactor) Unpause ¶
func (_Register *RegisterTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type RegisterTransactorRaw ¶
type RegisterTransactorRaw struct {
Contract *RegisterTransactor // Generic write-only contract binding to access the raw methods on
}
RegisterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RegisterTransactorRaw) Transact ¶
func (_Register *RegisterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RegisterTransactorRaw) Transfer ¶
func (_Register *RegisterTransactorRaw) 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 RegisterTransactorSession ¶
type RegisterTransactorSession struct { Contract *RegisterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RegisterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RegisterTransactorSession) Pause ¶
func (_Register *RegisterTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*RegisterTransactorSession) Register ¶
func (_Register *RegisterTransactorSession) Register(_name [12]byte, _ioOperatorAddr string, _ioRewardAddr string, _data []byte) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0x690c1f22.
Solidity: function register(bytes12 _name, string _ioOperatorAddr, string _ioRewardAddr, bytes _data) returns()
func (*RegisterTransactorSession) SetFeeCollector ¶
func (_Register *RegisterTransactorSession) SetFeeCollector(_addr common.Address) (*types.Transaction, error)
SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.
Solidity: function setFeeCollector(address _addr) returns()
func (*RegisterTransactorSession) SetNameAddress ¶
func (_Register *RegisterTransactorSession) SetNameAddress(_name [12]byte, _addr common.Address) (*types.Transaction, error)
SetNameAddress is a paid mutator transaction binding the contract method 0xebfd4148.
Solidity: function setNameAddress(bytes12 _name, address _addr) returns()
func (*RegisterTransactorSession) SetNameRegistrationFee ¶
func (_Register *RegisterTransactorSession) SetNameRegistrationFee(_fee *big.Int) (*types.Transaction, error)
SetNameRegistrationFee is a paid mutator transaction binding the contract method 0x6afee780.
Solidity: function setNameRegistrationFee(uint256 _fee) returns()
func (*RegisterTransactorSession) SetWeight ¶
func (_Register *RegisterTransactorSession) SetWeight(_name [12]byte, _weight *big.Int) (*types.Transaction, error)
SetWeight is a paid mutator transaction binding the contract method 0x3207bcf0.
Solidity: function setWeight(bytes12 _name, uint256 _weight) returns()
func (*RegisterTransactorSession) TransferOwnership ¶
func (_Register *RegisterTransactorSession) 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 (*RegisterTransactorSession) Unpause ¶
func (_Register *RegisterTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type RegisterUnpause ¶
RegisterUnpause represents a Unpause event raised by the Register contract.
type RegisterUnpauseIterator ¶
type RegisterUnpauseIterator struct { Event *RegisterUnpause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RegisterUnpauseIterator is returned from FilterUnpause and is used to iterate over the raw logs and unpacked data for Unpause events raised by the Register contract.
func (*RegisterUnpauseIterator) Close ¶
func (it *RegisterUnpauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RegisterUnpauseIterator) Error ¶
func (it *RegisterUnpauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RegisterUnpauseIterator) Next ¶
func (it *RegisterUnpauseIterator) 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 Staking ¶
type Staking struct { StakingCaller // Read-only binding to the contract StakingTransactor // Write-only binding to the contract StakingFilterer // Log filterer for contract events }
Staking is an auto generated Go binding around an Ethereum contract.
func NewStaking ¶
NewStaking creates a new instance of Staking, bound to a specific deployed contract.
type StakingBucketCreated ¶
type StakingBucketCreated struct { BucketIndex *big.Int CanName [12]byte Amount *big.Int StakeDuration *big.Int NonDecay bool Data []byte Raw types.Log // Blockchain specific contextual infos }
StakingBucketCreated represents a BucketCreated event raised by the Staking contract.
type StakingBucketCreatedIterator ¶
type StakingBucketCreatedIterator struct { Event *StakingBucketCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingBucketCreatedIterator is returned from FilterBucketCreated and is used to iterate over the raw logs and unpacked data for BucketCreated events raised by the Staking contract.
func (*StakingBucketCreatedIterator) Close ¶
func (it *StakingBucketCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingBucketCreatedIterator) Error ¶
func (it *StakingBucketCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingBucketCreatedIterator) Next ¶
func (it *StakingBucketCreatedIterator) 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 StakingBucketUnstake ¶
type StakingBucketUnstake struct { BucketIndex *big.Int CanName [12]byte Amount *big.Int Data []byte Raw types.Log // Blockchain specific contextual infos }
StakingBucketUnstake represents a BucketUnstake event raised by the Staking contract.
type StakingBucketUnstakeIterator ¶
type StakingBucketUnstakeIterator struct { Event *StakingBucketUnstake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingBucketUnstakeIterator is returned from FilterBucketUnstake and is used to iterate over the raw logs and unpacked data for BucketUnstake events raised by the Staking contract.
func (*StakingBucketUnstakeIterator) Close ¶
func (it *StakingBucketUnstakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingBucketUnstakeIterator) Error ¶
func (it *StakingBucketUnstakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingBucketUnstakeIterator) Next ¶
func (it *StakingBucketUnstakeIterator) 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 StakingBucketUpdated ¶
type StakingBucketUpdated struct { BucketIndex *big.Int CanName [12]byte StakeDuration *big.Int StakeStartTime *big.Int NonDecay bool BucketOwner common.Address Data []byte Raw types.Log // Blockchain specific contextual infos }
StakingBucketUpdated represents a BucketUpdated event raised by the Staking contract.
type StakingBucketUpdatedIterator ¶
type StakingBucketUpdatedIterator struct { Event *StakingBucketUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingBucketUpdatedIterator is returned from FilterBucketUpdated and is used to iterate over the raw logs and unpacked data for BucketUpdated events raised by the Staking contract.
func (*StakingBucketUpdatedIterator) Close ¶
func (it *StakingBucketUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingBucketUpdatedIterator) Error ¶
func (it *StakingBucketUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingBucketUpdatedIterator) Next ¶
func (it *StakingBucketUpdatedIterator) 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 StakingBucketWithdraw ¶
type StakingBucketWithdraw struct { BucketIndex *big.Int CanName [12]byte Amount *big.Int Data []byte Raw types.Log // Blockchain specific contextual infos }
StakingBucketWithdraw represents a BucketWithdraw event raised by the Staking contract.
type StakingBucketWithdrawIterator ¶
type StakingBucketWithdrawIterator struct { Event *StakingBucketWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingBucketWithdrawIterator is returned from FilterBucketWithdraw and is used to iterate over the raw logs and unpacked data for BucketWithdraw events raised by the Staking contract.
func (*StakingBucketWithdrawIterator) Close ¶
func (it *StakingBucketWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingBucketWithdrawIterator) Error ¶
func (it *StakingBucketWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingBucketWithdrawIterator) Next ¶
func (it *StakingBucketWithdrawIterator) 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 StakingCaller ¶
type StakingCaller struct {
// contains filtered or unexported fields
}
StakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStakingCaller ¶
func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)
NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.
func (*StakingCaller) Buckets ¶
func (_Staking *StakingCaller) Buckets(opts *bind.CallOpts, arg0 *big.Int) (struct { CanName [12]byte StakedAmount *big.Int StakeDuration *big.Int StakeStartTime *big.Int NonDecay bool UnstakeStartTime *big.Int BucketOwner common.Address CreateTime *big.Int Prev *big.Int Next *big.Int }, error)
Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
Solidity: function buckets(uint256 ) constant returns(bytes12 canName, uint256 stakedAmount, uint256 stakeDuration, uint256 stakeStartTime, bool nonDecay, uint256 unstakeStartTime, address bucketOwner, uint256 createTime, uint256 prev, uint256 next)
func (*StakingCaller) GetActiveBucketCreateTimes ¶
func (_Staking *StakingCaller) GetActiveBucketCreateTimes(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int CreateTimes []*big.Int }, error)
GetActiveBucketCreateTimes is a free data retrieval call binding the contract method 0x37130b93.
Solidity: function getActiveBucketCreateTimes(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] createTimes)
func (*StakingCaller) GetActiveBucketIdx ¶
func (_Staking *StakingCaller) GetActiveBucketIdx(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int }, error)
GetActiveBucketIdx is a free data retrieval call binding the contract method 0x8b59c5e0.
Solidity: function getActiveBucketIdx(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes)
func (*StakingCaller) GetActiveBuckets ¶
func (_Staking *StakingCaller) GetActiveBuckets(opts *bind.CallOpts, _prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int StakeStartTimes []*big.Int StakeDurations []*big.Int Decays []bool StakedAmounts []*big.Int CanNames [][12]byte Owners []common.Address }, error)
GetActiveBuckets is a free data retrieval call binding the contract method 0x042f95bd.
Solidity: function getActiveBuckets(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] stakeStartTimes, uint256[] stakeDurations, bool[] decays, uint256[] stakedAmounts, bytes12[] canNames, address[] owners)
func (*StakingCaller) GetBucketIndexesByAddress ¶
func (_Staking *StakingCaller) GetBucketIndexesByAddress(opts *bind.CallOpts, _owner common.Address) ([]*big.Int, error)
GetBucketIndexesByAddress is a free data retrieval call binding the contract method 0x7d0de831.
Solidity: function getBucketIndexesByAddress(address _owner) constant returns(uint256[])
func (*StakingCaller) IsOwner ¶
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*StakingCaller) MaxBucketsPerAddr ¶
MaxBucketsPerAddr is a free data retrieval call binding the contract method 0xfe8a8b4c.
Solidity: function maxBucketsPerAddr() constant returns(uint256)
func (*StakingCaller) MaxStakeDuration ¶
MaxStakeDuration is a free data retrieval call binding the contract method 0x76f70003.
Solidity: function maxStakeDuration() constant returns(uint256)
func (*StakingCaller) MinStakeAmount ¶
MinStakeAmount is a free data retrieval call binding the contract method 0xf1887684.
Solidity: function minStakeAmount() constant returns(uint256)
func (*StakingCaller) MinStakeDuration ¶
MinStakeDuration is a free data retrieval call binding the contract method 0x5fec5c64.
Solidity: function minStakeDuration() constant returns(uint256)
func (*StakingCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*StakingCaller) Paused ¶
func (_Staking *StakingCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*StakingCaller) SecondsPerEpoch ¶
SecondsPerEpoch is a free data retrieval call binding the contract method 0x580c8f3d.
Solidity: function secondsPerEpoch() constant returns(uint256)
func (*StakingCaller) Stakeholders ¶
func (_Staking *StakingCaller) Stakeholders(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
Stakeholders is a free data retrieval call binding the contract method 0x423ce1ae.
Solidity: function stakeholders(address , uint256 ) constant returns(uint256)
func (*StakingCaller) Token ¶
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() constant returns(address)
func (*StakingCaller) TotalStaked ¶
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() constant returns(uint256)
func (*StakingCaller) UnStakeDuration ¶
UnStakeDuration is a free data retrieval call binding the contract method 0xc698d495.
Solidity: function unStakeDuration() constant returns(uint256)
type StakingCallerRaw ¶
type StakingCallerRaw struct {
Contract *StakingCaller // Generic read-only contract binding to access the raw methods on
}
StakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StakingCallerRaw) Call ¶
func (_Staking *StakingCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type StakingCallerSession ¶
type StakingCallerSession struct { Contract *StakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StakingCallerSession) Buckets ¶
func (_Staking *StakingCallerSession) Buckets(arg0 *big.Int) (struct { CanName [12]byte StakedAmount *big.Int StakeDuration *big.Int StakeStartTime *big.Int NonDecay bool UnstakeStartTime *big.Int BucketOwner common.Address CreateTime *big.Int Prev *big.Int Next *big.Int }, error)
Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
Solidity: function buckets(uint256 ) constant returns(bytes12 canName, uint256 stakedAmount, uint256 stakeDuration, uint256 stakeStartTime, bool nonDecay, uint256 unstakeStartTime, address bucketOwner, uint256 createTime, uint256 prev, uint256 next)
func (*StakingCallerSession) GetActiveBucketCreateTimes ¶
func (_Staking *StakingCallerSession) GetActiveBucketCreateTimes(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int CreateTimes []*big.Int }, error)
GetActiveBucketCreateTimes is a free data retrieval call binding the contract method 0x37130b93.
Solidity: function getActiveBucketCreateTimes(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] createTimes)
func (*StakingCallerSession) GetActiveBucketIdx ¶
func (_Staking *StakingCallerSession) GetActiveBucketIdx(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int }, error)
GetActiveBucketIdx is a free data retrieval call binding the contract method 0x8b59c5e0.
Solidity: function getActiveBucketIdx(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes)
func (*StakingCallerSession) GetActiveBuckets ¶
func (_Staking *StakingCallerSession) GetActiveBuckets(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int StakeStartTimes []*big.Int StakeDurations []*big.Int Decays []bool StakedAmounts []*big.Int CanNames [][12]byte Owners []common.Address }, error)
GetActiveBuckets is a free data retrieval call binding the contract method 0x042f95bd.
Solidity: function getActiveBuckets(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] stakeStartTimes, uint256[] stakeDurations, bool[] decays, uint256[] stakedAmounts, bytes12[] canNames, address[] owners)
func (*StakingCallerSession) GetBucketIndexesByAddress ¶
func (_Staking *StakingCallerSession) GetBucketIndexesByAddress(_owner common.Address) ([]*big.Int, error)
GetBucketIndexesByAddress is a free data retrieval call binding the contract method 0x7d0de831.
Solidity: function getBucketIndexesByAddress(address _owner) constant returns(uint256[])
func (*StakingCallerSession) IsOwner ¶
func (_Staking *StakingCallerSession) IsOwner(_address common.Address) (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*StakingCallerSession) MaxBucketsPerAddr ¶
func (_Staking *StakingCallerSession) MaxBucketsPerAddr() (*big.Int, error)
MaxBucketsPerAddr is a free data retrieval call binding the contract method 0xfe8a8b4c.
Solidity: function maxBucketsPerAddr() constant returns(uint256)
func (*StakingCallerSession) MaxStakeDuration ¶
func (_Staking *StakingCallerSession) MaxStakeDuration() (*big.Int, error)
MaxStakeDuration is a free data retrieval call binding the contract method 0x76f70003.
Solidity: function maxStakeDuration() constant returns(uint256)
func (*StakingCallerSession) MinStakeAmount ¶
func (_Staking *StakingCallerSession) MinStakeAmount() (*big.Int, error)
MinStakeAmount is a free data retrieval call binding the contract method 0xf1887684.
Solidity: function minStakeAmount() constant returns(uint256)
func (*StakingCallerSession) MinStakeDuration ¶
func (_Staking *StakingCallerSession) MinStakeDuration() (*big.Int, error)
MinStakeDuration is a free data retrieval call binding the contract method 0x5fec5c64.
Solidity: function minStakeDuration() constant returns(uint256)
func (*StakingCallerSession) Owner ¶
func (_Staking *StakingCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*StakingCallerSession) Paused ¶
func (_Staking *StakingCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*StakingCallerSession) SecondsPerEpoch ¶
func (_Staking *StakingCallerSession) SecondsPerEpoch() (*big.Int, error)
SecondsPerEpoch is a free data retrieval call binding the contract method 0x580c8f3d.
Solidity: function secondsPerEpoch() constant returns(uint256)
func (*StakingCallerSession) Stakeholders ¶
func (_Staking *StakingCallerSession) Stakeholders(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
Stakeholders is a free data retrieval call binding the contract method 0x423ce1ae.
Solidity: function stakeholders(address , uint256 ) constant returns(uint256)
func (*StakingCallerSession) Token ¶
func (_Staking *StakingCallerSession) Token() (common.Address, error)
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() constant returns(address)
func (*StakingCallerSession) TotalStaked ¶
func (_Staking *StakingCallerSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() constant returns(uint256)
func (*StakingCallerSession) UnStakeDuration ¶
func (_Staking *StakingCallerSession) UnStakeDuration() (*big.Int, error)
UnStakeDuration is a free data retrieval call binding the contract method 0xc698d495.
Solidity: function unStakeDuration() constant returns(uint256)
type StakingFilterer ¶
type StakingFilterer struct {
// contains filtered or unexported fields
}
StakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStakingFilterer ¶
func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)
NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.
func (*StakingFilterer) FilterBucketCreated ¶
func (_Staking *StakingFilterer) FilterBucketCreated(opts *bind.FilterOpts) (*StakingBucketCreatedIterator, error)
FilterBucketCreated is a free log retrieval operation binding the contract event 0xbecddf0f61f76a4ac94a507fbc32c036d2fb7c4b466cad82dd9a4a2d76b263fe.
Solidity: event BucketCreated(uint256 bucketIndex, bytes12 canName, uint256 amount, uint256 stakeDuration, bool nonDecay, bytes data)
func (*StakingFilterer) FilterBucketUnstake ¶
func (_Staking *StakingFilterer) FilterBucketUnstake(opts *bind.FilterOpts) (*StakingBucketUnstakeIterator, error)
FilterBucketUnstake is a free log retrieval operation binding the contract event 0xaa192dc938c20fb63756fbd8f4d9f46092c3252f772b2c549c4688c118b6b475.
Solidity: event BucketUnstake(uint256 bucketIndex, bytes12 canName, uint256 amount, bytes data)
func (*StakingFilterer) FilterBucketUpdated ¶
func (_Staking *StakingFilterer) FilterBucketUpdated(opts *bind.FilterOpts) (*StakingBucketUpdatedIterator, error)
FilterBucketUpdated is a free log retrieval operation binding the contract event 0x004bbbedd0138c223ffed73fdab05a22a5d22770de54bea694d06661d59d1600.
Solidity: event BucketUpdated(uint256 bucketIndex, bytes12 canName, uint256 stakeDuration, uint256 stakeStartTime, bool nonDecay, address bucketOwner, bytes data)
func (*StakingFilterer) FilterBucketWithdraw ¶
func (_Staking *StakingFilterer) FilterBucketWithdraw(opts *bind.FilterOpts) (*StakingBucketWithdrawIterator, error)
FilterBucketWithdraw is a free log retrieval operation binding the contract event 0x2a79739690fe6bf5933c5d812824e30c2b95d43b6ddadd96148a4493d3b56540.
Solidity: event BucketWithdraw(uint256 bucketIndex, bytes12 canName, uint256 amount, bytes data)
func (*StakingFilterer) FilterPause ¶
func (_Staking *StakingFilterer) FilterPause(opts *bind.FilterOpts) (*StakingPauseIterator, error)
FilterPause is a free log retrieval operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*StakingFilterer) FilterUnpause ¶
func (_Staking *StakingFilterer) FilterUnpause(opts *bind.FilterOpts) (*StakingUnpauseIterator, error)
FilterUnpause is a free log retrieval operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
func (*StakingFilterer) FilterWhitelistedAddressAdded ¶
func (_Staking *StakingFilterer) FilterWhitelistedAddressAdded(opts *bind.FilterOpts) (*StakingWhitelistedAddressAddedIterator, error)
FilterWhitelistedAddressAdded is a free log retrieval operation binding the contract event 0xd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f.
Solidity: event WhitelistedAddressAdded(address addr)
func (*StakingFilterer) FilterWhitelistedAddressRemoved ¶
func (_Staking *StakingFilterer) FilterWhitelistedAddressRemoved(opts *bind.FilterOpts) (*StakingWhitelistedAddressRemovedIterator, error)
FilterWhitelistedAddressRemoved is a free log retrieval operation binding the contract event 0xf1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a.
Solidity: event WhitelistedAddressRemoved(address addr)
func (*StakingFilterer) WatchBucketCreated ¶
func (_Staking *StakingFilterer) WatchBucketCreated(opts *bind.WatchOpts, sink chan<- *StakingBucketCreated) (event.Subscription, error)
WatchBucketCreated is a free log subscription operation binding the contract event 0xbecddf0f61f76a4ac94a507fbc32c036d2fb7c4b466cad82dd9a4a2d76b263fe.
Solidity: event BucketCreated(uint256 bucketIndex, bytes12 canName, uint256 amount, uint256 stakeDuration, bool nonDecay, bytes data)
func (*StakingFilterer) WatchBucketUnstake ¶
func (_Staking *StakingFilterer) WatchBucketUnstake(opts *bind.WatchOpts, sink chan<- *StakingBucketUnstake) (event.Subscription, error)
WatchBucketUnstake is a free log subscription operation binding the contract event 0xaa192dc938c20fb63756fbd8f4d9f46092c3252f772b2c549c4688c118b6b475.
Solidity: event BucketUnstake(uint256 bucketIndex, bytes12 canName, uint256 amount, bytes data)
func (*StakingFilterer) WatchBucketUpdated ¶
func (_Staking *StakingFilterer) WatchBucketUpdated(opts *bind.WatchOpts, sink chan<- *StakingBucketUpdated) (event.Subscription, error)
WatchBucketUpdated is a free log subscription operation binding the contract event 0x004bbbedd0138c223ffed73fdab05a22a5d22770de54bea694d06661d59d1600.
Solidity: event BucketUpdated(uint256 bucketIndex, bytes12 canName, uint256 stakeDuration, uint256 stakeStartTime, bool nonDecay, address bucketOwner, bytes data)
func (*StakingFilterer) WatchBucketWithdraw ¶
func (_Staking *StakingFilterer) WatchBucketWithdraw(opts *bind.WatchOpts, sink chan<- *StakingBucketWithdraw) (event.Subscription, error)
WatchBucketWithdraw is a free log subscription operation binding the contract event 0x2a79739690fe6bf5933c5d812824e30c2b95d43b6ddadd96148a4493d3b56540.
Solidity: event BucketWithdraw(uint256 bucketIndex, bytes12 canName, uint256 amount, bytes data)
func (*StakingFilterer) WatchPause ¶
func (_Staking *StakingFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *StakingPause) (event.Subscription, error)
WatchPause is a free log subscription operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.
Solidity: event Pause()
func (*StakingFilterer) WatchUnpause ¶
func (_Staking *StakingFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *StakingUnpause) (event.Subscription, error)
WatchUnpause is a free log subscription operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.
Solidity: event Unpause()
func (*StakingFilterer) WatchWhitelistedAddressAdded ¶
func (_Staking *StakingFilterer) WatchWhitelistedAddressAdded(opts *bind.WatchOpts, sink chan<- *StakingWhitelistedAddressAdded) (event.Subscription, error)
WatchWhitelistedAddressAdded is a free log subscription operation binding the contract event 0xd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f.
Solidity: event WhitelistedAddressAdded(address addr)
func (*StakingFilterer) WatchWhitelistedAddressRemoved ¶
func (_Staking *StakingFilterer) WatchWhitelistedAddressRemoved(opts *bind.WatchOpts, sink chan<- *StakingWhitelistedAddressRemoved) (event.Subscription, error)
WatchWhitelistedAddressRemoved is a free log subscription operation binding the contract event 0xf1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a.
Solidity: event WhitelistedAddressRemoved(address addr)
type StakingPause ¶
StakingPause represents a Pause event raised by the Staking contract.
type StakingPauseIterator ¶
type StakingPauseIterator struct { Event *StakingPause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingPauseIterator is returned from FilterPause and is used to iterate over the raw logs and unpacked data for Pause events raised by the Staking contract.
func (*StakingPauseIterator) Close ¶
func (it *StakingPauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingPauseIterator) Error ¶
func (it *StakingPauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingPauseIterator) Next ¶
func (it *StakingPauseIterator) 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 StakingRaw ¶
type StakingRaw struct {
Contract *Staking // Generic contract binding to access the raw methods on
}
StakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StakingRaw) Call ¶
func (_Staking *StakingRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*StakingRaw) Transact ¶
func (_Staking *StakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingRaw) Transfer ¶
func (_Staking *StakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type StakingSession ¶
type StakingSession struct { Contract *Staking // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StakingSession) AddAddressToWhitelist ¶
func (_Staking *StakingSession) AddAddressToWhitelist(addr common.Address) (*types.Transaction, error)
AddAddressToWhitelist is a paid mutator transaction binding the contract method 0x7b9417c8.
Solidity: function addAddressToWhitelist(address addr) returns(bool success)
func (*StakingSession) AddAddressesToWhitelist ¶
func (_Staking *StakingSession) AddAddressesToWhitelist(addrs []common.Address) (*types.Transaction, error)
AddAddressesToWhitelist is a paid mutator transaction binding the contract method 0xe2ec6ec3.
Solidity: function addAddressesToWhitelist(address[] addrs) returns(bool success)
func (*StakingSession) Buckets ¶
func (_Staking *StakingSession) Buckets(arg0 *big.Int) (struct { CanName [12]byte StakedAmount *big.Int StakeDuration *big.Int StakeStartTime *big.Int NonDecay bool UnstakeStartTime *big.Int BucketOwner common.Address CreateTime *big.Int Prev *big.Int Next *big.Int }, error)
Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
Solidity: function buckets(uint256 ) constant returns(bytes12 canName, uint256 stakedAmount, uint256 stakeDuration, uint256 stakeStartTime, bool nonDecay, uint256 unstakeStartTime, address bucketOwner, uint256 createTime, uint256 prev, uint256 next)
func (*StakingSession) CreateBucket ¶
func (_Staking *StakingSession) CreateBucket(_canName [12]byte, _amount *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
CreateBucket is a paid mutator transaction binding the contract method 0xeae20f76.
Solidity: function createBucket(bytes12 _canName, uint256 _amount, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns(uint256)
func (*StakingSession) GetActiveBucketCreateTimes ¶
func (_Staking *StakingSession) GetActiveBucketCreateTimes(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int CreateTimes []*big.Int }, error)
GetActiveBucketCreateTimes is a free data retrieval call binding the contract method 0x37130b93.
Solidity: function getActiveBucketCreateTimes(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] createTimes)
func (*StakingSession) GetActiveBucketIdx ¶
func (_Staking *StakingSession) GetActiveBucketIdx(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int }, error)
GetActiveBucketIdx is a free data retrieval call binding the contract method 0x8b59c5e0.
Solidity: function getActiveBucketIdx(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes)
func (*StakingSession) GetActiveBuckets ¶
func (_Staking *StakingSession) GetActiveBuckets(_prevIndex *big.Int, _limit *big.Int) (struct { Count *big.Int Indexes []*big.Int StakeStartTimes []*big.Int StakeDurations []*big.Int Decays []bool StakedAmounts []*big.Int CanNames [][12]byte Owners []common.Address }, error)
GetActiveBuckets is a free data retrieval call binding the contract method 0x042f95bd.
Solidity: function getActiveBuckets(uint256 _prevIndex, uint256 _limit) constant returns(uint256 count, uint256[] indexes, uint256[] stakeStartTimes, uint256[] stakeDurations, bool[] decays, uint256[] stakedAmounts, bytes12[] canNames, address[] owners)
func (*StakingSession) GetBucketIndexesByAddress ¶
func (_Staking *StakingSession) GetBucketIndexesByAddress(_owner common.Address) ([]*big.Int, error)
GetBucketIndexesByAddress is a free data retrieval call binding the contract method 0x7d0de831.
Solidity: function getBucketIndexesByAddress(address _owner) constant returns(uint256[])
func (*StakingSession) IsOwner ¶
func (_Staking *StakingSession) IsOwner(_address common.Address) (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.
Solidity: function isOwner(address _address) constant returns(bool)
func (*StakingSession) MaxBucketsPerAddr ¶
func (_Staking *StakingSession) MaxBucketsPerAddr() (*big.Int, error)
MaxBucketsPerAddr is a free data retrieval call binding the contract method 0xfe8a8b4c.
Solidity: function maxBucketsPerAddr() constant returns(uint256)
func (*StakingSession) MaxStakeDuration ¶
func (_Staking *StakingSession) MaxStakeDuration() (*big.Int, error)
MaxStakeDuration is a free data retrieval call binding the contract method 0x76f70003.
Solidity: function maxStakeDuration() constant returns(uint256)
func (*StakingSession) MinStakeAmount ¶
func (_Staking *StakingSession) MinStakeAmount() (*big.Int, error)
MinStakeAmount is a free data retrieval call binding the contract method 0xf1887684.
Solidity: function minStakeAmount() constant returns(uint256)
func (*StakingSession) MinStakeDuration ¶
func (_Staking *StakingSession) MinStakeDuration() (*big.Int, error)
MinStakeDuration is a free data retrieval call binding the contract method 0x5fec5c64.
Solidity: function minStakeDuration() constant returns(uint256)
func (*StakingSession) Owner ¶
func (_Staking *StakingSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*StakingSession) Pause ¶
func (_Staking *StakingSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingSession) Paused ¶
func (_Staking *StakingSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() constant returns(bool)
func (*StakingSession) RemoveAddressFromWhitelist ¶
func (_Staking *StakingSession) RemoveAddressFromWhitelist(addr common.Address) (*types.Transaction, error)
RemoveAddressFromWhitelist is a paid mutator transaction binding the contract method 0x286dd3f5.
Solidity: function removeAddressFromWhitelist(address addr) returns(bool success)
func (*StakingSession) RemoveAddressesFromWhitelist ¶
func (_Staking *StakingSession) RemoveAddressesFromWhitelist(addrs []common.Address) (*types.Transaction, error)
RemoveAddressesFromWhitelist is a paid mutator transaction binding the contract method 0x24953eaa.
Solidity: function removeAddressesFromWhitelist(address[] addrs) returns(bool success)
func (*StakingSession) Restake ¶
func (_Staking *StakingSession) Restake(_bucketIndex *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
Restake is a paid mutator transaction binding the contract method 0x7b24a5fd.
Solidity: function restake(uint256 _bucketIndex, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns()
func (*StakingSession) Revote ¶
func (_Staking *StakingSession) Revote(_bucketIndex *big.Int, _canName [12]byte, _data []byte) (*types.Transaction, error)
Revote is a paid mutator transaction binding the contract method 0xd3e41fd2.
Solidity: function revote(uint256 _bucketIndex, bytes12 _canName, bytes _data) returns()
func (*StakingSession) SecondsPerEpoch ¶
func (_Staking *StakingSession) SecondsPerEpoch() (*big.Int, error)
SecondsPerEpoch is a free data retrieval call binding the contract method 0x580c8f3d.
Solidity: function secondsPerEpoch() constant returns(uint256)
func (*StakingSession) SetBucketOwner ¶
func (_Staking *StakingSession) SetBucketOwner(_bucketIndex *big.Int, _newOwner common.Address, _data []byte) (*types.Transaction, error)
SetBucketOwner is a paid mutator transaction binding the contract method 0x9cfe3461.
Solidity: function setBucketOwner(uint256 _bucketIndex, address _newOwner, bytes _data) returns()
func (*StakingSession) Stakeholders ¶
Stakeholders is a free data retrieval call binding the contract method 0x423ce1ae.
Solidity: function stakeholders(address , uint256 ) constant returns(uint256)
func (*StakingSession) Token ¶
func (_Staking *StakingSession) Token() (common.Address, error)
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() constant returns(address)
func (*StakingSession) TotalStaked ¶
func (_Staking *StakingSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() constant returns(uint256)
func (*StakingSession) TransferOwnership ¶
func (_Staking *StakingSession) 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 (*StakingSession) UnStakeDuration ¶
func (_Staking *StakingSession) UnStakeDuration() (*big.Int, error)
UnStakeDuration is a free data retrieval call binding the contract method 0xc698d495.
Solidity: function unStakeDuration() constant returns(uint256)
func (*StakingSession) Unpause ¶
func (_Staking *StakingSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingSession) Unstake ¶
func (_Staking *StakingSession) Unstake(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0xc8fd6ed0.
Solidity: function unstake(uint256 _bucketIndex, bytes _data) returns()
func (*StakingSession) Whitelist ¶
func (_Staking *StakingSession) Whitelist(arg0 common.Address) (bool, error)
Whitelist is a free data retrieval call binding the contract method 0x9b19251a.
Solidity: function whitelist(address ) constant returns(bool)
func (*StakingSession) Withdraw ¶
func (_Staking *StakingSession) Withdraw(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.
Solidity: function withdraw(uint256 _bucketIndex, bytes _data) returns()
type StakingTransactor ¶
type StakingTransactor struct {
// contains filtered or unexported fields
}
StakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStakingTransactor ¶
func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)
NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.
func (*StakingTransactor) AddAddressToWhitelist ¶
func (_Staking *StakingTransactor) AddAddressToWhitelist(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
AddAddressToWhitelist is a paid mutator transaction binding the contract method 0x7b9417c8.
Solidity: function addAddressToWhitelist(address addr) returns(bool success)
func (*StakingTransactor) AddAddressesToWhitelist ¶
func (_Staking *StakingTransactor) AddAddressesToWhitelist(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
AddAddressesToWhitelist is a paid mutator transaction binding the contract method 0xe2ec6ec3.
Solidity: function addAddressesToWhitelist(address[] addrs) returns(bool success)
func (*StakingTransactor) CreateBucket ¶
func (_Staking *StakingTransactor) CreateBucket(opts *bind.TransactOpts, _canName [12]byte, _amount *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
CreateBucket is a paid mutator transaction binding the contract method 0xeae20f76.
Solidity: function createBucket(bytes12 _canName, uint256 _amount, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns(uint256)
func (*StakingTransactor) Pause ¶
func (_Staking *StakingTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingTransactor) RemoveAddressFromWhitelist ¶
func (_Staking *StakingTransactor) RemoveAddressFromWhitelist(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
RemoveAddressFromWhitelist is a paid mutator transaction binding the contract method 0x286dd3f5.
Solidity: function removeAddressFromWhitelist(address addr) returns(bool success)
func (*StakingTransactor) RemoveAddressesFromWhitelist ¶
func (_Staking *StakingTransactor) RemoveAddressesFromWhitelist(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
RemoveAddressesFromWhitelist is a paid mutator transaction binding the contract method 0x24953eaa.
Solidity: function removeAddressesFromWhitelist(address[] addrs) returns(bool success)
func (*StakingTransactor) Restake ¶
func (_Staking *StakingTransactor) Restake(opts *bind.TransactOpts, _bucketIndex *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
Restake is a paid mutator transaction binding the contract method 0x7b24a5fd.
Solidity: function restake(uint256 _bucketIndex, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns()
func (*StakingTransactor) Revote ¶
func (_Staking *StakingTransactor) Revote(opts *bind.TransactOpts, _bucketIndex *big.Int, _canName [12]byte, _data []byte) (*types.Transaction, error)
Revote is a paid mutator transaction binding the contract method 0xd3e41fd2.
Solidity: function revote(uint256 _bucketIndex, bytes12 _canName, bytes _data) returns()
func (*StakingTransactor) SetBucketOwner ¶
func (_Staking *StakingTransactor) SetBucketOwner(opts *bind.TransactOpts, _bucketIndex *big.Int, _newOwner common.Address, _data []byte) (*types.Transaction, error)
SetBucketOwner is a paid mutator transaction binding the contract method 0x9cfe3461.
Solidity: function setBucketOwner(uint256 _bucketIndex, address _newOwner, bytes _data) returns()
func (*StakingTransactor) TransferOwnership ¶
func (_Staking *StakingTransactor) 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 (*StakingTransactor) Unpause ¶
func (_Staking *StakingTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingTransactor) Unstake ¶
func (_Staking *StakingTransactor) Unstake(opts *bind.TransactOpts, _bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0xc8fd6ed0.
Solidity: function unstake(uint256 _bucketIndex, bytes _data) returns()
func (*StakingTransactor) Withdraw ¶
func (_Staking *StakingTransactor) Withdraw(opts *bind.TransactOpts, _bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.
Solidity: function withdraw(uint256 _bucketIndex, bytes _data) returns()
type StakingTransactorRaw ¶
type StakingTransactorRaw struct {
Contract *StakingTransactor // Generic write-only contract binding to access the raw methods on
}
StakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StakingTransactorRaw) Transact ¶
func (_Staking *StakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StakingTransactorRaw) Transfer ¶
func (_Staking *StakingTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type StakingTransactorSession ¶
type StakingTransactorSession struct { Contract *StakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StakingTransactorSession) AddAddressToWhitelist ¶
func (_Staking *StakingTransactorSession) AddAddressToWhitelist(addr common.Address) (*types.Transaction, error)
AddAddressToWhitelist is a paid mutator transaction binding the contract method 0x7b9417c8.
Solidity: function addAddressToWhitelist(address addr) returns(bool success)
func (*StakingTransactorSession) AddAddressesToWhitelist ¶
func (_Staking *StakingTransactorSession) AddAddressesToWhitelist(addrs []common.Address) (*types.Transaction, error)
AddAddressesToWhitelist is a paid mutator transaction binding the contract method 0xe2ec6ec3.
Solidity: function addAddressesToWhitelist(address[] addrs) returns(bool success)
func (*StakingTransactorSession) CreateBucket ¶
func (_Staking *StakingTransactorSession) CreateBucket(_canName [12]byte, _amount *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
CreateBucket is a paid mutator transaction binding the contract method 0xeae20f76.
Solidity: function createBucket(bytes12 _canName, uint256 _amount, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns(uint256)
func (*StakingTransactorSession) Pause ¶
func (_Staking *StakingTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*StakingTransactorSession) RemoveAddressFromWhitelist ¶
func (_Staking *StakingTransactorSession) RemoveAddressFromWhitelist(addr common.Address) (*types.Transaction, error)
RemoveAddressFromWhitelist is a paid mutator transaction binding the contract method 0x286dd3f5.
Solidity: function removeAddressFromWhitelist(address addr) returns(bool success)
func (*StakingTransactorSession) RemoveAddressesFromWhitelist ¶
func (_Staking *StakingTransactorSession) RemoveAddressesFromWhitelist(addrs []common.Address) (*types.Transaction, error)
RemoveAddressesFromWhitelist is a paid mutator transaction binding the contract method 0x24953eaa.
Solidity: function removeAddressesFromWhitelist(address[] addrs) returns(bool success)
func (*StakingTransactorSession) Restake ¶
func (_Staking *StakingTransactorSession) Restake(_bucketIndex *big.Int, _stakeDuration *big.Int, _nonDecay bool, _data []byte) (*types.Transaction, error)
Restake is a paid mutator transaction binding the contract method 0x7b24a5fd.
Solidity: function restake(uint256 _bucketIndex, uint256 _stakeDuration, bool _nonDecay, bytes _data) returns()
func (*StakingTransactorSession) Revote ¶
func (_Staking *StakingTransactorSession) Revote(_bucketIndex *big.Int, _canName [12]byte, _data []byte) (*types.Transaction, error)
Revote is a paid mutator transaction binding the contract method 0xd3e41fd2.
Solidity: function revote(uint256 _bucketIndex, bytes12 _canName, bytes _data) returns()
func (*StakingTransactorSession) SetBucketOwner ¶
func (_Staking *StakingTransactorSession) SetBucketOwner(_bucketIndex *big.Int, _newOwner common.Address, _data []byte) (*types.Transaction, error)
SetBucketOwner is a paid mutator transaction binding the contract method 0x9cfe3461.
Solidity: function setBucketOwner(uint256 _bucketIndex, address _newOwner, bytes _data) returns()
func (*StakingTransactorSession) TransferOwnership ¶
func (_Staking *StakingTransactorSession) 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 (*StakingTransactorSession) Unpause ¶
func (_Staking *StakingTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*StakingTransactorSession) Unstake ¶
func (_Staking *StakingTransactorSession) Unstake(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0xc8fd6ed0.
Solidity: function unstake(uint256 _bucketIndex, bytes _data) returns()
func (*StakingTransactorSession) Withdraw ¶
func (_Staking *StakingTransactorSession) Withdraw(_bucketIndex *big.Int, _data []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x030ba25d.
Solidity: function withdraw(uint256 _bucketIndex, bytes _data) returns()
type StakingUnpause ¶
StakingUnpause represents a Unpause event raised by the Staking contract.
type StakingUnpauseIterator ¶
type StakingUnpauseIterator struct { Event *StakingUnpause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingUnpauseIterator is returned from FilterUnpause and is used to iterate over the raw logs and unpacked data for Unpause events raised by the Staking contract.
func (*StakingUnpauseIterator) Close ¶
func (it *StakingUnpauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingUnpauseIterator) Error ¶
func (it *StakingUnpauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingUnpauseIterator) Next ¶
func (it *StakingUnpauseIterator) 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 StakingWhitelistedAddressAdded ¶
type StakingWhitelistedAddressAdded struct { Addr common.Address Raw types.Log // Blockchain specific contextual infos }
StakingWhitelistedAddressAdded represents a WhitelistedAddressAdded event raised by the Staking contract.
type StakingWhitelistedAddressAddedIterator ¶
type StakingWhitelistedAddressAddedIterator struct { Event *StakingWhitelistedAddressAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingWhitelistedAddressAddedIterator is returned from FilterWhitelistedAddressAdded and is used to iterate over the raw logs and unpacked data for WhitelistedAddressAdded events raised by the Staking contract.
func (*StakingWhitelistedAddressAddedIterator) Close ¶
func (it *StakingWhitelistedAddressAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingWhitelistedAddressAddedIterator) Error ¶
func (it *StakingWhitelistedAddressAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingWhitelistedAddressAddedIterator) Next ¶
func (it *StakingWhitelistedAddressAddedIterator) 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 StakingWhitelistedAddressRemoved ¶
type StakingWhitelistedAddressRemoved struct { Addr common.Address Raw types.Log // Blockchain specific contextual infos }
StakingWhitelistedAddressRemoved represents a WhitelistedAddressRemoved event raised by the Staking contract.
type StakingWhitelistedAddressRemovedIterator ¶
type StakingWhitelistedAddressRemovedIterator struct { Event *StakingWhitelistedAddressRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StakingWhitelistedAddressRemovedIterator is returned from FilterWhitelistedAddressRemoved and is used to iterate over the raw logs and unpacked data for WhitelistedAddressRemoved events raised by the Staking contract.
func (*StakingWhitelistedAddressRemovedIterator) Close ¶
func (it *StakingWhitelistedAddressRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StakingWhitelistedAddressRemovedIterator) Error ¶
func (it *StakingWhitelistedAddressRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StakingWhitelistedAddressRemovedIterator) Next ¶
func (it *StakingWhitelistedAddressRemovedIterator) 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.