consensus

package
v0.0.0-...-5663add Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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 an Ethereum contract.

func NewConsensus

func NewConsensus(address common.Address, backend bind.ContractBackend) (*Consensus, error)

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 an Ethereum 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 an Ethereum 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 an Ethereum 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 an Ethereum 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 an Ethereum 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.RawTransaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ConsensusRaw) Transfer

func (_Consensus *ConsensusRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ConsensusService

type ConsensusService struct {
	// contains filtered or unexported fields
}

ConsensusService is a precompile contract service.

func NewConsensusService

func NewConsensusService(client *client.Client, privateKey *ecdsa.PrivateKey) (*ConsensusService, error)

NewConsensusService returns ptr of ConsensusService

func (*ConsensusService) AddObserver

func (service *ConsensusService) AddObserver(nodeID string) (*types.RawTransaction, error)

AddObserver add a new observe node according to the node ID

func (*ConsensusService) AddSealer

func (service *ConsensusService) AddSealer(nodeID string) (*types.RawTransaction, error)

AddSealer add a new sealer node according to the node ID

func (*ConsensusService) RemoveNode

func (service *ConsensusService) RemoveNode(nodeID string) (*types.RawTransaction, error)

RemoveNode remove a sealer node according to the node ID

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 an Ethereum contract, with pre-set call and transact options.

func (*ConsensusSession) AddObserver

func (_Consensus *ConsensusSession) AddObserver(nodeID string) (*types.RawTransaction, 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.RawTransaction, 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.RawTransaction, 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 an Ethereum 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.RawTransaction, 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.RawTransaction, 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.RawTransaction, 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 an Ethereum contract.

func (*ConsensusTransactorRaw) Transact

func (_Consensus *ConsensusTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.RawTransaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ConsensusTransactorRaw) Transfer

func (_Consensus *ConsensusTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, 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 an Ethereum contract, with pre-set transact options.

func (*ConsensusTransactorSession) AddObserver

func (_Consensus *ConsensusTransactorSession) AddObserver(nodeID string) (*types.RawTransaction, 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.RawTransaction, 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.RawTransaction, error)

Remove is a paid mutator transaction binding the contract method 0x80599e4b.

Solidity: function remove(string nodeID) returns(int256)

Jump to

Keyboard shortcuts

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