super_node

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SuperNodeABI = SuperNodeMetaData.ABI

SuperNodeABI is the input ABI used to generate the binding from. Deprecated: Use SuperNodeMetaData.ABI instead.

View Source
var SuperNodeMetaData = &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\"}],\"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\":\"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_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_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\":\"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\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"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\":[],\"name\":\"getSuperNodeDepositEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getSuperNodePubkeyAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getSuperNodePubkeyCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"getSuperNodePubkeyStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_value\",\"type\":\"bool\"}],\"name\":\"setSuperNodeDepositEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_status\",\"type\":\"uint256\"}],\"name\":\"setSuperNodePubkeyStatus\",\"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\"}]",
}

SuperNodeMetaData contains all meta data concerning the SuperNode contract.

Functions

This section is empty.

Types

type SuperNode

type SuperNode struct {
	SuperNodeCaller     // Read-only binding to the contract
	SuperNodeTransactor // Write-only binding to the contract
	SuperNodeFilterer   // Log filterer for contract events
}

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

func NewSuperNode

func NewSuperNode(address common.Address, backend bind.ContractBackend) (*SuperNode, error)

NewSuperNode creates a new instance of SuperNode, bound to a specific deployed contract.

type SuperNodeCaller

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

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

func NewSuperNodeCaller

func NewSuperNodeCaller(address common.Address, caller bind.ContractCaller) (*SuperNodeCaller, error)

NewSuperNodeCaller creates a new read-only instance of SuperNode, bound to a specific deployed contract.

func (*SuperNodeCaller) GetPubkeyVoted

func (_SuperNode *SuperNodeCaller) 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 (*SuperNodeCaller) GetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeCaller) GetSuperNodeDepositEnabled(opts *bind.CallOpts) (bool, error)

GetSuperNodeDepositEnabled is a free data retrieval call binding the contract method 0x722ad663.

Solidity: function getSuperNodeDepositEnabled() view returns(bool)

func (*SuperNodeCaller) GetSuperNodePubkeyAt

func (_SuperNode *SuperNodeCaller) GetSuperNodePubkeyAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) ([]byte, error)

GetSuperNodePubkeyAt is a free data retrieval call binding the contract method 0x323c662b.

Solidity: function getSuperNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)

func (*SuperNodeCaller) GetSuperNodePubkeyCount

func (_SuperNode *SuperNodeCaller) GetSuperNodePubkeyCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error)

GetSuperNodePubkeyCount is a free data retrieval call binding the contract method 0x6f4c0a82.

Solidity: function getSuperNodePubkeyCount(address _nodeAddress) view returns(uint256)

func (*SuperNodeCaller) GetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeCaller) GetSuperNodePubkeyStatus(opts *bind.CallOpts, _validatorPubkey []byte) (*big.Int, error)

GetSuperNodePubkeyStatus is a free data retrieval call binding the contract method 0x996a8ddb.

Solidity: function getSuperNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)

func (*SuperNodeCaller) PUBKEYSTATUSINITIAL

func (_SuperNode *SuperNodeCaller) PUBKEYSTATUSINITIAL(opts *bind.CallOpts) (*big.Int, error)

PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.

Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)

func (*SuperNodeCaller) PUBKEYSTATUSMATCH

func (_SuperNode *SuperNodeCaller) PUBKEYSTATUSMATCH(opts *bind.CallOpts) (*big.Int, error)

PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.

Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)

func (*SuperNodeCaller) PUBKEYSTATUSSTAKING

func (_SuperNode *SuperNodeCaller) PUBKEYSTATUSSTAKING(opts *bind.CallOpts) (*big.Int, error)

PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.

Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)

func (*SuperNodeCaller) PUBKEYSTATUSUNINITIAL

func (_SuperNode *SuperNodeCaller) PUBKEYSTATUSUNINITIAL(opts *bind.CallOpts) (*big.Int, error)

PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.

Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)

func (*SuperNodeCaller) PUBKEYSTATUSUNMATCH

func (_SuperNode *SuperNodeCaller) PUBKEYSTATUSUNMATCH(opts *bind.CallOpts) (*big.Int, error)

PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.

Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)

func (*SuperNodeCaller) PubkeySetStorage

func (_SuperNode *SuperNodeCaller) PubkeySetStorage(opts *bind.CallOpts) (common.Address, error)

PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.

Solidity: function PubkeySetStorage() view returns(address)

func (*SuperNodeCaller) Version

func (_SuperNode *SuperNodeCaller) Version(opts *bind.CallOpts) (uint8, error)

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

Solidity: function version() view returns(uint8)

type SuperNodeCallerRaw

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

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

func (*SuperNodeCallerRaw) Call

func (_SuperNode *SuperNodeCallerRaw) 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 SuperNodeCallerSession

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

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

