Valset

package
v0.0.0-...-1ebabd0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

Variables

View Source
var ValsetBin = "" /* 15192-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, _operator common.Address, _initValidators []common.Address, _initPowers []*big.Int) (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() constant 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) constant 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) constant 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() constant 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 ) constant 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) constant 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() constant 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() constant 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 ) constant 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() constant 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) constant 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) constant 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() constant 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 ) constant 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) constant 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() constant 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() constant 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 ) constant returns(bool)

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) FilterLogValidatorAdded

func (_Valset *ValsetFilterer) FilterLogValidatorAdded(opts *bind.FilterOpts) (*ValsetLogValidatorAddedIterator, error)

FilterLogValidatorAdded is a free log retrieval operation binding the contract event 0x1a396bcf647502e902dce665d58a0c1b25f982f193ab9a1d0f1500d8d927bf2a.

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

func (*ValsetFilterer) FilterLogValidatorPowerUpdated

func (_Valset *ValsetFilterer) FilterLogValidatorPowerUpdated(opts *bind.FilterOpts) (*ValsetLogValidatorPowerUpdatedIterator, error)

FilterLogValidatorPowerUpdated is a free log retrieval operation binding the contract event 0x335940ce4119f8aae891d73dba74510a3d51f6210134d058237f26e6a31d5340.

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

func (*ValsetFilterer) FilterLogValidatorRemoved

func (_Valset *ValsetFilterer) FilterLogValidatorRemoved(opts *bind.FilterOpts) (*ValsetLogValidatorRemovedIterator, error)

FilterLogValidatorRemoved is a free log retrieval operation binding the contract event 0x1241fb43a101ff98ab819a1882097d4ccada51ba60f326c1981cc48840f55b8c.

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

func (*ValsetFilterer) FilterLogValsetReset

func (_Valset *ValsetFilterer) FilterLogValsetReset(opts *bind.FilterOpts) (*ValsetLogValsetResetIterator, error)

FilterLogValsetReset is a free log retrieval operation binding the contract event 0xd870653e19f161500290fd0c4ca41bf5cf2bcb1ba66448f41c66c512dabd65f2.

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

func (*ValsetFilterer) FilterLogValsetUpdated

func (_Valset *ValsetFilterer) FilterLogValsetUpdated(opts *bind.FilterOpts) (*ValsetLogValsetUpdatedIterator, error)

FilterLogValsetUpdated is a free log retrieval operation binding the contract event 0x3a7ef0da3179668af8114719645585b5a37092ef2d66f187dcf63d83a221eaa6.

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

func (*ValsetFilterer) ParseLogValidatorAdded

func (_Valset *ValsetFilterer) ParseLogValidatorAdded(log types.Log) (*ValsetLogValidatorAdded, error)

ParseLogValidatorAdded is a log parse operation binding the contract event 0x1a396bcf647502e902dce665d58a0c1b25f982f193ab9a1d0f1500d8d927bf2a.

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

func (*ValsetFilterer) ParseLogValidatorPowerUpdated

func (_Valset *ValsetFilterer) ParseLogValidatorPowerUpdated(log types.Log) (*ValsetLogValidatorPowerUpdated, error)

ParseLogValidatorPowerUpdated is a log parse operation binding the contract event 0x335940ce4119f8aae891d73dba74510a3d51f6210134d058237f26e6a31d5340.

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

func (*ValsetFilterer) ParseLogValidatorRemoved

func (_Valset *ValsetFilterer) ParseLogValidatorRemoved(log types.Log) (*ValsetLogValidatorRemoved, error)

ParseLogValidatorRemoved is a log parse operation binding the contract event 0x1241fb43a101ff98ab819a1882097d4ccada51ba60f326c1981cc48840f55b8c.

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

func (*ValsetFilterer) ParseLogValsetReset

func (_Valset *ValsetFilterer) ParseLogValsetReset(log types.Log) (*ValsetLogValsetReset, error)

ParseLogValsetReset is a log parse operation binding the contract event 0xd870653e19f161500290fd0c4ca41bf5cf2bcb1ba66448f41c66c512dabd65f2.

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

func (*ValsetFilterer) ParseLogValsetUpdated

func (_Valset *ValsetFilterer) ParseLogValsetUpdated(log types.Log) (*ValsetLogValsetUpdated, error)

ParseLogValsetUpdated is a log parse operation binding the contract event 0x3a7ef0da3179668af8114719645585b5a37092ef2d66f187dcf63d83a221eaa6.

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

func (*ValsetFilterer) WatchLogValidatorAdded

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

WatchLogValidatorAdded is a free log subscription operation binding the contract event 0x1a396bcf647502e902dce665d58a0c1b25f982f193ab9a1d0f1500d8d927bf2a.

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

func (*ValsetFilterer) WatchLogValidatorPowerUpdated

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

WatchLogValidatorPowerUpdated is a free log subscription operation binding the contract event 0x335940ce4119f8aae891d73dba74510a3d51f6210134d058237f26e6a31d5340.

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

func (*ValsetFilterer) WatchLogValidatorRemoved

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

WatchLogValidatorRemoved is a free log subscription operation binding the contract event 0x1241fb43a101ff98ab819a1882097d4ccada51ba60f326c1981cc48840f55b8c.

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

func (*ValsetFilterer) WatchLogValsetReset

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

WatchLogValsetReset is a free log subscription operation binding the contract event 0xd870653e19f161500290fd0c4ca41bf5cf2bcb1ba66448f41c66c512dabd65f2.

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

func (*ValsetFilterer) WatchLogValsetUpdated

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

WatchLogValsetUpdated is a free log subscription operation binding the contract event 0x3a7ef0da3179668af8114719645585b5a37092ef2d66f187dcf63d83a221eaa6.

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

type ValsetLogValidatorAdded

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

ValsetLogValidatorAdded represents a LogValidatorAdded event raised by the Valset contract.

type ValsetLogValidatorAddedIterator

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

ValsetLogValidatorAddedIterator is returned from FilterLogValidatorAdded and is used to iterate over the raw logs and unpacked data for LogValidatorAdded events raised by the Valset contract.

func (*ValsetLogValidatorAddedIterator) Close

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

func (*ValsetLogValidatorAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetLogValidatorAddedIterator) 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 ValsetLogValidatorPowerUpdated

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

ValsetLogValidatorPowerUpdated represents a LogValidatorPowerUpdated event raised by the Valset contract.

type ValsetLogValidatorPowerUpdatedIterator

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

ValsetLogValidatorPowerUpdatedIterator is returned from FilterLogValidatorPowerUpdated and is used to iterate over the raw logs and unpacked data for LogValidatorPowerUpdated events raised by the Valset contract.

func (*ValsetLogValidatorPowerUpdatedIterator) Close

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

func (*ValsetLogValidatorPowerUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetLogValidatorPowerUpdatedIterator) 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 ValsetLogValidatorRemoved

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

ValsetLogValidatorRemoved represents a LogValidatorRemoved event raised by the Valset contract.

type ValsetLogValidatorRemovedIterator

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

ValsetLogValidatorRemovedIterator is returned from FilterLogValidatorRemoved and is used to iterate over the raw logs and unpacked data for LogValidatorRemoved events raised by the Valset contract.

func (*ValsetLogValidatorRemovedIterator) Close

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

func (*ValsetLogValidatorRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetLogValidatorRemovedIterator) 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 ValsetLogValsetReset

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

ValsetLogValsetReset represents a LogValsetReset event raised by the Valset contract.

type ValsetLogValsetResetIterator

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

ValsetLogValsetResetIterator is returned from FilterLogValsetReset and is used to iterate over the raw logs and unpacked data for LogValsetReset events raised by the Valset contract.

func (*ValsetLogValsetResetIterator) Close

func (it *ValsetLogValsetResetIterator) Close() error

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

func (*ValsetLogValsetResetIterator) Error

func (it *ValsetLogValsetResetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetLogValsetResetIterator) 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 ValsetLogValsetUpdated

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

ValsetLogValsetUpdated represents a LogValsetUpdated event raised by the Valset contract.

type ValsetLogValsetUpdatedIterator

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

ValsetLogValsetUpdatedIterator is returned from FilterLogValsetUpdated and is used to iterate over the raw logs and unpacked data for LogValsetUpdated events raised by the Valset contract.

func (*ValsetLogValsetUpdatedIterator) Close

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

func (*ValsetLogValsetUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValsetLogValsetUpdatedIterator) 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 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() constant 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) constant returns(uint256)

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) constant 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() constant 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 ) constant 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) constant 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() constant 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) ValidatorCount

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

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

Solidity: function validatorCount() constant 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 ) constant 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) 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) 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