node_manager

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NodeManagerABI = NodeManagerMetaData.ABI

NodeManagerABI is the input ABI used to generate the binding from. Deprecated: Use NodeManagerMetaData.ABI instead.

View Source
var NodeManagerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"NodeRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"trusted\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"NodeSuperSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"trusted\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"NodeTrustedSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getNodeAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNodeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getNodeExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getNodeTrusted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getSuperNodeAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSuperNodeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getSuperNodeExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getTrustedNodeAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTrustedNodeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"registerNode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_super\",\"type\":\"bool\"}],\"name\":\"setNodeSuper\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_trusted\",\"type\":\"bool\"}],\"name\":\"setNodeTrusted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

NodeManagerMetaData contains all meta data concerning the NodeManager contract.

Functions

This section is empty.

Types

type NodeManager

type NodeManager struct {
	NodeManagerCaller     // Read-only binding to the contract
	NodeManagerTransactor // Write-only binding to the contract
	NodeManagerFilterer   // Log filterer for contract events
}

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

func NewNodeManager

func NewNodeManager(address common.Address, backend bind.ContractBackend) (*NodeManager, error)

NewNodeManager creates a new instance of NodeManager, bound to a specific deployed contract.

type NodeManagerCaller

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

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

func NewNodeManagerCaller

func NewNodeManagerCaller(address common.Address, caller bind.ContractCaller) (*NodeManagerCaller, error)

NewNodeManagerCaller creates a new read-only instance of NodeManager, bound to a specific deployed contract.

func (*NodeManagerCaller) GetNodeAt

func (_NodeManager *NodeManagerCaller) GetNodeAt(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetNodeAt is a free data retrieval call binding the contract method 0xba75d806.

Solidity: function getNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCaller) GetNodeCount

func (_NodeManager *NodeManagerCaller) GetNodeCount(opts *bind.CallOpts) (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*NodeManagerCaller) GetNodeExists

func (_NodeManager *NodeManagerCaller) GetNodeExists(opts *bind.CallOpts, _nodeAddress common.Address) (bool, error)

GetNodeExists is a free data retrieval call binding the contract method 0x65d4176f.

Solidity: function getNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerCaller) GetNodeTrusted

func (_NodeManager *NodeManagerCaller) GetNodeTrusted(opts *bind.CallOpts, _nodeAddress common.Address) (bool, error)

GetNodeTrusted is a free data retrieval call binding the contract method 0xb13e9d29.

Solidity: function getNodeTrusted(address _nodeAddress) view returns(bool)

func (*NodeManagerCaller) GetSuperNodeAt

func (_NodeManager *NodeManagerCaller) GetSuperNodeAt(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetSuperNodeAt is a free data retrieval call binding the contract method 0xc8974907.

Solidity: function getSuperNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCaller) GetSuperNodeCount

func (_NodeManager *NodeManagerCaller) GetSuperNodeCount(opts *bind.CallOpts) (*big.Int, error)

GetSuperNodeCount is a free data retrieval call binding the contract method 0x56071cf0.

Solidity: function getSuperNodeCount() view returns(uint256)

func (*NodeManagerCaller) GetSuperNodeExists

func (_NodeManager *NodeManagerCaller) GetSuperNodeExists(opts *bind.CallOpts, _nodeAddress common.Address) (bool, error)

GetSuperNodeExists is a free data retrieval call binding the contract method 0xca66d1d1.

Solidity: function getSuperNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerCaller) GetTrustedNodeAt

func (_NodeManager *NodeManagerCaller) GetTrustedNodeAt(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

GetTrustedNodeAt is a free data retrieval call binding the contract method 0xfe26a5c8.

Solidity: function getTrustedNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCaller) GetTrustedNodeCount

func (_NodeManager *NodeManagerCaller) GetTrustedNodeCount(opts *bind.CallOpts) (*big.Int, error)

GetTrustedNodeCount is a free data retrieval call binding the contract method 0x66e3c026.

Solidity: function getTrustedNodeCount() view returns(uint256)

func (*NodeManagerCaller) Version

