Documentation ¶
Index ¶
- Variables
- type LightNode
- type LightNodeCaller
- func (_LightNode *LightNodeCaller) GetCurrentNodeDepositAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) GetLightNodeDepositEnabled(opts *bind.CallOpts) (bool, error)
- func (_LightNode *LightNodeCaller) GetLightNodePubkeyAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) ([]byte, error)
- func (_LightNode *LightNodeCaller) GetLightNodePubkeyCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error)
- func (_LightNode *LightNodeCaller) GetLightNodePubkeyStatus(opts *bind.CallOpts, _validatorPubkey []byte) (*big.Int, error)
- func (_LightNode *LightNodeCaller) GetPubkeyVoted(opts *bind.CallOpts, _validatorPubkey []byte, user common.Address) (bool, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSCANWITHDRAW(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSINITIAL(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSMATCH(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSOFFBOARD(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSSTAKING(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSUNINITIAL(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSUNMATCH(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PUBKEYSTATUSWITHDRAWED(opts *bind.CallOpts) (*big.Int, error)
- func (_LightNode *LightNodeCaller) PubkeySetStorage(opts *bind.CallOpts) (common.Address, error)
- func (_LightNode *LightNodeCaller) Version(opts *bind.CallOpts) (uint8, error)
- type LightNodeCallerRaw
- type LightNodeCallerSession
- func (_LightNode *LightNodeCallerSession) GetCurrentNodeDepositAmount() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) GetLightNodeDepositEnabled() (bool, error)
- func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)
- func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSINITIAL() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSMATCH() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSSTAKING() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNMATCH() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error)
- func (_LightNode *LightNodeCallerSession) PubkeySetStorage() (common.Address, error)
- func (_LightNode *LightNodeCallerSession) Version() (uint8, error)
- type LightNodeDeposited
- type LightNodeDepositedIterator
- type LightNodeEtherDeposited
- type LightNodeEtherDepositedIterator
- type LightNodeFilterer
- func (_LightNode *LightNodeFilterer) FilterDeposited(opts *bind.FilterOpts) (*LightNodeDepositedIterator, error)
- func (_LightNode *LightNodeFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*LightNodeEtherDepositedIterator, error)
- func (_LightNode *LightNodeFilterer) FilterOffBoarded(opts *bind.FilterOpts) (*LightNodeOffBoardedIterator, error)
- func (_LightNode *LightNodeFilterer) FilterSetPubkeyStatus(opts *bind.FilterOpts) (*LightNodeSetPubkeyStatusIterator, error)
- func (_LightNode *LightNodeFilterer) FilterStaked(opts *bind.FilterOpts) (*LightNodeStakedIterator, error)
- func (_LightNode *LightNodeFilterer) ParseDeposited(log types.Log) (*LightNodeDeposited, error)
- func (_LightNode *LightNodeFilterer) ParseEtherDeposited(log types.Log) (*LightNodeEtherDeposited, error)
- func (_LightNode *LightNodeFilterer) ParseOffBoarded(log types.Log) (*LightNodeOffBoarded, error)
- func (_LightNode *LightNodeFilterer) ParseSetPubkeyStatus(log types.Log) (*LightNodeSetPubkeyStatus, error)
- func (_LightNode *LightNodeFilterer) ParseStaked(log types.Log) (*LightNodeStaked, error)
- func (_LightNode *LightNodeFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *LightNodeDeposited) (event.Subscription, error)
- func (_LightNode *LightNodeFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *LightNodeEtherDeposited, ...) (event.Subscription, error)
- func (_LightNode *LightNodeFilterer) WatchOffBoarded(opts *bind.WatchOpts, sink chan<- *LightNodeOffBoarded) (event.Subscription, error)
- func (_LightNode *LightNodeFilterer) WatchSetPubkeyStatus(opts *bind.WatchOpts, sink chan<- *LightNodeSetPubkeyStatus) (event.Subscription, error)
- func (_LightNode *LightNodeFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *LightNodeStaked) (event.Subscription, error)
- type LightNodeOffBoarded
- type LightNodeOffBoardedIterator
- type LightNodeRaw
- func (_LightNode *LightNodeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_LightNode *LightNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_LightNode *LightNodeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LightNodeSession
- func (_LightNode *LightNodeSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) DepositEth() (*types.Transaction, error)
- func (_LightNode *LightNodeSession) GetCurrentNodeDepositAmount() (*big.Int, error)
- func (_LightNode *LightNodeSession) GetLightNodeDepositEnabled() (bool, error)
- func (_LightNode *LightNodeSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)
- func (_LightNode *LightNodeSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)
- func (_LightNode *LightNodeSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)
- func (_LightNode *LightNodeSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error)
- func (_LightNode *LightNodeSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSINITIAL() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSMATCH() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSSTAKING() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSUNMATCH() (*big.Int, error)
- func (_LightNode *LightNodeSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error)
- func (_LightNode *LightNodeSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) PubkeySetStorage() (common.Address, error)
- func (_LightNode *LightNodeSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
- func (_LightNode *LightNodeSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) Version() (uint8, error)
- func (_LightNode *LightNodeSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
- func (_LightNode *LightNodeSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
- type LightNodeSetPubkeyStatus
- type LightNodeSetPubkeyStatusIterator
- type LightNodeStaked
- type LightNodeStakedIterator
- type LightNodeTransactor
- func (_LightNode *LightNodeTransactor) Deposit(opts *bind.TransactOpts, _validatorPubkeys [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) OffBoard(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) ProvideNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) ReceiveEtherWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) SetLightNodeDepositEnabled(opts *bind.TransactOpts, _value bool) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) SetLightNodePubkeyStatus(opts *bind.TransactOpts, _validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) Stake(opts *bind.TransactOpts, _validatorPubkeys [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) VoteWithdrawCredentials(opts *bind.TransactOpts, _pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactor) WithdrawNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
- type LightNodeTransactorRaw
- type LightNodeTransactorSession
- func (_LightNode *LightNodeTransactorSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) DepositEth() (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, ...) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
- func (_LightNode *LightNodeTransactorSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var LightNodeABI = LightNodeMetaData.ABI
LightNodeABI is the input ABI used to generate the binding from. Deprecated: Use LightNodeMetaData.ABI instead.
var LightNodeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"validatorSignature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"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\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"}],\"name\":\"OffBoarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"}],\"name\":\"SetPubkeyStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_CANWITHDRAW\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_INITIAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_MATCH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_OFFBOARD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_STAKING\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_UNINITIAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_UNMATCH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_WITHDRAWED\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PubkeySetStorage\",\"outputs\":[{\"internalType\":\"contractIPubkeySetStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_validatorPubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes[]\",\"name\":\"_validatorSignatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_depositDataRoots\",\"type\":\"bytes32[]\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentNodeDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLightNodeDepositEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getLightNodePubkeyAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getLightNodePubkeyCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"getLightNodePubkeyStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getPubkeyVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"offBoard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"provideNodeDepositToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"receiveEtherWithdrawal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_value\",\"type\":\"bool\"}],\"name\":\"setLightNodeDepositEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_status\",\"type\":\"uint256\"}],\"name\":\"setLightNodePubkeyStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_validatorPubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes[]\",\"name\":\"_validatorSignatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_depositDataRoots\",\"type\":\"bytes32[]\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_pubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bool[]\",\"name\":\"_matchs\",\"type\":\"bool[]\"}],\"name\":\"voteWithdrawCredentials\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"withdrawNodeDepositToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
LightNodeMetaData contains all meta data concerning the LightNode contract.
Functions ¶
This section is empty.
Types ¶
type LightNode ¶
type LightNode struct { LightNodeCaller // Read-only binding to the contract LightNodeTransactor // Write-only binding to the contract LightNodeFilterer // Log filterer for contract events }
LightNode is an auto generated Go binding around an Ethereum contract.
func NewLightNode ¶
NewLightNode creates a new instance of LightNode, bound to a specific deployed contract.
type LightNodeCaller ¶
type LightNodeCaller struct {
// contains filtered or unexported fields
}
LightNodeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLightNodeCaller ¶
func NewLightNodeCaller(address common.Address, caller bind.ContractCaller) (*LightNodeCaller, error)
NewLightNodeCaller creates a new read-only instance of LightNode, bound to a specific deployed contract.
func (*LightNodeCaller) GetCurrentNodeDepositAmount ¶
func (_LightNode *LightNodeCaller) GetCurrentNodeDepositAmount(opts *bind.CallOpts) (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*LightNodeCaller) GetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeCaller) GetLightNodeDepositEnabled(opts *bind.CallOpts) (bool, error)
GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (*LightNodeCaller) GetLightNodePubkeyAt ¶
func (_LightNode *LightNodeCaller) GetLightNodePubkeyAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) ([]byte, error)
GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (*LightNodeCaller) GetLightNodePubkeyCount ¶
func (_LightNode *LightNodeCaller) GetLightNodePubkeyCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error)
GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (*LightNodeCaller) GetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeCaller) GetLightNodePubkeyStatus(opts *bind.CallOpts, _validatorPubkey []byte) (*big.Int, error)
GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (*LightNodeCaller) GetPubkeyVoted ¶
func (_LightNode *LightNodeCaller) GetPubkeyVoted(opts *bind.CallOpts, _validatorPubkey []byte, user common.Address) (bool, error)
GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (*LightNodeCaller) PUBKEYSTATUSCANWITHDRAW ¶
PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSINITIAL ¶
PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSMATCH ¶
PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSOFFBOARD ¶
PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSSTAKING ¶
PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSUNINITIAL ¶
PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSUNMATCH ¶
PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (*LightNodeCaller) PUBKEYSTATUSWITHDRAWED ¶
PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (*LightNodeCaller) PubkeySetStorage ¶
PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
Solidity: function PubkeySetStorage() view returns(address)
type LightNodeCallerRaw ¶
type LightNodeCallerRaw struct {
Contract *LightNodeCaller // Generic read-only contract binding to access the raw methods on
}
LightNodeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*LightNodeCallerRaw) Call ¶
func (_LightNode *LightNodeCallerRaw) 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 LightNodeCallerSession ¶
type LightNodeCallerSession struct { Contract *LightNodeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
LightNodeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*LightNodeCallerSession) GetCurrentNodeDepositAmount ¶
func (_LightNode *LightNodeCallerSession) GetCurrentNodeDepositAmount() (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*LightNodeCallerSession) GetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeCallerSession) GetLightNodeDepositEnabled() (bool, error)
GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (*LightNodeCallerSession) GetLightNodePubkeyAt ¶
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)
GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (*LightNodeCallerSession) GetLightNodePubkeyCount ¶
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)
GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (*LightNodeCallerSession) GetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)
GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (*LightNodeCallerSession) GetPubkeyVoted ¶
func (_LightNode *LightNodeCallerSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error)
GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (*LightNodeCallerSession) PUBKEYSTATUSCANWITHDRAW ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error)
PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSINITIAL ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSINITIAL() (*big.Int, error)
PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSMATCH ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSMATCH() (*big.Int, error)
PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSOFFBOARD ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error)
PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSSTAKING ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSSTAKING() (*big.Int, error)
PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSUNINITIAL ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error)
PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSUNMATCH ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNMATCH() (*big.Int, error)
PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (*LightNodeCallerSession) PUBKEYSTATUSWITHDRAWED ¶
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error)
PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (*LightNodeCallerSession) PubkeySetStorage ¶
func (_LightNode *LightNodeCallerSession) PubkeySetStorage() (common.Address, error)
PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
Solidity: function PubkeySetStorage() view returns(address)
func (*LightNodeCallerSession) Version ¶
func (_LightNode *LightNodeCallerSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
type LightNodeDeposited ¶
type LightNodeDeposited struct { Node common.Address Pubkey []byte ValidatorSignature []byte Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
LightNodeDeposited represents a Deposited event raised by the LightNode contract.
type LightNodeDepositedIterator ¶
type LightNodeDepositedIterator struct { Event *LightNodeDeposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LightNodeDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the LightNode contract.
func (*LightNodeDepositedIterator) Close ¶
func (it *LightNodeDepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightNodeDepositedIterator) Error ¶
func (it *LightNodeDepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightNodeDepositedIterator) Next ¶
func (it *LightNodeDepositedIterator) 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 LightNodeEtherDeposited ¶
type LightNodeEtherDeposited struct { From common.Address Amount *big.Int Time *big.Int Raw types.Log // Blockchain specific contextual infos }
LightNodeEtherDeposited represents a EtherDeposited event raised by the LightNode contract.
type LightNodeEtherDepositedIterator ¶
type LightNodeEtherDepositedIterator struct { Event *LightNodeEtherDeposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LightNodeEtherDepositedIterator is returned from FilterEtherDeposited and is used to iterate over the raw logs and unpacked data for EtherDeposited events raised by the LightNode contract.
func (*LightNodeEtherDepositedIterator) Close ¶
func (it *LightNodeEtherDepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightNodeEtherDepositedIterator) Error ¶
func (it *LightNodeEtherDepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightNodeEtherDepositedIterator) Next ¶
func (it *LightNodeEtherDepositedIterator) 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 LightNodeFilterer ¶
type LightNodeFilterer struct {
// contains filtered or unexported fields
}
LightNodeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLightNodeFilterer ¶
func NewLightNodeFilterer(address common.Address, filterer bind.ContractFilterer) (*LightNodeFilterer, error)
NewLightNodeFilterer creates a new log filterer instance of LightNode, bound to a specific deployed contract.
func (*LightNodeFilterer) FilterDeposited ¶
func (_LightNode *LightNodeFilterer) FilterDeposited(opts *bind.FilterOpts) (*LightNodeDepositedIterator, error)
FilterDeposited is a free log retrieval operation binding the contract event 0x1fc33daf7f37b2e02f49dbee7b9707bddd7c8cef1f08deff23bff3d105e5aa72.
Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature, uint256 amount)
func (*LightNodeFilterer) FilterEtherDeposited ¶
func (_LightNode *LightNodeFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*LightNodeEtherDepositedIterator, error)
FilterEtherDeposited is a free log retrieval operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.
Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)
func (*LightNodeFilterer) FilterOffBoarded ¶
func (_LightNode *LightNodeFilterer) FilterOffBoarded(opts *bind.FilterOpts) (*LightNodeOffBoardedIterator, error)
FilterOffBoarded is a free log retrieval operation binding the contract event 0x9d5023d85497e8c264e3b053f8da9415f4db76eb5af3ecef3fe953fe9f981470.
Solidity: event OffBoarded(address node, bytes pubkey)
func (*LightNodeFilterer) FilterSetPubkeyStatus ¶
func (_LightNode *LightNodeFilterer) FilterSetPubkeyStatus(opts *bind.FilterOpts) (*LightNodeSetPubkeyStatusIterator, error)
FilterSetPubkeyStatus is a free log retrieval operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.
Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)
func (*LightNodeFilterer) FilterStaked ¶
func (_LightNode *LightNodeFilterer) FilterStaked(opts *bind.FilterOpts) (*LightNodeStakedIterator, error)
FilterStaked is a free log retrieval operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.
Solidity: event Staked(address node, bytes pubkey)
func (*LightNodeFilterer) ParseDeposited ¶
func (_LightNode *LightNodeFilterer) ParseDeposited(log types.Log) (*LightNodeDeposited, error)
ParseDeposited is a log parse operation binding the contract event 0x1fc33daf7f37b2e02f49dbee7b9707bddd7c8cef1f08deff23bff3d105e5aa72.
Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature, uint256 amount)
func (*LightNodeFilterer) ParseEtherDeposited ¶
func (_LightNode *LightNodeFilterer) ParseEtherDeposited(log types.Log) (*LightNodeEtherDeposited, error)
ParseEtherDeposited is a log parse operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.
Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)
func (*LightNodeFilterer) ParseOffBoarded ¶
func (_LightNode *LightNodeFilterer) ParseOffBoarded(log types.Log) (*LightNodeOffBoarded, error)
ParseOffBoarded is a log parse operation binding the contract event 0x9d5023d85497e8c264e3b053f8da9415f4db76eb5af3ecef3fe953fe9f981470.
Solidity: event OffBoarded(address node, bytes pubkey)
func (*LightNodeFilterer) ParseSetPubkeyStatus ¶
func (_LightNode *LightNodeFilterer) ParseSetPubkeyStatus(log types.Log) (*LightNodeSetPubkeyStatus, error)
ParseSetPubkeyStatus is a log parse operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.
Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)
func (*LightNodeFilterer) ParseStaked ¶
func (_LightNode *LightNodeFilterer) ParseStaked(log types.Log) (*LightNodeStaked, error)
ParseStaked is a log parse operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.
Solidity: event Staked(address node, bytes pubkey)
func (*LightNodeFilterer) WatchDeposited ¶
func (_LightNode *LightNodeFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *LightNodeDeposited) (event.Subscription, error)
WatchDeposited is a free log subscription operation binding the contract event 0x1fc33daf7f37b2e02f49dbee7b9707bddd7c8cef1f08deff23bff3d105e5aa72.
Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature, uint256 amount)
func (*LightNodeFilterer) WatchEtherDeposited ¶
func (_LightNode *LightNodeFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *LightNodeEtherDeposited, 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 (*LightNodeFilterer) WatchOffBoarded ¶
func (_LightNode *LightNodeFilterer) WatchOffBoarded(opts *bind.WatchOpts, sink chan<- *LightNodeOffBoarded) (event.Subscription, error)
WatchOffBoarded is a free log subscription operation binding the contract event 0x9d5023d85497e8c264e3b053f8da9415f4db76eb5af3ecef3fe953fe9f981470.
Solidity: event OffBoarded(address node, bytes pubkey)
func (*LightNodeFilterer) WatchSetPubkeyStatus ¶
func (_LightNode *LightNodeFilterer) WatchSetPubkeyStatus(opts *bind.WatchOpts, sink chan<- *LightNodeSetPubkeyStatus) (event.Subscription, error)
WatchSetPubkeyStatus is a free log subscription operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.
Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)
func (*LightNodeFilterer) WatchStaked ¶
func (_LightNode *LightNodeFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *LightNodeStaked) (event.Subscription, error)
WatchStaked is a free log subscription operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.
Solidity: event Staked(address node, bytes pubkey)
type LightNodeOffBoarded ¶
type LightNodeOffBoarded struct { Node common.Address Pubkey []byte Raw types.Log // Blockchain specific contextual infos }
LightNodeOffBoarded represents a OffBoarded event raised by the LightNode contract.
type LightNodeOffBoardedIterator ¶
type LightNodeOffBoardedIterator struct { Event *LightNodeOffBoarded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LightNodeOffBoardedIterator is returned from FilterOffBoarded and is used to iterate over the raw logs and unpacked data for OffBoarded events raised by the LightNode contract.
func (*LightNodeOffBoardedIterator) Close ¶
func (it *LightNodeOffBoardedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightNodeOffBoardedIterator) Error ¶
func (it *LightNodeOffBoardedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightNodeOffBoardedIterator) Next ¶
func (it *LightNodeOffBoardedIterator) 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 LightNodeRaw ¶
type LightNodeRaw struct {
Contract *LightNode // Generic contract binding to access the raw methods on
}
LightNodeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*LightNodeRaw) Call ¶
func (_LightNode *LightNodeRaw) 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 (*LightNodeRaw) Transact ¶
func (_LightNode *LightNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LightNodeRaw) Transfer ¶
func (_LightNode *LightNodeRaw) 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 LightNodeSession ¶
type LightNodeSession struct { Contract *LightNode // 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 }
LightNodeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*LightNodeSession) Deposit ¶
func (_LightNode *LightNodeSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (*LightNodeSession) DepositEth ¶
func (_LightNode *LightNodeSession) DepositEth() (*types.Transaction, error)
DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
Solidity: function depositEth() payable returns()
func (*LightNodeSession) GetCurrentNodeDepositAmount ¶
func (_LightNode *LightNodeSession) GetCurrentNodeDepositAmount() (*big.Int, error)
GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (*LightNodeSession) GetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeSession) GetLightNodeDepositEnabled() (bool, error)
GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (*LightNodeSession) GetLightNodePubkeyAt ¶
func (_LightNode *LightNodeSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)
GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (*LightNodeSession) GetLightNodePubkeyCount ¶
func (_LightNode *LightNodeSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)
GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (*LightNodeSession) GetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)
GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (*LightNodeSession) GetPubkeyVoted ¶
func (_LightNode *LightNodeSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error)
GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (*LightNodeSession) OffBoard ¶
func (_LightNode *LightNodeSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error)
OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
Solidity: function offBoard(bytes _validatorPubkey) returns()
func (*LightNodeSession) PUBKEYSTATUSCANWITHDRAW ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error)
PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSINITIAL ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSINITIAL() (*big.Int, error)
PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSMATCH ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSMATCH() (*big.Int, error)
PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSOFFBOARD ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error)
PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSSTAKING ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSSTAKING() (*big.Int, error)
PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSUNINITIAL ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error)
PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSUNMATCH ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSUNMATCH() (*big.Int, error)
PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (*LightNodeSession) PUBKEYSTATUSWITHDRAWED ¶
func (_LightNode *LightNodeSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error)
PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (*LightNodeSession) ProvideNodeDepositToken ¶
func (_LightNode *LightNodeSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (*LightNodeSession) PubkeySetStorage ¶
func (_LightNode *LightNodeSession) PubkeySetStorage() (common.Address, error)
PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
Solidity: function PubkeySetStorage() view returns(address)
func (*LightNodeSession) ReceiveEtherWithdrawal ¶
func (_LightNode *LightNodeSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*LightNodeSession) SetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error)
SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (*LightNodeSession) SetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (*LightNodeSession) Stake ¶
func (_LightNode *LightNodeSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xca2b87af.
Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (*LightNodeSession) Version ¶
func (_LightNode *LightNodeSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
func (*LightNodeSession) VoteWithdrawCredentials ¶
func (_LightNode *LightNodeSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (*LightNodeSession) WithdrawNodeDepositToken ¶
func (_LightNode *LightNodeSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()
type LightNodeSetPubkeyStatus ¶
type LightNodeSetPubkeyStatus struct { Pubkey []byte Status *big.Int Raw types.Log // Blockchain specific contextual infos }
LightNodeSetPubkeyStatus represents a SetPubkeyStatus event raised by the LightNode contract.
type LightNodeSetPubkeyStatusIterator ¶
type LightNodeSetPubkeyStatusIterator struct { Event *LightNodeSetPubkeyStatus // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LightNodeSetPubkeyStatusIterator is returned from FilterSetPubkeyStatus and is used to iterate over the raw logs and unpacked data for SetPubkeyStatus events raised by the LightNode contract.
func (*LightNodeSetPubkeyStatusIterator) Close ¶
func (it *LightNodeSetPubkeyStatusIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightNodeSetPubkeyStatusIterator) Error ¶
func (it *LightNodeSetPubkeyStatusIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightNodeSetPubkeyStatusIterator) Next ¶
func (it *LightNodeSetPubkeyStatusIterator) 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 LightNodeStaked ¶
type LightNodeStaked struct { Node common.Address Pubkey []byte Raw types.Log // Blockchain specific contextual infos }
LightNodeStaked represents a Staked event raised by the LightNode contract.
type LightNodeStakedIterator ¶
type LightNodeStakedIterator struct { Event *LightNodeStaked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LightNodeStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the LightNode contract.
func (*LightNodeStakedIterator) Close ¶
func (it *LightNodeStakedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LightNodeStakedIterator) Error ¶
func (it *LightNodeStakedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LightNodeStakedIterator) Next ¶
func (it *LightNodeStakedIterator) 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 LightNodeTransactor ¶
type LightNodeTransactor struct {
// contains filtered or unexported fields
}
LightNodeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLightNodeTransactor ¶
func NewLightNodeTransactor(address common.Address, transactor bind.ContractTransactor) (*LightNodeTransactor, error)
NewLightNodeTransactor creates a new write-only instance of LightNode, bound to a specific deployed contract.
func (*LightNodeTransactor) Deposit ¶
func (_LightNode *LightNodeTransactor) Deposit(opts *bind.TransactOpts, _validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (*LightNodeTransactor) DepositEth ¶
func (_LightNode *LightNodeTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error)
DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
Solidity: function depositEth() payable returns()
func (*LightNodeTransactor) OffBoard ¶
func (_LightNode *LightNodeTransactor) OffBoard(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
Solidity: function offBoard(bytes _validatorPubkey) returns()
func (*LightNodeTransactor) ProvideNodeDepositToken ¶
func (_LightNode *LightNodeTransactor) ProvideNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (*LightNodeTransactor) ReceiveEtherWithdrawal ¶
func (_LightNode *LightNodeTransactor) ReceiveEtherWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*LightNodeTransactor) SetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeTransactor) SetLightNodeDepositEnabled(opts *bind.TransactOpts, _value bool) (*types.Transaction, error)
SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (*LightNodeTransactor) SetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeTransactor) SetLightNodePubkeyStatus(opts *bind.TransactOpts, _validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (*LightNodeTransactor) Stake ¶
func (_LightNode *LightNodeTransactor) Stake(opts *bind.TransactOpts, _validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xca2b87af.
Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (*LightNodeTransactor) VoteWithdrawCredentials ¶
func (_LightNode *LightNodeTransactor) VoteWithdrawCredentials(opts *bind.TransactOpts, _pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (*LightNodeTransactor) WithdrawNodeDepositToken ¶
func (_LightNode *LightNodeTransactor) WithdrawNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error)
WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()
type LightNodeTransactorRaw ¶
type LightNodeTransactorRaw struct {
Contract *LightNodeTransactor // Generic write-only contract binding to access the raw methods on
}
LightNodeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*LightNodeTransactorRaw) Transact ¶
func (_LightNode *LightNodeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LightNodeTransactorRaw) Transfer ¶
func (_LightNode *LightNodeTransactorRaw) 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 LightNodeTransactorSession ¶
type LightNodeTransactorSession struct { Contract *LightNodeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
LightNodeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*LightNodeTransactorSession) Deposit ¶
func (_LightNode *LightNodeTransactorSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (*LightNodeTransactorSession) DepositEth ¶
func (_LightNode *LightNodeTransactorSession) DepositEth() (*types.Transaction, error)
DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
Solidity: function depositEth() payable returns()
func (*LightNodeTransactorSession) OffBoard ¶
func (_LightNode *LightNodeTransactorSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error)
OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
Solidity: function offBoard(bytes _validatorPubkey) returns()
func (*LightNodeTransactorSession) ProvideNodeDepositToken ¶
func (_LightNode *LightNodeTransactorSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (*LightNodeTransactorSession) ReceiveEtherWithdrawal ¶
func (_LightNode *LightNodeTransactorSession) ReceiveEtherWithdrawal() (*types.Transaction, error)
ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
Solidity: function receiveEtherWithdrawal() payable returns()
func (*LightNodeTransactorSession) SetLightNodeDepositEnabled ¶
func (_LightNode *LightNodeTransactorSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error)
SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (*LightNodeTransactorSession) SetLightNodePubkeyStatus ¶
func (_LightNode *LightNodeTransactorSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)
SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (*LightNodeTransactorSession) Stake ¶
func (_LightNode *LightNodeTransactorSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xca2b87af.
Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (*LightNodeTransactorSession) VoteWithdrawCredentials ¶
func (_LightNode *LightNodeTransactorSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error)
VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (*LightNodeTransactorSession) WithdrawNodeDepositToken ¶
func (_LightNode *LightNodeTransactorSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error)
WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()