registry

package
v0.69.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

README

Mailserver registry

The code for the contract interface used is at https://github.com/status-im/network-incentivisation/blob/master/contracts/Nodes.sol and has been generated with abigen.

abigen --sol contracts/Nodes.sol --pkg registry

Documentation

Index

Constants

View Source
const NodesABI = "" /* 1076-byte string literal not displayed */

NodesABI is the input ABI used to generate the binding from.

View Source
const NodesBin = `` /* 3806-byte string literal not displayed */

NodesBin is the compiled bytecode used for deploying new contracts.

View Source
const NodesV2ABI = "" /* 4109-byte string literal not displayed */

NodesV2ABI is the input ABI used to generate the binding from.

View Source
const NodesV2Bin = `` /* 15952-byte string literal not displayed */

NodesV2Bin is the compiled bytecode used for deploying new contracts.

View Source
const RegistryABI = "" /* 1223-byte string literal not displayed */

RegistryABI is the input ABI used to generate the binding from.

View Source
const RegistryBin = `` /* 2760-byte string literal not displayed */

RegistryBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nodes added in v0.35.0

type Nodes struct {
	NodesCaller     // Read-only binding to the contract
	NodesTransactor // Write-only binding to the contract
	NodesFilterer   // Log filterer for contract events
}

Nodes is an auto generated Go binding around an Ethereum contract.

func DeployNodes added in v0.35.0

func DeployNodes(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Nodes, error)

DeployNodes deploys a new Ethereum contract, binding an instance of Nodes to it.

func NewNodes added in v0.35.0

func NewNodes(address common.Address, backend bind.ContractBackend) (*Nodes, error)

NewNodes creates a new instance of Nodes, bound to a specific deployed contract.

type NodesCaller added in v0.35.0

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

NodesCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewNodesCaller added in v0.35.0

func NewNodesCaller(address common.Address, caller bind.ContractCaller) (*NodesCaller, error)

NewNodesCaller creates a new read-only instance of Nodes, bound to a specific deployed contract.

func (*NodesCaller) NodeCount added in v0.35.0

func (_Nodes *NodesCaller) NodeCount(opts *bind.CallOpts) (*big.Int, error)

NodeCount is a free data retrieval call binding the contract method 0x6da49b83.

Solidity: function nodeCount() constant returns(uint256)

func (*NodesCaller) Nodes added in v0.35.0

func (_Nodes *NodesCaller) Nodes(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Nodes is a free data retrieval call binding the contract method 0x1c53c280.

Solidity: function nodes(uint256 ) constant returns(string)

type NodesCallerRaw added in v0.35.0

type NodesCallerRaw struct {
	Contract *NodesCaller // Generic read-only contract binding to access the raw methods on
}

NodesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NodesCallerRaw) Call added in v0.35.0

func (_Nodes *NodesCallerRaw) 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 NodesCallerSession added in v0.35.0

type NodesCallerSession struct {
	Contract *NodesCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

NodesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*NodesCallerSession) NodeCount added in v0.35.0

func (_Nodes *NodesCallerSession) NodeCount() (*big.Int, error)

NodeCount is a free data retrieval call binding the contract method 0x6da49b83.

Solidity: function nodeCount() constant returns(uint256)

func (*NodesCallerSession) Nodes added in v0.35.0

func (_Nodes *NodesCallerSession) Nodes(arg0 *big.Int) (string, error)

Nodes is a free data retrieval call binding the contract method 0x1c53c280.

Solidity: function nodes(uint256 ) constant returns(string)

type NodesFilterer added in v0.35.0

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

NodesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNodesFilterer added in v0.35.0

func NewNodesFilterer(address common.Address, filterer bind.ContractFilterer) (*NodesFilterer, error)

NewNodesFilterer creates a new log filterer instance of Nodes, bound to a specific deployed contract.

type NodesRaw added in v0.35.0

type NodesRaw struct {
	Contract *Nodes // Generic contract binding to access the raw methods on
}

NodesRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*NodesRaw) Call added in v0.35.0

func (_Nodes *NodesRaw) 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 (*NodesRaw) Transact added in v0.35.0

func (_Nodes *NodesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*NodesRaw) Transfer added in v0.35.0

func (_Nodes *NodesRaw) 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 NodesSession added in v0.35.0

type NodesSession struct {
	Contract     *Nodes            // 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
}

NodesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*NodesSession) AddNode added in v0.35.0

func (_Nodes *NodesSession) AddNode(_node string) (*types.Transaction, error)

AddNode is a paid mutator transaction binding the contract method 0x8994dd8e.

Solidity: function addNode(string _node) returns()

func (*NodesSession) DeleteAll added in v0.35.0

func (_Nodes *NodesSession) DeleteAll() (*types.Transaction, error)

DeleteAll is a paid mutator transaction binding the contract method 0x4c164407.

Solidity: function deleteAll() returns()

func (*NodesSession) DeleteNode added in v0.35.0

func (_Nodes *NodesSession) DeleteNode(_node string) (*types.Transaction, error)

DeleteNode is a paid mutator transaction binding the contract method 0xa0c15b77.

Solidity: function deleteNode(string _node) returns()

func (*NodesSession) NodeCount added in v0.35.0

func (_Nodes *NodesSession) NodeCount() (*big.Int, error)

NodeCount is a free data retrieval call binding the contract method 0x6da49b83.

Solidity: function nodeCount() constant returns(uint256)

func (*NodesSession) Nodes added in v0.35.0

func (_Nodes *NodesSession) Nodes(arg0 *big.Int) (string, error)

Nodes is a free data retrieval call binding the contract method 0x1c53c280.

Solidity: function nodes(uint256 ) constant returns(string)

type NodesTransactor added in v0.35.0

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

NodesTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNodesTransactor added in v0.35.0

func NewNodesTransactor(address common.Address, transactor bind.ContractTransactor) (*NodesTransactor, error)

NewNodesTransactor creates a new write-only instance of Nodes, bound to a specific deployed contract.

func (*NodesTransactor) AddNode added in v0.35.0

func (_Nodes *NodesTransactor) AddNode(opts *bind.TransactOpts, _node string) (*types.Transaction, error)

AddNode is a paid mutator transaction binding the contract method 0x8994dd8e.

Solidity: function addNode(string _node) returns()

func (*NodesTransactor) DeleteAll added in v0.35.0

func (_Nodes *NodesTransactor) DeleteAll(opts *bind.TransactOpts) (*types.Transaction, error)

DeleteAll is a paid mutator transaction binding the contract method 0x4c164407.

Solidity: function deleteAll() returns()

func (*NodesTransactor) DeleteNode added in v0.35.0

func (_Nodes *NodesTransactor) DeleteNode(opts *bind.TransactOpts, _node string) (*types.Transaction, error)

DeleteNode is a paid mutator transaction binding the contract method 0xa0c15b77.

Solidity: function deleteNode(string _node) returns()

type NodesTransactorRaw added in v0.35.0

type NodesTransactorRaw struct {
	Contract *NodesTransactor // Generic write-only contract binding to access the raw methods on
}

NodesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NodesTransactorRaw) Transact added in v0.35.0

func (_Nodes *NodesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*NodesTransactorRaw) Transfer added in v0.35.0

func (_Nodes *NodesTransactorRaw) 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 NodesTransactorSession added in v0.35.0

type NodesTransactorSession struct {
	Contract     *NodesTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

NodesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*NodesTransactorSession) AddNode added in v0.35.0

func (_Nodes *NodesTransactorSession) AddNode(_node string) (*types.Transaction, error)

AddNode is a paid mutator transaction binding the contract method 0x8994dd8e.

Solidity: function addNode(string _node) returns()

func (*NodesTransactorSession) DeleteAll added in v0.35.0

func (_Nodes *NodesTransactorSession) DeleteAll() (*types.Transaction, error)

DeleteAll is a paid mutator transaction binding the contract method 0x4c164407.

Solidity: function deleteAll() returns()

func (*NodesTransactorSession) DeleteNode added in v0.35.0

func (_Nodes *NodesTransactorSession) DeleteNode(_node string) (*types.Transaction, error)

DeleteNode is a paid mutator transaction binding the contract method 0xa0c15b77.

Solidity: function deleteNode(string _node) returns()

type NodesV2 added in v0.35.0

type NodesV2 struct {
	NodesV2Caller     // Read-only binding to the contract
	NodesV2Transactor // Write-only binding to the contract
	NodesV2Filterer   // Log filterer for contract events
}

NodesV2 is an auto generated Go binding around an Ethereum contract.

func DeployNodesV2 added in v0.35.0