func (*SuperNodeCallerSession) GetPubkeyVoted

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) GetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeCallerSession) GetSuperNodeDepositEnabled() (bool, error)

GetSuperNodeDepositEnabled is a free data retrieval call binding the contract method 0x722ad663.

Solidity: function getSuperNodeDepositEnabled() view returns(bool)

func (*SuperNodeCallerSession) GetSuperNodePubkeyAt

func (_SuperNode *SuperNodeCallerSession) GetSuperNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)

GetSuperNodePubkeyAt is a free data retrieval call binding the contract method 0x323c662b.

Solidity: function getSuperNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)

func (*SuperNodeCallerSession) GetSuperNodePubkeyCount

func (_SuperNode *SuperNodeCallerSession) GetSuperNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)

GetSuperNodePubkeyCount is a free data retrieval call binding the contract method 0x6f4c0a82.

Solidity: function getSuperNodePubkeyCount(address _nodeAddress) view returns(uint256)

func (*SuperNodeCallerSession) GetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeCallerSession) GetSuperNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)

GetSuperNodePubkeyStatus is a free data retrieval call binding the contract method 0x996a8ddb.

Solidity: function getSuperNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)

func (*SuperNodeCallerSession) PUBKEYSTATUSINITIAL

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) PUBKEYSTATUSMATCH

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) PUBKEYSTATUSSTAKING

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) PUBKEYSTATUSUNINITIAL

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) PUBKEYSTATUSUNMATCH

func (_SuperNode *SuperNodeCallerSession) 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 (*SuperNodeCallerSession) PubkeySetStorage

func (_SuperNode *SuperNodeCallerSession) PubkeySetStorage() (common.Address, error)

PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.

Solidity: function PubkeySetStorage() view returns(address)

func (*SuperNodeCallerSession) Version

func (_SuperNode *SuperNodeCallerSession) Version() (uint8, error)

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

Solidity: function version() view returns(uint8)

type SuperNodeDeposited

type SuperNodeDeposited struct {
	Node               common.Address
	Pubkey             []byte
	ValidatorSignature []byte
	Raw                types.Log // Blockchain specific contextual infos
}

SuperNodeDeposited represents a Deposited event raised by the SuperNode contract.

type SuperNodeDepositedIterator

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

SuperNodeDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the SuperNode contract.

func (*SuperNodeDepositedIterator) Close

func (it *SuperNodeDepositedIterator) Close() error

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

func (*SuperNodeDepositedIterator) Error

func (it *SuperNodeDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SuperNodeDepositedIterator) Next

func (it *SuperNodeDepositedIterator) 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 SuperNodeEtherDeposited

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

SuperNodeEtherDeposited represents a EtherDeposited event raised by the SuperNode contract.

type SuperNodeEtherDepositedIterator

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

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

func (*SuperNodeEtherDepositedIterator) Close

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

func (*SuperNodeEtherDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SuperNodeEtherDepositedIterator) 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 SuperNodeFilterer

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

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

func NewSuperNodeFilterer

func NewSuperNodeFilterer(address common.Address, filterer bind.ContractFilterer) (*SuperNodeFilterer, error)

NewSuperNodeFilterer creates a new log filterer instance of SuperNode, bound to a specific deployed contract.

func (*SuperNodeFilterer) FilterDeposited

func (_SuperNode *SuperNodeFilterer) FilterDeposited(opts *bind.FilterOpts) (*SuperNodeDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0xe1ad1f084336d5e44bd6540296e05704680f98d0e6770895a3c796c79ca6d138.

Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature)

func (*SuperNodeFilterer) FilterEtherDeposited

func (_SuperNode *SuperNodeFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*SuperNodeEtherDepositedIterator, error)

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

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

func (*SuperNodeFilterer) FilterSetPubkeyStatus

func (_SuperNode *SuperNodeFilterer) FilterSetPubkeyStatus(opts *bind.FilterOpts) (*SuperNodeSetPubkeyStatusIterator, error)

FilterSetPubkeyStatus is a free log retrieval operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.

Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)

func (*SuperNodeFilterer) FilterStaked

func (_SuperNode *SuperNodeFilterer) FilterStaked(opts *bind.FilterOpts) (*SuperNodeStakedIterator, error)

FilterStaked is a free log retrieval operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.

Solidity: event Staked(address node, bytes pubkey)

func (*SuperNodeFilterer) ParseDeposited

func (_SuperNode *SuperNodeFilterer) ParseDeposited(log types.Log) (*SuperNodeDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0xe1ad1f084336d5e44bd6540296e05704680f98d0e6770895a3c796c79ca6d138.

Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature)

func (*SuperNodeFilterer) ParseEtherDeposited

