validatorset

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ValidatorsetABI = "" /* 2133-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 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 common.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 common.Address, caller bind.ContractCaller) (*ValidatorsetCaller, error)

NewValidatorsetCaller creates a new read-only instance of Validatorset, bound to a specific deployed contract.

func (*ValidatorsetCaller) CurrentSpanNumber

func (_Validatorset *ValidatorsetCaller) CurrentSpanNumber(opts *bind.CallOpts) (*big.Int, error)

CurrentSpanNumber is a free data retrieval call binding the contract method 0x4dbc959f.

Solidity: function currentSpanNumber() view returns(uint256)

func (*ValidatorsetCaller) GetCurrentSpan

func (_Validatorset *ValidatorsetCaller) GetCurrentSpan(opts *bind.CallOpts) (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetCurrentSpan is a free data retrieval call binding the contract method 0xaf26aa96.

Solidity: function getCurrentSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCaller) GetInitialValidators

func (_Validatorset *ValidatorsetCaller) GetInitialValidators(opts *bind.CallOpts) ([]common.Address, []*big.Int, error)

GetInitialValidators is a free data retrieval call binding the contract method 0x65b3a1e2.

Solidity: function getInitialValidators() view returns(address[], uint256[])

func (*ValidatorsetCaller) GetNextSpan

func (_Validatorset *ValidatorsetCaller) GetNextSpan(opts *bind.CallOpts) (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetNextSpan is a free data retrieval call binding the contract method 0x60c8614d.

Solidity: function getNextSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCaller) GetSpan

func (_Validatorset *ValidatorsetCaller) GetSpan(opts *bind.CallOpts, span *big.Int) (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetSpan is a free data retrieval call binding the contract method 0x047a6c5b.

Solidity: function getSpan(uint256 span) view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCaller) GetValidators

func (_Validatorset *ValidatorsetCaller) GetValidators(opts *bind.CallOpts) ([]common.Address, []*big.Int, error)

GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.

Solidity: function getValidators() view returns(address[], uint256[])

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

func (_Validatorset *ValidatorsetCallerSession) CurrentSpanNumber() (*big.Int, error)

CurrentSpanNumber is a free data retrieval call binding the contract method 0x4dbc959f.

Solidity: function currentSpanNumber() view returns(uint256)

func (*ValidatorsetCallerSession) GetCurrentSpan

func (_Validatorset *ValidatorsetCallerSession) GetCurrentSpan() (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetCurrentSpan is a free data retrieval call binding the contract method 0xaf26aa96.

Solidity: function getCurrentSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCallerSession) GetInitialValidators

func (_Validatorset *ValidatorsetCallerSession) GetInitialValidators() ([]common.Address, []*big.Int, error)

GetInitialValidators is a free data retrieval call binding the contract method 0x65b3a1e2.

Solidity: function getInitialValidators() view returns(address[], uint256[])

func (*ValidatorsetCallerSession) GetNextSpan

func (_Validatorset *ValidatorsetCallerSession) GetNextSpan() (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetNextSpan is a free data retrieval call binding the contract method 0x60c8614d.

Solidity: function getNextSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCallerSession) GetSpan

func (_Validatorset *ValidatorsetCallerSession) GetSpan(span *big.Int) (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetSpan is a free data retrieval call binding the contract method 0x047a6c5b.

Solidity: function getSpan(uint256 span) view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetCallerSession) GetValidators

func (_Validatorset *ValidatorsetCallerSession) GetValidators() ([]common.Address, []*big.Int, error)

GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.

Solidity: function getValidators() view returns(address[], uint256[])

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 common.Address, filterer bind.ContractFilterer) (*ValidatorsetFilterer, error)

NewValidatorsetFilterer creates a new log filterer instance of Validatorset, bound to a specific deployed contract.

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

func (_Validatorset *ValidatorsetSession) CommitSpan(vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

CommitSpan is a paid mutator transaction binding the contract method 0x1fa60ced.

Solidity: function commitSpan(bytes vote, bytes sigs, bytes txBytes, bytes proof) returns()

func (*ValidatorsetSession) CurrentSpanNumber

func (_Validatorset *ValidatorsetSession) CurrentSpanNumber() (*big.Int, error)

CurrentSpanNumber is a free data retrieval call binding the contract method 0x4dbc959f.

Solidity: function currentSpanNumber() view returns(uint256)

func (*ValidatorsetSession) GetCurrentSpan

func (_Validatorset *ValidatorsetSession) GetCurrentSpan() (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetCurrentSpan is a free data retrieval call binding the contract method 0xaf26aa96.

Solidity: function getCurrentSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetSession) GetInitialValidators

func (_Validatorset *ValidatorsetSession) GetInitialValidators() ([]common.Address, []*big.Int, error)

GetInitialValidators is a free data retrieval call binding the contract method 0x65b3a1e2.

Solidity: function getInitialValidators() view returns(address[], uint256[])

func (*ValidatorsetSession) GetNextSpan

func (_Validatorset *ValidatorsetSession) GetNextSpan() (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetNextSpan is a free data retrieval call binding the contract method 0x60c8614d.

Solidity: function getNextSpan() view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetSession) GetSpan

func (_Validatorset *ValidatorsetSession) GetSpan(span *big.Int) (struct {
	Number     *big.Int
	StartBlock *big.Int
	EndBlock   *big.Int
}, error)

GetSpan is a free data retrieval call binding the contract method 0x047a6c5b.

Solidity: function getSpan(uint256 span) view returns(uint256 number, uint256 startBlock, uint256 endBlock)

func (*ValidatorsetSession) GetValidators

func (_Validatorset *ValidatorsetSession) GetValidators() ([]common.Address, []*big.Int, error)

GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.

Solidity: function getValidators() view returns(address[], uint256[])

func (*ValidatorsetSession) ValidateValidatorSet

func (_Validatorset *ValidatorsetSession) ValidateValidatorSet(vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

ValidateValidatorSet is a paid mutator transaction binding the contract method 0xd0504f89.

Solidity: function validateValidatorSet(bytes vote, bytes sigs, bytes txBytes, bytes proof) returns()

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 common.Address, transactor bind.ContractTransactor) (*ValidatorsetTransactor, error)

NewValidatorsetTransactor creates a new write-only instance of Validatorset, bound to a specific deployed contract.

func (*ValidatorsetTransactor) CommitSpan

func (_Validatorset *ValidatorsetTransactor) CommitSpan(opts *bind.TransactOpts, vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

CommitSpan is a paid mutator transaction binding the contract method 0x1fa60ced.

Solidity: function commitSpan(bytes vote, bytes sigs, bytes txBytes, bytes proof) returns()

func (*ValidatorsetTransactor) ValidateValidatorSet

func (_Validatorset *ValidatorsetTransactor) ValidateValidatorSet(opts *bind.TransactOpts, vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

ValidateValidatorSet is a paid mutator transaction binding the contract method 0xd0504f89.

Solidity: function validateValidatorSet(bytes vote, bytes sigs, bytes txBytes, bytes proof) 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) CommitSpan

func (_Validatorset *ValidatorsetTransactorSession) CommitSpan(vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

CommitSpan is a paid mutator transaction binding the contract method 0x1fa60ced.

Solidity: function commitSpan(bytes vote, bytes sigs, bytes txBytes, bytes proof) returns()

func (*ValidatorsetTransactorSession) ValidateValidatorSet

func (_Validatorset *ValidatorsetTransactorSession) ValidateValidatorSet(vote []byte, sigs []byte, txBytes []byte, proof []byte) (*types.Transaction, error)

ValidateValidatorSet is a paid mutator transaction binding the contract method 0xd0504f89.

Solidity: function validateValidatorSet(bytes vote, bytes sigs, bytes txBytes, bytes proof) returns()

Jump to

Keyboard shortcuts

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