Documentation ¶
Index ¶
- Constants
- type BlockReward
- type BlockRewardCaller
- type BlockRewardCallerRaw
- type BlockRewardCallerSession
- type BlockRewardFilterer
- type BlockRewardRaw
- func (_BlockReward *BlockRewardRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BlockReward *BlockRewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
- func (_BlockReward *BlockRewardRaw) Transfer(opts *bind.TransactOpts) (types.Transaction, error)
- type BlockRewardSession
- type BlockRewardTransactor
- type BlockRewardTransactorRaw
- type BlockRewardTransactorSession
- type RewardParams
- type ValidatorSet
- type ValidatorSetCaller
- func (_ValidatorSet *ValidatorSetCaller) EmitInitiateChangeCallable(opts *bind.CallOpts) (bool, error)
- func (_ValidatorSet *ValidatorSetCaller) GetValidators(opts *bind.CallOpts) ([]libcommon.Address, error)
- func (_ValidatorSet *ValidatorSetCaller) ShouldValidatorReport(opts *bind.CallOpts, _reportingValidator libcommon.Address, ...) (bool, error)
- type ValidatorSetCallerRaw
- type ValidatorSetCallerSession
- func (_ValidatorSet *ValidatorSetCallerSession) EmitInitiateChangeCallable() (bool, error)
- func (_ValidatorSet *ValidatorSetCallerSession) GetValidators() ([]libcommon.Address, error)
- func (_ValidatorSet *ValidatorSetCallerSession) ShouldValidatorReport(_reportingValidator libcommon.Address, _maliciousValidator libcommon.Address, ...) (bool, error)
- type ValidatorSetFilterer
- func (_ValidatorSet *ValidatorSetFilterer) FilterInitiateChange(opts *bind.FilterOpts, _parent_hash [][32]byte) (*ValidatorSetInitiateChangeIterator, error)
- func (_ValidatorSet *ValidatorSetFilterer) ParseInitiateChange(log types.Log) (*ValidatorSetInitiateChange, error)
- func (_ValidatorSet *ValidatorSetFilterer) WatchInitiateChange(opts *bind.WatchOpts, sink chan<- *ValidatorSetInitiateChange, ...) (event.Subscription, error)
- type ValidatorSetInitiateChange
- type ValidatorSetInitiateChangeIterator
- type ValidatorSetRaw
- func (_ValidatorSet *ValidatorSetRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ValidatorSet *ValidatorSetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
- func (_ValidatorSet *ValidatorSetRaw) Transfer(opts *bind.TransactOpts) (types.Transaction, error)
- type ValidatorSetSession
- func (_ValidatorSet *ValidatorSetSession) EmitInitiateChange() (types.Transaction, error)
- func (_ValidatorSet *ValidatorSetSession) EmitInitiateChangeCallable() (bool, error)
- func (_ValidatorSet *ValidatorSetSession) FinalizeChange() (types.Transaction, error)
- func (_ValidatorSet *ValidatorSetSession) GetValidators() ([]libcommon.Address, error)
- func (_ValidatorSet *ValidatorSetSession) ShouldValidatorReport(_reportingValidator libcommon.Address, _maliciousValidator libcommon.Address, ...) (bool, error)
- type ValidatorSetTransactor
- type ValidatorSetTransactorRaw
- type ValidatorSetTransactorSession
Constants ¶
const BlockRewardABI = "" /* 314-byte string literal not displayed */
BlockRewardABI is the input ABI used to generate the binding from.
const ValidatorSetABI = "" /* 1190-byte string literal not displayed */
ValidatorSetABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockReward ¶
type BlockReward struct { BlockRewardCaller // Read-only binding to the contract BlockRewardTransactor // Write-only binding to the contract BlockRewardFilterer // Log filterer for contract events }
BlockReward is an auto generated Go binding around an Ethereum contract.
func NewBlockReward ¶
func NewBlockReward(address libcommon.Address, backend bind.ContractBackend) (*BlockReward, error)
NewBlockReward creates a new instance of BlockReward, bound to a specific deployed contract.
type BlockRewardCaller ¶
type BlockRewardCaller struct {
// contains filtered or unexported fields
}
BlockRewardCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBlockRewardCaller ¶
func NewBlockRewardCaller(address libcommon.Address, caller bind.ContractCaller) (*BlockRewardCaller, error)
NewBlockRewardCaller creates a new read-only instance of BlockReward, bound to a specific deployed contract.
type BlockRewardCallerRaw ¶
type BlockRewardCallerRaw struct {
Contract *BlockRewardCaller // Generic read-only contract binding to access the raw methods on
}
BlockRewardCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BlockRewardCallerRaw) Call ¶
func (_BlockReward *BlockRewardCallerRaw) 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 BlockRewardCallerSession ¶
type BlockRewardCallerSession struct { Contract *BlockRewardCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BlockRewardCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type BlockRewardFilterer ¶
type BlockRewardFilterer struct {
// contains filtered or unexported fields
}
BlockRewardFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBlockRewardFilterer ¶
func NewBlockRewardFilterer(address libcommon.Address, filterer bind.ContractFilterer) (*BlockRewardFilterer, error)
NewBlockRewardFilterer creates a new log filterer instance of BlockReward, bound to a specific deployed contract.
type BlockRewardRaw ¶
type BlockRewardRaw struct {
Contract *BlockReward // Generic contract binding to access the raw methods on
}
BlockRewardRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BlockRewardRaw) Call ¶
func (_BlockReward *BlockRewardRaw) 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 (*BlockRewardRaw) Transact ¶
func (_BlockReward *BlockRewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BlockRewardRaw) Transfer ¶
func (_BlockReward *BlockRewardRaw) 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 BlockRewardSession ¶
type BlockRewardSession struct { Contract *BlockReward // 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 }
BlockRewardSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BlockRewardSession) Reward ¶
func (_BlockReward *BlockRewardSession) Reward(benefactors []libcommon.Address, kind []uint16) (types.Transaction, error)
Reward is a paid mutator transaction binding the contract method 0xf91c2898.
Solidity: function reward(address[] benefactors, uint16[] kind) returns(address[], uint256[])
type BlockRewardTransactor ¶
type BlockRewardTransactor struct {
// contains filtered or unexported fields
}
BlockRewardTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBlockRewardTransactor ¶
func NewBlockRewardTransactor(address libcommon.Address, transactor bind.ContractTransactor) (*BlockRewardTransactor, error)
NewBlockRewardTransactor creates a new write-only instance of BlockReward, bound to a specific deployed contract.
func (*BlockRewardTransactor) Reward ¶
func (_BlockReward *BlockRewardTransactor) Reward(opts *bind.TransactOpts, benefactors []libcommon.Address, kind []uint16) (types.Transaction, error)
Reward is a paid mutator transaction binding the contract method 0xf91c2898.
Solidity: function reward(address[] benefactors, uint16[] kind) returns(address[], uint256[])
type BlockRewardTransactorRaw ¶
type BlockRewardTransactorRaw struct {
Contract *BlockRewardTransactor // Generic write-only contract binding to access the raw methods on
}
BlockRewardTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BlockRewardTransactorRaw) Transact ¶
func (_BlockReward *BlockRewardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BlockRewardTransactorRaw) Transfer ¶
func (_BlockReward *BlockRewardTransactorRaw) 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 BlockRewardTransactorSession ¶
type BlockRewardTransactorSession struct { Contract *BlockRewardTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BlockRewardTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BlockRewardTransactorSession) Reward ¶
func (_BlockReward *BlockRewardTransactorSession) Reward(benefactors []libcommon.Address, kind []uint16) (types.Transaction, error)
Reward is a paid mutator transaction binding the contract method 0xf91c2898.
Solidity: function reward(address[] benefactors, uint16[] kind) returns(address[], uint256[])
type RewardParams ¶
RewardParams is an auto generated read-only Go binding of transcaction calldata params
func ParseReward ¶
func ParseReward(calldata []byte) (*RewardParams, error)
Parse Reward method from calldata of a transaction
Solidity: function reward(address[] benefactors, uint16[] kind) returns(address[], uint256[])
type ValidatorSet ¶
type ValidatorSet struct { ValidatorSetCaller // Read-only binding to the contract ValidatorSetTransactor // Write-only binding to the contract ValidatorSetFilterer // Log filterer for contract events }
ValidatorSet is an auto generated Go binding around an Ethereum contract.
func NewValidatorSet ¶
func NewValidatorSet(address libcommon.Address, backend bind.ContractBackend) (*ValidatorSet, error)
NewValidatorSet creates a new instance of ValidatorSet, bound to a specific deployed contract.
type ValidatorSetCaller ¶
type ValidatorSetCaller struct {
// contains filtered or unexported fields
}
ValidatorSetCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewValidatorSetCaller ¶
func NewValidatorSetCaller(address libcommon.Address, caller bind.ContractCaller) (*ValidatorSetCaller, error)
NewValidatorSetCaller creates a new read-only instance of ValidatorSet, bound to a specific deployed contract.
func (*ValidatorSetCaller) EmitInitiateChangeCallable ¶
func (_ValidatorSet *ValidatorSetCaller) EmitInitiateChangeCallable(opts *bind.CallOpts) (bool, error)
EmitInitiateChangeCallable is a free data retrieval call binding the contract method 0x3d3b5458.
Solidity: function emitInitiateChangeCallable() view returns(bool)
func (*ValidatorSetCaller) GetValidators ¶
func (_ValidatorSet *ValidatorSetCaller) GetValidators(opts *bind.CallOpts) ([]libcommon.Address, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() returns(address[] validators)
func (*ValidatorSetCaller) ShouldValidatorReport ¶
func (_ValidatorSet *ValidatorSetCaller) ShouldValidatorReport(opts *bind.CallOpts, _reportingValidator libcommon.Address, _maliciousValidator libcommon.Address, _blockNumber *big.Int) (bool, error)
ShouldValidatorReport is a free data retrieval call binding the contract method 0xcbd2d528.
Solidity: function shouldValidatorReport(address _reportingValidator, address _maliciousValidator, uint256 _blockNumber) view returns(bool)
type ValidatorSetCallerRaw ¶
type ValidatorSetCallerRaw struct {
Contract *ValidatorSetCaller // Generic read-only contract binding to access the raw methods on
}
ValidatorSetCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ValidatorSetCallerRaw) Call ¶
func (_ValidatorSet *ValidatorSetCallerRaw) 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 ValidatorSetCallerSession ¶
type ValidatorSetCallerSession struct { Contract *ValidatorSetCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ValidatorSetCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ValidatorSetCallerSession) EmitInitiateChangeCallable ¶
func (_ValidatorSet *ValidatorSetCallerSession) EmitInitiateChangeCallable() (bool, error)
EmitInitiateChangeCallable is a free data retrieval call binding the contract method 0x3d3b5458.
Solidity: function emitInitiateChangeCallable() view returns(bool)
func (*ValidatorSetCallerSession) GetValidators ¶
func (_ValidatorSet *ValidatorSetCallerSession) GetValidators() ([]libcommon.Address, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() returns(address[] validators)
func (*ValidatorSetCallerSession) ShouldValidatorReport ¶
func (_ValidatorSet *ValidatorSetCallerSession) ShouldValidatorReport(_reportingValidator libcommon.Address, _maliciousValidator libcommon.Address, _blockNumber *big.Int) (bool, error)
ShouldValidatorReport is a free data retrieval call binding the contract method 0xcbd2d528.
Solidity: function shouldValidatorReport(address _reportingValidator, address _maliciousValidator, uint256 _blockNumber) view returns(bool)
type ValidatorSetFilterer ¶
type ValidatorSetFilterer struct {
// contains filtered or unexported fields
}
ValidatorSetFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewValidatorSetFilterer ¶
func NewValidatorSetFilterer(address libcommon.Address, filterer bind.ContractFilterer) (*ValidatorSetFilterer, error)
NewValidatorSetFilterer creates a new log filterer instance of ValidatorSet, bound to a specific deployed contract.
func (*ValidatorSetFilterer) FilterInitiateChange ¶
func (_ValidatorSet *ValidatorSetFilterer) FilterInitiateChange(opts *bind.FilterOpts, _parent_hash [][32]byte) (*ValidatorSetInitiateChangeIterator, error)
FilterInitiateChange is a free log retrieval operation binding the contract event 0x55252fa6eee4741b4e24a74a70e9c11fd2c2281df8d6ea13126ff845f7825c89.
Solidity: event InitiateChange(bytes32 indexed _parent_hash, address[] _new_set)
func (*ValidatorSetFilterer) ParseInitiateChange ¶
func (_ValidatorSet *ValidatorSetFilterer) ParseInitiateChange(log types.Log) (*ValidatorSetInitiateChange, error)
ParseInitiateChange is a log parse operation binding the contract event 0x55252fa6eee4741b4e24a74a70e9c11fd2c2281df8d6ea13126ff845f7825c89.
Solidity: event InitiateChange(bytes32 indexed _parent_hash, address[] _new_set)
func (*ValidatorSetFilterer) WatchInitiateChange ¶
func (_ValidatorSet *ValidatorSetFilterer) WatchInitiateChange(opts *bind.WatchOpts, sink chan<- *ValidatorSetInitiateChange, _parent_hash [][32]byte) (event.Subscription, error)
WatchInitiateChange is a free log subscription operation binding the contract event 0x55252fa6eee4741b4e24a74a70e9c11fd2c2281df8d6ea13126ff845f7825c89.
Solidity: event InitiateChange(bytes32 indexed _parent_hash, address[] _new_set)
type ValidatorSetInitiateChange ¶
type ValidatorSetInitiateChange struct { ParentHash [32]byte NewSet []libcommon.Address Raw types.Log // Blockchain specific contextual infos }
ValidatorSetInitiateChange represents a InitiateChange event raised by the ValidatorSet contract.
type ValidatorSetInitiateChangeIterator ¶
type ValidatorSetInitiateChangeIterator struct { Event *ValidatorSetInitiateChange // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ValidatorSetInitiateChangeIterator is returned from FilterInitiateChange and is used to iterate over the raw logs and unpacked data for InitiateChange events raised by the ValidatorSet contract.
func (*ValidatorSetInitiateChangeIterator) Close ¶
func (it *ValidatorSetInitiateChangeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ValidatorSetInitiateChangeIterator) Error ¶
func (it *ValidatorSetInitiateChangeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ValidatorSetInitiateChangeIterator) Next ¶
func (it *ValidatorSetInitiateChangeIterator) 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 ValidatorSetRaw ¶
type ValidatorSetRaw struct {
Contract *ValidatorSet // Generic contract binding to access the raw methods on
}
ValidatorSetRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ValidatorSetRaw) Call ¶
func (_ValidatorSet *ValidatorSetRaw) 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 (*ValidatorSetRaw) Transact ¶
func (_ValidatorSet *ValidatorSetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ValidatorSetRaw) Transfer ¶
func (_ValidatorSet *ValidatorSetRaw) 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 ValidatorSetSession ¶
type ValidatorSetSession struct { Contract *ValidatorSet // 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 }
ValidatorSetSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ValidatorSetSession) EmitInitiateChange ¶
func (_ValidatorSet *ValidatorSetSession) EmitInitiateChange() (types.Transaction, error)
EmitInitiateChange is a paid mutator transaction binding the contract method 0x93b4e25e.
Solidity: function emitInitiateChange() returns()
func (*ValidatorSetSession) EmitInitiateChangeCallable ¶
func (_ValidatorSet *ValidatorSetSession) EmitInitiateChangeCallable() (bool, error)
EmitInitiateChangeCallable is a free data retrieval call binding the contract method 0x3d3b5458.
Solidity: function emitInitiateChangeCallable() view returns(bool)
func (*ValidatorSetSession) FinalizeChange ¶
func (_ValidatorSet *ValidatorSetSession) FinalizeChange() (types.Transaction, error)
FinalizeChange is a paid mutator transaction binding the contract method 0x75286211.
Solidity: function finalizeChange() returns()
func (*ValidatorSetSession) GetValidators ¶
func (_ValidatorSet *ValidatorSetSession) GetValidators() ([]libcommon.Address, error)
GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
Solidity: function getValidators() returns(address[] validators)
func (*ValidatorSetSession) ShouldValidatorReport ¶
func (_ValidatorSet *ValidatorSetSession) ShouldValidatorReport(_reportingValidator libcommon.Address, _maliciousValidator libcommon.Address, _blockNumber *big.Int) (bool, error)
ShouldValidatorReport is a free data retrieval call binding the contract method 0xcbd2d528.
Solidity: function shouldValidatorReport(address _reportingValidator, address _maliciousValidator, uint256 _blockNumber) view returns(bool)
type ValidatorSetTransactor ¶
type ValidatorSetTransactor struct {
// contains filtered or unexported fields
}
ValidatorSetTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewValidatorSetTransactor ¶
func NewValidatorSetTransactor(address libcommon.Address, transactor bind.ContractTransactor) (*ValidatorSetTransactor, error)
NewValidatorSetTransactor creates a new write-only instance of ValidatorSet, bound to a specific deployed contract.
func (*ValidatorSetTransactor) EmitInitiateChange ¶
func (_ValidatorSet *ValidatorSetTransactor) EmitInitiateChange(opts *bind.TransactOpts) (types.Transaction, error)
EmitInitiateChange is a paid mutator transaction binding the contract method 0x93b4e25e.
Solidity: function emitInitiateChange() returns()
func (*ValidatorSetTransactor) FinalizeChange ¶
func (_ValidatorSet *ValidatorSetTransactor) FinalizeChange(opts *bind.TransactOpts) (types.Transaction, error)
FinalizeChange is a paid mutator transaction binding the contract method 0x75286211.
Solidity: function finalizeChange() returns()
type ValidatorSetTransactorRaw ¶
type ValidatorSetTransactorRaw struct {
Contract *ValidatorSetTransactor // Generic write-only contract binding to access the raw methods on
}
ValidatorSetTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ValidatorSetTransactorRaw) Transact ¶
func (_ValidatorSet *ValidatorSetTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ValidatorSetTransactorRaw) Transfer ¶
func (_ValidatorSet *ValidatorSetTransactorRaw) 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 ValidatorSetTransactorSession ¶
type ValidatorSetTransactorSession struct { Contract *ValidatorSetTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ValidatorSetTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ValidatorSetTransactorSession) EmitInitiateChange ¶
func (_ValidatorSet *ValidatorSetTransactorSession) EmitInitiateChange() (types.Transaction, error)
EmitInitiateChange is a paid mutator transaction binding the contract method 0x93b4e25e.
Solidity: function emitInitiateChange() returns()
func (*ValidatorSetTransactorSession) FinalizeChange ¶
func (_ValidatorSet *ValidatorSetTransactorSession) FinalizeChange() (types.Transaction, error)
FinalizeChange is a paid mutator transaction binding the contract method 0x75286211.
Solidity: function finalizeChange() returns()