withdraw

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithdrawABI = WithdrawMetaData.ABI

WithdrawABI is the input ABI used to generate the binding from. Deprecated: Use WithdrawMetaData.ABI instead.

View Source
var WithdrawMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"EtherDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawCycle\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ejectedStartWithdrawCycle\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ejectedValidators\",\"type\":\"uint256[]\"}],\"name\":\"NotifyValidatorExit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"}],\"name\":\"ProposalExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rethAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"instantly\",\"type\":\"bool\"}],\"name\":\"Unstake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"proposalId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"VoteProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"withdrawIndexList\",\"type\":\"uint256[]\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"currentWithdrawCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dealedHeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_userAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_platformAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxClaimableWithdrawIndex\",\"type\":\"uint256\"}],\"name\":\"distributeWithdrawals\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ejectedStartCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ejectedValidatorsAtCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"getEjectedValidatorsAtCycle\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUnclaimedWithdrawalsOfUser\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_withdrawLimitPerCycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_userWithdrawLimitPerCycle\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestDistributeHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxClaimableWithdrawIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextWithdrawIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_withdrawCycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_ejectedStartCycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"_validatorIndexList\",\"type\":\"uint256[]\"}],\"name\":\"notifyValidatorExit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_withdrawCycle\",\"type\":\"uint256\"}],\"name\":\"reserveEthForWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_userWithdrawLimitPerCycle\",\"type\":\"uint256\"}],\"name\":\"setUserWithdrawLimitPerCycle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_withdrawLimitPerCycle\",\"type\":\"uint256\"}],\"name\":\"setWithdrawLimitPerCycle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalMissingAmountForWithdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"totalWithdrawAmountAtCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rEthAmount\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userWithdrawAmountAtCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"userWithdrawLimitPerCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_withdrawIndexList\",\"type\":\"uint256[]\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawLimitPerCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalAtIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

WithdrawMetaData contains all meta data concerning the Withdraw contract.

Functions

This section is empty.

Types

type Withdraw

type Withdraw struct {
	WithdrawCaller     // Read-only binding to the contract
	WithdrawTransactor // Write-only binding to the contract
	WithdrawFilterer   // Log filterer for contract events
}

Withdraw is an auto generated Go binding around an Ethereum contract.

func NewWithdraw

func NewWithdraw(address common.Address, backend bind.ContractBackend) (*Withdraw, error)

NewWithdraw creates a new instance of Withdraw, bound to a specific deployed contract.

type WithdrawCaller

type WithdrawCaller struct {
	// contains filtered or unexported fields
}

WithdrawCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewWithdrawCaller

func NewWithdrawCaller(address common.Address, caller bind.ContractCaller) (*WithdrawCaller, error)

NewWithdrawCaller creates a new read-only instance of Withdraw, bound to a specific deployed contract.

func (*WithdrawCaller) CurrentWithdrawCycle

func (_Withdraw *WithdrawCaller) CurrentWithdrawCycle(opts *bind.CallOpts) (*big.Int, error)

CurrentWithdrawCycle is a free data retrieval call binding the contract method 0xdb17815b.

Solidity: function currentWithdrawCycle() view returns(uint256)

func (*WithdrawCaller) EjectedStartCycle

func (_Withdraw *WithdrawCaller) EjectedStartCycle(opts *bind.CallOpts) (*big.Int, error)

EjectedStartCycle is a free data retrieval call binding the contract method 0x8a699828.

Solidity: function ejectedStartCycle() view returns(uint256)

func (*WithdrawCaller) EjectedValidatorsAtCycle