func DeployNodesV2(auth *bind.TransactOpts, backend bind.ContractBackend, _blockPerSession uint16) (common.Address, *types.Transaction, *NodesV2, error)

DeployNodesV2 deploys a new Ethereum contract, binding an instance of NodesV2 to it.

func NewNodesV2 added in v0.35.0

func NewNodesV2(address common.Address, backend bind.ContractBackend) (*NodesV2, error)

NewNodesV2 creates a new instance of NodesV2, bound to a specific deployed contract.

type NodesV2Caller added in v0.35.0

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

NodesV2Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewNodesV2Caller added in v0.35.0

func NewNodesV2Caller(address common.Address, caller bind.ContractCaller) (*NodesV2Caller, error)

NewNodesV2Caller creates a new read-only instance of NodesV2, bound to a specific deployed contract.

func (*NodesV2Caller) ActiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2Caller) ActiveNodeCount(opts *bind.CallOpts) (*big.Int, error)

ActiveNodeCount is a free data retrieval call binding the contract method 0x75340815.

Solidity: function activeNodeCount() constant returns(uint256)

func (*NodesV2Caller) ActiveNodes added in v0.35.0

func (_NodesV2 *NodesV2Caller) ActiveNodes(opts *bind.CallOpts, arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

ActiveNodes is a free data retrieval call binding the contract method 0x96f9d983.

Solidity: function activeNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2Caller) CurrentSession added in v0.35.0

func (_NodesV2 *NodesV2Caller) CurrentSession(opts *bind.CallOpts) (uint32, error)

CurrentSession is a free data retrieval call binding the contract method 0xd4166763.

Solidity: function currentSession() constant returns(uint32)

func (*NodesV2Caller) GetCurrentSession added in v0.35.0

func (_NodesV2 *NodesV2Caller) GetCurrentSession(opts *bind.CallOpts) (*big.Int, error)

GetCurrentSession is a free data retrieval call binding the contract method 0x1401795f.

Solidity: function getCurrentSession() constant returns(uint256)

func (*NodesV2Caller) GetInactiveNode added in v0.35.0

func (_NodesV2 *NodesV2Caller) GetInactiveNode(opts *bind.CallOpts, index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetInactiveNode is a free data retrieval call binding the contract method 0x93696e1a.

Solidity: function getInactiveNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2Caller) GetNode added in v0.35.0

func (_NodesV2 *NodesV2Caller) GetNode(opts *bind.CallOpts, index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.

Solidity: function getNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2Caller) InactiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2Caller) InactiveNodeCount(opts *bind.CallOpts) (*big.Int, error)

InactiveNodeCount is a free data retrieval call binding the contract method 0x6d1c76c2.

Solidity: function inactiveNodeCount() constant returns(uint256)

func (*NodesV2Caller) InactiveNodes added in v0.35.0

func (_NodesV2 *NodesV2Caller) InactiveNodes(opts *bind.CallOpts, arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

InactiveNodes is a free data retrieval call binding the contract method 0x72460fa8.

Solidity: function inactiveNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2Caller) PublicKeyToAddress added in v0.35.0

func (_NodesV2 *NodesV2Caller) PublicKeyToAddress(opts *bind.CallOpts, publicKey []byte) (common.Address, error)

PublicKeyToAddress is a free data retrieval call binding the contract method 0x43ae656c.

Solidity: function publicKeyToAddress(bytes publicKey) constant returns(address)

func (*NodesV2Caller) Registered added in v0.35.0

func (_NodesV2 *NodesV2Caller) Registered(opts *bind.CallOpts, publicKey []byte) (bool, error)

Registered is a free data retrieval call binding the contract method 0x5aca952e.

Solidity: function registered(bytes publicKey) constant returns(bool)

type NodesV2CallerRaw added in v0.35.0

type NodesV2CallerRaw struct {
	Contract *NodesV2Caller // Generic read-only contract binding to access the raw methods on
}

NodesV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NodesV2CallerRaw) Call added in v0.35.0

func (_NodesV2 *NodesV2CallerRaw) 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 NodesV2CallerSession added in v0.35.0

type NodesV2CallerSession struct {
	Contract *NodesV2Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

NodesV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*NodesV2CallerSession) ActiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) ActiveNodeCount() (*big.Int, error)

ActiveNodeCount is a free data retrieval call binding the contract method 0x75340815.

