Valset

package
v0.0.0-...-3085ac3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ValsetABI = "" /* 6895-byte string literal not displayed */

ValsetABI is the input ABI used to generate the binding from.

Variables

View Source
var ValsetBin = "" /* 13818-byte string literal not displayed */

ValsetBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Valset

type Valset struct {
	ValsetCaller     // Read-only binding to the contract
	ValsetTransactor // Write-only binding to the contract
	ValsetFilterer   // Log filterer for contract events
}

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

func DeployValset

func DeployValset(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Valset, error)

DeployValset deploys a new Ethereum contract, binding an instance of Valset to it.

func NewValset

func NewValset(address common.Address, backend bind.ContractBackend) (*Valset, error)

NewValset creates a new instance of Valset, bound to a specific deployed contract.

type ValsetCaller

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

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

func NewValsetCaller

func NewValsetCaller(address common.Address, caller bind.ContractCaller) (*ValsetCaller, error)

NewValsetCaller creates a new read-only instance of Valset, bound to a specific deployed contract.

func (*ValsetCaller) CurrentValsetVersion

func (_Valset *ValsetCaller) CurrentValsetVersion(opts *bind.CallOpts) (*big.Int, error)

CurrentValsetVersion is a free data retrieval call binding the contract method 0x8d56c37d.

Solidity: function currentValsetVersion() view returns(uint256)

func (*ValsetCaller) GetValidatorPower

func (_Valset *ValsetCaller) GetValidatorPower(opts *bind.CallOpts, _validatorAddress common.Address) (*big.Int, error)

GetValidatorPower is a free data retrieval call binding the contract method 0x473691a4.

Solidity: function getValidatorPower(address _validatorAddress) view returns(uint256)

func (*ValsetCaller) IsActiveValidator

func (_Valset *ValsetCaller) IsActiveValidator(opts *bind.CallOpts, _validatorAddress common.Address) (bool, error)

IsActiveValidator is a free data retrieval call binding the contract method 0x40550a1c.

Solidity: function isActiveValidator(address _validatorAddress) view returns(bool)

func (*ValsetCaller) Operator

func (_Valset *ValsetCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ValsetCaller) Powers