func (_NodeManager *NodeManagerCaller) Version(opts *bind.CallOpts) (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type NodeManagerCallerRaw

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

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

func (*NodeManagerCallerRaw) Call

func (_NodeManager *NodeManagerCallerRaw) 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 NodeManagerCallerSession

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

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

func (*NodeManagerCallerSession) GetNodeAt

func (_NodeManager *NodeManagerCallerSession) GetNodeAt(_index *big.Int) (common.Address, error)

GetNodeAt is a free data retrieval call binding the contract method 0xba75d806.

Solidity: function getNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCallerSession) GetNodeCount

func (_NodeManager *NodeManagerCallerSession) GetNodeCount() (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*NodeManagerCallerSession) GetNodeExists

func (_NodeManager *NodeManagerCallerSession) GetNodeExists(_nodeAddress common.Address) (bool, error)

GetNodeExists is a free data retrieval call binding the contract method 0x65d4176f.

Solidity: function getNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerCallerSession) GetNodeTrusted

func (_NodeManager *NodeManagerCallerSession) GetNodeTrusted(_nodeAddress common.Address) (bool, error)

GetNodeTrusted is a free data retrieval call binding the contract method 0xb13e9d29.

Solidity: function getNodeTrusted(address _nodeAddress) view returns(bool)

func (*NodeManagerCallerSession) GetSuperNodeAt

func (_NodeManager *NodeManagerCallerSession) GetSuperNodeAt(_index *big.Int) (common.Address, error)

GetSuperNodeAt is a free data retrieval call binding the contract method 0xc8974907.

Solidity: function getSuperNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCallerSession) GetSuperNodeCount

func (_NodeManager *NodeManagerCallerSession) GetSuperNodeCount() (*big.Int, error)

GetSuperNodeCount is a free data retrieval call binding the contract method 0x56071cf0.

Solidity: function getSuperNodeCount() view returns(uint256)

func (*NodeManagerCallerSession) GetSuperNodeExists

func (_NodeManager *NodeManagerCallerSession) GetSuperNodeExists(_nodeAddress common.Address) (bool, error)

GetSuperNodeExists is a free data retrieval call binding the contract method 0xca66d1d1.

Solidity: function getSuperNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerCallerSession) GetTrustedNodeAt

func (_NodeManager *NodeManagerCallerSession) GetTrustedNodeAt(_index *big.Int) (common.Address, error)

GetTrustedNodeAt is a free data retrieval call binding the contract method 0xfe26a5c8.

Solidity: function getTrustedNodeAt(uint256 _index) view returns(address)

func (*NodeManagerCallerSession) GetTrustedNodeCount

func (_NodeManager *NodeManagerCallerSession) GetTrustedNodeCount() (*big.Int, error)

GetTrustedNodeCount is a free data retrieval call binding the contract method 0x66e3c026.

Solidity: function getTrustedNodeCount() view returns(uint256)

func (*NodeManagerCallerSession) Version

func (_NodeManager *NodeManagerCallerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type NodeManagerFilterer

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

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

func NewNodeManagerFilterer

func NewNodeManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*NodeManagerFilterer, error)

NewNodeManagerFilterer creates a new log filterer instance of NodeManager, bound to a specific deployed contract.

func (*NodeManagerFilterer) FilterNodeRegistered

func (_NodeManager *NodeManagerFilterer) FilterNodeRegistered(opts *bind.FilterOpts, node []common.Address) (*NodeManagerNodeRegisteredIterator, error)

FilterNodeRegistered is a free log retrieval operation binding the contract event 0xf773bca07d020a1bc1fdd45ea3db573da547dd27180143afaf075c158a847594.

Solidity: event NodeRegistered(address indexed node, uint256 time)

func (*NodeManagerFilterer) FilterNodeSuperSet

func (_NodeManager *NodeManagerFilterer) FilterNodeSuperSet(opts *bind.FilterOpts, node []common.Address) (*NodeManagerNodeSuperSetIterator, error)

FilterNodeSuperSet is a free log retrieval operation binding the contract event 0x4e254d8fe04424f1b37e26b86bded3b00bb5d712b323242e413c84b25115b4f8.