Solidity: function activeNodeCount() constant returns(uint256)

func (*NodesV2CallerSession) ActiveNodes added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) ActiveNodes(arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

ActiveNodes is a free data retrieval call binding the contract method 0x96f9d983.

Solidity: function activeNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2CallerSession) CurrentSession added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) CurrentSession() (uint32, error)

CurrentSession is a free data retrieval call binding the contract method 0xd4166763.

Solidity: function currentSession() constant returns(uint32)

func (*NodesV2CallerSession) GetCurrentSession added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) GetCurrentSession() (*big.Int, error)

GetCurrentSession is a free data retrieval call binding the contract method 0x1401795f.

Solidity: function getCurrentSession() constant returns(uint256)

func (*NodesV2CallerSession) GetInactiveNode added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) GetInactiveNode(index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetInactiveNode is a free data retrieval call binding the contract method 0x93696e1a.

Solidity: function getInactiveNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2CallerSession) GetNode added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) GetNode(index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.

Solidity: function getNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2CallerSession) InactiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) InactiveNodeCount() (*big.Int, error)

InactiveNodeCount is a free data retrieval call binding the contract method 0x6d1c76c2.

Solidity: function inactiveNodeCount() constant returns(uint256)

func (*NodesV2CallerSession) InactiveNodes added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) InactiveNodes(arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

InactiveNodes is a free data retrieval call binding the contract method 0x72460fa8.

Solidity: function inactiveNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2CallerSession) PublicKeyToAddress added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) PublicKeyToAddress(publicKey []byte) (common.Address, error)

PublicKeyToAddress is a free data retrieval call binding the contract method 0x43ae656c.

Solidity: function publicKeyToAddress(bytes publicKey) constant returns(address)

func (*NodesV2CallerSession) Registered added in v0.35.0

func (_NodesV2 *NodesV2CallerSession) Registered(publicKey []byte) (bool, error)

Registered is a free data retrieval call binding the contract method 0x5aca952e.

Solidity: function registered(bytes publicKey) constant returns(bool)

type NodesV2Filterer added in v0.35.0

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

NodesV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNodesV2Filterer added in v0.35.0

func NewNodesV2Filterer(address common.Address, filterer bind.ContractFilterer) (*NodesV2Filterer, error)

NewNodesV2Filterer creates a new log filterer instance of NodesV2, bound to a specific deployed contract.

type NodesV2Raw added in v0.35.0

type NodesV2Raw struct {
	Contract *NodesV2 // Generic contract binding to access the raw methods on
}

NodesV2Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*NodesV2Raw) Call added in v0.35.0

func (_NodesV2 *NodesV2Raw) 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 (*NodesV2Raw) Transact added in v0.35.0

func (_NodesV2 *NodesV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*NodesV2Raw) Transfer added in v0.35.0

func (_NodesV2 *NodesV2Raw) 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 NodesV2Session added in v0.35.0

type NodesV2Session struct {
	Contract     *NodesV2          // 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
}

NodesV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*NodesV2Session) ActiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2Session) ActiveNodeCount() (*big.Int, error)

ActiveNodeCount is a free data retrieval call binding the contract method 0x75340815.

Solidity: function activeNodeCount() constant returns(uint256)

func (*NodesV2Session) ActiveNodes added in v0.35.0

func (_NodesV2 *NodesV2Session) ActiveNodes(arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

ActiveNodes is a free data retrieval call binding the contract method 0x96f9d983.

Solidity: function activeNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2Session) AddActiveNode added in v0.35.0

func (_NodesV2 *NodesV2Session) AddActiveNode(publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

AddActiveNode is a paid mutator transaction binding the contract method 0xdad7bcee.

Solidity: function addActiveNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2Session) CurrentSession added in v0.35.0

func (_NodesV2 *NodesV2Session) CurrentSession() (uint32, error)

CurrentSession is a free data retrieval call binding the contract method 0xd4166763.

Solidity: function currentSession() constant returns(uint32)

func (*NodesV2Session) GetCurrentSession added in v0.35.0

func (_NodesV2 *NodesV2Session) GetCurrentSession() (*big.Int, error)

GetCurrentSession is a free data retrieval call binding the contract method 0x1401795f.

Solidity: function getCurrentSession() constant returns(uint256)

func (*NodesV2Session) GetInactiveNode added in v0.35.0