func (_Valset *ValsetCaller) Powers(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

Powers is a free data retrieval call binding the contract method 0xb872c523.

Solidity: function powers(bytes32 ) view returns(uint256)

func (*ValsetCaller) Recover

func (_Valset *ValsetCaller) Recover(opts *bind.CallOpts, _message [32]byte, _signature []byte) (common.Address, error)

Recover is a free data retrieval call binding the contract method 0x19045a25.

Solidity: function recover(bytes32 _message, bytes _signature) pure returns(address)

func (*ValsetCaller) TotalPower

func (_Valset *ValsetCaller) TotalPower(opts *bind.CallOpts) (*big.Int, error)

TotalPower is a free data retrieval call binding the contract method 0xdb3ad22c.

Solidity: function totalPower() view returns(uint256)

func (*ValsetCaller) VALSETREVISION

func (_Valset *ValsetCaller) VALSETREVISION(opts *bind.CallOpts) (*big.Int, error)

VALSETREVISION is a free data retrieval call binding the contract method 0xee0b296e.

Solidity: function VALSET_REVISION() view returns(uint256)

func (*ValsetCaller) ValidatorCount

func (_Valset *ValsetCaller) ValidatorCount(opts *bind.CallOpts) (*big.Int, error)

ValidatorCount is a free data retrieval call binding the contract method 0x0f43a677.

Solidity: function validatorCount() view returns(uint256)

func (*ValsetCaller) Validators

func (_Valset *ValsetCaller) Validators(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

Validators is a free data retrieval call binding the contract method 0x9bdafcb3.

Solidity: function validators(bytes32 ) view returns(bool)

type ValsetCallerRaw

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

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

func (*ValsetCallerRaw) Call

func (_Valset *ValsetCallerRaw) 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 ValsetCallerSession

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

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

func (*ValsetCallerSession) CurrentValsetVersion

func (_Valset *ValsetCallerSession) CurrentValsetVersion() (*big.Int, error)

CurrentValsetVersion is a free data retrieval call binding the contract method 0x8d56c37d.

Solidity: function currentValsetVersion() view returns(uint256)

func (*ValsetCallerSession) GetValidatorPower

func (_Valset *ValsetCallerSession) GetValidatorPower(_validatorAddress common.Address) (*big.Int, error)

GetValidatorPower is a free data retrieval call binding the contract method 0x473691a4.

Solidity: function getValidatorPower(address _validatorAddress) view returns(uint256)

func (*ValsetCallerSession) IsActiveValidator

func (_Valset *ValsetCallerSession) IsActiveValidator(_validatorAddress common.Address) (bool, error)

IsActiveValidator is a free data retrieval call binding the contract method 0x40550a1c.

Solidity: function isActiveValidator(address _validatorAddress) view returns(bool)

func (*ValsetCallerSession) Operator

func (_Valset *ValsetCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ValsetCallerSession) Powers

func (_Valset *ValsetCallerSession) Powers(arg0 [32]byte) (*big.Int, error)

Powers is a free data retrieval call binding the contract method 0xb872c523.

Solidity: function powers(bytes32 ) view returns(uint256)

func (*ValsetCallerSession) Recover

func (_Valset *ValsetCallerSession) Recover(_message [32]byte, _signature []byte) (common.Address, error)

Recover is a free data retrieval call binding the contract method 0x19045a25.

Solidity: function recover(bytes32 _message, bytes _signature) pure returns(address)

func (*ValsetCallerSession) TotalPower

func (_Valset *ValsetCallerSession) TotalPower() (*big.Int, error)

TotalPower is a free data retrieval call binding the contract method 0xdb3ad22c.

Solidity: function totalPower() view returns(uint256)

func (*ValsetCallerSession) VALSETREVISION

func (_Valset *ValsetCallerSession) VALSETREVISION() (*big.Int, error)

VALSETREVISION is a free data retrieval call binding the contract method 0xee0b296e.

Solidity: function VALSET_REVISION() view returns(uint256)

func (*ValsetCallerSession) ValidatorCount

func (_Valset *ValsetCallerSession) ValidatorCount() (*big.Int, error)

ValidatorCount is a free data retrieval call binding the contract method 0x0f43a677.

Solidity: function validatorCount() view returns(uint256)

func (*ValsetCallerSession) Validators

func (_Valset *ValsetCallerSession) Validators(arg0 [32]byte) (bool, error)

Validators is a free data retrieval call binding the contract method 0x9bdafcb3.

Solidity: function validators(bytes32 ) view returns(bool)

type ValsetEthLogValidatorAdded

type ValsetEthLogValidatorAdded struct {
	Validator            common.Address
	Power                *big.Int
	CurrentValsetVersion *big.Int
	ValidatorCount       *big.Int
	TotalPower           *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

ValsetEthLogValidatorAdded represents a EthLogValidatorAdded event raised by the Valset contract.

type ValsetEthLogValidatorAddedIterator

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

ValsetEthLogValidatorAddedIterator is returned from FilterEthLogValidatorAdded and is used to iterate over the raw logs and unpacked data for EthLogValidatorAdded events raised by the Valset contract.

func (*ValsetEthLogValidatorAddedIterator) Close

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

func (*ValsetEthLogValidatorAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetEthLogValidatorAddedIterator) 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 ValsetEthLogValidatorPowerUpdated

type ValsetEthLogValidatorPowerUpdated struct {
	Validator            common.Address
	Power                *big.Int
	CurrentValsetVersion *big.Int
	ValidatorCount       *big.Int
	TotalPower           *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

ValsetEthLogValidatorPowerUpdated represents a EthLogValidatorPowerUpdated event raised by the Valset contract.

type ValsetEthLogValidatorPowerUpdatedIterator

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

ValsetEthLogValidatorPowerUpdatedIterator is returned from FilterEthLogValidatorPowerUpdated and is used to iterate over the raw logs and unpacked data for EthLogValidatorPowerUpdated events raised by the Valset contract.

func (*ValsetEthLogValidatorPowerUpdatedIterator) Close

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

func (*ValsetEthLogValidatorPowerUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetEthLogValidatorPowerUpdatedIterator) 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 ValsetEthLogValidatorRemoved

type ValsetEthLogValidatorRemoved struct {
	Validator            common.Address
	Power                *big.Int
	CurrentValsetVersion *big.Int
	ValidatorCount       *big.Int
	TotalPower           *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

ValsetEthLogValidatorRemoved represents a EthLogValidatorRemoved event raised by the Valset contract.

type ValsetEthLogValidatorRemovedIterator

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

ValsetEthLogValidatorRemovedIterator is returned from FilterEthLogValidatorRemoved and is used to iterate over the raw logs and unpacked data for EthLogValidatorRemoved events raised by the Valset contract.

func (*ValsetEthLogValidatorRemovedIterator) Close

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

func (*ValsetEthLogValidatorRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetEthLogValidatorRemovedIterator) 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 ValsetEthLogValsetReset

type ValsetEthLogValsetReset struct {
	NewValsetVersion *big.Int
	ValidatorCount   *big.Int
	TotalPower       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ValsetEthLogValsetReset represents a EthLogValsetReset event raised by the Valset contract.

type ValsetEthLogValsetResetIterator

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

ValsetEthLogValsetResetIterator is returned from FilterEthLogValsetReset and is used to iterate over the raw logs and unpacked data for EthLogValsetReset events raised by the Valset contract.

func (*ValsetEthLogValsetResetIterator) Close

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

func (*ValsetEthLogValsetResetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetEthLogValsetResetIterator) 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 ValsetEthLogValsetUpdated

type ValsetEthLogValsetUpdated struct {
	NewValsetVersion *big.Int
	ValidatorCount   *big.Int
	TotalPower       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ValsetEthLogValsetUpdated represents a EthLogValsetUpdated event raised by the Valset contract.

type ValsetEthLogValsetUpdatedIterator

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

ValsetEthLogValsetUpdatedIterator is returned from FilterEthLogValsetUpdated and is used to iterate over the raw logs and unpacked data for EthLogValsetUpdated events raised by the Valset contract.

func (*ValsetEthLogValsetUpdatedIterator) Close

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

func (*ValsetEthLogValsetUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetEthLogValsetUpdatedIterator) 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 ValsetFilterer

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

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

func NewValsetFilterer

func NewValsetFilterer(address common.Address, filterer bind.ContractFilterer) (*ValsetFilterer, error)

NewValsetFilterer creates a new log filterer instance of Valset, bound to a specific deployed contract.

func (*ValsetFilterer) FilterEthLogValidatorAdded

func (_Valset *ValsetFilterer) FilterEthLogValidatorAdded(opts *bind.FilterOpts) (*ValsetEthLogValidatorAddedIterator, error)

FilterEthLogValidatorAdded is a free log retrieval operation binding the contract event 0xfac068c28f4356ccf9adf606e50ebad8b3b0a44915e6cf7627ae28c3416f5d95.

Solidity: event EthLogValidatorAdded(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) FilterEthLogValidatorPowerUpdated

func (_Valset *ValsetFilterer) FilterEthLogValidatorPowerUpdated(opts *bind.FilterOpts) (*ValsetEthLogValidatorPowerUpdatedIterator, error)

FilterEthLogValidatorPowerUpdated is a free log retrieval operation binding the contract event 0xc998ed8ee0bce4bf08f1078680045b0dee1d4051e0ffa493f67e47a4187bb2dc.

Solidity: event EthLogValidatorPowerUpdated(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) FilterEthLogValidatorRemoved

func (_Valset *ValsetFilterer) FilterEthLogValidatorRemoved(opts *bind.FilterOpts) (*ValsetEthLogValidatorRemovedIterator, error)

FilterEthLogValidatorRemoved is a free log retrieval operation binding the contract event 0x123272f4071b21d474981554217c22d548c109443a4222f8e225bd8ae837f891.

Solidity: event EthLogValidatorRemoved(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) FilterEthLogValsetReset

func (_Valset *ValsetFilterer) FilterEthLogValsetReset(opts *bind.FilterOpts) (*ValsetEthLogValsetResetIterator, error)

FilterEthLogValsetReset is a free log retrieval operation binding the contract event 0xc6ac622caa95b6a11c41d9b0f1539d060de8883801e4efe5f2b20af915d6ecaf.

Solidity: event EthLogValsetReset(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) FilterEthLogValsetUpdated

func (_Valset *ValsetFilterer) FilterEthLogValsetUpdated(opts *bind.FilterOpts) (*ValsetEthLogValsetUpdatedIterator, error)

FilterEthLogValsetUpdated is a free log retrieval operation binding the contract event 0xa263e6a7a37f9afb3cb30027a71f0f16aa7936bab718860b78f2e799aaa0e249.

Solidity: event EthLogValsetUpdated(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) ParseEthLogValidatorAdded

func (_Valset *ValsetFilterer) ParseEthLogValidatorAdded(log types.Log) (*ValsetEthLogValidatorAdded, error)

ParseEthLogValidatorAdded is a log parse operation binding the contract event 0xfac068c28f4356ccf9adf606e50ebad8b3b0a44915e6cf7627ae28c3416f5d95.

Solidity: event EthLogValidatorAdded(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) ParseEthLogValidatorPowerUpdated

func (_Valset *ValsetFilterer) ParseEthLogValidatorPowerUpdated(log types.Log) (*ValsetEthLogValidatorPowerUpdated, error)

ParseEthLogValidatorPowerUpdated is a log parse operation binding the contract event 0xc998ed8ee0bce4bf08f1078680045b0dee1d4051e0ffa493f67e47a4187bb2dc.

Solidity: event EthLogValidatorPowerUpdated(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) ParseEthLogValidatorRemoved

func (_Valset *ValsetFilterer) ParseEthLogValidatorRemoved(log types.Log) (*ValsetEthLogValidatorRemoved, error)

ParseEthLogValidatorRemoved is a log parse operation binding the contract event 0x123272f4071b21d474981554217c22d548c109443a4222f8e225bd8ae837f891.

Solidity: event EthLogValidatorRemoved(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) ParseEthLogValsetReset

func (_Valset *ValsetFilterer) ParseEthLogValsetReset(log types.Log) (*ValsetEthLogValsetReset, error)

ParseEthLogValsetReset is a log parse operation binding the contract event 0xc6ac622caa95b6a11c41d9b0f1539d060de8883801e4efe5f2b20af915d6ecaf.

Solidity: event EthLogValsetReset(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) ParseEthLogValsetUpdated

func (_Valset *ValsetFilterer) ParseEthLogValsetUpdated(log types.Log) (*ValsetEthLogValsetUpdated, error)

ParseEthLogValsetUpdated is a log parse operation binding the contract event 0xa263e6a7a37f9afb3cb30027a71f0f16aa7936bab718860b78f2e799aaa0e249.

Solidity: event EthLogValsetUpdated(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) WatchEthLogValidatorAdded

func (_Valset *ValsetFilterer) WatchEthLogValidatorAdded(opts *bind.WatchOpts, sink chan<- *ValsetEthLogValidatorAdded) (event.Subscription, error)

WatchEthLogValidatorAdded is a free log subscription operation binding the contract event 0xfac068c28f4356ccf9adf606e50ebad8b3b0a44915e6cf7627ae28c3416f5d95.

Solidity: event EthLogValidatorAdded(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) WatchEthLogValidatorPowerUpdated

func (_Valset *ValsetFilterer) WatchEthLogValidatorPowerUpdated(opts *bind.WatchOpts, sink chan<- *ValsetEthLogValidatorPowerUpdated) (event.Subscription, error)

WatchEthLogValidatorPowerUpdated is a free log subscription operation binding the contract event 0xc998ed8ee0bce4bf08f1078680045b0dee1d4051e0ffa493f67e47a4187bb2dc.

Solidity: event EthLogValidatorPowerUpdated(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) WatchEthLogValidatorRemoved

func (_Valset *ValsetFilterer) WatchEthLogValidatorRemoved(opts *bind.WatchOpts, sink chan<- *ValsetEthLogValidatorRemoved) (event.Subscription, error)

WatchEthLogValidatorRemoved is a free log subscription operation binding the contract event 0x123272f4071b21d474981554217c22d548c109443a4222f8e225bd8ae837f891.

Solidity: event EthLogValidatorRemoved(address _validator, uint256 _power, uint256 _currentValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) WatchEthLogValsetReset

func (_Valset *ValsetFilterer) WatchEthLogValsetReset(opts *bind.WatchOpts, sink chan<- *ValsetEthLogValsetReset) (event.Subscription, error)

WatchEthLogValsetReset is a free log subscription operation binding the contract event 0xc6ac622caa95b6a11c41d9b0f1539d060de8883801e4efe5f2b20af915d6ecaf.

Solidity: event EthLogValsetReset(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

func (*ValsetFilterer) WatchEthLogValsetUpdated

func (_Valset *ValsetFilterer) WatchEthLogValsetUpdated(opts *bind.WatchOpts, sink chan<- *ValsetEthLogValsetUpdated) (event.Subscription, error)

WatchEthLogValsetUpdated is a free log subscription operation binding the contract event 0xa263e6a7a37f9afb3cb30027a71f0f16aa7936bab718860b78f2e799aaa0e249.

Solidity: event EthLogValsetUpdated(uint256 _newValsetVersion, uint256 _validatorCount, uint256 _totalPower)

type ValsetRaw

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

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

func (*ValsetRaw) Call

func (_Valset *ValsetRaw) 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 (*ValsetRaw) Transact

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

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

func (*ValsetRaw) Transfer

func (_Valset *ValsetRaw) 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 ValsetSession

type ValsetSession struct {
	Contract     *Valset           // 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
}

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

func (*ValsetSession) AddValidator

func (_Valset *ValsetSession) AddValidator(_validatorAddress common.Address, _validatorPower *big.Int) (*types.Transaction, error)

AddValidator is a paid mutator transaction binding the contract method 0xfc6c1f02.

Solidity: function addValidator(address _validatorAddress, uint256 _validatorPower) returns()

func (*ValsetSession) CurrentValsetVersion

func (_Valset *ValsetSession) CurrentValsetVersion() (*big.Int, error)

CurrentValsetVersion is a free data retrieval call binding the contract method 0x8d56c37d.

Solidity: function currentValsetVersion() view returns(uint256)

func (*ValsetSession) GetValidatorPower

func (_Valset *ValsetSession) GetValidatorPower(_validatorAddress common.Address) (*big.Int, error)

GetValidatorPower is a free data retrieval call binding the contract method 0x473691a4.

Solidity: function getValidatorPower(address _validatorAddress) view returns(uint256)

func (*ValsetSession) Initialize

func (_Valset *ValsetSession) Initialize(_bridgeRegistry common.Address, _initValidators []common.Address, _initPowers []*big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _bridgeRegistry, address[] _initValidators, uint256[] _initPowers) returns()

func (*ValsetSession) IsActiveValidator

func (_Valset *ValsetSession) IsActiveValidator(_validatorAddress common.Address) (bool, error)

IsActiveValidator is a free data retrieval call binding the contract method 0x40550a1c.

Solidity: function isActiveValidator(address _validatorAddress) view returns(bool)

func (*ValsetSession) Operator

func (_Valset *ValsetSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ValsetSession) Powers

func (_Valset *ValsetSession) Powers(arg0 [32]byte) (*big.Int, error)

Powers is a free data retrieval call binding the contract method 0xb872c523.

Solidity: function powers(bytes32 ) view returns(uint256)

func (*ValsetSession) Recover

func (_Valset *ValsetSession) Recover(_message [32]byte, _signature []byte) (common.Address, error)

Recover is a free data retrieval call binding the contract method 0x19045a25.

Solidity: function recover(bytes32 _message, bytes _signature) pure returns(address)

func (*ValsetSession) RecoverGas

func (_Valset *ValsetSession) RecoverGas(_valsetVersion *big.Int, _validatorAddress common.Address) (*types.Transaction, error)

RecoverGas is a paid mutator transaction binding the contract method 0xb5672be3.

Solidity: function recoverGas(uint256 _valsetVersion, address _validatorAddress) returns()

func (*ValsetSession) RemoveValidator

func (_Valset *ValsetSession) RemoveValidator(_validatorAddress common.Address) (*types.Transaction, error)

RemoveValidator is a paid mutator transaction binding the contract method 0x40a141ff.

Solidity: function removeValidator(address _validatorAddress) returns()

func (*ValsetSession) TotalPower

func (_Valset *ValsetSession) TotalPower() (*big.Int, error)

TotalPower is a free data retrieval call binding the contract method 0xdb3ad22c.

Solidity: function totalPower() view returns(uint256)

func (*ValsetSession) UpdateValidatorPower

func (_Valset *ValsetSession) UpdateValidatorPower(_validatorAddress common.Address, _newValidatorPower *big.Int) (*types.Transaction, error)

UpdateValidatorPower is a paid mutator transaction binding the contract method 0x2e75293b.

Solidity: function updateValidatorPower(address _validatorAddress, uint256 _newValidatorPower) returns()

func (*ValsetSession) UpdateValset

func (_Valset *ValsetSession) UpdateValset(_validators []common.Address, _powers []*big.Int) (*types.Transaction, error)

UpdateValset is a paid mutator transaction binding the contract method 0x788cf92f.

Solidity: function updateValset(address[] _validators, uint256[] _powers) returns()

func (*ValsetSession) VALSETREVISION

func (_Valset *ValsetSession) VALSETREVISION() (*big.Int, error)

VALSETREVISION is a free data retrieval call binding the contract method 0xee0b296e.

Solidity: function VALSET_REVISION() view returns(uint256)

func (*ValsetSession) ValidatorCount

func (_Valset *ValsetSession) ValidatorCount() (*big.Int, error)

ValidatorCount is a free data retrieval call binding the contract method 0x0f43a677.

Solidity: function validatorCount() view returns(uint256)

func (*ValsetSession) Validators

func (_Valset *ValsetSession) Validators(arg0 [32]byte) (bool, error)

Validators is a free data retrieval call binding the contract method 0x9bdafcb3.

Solidity: function validators(bytes32 ) view returns(bool)

type ValsetTransactor

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

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

func NewValsetTransactor

func NewValsetTransactor(address common.Address, transactor bind.ContractTransactor) (*ValsetTransactor, error)

NewValsetTransactor creates a new write-only instance of Valset, bound to a specific deployed contract.

func (*ValsetTransactor) AddValidator

func (_Valset *ValsetTransactor) AddValidator(opts *bind.TransactOpts, _validatorAddress common.Address, _validatorPower *big.Int) (*types.Transaction, error)

AddValidator is a paid mutator transaction binding the contract method 0xfc6c1f02.

Solidity: function addValidator(address _validatorAddress, uint256 _validatorPower) returns()

func (*ValsetTransactor) Initialize

func (_Valset *ValsetTransactor) Initialize(opts *bind.TransactOpts, _bridgeRegistry common.Address, _initValidators []common.Address, _initPowers []*big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _bridgeRegistry, address[] _initValidators, uint256[] _initPowers) returns()

func (*ValsetTransactor) RecoverGas

func (_Valset *ValsetTransactor) RecoverGas(opts *bind.TransactOpts, _valsetVersion *big.Int, _validatorAddress common.Address) (*types.Transaction, error)

RecoverGas is a paid mutator transaction binding the contract method 0xb5672be3.

Solidity: function recoverGas(uint256 _valsetVersion, address _validatorAddress) returns()

func (*ValsetTransactor) RemoveValidator

func (_Valset *ValsetTransactor) RemoveValidator(opts *bind.TransactOpts, _validatorAddress common.Address) (*types.Transaction, error)

RemoveValidator is a paid mutator transaction binding the contract method 0x40a141ff.

Solidity: function removeValidator(address _validatorAddress) returns()

func (*ValsetTransactor) UpdateValidatorPower

func (_Valset *ValsetTransactor) UpdateValidatorPower(opts *bind.TransactOpts, _validatorAddress common.Address, _newValidatorPower *big.Int) (*types.Transaction, error)

UpdateValidatorPower is a paid mutator transaction binding the contract method 0x2e75293b.

Solidity: function updateValidatorPower(address _validatorAddress, uint256 _newValidatorPower) returns()

func (*ValsetTransactor) UpdateValset

func (_Valset *ValsetTransactor) UpdateValset(opts *bind.TransactOpts, _validators []common.Address, _powers []*big.Int) (*types.Transaction, error)

UpdateValset is a paid mutator transaction binding the contract method 0x788cf92f.

Solidity: function updateValset(address[] _validators, uint256[] _powers) returns()

type ValsetTransactorRaw

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

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

func (*ValsetTransactorRaw) Transact

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

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

func (*ValsetTransactorRaw) Transfer

func (_Valset *ValsetTransactorRaw) 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 ValsetTransactorSession

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

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

func (*ValsetTransactorSession) AddValidator

func (_Valset *ValsetTransactorSession) AddValidator(_validatorAddress common.Address, _validatorPower *big.Int) (*types.Transaction, error)

AddValidator is a paid mutator transaction binding the contract method 0xfc6c1f02.

Solidity: function addValidator(address _validatorAddress, uint256 _validatorPower) returns()

func (*ValsetTransactorSession) Initialize

func (_Valset *ValsetTransactorSession) Initialize(_bridgeRegistry common.Address, _initValidators []common.Address, _initPowers []*big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _bridgeRegistry, address[] _initValidators, uint256[] _initPowers) returns()

func (*ValsetTransactorSession) RecoverGas

func (_Valset *ValsetTransactorSession) RecoverGas(_valsetVersion *big.Int, _validatorAddress common.Address) (*types.Transaction, error)

RecoverGas is a paid mutator transaction binding the contract method 0xb5672be3.

Solidity: function recoverGas(uint256 _valsetVersion, address _validatorAddress) returns()

func (*ValsetTransactorSession) RemoveValidator

func (_Valset *ValsetTransactorSession) RemoveValidator(_validatorAddress common.Address) (*types.Transaction, error)

RemoveValidator is a paid mutator transaction binding the contract method 0x40a141ff.

Solidity: function removeValidator(address _validatorAddress) returns()

func (*ValsetTransactorSession) UpdateValidatorPower

func (_Valset *ValsetTransactorSession) UpdateValidatorPower(_validatorAddress common.Address, _newValidatorPower *big.Int) (*types.Transaction, error)

UpdateValidatorPower is a paid mutator transaction binding the contract method 0x2e75293b.

Solidity: function updateValidatorPower(address _validatorAddress, uint256 _newValidatorPower) returns()

func (*ValsetTransactorSession) UpdateValset

func (_Valset *ValsetTransactorSession) UpdateValset(_validators []common.Address, _powers []*big.Int) (*types.Transaction, error)

UpdateValset is a paid mutator transaction binding the contract method 0x788cf92f.

Solidity: function updateValset(address[] _validators, uint256[] _powers) returns()

Jump to

Keyboard shortcuts

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