Versions in this module Expand all Collapse all v0 v0.9.0 Mar 9, 2023 Changes in this version + var WithdrawABI = WithdrawMetaData.ABI + var WithdrawMetaData = &bind.MetaData + type Withdraw struct + func NewWithdraw(address common.Address, backend bind.ContractBackend) (*Withdraw, error) + type WithdrawCaller struct + func NewWithdrawCaller(address common.Address, caller bind.ContractCaller) (*WithdrawCaller, error) + func (_Withdraw *WithdrawCaller) CurrentWithdrawCycle(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) EjectedStartCycle(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) EjectedValidatorsAtCycle(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCaller) GetEjectedValidatorsAtCycle(opts *bind.CallOpts, cycle *big.Int) ([]*big.Int, error) + func (_Withdraw *WithdrawCaller) GetUnclaimedWithdrawalsOfUser(opts *bind.CallOpts, user common.Address) ([]*big.Int, error) + func (_Withdraw *WithdrawCaller) LatestDistributeHeight(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) MaxClaimableWithdrawIndex(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) NextWithdrawIndex(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) TotalMissingAmountForWithdraw(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) TotalWithdrawAmountAtCycle(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCaller) UserWithdrawAmountAtCycle(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCaller) UserWithdrawLimitPerCycle(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) Version(opts *bind.CallOpts) (uint8, error) + func (_Withdraw *WithdrawCaller) WithdrawLimitPerCycle(opts *bind.CallOpts) (*big.Int, error) + func (_Withdraw *WithdrawCaller) WithdrawalAtIndex(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error) + type WithdrawCallerRaw struct + Contract *WithdrawCaller + func (_Withdraw *WithdrawCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type WithdrawCallerSession struct + CallOpts bind.CallOpts + Contract *WithdrawCaller + func (_Withdraw *WithdrawCallerSession) CurrentWithdrawCycle() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) EjectedStartCycle() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) EjectedValidatorsAtCycle(arg0 *big.Int, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) GetEjectedValidatorsAtCycle(cycle *big.Int) ([]*big.Int, error) + func (_Withdraw *WithdrawCallerSession) GetUnclaimedWithdrawalsOfUser(user common.Address) ([]*big.Int, error) + func (_Withdraw *WithdrawCallerSession) LatestDistributeHeight() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) MaxClaimableWithdrawIndex() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) NextWithdrawIndex() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) TotalMissingAmountForWithdraw() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) TotalWithdrawAmountAtCycle(arg0 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) UserWithdrawAmountAtCycle(arg0 common.Address, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) UserWithdrawLimitPerCycle() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) Version() (uint8, error) + func (_Withdraw *WithdrawCallerSession) WithdrawLimitPerCycle() (*big.Int, error) + func (_Withdraw *WithdrawCallerSession) WithdrawalAtIndex(arg0 *big.Int) (struct{ ... }, error) + type WithdrawEtherDeposited struct + Amount *big.Int + From common.Address + Raw types.Log + Time *big.Int + type WithdrawEtherDepositedIterator struct + Event *WithdrawEtherDeposited + func (it *WithdrawEtherDepositedIterator) Close() error + func (it *WithdrawEtherDepositedIterator) Error() error + func (it *WithdrawEtherDepositedIterator) Next() bool + type WithdrawFilterer struct + func NewWithdrawFilterer(address common.Address, filterer bind.ContractFilterer) (*WithdrawFilterer, error) + func (_Withdraw *WithdrawFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*WithdrawEtherDepositedIterator, error) + func (_Withdraw *WithdrawFilterer) FilterNotifyValidatorExit(opts *bind.FilterOpts) (*WithdrawNotifyValidatorExitIterator, error) + func (_Withdraw *WithdrawFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*WithdrawProposalExecutedIterator, error) + func (_Withdraw *WithdrawFilterer) FilterUnstake(opts *bind.FilterOpts, from []common.Address) (*WithdrawUnstakeIterator, error) + func (_Withdraw *WithdrawFilterer) FilterVoteProposal(opts *bind.FilterOpts, proposalId [][32]byte) (*WithdrawVoteProposalIterator, error) + func (_Withdraw *WithdrawFilterer) FilterWithdraw(opts *bind.FilterOpts, from []common.Address) (*WithdrawWithdrawIterator, error) + func (_Withdraw *WithdrawFilterer) ParseEtherDeposited(log types.Log) (*WithdrawEtherDeposited, error) + func (_Withdraw *WithdrawFilterer) ParseNotifyValidatorExit(log types.Log) (*WithdrawNotifyValidatorExit, error) + func (_Withdraw *WithdrawFilterer) ParseProposalExecuted(log types.Log) (*WithdrawProposalExecuted, error) + func (_Withdraw *WithdrawFilterer) ParseUnstake(log types.Log) (*WithdrawUnstake, error) + func (_Withdraw *WithdrawFilterer) ParseVoteProposal(log types.Log) (*WithdrawVoteProposal, error) + func (_Withdraw *WithdrawFilterer) ParseWithdraw(log types.Log) (*WithdrawWithdraw, error) + func (_Withdraw *WithdrawFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *WithdrawEtherDeposited, ...) (event.Subscription, error) + func (_Withdraw *WithdrawFilterer) WatchNotifyValidatorExit(opts *bind.WatchOpts, sink chan<- *WithdrawNotifyValidatorExit) (event.Subscription, error) + func (_Withdraw *WithdrawFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *WithdrawProposalExecuted, ...) (event.Subscription, error) + func (_Withdraw *WithdrawFilterer) WatchUnstake(opts *bind.WatchOpts, sink chan<- *WithdrawUnstake, from []common.Address) (event.Subscription, error) + func (_Withdraw *WithdrawFilterer) WatchVoteProposal(opts *bind.WatchOpts, sink chan<- *WithdrawVoteProposal, proposalId [][32]byte) (event.Subscription, error) + func (_Withdraw *WithdrawFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *WithdrawWithdraw, from []common.Address) (event.Subscription, error) + type WithdrawNotifyValidatorExit struct + EjectedStartWithdrawCycle *big.Int + EjectedValidators []*big.Int + Raw types.Log + WithdrawCycle *big.Int + type WithdrawNotifyValidatorExitIterator struct + Event *WithdrawNotifyValidatorExit + func (it *WithdrawNotifyValidatorExitIterator) Close() error + func (it *WithdrawNotifyValidatorExitIterator) Error() error + func (it *WithdrawNotifyValidatorExitIterator) Next() bool + type WithdrawProposalExecuted struct + ProposalId [32]byte + Raw types.Log + type WithdrawProposalExecutedIterator struct + Event *WithdrawProposalExecuted + func (it *WithdrawProposalExecutedIterator) Close() error + func (it *WithdrawProposalExecutedIterator) Error() error + func (it *WithdrawProposalExecutedIterator) Next() bool + type WithdrawRaw struct + Contract *Withdraw + func (_Withdraw *WithdrawRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Withdraw *WithdrawRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Withdraw *WithdrawRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type WithdrawSession struct + CallOpts bind.CallOpts + Contract *Withdraw + TransactOpts bind.TransactOpts + func (_Withdraw *WithdrawSession) CurrentWithdrawCycle() (*big.Int, error) + func (_Withdraw *WithdrawSession) DepositEth() (*types.Transaction, error) + func (_Withdraw *WithdrawSession) DistributeWithdrawals(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) EjectedStartCycle() (*big.Int, error) + func (_Withdraw *WithdrawSession) EjectedValidatorsAtCycle(arg0 *big.Int, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawSession) GetEjectedValidatorsAtCycle(cycle *big.Int) ([]*big.Int, error) + func (_Withdraw *WithdrawSession) GetUnclaimedWithdrawalsOfUser(user common.Address) ([]*big.Int, error) + func (_Withdraw *WithdrawSession) Initialize(_stafiStorageAddress common.Address, _withdrawLimitPerCycle *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) LatestDistributeHeight() (*big.Int, error) + func (_Withdraw *WithdrawSession) MaxClaimableWithdrawIndex() (*big.Int, error) + func (_Withdraw *WithdrawSession) NextWithdrawIndex() (*big.Int, error) + func (_Withdraw *WithdrawSession) NotifyValidatorExit(_withdrawCycle *big.Int, _ejectedStartCycle *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) Receive() (*types.Transaction, error) + func (_Withdraw *WithdrawSession) ReserveEthForWithdraw(_withdrawCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) SetUserWithdrawLimitPerCycle(_userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) SetWithdrawLimitPerCycle(_withdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) TotalMissingAmountForWithdraw() (*big.Int, error) + func (_Withdraw *WithdrawSession) TotalWithdrawAmountAtCycle(arg0 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawSession) Unstake(_rEthAmount *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) UserWithdrawAmountAtCycle(arg0 common.Address, arg1 *big.Int) (*big.Int, error) + func (_Withdraw *WithdrawSession) UserWithdrawLimitPerCycle() (*big.Int, error) + func (_Withdraw *WithdrawSession) Version() (uint8, error) + func (_Withdraw *WithdrawSession) Withdraw(_withdrawIndexList []*big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawSession) WithdrawLimitPerCycle() (*big.Int, error) + func (_Withdraw *WithdrawSession) WithdrawalAtIndex(arg0 *big.Int) (struct{ ... }, error) + type WithdrawTransactor struct + func NewWithdrawTransactor(address common.Address, transactor bind.ContractTransactor) (*WithdrawTransactor, error) + func (_Withdraw *WithdrawTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) DistributeWithdrawals(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) Initialize(opts *bind.TransactOpts, _stafiStorageAddress common.Address, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) NotifyValidatorExit(opts *bind.TransactOpts, _withdrawCycle *big.Int, _ejectedStartCycle *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) ReserveEthForWithdraw(opts *bind.TransactOpts, _withdrawCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) SetUserWithdrawLimitPerCycle(opts *bind.TransactOpts, _userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) SetWithdrawLimitPerCycle(opts *bind.TransactOpts, _withdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) Unstake(opts *bind.TransactOpts, _rEthAmount *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactor) Withdraw(opts *bind.TransactOpts, _withdrawIndexList []*big.Int) (*types.Transaction, error) + type WithdrawTransactorRaw struct + Contract *WithdrawTransactor + func (_Withdraw *WithdrawTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type WithdrawTransactorSession struct + Contract *WithdrawTransactor + TransactOpts bind.TransactOpts + func (_Withdraw *WithdrawTransactorSession) DepositEth() (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) DistributeWithdrawals(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) Initialize(_stafiStorageAddress common.Address, _withdrawLimitPerCycle *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) NotifyValidatorExit(_withdrawCycle *big.Int, _ejectedStartCycle *big.Int, ...) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) Receive() (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) ReserveEthForWithdraw(_withdrawCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) SetUserWithdrawLimitPerCycle(_userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) SetWithdrawLimitPerCycle(_withdrawLimitPerCycle *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) Unstake(_rEthAmount *big.Int) (*types.Transaction, error) + func (_Withdraw *WithdrawTransactorSession) Withdraw(_withdrawIndexList []*big.Int) (*types.Transaction, error) + type WithdrawUnstake struct + EthAmount *big.Int + From common.Address + Instantly bool + Raw types.Log + RethAmount *big.Int + WithdrawIndex *big.Int + type WithdrawUnstakeIterator struct + Event *WithdrawUnstake + func (it *WithdrawUnstakeIterator) Close() error + func (it *WithdrawUnstakeIterator) Error() error + func (it *WithdrawUnstakeIterator) Next() bool + type WithdrawVoteProposal struct + ProposalId [32]byte + Raw types.Log + Voter common.Address + type WithdrawVoteProposalIterator struct + Event *WithdrawVoteProposal + func (it *WithdrawVoteProposalIterator) Close() error + func (it *WithdrawVoteProposalIterator) Error() error + func (it *WithdrawVoteProposalIterator) Next() bool + type WithdrawWithdraw struct + From common.Address + Raw types.Log + WithdrawIndexList []*big.Int + type WithdrawWithdrawIterator struct + Event *WithdrawWithdraw + func (it *WithdrawWithdrawIterator) Close() error + func (it *WithdrawWithdrawIterator) Error() error + func (it *WithdrawWithdrawIterator) Next() bool