func (_NodesV2 *NodesV2Session) GetInactiveNode(index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetInactiveNode is a free data retrieval call binding the contract method 0x93696e1a.

Solidity: function getInactiveNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2Session) GetNode added in v0.35.0

func (_NodesV2 *NodesV2Session) GetNode(index *big.Int) ([]byte, uint32, uint16, uint32, uint32, error)

GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.

Solidity: function getNode(uint256 index) constant returns(bytes, uint32, uint16, uint32, uint32)

func (*NodesV2Session) InactiveNodeCount added in v0.35.0

func (_NodesV2 *NodesV2Session) InactiveNodeCount() (*big.Int, error)

InactiveNodeCount is a free data retrieval call binding the contract method 0x6d1c76c2.

Solidity: function inactiveNodeCount() constant returns(uint256)

func (*NodesV2Session) InactiveNodes added in v0.35.0

func (_NodesV2 *NodesV2Session) InactiveNodes(arg0 *big.Int) (struct {
	PublicKey            []byte
	Ip                   uint32
	Port                 uint16
	JoinVotes            uint8
	RemoveVotes          uint8
	LastTimeHasVoted     *big.Int
	LastTimeHasBeenVoted *big.Int
	JoiningSession       uint32
	ActiveSession        uint32
}, error)

InactiveNodes is a free data retrieval call binding the contract method 0x72460fa8.

Solidity: function inactiveNodes(uint256 ) constant returns(bytes publicKey, uint32 ip, uint16 port, uint8 joinVotes, uint8 removeVotes, uint256 lastTimeHasVoted, uint256 lastTimeHasBeenVoted, uint32 joiningSession, uint32 activeSession)

func (*NodesV2Session) PublicKeyToAddress added in v0.35.0

func (_NodesV2 *NodesV2Session) PublicKeyToAddress(publicKey []byte) (common.Address, error)

PublicKeyToAddress is a free data retrieval call binding the contract method 0x43ae656c.

Solidity: function publicKeyToAddress(bytes publicKey) constant returns(address)

func (*NodesV2Session) RegisterNode added in v0.35.0

func (_NodesV2 *NodesV2Session) RegisterNode(publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

RegisterNode is a paid mutator transaction binding the contract method 0x63cd6e18.

Solidity: function registerNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2Session) Registered added in v0.35.0

func (_NodesV2 *NodesV2Session) Registered(publicKey []byte) (bool, error)

Registered is a free data retrieval call binding the contract method 0x5aca952e.

Solidity: function registered(bytes publicKey) constant returns(bool)

func (*NodesV2Session) Vote added in v0.35.0

