validatorset

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidatorsetABI = ValidatorsetMetaData.ABI

ValidatorsetABI is the input ABI used to generate the binding from. Deprecated: Use ValidatorsetMetaData.ABI instead.

View Source
var ValidatorsetMetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"span\",\"type\":\"uint256\"}],\"name\":\"getSpan\",\"outputs\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"startBlock\",\"type\":\"uint256\"},{\"name\":\"endBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vote\",\"type\":\"bytes\"},{\"name\":\"sigs\",\"type\":\"bytes\"},{\"name\":\"txBytes\",\"type\":\"bytes\"},{\"name\":\"proof\",\"type\":\"bytes\"}],\"name\":\"commitSpan\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"currentSpanNumber\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNextSpan\",\"outputs\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"startBlock\",\"type\":\"uint256\"},{\"name\":\"endBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getInitialValidators\",\"outputs\":[{\"name\":\"\",\"type\":\"address[]\"},{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentSpan\",\"outputs\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"startBlock\",\"type\":\"uint256\"},{\"name\":\"endBlock\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getValidators\",\"outputs\":[{\"name\":\"\",\"type\":\"address[]\"},{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vote\",\"type\":\"bytes\"},{\"name\":\"sigs\",\"type\":\"bytes\"},{\"name\":\"txBytes\",\"type\":\"bytes\"},{\"name\":\"proof\",\"type\":\"bytes\"}],\"name\":\"validateValidatorSet\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ValidatorsetMetaData contains all meta data concerning the Validatorset contract.

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