Solidity: event NodeSuperSet(address indexed node, bool trusted, uint256 time)

func (*NodeManagerFilterer) FilterNodeTrustedSet

func (_NodeManager *NodeManagerFilterer) FilterNodeTrustedSet(opts *bind.FilterOpts, node []common.Address) (*NodeManagerNodeTrustedSetIterator, error)

FilterNodeTrustedSet is a free log retrieval operation binding the contract event 0xc1308995890d10efade1f87f0bdb6020a8e7b6d3c3cfb6a1d9813d4ecf200aca.

Solidity: event NodeTrustedSet(address indexed node, bool trusted, uint256 time)

func (*NodeManagerFilterer) ParseNodeRegistered

func (_NodeManager *NodeManagerFilterer) ParseNodeRegistered(log types.Log) (*NodeManagerNodeRegistered, error)

ParseNodeRegistered is a log parse operation binding the contract event 0xf773bca07d020a1bc1fdd45ea3db573da547dd27180143afaf075c158a847594.

Solidity: event NodeRegistered(address indexed node, uint256 time)

func (*NodeManagerFilterer) ParseNodeSuperSet

func (_NodeManager *NodeManagerFilterer) ParseNodeSuperSet(log types.Log) (*NodeManagerNodeSuperSet, error)

ParseNodeSuperSet is a log parse operation binding the contract event 0x4e254d8fe04424f1b37e26b86bded3b00bb5d712b323242e413c84b25115b4f8.

Solidity: event NodeSuperSet(address indexed node, bool trusted, uint256 time)

func (*NodeManagerFilterer) ParseNodeTrustedSet

func (_NodeManager *NodeManagerFilterer) ParseNodeTrustedSet(log types.Log) (*NodeManagerNodeTrustedSet, error)

ParseNodeTrustedSet is a log parse operation binding the contract event 0xc1308995890d10efade1f87f0bdb6020a8e7b6d3c3cfb6a1d9813d4ecf200aca.

Solidity: event NodeTrustedSet(address indexed node, bool trusted, uint256 time)

func (*NodeManagerFilterer) WatchNodeRegistered

func (_NodeManager *NodeManagerFilterer) WatchNodeRegistered(opts *bind.WatchOpts, sink chan<- *NodeManagerNodeRegistered, node []common.Address) (event.Subscription, error)

WatchNodeRegistered is a free log subscription operation binding the contract event 0xf773bca07d020a1bc1fdd45ea3db573da547dd27180143afaf075c158a847594.

Solidity: event NodeRegistered(address indexed node, uint256 time)

func (*NodeManagerFilterer) WatchNodeSuperSet

func (_NodeManager *NodeManagerFilterer) WatchNodeSuperSet(opts *bind.WatchOpts, sink chan<- *NodeManagerNodeSuperSet, node []common.Address) (event.Subscription, error)

WatchNodeSuperSet is a free log subscription operation binding the contract event 0x4e254d8fe04424f1b37e26b86bded3b00bb5d712b323242e413c84b25115b4f8.

Solidity: event NodeSuperSet(address indexed node, bool trusted, uint256 time)

func (*NodeManagerFilterer) WatchNodeTrustedSet

func (_NodeManager *NodeManagerFilterer) WatchNodeTrustedSet(opts *bind.WatchOpts, sink chan<- *NodeManagerNodeTrustedSet, node []common.Address) (event.Subscription, error)

WatchNodeTrustedSet is a free log subscription operation binding the contract event 0xc1308995890d10efade1f87f0bdb6020a8e7b6d3c3cfb6a1d9813d4ecf200aca.

Solidity: event NodeTrustedSet(address indexed node, bool trusted, uint256 time)

type NodeManagerNodeRegistered