func (_NodesV2 *NodesV2Session) Vote(joinNodes []common.Address, removeNodes []common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xa19e39e8.

Solidity: function vote(address[] joinNodes, address[] removeNodes) returns()

type NodesV2Transactor added in v0.35.0

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

NodesV2Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNodesV2Transactor added in v0.35.0

func NewNodesV2Transactor(address common.Address, transactor bind.ContractTransactor) (*NodesV2Transactor, error)

NewNodesV2Transactor creates a new write-only instance of NodesV2, bound to a specific deployed contract.

func (*NodesV2Transactor) AddActiveNode added in v0.35.0

func (_NodesV2 *NodesV2Transactor) AddActiveNode(opts *bind.TransactOpts, publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

AddActiveNode is a paid mutator transaction binding the contract method 0xdad7bcee.

Solidity: function addActiveNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2Transactor) RegisterNode added in v0.35.0

func (_NodesV2 *NodesV2Transactor) RegisterNode(opts *bind.TransactOpts, publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

RegisterNode is a paid mutator transaction binding the contract method 0x63cd6e18.

Solidity: function registerNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2Transactor) Vote added in v0.35.0

func (_NodesV2 *NodesV2Transactor) Vote(opts *bind.TransactOpts, joinNodes []common.Address, removeNodes []common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xa19e39e8.

Solidity: function vote(address[] joinNodes, address[] removeNodes) returns()

type NodesV2TransactorRaw added in v0.35.0

type NodesV2TransactorRaw struct {
	Contract *NodesV2Transactor // Generic write-only contract binding to access the raw methods on
}

NodesV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NodesV2TransactorRaw) Transact added in v0.35.0

func (_NodesV2 *NodesV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*NodesV2TransactorRaw) Transfer added in v0.35.0

func (_NodesV2 *NodesV2TransactorRaw) 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 NodesV2TransactorSession added in v0.35.0

type NodesV2TransactorSession struct {
	Contract     *NodesV2Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

NodesV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*NodesV2TransactorSession) AddActiveNode added in v0.35.0

func (_NodesV2 *NodesV2TransactorSession) AddActiveNode(publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

AddActiveNode is a paid mutator transaction binding the contract method 0xdad7bcee.

Solidity: function addActiveNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2TransactorSession) RegisterNode added in v0.35.0

func (_NodesV2 *NodesV2TransactorSession) RegisterNode(publicKey []byte, ip uint32, port uint16) (*types.Transaction, error)

RegisterNode is a paid mutator transaction binding the contract method 0x63cd6e18.

Solidity: function registerNode(bytes publicKey, uint32 ip, uint16 port) returns()

func (*NodesV2TransactorSession) Vote added in v0.35.0

func (_NodesV2 *NodesV2TransactorSession) Vote(joinNodes []common.Address, removeNodes []common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xa19e39e8.

Solidity: function vote(address[] joinNodes, address[] removeNodes) returns()

type Registry

type Registry struct {
	RegistryCaller     // Read-only binding to the contract
	RegistryTransactor // Write-only binding to the contract
	RegistryFilterer   // Log filterer for contract events
}

Registry is an auto generated Go binding around an Ethereum contract.

func DeployRegistry

func DeployRegistry(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Registry, error)

DeployRegistry deploys a new Ethereum contract, binding an instance of Registry to it.

func NewRegistry

func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error)

NewRegistry creates a new instance of Registry, bound to a specific deployed contract.

type RegistryCaller

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

RegistryCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewRegistryCaller

func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error)

NewRegistryCaller creates a new read-only instance of Registry, bound to a specific deployed contract.

func (*RegistryCaller) Controller

func (_Registry *RegistryCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistryCaller) Exists

func (_Registry *RegistryCaller) Exists(opts *bind.CallOpts, a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

type RegistryCallerRaw

type RegistryCallerRaw struct {
	Contract *RegistryCaller // Generic read-only contract binding to access the raw methods on
}

RegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RegistryCallerRaw) Call

func (_Registry *RegistryCallerRaw) 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 RegistryCallerSession

type RegistryCallerSession struct {
	Contract *RegistryCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

RegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RegistryCallerSession) Controller

func (_Registry *RegistryCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistryCallerSession) Exists

func (_Registry *RegistryCallerSession) Exists(a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

type RegistryFilterer

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

RegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRegistryFilterer

func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error)

NewRegistryFilterer creates a new log filterer instance of Registry, bound to a specific deployed contract.

func (*RegistryFilterer) FilterMailServerAdded

func (_Registry *RegistryFilterer) FilterMailServerAdded(opts *bind.FilterOpts) (*RegistryMailServerAddedIterator, error)

FilterMailServerAdded is a free log retrieval operation binding the contract event 0xcb379cb5890ec9889055734e1561cdc353a342d46d8d650c8c3a8d66383c29cd.

Solidity: e MailServerAdded(a bytes)

func (*RegistryFilterer) FilterMailServerRemoved

func (_Registry *RegistryFilterer) FilterMailServerRemoved(opts *bind.FilterOpts) (*RegistryMailServerRemovedIterator, error)

FilterMailServerRemoved is a free log retrieval operation binding the contract event 0x44e7d85a87eeb950b8bdc144d44b0b474be610d1953607251a0130edc10a222b.

Solidity: e MailServerRemoved(a bytes)

func (*RegistryFilterer) WatchMailServerAdded

func (_Registry *RegistryFilterer) WatchMailServerAdded(opts *bind.WatchOpts, sink chan<- *RegistryMailServerAdded) (event.Subscription, error)

WatchMailServerAdded is a free log subscription operation binding the contract event 0xcb379cb5890ec9889055734e1561cdc353a342d46d8d650c8c3a8d66383c29cd.

Solidity: e MailServerAdded(a bytes)

func (*RegistryFilterer) WatchMailServerRemoved

func (_Registry *RegistryFilterer) WatchMailServerRemoved(opts *bind.WatchOpts, sink chan<- *RegistryMailServerRemoved) (event.Subscription, error)

