Documentation ¶
Index ¶
- Variables
- type IERC20StakingManagerBlockReward
- type IERC20StakingManagerPool
- type IERC20StakingManagerUserReward
- type Token
- type TokenAdminChanged
- type TokenAdminChanged0
- type TokenAdminChanged0Iterator
- type TokenAdminChangedIterator
- type TokenAdminRemoved
- type TokenAdminRemoved0
- type TokenAdminRemoved0Iterator
- type TokenAdminRemovedIterator
- type TokenCaller
- func (_Token *TokenCaller) Admin(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) Admin0(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) BlockRewards(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct{ ... }, error)
- func (_Token *TokenCaller) CanObtainRewards(opts *bind.CallOpts, _pool common.Address, _user common.Address) (bool, error)
- func (_Token *TokenCaller) GetBlockReward(opts *bind.CallOpts, _pool common.Address, _blockNumber *big.Int) (*big.Int, error)
- func (_Token *TokenCaller) GetIntervalRewards(opts *bind.CallOpts, _pool common.Address, _fromBlock *big.Int, ...) (*big.Int, error)
- func (_Token *TokenCaller) GetPendingRewards(opts *bind.CallOpts, _pool common.Address, _user common.Address) (*big.Int, error)
- func (_Token *TokenCaller) GetPendingRewards0(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
- func (_Token *TokenCaller) GetPoolInfo(opts *bind.CallOpts, _pool common.Address) (IERC20StakingManagerPool, error)
- func (_Token *TokenCaller) GetRewardToken(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) GetStakingAmount(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
- func (_Token *TokenCaller) GetStakingToken(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) GetStakingTotal(opts *bind.CallOpts) (*big.Int, error)
- func (_Token *TokenCaller) IsPoolStarted(opts *bind.CallOpts, _pool common.Address) (bool, error)
- func (_Token *TokenCaller) IsPoolWhitelisted(opts *bind.CallOpts, _pool common.Address) (bool, error)
- func (_Token *TokenCaller) MethodPaused(opts *bind.CallOpts, arg0 [4]byte) (bool, error)
- func (_Token *TokenCaller) MinClaimedBlocks(opts *bind.CallOpts) (*big.Int, error)
- func (_Token *TokenCaller) Paused(opts *bind.CallOpts, _method [4]byte) (bool, error)
- func (_Token *TokenCaller) PoolInfo(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_Token *TokenCaller) UserRewardInfo(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (struct{ ... }, error)
- type TokenCallerRaw
- type TokenCallerSession
- func (_Token *TokenCallerSession) Admin() (common.Address, error)
- func (_Token *TokenCallerSession) Admin0() (common.Address, error)
- func (_Token *TokenCallerSession) BlockRewards(arg0 common.Address, arg1 *big.Int) (struct{ ... }, error)
- func (_Token *TokenCallerSession) CanObtainRewards(_pool common.Address, _user common.Address) (bool, error)
- func (_Token *TokenCallerSession) GetBlockReward(_pool common.Address, _blockNumber *big.Int) (*big.Int, error)
- func (_Token *TokenCallerSession) GetIntervalRewards(_pool common.Address, _fromBlock *big.Int, _toBlock *big.Int) (*big.Int, error)
- func (_Token *TokenCallerSession) GetPendingRewards(_pool common.Address, _user common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) GetPendingRewards0(_user common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) GetPoolInfo(_pool common.Address) (IERC20StakingManagerPool, error)
- func (_Token *TokenCallerSession) GetRewardToken() (common.Address, error)
- func (_Token *TokenCallerSession) GetStakingAmount(_user common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) GetStakingToken() (common.Address, error)
- func (_Token *TokenCallerSession) GetStakingTotal() (*big.Int, error)
- func (_Token *TokenCallerSession) IsPoolStarted(_pool common.Address) (bool, error)
- func (_Token *TokenCallerSession) IsPoolWhitelisted(_pool common.Address) (bool, error)
- func (_Token *TokenCallerSession) MethodPaused(arg0 [4]byte) (bool, error)
- func (_Token *TokenCallerSession) MinClaimedBlocks() (*big.Int, error)
- func (_Token *TokenCallerSession) Paused(_method [4]byte) (bool, error)
- func (_Token *TokenCallerSession) PoolInfo(arg0 common.Address) (struct{ ... }, error)
- func (_Token *TokenCallerSession) UserRewardInfo(arg0 common.Address, arg1 common.Address) (struct{ ... }, error)
- type TokenEmergencyUnstaked
- type TokenEmergencyUnstakedIterator
- type TokenFilterer
- func (_Token *TokenFilterer) FilterAdminChanged(opts *bind.FilterOpts, _oldAdmin []common.Address, _newAdmin []common.Address) (*TokenAdminChangedIterator, error)
- func (_Token *TokenFilterer) FilterAdminChanged0(opts *bind.FilterOpts, _oldAdmin []common.Address, _newAdmin []common.Address) (*TokenAdminChanged0Iterator, error)
- func (_Token *TokenFilterer) FilterAdminRemoved(opts *bind.FilterOpts, _oldAdmin []common.Address) (*TokenAdminRemovedIterator, error)
- func (_Token *TokenFilterer) FilterAdminRemoved0(opts *bind.FilterOpts, _oldAdmin []common.Address) (*TokenAdminRemoved0Iterator, error)
- func (_Token *TokenFilterer) FilterEmergencyUnstaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, ...) (*TokenEmergencyUnstakedIterator, error)
- func (_Token *TokenFilterer) FilterMinClaimedBlocksUpdated(opts *bind.FilterOpts, _new []*big.Int, _old []*big.Int) (*TokenMinClaimedBlocksUpdatedIterator, error)
- func (_Token *TokenFilterer) FilterPoolSynced(opts *bind.FilterOpts) (*TokenPoolSyncedIterator, error)
- func (_Token *TokenFilterer) FilterPoolWhitelisted(opts *bind.FilterOpts) (*TokenPoolWhitelistedIterator, error)
- func (_Token *TokenFilterer) FilterRewardClaimed(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, ...) (*TokenRewardClaimedIterator, error)
- func (_Token *TokenFilterer) FilterRewardPerBlockUpdated(opts *bind.FilterOpts) (*TokenRewardPerBlockUpdatedIterator, error)
- func (_Token *TokenFilterer) FilterStaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, ...) (*TokenStakedIterator, error)
- func (_Token *TokenFilterer) FilterUnstaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, ...) (*TokenUnstakedIterator, error)
- func (_Token *TokenFilterer) FilterUserRewardUpdated(opts *bind.FilterOpts) (*TokenUserRewardUpdatedIterator, error)
- func (_Token *TokenFilterer) ParseAdminChanged(log types.Log) (*TokenAdminChanged, error)
- func (_Token *TokenFilterer) ParseAdminChanged0(log types.Log) (*TokenAdminChanged0, error)
- func (_Token *TokenFilterer) ParseAdminRemoved(log types.Log) (*TokenAdminRemoved, error)
- func (_Token *TokenFilterer) ParseAdminRemoved0(log types.Log) (*TokenAdminRemoved0, error)
- func (_Token *TokenFilterer) ParseEmergencyUnstaked(log types.Log) (*TokenEmergencyUnstaked, error)
- func (_Token *TokenFilterer) ParseMinClaimedBlocksUpdated(log types.Log) (*TokenMinClaimedBlocksUpdated, error)
- func (_Token *TokenFilterer) ParsePoolSynced(log types.Log) (*TokenPoolSynced, error)
- func (_Token *TokenFilterer) ParsePoolWhitelisted(log types.Log) (*TokenPoolWhitelisted, error)
- func (_Token *TokenFilterer) ParseRewardClaimed(log types.Log) (*TokenRewardClaimed, error)
- func (_Token *TokenFilterer) ParseRewardPerBlockUpdated(log types.Log) (*TokenRewardPerBlockUpdated, error)
- func (_Token *TokenFilterer) ParseStaked(log types.Log) (*TokenStaked, error)
- func (_Token *TokenFilterer) ParseUnstaked(log types.Log) (*TokenUnstaked, error)
- func (_Token *TokenFilterer) ParseUserRewardUpdated(log types.Log) (*TokenUserRewardUpdated, error)
- func (_Token *TokenFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenAdminChanged, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchAdminChanged0(opts *bind.WatchOpts, sink chan<- *TokenAdminChanged0, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchAdminRemoved(opts *bind.WatchOpts, sink chan<- *TokenAdminRemoved, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchAdminRemoved0(opts *bind.WatchOpts, sink chan<- *TokenAdminRemoved0, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchEmergencyUnstaked(opts *bind.WatchOpts, sink chan<- *TokenEmergencyUnstaked, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchMinClaimedBlocksUpdated(opts *bind.WatchOpts, sink chan<- *TokenMinClaimedBlocksUpdated, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchPoolSynced(opts *bind.WatchOpts, sink chan<- *TokenPoolSynced) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchPoolWhitelisted(opts *bind.WatchOpts, sink chan<- *TokenPoolWhitelisted) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *TokenRewardClaimed, _user []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchRewardPerBlockUpdated(opts *bind.WatchOpts, sink chan<- *TokenRewardPerBlockUpdated) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *TokenStaked, _user []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchUnstaked(opts *bind.WatchOpts, sink chan<- *TokenUnstaked, _user []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchUserRewardUpdated(opts *bind.WatchOpts, sink chan<- *TokenUserRewardUpdated) (event.Subscription, error)
- type TokenMinClaimedBlocksUpdated
- type TokenMinClaimedBlocksUpdatedIterator
- type TokenPoolSynced
- type TokenPoolSyncedIterator
- type TokenPoolWhitelisted
- type TokenPoolWhitelistedIterator
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenRewardClaimed
- type TokenRewardClaimedIterator
- type TokenRewardPerBlockUpdated
- type TokenRewardPerBlockUpdatedIterator
- type TokenSession
- func (_Token *TokenSession) Admin() (common.Address, error)
- func (_Token *TokenSession) Admin0() (common.Address, error)
- func (_Token *TokenSession) AllocateRewards(_user common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) BlockRewards(arg0 common.Address, arg1 *big.Int) (struct{ ... }, error)
- func (_Token *TokenSession) CanObtainRewards(_pool common.Address, _user common.Address) (bool, error)
- func (_Token *TokenSession) ChangeAdmin(_newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) ChangeAdmin0(_newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) ClaimPendingRewards() (*types.Transaction, error)
- func (_Token *TokenSession) EmergencyUnstake() (*types.Transaction, error)
- func (_Token *TokenSession) GetBlockReward(_pool common.Address, _blockNumber *big.Int) (*big.Int, error)
- func (_Token *TokenSession) GetIntervalRewards(_pool common.Address, _fromBlock *big.Int, _toBlock *big.Int) (*big.Int, error)
- func (_Token *TokenSession) GetPendingRewards(_pool common.Address, _user common.Address) (*big.Int, error)
- func (_Token *TokenSession) GetPendingRewards0(_user common.Address) (*big.Int, error)
- func (_Token *TokenSession) GetPoolInfo(_pool common.Address) (IERC20StakingManagerPool, error)
- func (_Token *TokenSession) GetRewardToken() (common.Address, error)
- func (_Token *TokenSession) GetStakingAmount(_user common.Address) (*big.Int, error)
- func (_Token *TokenSession) GetStakingToken() (common.Address, error)
- func (_Token *TokenSession) GetStakingTotal() (*big.Int, error)
- func (_Token *TokenSession) IsPoolStarted(_pool common.Address) (bool, error)
- func (_Token *TokenSession) IsPoolWhitelisted(_pool common.Address) (bool, error)
- func (_Token *TokenSession) MethodPaused(arg0 [4]byte) (bool, error)
- func (_Token *TokenSession) MinClaimedBlocks() (*big.Int, error)
- func (_Token *TokenSession) Pause(_method [4]byte) (*types.Transaction, error)
- func (_Token *TokenSession) PauseAll() (*types.Transaction, error)
- func (_Token *TokenSession) Paused(_method [4]byte) (bool, error)
- func (_Token *TokenSession) PoolInfo(arg0 common.Address) (struct{ ... }, error)
- func (_Token *TokenSession) RemoveAdmin() (*types.Transaction, error)
- func (_Token *TokenSession) RemoveAdmin0() (*types.Transaction, error)
- func (_Token *TokenSession) ResetRewards(_user common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) RestakeRewards() (*types.Transaction, error)
- func (_Token *TokenSession) SetFutureBlockReward(_pool common.Address, _fromBlock *big.Int, _rewardPerBlock *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) SetMinClaimedBlocks(_minClaimedBlocks *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) SyncPool(_pool common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) SyncRewardInfo(_user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Unpause(_method [4]byte) (*types.Transaction, error)
- func (_Token *TokenSession) UnpauseAll() (*types.Transaction, error)
- func (_Token *TokenSession) Unstake(_amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) UnstakeAll() (*types.Transaction, error)
- func (_Token *TokenSession) UserRewardInfo(arg0 common.Address, arg1 common.Address) (struct{ ... }, error)
- func (_Token *TokenSession) WhitelistPools(_pools []common.Address, _startedAtBlocks []*big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenSession) WithdrawEther() (*types.Transaction, error)
- func (_Token *TokenSession) WithdrawToken(_token common.Address) (*types.Transaction, error)
- type TokenStaked
- type TokenStakedIterator
- type TokenTransactor
- func (_Token *TokenTransactor) AllocateRewards(opts *bind.TransactOpts, _user common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) ChangeAdmin(opts *bind.TransactOpts, _newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) ChangeAdmin0(opts *bind.TransactOpts, _newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) ClaimPendingRewards(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) EmergencyUnstake(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) Pause(opts *bind.TransactOpts, _method [4]byte) (*types.Transaction, error)
- func (_Token *TokenTransactor) PauseAll(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) RemoveAdmin(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) RemoveAdmin0(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) ResetRewards(opts *bind.TransactOpts, _user common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) RestakeRewards(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) SetFutureBlockReward(opts *bind.TransactOpts, _pool common.Address, _fromBlock *big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) SetMinClaimedBlocks(opts *bind.TransactOpts, _minClaimedBlocks *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) SyncPool(opts *bind.TransactOpts, _pool common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) SyncRewardInfo(opts *bind.TransactOpts, _user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Unpause(opts *bind.TransactOpts, _method [4]byte) (*types.Transaction, error)
- func (_Token *TokenTransactor) UnpauseAll(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) Unstake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) UnstakeAll(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) WhitelistPools(opts *bind.TransactOpts, _pools []common.Address, _startedAtBlocks []*big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) WithdrawEther(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) WithdrawToken(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) AllocateRewards(_user common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ChangeAdmin(_newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ChangeAdmin0(_newAdmin common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ClaimPendingRewards() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) EmergencyUnstake() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Pause(_method [4]byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) PauseAll() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) RemoveAdmin() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) RemoveAdmin0() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ResetRewards(_user common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) RestakeRewards() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SetFutureBlockReward(_pool common.Address, _fromBlock *big.Int, _rewardPerBlock *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SetMinClaimedBlocks(_minClaimedBlocks *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SyncPool(_pool common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SyncRewardInfo(_user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Unpause(_method [4]byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) UnpauseAll() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Unstake(_amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) UnstakeAll() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) WhitelistPools(_pools []common.Address, _startedAtBlocks []*big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) WithdrawEther() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) WithdrawToken(_token common.Address) (*types.Transaction, error)
- type TokenUnstaked
- type TokenUnstakedIterator
- type TokenUserRewardUpdated
- type TokenUserRewardUpdatedIterator
Constants ¶
This section is empty.
Variables ¶
var TokenABI = TokenMetaData.ABI
TokenABI is the input ABI used to generate the binding from. Deprecated: Use TokenMetaData.ABI instead.
var TokenMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_oldAdmin\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_oldAdmin\",\"type\":\"address\"}],\"name\":\"AdminRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_new\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_old\",\"type\":\"uint256\"}],\"name\":\"MinClaimedBlocksUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_accumulatedPerShare\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_lastSyncedBlock\",\"type\":\"uint256\"}],\"name\":\"PoolSynced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"PoolWhitelisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fromBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerBlock\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structIERC20StakingManager.BlockReward[]\",\"name\":\"_blockRewards\",\"type\":\"tuple[]\"}],\"name\":\"RewardPerBlockUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debitedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creditedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastClaimedBlock\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structIERC20StakingManager.UserReward\",\"name\":\"_rewardInfo\",\"type\":\"tuple\"}],\"name\":\"UserRewardUpdated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"allocateRewards\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_rewardToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_earnedRewards\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"blockRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fromBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"canObtainRewards\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newAdmin\",\"type\":\"address\"}],\"name\":\"changeAdmin\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_reward\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_toBlock\",\"type\":\"uint256\"}],\"name\":\"getIntervalRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_result\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"getPendingRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"getPoolInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"contractIERC20\",\"name\":\"stakingToken\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"rewardToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"accumulatedRewardsPerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastSyncedBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structIERC20StakingManager.Pool\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"isPoolStarted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"isPoolWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minClaimedBlocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"stakingToken\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"rewardToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"accumulatedRewardsPerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastSyncedBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startedAtBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"removeAdmin\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"resetRewards\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rewardPerBlock\",\"type\":\"uint256\"}],\"name\":\"setFutureBlockReward\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minClaimedBlocks\",\"type\":\"uint256\"}],\"name\":\"setMinClaimedBlocks\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool\",\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"syncPool\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_newStakingAmount\",\"type\":\"uint256\"}],\"name\":\"syncRewardInfo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userRewardInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"debitedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creditedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastClaimedBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIERC20StakingPool[]\",\"name\":\"_pools\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_startedAtBlocks\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_rewardPerBlocks\",\"type\":\"uint256[]\"}],\"name\":\"whitelistPools\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"withdrawEther\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"withdrawToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_oldAdmin\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_oldAdmin\",\"type\":\"address\"}],\"name\":\"AdminRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"EmergencyUnstaked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"RewardClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Unstaked\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newAdmin\",\"type\":\"address\"}],\"name\":\"changeAdmin\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"claimPendingRewards\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"emergencyUnstake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"getPendingRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getRewardToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"getStakingAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getStakingToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getStakingTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"name\":\"methodPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_method\",\"type\":\"bytes4\"}],\"name\":\"pause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"pauseAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_method\",\"type\":\"bytes4\"}],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"removeAdmin\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"restakeRewards\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_method\",\"type\":\"bytes4\"}],\"name\":\"unpause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"unpauseAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"unstakeAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
TokenMetaData contains all meta data concerning the Token contract.
Functions ¶
This section is empty.
Types ¶
type IERC20StakingManagerBlockReward ¶
IERC20StakingManagerBlockReward is an auto generated low-level Go binding around an user-defined struct.
type IERC20StakingManagerPool ¶
type IERC20StakingManagerPool struct { StakingToken common.Address RewardToken common.Address LastSyncedBlock *big.Int StartedAtBlock *big.Int }
IERC20StakingManagerPool is an auto generated low-level Go binding around an user-defined struct.
type IERC20StakingManagerUserReward ¶
type IERC20StakingManagerUserReward struct { DebitedRewards *big.Int CreditedRewards *big.Int LastClaimedBlock *big.Int }
IERC20StakingManagerUserReward is an auto generated low-level Go binding around an user-defined struct.
type Token ¶
type Token struct { TokenCaller // Read-only binding to the contract TokenTransactor // Write-only binding to the contract TokenFilterer // Log filterer for contract events }
Token is an auto generated Go binding around an Ethereum contract.
type TokenAdminChanged ¶
type TokenAdminChanged struct { OldAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
TokenAdminChanged represents a AdminChanged event raised by the Token contract.
type TokenAdminChanged0 ¶
type TokenAdminChanged0 struct { OldAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
TokenAdminChanged0 represents a AdminChanged0 event raised by the Token contract.
type TokenAdminChanged0Iterator ¶
type TokenAdminChanged0Iterator struct { Event *TokenAdminChanged0 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenAdminChanged0Iterator is returned from FilterAdminChanged0 and is used to iterate over the raw logs and unpacked data for AdminChanged0 events raised by the Token contract.
func (*TokenAdminChanged0Iterator) Close ¶
func (it *TokenAdminChanged0Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenAdminChanged0Iterator) Error ¶
func (it *TokenAdminChanged0Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenAdminChanged0Iterator) Next ¶
func (it *TokenAdminChanged0Iterator) 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 TokenAdminChangedIterator ¶
type TokenAdminChangedIterator struct { Event *TokenAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Token contract.
func (*TokenAdminChangedIterator) Close ¶
func (it *TokenAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenAdminChangedIterator) Error ¶
func (it *TokenAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenAdminChangedIterator) Next ¶
func (it *TokenAdminChangedIterator) 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 TokenAdminRemoved ¶
type TokenAdminRemoved struct { OldAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
TokenAdminRemoved represents a AdminRemoved event raised by the Token contract.
type TokenAdminRemoved0 ¶
type TokenAdminRemoved0 struct { OldAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
TokenAdminRemoved0 represents a AdminRemoved0 event raised by the Token contract.
type TokenAdminRemoved0Iterator ¶
type TokenAdminRemoved0Iterator struct { Event *TokenAdminRemoved0 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenAdminRemoved0Iterator is returned from FilterAdminRemoved0 and is used to iterate over the raw logs and unpacked data for AdminRemoved0 events raised by the Token contract.
func (*TokenAdminRemoved0Iterator) Close ¶
func (it *TokenAdminRemoved0Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenAdminRemoved0Iterator) Error ¶
func (it *TokenAdminRemoved0Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenAdminRemoved0Iterator) Next ¶
func (it *TokenAdminRemoved0Iterator) 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 TokenAdminRemovedIterator ¶
type TokenAdminRemovedIterator struct { Event *TokenAdminRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenAdminRemovedIterator is returned from FilterAdminRemoved and is used to iterate over the raw logs and unpacked data for AdminRemoved events raised by the Token contract.
func (*TokenAdminRemovedIterator) Close ¶
func (it *TokenAdminRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenAdminRemovedIterator) Error ¶
func (it *TokenAdminRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenAdminRemovedIterator) Next ¶
func (it *TokenAdminRemovedIterator) 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 TokenCaller ¶
type TokenCaller struct {
// contains filtered or unexported fields
}
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
func (*TokenCaller) Admin ¶
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenCaller) Admin0 ¶
Admin0 is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenCaller) BlockRewards ¶
func (_Token *TokenCaller) BlockRewards(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct { FromBlock *big.Int RewardPerBlock *big.Int }, error)
BlockRewards is a free data retrieval call binding the contract method 0x97c58892.
Solidity: function blockRewards(address , uint256 ) view returns(uint256 fromBlock, uint256 rewardPerBlock)
func (*TokenCaller) CanObtainRewards ¶
func (_Token *TokenCaller) CanObtainRewards(opts *bind.CallOpts, _pool common.Address, _user common.Address) (bool, error)
CanObtainRewards is a free data retrieval call binding the contract method 0xd96f0723.
Solidity: function canObtainRewards(address _pool, address _user) view returns(bool)
func (*TokenCaller) GetBlockReward ¶
func (_Token *TokenCaller) GetBlockReward(opts *bind.CallOpts, _pool common.Address, _blockNumber *big.Int) (*big.Int, error)
GetBlockReward is a free data retrieval call binding the contract method 0x3b268950.
Solidity: function getBlockReward(address _pool, uint256 _blockNumber) view returns(uint256 _reward)
func (*TokenCaller) GetIntervalRewards ¶
func (_Token *TokenCaller) GetIntervalRewards(opts *bind.CallOpts, _pool common.Address, _fromBlock *big.Int, _toBlock *big.Int) (*big.Int, error)
GetIntervalRewards is a free data retrieval call binding the contract method 0xae019e83.
Solidity: function getIntervalRewards(address _pool, uint256 _fromBlock, uint256 _toBlock) view returns(uint256 _result)
func (*TokenCaller) GetPendingRewards ¶
func (_Token *TokenCaller) GetPendingRewards(opts *bind.CallOpts, _pool common.Address, _user common.Address) (*big.Int, error)
GetPendingRewards is a free data retrieval call binding the contract method 0x7a27db57.
Solidity: function getPendingRewards(address _pool, address _user) view returns(uint256)
func (*TokenCaller) GetPendingRewards0 ¶
func (_Token *TokenCaller) GetPendingRewards0(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
GetPendingRewards0 is a free data retrieval call binding the contract method 0xf6ed2017.
Solidity: function getPendingRewards(address _user) view returns(uint256)
func (*TokenCaller) GetPoolInfo ¶
func (_Token *TokenCaller) GetPoolInfo(opts *bind.CallOpts, _pool common.Address) (IERC20StakingManagerPool, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x06bfa938.
Solidity: function getPoolInfo(address _pool) view returns((address,address,uint256,uint256,uint256))
func (*TokenCaller) GetRewardToken ¶
GetRewardToken is a free data retrieval call binding the contract method 0x69940d79.
Solidity: function getRewardToken() view returns(address)
func (*TokenCaller) GetStakingAmount ¶
func (_Token *TokenCaller) GetStakingAmount(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
GetStakingAmount is a free data retrieval call binding the contract method 0x74363daa.
Solidity: function getStakingAmount(address _user) view returns(uint256)
func (*TokenCaller) GetStakingToken ¶
GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.
Solidity: function getStakingToken() view returns(address)
func (*TokenCaller) GetStakingTotal ¶
GetStakingTotal is a free data retrieval call binding the contract method 0x61ee98dc.
Solidity: function getStakingTotal() view returns(uint256)
func (*TokenCaller) IsPoolStarted ¶
IsPoolStarted is a free data retrieval call binding the contract method 0x7bc6d2bb.
Solidity: function isPoolStarted(address _pool) view returns(bool)
func (*TokenCaller) IsPoolWhitelisted ¶
func (_Token *TokenCaller) IsPoolWhitelisted(opts *bind.CallOpts, _pool common.Address) (bool, error)
IsPoolWhitelisted is a free data retrieval call binding the contract method 0x2b26a982.
Solidity: function isPoolWhitelisted(address _pool) view returns(bool)
func (*TokenCaller) MethodPaused ¶
MethodPaused is a free data retrieval call binding the contract method 0xfc9dd5c4.
Solidity: function methodPaused(bytes4 ) view returns(bool)
func (*TokenCaller) MinClaimedBlocks ¶
MinClaimedBlocks is a free data retrieval call binding the contract method 0x9bfc4e6e.
Solidity: function minClaimedBlocks() view returns(uint256)
func (*TokenCaller) Paused ¶
Paused is a free data retrieval call binding the contract method 0x59237eba.
Solidity: function paused(bytes4 _method) view returns(bool)
func (*TokenCaller) PoolInfo ¶
func (_Token *TokenCaller) PoolInfo(opts *bind.CallOpts, arg0 common.Address) (struct { StakingToken common.Address RewardToken common.Address AccumulatedRewardsPerShare *big.Int LastSyncedBlock *big.Int StartedAtBlock *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x9a7b5f11.
Solidity: function poolInfo(address ) view returns(address stakingToken, address rewardToken, uint256 accumulatedRewardsPerShare, uint256 lastSyncedBlock, uint256 startedAtBlock)
func (*TokenCaller) UserRewardInfo ¶
func (_Token *TokenCaller) UserRewardInfo(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (struct { DebitedRewards *big.Int CreditedRewards *big.Int LastClaimedBlock *big.Int }, error)
UserRewardInfo is a free data retrieval call binding the contract method 0x66993646.
Solidity: function userRewardInfo(address , address ) view returns(uint256 debitedRewards, uint256 creditedRewards, uint256 lastClaimedBlock)
type TokenCallerRaw ¶
type TokenCallerRaw struct {
Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenCallerRaw) Call ¶
func (_Token *TokenCallerRaw) 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 TokenCallerSession ¶
type TokenCallerSession struct { Contract *TokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenCallerSession) Admin ¶
func (_Token *TokenCallerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenCallerSession) Admin0 ¶
func (_Token *TokenCallerSession) Admin0() (common.Address, error)
Admin0 is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenCallerSession) BlockRewards ¶
func (_Token *TokenCallerSession) BlockRewards(arg0 common.Address, arg1 *big.Int) (struct { FromBlock *big.Int RewardPerBlock *big.Int }, error)
BlockRewards is a free data retrieval call binding the contract method 0x97c58892.
Solidity: function blockRewards(address , uint256 ) view returns(uint256 fromBlock, uint256 rewardPerBlock)
func (*TokenCallerSession) CanObtainRewards ¶
func (_Token *TokenCallerSession) CanObtainRewards(_pool common.Address, _user common.Address) (bool, error)
CanObtainRewards is a free data retrieval call binding the contract method 0xd96f0723.
Solidity: function canObtainRewards(address _pool, address _user) view returns(bool)
func (*TokenCallerSession) GetBlockReward ¶
func (_Token *TokenCallerSession) GetBlockReward(_pool common.Address, _blockNumber *big.Int) (*big.Int, error)
GetBlockReward is a free data retrieval call binding the contract method 0x3b268950.
Solidity: function getBlockReward(address _pool, uint256 _blockNumber) view returns(uint256 _reward)
func (*TokenCallerSession) GetIntervalRewards ¶
func (_Token *TokenCallerSession) GetIntervalRewards(_pool common.Address, _fromBlock *big.Int, _toBlock *big.Int) (*big.Int, error)
GetIntervalRewards is a free data retrieval call binding the contract method 0xae019e83.
Solidity: function getIntervalRewards(address _pool, uint256 _fromBlock, uint256 _toBlock) view returns(uint256 _result)
func (*TokenCallerSession) GetPendingRewards ¶
func (_Token *TokenCallerSession) GetPendingRewards(_pool common.Address, _user common.Address) (*big.Int, error)
GetPendingRewards is a free data retrieval call binding the contract method 0x7a27db57.
Solidity: function getPendingRewards(address _pool, address _user) view returns(uint256)
func (*TokenCallerSession) GetPendingRewards0 ¶
GetPendingRewards0 is a free data retrieval call binding the contract method 0xf6ed2017.
Solidity: function getPendingRewards(address _user) view returns(uint256)
func (*TokenCallerSession) GetPoolInfo ¶
func (_Token *TokenCallerSession) GetPoolInfo(_pool common.Address) (IERC20StakingManagerPool, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x06bfa938.
Solidity: function getPoolInfo(address _pool) view returns((address,address,uint256,uint256,uint256))
func (*TokenCallerSession) GetRewardToken ¶
func (_Token *TokenCallerSession) GetRewardToken() (common.Address, error)
GetRewardToken is a free data retrieval call binding the contract method 0x69940d79.
Solidity: function getRewardToken() view returns(address)
func (*TokenCallerSession) GetStakingAmount ¶
GetStakingAmount is a free data retrieval call binding the contract method 0x74363daa.
Solidity: function getStakingAmount(address _user) view returns(uint256)
func (*TokenCallerSession) GetStakingToken ¶
func (_Token *TokenCallerSession) GetStakingToken() (common.Address, error)
GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.
Solidity: function getStakingToken() view returns(address)
func (*TokenCallerSession) GetStakingTotal ¶
func (_Token *TokenCallerSession) GetStakingTotal() (*big.Int, error)
GetStakingTotal is a free data retrieval call binding the contract method 0x61ee98dc.
Solidity: function getStakingTotal() view returns(uint256)
func (*TokenCallerSession) IsPoolStarted ¶
func (_Token *TokenCallerSession) IsPoolStarted(_pool common.Address) (bool, error)
IsPoolStarted is a free data retrieval call binding the contract method 0x7bc6d2bb.
Solidity: function isPoolStarted(address _pool) view returns(bool)
func (*TokenCallerSession) IsPoolWhitelisted ¶
func (_Token *TokenCallerSession) IsPoolWhitelisted(_pool common.Address) (bool, error)
IsPoolWhitelisted is a free data retrieval call binding the contract method 0x2b26a982.
Solidity: function isPoolWhitelisted(address _pool) view returns(bool)
func (*TokenCallerSession) MethodPaused ¶
func (_Token *TokenCallerSession) MethodPaused(arg0 [4]byte) (bool, error)
MethodPaused is a free data retrieval call binding the contract method 0xfc9dd5c4.
Solidity: function methodPaused(bytes4 ) view returns(bool)
func (*TokenCallerSession) MinClaimedBlocks ¶
func (_Token *TokenCallerSession) MinClaimedBlocks() (*big.Int, error)
MinClaimedBlocks is a free data retrieval call binding the contract method 0x9bfc4e6e.
Solidity: function minClaimedBlocks() view returns(uint256)
func (*TokenCallerSession) Paused ¶
func (_Token *TokenCallerSession) Paused(_method [4]byte) (bool, error)
Paused is a free data retrieval call binding the contract method 0x59237eba.
Solidity: function paused(bytes4 _method) view returns(bool)
func (*TokenCallerSession) PoolInfo ¶
func (_Token *TokenCallerSession) PoolInfo(arg0 common.Address) (struct { StakingToken common.Address RewardToken common.Address AccumulatedRewardsPerShare *big.Int LastSyncedBlock *big.Int StartedAtBlock *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x9a7b5f11.
Solidity: function poolInfo(address ) view returns(address stakingToken, address rewardToken, uint256 accumulatedRewardsPerShare, uint256 lastSyncedBlock, uint256 startedAtBlock)
func (*TokenCallerSession) UserRewardInfo ¶
func (_Token *TokenCallerSession) UserRewardInfo(arg0 common.Address, arg1 common.Address) (struct { DebitedRewards *big.Int CreditedRewards *big.Int LastClaimedBlock *big.Int }, error)
UserRewardInfo is a free data retrieval call binding the contract method 0x66993646.
Solidity: function userRewardInfo(address , address ) view returns(uint256 debitedRewards, uint256 creditedRewards, uint256 lastClaimedBlock)
type TokenEmergencyUnstaked ¶
type TokenEmergencyUnstaked struct { User common.Address Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenEmergencyUnstaked represents a EmergencyUnstaked event raised by the Token contract.
type TokenEmergencyUnstakedIterator ¶
type TokenEmergencyUnstakedIterator struct { Event *TokenEmergencyUnstaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenEmergencyUnstakedIterator is returned from FilterEmergencyUnstaked and is used to iterate over the raw logs and unpacked data for EmergencyUnstaked events raised by the Token contract.
func (*TokenEmergencyUnstakedIterator) Close ¶
func (it *TokenEmergencyUnstakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenEmergencyUnstakedIterator) Error ¶
func (it *TokenEmergencyUnstakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenEmergencyUnstakedIterator) Next ¶
func (it *TokenEmergencyUnstakedIterator) 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 TokenFilterer ¶
type TokenFilterer struct {
// contains filtered or unexported fields
}
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenFilterer ¶
func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
func (*TokenFilterer) FilterAdminChanged ¶
func (_Token *TokenFilterer) FilterAdminChanged(opts *bind.FilterOpts, _oldAdmin []common.Address, _newAdmin []common.Address) (*TokenAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) FilterAdminChanged0 ¶
func (_Token *TokenFilterer) FilterAdminChanged0(opts *bind.FilterOpts, _oldAdmin []common.Address, _newAdmin []common.Address) (*TokenAdminChanged0Iterator, error)
FilterAdminChanged0 is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) FilterAdminRemoved ¶
func (_Token *TokenFilterer) FilterAdminRemoved(opts *bind.FilterOpts, _oldAdmin []common.Address) (*TokenAdminRemovedIterator, error)
FilterAdminRemoved is a free log retrieval operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) FilterAdminRemoved0 ¶
func (_Token *TokenFilterer) FilterAdminRemoved0(opts *bind.FilterOpts, _oldAdmin []common.Address) (*TokenAdminRemoved0Iterator, error)
FilterAdminRemoved0 is a free log retrieval operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) FilterEmergencyUnstaked ¶
func (_Token *TokenFilterer) FilterEmergencyUnstaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, _amount []*big.Int) (*TokenEmergencyUnstakedIterator, error)
FilterEmergencyUnstaked is a free log retrieval operation binding the contract event 0x589526ce978dd18660ed3d203132d4f86762231a31e8fe21896e2ee637069551.
Solidity: event EmergencyUnstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) FilterMinClaimedBlocksUpdated ¶
func (_Token *TokenFilterer) FilterMinClaimedBlocksUpdated(opts *bind.FilterOpts, _new []*big.Int, _old []*big.Int) (*TokenMinClaimedBlocksUpdatedIterator, error)
FilterMinClaimedBlocksUpdated is a free log retrieval operation binding the contract event 0xe5da2dc1975dc4accc01d49cad544016c79215ed2e6ed8f843583deea3071e95.
Solidity: event MinClaimedBlocksUpdated(uint256 indexed _new, uint256 indexed _old)
func (*TokenFilterer) FilterPoolSynced ¶
func (_Token *TokenFilterer) FilterPoolSynced(opts *bind.FilterOpts) (*TokenPoolSyncedIterator, error)
FilterPoolSynced is a free log retrieval operation binding the contract event 0xd247cac827464dafee8ef292281a2959c39bb57f4cfe99c6e4bde901bfff5781.
Solidity: event PoolSynced(address _pool, uint256 _accumulatedPerShare, uint256 _lastSyncedBlock)
func (*TokenFilterer) FilterPoolWhitelisted ¶
func (_Token *TokenFilterer) FilterPoolWhitelisted(opts *bind.FilterOpts) (*TokenPoolWhitelistedIterator, error)
FilterPoolWhitelisted is a free log retrieval operation binding the contract event 0xe6432174fa1253e6c61176cce257657dfbe2d386e217d070bd9360f1a76d2103.
Solidity: event PoolWhitelisted(address _pool)
func (*TokenFilterer) FilterRewardClaimed ¶
func (_Token *TokenFilterer) FilterRewardClaimed(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, _amount []*big.Int) (*TokenRewardClaimedIterator, error)
FilterRewardClaimed is a free log retrieval operation binding the contract event 0x0aa4d283470c904c551d18bb894d37e17674920f3261a7f854be501e25f421b7.
Solidity: event RewardClaimed(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) FilterRewardPerBlockUpdated ¶
func (_Token *TokenFilterer) FilterRewardPerBlockUpdated(opts *bind.FilterOpts) (*TokenRewardPerBlockUpdatedIterator, error)
FilterRewardPerBlockUpdated is a free log retrieval operation binding the contract event 0x1c1ff54b17c7e688c5c98e727cc95e474dd35e66e81fece270d178ea4c32324d.
Solidity: event RewardPerBlockUpdated(address _pool, (uint256,uint256)[] _blockRewards)
func (*TokenFilterer) FilterStaked ¶
func (_Token *TokenFilterer) FilterStaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, _amount []*big.Int) (*TokenStakedIterator, error)
FilterStaked is a free log retrieval operation binding the contract event 0x5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd7.
Solidity: event Staked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) FilterUnstaked ¶
func (_Token *TokenFilterer) FilterUnstaked(opts *bind.FilterOpts, _user []common.Address, _token []common.Address, _amount []*big.Int) (*TokenUnstakedIterator, error)
FilterUnstaked is a free log retrieval operation binding the contract event 0xd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e3.
Solidity: event Unstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) FilterUserRewardUpdated ¶
func (_Token *TokenFilterer) FilterUserRewardUpdated(opts *bind.FilterOpts) (*TokenUserRewardUpdatedIterator, error)
FilterUserRewardUpdated is a free log retrieval operation binding the contract event 0x027f73145bb86dfcdffa5fae931b3cab5ab93c376099cc84b6d2e4985f10e14b.
Solidity: event UserRewardUpdated(address _pool, address _user, (uint256,uint256,uint256) _rewardInfo)
func (*TokenFilterer) ParseAdminChanged ¶
func (_Token *TokenFilterer) ParseAdminChanged(log types.Log) (*TokenAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) ParseAdminChanged0 ¶
func (_Token *TokenFilterer) ParseAdminChanged0(log types.Log) (*TokenAdminChanged0, error)
ParseAdminChanged0 is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) ParseAdminRemoved ¶
func (_Token *TokenFilterer) ParseAdminRemoved(log types.Log) (*TokenAdminRemoved, error)
ParseAdminRemoved is a log parse operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) ParseAdminRemoved0 ¶
func (_Token *TokenFilterer) ParseAdminRemoved0(log types.Log) (*TokenAdminRemoved0, error)
ParseAdminRemoved0 is a log parse operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) ParseEmergencyUnstaked ¶
func (_Token *TokenFilterer) ParseEmergencyUnstaked(log types.Log) (*TokenEmergencyUnstaked, error)
ParseEmergencyUnstaked is a log parse operation binding the contract event 0x589526ce978dd18660ed3d203132d4f86762231a31e8fe21896e2ee637069551.
Solidity: event EmergencyUnstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) ParseMinClaimedBlocksUpdated ¶
func (_Token *TokenFilterer) ParseMinClaimedBlocksUpdated(log types.Log) (*TokenMinClaimedBlocksUpdated, error)
ParseMinClaimedBlocksUpdated is a log parse operation binding the contract event 0xe5da2dc1975dc4accc01d49cad544016c79215ed2e6ed8f843583deea3071e95.
Solidity: event MinClaimedBlocksUpdated(uint256 indexed _new, uint256 indexed _old)
func (*TokenFilterer) ParsePoolSynced ¶
func (_Token *TokenFilterer) ParsePoolSynced(log types.Log) (*TokenPoolSynced, error)
ParsePoolSynced is a log parse operation binding the contract event 0xd247cac827464dafee8ef292281a2959c39bb57f4cfe99c6e4bde901bfff5781.
Solidity: event PoolSynced(address _pool, uint256 _accumulatedPerShare, uint256 _lastSyncedBlock)
func (*TokenFilterer) ParsePoolWhitelisted ¶
func (_Token *TokenFilterer) ParsePoolWhitelisted(log types.Log) (*TokenPoolWhitelisted, error)
ParsePoolWhitelisted is a log parse operation binding the contract event 0xe6432174fa1253e6c61176cce257657dfbe2d386e217d070bd9360f1a76d2103.
Solidity: event PoolWhitelisted(address _pool)
func (*TokenFilterer) ParseRewardClaimed ¶
func (_Token *TokenFilterer) ParseRewardClaimed(log types.Log) (*TokenRewardClaimed, error)
ParseRewardClaimed is a log parse operation binding the contract event 0x0aa4d283470c904c551d18bb894d37e17674920f3261a7f854be501e25f421b7.
Solidity: event RewardClaimed(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) ParseRewardPerBlockUpdated ¶
func (_Token *TokenFilterer) ParseRewardPerBlockUpdated(log types.Log) (*TokenRewardPerBlockUpdated, error)
ParseRewardPerBlockUpdated is a log parse operation binding the contract event 0x1c1ff54b17c7e688c5c98e727cc95e474dd35e66e81fece270d178ea4c32324d.
Solidity: event RewardPerBlockUpdated(address _pool, (uint256,uint256)[] _blockRewards)
func (*TokenFilterer) ParseStaked ¶
func (_Token *TokenFilterer) ParseStaked(log types.Log) (*TokenStaked, error)
ParseStaked is a log parse operation binding the contract event 0x5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd7.
Solidity: event Staked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) ParseUnstaked ¶
func (_Token *TokenFilterer) ParseUnstaked(log types.Log) (*TokenUnstaked, error)
ParseUnstaked is a log parse operation binding the contract event 0xd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e3.
Solidity: event Unstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) ParseUserRewardUpdated ¶
func (_Token *TokenFilterer) ParseUserRewardUpdated(log types.Log) (*TokenUserRewardUpdated, error)
ParseUserRewardUpdated is a log parse operation binding the contract event 0x027f73145bb86dfcdffa5fae931b3cab5ab93c376099cc84b6d2e4985f10e14b.
Solidity: event UserRewardUpdated(address _pool, address _user, (uint256,uint256,uint256) _rewardInfo)
func (*TokenFilterer) WatchAdminChanged ¶
func (_Token *TokenFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenAdminChanged, _oldAdmin []common.Address, _newAdmin []common.Address) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) WatchAdminChanged0 ¶
func (_Token *TokenFilterer) WatchAdminChanged0(opts *bind.WatchOpts, sink chan<- *TokenAdminChanged0, _oldAdmin []common.Address, _newAdmin []common.Address) (event.Subscription, error)
WatchAdminChanged0 is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address indexed _oldAdmin, address indexed _newAdmin)
func (*TokenFilterer) WatchAdminRemoved ¶
func (_Token *TokenFilterer) WatchAdminRemoved(opts *bind.WatchOpts, sink chan<- *TokenAdminRemoved, _oldAdmin []common.Address) (event.Subscription, error)
WatchAdminRemoved is a free log subscription operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) WatchAdminRemoved0 ¶
func (_Token *TokenFilterer) WatchAdminRemoved0(opts *bind.WatchOpts, sink chan<- *TokenAdminRemoved0, _oldAdmin []common.Address) (event.Subscription, error)
WatchAdminRemoved0 is a free log subscription operation binding the contract event 0xa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f.
Solidity: event AdminRemoved(address indexed _oldAdmin)
func (*TokenFilterer) WatchEmergencyUnstaked ¶
func (_Token *TokenFilterer) WatchEmergencyUnstaked(opts *bind.WatchOpts, sink chan<- *TokenEmergencyUnstaked, _user []common.Address, _token []common.Address, _amount []*big.Int) (event.Subscription, error)
WatchEmergencyUnstaked is a free log subscription operation binding the contract event 0x589526ce978dd18660ed3d203132d4f86762231a31e8fe21896e2ee637069551.
Solidity: event EmergencyUnstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) WatchMinClaimedBlocksUpdated ¶
func (_Token *TokenFilterer) WatchMinClaimedBlocksUpdated(opts *bind.WatchOpts, sink chan<- *TokenMinClaimedBlocksUpdated, _new []*big.Int, _old []*big.Int) (event.Subscription, error)
WatchMinClaimedBlocksUpdated is a free log subscription operation binding the contract event 0xe5da2dc1975dc4accc01d49cad544016c79215ed2e6ed8f843583deea3071e95.
Solidity: event MinClaimedBlocksUpdated(uint256 indexed _new, uint256 indexed _old)
func (*TokenFilterer) WatchPoolSynced ¶
func (_Token *TokenFilterer) WatchPoolSynced(opts *bind.WatchOpts, sink chan<- *TokenPoolSynced) (event.Subscription, error)
WatchPoolSynced is a free log subscription operation binding the contract event 0xd247cac827464dafee8ef292281a2959c39bb57f4cfe99c6e4bde901bfff5781.
Solidity: event PoolSynced(address _pool, uint256 _accumulatedPerShare, uint256 _lastSyncedBlock)
func (*TokenFilterer) WatchPoolWhitelisted ¶
func (_Token *TokenFilterer) WatchPoolWhitelisted(opts *bind.WatchOpts, sink chan<- *TokenPoolWhitelisted) (event.Subscription, error)
WatchPoolWhitelisted is a free log subscription operation binding the contract event 0xe6432174fa1253e6c61176cce257657dfbe2d386e217d070bd9360f1a76d2103.
Solidity: event PoolWhitelisted(address _pool)
func (*TokenFilterer) WatchRewardClaimed ¶
func (_Token *TokenFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *TokenRewardClaimed, _user []common.Address, _token []common.Address, _amount []*big.Int) (event.Subscription, error)
WatchRewardClaimed is a free log subscription operation binding the contract event 0x0aa4d283470c904c551d18bb894d37e17674920f3261a7f854be501e25f421b7.
Solidity: event RewardClaimed(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) WatchRewardPerBlockUpdated ¶
func (_Token *TokenFilterer) WatchRewardPerBlockUpdated(opts *bind.WatchOpts, sink chan<- *TokenRewardPerBlockUpdated) (event.Subscription, error)
WatchRewardPerBlockUpdated is a free log subscription operation binding the contract event 0x1c1ff54b17c7e688c5c98e727cc95e474dd35e66e81fece270d178ea4c32324d.
Solidity: event RewardPerBlockUpdated(address _pool, (uint256,uint256)[] _blockRewards)
func (*TokenFilterer) WatchStaked ¶
func (_Token *TokenFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *TokenStaked, _user []common.Address, _token []common.Address, _amount []*big.Int) (event.Subscription, error)
WatchStaked is a free log subscription operation binding the contract event 0x5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd7.
Solidity: event Staked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) WatchUnstaked ¶
func (_Token *TokenFilterer) WatchUnstaked(opts *bind.WatchOpts, sink chan<- *TokenUnstaked, _user []common.Address, _token []common.Address, _amount []*big.Int) (event.Subscription, error)
WatchUnstaked is a free log subscription operation binding the contract event 0xd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e3.
Solidity: event Unstaked(address indexed _user, address indexed _token, uint256 indexed _amount)
func (*TokenFilterer) WatchUserRewardUpdated ¶
func (_Token *TokenFilterer) WatchUserRewardUpdated(opts *bind.WatchOpts, sink chan<- *TokenUserRewardUpdated) (event.Subscription, error)
WatchUserRewardUpdated is a free log subscription operation binding the contract event 0x027f73145bb86dfcdffa5fae931b3cab5ab93c376099cc84b6d2e4985f10e14b.
Solidity: event UserRewardUpdated(address _pool, address _user, (uint256,uint256,uint256) _rewardInfo)
type TokenMinClaimedBlocksUpdated ¶
type TokenMinClaimedBlocksUpdated struct { New *big.Int Old *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenMinClaimedBlocksUpdated represents a MinClaimedBlocksUpdated event raised by the Token contract.
type TokenMinClaimedBlocksUpdatedIterator ¶
type TokenMinClaimedBlocksUpdatedIterator struct { Event *TokenMinClaimedBlocksUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenMinClaimedBlocksUpdatedIterator is returned from FilterMinClaimedBlocksUpdated and is used to iterate over the raw logs and unpacked data for MinClaimedBlocksUpdated events raised by the Token contract.
func (*TokenMinClaimedBlocksUpdatedIterator) Close ¶
func (it *TokenMinClaimedBlocksUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenMinClaimedBlocksUpdatedIterator) Error ¶
func (it *TokenMinClaimedBlocksUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenMinClaimedBlocksUpdatedIterator) Next ¶
func (it *TokenMinClaimedBlocksUpdatedIterator) 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 TokenPoolSynced ¶
type TokenPoolSynced struct { Pool common.Address LastSyncedBlock *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenPoolSynced represents a PoolSynced event raised by the Token contract.
type TokenPoolSyncedIterator ¶
type TokenPoolSyncedIterator struct { Event *TokenPoolSynced // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenPoolSyncedIterator is returned from FilterPoolSynced and is used to iterate over the raw logs and unpacked data for PoolSynced events raised by the Token contract.
func (*TokenPoolSyncedIterator) Close ¶
func (it *TokenPoolSyncedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenPoolSyncedIterator) Error ¶
func (it *TokenPoolSyncedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenPoolSyncedIterator) Next ¶
func (it *TokenPoolSyncedIterator) 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 TokenPoolWhitelisted ¶
type TokenPoolWhitelisted struct { Pool common.Address Raw types.Log // Blockchain specific contextual infos }
TokenPoolWhitelisted represents a PoolWhitelisted event raised by the Token contract.
type TokenPoolWhitelistedIterator ¶
type TokenPoolWhitelistedIterator struct { Event *TokenPoolWhitelisted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenPoolWhitelistedIterator is returned from FilterPoolWhitelisted and is used to iterate over the raw logs and unpacked data for PoolWhitelisted events raised by the Token contract.
func (*TokenPoolWhitelistedIterator) Close ¶
func (it *TokenPoolWhitelistedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenPoolWhitelistedIterator) Error ¶
func (it *TokenPoolWhitelistedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenPoolWhitelistedIterator) Next ¶
func (it *TokenPoolWhitelistedIterator) 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 TokenRaw ¶
type TokenRaw struct {
Contract *Token // Generic contract binding to access the raw methods on
}
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRaw) Call ¶
func (_Token *TokenRaw) 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 (*TokenRaw) Transact ¶
func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRaw) Transfer ¶
func (_Token *TokenRaw) 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 TokenRewardClaimed ¶
type TokenRewardClaimed struct { User common.Address Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenRewardClaimed represents a RewardClaimed event raised by the Token contract.
type TokenRewardClaimedIterator ¶
type TokenRewardClaimedIterator struct { Event *TokenRewardClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenRewardClaimedIterator is returned from FilterRewardClaimed and is used to iterate over the raw logs and unpacked data for RewardClaimed events raised by the Token contract.
func (*TokenRewardClaimedIterator) Close ¶
func (it *TokenRewardClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenRewardClaimedIterator) Error ¶
func (it *TokenRewardClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenRewardClaimedIterator) Next ¶
func (it *TokenRewardClaimedIterator) 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 TokenRewardPerBlockUpdated ¶
type TokenRewardPerBlockUpdated struct { Pool common.Address BlockRewards []IERC20StakingManagerBlockReward Raw types.Log // Blockchain specific contextual infos }
TokenRewardPerBlockUpdated represents a RewardPerBlockUpdated event raised by the Token contract.
type TokenRewardPerBlockUpdatedIterator ¶
type TokenRewardPerBlockUpdatedIterator struct { Event *TokenRewardPerBlockUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenRewardPerBlockUpdatedIterator is returned from FilterRewardPerBlockUpdated and is used to iterate over the raw logs and unpacked data for RewardPerBlockUpdated events raised by the Token contract.
func (*TokenRewardPerBlockUpdatedIterator) Close ¶
func (it *TokenRewardPerBlockUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenRewardPerBlockUpdatedIterator) Error ¶
func (it *TokenRewardPerBlockUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenRewardPerBlockUpdatedIterator) Next ¶
func (it *TokenRewardPerBlockUpdatedIterator) 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 TokenSession ¶
type TokenSession struct { Contract *Token // 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 }
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenSession) Admin ¶
func (_Token *TokenSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenSession) Admin0 ¶
func (_Token *TokenSession) Admin0() (common.Address, error)
Admin0 is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*TokenSession) AllocateRewards ¶
func (_Token *TokenSession) AllocateRewards(_user common.Address) (*types.Transaction, error)
AllocateRewards is a paid mutator transaction binding the contract method 0x80cde84d.
Solidity: function allocateRewards(address _user) returns(address _rewardToken, uint256 _earnedRewards)
func (*TokenSession) BlockRewards ¶
func (_Token *TokenSession) BlockRewards(arg0 common.Address, arg1 *big.Int) (struct { FromBlock *big.Int RewardPerBlock *big.Int }, error)
BlockRewards is a free data retrieval call binding the contract method 0x97c58892.
Solidity: function blockRewards(address , uint256 ) view returns(uint256 fromBlock, uint256 rewardPerBlock)
func (*TokenSession) CanObtainRewards ¶
func (_Token *TokenSession) CanObtainRewards(_pool common.Address, _user common.Address) (bool, error)
CanObtainRewards is a free data retrieval call binding the contract method 0xd96f0723.
Solidity: function canObtainRewards(address _pool, address _user) view returns(bool)
func (*TokenSession) ChangeAdmin ¶
func (_Token *TokenSession) ChangeAdmin(_newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenSession) ChangeAdmin0 ¶
func (_Token *TokenSession) ChangeAdmin0(_newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin0 is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenSession) ClaimPendingRewards ¶
func (_Token *TokenSession) ClaimPendingRewards() (*types.Transaction, error)
ClaimPendingRewards is a paid mutator transaction binding the contract method 0x92bd7b2c.
Solidity: function claimPendingRewards() returns()
func (*TokenSession) EmergencyUnstake ¶
func (_Token *TokenSession) EmergencyUnstake() (*types.Transaction, error)
EmergencyUnstake is a paid mutator transaction binding the contract method 0x7589cf2f.
Solidity: function emergencyUnstake() returns()
func (*TokenSession) GetBlockReward ¶
func (_Token *TokenSession) GetBlockReward(_pool common.Address, _blockNumber *big.Int) (*big.Int, error)
GetBlockReward is a free data retrieval call binding the contract method 0x3b268950.
Solidity: function getBlockReward(address _pool, uint256 _blockNumber) view returns(uint256 _reward)
func (*TokenSession) GetIntervalRewards ¶
func (_Token *TokenSession) GetIntervalRewards(_pool common.Address, _fromBlock *big.Int, _toBlock *big.Int) (*big.Int, error)
GetIntervalRewards is a free data retrieval call binding the contract method 0xae019e83.
Solidity: function getIntervalRewards(address _pool, uint256 _fromBlock, uint256 _toBlock) view returns(uint256 _result)
func (*TokenSession) GetPendingRewards ¶
func (_Token *TokenSession) GetPendingRewards(_pool common.Address, _user common.Address) (*big.Int, error)
GetPendingRewards is a free data retrieval call binding the contract method 0x7a27db57.
Solidity: function getPendingRewards(address _pool, address _user) view returns(uint256)
func (*TokenSession) GetPendingRewards0 ¶
GetPendingRewards0 is a free data retrieval call binding the contract method 0xf6ed2017.
Solidity: function getPendingRewards(address _user) view returns(uint256)
func (*TokenSession) GetPoolInfo ¶
func (_Token *TokenSession) GetPoolInfo(_pool common.Address) (IERC20StakingManagerPool, error)
GetPoolInfo is a free data retrieval call binding the contract method 0x06bfa938.
Solidity: function getPoolInfo(address _pool) view returns((address,address,uint256,uint256,uint256))
func (*TokenSession) GetRewardToken ¶
func (_Token *TokenSession) GetRewardToken() (common.Address, error)
GetRewardToken is a free data retrieval call binding the contract method 0x69940d79.
Solidity: function getRewardToken() view returns(address)
func (*TokenSession) GetStakingAmount ¶
GetStakingAmount is a free data retrieval call binding the contract method 0x74363daa.
Solidity: function getStakingAmount(address _user) view returns(uint256)
func (*TokenSession) GetStakingToken ¶
func (_Token *TokenSession) GetStakingToken() (common.Address, error)
GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.
Solidity: function getStakingToken() view returns(address)
func (*TokenSession) GetStakingTotal ¶
func (_Token *TokenSession) GetStakingTotal() (*big.Int, error)
GetStakingTotal is a free data retrieval call binding the contract method 0x61ee98dc.
Solidity: function getStakingTotal() view returns(uint256)
func (*TokenSession) IsPoolStarted ¶
func (_Token *TokenSession) IsPoolStarted(_pool common.Address) (bool, error)
IsPoolStarted is a free data retrieval call binding the contract method 0x7bc6d2bb.
Solidity: function isPoolStarted(address _pool) view returns(bool)
func (*TokenSession) IsPoolWhitelisted ¶
func (_Token *TokenSession) IsPoolWhitelisted(_pool common.Address) (bool, error)
IsPoolWhitelisted is a free data retrieval call binding the contract method 0x2b26a982.
Solidity: function isPoolWhitelisted(address _pool) view returns(bool)
func (*TokenSession) MethodPaused ¶
func (_Token *TokenSession) MethodPaused(arg0 [4]byte) (bool, error)
MethodPaused is a free data retrieval call binding the contract method 0xfc9dd5c4.
Solidity: function methodPaused(bytes4 ) view returns(bool)
func (*TokenSession) MinClaimedBlocks ¶
func (_Token *TokenSession) MinClaimedBlocks() (*big.Int, error)
MinClaimedBlocks is a free data retrieval call binding the contract method 0x9bfc4e6e.
Solidity: function minClaimedBlocks() view returns(uint256)
func (*TokenSession) Pause ¶
func (_Token *TokenSession) Pause(_method [4]byte) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x3aa83ec7.
Solidity: function pause(bytes4 _method) returns()
func (*TokenSession) PauseAll ¶
func (_Token *TokenSession) PauseAll() (*types.Transaction, error)
PauseAll is a paid mutator transaction binding the contract method 0x595c6a67.
Solidity: function pauseAll() returns()
func (*TokenSession) Paused ¶
func (_Token *TokenSession) Paused(_method [4]byte) (bool, error)
Paused is a free data retrieval call binding the contract method 0x59237eba.
Solidity: function paused(bytes4 _method) view returns(bool)
func (*TokenSession) PoolInfo ¶
func (_Token *TokenSession) PoolInfo(arg0 common.Address) (struct { StakingToken common.Address RewardToken common.Address AccumulatedRewardsPerShare *big.Int LastSyncedBlock *big.Int StartedAtBlock *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x9a7b5f11.
Solidity: function poolInfo(address ) view returns(address stakingToken, address rewardToken, uint256 accumulatedRewardsPerShare, uint256 lastSyncedBlock, uint256 startedAtBlock)
func (*TokenSession) RemoveAdmin ¶
func (_Token *TokenSession) RemoveAdmin() (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenSession) RemoveAdmin0 ¶
func (_Token *TokenSession) RemoveAdmin0() (*types.Transaction, error)
RemoveAdmin0 is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenSession) ResetRewards ¶
func (_Token *TokenSession) ResetRewards(_user common.Address) (*types.Transaction, error)
ResetRewards is a paid mutator transaction binding the contract method 0x5aa0c7f8.
Solidity: function resetRewards(address _user) returns()
func (*TokenSession) RestakeRewards ¶
func (_Token *TokenSession) RestakeRewards() (*types.Transaction, error)
RestakeRewards is a paid mutator transaction binding the contract method 0x3d8527ba.
Solidity: function restakeRewards() returns()
func (*TokenSession) SetFutureBlockReward ¶
func (_Token *TokenSession) SetFutureBlockReward(_pool common.Address, _fromBlock *big.Int, _rewardPerBlock *big.Int) (*types.Transaction, error)
SetFutureBlockReward is a paid mutator transaction binding the contract method 0x39768e6a.
Solidity: function setFutureBlockReward(address _pool, uint256 _fromBlock, uint256 _rewardPerBlock) returns()
func (*TokenSession) SetMinClaimedBlocks ¶
func (_Token *TokenSession) SetMinClaimedBlocks(_minClaimedBlocks *big.Int) (*types.Transaction, error)
SetMinClaimedBlocks is a paid mutator transaction binding the contract method 0x405f5b07.
Solidity: function setMinClaimedBlocks(uint256 _minClaimedBlocks) returns()
func (*TokenSession) Stake ¶
func (_Token *TokenSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*TokenSession) SyncPool ¶
func (_Token *TokenSession) SyncPool(_pool common.Address) (*types.Transaction, error)
SyncPool is a paid mutator transaction binding the contract method 0x8fb2e2c2.
Solidity: function syncPool(address _pool) returns()
func (*TokenSession) SyncRewardInfo ¶
func (_Token *TokenSession) SyncRewardInfo(_user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
SyncRewardInfo is a paid mutator transaction binding the contract method 0x73939bb5.
Solidity: function syncRewardInfo(address _user, uint256 _newStakingAmount) returns()
func (*TokenSession) Unpause ¶
func (_Token *TokenSession) Unpause(_method [4]byte) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0xbac1e94b.
Solidity: function unpause(bytes4 _method) returns()
func (*TokenSession) UnpauseAll ¶
func (_Token *TokenSession) UnpauseAll() (*types.Transaction, error)
UnpauseAll is a paid mutator transaction binding the contract method 0x8a2ddd03.
Solidity: function unpauseAll() returns()
func (*TokenSession) Unstake ¶
func (_Token *TokenSession) Unstake(_amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*TokenSession) UnstakeAll ¶
func (_Token *TokenSession) UnstakeAll() (*types.Transaction, error)
UnstakeAll is a paid mutator transaction binding the contract method 0x35322f37.
Solidity: function unstakeAll() returns()
func (*TokenSession) UserRewardInfo ¶
func (_Token *TokenSession) UserRewardInfo(arg0 common.Address, arg1 common.Address) (struct { DebitedRewards *big.Int CreditedRewards *big.Int LastClaimedBlock *big.Int }, error)
UserRewardInfo is a free data retrieval call binding the contract method 0x66993646.
Solidity: function userRewardInfo(address , address ) view returns(uint256 debitedRewards, uint256 creditedRewards, uint256 lastClaimedBlock)
func (*TokenSession) WhitelistPools ¶
func (_Token *TokenSession) WhitelistPools(_pools []common.Address, _startedAtBlocks []*big.Int, _rewardPerBlocks []*big.Int) (*types.Transaction, error)
WhitelistPools is a paid mutator transaction binding the contract method 0xaef85c90.
Solidity: function whitelistPools(address[] _pools, uint256[] _startedAtBlocks, uint256[] _rewardPerBlocks) returns()
func (*TokenSession) WithdrawEther ¶
func (_Token *TokenSession) WithdrawEther() (*types.Transaction, error)
WithdrawEther is a paid mutator transaction binding the contract method 0x7362377b.
Solidity: function withdrawEther() returns()
func (*TokenSession) WithdrawToken ¶
func (_Token *TokenSession) WithdrawToken(_token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address _token) returns()
type TokenStaked ¶
type TokenStaked struct { User common.Address Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenStaked represents a Staked event raised by the Token contract.
type TokenStakedIterator ¶
type TokenStakedIterator struct { Event *TokenStaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the Token contract.
func (*TokenStakedIterator) Close ¶
func (it *TokenStakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenStakedIterator) Error ¶
func (it *TokenStakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenStakedIterator) Next ¶
func (it *TokenStakedIterator) 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 TokenTransactor ¶
type TokenTransactor struct {
// contains filtered or unexported fields
}
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenTransactor ¶
func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
func (*TokenTransactor) AllocateRewards ¶
func (_Token *TokenTransactor) AllocateRewards(opts *bind.TransactOpts, _user common.Address) (*types.Transaction, error)
AllocateRewards is a paid mutator transaction binding the contract method 0x80cde84d.
Solidity: function allocateRewards(address _user) returns(address _rewardToken, uint256 _earnedRewards)
func (*TokenTransactor) ChangeAdmin ¶
func (_Token *TokenTransactor) ChangeAdmin(opts *bind.TransactOpts, _newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenTransactor) ChangeAdmin0 ¶
func (_Token *TokenTransactor) ChangeAdmin0(opts *bind.TransactOpts, _newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin0 is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenTransactor) ClaimPendingRewards ¶
func (_Token *TokenTransactor) ClaimPendingRewards(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimPendingRewards is a paid mutator transaction binding the contract method 0x92bd7b2c.
Solidity: function claimPendingRewards() returns()
func (*TokenTransactor) EmergencyUnstake ¶
func (_Token *TokenTransactor) EmergencyUnstake(opts *bind.TransactOpts) (*types.Transaction, error)
EmergencyUnstake is a paid mutator transaction binding the contract method 0x7589cf2f.
Solidity: function emergencyUnstake() returns()
func (*TokenTransactor) Pause ¶
func (_Token *TokenTransactor) Pause(opts *bind.TransactOpts, _method [4]byte) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x3aa83ec7.
Solidity: function pause(bytes4 _method) returns()
func (*TokenTransactor) PauseAll ¶
func (_Token *TokenTransactor) PauseAll(opts *bind.TransactOpts) (*types.Transaction, error)
PauseAll is a paid mutator transaction binding the contract method 0x595c6a67.
Solidity: function pauseAll() returns()
func (*TokenTransactor) RemoveAdmin ¶
func (_Token *TokenTransactor) RemoveAdmin(opts *bind.TransactOpts) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenTransactor) RemoveAdmin0 ¶
func (_Token *TokenTransactor) RemoveAdmin0(opts *bind.TransactOpts) (*types.Transaction, error)
RemoveAdmin0 is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenTransactor) ResetRewards ¶
func (_Token *TokenTransactor) ResetRewards(opts *bind.TransactOpts, _user common.Address) (*types.Transaction, error)
ResetRewards is a paid mutator transaction binding the contract method 0x5aa0c7f8.
Solidity: function resetRewards(address _user) returns()
func (*TokenTransactor) RestakeRewards ¶
func (_Token *TokenTransactor) RestakeRewards(opts *bind.TransactOpts) (*types.Transaction, error)
RestakeRewards is a paid mutator transaction binding the contract method 0x3d8527ba.
Solidity: function restakeRewards() returns()
func (*TokenTransactor) SetFutureBlockReward ¶
func (_Token *TokenTransactor) SetFutureBlockReward(opts *bind.TransactOpts, _pool common.Address, _fromBlock *big.Int, _rewardPerBlock *big.Int) (*types.Transaction, error)
SetFutureBlockReward is a paid mutator transaction binding the contract method 0x39768e6a.
Solidity: function setFutureBlockReward(address _pool, uint256 _fromBlock, uint256 _rewardPerBlock) returns()
func (*TokenTransactor) SetMinClaimedBlocks ¶
func (_Token *TokenTransactor) SetMinClaimedBlocks(opts *bind.TransactOpts, _minClaimedBlocks *big.Int) (*types.Transaction, error)
SetMinClaimedBlocks is a paid mutator transaction binding the contract method 0x405f5b07.
Solidity: function setMinClaimedBlocks(uint256 _minClaimedBlocks) returns()
func (*TokenTransactor) Stake ¶
func (_Token *TokenTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*TokenTransactor) SyncPool ¶
func (_Token *TokenTransactor) SyncPool(opts *bind.TransactOpts, _pool common.Address) (*types.Transaction, error)
SyncPool is a paid mutator transaction binding the contract method 0x8fb2e2c2.
Solidity: function syncPool(address _pool) returns()
func (*TokenTransactor) SyncRewardInfo ¶
func (_Token *TokenTransactor) SyncRewardInfo(opts *bind.TransactOpts, _user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
SyncRewardInfo is a paid mutator transaction binding the contract method 0x73939bb5.
Solidity: function syncRewardInfo(address _user, uint256 _newStakingAmount) returns()
func (*TokenTransactor) Unpause ¶
func (_Token *TokenTransactor) Unpause(opts *bind.TransactOpts, _method [4]byte) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0xbac1e94b.
Solidity: function unpause(bytes4 _method) returns()
func (*TokenTransactor) UnpauseAll ¶
func (_Token *TokenTransactor) UnpauseAll(opts *bind.TransactOpts) (*types.Transaction, error)
UnpauseAll is a paid mutator transaction binding the contract method 0x8a2ddd03.
Solidity: function unpauseAll() returns()
func (*TokenTransactor) Unstake ¶
func (_Token *TokenTransactor) Unstake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*TokenTransactor) UnstakeAll ¶
func (_Token *TokenTransactor) UnstakeAll(opts *bind.TransactOpts) (*types.Transaction, error)
UnstakeAll is a paid mutator transaction binding the contract method 0x35322f37.
Solidity: function unstakeAll() returns()
func (*TokenTransactor) WhitelistPools ¶
func (_Token *TokenTransactor) WhitelistPools(opts *bind.TransactOpts, _pools []common.Address, _startedAtBlocks []*big.Int, _rewardPerBlocks []*big.Int) (*types.Transaction, error)
WhitelistPools is a paid mutator transaction binding the contract method 0xaef85c90.
Solidity: function whitelistPools(address[] _pools, uint256[] _startedAtBlocks, uint256[] _rewardPerBlocks) returns()
func (*TokenTransactor) WithdrawEther ¶
func (_Token *TokenTransactor) WithdrawEther(opts *bind.TransactOpts) (*types.Transaction, error)
WithdrawEther is a paid mutator transaction binding the contract method 0x7362377b.
Solidity: function withdrawEther() returns()
func (*TokenTransactor) WithdrawToken ¶
func (_Token *TokenTransactor) WithdrawToken(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address _token) returns()
type TokenTransactorRaw ¶
type TokenTransactorRaw struct {
Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenTransactorRaw) Transact ¶
func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenTransactorRaw) Transfer ¶
func (_Token *TokenTransactorRaw) 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 TokenTransactorSession ¶
type TokenTransactorSession struct { Contract *TokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenTransactorSession) AllocateRewards ¶
func (_Token *TokenTransactorSession) AllocateRewards(_user common.Address) (*types.Transaction, error)
AllocateRewards is a paid mutator transaction binding the contract method 0x80cde84d.
Solidity: function allocateRewards(address _user) returns(address _rewardToken, uint256 _earnedRewards)
func (*TokenTransactorSession) ChangeAdmin ¶
func (_Token *TokenTransactorSession) ChangeAdmin(_newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenTransactorSession) ChangeAdmin0 ¶
func (_Token *TokenTransactorSession) ChangeAdmin0(_newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin0 is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address _newAdmin) returns()
func (*TokenTransactorSession) ClaimPendingRewards ¶
func (_Token *TokenTransactorSession) ClaimPendingRewards() (*types.Transaction, error)
ClaimPendingRewards is a paid mutator transaction binding the contract method 0x92bd7b2c.
Solidity: function claimPendingRewards() returns()
func (*TokenTransactorSession) EmergencyUnstake ¶
func (_Token *TokenTransactorSession) EmergencyUnstake() (*types.Transaction, error)
EmergencyUnstake is a paid mutator transaction binding the contract method 0x7589cf2f.
Solidity: function emergencyUnstake() returns()
func (*TokenTransactorSession) Pause ¶
func (_Token *TokenTransactorSession) Pause(_method [4]byte) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x3aa83ec7.
Solidity: function pause(bytes4 _method) returns()
func (*TokenTransactorSession) PauseAll ¶
func (_Token *TokenTransactorSession) PauseAll() (*types.Transaction, error)
PauseAll is a paid mutator transaction binding the contract method 0x595c6a67.
Solidity: function pauseAll() returns()
func (*TokenTransactorSession) RemoveAdmin ¶
func (_Token *TokenTransactorSession) RemoveAdmin() (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenTransactorSession) RemoveAdmin0 ¶
func (_Token *TokenTransactorSession) RemoveAdmin0() (*types.Transaction, error)
RemoveAdmin0 is a paid mutator transaction binding the contract method 0x9a202d47.
Solidity: function removeAdmin() returns()
func (*TokenTransactorSession) ResetRewards ¶
func (_Token *TokenTransactorSession) ResetRewards(_user common.Address) (*types.Transaction, error)
ResetRewards is a paid mutator transaction binding the contract method 0x5aa0c7f8.
Solidity: function resetRewards(address _user) returns()
func (*TokenTransactorSession) RestakeRewards ¶
func (_Token *TokenTransactorSession) RestakeRewards() (*types.Transaction, error)
RestakeRewards is a paid mutator transaction binding the contract method 0x3d8527ba.
Solidity: function restakeRewards() returns()
func (*TokenTransactorSession) SetFutureBlockReward ¶
func (_Token *TokenTransactorSession) SetFutureBlockReward(_pool common.Address, _fromBlock *big.Int, _rewardPerBlock *big.Int) (*types.Transaction, error)
SetFutureBlockReward is a paid mutator transaction binding the contract method 0x39768e6a.
Solidity: function setFutureBlockReward(address _pool, uint256 _fromBlock, uint256 _rewardPerBlock) returns()
func (*TokenTransactorSession) SetMinClaimedBlocks ¶
func (_Token *TokenTransactorSession) SetMinClaimedBlocks(_minClaimedBlocks *big.Int) (*types.Transaction, error)
SetMinClaimedBlocks is a paid mutator transaction binding the contract method 0x405f5b07.
Solidity: function setMinClaimedBlocks(uint256 _minClaimedBlocks) returns()
func (*TokenTransactorSession) Stake ¶
func (_Token *TokenTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*TokenTransactorSession) SyncPool ¶
func (_Token *TokenTransactorSession) SyncPool(_pool common.Address) (*types.Transaction, error)
SyncPool is a paid mutator transaction binding the contract method 0x8fb2e2c2.
Solidity: function syncPool(address _pool) returns()
func (*TokenTransactorSession) SyncRewardInfo ¶
func (_Token *TokenTransactorSession) SyncRewardInfo(_user common.Address, _newStakingAmount *big.Int) (*types.Transaction, error)
SyncRewardInfo is a paid mutator transaction binding the contract method 0x73939bb5.
Solidity: function syncRewardInfo(address _user, uint256 _newStakingAmount) returns()
func (*TokenTransactorSession) Unpause ¶
func (_Token *TokenTransactorSession) Unpause(_method [4]byte) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0xbac1e94b.
Solidity: function unpause(bytes4 _method) returns()
func (*TokenTransactorSession) UnpauseAll ¶
func (_Token *TokenTransactorSession) UnpauseAll() (*types.Transaction, error)
UnpauseAll is a paid mutator transaction binding the contract method 0x8a2ddd03.
Solidity: function unpauseAll() returns()
func (*TokenTransactorSession) Unstake ¶
func (_Token *TokenTransactorSession) Unstake(_amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*TokenTransactorSession) UnstakeAll ¶
func (_Token *TokenTransactorSession) UnstakeAll() (*types.Transaction, error)
UnstakeAll is a paid mutator transaction binding the contract method 0x35322f37.
Solidity: function unstakeAll() returns()
func (*TokenTransactorSession) WhitelistPools ¶
func (_Token *TokenTransactorSession) WhitelistPools(_pools []common.Address, _startedAtBlocks []*big.Int, _rewardPerBlocks []*big.Int) (*types.Transaction, error)
WhitelistPools is a paid mutator transaction binding the contract method 0xaef85c90.
Solidity: function whitelistPools(address[] _pools, uint256[] _startedAtBlocks, uint256[] _rewardPerBlocks) returns()
func (*TokenTransactorSession) WithdrawEther ¶
func (_Token *TokenTransactorSession) WithdrawEther() (*types.Transaction, error)
WithdrawEther is a paid mutator transaction binding the contract method 0x7362377b.
Solidity: function withdrawEther() returns()
func (*TokenTransactorSession) WithdrawToken ¶
func (_Token *TokenTransactorSession) WithdrawToken(_token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address _token) returns()
type TokenUnstaked ¶
type TokenUnstaked struct { User common.Address Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenUnstaked represents a Unstaked event raised by the Token contract.
type TokenUnstakedIterator ¶
type TokenUnstakedIterator struct { Event *TokenUnstaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenUnstakedIterator is returned from FilterUnstaked and is used to iterate over the raw logs and unpacked data for Unstaked events raised by the Token contract.
func (*TokenUnstakedIterator) Close ¶
func (it *TokenUnstakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenUnstakedIterator) Error ¶
func (it *TokenUnstakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenUnstakedIterator) Next ¶
func (it *TokenUnstakedIterator) 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 TokenUserRewardUpdated ¶
type TokenUserRewardUpdated struct { Pool common.Address User common.Address RewardInfo IERC20StakingManagerUserReward Raw types.Log // Blockchain specific contextual infos }
TokenUserRewardUpdated represents a UserRewardUpdated event raised by the Token contract.
type TokenUserRewardUpdatedIterator ¶
type TokenUserRewardUpdatedIterator struct { Event *TokenUserRewardUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenUserRewardUpdatedIterator is returned from FilterUserRewardUpdated and is used to iterate over the raw logs and unpacked data for UserRewardUpdated events raised by the Token contract.
func (*TokenUserRewardUpdatedIterator) Close ¶
func (it *TokenUserRewardUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenUserRewardUpdatedIterator) Error ¶
func (it *TokenUserRewardUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenUserRewardUpdatedIterator) Next ¶
func (it *TokenUserRewardUpdatedIterator) 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.