Documentation ¶
Index ¶
- Variables
- type NetworkBalances
- type NetworkBalancesBalancesSubmitted
- type NetworkBalancesBalancesSubmittedIterator
- type NetworkBalancesBalancesUpdated
- type NetworkBalancesBalancesUpdatedIterator
- type NetworkBalancesCaller
- func (_NetworkBalances *NetworkBalancesCaller) GetBalancesBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCaller) GetETHStakingRate(opts *bind.CallOpts) (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCaller) GetStakingETHBalance(opts *bind.CallOpts) (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCaller) GetTotalETHBalance(opts *bind.CallOpts) (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCaller) GetTotalRETHSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCaller) NodeVoted(opts *bind.CallOpts, sender common.Address, _block *big.Int, ...) (bool, error)
- func (_NetworkBalances *NetworkBalancesCaller) Version(opts *bind.CallOpts) (uint8, error)
- type NetworkBalancesCallerRaw
- type NetworkBalancesCallerSession
- func (_NetworkBalances *NetworkBalancesCallerSession) GetBalancesBlock() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) GetETHStakingRate() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) GetStakingETHBalance() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) GetTotalETHBalance() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) GetTotalRETHSupply() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) NodeVoted(sender common.Address, _block *big.Int, _totalEth *big.Int, ...) (bool, error)
- func (_NetworkBalances *NetworkBalancesCallerSession) Version() (uint8, error)
- type NetworkBalancesFilterer
- func (_NetworkBalances *NetworkBalancesFilterer) FilterBalancesSubmitted(opts *bind.FilterOpts, from []common.Address) (*NetworkBalancesBalancesSubmittedIterator, error)
- func (_NetworkBalances *NetworkBalancesFilterer) FilterBalancesUpdated(opts *bind.FilterOpts) (*NetworkBalancesBalancesUpdatedIterator, error)
- func (_NetworkBalances *NetworkBalancesFilterer) ParseBalancesSubmitted(log types.Log) (*NetworkBalancesBalancesSubmitted, error)
- func (_NetworkBalances *NetworkBalancesFilterer) ParseBalancesUpdated(log types.Log) (*NetworkBalancesBalancesUpdated, error)
- func (_NetworkBalances *NetworkBalancesFilterer) WatchBalancesSubmitted(opts *bind.WatchOpts, sink chan<- *NetworkBalancesBalancesSubmitted, ...) (event.Subscription, error)
- func (_NetworkBalances *NetworkBalancesFilterer) WatchBalancesUpdated(opts *bind.WatchOpts, sink chan<- *NetworkBalancesBalancesUpdated) (event.Subscription, error)
- type NetworkBalancesRaw
- func (_NetworkBalances *NetworkBalancesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_NetworkBalances *NetworkBalancesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_NetworkBalances *NetworkBalancesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type NetworkBalancesSession
- func (_NetworkBalances *NetworkBalancesSession) GetBalancesBlock() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesSession) GetETHStakingRate() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesSession) GetStakingETHBalance() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesSession) GetTotalETHBalance() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesSession) GetTotalRETHSupply() (*big.Int, error)
- func (_NetworkBalances *NetworkBalancesSession) NodeVoted(sender common.Address, _block *big.Int, _totalEth *big.Int, ...) (bool, error)
- func (_NetworkBalances *NetworkBalancesSession) SubmitBalances(_block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, ...) (*types.Transaction, error)
- func (_NetworkBalances *NetworkBalancesSession) Version() (uint8, error)
- type NetworkBalancesTransactor
- type NetworkBalancesTransactorRaw
- type NetworkBalancesTransactorSession
Constants ¶
This section is empty.
Variables ¶
var NetworkBalancesABI = NetworkBalancesMetaData.ABI
NetworkBalancesABI is the input ABI used to generate the binding from. Deprecated: Use NetworkBalancesMetaData.ABI instead.
var NetworkBalancesMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"block\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalEth\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakingEth\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rethSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"BalancesSubmitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"block\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalEth\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakingEth\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rethSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"BalancesUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getBalancesBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getETHStakingRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingETHBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalETHBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalRETHSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_block\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_totalEth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakingEth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rethSupply\",\"type\":\"uint256\"}],\"name\":\"nodeVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_block\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_totalEth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakingEth\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_rethSupply\",\"type\":\"uint256\"}],\"name\":\"submitBalances\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
NetworkBalancesMetaData contains all meta data concerning the NetworkBalances contract.
Functions ¶
This section is empty.
Types ¶
type NetworkBalances ¶
type NetworkBalances struct { NetworkBalancesCaller // Read-only binding to the contract NetworkBalancesTransactor // Write-only binding to the contract NetworkBalancesFilterer // Log filterer for contract events }
NetworkBalances is an auto generated Go binding around an Ethereum contract.
func NewNetworkBalances ¶
func NewNetworkBalances(address common.Address, backend bind.ContractBackend) (*NetworkBalances, error)
NewNetworkBalances creates a new instance of NetworkBalances, bound to a specific deployed contract.
type NetworkBalancesBalancesSubmitted ¶
type NetworkBalancesBalancesSubmitted struct { From common.Address Block *big.Int TotalEth *big.Int StakingEth *big.Int RethSupply *big.Int Time *big.Int Raw types.Log // Blockchain specific contextual infos }
NetworkBalancesBalancesSubmitted represents a BalancesSubmitted event raised by the NetworkBalances contract.
type NetworkBalancesBalancesSubmittedIterator ¶
type NetworkBalancesBalancesSubmittedIterator struct { Event *NetworkBalancesBalancesSubmitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkBalancesBalancesSubmittedIterator is returned from FilterBalancesSubmitted and is used to iterate over the raw logs and unpacked data for BalancesSubmitted events raised by the NetworkBalances contract.
func (*NetworkBalancesBalancesSubmittedIterator) Close ¶
func (it *NetworkBalancesBalancesSubmittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkBalancesBalancesSubmittedIterator) Error ¶
func (it *NetworkBalancesBalancesSubmittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkBalancesBalancesSubmittedIterator) Next ¶
func (it *NetworkBalancesBalancesSubmittedIterator) 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 NetworkBalancesBalancesUpdated ¶
type NetworkBalancesBalancesUpdated struct { Block *big.Int TotalEth *big.Int StakingEth *big.Int RethSupply *big.Int Time *big.Int Raw types.Log // Blockchain specific contextual infos }
NetworkBalancesBalancesUpdated represents a BalancesUpdated event raised by the NetworkBalances contract.
type NetworkBalancesBalancesUpdatedIterator ¶
type NetworkBalancesBalancesUpdatedIterator struct { Event *NetworkBalancesBalancesUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NetworkBalancesBalancesUpdatedIterator is returned from FilterBalancesUpdated and is used to iterate over the raw logs and unpacked data for BalancesUpdated events raised by the NetworkBalances contract.
func (*NetworkBalancesBalancesUpdatedIterator) Close ¶
func (it *NetworkBalancesBalancesUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NetworkBalancesBalancesUpdatedIterator) Error ¶
func (it *NetworkBalancesBalancesUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NetworkBalancesBalancesUpdatedIterator) Next ¶
func (it *NetworkBalancesBalancesUpdatedIterator) 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 NetworkBalancesCaller ¶
type NetworkBalancesCaller struct {
// contains filtered or unexported fields
}
NetworkBalancesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewNetworkBalancesCaller ¶
func NewNetworkBalancesCaller(address common.Address, caller bind.ContractCaller) (*NetworkBalancesCaller, error)
NewNetworkBalancesCaller creates a new read-only instance of NetworkBalances, bound to a specific deployed contract.
func (*NetworkBalancesCaller) GetBalancesBlock ¶
func (_NetworkBalances *NetworkBalancesCaller) GetBalancesBlock(opts *bind.CallOpts) (*big.Int, error)
GetBalancesBlock is a free data retrieval call binding the contract method 0x9100c13d.
Solidity: function getBalancesBlock() view returns(uint256)
func (*NetworkBalancesCaller) GetETHStakingRate ¶
func (_NetworkBalances *NetworkBalancesCaller) GetETHStakingRate(opts *bind.CallOpts) (*big.Int, error)
GetETHStakingRate is a free data retrieval call binding the contract method 0xcd482567.
Solidity: function getETHStakingRate() view returns(uint256)
func (*NetworkBalancesCaller) GetStakingETHBalance ¶
func (_NetworkBalances *NetworkBalancesCaller) GetStakingETHBalance(opts *bind.CallOpts) (*big.Int, error)
GetStakingETHBalance is a free data retrieval call binding the contract method 0xf1eda634.
Solidity: function getStakingETHBalance() view returns(uint256)
func (*NetworkBalancesCaller) GetTotalETHBalance ¶
func (_NetworkBalances *NetworkBalancesCaller) GetTotalETHBalance(opts *bind.CallOpts) (*big.Int, error)
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*NetworkBalancesCaller) GetTotalRETHSupply ¶
func (_NetworkBalances *NetworkBalancesCaller) GetTotalRETHSupply(opts *bind.CallOpts) (*big.Int, error)
GetTotalRETHSupply is a free data retrieval call binding the contract method 0xc4c8d0ad.
Solidity: function getTotalRETHSupply() view returns(uint256)
func (*NetworkBalancesCaller) NodeVoted ¶
func (_NetworkBalances *NetworkBalancesCaller) NodeVoted(opts *bind.CallOpts, sender common.Address, _block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (bool, error)
NodeVoted is a free data retrieval call binding the contract method 0xcad46175.
Solidity: function nodeVoted(address sender, uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) view returns(bool)
type NetworkBalancesCallerRaw ¶
type NetworkBalancesCallerRaw struct {
Contract *NetworkBalancesCaller // Generic read-only contract binding to access the raw methods on
}
NetworkBalancesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*NetworkBalancesCallerRaw) Call ¶
func (_NetworkBalances *NetworkBalancesCallerRaw) 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 NetworkBalancesCallerSession ¶
type NetworkBalancesCallerSession struct { Contract *NetworkBalancesCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
NetworkBalancesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*NetworkBalancesCallerSession) GetBalancesBlock ¶
func (_NetworkBalances *NetworkBalancesCallerSession) GetBalancesBlock() (*big.Int, error)
GetBalancesBlock is a free data retrieval call binding the contract method 0x9100c13d.
Solidity: function getBalancesBlock() view returns(uint256)
func (*NetworkBalancesCallerSession) GetETHStakingRate ¶
func (_NetworkBalances *NetworkBalancesCallerSession) GetETHStakingRate() (*big.Int, error)
GetETHStakingRate is a free data retrieval call binding the contract method 0xcd482567.
Solidity: function getETHStakingRate() view returns(uint256)
func (*NetworkBalancesCallerSession) GetStakingETHBalance ¶
func (_NetworkBalances *NetworkBalancesCallerSession) GetStakingETHBalance() (*big.Int, error)
GetStakingETHBalance is a free data retrieval call binding the contract method 0xf1eda634.
Solidity: function getStakingETHBalance() view returns(uint256)
func (*NetworkBalancesCallerSession) GetTotalETHBalance ¶
func (_NetworkBalances *NetworkBalancesCallerSession) GetTotalETHBalance() (*big.Int, error)
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*NetworkBalancesCallerSession) GetTotalRETHSupply ¶
func (_NetworkBalances *NetworkBalancesCallerSession) GetTotalRETHSupply() (*big.Int, error)
GetTotalRETHSupply is a free data retrieval call binding the contract method 0xc4c8d0ad.
Solidity: function getTotalRETHSupply() view returns(uint256)
func (*NetworkBalancesCallerSession) NodeVoted ¶
func (_NetworkBalances *NetworkBalancesCallerSession) NodeVoted(sender common.Address, _block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (bool, error)
NodeVoted is a free data retrieval call binding the contract method 0xcad46175.
Solidity: function nodeVoted(address sender, uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) view returns(bool)
func (*NetworkBalancesCallerSession) Version ¶
func (_NetworkBalances *NetworkBalancesCallerSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
type NetworkBalancesFilterer ¶
type NetworkBalancesFilterer struct {
// contains filtered or unexported fields
}
NetworkBalancesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewNetworkBalancesFilterer ¶
func NewNetworkBalancesFilterer(address common.Address, filterer bind.ContractFilterer) (*NetworkBalancesFilterer, error)
NewNetworkBalancesFilterer creates a new log filterer instance of NetworkBalances, bound to a specific deployed contract.
func (*NetworkBalancesFilterer) FilterBalancesSubmitted ¶
func (_NetworkBalances *NetworkBalancesFilterer) FilterBalancesSubmitted(opts *bind.FilterOpts, from []common.Address) (*NetworkBalancesBalancesSubmittedIterator, error)
FilterBalancesSubmitted is a free log retrieval operation binding the contract event 0xe657a6d6957f4fabb37b86d4d6571e82df061bd2d8a3ede5d197b0b98a5a1bdf.
Solidity: event BalancesSubmitted(address indexed from, uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
func (*NetworkBalancesFilterer) FilterBalancesUpdated ¶
func (_NetworkBalances *NetworkBalancesFilterer) FilterBalancesUpdated(opts *bind.FilterOpts) (*NetworkBalancesBalancesUpdatedIterator, error)
FilterBalancesUpdated is a free log retrieval operation binding the contract event 0x7bbbb137fdad433d6168b1c75c714c72b8abe8d07460f0c0b433063e7bf1f394.
Solidity: event BalancesUpdated(uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
func (*NetworkBalancesFilterer) ParseBalancesSubmitted ¶
func (_NetworkBalances *NetworkBalancesFilterer) ParseBalancesSubmitted(log types.Log) (*NetworkBalancesBalancesSubmitted, error)
ParseBalancesSubmitted is a log parse operation binding the contract event 0xe657a6d6957f4fabb37b86d4d6571e82df061bd2d8a3ede5d197b0b98a5a1bdf.
Solidity: event BalancesSubmitted(address indexed from, uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
func (*NetworkBalancesFilterer) ParseBalancesUpdated ¶
func (_NetworkBalances *NetworkBalancesFilterer) ParseBalancesUpdated(log types.Log) (*NetworkBalancesBalancesUpdated, error)
ParseBalancesUpdated is a log parse operation binding the contract event 0x7bbbb137fdad433d6168b1c75c714c72b8abe8d07460f0c0b433063e7bf1f394.
Solidity: event BalancesUpdated(uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
func (*NetworkBalancesFilterer) WatchBalancesSubmitted ¶
func (_NetworkBalances *NetworkBalancesFilterer) WatchBalancesSubmitted(opts *bind.WatchOpts, sink chan<- *NetworkBalancesBalancesSubmitted, from []common.Address) (event.Subscription, error)
WatchBalancesSubmitted is a free log subscription operation binding the contract event 0xe657a6d6957f4fabb37b86d4d6571e82df061bd2d8a3ede5d197b0b98a5a1bdf.
Solidity: event BalancesSubmitted(address indexed from, uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
func (*NetworkBalancesFilterer) WatchBalancesUpdated ¶
func (_NetworkBalances *NetworkBalancesFilterer) WatchBalancesUpdated(opts *bind.WatchOpts, sink chan<- *NetworkBalancesBalancesUpdated) (event.Subscription, error)
WatchBalancesUpdated is a free log subscription operation binding the contract event 0x7bbbb137fdad433d6168b1c75c714c72b8abe8d07460f0c0b433063e7bf1f394.
Solidity: event BalancesUpdated(uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time)
type NetworkBalancesRaw ¶
type NetworkBalancesRaw struct {
Contract *NetworkBalances // Generic contract binding to access the raw methods on
}
NetworkBalancesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*NetworkBalancesRaw) Call ¶
func (_NetworkBalances *NetworkBalancesRaw) 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 (*NetworkBalancesRaw) Transact ¶
func (_NetworkBalances *NetworkBalancesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NetworkBalancesRaw) Transfer ¶
func (_NetworkBalances *NetworkBalancesRaw) 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 NetworkBalancesSession ¶
type NetworkBalancesSession struct { Contract *NetworkBalances // 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 }
NetworkBalancesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*NetworkBalancesSession) GetBalancesBlock ¶
func (_NetworkBalances *NetworkBalancesSession) GetBalancesBlock() (*big.Int, error)
GetBalancesBlock is a free data retrieval call binding the contract method 0x9100c13d.
Solidity: function getBalancesBlock() view returns(uint256)
func (*NetworkBalancesSession) GetETHStakingRate ¶
func (_NetworkBalances *NetworkBalancesSession) GetETHStakingRate() (*big.Int, error)
GetETHStakingRate is a free data retrieval call binding the contract method 0xcd482567.
Solidity: function getETHStakingRate() view returns(uint256)
func (*NetworkBalancesSession) GetStakingETHBalance ¶
func (_NetworkBalances *NetworkBalancesSession) GetStakingETHBalance() (*big.Int, error)
GetStakingETHBalance is a free data retrieval call binding the contract method 0xf1eda634.
Solidity: function getStakingETHBalance() view returns(uint256)
func (*NetworkBalancesSession) GetTotalETHBalance ¶
func (_NetworkBalances *NetworkBalancesSession) GetTotalETHBalance() (*big.Int, error)
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*NetworkBalancesSession) GetTotalRETHSupply ¶
func (_NetworkBalances *NetworkBalancesSession) GetTotalRETHSupply() (*big.Int, error)
GetTotalRETHSupply is a free data retrieval call binding the contract method 0xc4c8d0ad.
Solidity: function getTotalRETHSupply() view returns(uint256)
func (*NetworkBalancesSession) NodeVoted ¶
func (_NetworkBalances *NetworkBalancesSession) NodeVoted(sender common.Address, _block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (bool, error)
NodeVoted is a free data retrieval call binding the contract method 0xcad46175.
Solidity: function nodeVoted(address sender, uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) view returns(bool)
func (*NetworkBalancesSession) SubmitBalances ¶
func (_NetworkBalances *NetworkBalancesSession) SubmitBalances(_block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (*types.Transaction, error)
SubmitBalances is a paid mutator transaction binding the contract method 0x32db5470.
Solidity: function submitBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) returns()
func (*NetworkBalancesSession) Version ¶
func (_NetworkBalances *NetworkBalancesSession) Version() (uint8, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(uint8)
type NetworkBalancesTransactor ¶
type NetworkBalancesTransactor struct {
// contains filtered or unexported fields
}
NetworkBalancesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewNetworkBalancesTransactor ¶
func NewNetworkBalancesTransactor(address common.Address, transactor bind.ContractTransactor) (*NetworkBalancesTransactor, error)
NewNetworkBalancesTransactor creates a new write-only instance of NetworkBalances, bound to a specific deployed contract.
func (*NetworkBalancesTransactor) SubmitBalances ¶
func (_NetworkBalances *NetworkBalancesTransactor) SubmitBalances(opts *bind.TransactOpts, _block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (*types.Transaction, error)
SubmitBalances is a paid mutator transaction binding the contract method 0x32db5470.
Solidity: function submitBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) returns()
type NetworkBalancesTransactorRaw ¶
type NetworkBalancesTransactorRaw struct {
Contract *NetworkBalancesTransactor // Generic write-only contract binding to access the raw methods on
}
NetworkBalancesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*NetworkBalancesTransactorRaw) Transact ¶
func (_NetworkBalances *NetworkBalancesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NetworkBalancesTransactorRaw) Transfer ¶
func (_NetworkBalances *NetworkBalancesTransactorRaw) 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 NetworkBalancesTransactorSession ¶
type NetworkBalancesTransactorSession struct { Contract *NetworkBalancesTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
NetworkBalancesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*NetworkBalancesTransactorSession) SubmitBalances ¶
func (_NetworkBalances *NetworkBalancesTransactorSession) SubmitBalances(_block *big.Int, _totalEth *big.Int, _stakingEth *big.Int, _rethSupply *big.Int) (*types.Transaction, error)
SubmitBalances is a paid mutator transaction binding the contract method 0x32db5470.
Solidity: function submitBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) returns()