func (_SuperNode *SuperNodeFilterer) ParseEtherDeposited(log types.Log) (*SuperNodeEtherDeposited, error)

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

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

func (*SuperNodeFilterer) ParseSetPubkeyStatus

func (_SuperNode *SuperNodeFilterer) ParseSetPubkeyStatus(log types.Log) (*SuperNodeSetPubkeyStatus, error)

ParseSetPubkeyStatus is a log parse operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.

Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)

func (*SuperNodeFilterer) ParseStaked

func (_SuperNode *SuperNodeFilterer) ParseStaked(log types.Log) (*SuperNodeStaked, error)

ParseStaked is a log parse operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.

Solidity: event Staked(address node, bytes pubkey)

func (*SuperNodeFilterer) WatchDeposited

func (_SuperNode *SuperNodeFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *SuperNodeDeposited) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0xe1ad1f084336d5e44bd6540296e05704680f98d0e6770895a3c796c79ca6d138.

Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature)

func (*SuperNodeFilterer) WatchEtherDeposited

func (_SuperNode *SuperNodeFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *SuperNodeEtherDeposited, 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 (*SuperNodeFilterer) WatchSetPubkeyStatus

func (_SuperNode *SuperNodeFilterer) WatchSetPubkeyStatus(opts *bind.WatchOpts, sink chan<- *SuperNodeSetPubkeyStatus) (event.Subscription, error)

WatchSetPubkeyStatus is a free log subscription operation binding the contract event 0xc581330a67ddadcf62d06e14db41c85bb45910369cedad649390e6dd2a9373c8.

Solidity: event SetPubkeyStatus(bytes pubkey, uint256 status)

func (*SuperNodeFilterer) WatchStaked

func (_SuperNode *SuperNodeFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *SuperNodeStaked) (event.Subscription, error)

WatchStaked is a free log subscription operation binding the contract event 0xb384b282308c431ac3ea7756646550752d3f0dbfb418ef60bfeaf4edc9494815.

Solidity: event Staked(address node, bytes pubkey)

type SuperNodeRaw

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

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

func (*SuperNodeRaw) Call

func (_SuperNode *SuperNodeRaw) 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 (*SuperNodeRaw) Transact

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

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

func (*SuperNodeRaw) Transfer

func (_SuperNode *SuperNodeRaw) 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 SuperNodeSession

type SuperNodeSession struct {
	Contract     *SuperNode        // 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
}

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

func (*SuperNodeSession) Deposit

func (_SuperNode *SuperNodeSession) 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) returns()

func (*SuperNodeSession) DepositEth

func (_SuperNode *SuperNodeSession) DepositEth() (*types.Transaction, error)

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

Solidity: function depositEth() payable returns()

func (*SuperNodeSession) GetPubkeyVoted

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) GetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeSession) GetSuperNodeDepositEnabled() (bool, error)

GetSuperNodeDepositEnabled is a free data retrieval call binding the contract method 0x722ad663.

Solidity: function getSuperNodeDepositEnabled() view returns(bool)

func (*SuperNodeSession) GetSuperNodePubkeyAt

func (_SuperNode *SuperNodeSession) GetSuperNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error)

GetSuperNodePubkeyAt is a free data retrieval call binding the contract method 0x323c662b.

Solidity: function getSuperNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)

func (*SuperNodeSession) GetSuperNodePubkeyCount

func (_SuperNode *SuperNodeSession) GetSuperNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error)

GetSuperNodePubkeyCount is a free data retrieval call binding the contract method 0x6f4c0a82.

Solidity: function getSuperNodePubkeyCount(address _nodeAddress) view returns(uint256)

func (*SuperNodeSession) GetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeSession) GetSuperNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error)

GetSuperNodePubkeyStatus is a free data retrieval call binding the contract method 0x996a8ddb.

Solidity: function getSuperNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)

func (*SuperNodeSession) PUBKEYSTATUSINITIAL

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) PUBKEYSTATUSMATCH

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) PUBKEYSTATUSSTAKING

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) PUBKEYSTATUSUNINITIAL

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) PUBKEYSTATUSUNMATCH

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) PubkeySetStorage

func (_SuperNode *SuperNodeSession) PubkeySetStorage() (common.Address, error)

PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.

Solidity: function PubkeySetStorage() view returns(address)

func (*SuperNodeSession) SetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeSession) SetSuperNodeDepositEnabled(_value bool) (*types.Transaction, error)

SetSuperNodeDepositEnabled is a paid mutator transaction binding the contract method 0x24101a4b.

Solidity: function setSuperNodeDepositEnabled(bool _value) returns()

func (*SuperNodeSession) SetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeSession) SetSuperNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)

SetSuperNodePubkeyStatus is a paid mutator transaction binding the contract method 0xac93a5bd.