func (_Withdraw *WithdrawCaller) EjectedValidatorsAtCycle(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

EjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x261a792d.

Solidity: function ejectedValidatorsAtCycle(uint256 , uint256 ) view returns(uint256)

func (*WithdrawCaller) GetEjectedValidatorsAtCycle

func (_Withdraw *WithdrawCaller) GetEjectedValidatorsAtCycle(opts *bind.CallOpts, cycle *big.Int) ([]*big.Int, error)

GetEjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x2c0f4166.

Solidity: function getEjectedValidatorsAtCycle(uint256 cycle) view returns(uint256[])

func (*WithdrawCaller) GetUnclaimedWithdrawalsOfUser

func (_Withdraw *WithdrawCaller) GetUnclaimedWithdrawalsOfUser(opts *bind.CallOpts, user common.Address) ([]*big.Int, error)

GetUnclaimedWithdrawalsOfUser is a free data retrieval call binding the contract method 0xfd6b5a49.

Solidity: function getUnclaimedWithdrawalsOfUser(address user) view returns(uint256[])

func (*WithdrawCaller) LatestDistributeHeight

func (_Withdraw *WithdrawCaller) LatestDistributeHeight(opts *bind.CallOpts) (*big.Int, error)

LatestDistributeHeight is a free data retrieval call binding the contract method 0x69a2b804.

Solidity: function latestDistributeHeight() view returns(uint256)

func (*WithdrawCaller) MaxClaimableWithdrawIndex

func (_Withdraw *WithdrawCaller) MaxClaimableWithdrawIndex(opts *bind.CallOpts) (*big.Int, error)

MaxClaimableWithdrawIndex is a free data retrieval call binding the contract method 0x0a64041b.

Solidity: function maxClaimableWithdrawIndex() view returns(uint256)

func (*WithdrawCaller) NextWithdrawIndex

func (_Withdraw *WithdrawCaller) NextWithdrawIndex(opts *bind.CallOpts) (*big.Int, error)

NextWithdrawIndex is a free data retrieval call binding the contract method 0x7e4dc15c.

Solidity: function nextWithdrawIndex() view returns(uint256)

func (*WithdrawCaller) TotalMissingAmountForWithdraw

func (_Withdraw *WithdrawCaller) TotalMissingAmountForWithdraw(opts *bind.CallOpts) (*big.Int, error)

TotalMissingAmountForWithdraw is a free data retrieval call binding the contract method 0x3c677dbe.

Solidity: function totalMissingAmountForWithdraw() view returns(uint256)

func (*WithdrawCaller) TotalWithdrawAmountAtCycle

func (_Withdraw *WithdrawCaller) TotalWithdrawAmountAtCycle(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

TotalWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0x8a726d78.

Solidity: function totalWithdrawAmountAtCycle(uint256 ) view returns(uint256)

func (*WithdrawCaller) UserWithdrawAmountAtCycle

func (_Withdraw *WithdrawCaller) UserWithdrawAmountAtCycle(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

UserWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0xf5ff612d.

Solidity: function userWithdrawAmountAtCycle(address , uint256 ) view returns(uint256)

func (*WithdrawCaller) UserWithdrawLimitPerCycle

func (_Withdraw *WithdrawCaller) UserWithdrawLimitPerCycle(opts *bind.CallOpts) (*big.Int, error)

UserWithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x86390fc7.

Solidity: function userWithdrawLimitPerCycle() view returns(uint256)

func (*WithdrawCaller) Version

func (_Withdraw *WithdrawCaller) Version(opts *bind.CallOpts) (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

func (*WithdrawCaller) WithdrawLimitPerCycle

func (_Withdraw *WithdrawCaller) WithdrawLimitPerCycle(opts *bind.CallOpts) (*big.Int, error)

WithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x406bb26f.

Solidity: function withdrawLimitPerCycle() view returns(uint256)

func (*WithdrawCaller) WithdrawalAtIndex

func (_Withdraw *WithdrawCaller) WithdrawalAtIndex(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Address common.Address
	Amount  *big.Int
}, error)

WithdrawalAtIndex is a free data retrieval call binding the contract method 0xa8e1b8ef.

Solidity: function withdrawalAtIndex(uint256 ) view returns(address _address, uint256 _amount)

type WithdrawCallerRaw

type WithdrawCallerRaw struct {
	Contract *WithdrawCaller // Generic read-only contract binding to access the raw methods on
}

WithdrawCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*WithdrawCallerRaw) Call

func (_Withdraw *WithdrawCallerRaw) 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 WithdrawCallerSession

type WithdrawCallerSession struct {
	Contract *WithdrawCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

WithdrawCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*WithdrawCallerSession) CurrentWithdrawCycle

func (_Withdraw *WithdrawCallerSession) CurrentWithdrawCycle() (*big.Int, error)

CurrentWithdrawCycle is a free data retrieval call binding the contract method 0xdb17815b.

Solidity: function currentWithdrawCycle() view returns(uint256)

func (*WithdrawCallerSession) EjectedStartCycle

func (_Withdraw *WithdrawCallerSession) EjectedStartCycle() (*big.Int, error)

EjectedStartCycle is a free data retrieval call binding the contract method 0x8a699828.

Solidity: function ejectedStartCycle() view returns(uint256)

func (*WithdrawCallerSession) EjectedValidatorsAtCycle

func (_Withdraw *WithdrawCallerSession) EjectedValidatorsAtCycle(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

EjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x261a792d.

Solidity: function ejectedValidatorsAtCycle(uint256 , uint256 ) view returns(uint256)

func (*WithdrawCallerSession) GetEjectedValidatorsAtCycle

func (_Withdraw *WithdrawCallerSession) GetEjectedValidatorsAtCycle(cycle *big.Int) ([]*big.Int, error)

GetEjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x2c0f4166.

Solidity: function getEjectedValidatorsAtCycle(uint256 cycle) view returns(uint256[])

func (*WithdrawCallerSession) GetUnclaimedWithdrawalsOfUser

func (_Withdraw *WithdrawCallerSession) GetUnclaimedWithdrawalsOfUser(user common.Address) ([]*big.Int, error)

GetUnclaimedWithdrawalsOfUser is a free data retrieval call binding the contract method 0xfd6b5a49.

Solidity: function getUnclaimedWithdrawalsOfUser(address user) view returns(uint256[])

func (*WithdrawCallerSession) LatestDistributeHeight

func (_Withdraw *WithdrawCallerSession) LatestDistributeHeight() (*big.Int, error)

LatestDistributeHeight is a free data retrieval call binding the contract method 0x69a2b804.

Solidity: function latestDistributeHeight() view returns(uint256)

func (*WithdrawCallerSession) MaxClaimableWithdrawIndex

func (_Withdraw *WithdrawCallerSession) MaxClaimableWithdrawIndex() (*big.Int, error)

MaxClaimableWithdrawIndex is a free data retrieval call binding the contract method 0x0a64041b.

Solidity: function maxClaimableWithdrawIndex() view returns(uint256)

func (*WithdrawCallerSession) NextWithdrawIndex

func (_Withdraw *WithdrawCallerSession) NextWithdrawIndex() (*big.Int, error)

NextWithdrawIndex is a free data retrieval call binding the contract method 0x7e4dc15c.

Solidity: function nextWithdrawIndex() view returns(uint256)

func (*WithdrawCallerSession) TotalMissingAmountForWithdraw

func (_Withdraw *WithdrawCallerSession) TotalMissingAmountForWithdraw() (*big.Int, error)

TotalMissingAmountForWithdraw is a free data retrieval call binding the contract method 0x3c677dbe.

Solidity: function totalMissingAmountForWithdraw() view returns(uint256)

func (*WithdrawCallerSession) TotalWithdrawAmountAtCycle

func (_Withdraw *WithdrawCallerSession) TotalWithdrawAmountAtCycle(arg0 *big.Int) (*big.Int, error)

TotalWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0x8a726d78.

Solidity: function totalWithdrawAmountAtCycle(uint256 ) view returns(uint256)

func (*WithdrawCallerSession) UserWithdrawAmountAtCycle

func (_Withdraw *WithdrawCallerSession) UserWithdrawAmountAtCycle(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

UserWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0xf5ff612d.

Solidity: function userWithdrawAmountAtCycle(address , uint256 ) view returns(uint256)

func (*WithdrawCallerSession) UserWithdrawLimitPerCycle

func (_Withdraw *WithdrawCallerSession) UserWithdrawLimitPerCycle() (*big.Int, error)

UserWithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x86390fc7.

Solidity: function userWithdrawLimitPerCycle() view returns(uint256)

func (*WithdrawCallerSession) Version

func (_Withdraw *WithdrawCallerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

func (*WithdrawCallerSession) WithdrawLimitPerCycle

func (_Withdraw *WithdrawCallerSession) WithdrawLimitPerCycle() (*big.Int, error)

WithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x406bb26f.

Solidity: function withdrawLimitPerCycle() view returns(uint256)

func (*WithdrawCallerSession) WithdrawalAtIndex

func (_Withdraw *WithdrawCallerSession) WithdrawalAtIndex(arg0 *big.Int) (struct {
	Address common.Address
	Amount  *big.Int
}, error)

WithdrawalAtIndex is a free data retrieval call binding the contract method 0xa8e1b8ef.

Solidity: function withdrawalAtIndex(uint256 ) view returns(address _address, uint256 _amount)

type WithdrawEtherDeposited

type WithdrawEtherDeposited struct {
	From   common.Address
	Amount *big.Int
	Time   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

WithdrawEtherDeposited represents a EtherDeposited event raised by the Withdraw contract.

type WithdrawEtherDepositedIterator

type WithdrawEtherDepositedIterator struct {
	Event *WithdrawEtherDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawEtherDepositedIterator is returned from FilterEtherDeposited and is used to iterate over the raw logs and unpacked data for EtherDeposited events raised by the Withdraw contract.

func (*WithdrawEtherDepositedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawEtherDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawEtherDepositedIterator) Next

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 WithdrawFilterer

type WithdrawFilterer struct {
	// contains filtered or unexported fields
}

WithdrawFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewWithdrawFilterer

func NewWithdrawFilterer(address common.Address, filterer bind.ContractFilterer) (*WithdrawFilterer, error)

NewWithdrawFilterer creates a new log filterer instance of Withdraw, bound to a specific deployed contract.

func (*WithdrawFilterer) FilterEtherDeposited

func (_Withdraw *WithdrawFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*WithdrawEtherDepositedIterator, error)

FilterEtherDeposited is a free log retrieval operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*WithdrawFilterer) FilterNotifyValidatorExit

func (_Withdraw *WithdrawFilterer) FilterNotifyValidatorExit(opts *bind.FilterOpts) (*WithdrawNotifyValidatorExitIterator, error)

FilterNotifyValidatorExit is a free log retrieval operation binding the contract event 0xb83477449e27b4bab4f28c938d033b953557d6a1b9b4469a43d229f78ed6e55c.

Solidity: event NotifyValidatorExit(uint256 withdrawCycle, uint256 ejectedStartWithdrawCycle, uint256[] ejectedValidators)

func (*WithdrawFilterer) FilterProposalExecuted

func (_Withdraw *WithdrawFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId [][32]byte) (*WithdrawProposalExecutedIterator, error)

FilterProposalExecuted is a free log retrieval operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.

Solidity: event ProposalExecuted(bytes32 indexed proposalId)

func (*WithdrawFilterer) FilterUnstake

func (_Withdraw *WithdrawFilterer) FilterUnstake(opts *bind.FilterOpts, from []common.Address) (*WithdrawUnstakeIterator, error)

FilterUnstake is a free log retrieval operation binding the contract event 0xc7ccdcb2d25f572c6814e377dbb34ea4318a4b7d3cd890f5cfad699d75327c7c.

Solidity: event Unstake(address indexed from, uint256 rethAmount, uint256 ethAmount, uint256 withdrawIndex, bool instantly)

func (*WithdrawFilterer) FilterVoteProposal

func (_Withdraw *WithdrawFilterer) FilterVoteProposal(opts *bind.FilterOpts, proposalId [][32]byte) (*WithdrawVoteProposalIterator, error)

FilterVoteProposal is a free log retrieval operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.

Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)

func (*WithdrawFilterer) FilterWithdraw

func (_Withdraw *WithdrawFilterer) FilterWithdraw(opts *bind.FilterOpts, from []common.Address) (*WithdrawWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x67e9df8b3c7743c9f1b625ba4f2b4e601206dbd46ed5c33c85a1242e4d23a2d1.

Solidity: event Withdraw(address indexed from, uint256[] withdrawIndexList)

func (*WithdrawFilterer) ParseEtherDeposited

func (_Withdraw *WithdrawFilterer) ParseEtherDeposited(log types.Log) (*WithdrawEtherDeposited, error)

ParseEtherDeposited is a log parse operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*WithdrawFilterer) ParseNotifyValidatorExit

func (_Withdraw *WithdrawFilterer) ParseNotifyValidatorExit(log types.Log) (*WithdrawNotifyValidatorExit, error)

ParseNotifyValidatorExit is a log parse operation binding the contract event 0xb83477449e27b4bab4f28c938d033b953557d6a1b9b4469a43d229f78ed6e55c.

Solidity: event NotifyValidatorExit(uint256 withdrawCycle, uint256 ejectedStartWithdrawCycle, uint256[] ejectedValidators)

func (*WithdrawFilterer) ParseProposalExecuted

func (_Withdraw *WithdrawFilterer) ParseProposalExecuted(log types.Log) (*WithdrawProposalExecuted, error)

ParseProposalExecuted is a log parse operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.

Solidity: event ProposalExecuted(bytes32 indexed proposalId)

func (*WithdrawFilterer) ParseUnstake

func (_Withdraw *WithdrawFilterer) ParseUnstake(log types.Log) (*WithdrawUnstake, error)

ParseUnstake is a log parse operation binding the contract event 0xc7ccdcb2d25f572c6814e377dbb34ea4318a4b7d3cd890f5cfad699d75327c7c.

Solidity: event Unstake(address indexed from, uint256 rethAmount, uint256 ethAmount, uint256 withdrawIndex, bool instantly)

func (*WithdrawFilterer) ParseVoteProposal

func (_Withdraw *WithdrawFilterer) ParseVoteProposal(log types.Log) (*WithdrawVoteProposal, error)

ParseVoteProposal is a log parse operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.

Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)

func (*WithdrawFilterer) ParseWithdraw

func (_Withdraw *WithdrawFilterer) ParseWithdraw(log types.Log) (*WithdrawWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x67e9df8b3c7743c9f1b625ba4f2b4e601206dbd46ed5c33c85a1242e4d23a2d1.

Solidity: event Withdraw(address indexed from, uint256[] withdrawIndexList)

func (*WithdrawFilterer) WatchEtherDeposited

func (_Withdraw *WithdrawFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *WithdrawEtherDeposited, from []common.Address) (event.Subscription, error)

WatchEtherDeposited is a free log subscription operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*WithdrawFilterer) WatchNotifyValidatorExit

func (_Withdraw *WithdrawFilterer) WatchNotifyValidatorExit(opts *bind.WatchOpts, sink chan<- *WithdrawNotifyValidatorExit) (event.Subscription, error)

WatchNotifyValidatorExit is a free log subscription operation binding the contract event 0xb83477449e27b4bab4f28c938d033b953557d6a1b9b4469a43d229f78ed6e55c.

Solidity: event NotifyValidatorExit(uint256 withdrawCycle, uint256 ejectedStartWithdrawCycle, uint256[] ejectedValidators)

func (*WithdrawFilterer) WatchProposalExecuted

func (_Withdraw *WithdrawFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *WithdrawProposalExecuted, proposalId [][32]byte) (event.Subscription, error)

WatchProposalExecuted is a free log subscription operation binding the contract event 0x7b1bcf1ccf901a11589afff5504d59fd0a53780eed2a952adade0348985139e0.

Solidity: event ProposalExecuted(bytes32 indexed proposalId)

func (*WithdrawFilterer) WatchUnstake

func (_Withdraw *WithdrawFilterer) WatchUnstake(opts *bind.WatchOpts, sink chan<- *WithdrawUnstake, from []common.Address) (event.Subscription, error)

WatchUnstake is a free log subscription operation binding the contract event 0xc7ccdcb2d25f572c6814e377dbb34ea4318a4b7d3cd890f5cfad699d75327c7c.

Solidity: event Unstake(address indexed from, uint256 rethAmount, uint256 ethAmount, uint256 withdrawIndex, bool instantly)

func (*WithdrawFilterer) WatchVoteProposal

func (_Withdraw *WithdrawFilterer) WatchVoteProposal(opts *bind.WatchOpts, sink chan<- *WithdrawVoteProposal, proposalId [][32]byte) (event.Subscription, error)

WatchVoteProposal is a free log subscription operation binding the contract event 0x3b58f01618556cdc5e9f7b0f1f6dccbac40024bc1043f589bd4a324e3414cfad.

Solidity: event VoteProposal(bytes32 indexed proposalId, address voter)

func (*WithdrawFilterer) WatchWithdraw

func (_Withdraw *WithdrawFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *WithdrawWithdraw, from []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x67e9df8b3c7743c9f1b625ba4f2b4e601206dbd46ed5c33c85a1242e4d23a2d1.

Solidity: event Withdraw(address indexed from, uint256[] withdrawIndexList)

type WithdrawNotifyValidatorExit

type WithdrawNotifyValidatorExit struct {
	WithdrawCycle             *big.Int
	EjectedStartWithdrawCycle *big.Int
	EjectedValidators         []*big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

WithdrawNotifyValidatorExit represents a NotifyValidatorExit event raised by the Withdraw contract.

type WithdrawNotifyValidatorExitIterator

type WithdrawNotifyValidatorExitIterator struct {
	Event *WithdrawNotifyValidatorExit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawNotifyValidatorExitIterator is returned from FilterNotifyValidatorExit and is used to iterate over the raw logs and unpacked data for NotifyValidatorExit events raised by the Withdraw contract.

func (*WithdrawNotifyValidatorExitIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawNotifyValidatorExitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawNotifyValidatorExitIterator) Next

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 WithdrawProposalExecuted

type WithdrawProposalExecuted struct {
	ProposalId [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

WithdrawProposalExecuted represents a ProposalExecuted event raised by the Withdraw contract.

type WithdrawProposalExecutedIterator

type WithdrawProposalExecutedIterator struct {
	Event *WithdrawProposalExecuted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawProposalExecutedIterator is returned from FilterProposalExecuted and is used to iterate over the raw logs and unpacked data for ProposalExecuted events raised by the Withdraw contract.

func (*WithdrawProposalExecutedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawProposalExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawProposalExecutedIterator) Next

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 WithdrawRaw

type WithdrawRaw struct {
	Contract *Withdraw // Generic contract binding to access the raw methods on
}

WithdrawRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*WithdrawRaw) Call

func (_Withdraw *WithdrawRaw) 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 (*WithdrawRaw) Transact

func (_Withdraw *WithdrawRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*WithdrawRaw) Transfer

func (_Withdraw *WithdrawRaw) 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 WithdrawSession

type WithdrawSession struct {
	Contract     *Withdraw         // 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
}

WithdrawSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*WithdrawSession) CurrentWithdrawCycle

func (_Withdraw *WithdrawSession) CurrentWithdrawCycle() (*big.Int, error)

CurrentWithdrawCycle is a free data retrieval call binding the contract method 0xdb17815b.

Solidity: function currentWithdrawCycle() view returns(uint256)

func (*WithdrawSession) DepositEth

func (_Withdraw *WithdrawSession) DepositEth() (*types.Transaction, error)

DepositEth is a paid mutator transaction binding the contract method 0x439370b1.

Solidity: function depositEth() payable returns()

func (*WithdrawSession) DistributeWithdrawals

func (_Withdraw *WithdrawSession) DistributeWithdrawals(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int, _maxClaimableWithdrawIndex *big.Int) (*types.Transaction, error)

DistributeWithdrawals is a paid mutator transaction binding the contract method 0xb3971334.

Solidity: function distributeWithdrawals(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount, uint256 _maxClaimableWithdrawIndex) returns()

func (*WithdrawSession) EjectedStartCycle

func (_Withdraw *WithdrawSession) EjectedStartCycle() (*big.Int, error)

EjectedStartCycle is a free data retrieval call binding the contract method 0x8a699828.

Solidity: function ejectedStartCycle() view returns(uint256)

func (*WithdrawSession) EjectedValidatorsAtCycle

func (_Withdraw *WithdrawSession) EjectedValidatorsAtCycle(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

EjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x261a792d.

Solidity: function ejectedValidatorsAtCycle(uint256 , uint256 ) view returns(uint256)

func (*WithdrawSession) GetEjectedValidatorsAtCycle

func (_Withdraw *WithdrawSession) GetEjectedValidatorsAtCycle(cycle *big.Int) ([]*big.Int, error)

GetEjectedValidatorsAtCycle is a free data retrieval call binding the contract method 0x2c0f4166.

Solidity: function getEjectedValidatorsAtCycle(uint256 cycle) view returns(uint256[])

func (*WithdrawSession) GetUnclaimedWithdrawalsOfUser

func (_Withdraw *WithdrawSession) GetUnclaimedWithdrawalsOfUser(user common.Address) ([]*big.Int, error)

GetUnclaimedWithdrawalsOfUser is a free data retrieval call binding the contract method 0xfd6b5a49.

Solidity: function getUnclaimedWithdrawalsOfUser(address user) view returns(uint256[])

func (*WithdrawSession) Initialize

func (_Withdraw *WithdrawSession) Initialize(_stafiStorageAddress common.Address, _withdrawLimitPerCycle *big.Int, _userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7a1ac61e.

Solidity: function initialize(address _stafiStorageAddress, uint256 _withdrawLimitPerCycle, uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawSession) LatestDistributeHeight

func (_Withdraw *WithdrawSession) LatestDistributeHeight() (*big.Int, error)

LatestDistributeHeight is a free data retrieval call binding the contract method 0x69a2b804.

Solidity: function latestDistributeHeight() view returns(uint256)

func (*WithdrawSession) MaxClaimableWithdrawIndex

func (_Withdraw *WithdrawSession) MaxClaimableWithdrawIndex() (*big.Int, error)

MaxClaimableWithdrawIndex is a free data retrieval call binding the contract method 0x0a64041b.

Solidity: function maxClaimableWithdrawIndex() view returns(uint256)

func (*WithdrawSession) NextWithdrawIndex

func (_Withdraw *WithdrawSession) NextWithdrawIndex() (*big.Int, error)

NextWithdrawIndex is a free data retrieval call binding the contract method 0x7e4dc15c.

Solidity: function nextWithdrawIndex() view returns(uint256)

func (*WithdrawSession) NotifyValidatorExit

func (_Withdraw *WithdrawSession) NotifyValidatorExit(_withdrawCycle *big.Int, _ejectedStartCycle *big.Int, _validatorIndexList []*big.Int) (*types.Transaction, error)

NotifyValidatorExit is a paid mutator transaction binding the contract method 0x1e0f4aae.

Solidity: function notifyValidatorExit(uint256 _withdrawCycle, uint256 _ejectedStartCycle, uint256[] _validatorIndexList) returns()

func (*WithdrawSession) Receive

func (_Withdraw *WithdrawSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WithdrawSession) ReserveEthForWithdraw

func (_Withdraw *WithdrawSession) ReserveEthForWithdraw(_withdrawCycle *big.Int) (*types.Transaction, error)

ReserveEthForWithdraw is a paid mutator transaction binding the contract method 0xeb1e88d3.

Solidity: function reserveEthForWithdraw(uint256 _withdrawCycle) returns()

func (*WithdrawSession) SetUserWithdrawLimitPerCycle

func (_Withdraw *WithdrawSession) SetUserWithdrawLimitPerCycle(_userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetUserWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x0e8f3292.

Solidity: function setUserWithdrawLimitPerCycle(uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawSession) SetWithdrawLimitPerCycle

func (_Withdraw *WithdrawSession) SetWithdrawLimitPerCycle(_withdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x96e46a13.

Solidity: function setWithdrawLimitPerCycle(uint256 _withdrawLimitPerCycle) returns()

func (*WithdrawSession) TotalMissingAmountForWithdraw

func (_Withdraw *WithdrawSession) TotalMissingAmountForWithdraw() (*big.Int, error)

TotalMissingAmountForWithdraw is a free data retrieval call binding the contract method 0x3c677dbe.

Solidity: function totalMissingAmountForWithdraw() view returns(uint256)

func (*WithdrawSession) TotalWithdrawAmountAtCycle

func (_Withdraw *WithdrawSession) TotalWithdrawAmountAtCycle(arg0 *big.Int) (*big.Int, error)

TotalWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0x8a726d78.

Solidity: function totalWithdrawAmountAtCycle(uint256 ) view returns(uint256)

func (*WithdrawSession) Unstake

func (_Withdraw *WithdrawSession) Unstake(_rEthAmount *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 _rEthAmount) returns()

func (*WithdrawSession) UserWithdrawAmountAtCycle

func (_Withdraw *WithdrawSession) UserWithdrawAmountAtCycle(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

UserWithdrawAmountAtCycle is a free data retrieval call binding the contract method 0xf5ff612d.

Solidity: function userWithdrawAmountAtCycle(address , uint256 ) view returns(uint256)

func (*WithdrawSession) UserWithdrawLimitPerCycle

func (_Withdraw *WithdrawSession) UserWithdrawLimitPerCycle() (*big.Int, error)

UserWithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x86390fc7.

Solidity: function userWithdrawLimitPerCycle() view returns(uint256)

func (*WithdrawSession) Version

func (_Withdraw *WithdrawSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

func (*WithdrawSession) Withdraw

func (_Withdraw *WithdrawSession) Withdraw(_withdrawIndexList []*big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x983d95ce.

Solidity: function withdraw(uint256[] _withdrawIndexList) returns()

func (*WithdrawSession) WithdrawLimitPerCycle

func (_Withdraw *WithdrawSession) WithdrawLimitPerCycle() (*big.Int, error)

WithdrawLimitPerCycle is a free data retrieval call binding the contract method 0x406bb26f.

Solidity: function withdrawLimitPerCycle() view returns(uint256)

func (*WithdrawSession) WithdrawalAtIndex

func (_Withdraw *WithdrawSession) WithdrawalAtIndex(arg0 *big.Int) (struct {
	Address common.Address
	Amount  *big.Int
}, error)

WithdrawalAtIndex is a free data retrieval call binding the contract method 0xa8e1b8ef.

Solidity: function withdrawalAtIndex(uint256 ) view returns(address _address, uint256 _amount)

type WithdrawTransactor

type WithdrawTransactor struct {
	// contains filtered or unexported fields
}

WithdrawTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewWithdrawTransactor

func NewWithdrawTransactor(address common.Address, transactor bind.ContractTransactor) (*WithdrawTransactor, error)

NewWithdrawTransactor creates a new write-only instance of Withdraw, bound to a specific deployed contract.

func (*WithdrawTransactor) DepositEth

func (_Withdraw *WithdrawTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error)

DepositEth is a paid mutator transaction binding the contract method 0x439370b1.

Solidity: function depositEth() payable returns()

func (*WithdrawTransactor) DistributeWithdrawals

func (_Withdraw *WithdrawTransactor) DistributeWithdrawals(opts *bind.TransactOpts, _dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int, _maxClaimableWithdrawIndex *big.Int) (*types.Transaction, error)

DistributeWithdrawals is a paid mutator transaction binding the contract method 0xb3971334.

Solidity: function distributeWithdrawals(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount, uint256 _maxClaimableWithdrawIndex) returns()

func (*WithdrawTransactor) Initialize

func (_Withdraw *WithdrawTransactor) Initialize(opts *bind.TransactOpts, _stafiStorageAddress common.Address, _withdrawLimitPerCycle *big.Int, _userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7a1ac61e.

Solidity: function initialize(address _stafiStorageAddress, uint256 _withdrawLimitPerCycle, uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawTransactor) NotifyValidatorExit

func (_Withdraw *WithdrawTransactor) NotifyValidatorExit(opts *bind.TransactOpts, _withdrawCycle *big.Int, _ejectedStartCycle *big.Int, _validatorIndexList []*big.Int) (*types.Transaction, error)

NotifyValidatorExit is a paid mutator transaction binding the contract method 0x1e0f4aae.

Solidity: function notifyValidatorExit(uint256 _withdrawCycle, uint256 _ejectedStartCycle, uint256[] _validatorIndexList) returns()

func (*WithdrawTransactor) Receive

func (_Withdraw *WithdrawTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WithdrawTransactor) ReserveEthForWithdraw

func (_Withdraw *WithdrawTransactor) ReserveEthForWithdraw(opts *bind.TransactOpts, _withdrawCycle *big.Int) (*types.Transaction, error)

ReserveEthForWithdraw is a paid mutator transaction binding the contract method 0xeb1e88d3.

Solidity: function reserveEthForWithdraw(uint256 _withdrawCycle) returns()

func (*WithdrawTransactor) SetUserWithdrawLimitPerCycle

func (_Withdraw *WithdrawTransactor) SetUserWithdrawLimitPerCycle(opts *bind.TransactOpts, _userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetUserWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x0e8f3292.

Solidity: function setUserWithdrawLimitPerCycle(uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawTransactor) SetWithdrawLimitPerCycle

func (_Withdraw *WithdrawTransactor) SetWithdrawLimitPerCycle(opts *bind.TransactOpts, _withdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x96e46a13.

Solidity: function setWithdrawLimitPerCycle(uint256 _withdrawLimitPerCycle) returns()

func (*WithdrawTransactor) Unstake

func (_Withdraw *WithdrawTransactor) Unstake(opts *bind.TransactOpts, _rEthAmount *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 _rEthAmount) returns()

func (*WithdrawTransactor) Withdraw

func (_Withdraw *WithdrawTransactor) Withdraw(opts *bind.TransactOpts, _withdrawIndexList []*big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x983d95ce.

Solidity: function withdraw(uint256[] _withdrawIndexList) returns()

type WithdrawTransactorRaw

type WithdrawTransactorRaw struct {
	Contract *WithdrawTransactor // Generic write-only contract binding to access the raw methods on
}

WithdrawTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*WithdrawTransactorRaw) Transact

func (_Withdraw *WithdrawTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*WithdrawTransactorRaw) Transfer

func (_Withdraw *WithdrawTransactorRaw) 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 WithdrawTransactorSession

type WithdrawTransactorSession struct {
	Contract     *WithdrawTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

WithdrawTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*WithdrawTransactorSession) DepositEth

func (_Withdraw *WithdrawTransactorSession) DepositEth() (*types.Transaction, error)

DepositEth is a paid mutator transaction binding the contract method 0x439370b1.

Solidity: function depositEth() payable returns()

func (*WithdrawTransactorSession) DistributeWithdrawals

func (_Withdraw *WithdrawTransactorSession) DistributeWithdrawals(_dealedHeight *big.Int, _userAmount *big.Int, _nodeAmount *big.Int, _platformAmount *big.Int, _maxClaimableWithdrawIndex *big.Int) (*types.Transaction, error)

DistributeWithdrawals is a paid mutator transaction binding the contract method 0xb3971334.

Solidity: function distributeWithdrawals(uint256 _dealedHeight, uint256 _userAmount, uint256 _nodeAmount, uint256 _platformAmount, uint256 _maxClaimableWithdrawIndex) returns()

func (*WithdrawTransactorSession) Initialize

func (_Withdraw *WithdrawTransactorSession) Initialize(_stafiStorageAddress common.Address, _withdrawLimitPerCycle *big.Int, _userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7a1ac61e.

Solidity: function initialize(address _stafiStorageAddress, uint256 _withdrawLimitPerCycle, uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawTransactorSession) NotifyValidatorExit

func (_Withdraw *WithdrawTransactorSession) NotifyValidatorExit(_withdrawCycle *big.Int, _ejectedStartCycle *big.Int, _validatorIndexList []*big.Int) (*types.Transaction, error)

NotifyValidatorExit is a paid mutator transaction binding the contract method 0x1e0f4aae.

Solidity: function notifyValidatorExit(uint256 _withdrawCycle, uint256 _ejectedStartCycle, uint256[] _validatorIndexList) returns()

func (*WithdrawTransactorSession) Receive

func (_Withdraw *WithdrawTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WithdrawTransactorSession) ReserveEthForWithdraw

func (_Withdraw *WithdrawTransactorSession) ReserveEthForWithdraw(_withdrawCycle *big.Int) (*types.Transaction, error)

ReserveEthForWithdraw is a paid mutator transaction binding the contract method 0xeb1e88d3.

Solidity: function reserveEthForWithdraw(uint256 _withdrawCycle) returns()

func (*WithdrawTransactorSession) SetUserWithdrawLimitPerCycle

func (_Withdraw *WithdrawTransactorSession) SetUserWithdrawLimitPerCycle(_userWithdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetUserWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x0e8f3292.

Solidity: function setUserWithdrawLimitPerCycle(uint256 _userWithdrawLimitPerCycle) returns()

func (*WithdrawTransactorSession) SetWithdrawLimitPerCycle

func (_Withdraw *WithdrawTransactorSession) SetWithdrawLimitPerCycle(_withdrawLimitPerCycle *big.Int) (*types.Transaction, error)

SetWithdrawLimitPerCycle is a paid mutator transaction binding the contract method 0x96e46a13.

Solidity: function setWithdrawLimitPerCycle(uint256 _withdrawLimitPerCycle) returns()

func (*WithdrawTransactorSession) Unstake

func (_Withdraw *WithdrawTransactorSession) Unstake(_rEthAmount *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 _rEthAmount) returns()

func (*WithdrawTransactorSession) Withdraw

func (_Withdraw *WithdrawTransactorSession) Withdraw(_withdrawIndexList []*big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x983d95ce.

Solidity: function withdraw(uint256[] _withdrawIndexList) returns()

type WithdrawUnstake

type WithdrawUnstake struct {
	From          common.Address
	RethAmount    *big.Int
	EthAmount     *big.Int
	WithdrawIndex *big.Int
	Instantly     bool
	Raw           types.Log // Blockchain specific contextual infos
}

WithdrawUnstake represents a Unstake event raised by the Withdraw contract.

type WithdrawUnstakeIterator

type WithdrawUnstakeIterator struct {
	Event *WithdrawUnstake // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawUnstakeIterator is returned from FilterUnstake and is used to iterate over the raw logs and unpacked data for Unstake events raised by the Withdraw contract.

func (*WithdrawUnstakeIterator) Close

func (it *WithdrawUnstakeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawUnstakeIterator) Error

func (it *WithdrawUnstakeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawUnstakeIterator) Next

func (it *WithdrawUnstakeIterator) 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 WithdrawVoteProposal

type WithdrawVoteProposal struct {
	ProposalId [32]byte
	Voter      common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

WithdrawVoteProposal represents a VoteProposal event raised by the Withdraw contract.

type WithdrawVoteProposalIterator

type WithdrawVoteProposalIterator struct {
	Event *WithdrawVoteProposal // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawVoteProposalIterator is returned from FilterVoteProposal and is used to iterate over the raw logs and unpacked data for VoteProposal events raised by the Withdraw contract.

func (*WithdrawVoteProposalIterator) Close

func (it *WithdrawVoteProposalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawVoteProposalIterator) Error

func (it *WithdrawVoteProposalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawVoteProposalIterator) Next

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 WithdrawWithdraw

type WithdrawWithdraw struct {
	From              common.Address
	WithdrawIndexList []*big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

WithdrawWithdraw represents a Withdraw event raised by the Withdraw contract.

type WithdrawWithdrawIterator

type WithdrawWithdrawIterator struct {
	Event *WithdrawWithdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WithdrawWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Withdraw contract.

func (*WithdrawWithdrawIterator) Close

func (it *WithdrawWithdrawIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*WithdrawWithdrawIterator) Error

func (it *WithdrawWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WithdrawWithdrawIterator) Next

func (it *WithdrawWithdrawIterator) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL