Documentation ¶
Index ¶
- Constants
- type Consensus
- type ConsensusCaller
- type ConsensusCallerRaw
- type ConsensusCallerSession
- type ConsensusFilterer
- type ConsensusRaw
- func (_Consensus *ConsensusRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Consensus *ConsensusRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)
- type ConsensusSession
- func (_Consensus *ConsensusSession) AddObserver(nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusSession) AddSealer(nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusSession) Remove(nodeID string) (*types.Transaction, *types.Receipt, error)
- type ConsensusTransactor
- func (_Consensus *ConsensusTransactor) AddObserver(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusTransactor) AddSealer(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusTransactor) Remove(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
- type ConsensusTransactorRaw
- type ConsensusTransactorSession
- func (_Consensus *ConsensusTransactorSession) AddObserver(nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusTransactorSession) AddSealer(nodeID string) (*types.Transaction, *types.Receipt, error)
- func (_Consensus *ConsensusTransactorSession) Remove(nodeID string) (*types.Transaction, *types.Receipt, error)
- type Service
Constants ¶
const ConsensusABI = "" /* 672-byte string literal not displayed */
ConsensusABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consensus ¶
type Consensus struct { ConsensusCaller // Read-only binding to the contract ConsensusTransactor // Write-only binding to the contract ConsensusFilterer // Log filterer for contract events }
Consensus is an auto generated Go binding around a Solidity contract.
func NewConsensus ¶
NewConsensus creates a new instance of Consensus, bound to a specific deployed contract.
type ConsensusCaller ¶
type ConsensusCaller struct {
// contains filtered or unexported fields
}
ConsensusCaller is an auto generated read-only Go binding around a Solidity contract.
func NewConsensusCaller ¶
func NewConsensusCaller(address common.Address, caller bind.ContractCaller) (*ConsensusCaller, error)
NewConsensusCaller creates a new read-only instance of Consensus, bound to a specific deployed contract.
type ConsensusCallerRaw ¶
type ConsensusCallerRaw struct {
Contract *ConsensusCaller // Generic read-only contract binding to access the raw methods on
}
ConsensusCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.
func (*ConsensusCallerRaw) Call ¶
func (_Consensus *ConsensusCallerRaw) 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 ConsensusCallerSession ¶
type ConsensusCallerSession struct { Contract *ConsensusCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ConsensusCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.
type ConsensusFilterer ¶
type ConsensusFilterer struct {
// contains filtered or unexported fields
}
ConsensusFilterer is an auto generated log filtering Go binding around a Solidity contract events.
func NewConsensusFilterer ¶
func NewConsensusFilterer(address common.Address, filterer bind.ContractFilterer) (*ConsensusFilterer, error)
NewConsensusFilterer creates a new log filterer instance of Consensus, bound to a specific deployed contract.
type ConsensusRaw ¶
type ConsensusRaw struct {
Contract *Consensus // Generic contract binding to access the raw methods on
}
ConsensusRaw is an auto generated low-level Go binding around a Solidity contract.
func (*ConsensusRaw) Call ¶
func (_Consensus *ConsensusRaw) 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 (*ConsensusRaw) Transact ¶
func (_Consensus *ConsensusRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsensusRaw) Transfer ¶
func (_Consensus *ConsensusRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ConsensusSession ¶
type ConsensusSession struct { Contract *Consensus // 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 }
ConsensusSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.
func (*ConsensusSession) AddObserver ¶
func (_Consensus *ConsensusSession) AddObserver(nodeID string) (*types.Transaction, *types.Receipt, error)
AddObserver is a paid mutator transaction binding the contract method 0x2800efc0.
Solidity: function addObserver(string nodeID) returns(int256)
func (*ConsensusSession) AddSealer ¶
func (_Consensus *ConsensusSession) AddSealer(nodeID string) (*types.Transaction, *types.Receipt, error)
AddSealer is a paid mutator transaction binding the contract method 0x89152d1f.
Solidity: function addSealer(string nodeID) returns(int256)
func (*ConsensusSession) Remove ¶
func (_Consensus *ConsensusSession) Remove(nodeID string) (*types.Transaction, *types.Receipt, error)
Remove is a paid mutator transaction binding the contract method 0x80599e4b.
Solidity: function remove(string nodeID) returns(int256)
type ConsensusTransactor ¶
type ConsensusTransactor struct {
// contains filtered or unexported fields
}
ConsensusTransactor is an auto generated write-only Go binding around a Solidity contract.
func NewConsensusTransactor ¶
func NewConsensusTransactor(address common.Address, transactor bind.ContractTransactor) (*ConsensusTransactor, error)
NewConsensusTransactor creates a new write-only instance of Consensus, bound to a specific deployed contract.
func (*ConsensusTransactor) AddObserver ¶
func (_Consensus *ConsensusTransactor) AddObserver(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
AddObserver is a paid mutator transaction binding the contract method 0x2800efc0.
Solidity: function addObserver(string nodeID) returns(int256)
func (*ConsensusTransactor) AddSealer ¶
func (_Consensus *ConsensusTransactor) AddSealer(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
AddSealer is a paid mutator transaction binding the contract method 0x89152d1f.
Solidity: function addSealer(string nodeID) returns(int256)
func (*ConsensusTransactor) Remove ¶
func (_Consensus *ConsensusTransactor) Remove(opts *bind.TransactOpts, nodeID string) (*types.Transaction, *types.Receipt, error)
Remove is a paid mutator transaction binding the contract method 0x80599e4b.
Solidity: function remove(string nodeID) returns(int256)
type ConsensusTransactorRaw ¶
type ConsensusTransactorRaw struct {
Contract *ConsensusTransactor // Generic write-only contract binding to access the raw methods on
}
ConsensusTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.
func (*ConsensusTransactorRaw) Transact ¶
func (_Consensus *ConsensusTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConsensusTransactorRaw) Transfer ¶
func (_Consensus *ConsensusTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ConsensusTransactorSession ¶
type ConsensusTransactorSession struct { Contract *ConsensusTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ConsensusTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.
func (*ConsensusTransactorSession) AddObserver ¶
func (_Consensus *ConsensusTransactorSession) AddObserver(nodeID string) (*types.Transaction, *types.Receipt, error)
AddObserver is a paid mutator transaction binding the contract method 0x2800efc0.
Solidity: function addObserver(string nodeID) returns(int256)
func (*ConsensusTransactorSession) AddSealer ¶
func (_Consensus *ConsensusTransactorSession) AddSealer(nodeID string) (*types.Transaction, *types.Receipt, error)
AddSealer is a paid mutator transaction binding the contract method 0x89152d1f.
Solidity: function addSealer(string nodeID) returns(int256)
func (*ConsensusTransactorSession) Remove ¶
func (_Consensus *ConsensusTransactorSession) Remove(nodeID string) (*types.Transaction, *types.Receipt, error)
Remove is a paid mutator transaction binding the contract method 0x80599e4b.
Solidity: function remove(string nodeID) returns(int256)
type Service ¶ added in v0.10.0
type Service struct {
// contains filtered or unexported fields
}
Service is a precompile contract service.
func NewConsensusService ¶
NewConsensusService returns ptr of ConsensusService
func (*Service) AddObserver ¶ added in v0.10.0
AddObserver add a new observe node according to the node ID