Solidity: function setSuperNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()

func (*SuperNodeSession) Stake

func (_SuperNode *SuperNodeSession) 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 (*SuperNodeSession) Version

func (_SuperNode *SuperNodeSession) Version() (uint8, error)

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

Solidity: function version() view returns(uint8)

func (*SuperNodeSession) VoteWithdrawCredentials

func (_SuperNode *SuperNodeSession) 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()

type SuperNodeSetPubkeyStatus

type SuperNodeSetPubkeyStatus struct {
	Pubkey []byte
	Status *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

SuperNodeSetPubkeyStatus represents a SetPubkeyStatus event raised by the SuperNode contract.

type SuperNodeSetPubkeyStatusIterator

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

SuperNodeSetPubkeyStatusIterator is returned from FilterSetPubkeyStatus and is used to iterate over the raw logs and unpacked data for SetPubkeyStatus events raised by the SuperNode contract.

func (*SuperNodeSetPubkeyStatusIterator) Close

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

func (*SuperNodeSetPubkeyStatusIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SuperNodeSetPubkeyStatusIterator) 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 SuperNodeStaked

type SuperNodeStaked struct {
	Node   common.Address
	Pubkey []byte
	Raw    types.Log // Blockchain specific contextual infos
}

SuperNodeStaked represents a Staked event raised by the SuperNode contract.

type SuperNodeStakedIterator

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

SuperNodeStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the SuperNode contract.

func (*SuperNodeStakedIterator) Close

func (it *SuperNodeStakedIterator) Close() error

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

func (*SuperNodeStakedIterator) Error

func (it *SuperNodeStakedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SuperNodeStakedIterator) Next

func (it *SuperNodeStakedIterator) 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 SuperNodeTransactor

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

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

func NewSuperNodeTransactor

func NewSuperNodeTransactor(address common.Address, transactor bind.ContractTransactor) (*SuperNodeTransactor, error)

NewSuperNodeTransactor creates a new write-only instance of SuperNode, bound to a specific deployed contract.

func (*SuperNodeTransactor) Deposit

func (_SuperNode *SuperNodeTransactor) 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) returns()

func (*SuperNodeTransactor) DepositEth

func (_SuperNode *SuperNodeTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function depositEth() payable returns()

func (*SuperNodeTransactor) SetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeTransactor) SetSuperNodeDepositEnabled(opts *bind.TransactOpts, _value bool) (*types.Transaction, error)

SetSuperNodeDepositEnabled is a paid mutator transaction binding the contract method 0x24101a4b.

Solidity: function setSuperNodeDepositEnabled(bool _value) returns()

func (*SuperNodeTransactor) SetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeTransactor) SetSuperNodePubkeyStatus(opts *bind.TransactOpts, _validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)

SetSuperNodePubkeyStatus is a paid mutator transaction binding the contract method 0xac93a5bd.

Solidity: function setSuperNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()

func (*SuperNodeTransactor) Stake

func (_SuperNode *SuperNodeTransactor) 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 (*SuperNodeTransactor) VoteWithdrawCredentials

func (_SuperNode *SuperNodeTransactor) 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()

type SuperNodeTransactorRaw

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

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

func (*SuperNodeTransactorRaw) Transact

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

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

func (*SuperNodeTransactorRaw) Transfer

func (_SuperNode *SuperNodeTransactorRaw) 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 SuperNodeTransactorSession

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

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

func (*SuperNodeTransactorSession) Deposit

func (_SuperNode *SuperNodeTransactorSession) 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) returns()

func (*SuperNodeTransactorSession) DepositEth

func (_SuperNode *SuperNodeTransactorSession) DepositEth() (*types.Transaction, error)

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

Solidity: function depositEth() payable returns()

func (*SuperNodeTransactorSession) SetSuperNodeDepositEnabled

func (_SuperNode *SuperNodeTransactorSession) SetSuperNodeDepositEnabled(_value bool) (*types.Transaction, error)

SetSuperNodeDepositEnabled is a paid mutator transaction binding the contract method 0x24101a4b.

Solidity: function setSuperNodeDepositEnabled(bool _value) returns()

func (*SuperNodeTransactorSession) SetSuperNodePubkeyStatus

func (_SuperNode *SuperNodeTransactorSession) SetSuperNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error)

SetSuperNodePubkeyStatus is a paid mutator transaction binding the contract method 0xac93a5bd.

Solidity: function setSuperNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()

func (*SuperNodeTransactorSession) Stake

func (_SuperNode *SuperNodeTransactorSession) 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 (*SuperNodeTransactorSession) VoteWithdrawCredentials

func (_SuperNode *SuperNodeTransactorSession) 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()

Jump to

Keyboard shortcuts

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