type NodeManagerNodeRegistered struct {
	Node common.Address
	Time *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

NodeManagerNodeRegistered represents a NodeRegistered event raised by the NodeManager contract.

type NodeManagerNodeRegisteredIterator

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

NodeManagerNodeRegisteredIterator is returned from FilterNodeRegistered and is used to iterate over the raw logs and unpacked data for NodeRegistered events raised by the NodeManager contract.

func (*NodeManagerNodeRegisteredIterator) Close

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

func (*NodeManagerNodeRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeManagerNodeRegisteredIterator) 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 NodeManagerNodeSuperSet

type NodeManagerNodeSuperSet struct {
	Node    common.Address
	Trusted bool
	Time    *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

NodeManagerNodeSuperSet represents a NodeSuperSet event raised by the NodeManager contract.

type NodeManagerNodeSuperSetIterator

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

NodeManagerNodeSuperSetIterator is returned from FilterNodeSuperSet and is used to iterate over the raw logs and unpacked data for NodeSuperSet events raised by the NodeManager contract.

func (*NodeManagerNodeSuperSetIterator) Close

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

func (*NodeManagerNodeSuperSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeManagerNodeSuperSetIterator) 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 NodeManagerNodeTrustedSet

type NodeManagerNodeTrustedSet struct {
	Node    common.Address
	Trusted bool
	Time    *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

NodeManagerNodeTrustedSet represents a NodeTrustedSet event raised by the NodeManager contract.

type NodeManagerNodeTrustedSetIterator

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

NodeManagerNodeTrustedSetIterator is returned from FilterNodeTrustedSet and is used to iterate over the raw logs and unpacked data for NodeTrustedSet events raised by the NodeManager contract.

func (*NodeManagerNodeTrustedSetIterator) Close

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

func (*NodeManagerNodeTrustedSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeManagerNodeTrustedSetIterator) 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 NodeManagerRaw

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

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

func (*NodeManagerRaw) Call

func (_NodeManager *NodeManagerRaw) 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 (*NodeManagerRaw) Transact

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

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

func (*NodeManagerRaw) Transfer

func (_NodeManager *NodeManagerRaw) 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 NodeManagerSession

type NodeManagerSession struct {
	Contract     *NodeManager      // 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
}

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

func (*NodeManagerSession) GetNodeAt

func (_NodeManager *NodeManagerSession) GetNodeAt(_index *big.Int) (common.Address, error)

GetNodeAt is a free data retrieval call binding the contract method 0xba75d806.

Solidity: function getNodeAt(uint256 _index) view returns(address)

func (*NodeManagerSession) GetNodeCount

func (_NodeManager *NodeManagerSession) GetNodeCount() (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*NodeManagerSession) GetNodeExists

func (_NodeManager *NodeManagerSession) GetNodeExists(_nodeAddress common.Address) (bool, error)

GetNodeExists is a free data retrieval call binding the contract method 0x65d4176f.

Solidity: function getNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerSession) GetNodeTrusted

func (_NodeManager *NodeManagerSession) GetNodeTrusted(_nodeAddress common.Address) (bool, error)

GetNodeTrusted is a free data retrieval call binding the contract method 0xb13e9d29.

Solidity: function getNodeTrusted(address _nodeAddress) view returns(bool)

func (*NodeManagerSession) GetSuperNodeAt

func (_NodeManager *NodeManagerSession) GetSuperNodeAt(_index *big.Int) (common.Address, error)

GetSuperNodeAt is a free data retrieval call binding the contract method 0xc8974907.

Solidity: function getSuperNodeAt(uint256 _index) view returns(address)

func (*NodeManagerSession) GetSuperNodeCount

func (_NodeManager *NodeManagerSession) GetSuperNodeCount() (*big.Int, error)

GetSuperNodeCount is a free data retrieval call binding the contract method 0x56071cf0.

Solidity: function getSuperNodeCount() view returns(uint256)

func (*NodeManagerSession) GetSuperNodeExists

func (_NodeManager *NodeManagerSession) GetSuperNodeExists(_nodeAddress common.Address) (bool, error)

GetSuperNodeExists is a free data retrieval call binding the contract method 0xca66d1d1.

Solidity: function getSuperNodeExists(address _nodeAddress) view returns(bool)

func (*NodeManagerSession) GetTrustedNodeAt

func (_NodeManager *NodeManagerSession) GetTrustedNodeAt(_index *big.Int) (common.Address, error)

GetTrustedNodeAt is a free data retrieval call binding the contract method 0xfe26a5c8.

Solidity: function getTrustedNodeAt(uint256 _index) view returns(address)

func (*NodeManagerSession) GetTrustedNodeCount

func (_NodeManager *NodeManagerSession) GetTrustedNodeCount() (*big.Int, error)

GetTrustedNodeCount is a free data retrieval call binding the contract method 0x66e3c026.

Solidity: function getTrustedNodeCount() view returns(uint256)

func (*NodeManagerSession) RegisterNode

func (_NodeManager *NodeManagerSession) RegisterNode(_nodeAddress common.Address) (*types.Transaction, error)

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

Solidity: function registerNode(address _nodeAddress) returns()

func (*NodeManagerSession) SetNodeSuper

func (_NodeManager *NodeManagerSession) SetNodeSuper(_nodeAddress common.Address, _super bool) (*types.Transaction, error)

SetNodeSuper is a paid mutator transaction binding the contract method 0xaabcb8aa.

Solidity: function setNodeSuper(address _nodeAddress, bool _super) returns()

func (*NodeManagerSession) SetNodeTrusted

func (_NodeManager *NodeManagerSession) SetNodeTrusted(_nodeAddress common.Address, _trusted bool) (*types.Transaction, error)

SetNodeTrusted is a paid mutator transaction binding the contract method 0x57d63792.

Solidity: function setNodeTrusted(address _nodeAddress, bool _trusted) returns()

func (*NodeManagerSession) Version

func (_NodeManager *NodeManagerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type NodeManagerTransactor

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

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

func NewNodeManagerTransactor

func NewNodeManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*NodeManagerTransactor, error)

NewNodeManagerTransactor creates a new write-only instance of NodeManager, bound to a specific deployed contract.

func (*NodeManagerTransactor) RegisterNode

func (_NodeManager *NodeManagerTransactor) RegisterNode(opts *bind.TransactOpts, _nodeAddress common.Address) (*types.Transaction, error)

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

Solidity: function registerNode(address _nodeAddress) returns()

func (*NodeManagerTransactor) SetNodeSuper

func (_NodeManager *NodeManagerTransactor) SetNodeSuper(opts *bind.TransactOpts, _nodeAddress common.Address, _super bool) (*types.Transaction, error)

SetNodeSuper is a paid mutator transaction binding the contract method 0xaabcb8aa.

Solidity: function setNodeSuper(address _nodeAddress, bool _super) returns()

func (*NodeManagerTransactor) SetNodeTrusted

func (_NodeManager *NodeManagerTransactor) SetNodeTrusted(opts *bind.TransactOpts, _nodeAddress common.Address, _trusted bool) (*types.Transaction, error)

SetNodeTrusted is a paid mutator transaction binding the contract method 0x57d63792.

Solidity: function setNodeTrusted(address _nodeAddress, bool _trusted) returns()

type NodeManagerTransactorRaw

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

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

func (*NodeManagerTransactorRaw) Transact

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

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

func (*NodeManagerTransactorRaw) Transfer

func (_NodeManager *NodeManagerTransactorRaw) 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 NodeManagerTransactorSession

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

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

func (*NodeManagerTransactorSession) RegisterNode

func (_NodeManager *NodeManagerTransactorSession) RegisterNode(_nodeAddress common.Address) (*types.Transaction, error)

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

Solidity: function registerNode(address _nodeAddress) returns()

func (*NodeManagerTransactorSession) SetNodeSuper

func (_NodeManager *NodeManagerTransactorSession) SetNodeSuper(_nodeAddress common.Address, _super bool) (*types.Transaction, error)

SetNodeSuper is a paid mutator transaction binding the contract method 0xaabcb8aa.

Solidity: function setNodeSuper(address _nodeAddress, bool _super) returns()

func (*NodeManagerTransactorSession) SetNodeTrusted

func (_NodeManager *NodeManagerTransactorSession) SetNodeTrusted(_nodeAddress common.Address, _trusted bool) (*types.Transaction, error)

SetNodeTrusted is a paid mutator transaction binding the contract method 0x57d63792.

Solidity: function setNodeTrusted(address _nodeAddress, bool _trusted) returns()

Jump to

Keyboard shortcuts

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