WatchMailServerRemoved is a free log subscription operation binding the contract event 0x44e7d85a87eeb950b8bdc144d44b0b474be610d1953607251a0130edc10a222b.

Solidity: e MailServerRemoved(a bytes)

type RegistryMailServerAdded

type RegistryMailServerAdded struct {
	A   []byte
	Raw types.Log // Blockchain specific contextual infos
}

RegistryMailServerAdded represents a MailServerAdded event raised by the Registry contract.

type RegistryMailServerAddedIterator

type RegistryMailServerAddedIterator struct {
	Event *RegistryMailServerAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RegistryMailServerAddedIterator is returned from FilterMailServerAdded and is used to iterate over the raw logs and unpacked data for MailServerAdded events raised by the Registry contract.

func (*RegistryMailServerAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RegistryMailServerAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryMailServerAddedIterator) Next

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 RegistryMailServerRemoved

type RegistryMailServerRemoved struct {
	A   []byte
	Raw types.Log // Blockchain specific contextual infos
}

RegistryMailServerRemoved represents a MailServerRemoved event raised by the Registry contract.

type RegistryMailServerRemovedIterator

type RegistryMailServerRemovedIterator struct {
	Event *RegistryMailServerRemoved // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RegistryMailServerRemovedIterator is returned from FilterMailServerRemoved and is used to iterate over the raw logs and unpacked data for MailServerRemoved events raised by the Registry contract.

func (*RegistryMailServerRemovedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RegistryMailServerRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryMailServerRemovedIterator) Next

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 RegistryRaw

type RegistryRaw struct {
	Contract *Registry // Generic contract binding to access the raw methods on
}

RegistryRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RegistryRaw) Call

func (_Registry *RegistryRaw) 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 (*RegistryRaw) Transact

func (_Registry *RegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*RegistryRaw) Transfer

func (_Registry *RegistryRaw) 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 RegistrySession

type RegistrySession struct {
	Contract     *Registry         // 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
}

RegistrySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RegistrySession) Add

func (_Registry *RegistrySession) Add(a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistrySession) ChangeController

func (_Registry *RegistrySession) ChangeController(_newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistrySession) Controller

func (_Registry *RegistrySession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistrySession) Exists

func (_Registry *RegistrySession) Exists(a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

func (*RegistrySession) Remove

func (_Registry *RegistrySession) Remove(a []byte) (*types.Transaction, error)

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

Solidity: function remove(a bytes) returns()

type RegistryTransactor

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

RegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRegistryTransactor

func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error)

NewRegistryTransactor creates a new write-only instance of Registry, bound to a specific deployed contract.

func (*RegistryTransactor) Add

func (_Registry *RegistryTransactor) Add(opts *bind.TransactOpts, a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistryTransactor) ChangeController

func (_Registry *RegistryTransactor) ChangeController(opts *bind.TransactOpts, _newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistryTransactor) Remove

func (_Registry *RegistryTransactor) Remove(opts *bind.TransactOpts, a []byte) (*types.Transaction, error)

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

Solidity: function remove(a bytes) returns()

type RegistryTransactorRaw

type RegistryTransactorRaw struct {
	Contract *RegistryTransactor // Generic write-only contract binding to access the raw methods on
}

RegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RegistryTransactorRaw) Transact

func (_Registry *RegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*RegistryTransactorRaw) Transfer

func (_Registry *RegistryTransactorRaw) 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 RegistryTransactorSession

type RegistryTransactorSession struct {
	Contract     *RegistryTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

RegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RegistryTransactorSession) Add

func (_Registry *RegistryTransactorSession) Add(a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistryTransactorSession) ChangeController

func (_Registry *RegistryTransactorSession) ChangeController(_newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistryTransactorSession) Remove

func (_Registry *RegistryTransactorSession) Remove(a []byte) (*types.Transaction, error)

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

Solidity: function remove(a bytes) returns()

type Verifier

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

Verifier verifies nodes based on a smart contract.

func NewVerifier

func NewVerifier(contractCaller bind.ContractCaller, contractAddress common.Address) (*Verifier, error)

NewVerifier returns a new Verifier instance.

func (*Verifier) VerifyNode

func (v *Verifier) VerifyNode(ctx context.Context, nodeID enode.ID) bool

VerifyNode checks if a given node is trusted using a smart contract.

Jump to

Keyboard shortcuts

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