node

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NodeContractABI = NodeContractMetaData.ABI

NodeContractABI is the input ABI used to generate the binding from. Deprecated: Use NodeContractMetaData.ABI instead.

View Source
var NodeContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"PurchaseEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"Received\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accountLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"accountLicenses\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"activeLicensesIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"calibrator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"name\":\"deRegisterNodeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fillLicenseCountGap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"getCycleActiveLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"getCycleLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getLicencePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"operator\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"getOperatorCycleLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"operator\",\"type\":\"bytes\"}],\"name\":\"getOperatorLicenses\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"page\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"perPage\",\"type\":\"uint256\"}],\"name\":\"getOperators\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"opr\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getRegistrationData\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"commitment\",\"type\":\"address\"}],\"internalType\":\"structRegistrationData\",\"name\":\"regData\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_network\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"licensePrice\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"license\",\"type\":\"uint256\"}],\"name\":\"isActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"licenseOperator\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"licenseOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"locked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"network\",\"outputs\":[{\"internalType\":\"contractINetwork\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"nodesOwned\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"operatorCycleLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"operatorLicenseCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"operatorLicenses\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"operators\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"operatorsOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"purchaseLicense\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"commitment\",\"type\":\"address\"}],\"internalType\":\"structRegistrationData\",\"name\":\"regData\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"name\":\"registerNodeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"regDataBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"name\":\"registerOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_calibrator\",\"type\":\"uint256\"}],\"name\":\"setCalibrator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"setInitialLicencePrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAccounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdrawEthers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

NodeContractMetaData contains all meta data concerning the NodeContract contract.

Functions

This section is empty.

Types

type NodeContract

type NodeContract struct {
	NodeContractCaller     // Read-only binding to the contract
	NodeContractTransactor // Write-only binding to the contract
	NodeContractFilterer   // Log filterer for contract events
}

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

func NewNodeContract

func NewNodeContract(address common.Address, backend bind.ContractBackend) (*NodeContract, error)

NewNodeContract creates a new instance of NodeContract, bound to a specific deployed contract.

type NodeContractCaller

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

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

func NewNodeContractCaller

func NewNodeContractCaller(address common.Address, caller bind.ContractCaller) (*NodeContractCaller, error)

NewNodeContractCaller creates a new read-only instance of NodeContract, bound to a specific deployed contract.

func (*NodeContractCaller) AccountLicenseCount

func (_NodeContract *NodeContractCaller) AccountLicenseCount(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AccountLicenseCount is a free data retrieval call binding the contract method 0x2a7fca77.

Solidity: function accountLicenseCount(address ) view returns(uint256)

func (*NodeContractCaller) AccountLicenses

func (_NodeContract *NodeContractCaller) AccountLicenses(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

AccountLicenses is a free data retrieval call binding the contract method 0xf80c2adc.

Solidity: function accountLicenses(address , uint256 ) view returns(uint256)

func (*NodeContractCaller) ActiveLicenseCount

func (_NodeContract *NodeContractCaller) ActiveLicenseCount(opts *bind.CallOpts) (*big.Int, error)

ActiveLicenseCount is a free data retrieval call binding the contract method 0x4104991d.

Solidity: function activeLicenseCount() view returns(uint256)

func (*NodeContractCaller) ActiveLicensesIndex

func (_NodeContract *NodeContractCaller) ActiveLicensesIndex(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ActiveLicensesIndex is a free data retrieval call binding the contract method 0xaee5a56c.

Solidity: function activeLicensesIndex(uint256 ) view returns(uint256)

func (*NodeContractCaller) Calibrator

func (_NodeContract *NodeContractCaller) Calibrator(opts *bind.CallOpts) (*big.Int, error)

Calibrator is a free data retrieval call binding the contract method 0x399f0f64.

Solidity: function calibrator() view returns(uint256)

func (*NodeContractCaller) GetCycleActiveLicenseCount

func (_NodeContract *NodeContractCaller) GetCycleActiveLicenseCount(opts *bind.CallOpts, cycle *big.Int) (*big.Int, error)

GetCycleActiveLicenseCount is a free data retrieval call binding the contract method 0xd01b1fd3.

Solidity: function getCycleActiveLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractCaller) GetCycleLicenseCount

func (_NodeContract *NodeContractCaller) GetCycleLicenseCount(opts *bind.CallOpts, cycle *big.Int) (*big.Int, error)

GetCycleLicenseCount is a free data retrieval call binding the contract method 0x6830ab97.

Solidity: function getCycleLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractCaller) GetLicencePrice

func (_NodeContract *NodeContractCaller) GetLicencePrice(opts *bind.CallOpts, token common.Address) (*big.Int, error)

GetLicencePrice is a free data retrieval call binding the contract method 0x1c9129a9.

Solidity: function getLicencePrice(address token) view returns(uint256)

func (*NodeContractCaller) GetOperatorCycleLicenseCount

func (_NodeContract *NodeContractCaller) GetOperatorCycleLicenseCount(opts *bind.CallOpts, operator []byte, cycle *big.Int) (*big.Int, error)

GetOperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x333825bd.

Solidity: function getOperatorCycleLicenseCount(bytes operator, uint256 cycle) view returns(uint256)

func (*NodeContractCaller) GetOperatorLicenses

func (_NodeContract *NodeContractCaller) GetOperatorLicenses(opts *bind.CallOpts, operator []byte) ([]*big.Int, error)

GetOperatorLicenses is a free data retrieval call binding the contract method 0xb6e1121f.

Solidity: function getOperatorLicenses(bytes operator) view returns(uint256[])

func (*NodeContractCaller) GetOperators

func (_NodeContract *NodeContractCaller) GetOperators(opts *bind.CallOpts, page *big.Int, perPage *big.Int) ([][]byte, error)

GetOperators is a free data retrieval call binding the contract method 0xea4dd2b9.

Solidity: function getOperators(uint256 page, uint256 perPage) view returns(bytes[] opr)

func (*NodeContractCaller) GetRegistrationData

func (_NodeContract *NodeContractCaller) GetRegistrationData(opts *bind.CallOpts, data []byte) (RegistrationData, error)

GetRegistrationData is a free data retrieval call binding the contract method 0x274a77b9.

Solidity: function getRegistrationData(bytes data) pure returns((bytes,uint256,bytes,address) regData)

func (*NodeContractCaller) IsActive

func (_NodeContract *NodeContractCaller) IsActive(opts *bind.CallOpts, license *big.Int) (bool, error)

IsActive is a free data retrieval call binding the contract method 0x82afd23b.

Solidity: function isActive(uint256 license) view returns(bool)

func (*NodeContractCaller) LicenseOperator

func (_NodeContract *NodeContractCaller) LicenseOperator(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error)

LicenseOperator is a free data retrieval call binding the contract method 0xacb905f1.

Solidity: function licenseOperator(uint256 ) view returns(bytes)

func (*NodeContractCaller) LicenseOwner

func (_NodeContract *NodeContractCaller) LicenseOwner(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

LicenseOwner is a free data retrieval call binding the contract method 0x452dd0f7.

Solidity: function licenseOwner(uint256 ) view returns(address)

func (*NodeContractCaller) Locked

func (_NodeContract *NodeContractCaller) Locked(opts *bind.CallOpts) (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*NodeContractCaller) Network

func (_NodeContract *NodeContractCaller) Network(opts *bind.CallOpts) (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*NodeContractCaller) NodesOwned

func (_NodeContract *NodeContractCaller) NodesOwned(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([]byte, error)

NodesOwned is a free data retrieval call binding the contract method 0x0117320b.

Solidity: function nodesOwned(address , uint256 ) view returns(bytes)

func (*NodeContractCaller) OperatorCycleLicenseCount

func (_NodeContract *NodeContractCaller) OperatorCycleLicenseCount(opts *bind.CallOpts, arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x33bf29f2.

Solidity: function operatorCycleLicenseCount(bytes , uint256 ) view returns(uint256)

func (*NodeContractCaller) OperatorLicenseCount

func (_NodeContract *NodeContractCaller) OperatorLicenseCount(opts *bind.CallOpts, arg0 []byte) (*big.Int, error)

OperatorLicenseCount is a free data retrieval call binding the contract method 0x7e297e2f.

Solidity: function operatorLicenseCount(bytes ) view returns(uint256)

func (*NodeContractCaller) OperatorLicenses

func (_NodeContract *NodeContractCaller) OperatorLicenses(opts *bind.CallOpts, arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorLicenses is a free data retrieval call binding the contract method 0x846be5bd.

Solidity: function operatorLicenses(bytes , uint256 ) view returns(uint256)

func (*NodeContractCaller) Operators

func (_NodeContract *NodeContractCaller) Operators(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error)

Operators is a free data retrieval call binding the contract method 0xe28d4906.

Solidity: function operators(uint256 ) view returns(bytes)

func (*NodeContractCaller) OperatorsOwner

func (_NodeContract *NodeContractCaller) OperatorsOwner(opts *bind.CallOpts, arg0 []byte) (common.Address, error)

OperatorsOwner is a free data retrieval call binding the contract method 0xa7f5afee.

Solidity: function operatorsOwner(bytes ) view returns(address)

func (*NodeContractCaller) Owner

func (_NodeContract *NodeContractCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*NodeContractCaller) TotalAccounts

func (_NodeContract *NodeContractCaller) TotalAccounts(opts *bind.CallOpts) (*big.Int, error)

TotalAccounts is a free data retrieval call binding the contract method 0x58451f97.

Solidity: function totalAccounts() view returns(uint256)

type NodeContractCallerRaw

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

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

func (*NodeContractCallerRaw) Call

func (_NodeContract *NodeContractCallerRaw) 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 NodeContractCallerSession

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

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

func (*NodeContractCallerSession) AccountLicenseCount

func (_NodeContract *NodeContractCallerSession) AccountLicenseCount(arg0 common.Address) (*big.Int, error)

AccountLicenseCount is a free data retrieval call binding the contract method 0x2a7fca77.

Solidity: function accountLicenseCount(address ) view returns(uint256)

func (*NodeContractCallerSession) AccountLicenses

func (_NodeContract *NodeContractCallerSession) AccountLicenses(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

AccountLicenses is a free data retrieval call binding the contract method 0xf80c2adc.

Solidity: function accountLicenses(address , uint256 ) view returns(uint256)

func (*NodeContractCallerSession) ActiveLicenseCount

func (_NodeContract *NodeContractCallerSession) ActiveLicenseCount() (*big.Int, error)

ActiveLicenseCount is a free data retrieval call binding the contract method 0x4104991d.

Solidity: function activeLicenseCount() view returns(uint256)

func (*NodeContractCallerSession) ActiveLicensesIndex

func (_NodeContract *NodeContractCallerSession) ActiveLicensesIndex(arg0 *big.Int) (*big.Int, error)

ActiveLicensesIndex is a free data retrieval call binding the contract method 0xaee5a56c.

Solidity: function activeLicensesIndex(uint256 ) view returns(uint256)

func (*NodeContractCallerSession) Calibrator

func (_NodeContract *NodeContractCallerSession) Calibrator() (*big.Int, error)

Calibrator is a free data retrieval call binding the contract method 0x399f0f64.

Solidity: function calibrator() view returns(uint256)

func (*NodeContractCallerSession) GetCycleActiveLicenseCount

func (_NodeContract *NodeContractCallerSession) GetCycleActiveLicenseCount(cycle *big.Int) (*big.Int, error)

GetCycleActiveLicenseCount is a free data retrieval call binding the contract method 0xd01b1fd3.

Solidity: function getCycleActiveLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractCallerSession) GetCycleLicenseCount

func (_NodeContract *NodeContractCallerSession) GetCycleLicenseCount(cycle *big.Int) (*big.Int, error)

GetCycleLicenseCount is a free data retrieval call binding the contract method 0x6830ab97.

Solidity: function getCycleLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractCallerSession) GetLicencePrice

func (_NodeContract *NodeContractCallerSession) GetLicencePrice(token common.Address) (*big.Int, error)

GetLicencePrice is a free data retrieval call binding the contract method 0x1c9129a9.

Solidity: function getLicencePrice(address token) view returns(uint256)

func (*NodeContractCallerSession) GetOperatorCycleLicenseCount

func (_NodeContract *NodeContractCallerSession) GetOperatorCycleLicenseCount(operator []byte, cycle *big.Int) (*big.Int, error)

GetOperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x333825bd.

Solidity: function getOperatorCycleLicenseCount(bytes operator, uint256 cycle) view returns(uint256)

func (*NodeContractCallerSession) GetOperatorLicenses

func (_NodeContract *NodeContractCallerSession) GetOperatorLicenses(operator []byte) ([]*big.Int, error)

GetOperatorLicenses is a free data retrieval call binding the contract method 0xb6e1121f.

Solidity: function getOperatorLicenses(bytes operator) view returns(uint256[])

func (*NodeContractCallerSession) GetOperators

func (_NodeContract *NodeContractCallerSession) GetOperators(page *big.Int, perPage *big.Int) ([][]byte, error)

GetOperators is a free data retrieval call binding the contract method 0xea4dd2b9.

Solidity: function getOperators(uint256 page, uint256 perPage) view returns(bytes[] opr)

func (*NodeContractCallerSession) GetRegistrationData

func (_NodeContract *NodeContractCallerSession) GetRegistrationData(data []byte) (RegistrationData, error)

GetRegistrationData is a free data retrieval call binding the contract method 0x274a77b9.

Solidity: function getRegistrationData(bytes data) pure returns((bytes,uint256,bytes,address) regData)

func (*NodeContractCallerSession) IsActive

func (_NodeContract *NodeContractCallerSession) IsActive(license *big.Int) (bool, error)

IsActive is a free data retrieval call binding the contract method 0x82afd23b.

Solidity: function isActive(uint256 license) view returns(bool)

func (*NodeContractCallerSession) LicenseOperator

func (_NodeContract *NodeContractCallerSession) LicenseOperator(arg0 *big.Int) ([]byte, error)

LicenseOperator is a free data retrieval call binding the contract method 0xacb905f1.

Solidity: function licenseOperator(uint256 ) view returns(bytes)

func (*NodeContractCallerSession) LicenseOwner

func (_NodeContract *NodeContractCallerSession) LicenseOwner(arg0 *big.Int) (common.Address, error)

LicenseOwner is a free data retrieval call binding the contract method 0x452dd0f7.

Solidity: function licenseOwner(uint256 ) view returns(address)

func (*NodeContractCallerSession) Locked

func (_NodeContract *NodeContractCallerSession) Locked() (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*NodeContractCallerSession) Network

func (_NodeContract *NodeContractCallerSession) Network() (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*NodeContractCallerSession) NodesOwned

func (_NodeContract *NodeContractCallerSession) NodesOwned(arg0 common.Address, arg1 *big.Int) ([]byte, error)

NodesOwned is a free data retrieval call binding the contract method 0x0117320b.

Solidity: function nodesOwned(address , uint256 ) view returns(bytes)

func (*NodeContractCallerSession) OperatorCycleLicenseCount

func (_NodeContract *NodeContractCallerSession) OperatorCycleLicenseCount(arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x33bf29f2.

Solidity: function operatorCycleLicenseCount(bytes , uint256 ) view returns(uint256)

func (*NodeContractCallerSession) OperatorLicenseCount

func (_NodeContract *NodeContractCallerSession) OperatorLicenseCount(arg0 []byte) (*big.Int, error)

OperatorLicenseCount is a free data retrieval call binding the contract method 0x7e297e2f.

Solidity: function operatorLicenseCount(bytes ) view returns(uint256)

func (*NodeContractCallerSession) OperatorLicenses

func (_NodeContract *NodeContractCallerSession) OperatorLicenses(arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorLicenses is a free data retrieval call binding the contract method 0x846be5bd.

Solidity: function operatorLicenses(bytes , uint256 ) view returns(uint256)

func (*NodeContractCallerSession) Operators

func (_NodeContract *NodeContractCallerSession) Operators(arg0 *big.Int) ([]byte, error)

Operators is a free data retrieval call binding the contract method 0xe28d4906.

Solidity: function operators(uint256 ) view returns(bytes)

func (*NodeContractCallerSession) OperatorsOwner

func (_NodeContract *NodeContractCallerSession) OperatorsOwner(arg0 []byte) (common.Address, error)

OperatorsOwner is a free data retrieval call binding the contract method 0xa7f5afee.

Solidity: function operatorsOwner(bytes ) view returns(address)

func (*NodeContractCallerSession) Owner

func (_NodeContract *NodeContractCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*NodeContractCallerSession) TotalAccounts

func (_NodeContract *NodeContractCallerSession) TotalAccounts() (*big.Int, error)

TotalAccounts is a free data retrieval call binding the contract method 0x58451f97.

Solidity: function totalAccounts() view returns(uint256)

type NodeContractFilterer

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

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

func NewNodeContractFilterer

func NewNodeContractFilterer(address common.Address, filterer bind.ContractFilterer) (*NodeContractFilterer, error)

NewNodeContractFilterer creates a new log filterer instance of NodeContract, bound to a specific deployed contract.

func (*NodeContractFilterer) FilterInitialized

func (_NodeContract *NodeContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*NodeContractInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*NodeContractFilterer) FilterOwnershipTransferred

func (_NodeContract *NodeContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*NodeContractOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*NodeContractFilterer) FilterPurchaseEvent

func (_NodeContract *NodeContractFilterer) FilterPurchaseEvent(opts *bind.FilterOpts, account []common.Address) (*NodeContractPurchaseEventIterator, error)

FilterPurchaseEvent is a free log retrieval operation binding the contract event 0x4d28b0527b61511e95e214c4b5dc5ef6a46f03f9484a44eb6168f446530a239b.

Solidity: event PurchaseEvent(address indexed account, uint256 price, uint256 quantity, uint256 timestamp)

func (*NodeContractFilterer) FilterReceived

func (_NodeContract *NodeContractFilterer) FilterReceived(opts *bind.FilterOpts) (*NodeContractReceivedIterator, error)

FilterReceived is a free log retrieval operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address arg0, uint256 arg1)

func (*NodeContractFilterer) ParseInitialized

func (_NodeContract *NodeContractFilterer) ParseInitialized(log types.Log) (*NodeContractInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*NodeContractFilterer) ParseOwnershipTransferred

func (_NodeContract *NodeContractFilterer) ParseOwnershipTransferred(log types.Log) (*NodeContractOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*NodeContractFilterer) ParsePurchaseEvent

func (_NodeContract *NodeContractFilterer) ParsePurchaseEvent(log types.Log) (*NodeContractPurchaseEvent, error)

ParsePurchaseEvent is a log parse operation binding the contract event 0x4d28b0527b61511e95e214c4b5dc5ef6a46f03f9484a44eb6168f446530a239b.

Solidity: event PurchaseEvent(address indexed account, uint256 price, uint256 quantity, uint256 timestamp)

func (*NodeContractFilterer) ParseReceived

func (_NodeContract *NodeContractFilterer) ParseReceived(log types.Log) (*NodeContractReceived, error)

ParseReceived is a log parse operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address arg0, uint256 arg1)

func (*NodeContractFilterer) WatchInitialized

func (_NodeContract *NodeContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *NodeContractInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*NodeContractFilterer) WatchOwnershipTransferred

func (_NodeContract *NodeContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *NodeContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*NodeContractFilterer) WatchPurchaseEvent

func (_NodeContract *NodeContractFilterer) WatchPurchaseEvent(opts *bind.WatchOpts, sink chan<- *NodeContractPurchaseEvent, account []common.Address) (event.Subscription, error)

WatchPurchaseEvent is a free log subscription operation binding the contract event 0x4d28b0527b61511e95e214c4b5dc5ef6a46f03f9484a44eb6168f446530a239b.

Solidity: event PurchaseEvent(address indexed account, uint256 price, uint256 quantity, uint256 timestamp)

func (*NodeContractFilterer) WatchReceived

func (_NodeContract *NodeContractFilterer) WatchReceived(opts *bind.WatchOpts, sink chan<- *NodeContractReceived) (event.Subscription, error)

WatchReceived is a free log subscription operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address arg0, uint256 arg1)

type NodeContractInitialized

type NodeContractInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

NodeContractInitialized represents a Initialized event raised by the NodeContract contract.

type NodeContractInitializedIterator

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

NodeContractInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the NodeContract contract.

func (*NodeContractInitializedIterator) Close

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

func (*NodeContractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeContractInitializedIterator) 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 NodeContractOwnershipTransferred

type NodeContractOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

NodeContractOwnershipTransferred represents a OwnershipTransferred event raised by the NodeContract contract.

type NodeContractOwnershipTransferredIterator

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

NodeContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the NodeContract contract.

func (*NodeContractOwnershipTransferredIterator) Close

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

func (*NodeContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeContractOwnershipTransferredIterator) 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 NodeContractPurchaseEvent

type NodeContractPurchaseEvent struct {
	Account   common.Address
	Price     *big.Int
	Quantity  *big.Int
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

NodeContractPurchaseEvent represents a PurchaseEvent event raised by the NodeContract contract.

type NodeContractPurchaseEventIterator

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

NodeContractPurchaseEventIterator is returned from FilterPurchaseEvent and is used to iterate over the raw logs and unpacked data for PurchaseEvent events raised by the NodeContract contract.

func (*NodeContractPurchaseEventIterator) Close

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

func (*NodeContractPurchaseEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeContractPurchaseEventIterator) 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 NodeContractRaw

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

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

func (*NodeContractRaw) Call

func (_NodeContract *NodeContractRaw) 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 (*NodeContractRaw) Transact

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

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

func (*NodeContractRaw) Transfer

func (_NodeContract *NodeContractRaw) 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 NodeContractReceived

type NodeContractReceived struct {
	Arg0 common.Address
	Arg1 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

NodeContractReceived represents a Received event raised by the NodeContract contract.

type NodeContractReceivedIterator

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

NodeContractReceivedIterator is returned from FilterReceived and is used to iterate over the raw logs and unpacked data for Received events raised by the NodeContract contract.

func (*NodeContractReceivedIterator) Close

func (it *NodeContractReceivedIterator) Close() error

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

func (*NodeContractReceivedIterator) Error

func (it *NodeContractReceivedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NodeContractReceivedIterator) 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 NodeContractSession

type NodeContractSession struct {
	Contract     *NodeContract     // 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
}

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

func (*NodeContractSession) AccountLicenseCount

func (_NodeContract *NodeContractSession) AccountLicenseCount(arg0 common.Address) (*big.Int, error)

AccountLicenseCount is a free data retrieval call binding the contract method 0x2a7fca77.

Solidity: function accountLicenseCount(address ) view returns(uint256)

func (*NodeContractSession) AccountLicenses

func (_NodeContract *NodeContractSession) AccountLicenses(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

AccountLicenses is a free data retrieval call binding the contract method 0xf80c2adc.

Solidity: function accountLicenses(address , uint256 ) view returns(uint256)

func (*NodeContractSession) ActiveLicenseCount

func (_NodeContract *NodeContractSession) ActiveLicenseCount() (*big.Int, error)

ActiveLicenseCount is a free data retrieval call binding the contract method 0x4104991d.

Solidity: function activeLicenseCount() view returns(uint256)

func (*NodeContractSession) ActiveLicensesIndex

func (_NodeContract *NodeContractSession) ActiveLicensesIndex(arg0 *big.Int) (*big.Int, error)

ActiveLicensesIndex is a free data retrieval call binding the contract method 0xaee5a56c.

Solidity: function activeLicensesIndex(uint256 ) view returns(uint256)

func (*NodeContractSession) Calibrator

func (_NodeContract *NodeContractSession) Calibrator() (*big.Int, error)

Calibrator is a free data retrieval call binding the contract method 0x399f0f64.

Solidity: function calibrator() view returns(uint256)

func (*NodeContractSession) DeRegisterNodeOperator

func (_NodeContract *NodeContractSession) DeRegisterNodeOperator(licenses []*big.Int) (*types.Transaction, error)

DeRegisterNodeOperator is a paid mutator transaction binding the contract method 0x632402cc.

Solidity: function deRegisterNodeOperator(uint256[] licenses) returns()

func (*NodeContractSession) Fallback

func (_NodeContract *NodeContractSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*NodeContractSession) FillLicenseCountGap

func (_NodeContract *NodeContractSession) FillLicenseCountGap() (*types.Transaction, error)

FillLicenseCountGap is a paid mutator transaction binding the contract method 0x7b7de55d.

Solidity: function fillLicenseCountGap() returns()

func (*NodeContractSession) GetCycleActiveLicenseCount

func (_NodeContract *NodeContractSession) GetCycleActiveLicenseCount(cycle *big.Int) (*big.Int, error)

GetCycleActiveLicenseCount is a free data retrieval call binding the contract method 0xd01b1fd3.

Solidity: function getCycleActiveLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractSession) GetCycleLicenseCount

func (_NodeContract *NodeContractSession) GetCycleLicenseCount(cycle *big.Int) (*big.Int, error)

GetCycleLicenseCount is a free data retrieval call binding the contract method 0x6830ab97.

Solidity: function getCycleLicenseCount(uint256 cycle) view returns(uint256)

func (*NodeContractSession) GetLicencePrice

func (_NodeContract *NodeContractSession) GetLicencePrice(token common.Address) (*big.Int, error)

GetLicencePrice is a free data retrieval call binding the contract method 0x1c9129a9.

Solidity: function getLicencePrice(address token) view returns(uint256)

func (*NodeContractSession) GetOperatorCycleLicenseCount

func (_NodeContract *NodeContractSession) GetOperatorCycleLicenseCount(operator []byte, cycle *big.Int) (*big.Int, error)

GetOperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x333825bd.

Solidity: function getOperatorCycleLicenseCount(bytes operator, uint256 cycle) view returns(uint256)

func (*NodeContractSession) GetOperatorLicenses

func (_NodeContract *NodeContractSession) GetOperatorLicenses(operator []byte) ([]*big.Int, error)

GetOperatorLicenses is a free data retrieval call binding the contract method 0xb6e1121f.

Solidity: function getOperatorLicenses(bytes operator) view returns(uint256[])

func (*NodeContractSession) GetOperators

func (_NodeContract *NodeContractSession) GetOperators(page *big.Int, perPage *big.Int) ([][]byte, error)

GetOperators is a free data retrieval call binding the contract method 0xea4dd2b9.

Solidity: function getOperators(uint256 page, uint256 perPage) view returns(bytes[] opr)

func (*NodeContractSession) GetRegistrationData

func (_NodeContract *NodeContractSession) GetRegistrationData(data []byte) (RegistrationData, error)

GetRegistrationData is a free data retrieval call binding the contract method 0x274a77b9.

Solidity: function getRegistrationData(bytes data) pure returns((bytes,uint256,bytes,address) regData)

func (*NodeContractSession) Initialize

func (_NodeContract *NodeContractSession) Initialize(_network common.Address, _token common.Address, licensePrice *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1794bb3c.

Solidity: function initialize(address _network, address _token, uint256 licensePrice) returns()

func (*NodeContractSession) IsActive

func (_NodeContract *NodeContractSession) IsActive(license *big.Int) (bool, error)

IsActive is a free data retrieval call binding the contract method 0x82afd23b.

Solidity: function isActive(uint256 license) view returns(bool)

func (*NodeContractSession) LicenseOperator

func (_NodeContract *NodeContractSession) LicenseOperator(arg0 *big.Int) ([]byte, error)

LicenseOperator is a free data retrieval call binding the contract method 0xacb905f1.

Solidity: function licenseOperator(uint256 ) view returns(bytes)

func (*NodeContractSession) LicenseOwner

func (_NodeContract *NodeContractSession) LicenseOwner(arg0 *big.Int) (common.Address, error)

LicenseOwner is a free data retrieval call binding the contract method 0x452dd0f7.

Solidity: function licenseOwner(uint256 ) view returns(address)

func (*NodeContractSession) Locked

func (_NodeContract *NodeContractSession) Locked() (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*NodeContractSession) Network

func (_NodeContract *NodeContractSession) Network() (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*NodeContractSession) NodesOwned

func (_NodeContract *NodeContractSession) NodesOwned(arg0 common.Address, arg1 *big.Int) ([]byte, error)

NodesOwned is a free data retrieval call binding the contract method 0x0117320b.

Solidity: function nodesOwned(address , uint256 ) view returns(bytes)

func (*NodeContractSession) OperatorCycleLicenseCount

func (_NodeContract *NodeContractSession) OperatorCycleLicenseCount(arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorCycleLicenseCount is a free data retrieval call binding the contract method 0x33bf29f2.

Solidity: function operatorCycleLicenseCount(bytes , uint256 ) view returns(uint256)

func (*NodeContractSession) OperatorLicenseCount

func (_NodeContract *NodeContractSession) OperatorLicenseCount(arg0 []byte) (*big.Int, error)

OperatorLicenseCount is a free data retrieval call binding the contract method 0x7e297e2f.

Solidity: function operatorLicenseCount(bytes ) view returns(uint256)

func (*NodeContractSession) OperatorLicenses

func (_NodeContract *NodeContractSession) OperatorLicenses(arg0 []byte, arg1 *big.Int) (*big.Int, error)

OperatorLicenses is a free data retrieval call binding the contract method 0x846be5bd.

Solidity: function operatorLicenses(bytes , uint256 ) view returns(uint256)

func (*NodeContractSession) Operators

func (_NodeContract *NodeContractSession) Operators(arg0 *big.Int) ([]byte, error)

Operators is a free data retrieval call binding the contract method 0xe28d4906.

Solidity: function operators(uint256 ) view returns(bytes)

func (*NodeContractSession) OperatorsOwner

func (_NodeContract *NodeContractSession) OperatorsOwner(arg0 []byte) (common.Address, error)

OperatorsOwner is a free data retrieval call binding the contract method 0xa7f5afee.

Solidity: function operatorsOwner(bytes ) view returns(address)

func (*NodeContractSession) Owner

func (_NodeContract *NodeContractSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*NodeContractSession) PurchaseLicense

func (_NodeContract *NodeContractSession) PurchaseLicense(quantity *big.Int, token common.Address) (*types.Transaction, error)

PurchaseLicense is a paid mutator transaction binding the contract method 0x003da2df.

Solidity: function purchaseLicense(uint256 quantity, address token) payable returns(uint256[])

func (*NodeContractSession) Receive

func (_NodeContract *NodeContractSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*NodeContractSession) RegisterNodeOperator

func (_NodeContract *NodeContractSession) RegisterNodeOperator(regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

RegisterNodeOperator is a paid mutator transaction binding the contract method 0x4ca5628f.

Solidity: function registerNodeOperator((bytes,uint256,bytes,address) regData, uint256[] licenses) returns()

func (*NodeContractSession) RegisterOperator

func (_NodeContract *NodeContractSession) RegisterOperator(regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperator is a paid mutator transaction binding the contract method 0xcdadf777.

Solidity: function registerOperator(bytes regDataBytes, uint256[] licenses) returns()

func (*NodeContractSession) RenounceOwnership

func (_NodeContract *NodeContractSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NodeContractSession) SetCalibrator

func (_NodeContract *NodeContractSession) SetCalibrator(_calibrator *big.Int) (*types.Transaction, error)

SetCalibrator is a paid mutator transaction binding the contract method 0x48922da5.

Solidity: function setCalibrator(uint256 _calibrator) returns()

func (*NodeContractSession) SetInitialLicencePrice

func (_NodeContract *NodeContractSession) SetInitialLicencePrice(token common.Address, _price *big.Int) (*types.Transaction, error)

SetInitialLicencePrice is a paid mutator transaction binding the contract method 0x98bcd0b0.

Solidity: function setInitialLicencePrice(address token, uint256 _price) returns()

func (*NodeContractSession) TotalAccounts

func (_NodeContract *NodeContractSession) TotalAccounts() (*big.Int, error)

TotalAccounts is a free data retrieval call binding the contract method 0x58451f97.

Solidity: function totalAccounts() view returns(uint256)

func (*NodeContractSession) TransferOwnership

func (_NodeContract *NodeContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*NodeContractSession) Withdraw

func (_NodeContract *NodeContractSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address token, address to, uint256 amount) returns()

func (*NodeContractSession) WithdrawEthers

func (_NodeContract *NodeContractSession) WithdrawEthers(to common.Address) (*types.Transaction, error)

WithdrawEthers is a paid mutator transaction binding the contract method 0x2988a9f0.

Solidity: function withdrawEthers(address to) returns()

type NodeContractTransactor

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

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

func NewNodeContractTransactor

func NewNodeContractTransactor(address common.Address, transactor bind.ContractTransactor) (*NodeContractTransactor, error)

NewNodeContractTransactor creates a new write-only instance of NodeContract, bound to a specific deployed contract.

func (*NodeContractTransactor) DeRegisterNodeOperator

func (_NodeContract *NodeContractTransactor) DeRegisterNodeOperator(opts *bind.TransactOpts, licenses []*big.Int) (*types.Transaction, error)

DeRegisterNodeOperator is a paid mutator transaction binding the contract method 0x632402cc.

Solidity: function deRegisterNodeOperator(uint256[] licenses) returns()

func (*NodeContractTransactor) Fallback

func (_NodeContract *NodeContractTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*NodeContractTransactor) FillLicenseCountGap

func (_NodeContract *NodeContractTransactor) FillLicenseCountGap(opts *bind.TransactOpts) (*types.Transaction, error)

FillLicenseCountGap is a paid mutator transaction binding the contract method 0x7b7de55d.

Solidity: function fillLicenseCountGap() returns()

func (*NodeContractTransactor) Initialize

func (_NodeContract *NodeContractTransactor) Initialize(opts *bind.TransactOpts, _network common.Address, _token common.Address, licensePrice *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1794bb3c.

Solidity: function initialize(address _network, address _token, uint256 licensePrice) returns()

func (*NodeContractTransactor) PurchaseLicense

func (_NodeContract *NodeContractTransactor) PurchaseLicense(opts *bind.TransactOpts, quantity *big.Int, token common.Address) (*types.Transaction, error)

PurchaseLicense is a paid mutator transaction binding the contract method 0x003da2df.

Solidity: function purchaseLicense(uint256 quantity, address token) payable returns(uint256[])

func (*NodeContractTransactor) Receive

func (_NodeContract *NodeContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*NodeContractTransactor) RegisterNodeOperator

func (_NodeContract *NodeContractTransactor) RegisterNodeOperator(opts *bind.TransactOpts, regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

RegisterNodeOperator is a paid mutator transaction binding the contract method 0x4ca5628f.

Solidity: function registerNodeOperator((bytes,uint256,bytes,address) regData, uint256[] licenses) returns()

func (*NodeContractTransactor) RegisterOperator

func (_NodeContract *NodeContractTransactor) RegisterOperator(opts *bind.TransactOpts, regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperator is a paid mutator transaction binding the contract method 0xcdadf777.

Solidity: function registerOperator(bytes regDataBytes, uint256[] licenses) returns()

func (*NodeContractTransactor) RenounceOwnership

func (_NodeContract *NodeContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NodeContractTransactor) SetCalibrator

func (_NodeContract *NodeContractTransactor) SetCalibrator(opts *bind.TransactOpts, _calibrator *big.Int) (*types.Transaction, error)

SetCalibrator is a paid mutator transaction binding the contract method 0x48922da5.

Solidity: function setCalibrator(uint256 _calibrator) returns()

func (*NodeContractTransactor) SetInitialLicencePrice

func (_NodeContract *NodeContractTransactor) SetInitialLicencePrice(opts *bind.TransactOpts, token common.Address, _price *big.Int) (*types.Transaction, error)

SetInitialLicencePrice is a paid mutator transaction binding the contract method 0x98bcd0b0.

Solidity: function setInitialLicencePrice(address token, uint256 _price) returns()

func (*NodeContractTransactor) TransferOwnership

func (_NodeContract *NodeContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*NodeContractTransactor) Withdraw

func (_NodeContract *NodeContractTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address token, address to, uint256 amount) returns()

func (*NodeContractTransactor) WithdrawEthers

func (_NodeContract *NodeContractTransactor) WithdrawEthers(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

WithdrawEthers is a paid mutator transaction binding the contract method 0x2988a9f0.

Solidity: function withdrawEthers(address to) returns()

type NodeContractTransactorRaw

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

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

func (*NodeContractTransactorRaw) Transact

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

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

func (*NodeContractTransactorRaw) Transfer

func (_NodeContract *NodeContractTransactorRaw) 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 NodeContractTransactorSession

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

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

func (*NodeContractTransactorSession) DeRegisterNodeOperator

func (_NodeContract *NodeContractTransactorSession) DeRegisterNodeOperator(licenses []*big.Int) (*types.Transaction, error)

DeRegisterNodeOperator is a paid mutator transaction binding the contract method 0x632402cc.

Solidity: function deRegisterNodeOperator(uint256[] licenses) returns()

func (*NodeContractTransactorSession) Fallback

func (_NodeContract *NodeContractTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*NodeContractTransactorSession) FillLicenseCountGap

func (_NodeContract *NodeContractTransactorSession) FillLicenseCountGap() (*types.Transaction, error)

FillLicenseCountGap is a paid mutator transaction binding the contract method 0x7b7de55d.

Solidity: function fillLicenseCountGap() returns()

func (*NodeContractTransactorSession) Initialize

func (_NodeContract *NodeContractTransactorSession) Initialize(_network common.Address, _token common.Address, licensePrice *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1794bb3c.

Solidity: function initialize(address _network, address _token, uint256 licensePrice) returns()

func (*NodeContractTransactorSession) PurchaseLicense

func (_NodeContract *NodeContractTransactorSession) PurchaseLicense(quantity *big.Int, token common.Address) (*types.Transaction, error)

PurchaseLicense is a paid mutator transaction binding the contract method 0x003da2df.

Solidity: function purchaseLicense(uint256 quantity, address token) payable returns(uint256[])

func (*NodeContractTransactorSession) Receive

func (_NodeContract *NodeContractTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*NodeContractTransactorSession) RegisterNodeOperator

func (_NodeContract *NodeContractTransactorSession) RegisterNodeOperator(regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

RegisterNodeOperator is a paid mutator transaction binding the contract method 0x4ca5628f.

Solidity: function registerNodeOperator((bytes,uint256,bytes,address) regData, uint256[] licenses) returns()

func (*NodeContractTransactorSession) RegisterOperator

func (_NodeContract *NodeContractTransactorSession) RegisterOperator(regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperator is a paid mutator transaction binding the contract method 0xcdadf777.

Solidity: function registerOperator(bytes regDataBytes, uint256[] licenses) returns()

func (*NodeContractTransactorSession) RenounceOwnership

func (_NodeContract *NodeContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NodeContractTransactorSession) SetCalibrator

func (_NodeContract *NodeContractTransactorSession) SetCalibrator(_calibrator *big.Int) (*types.Transaction, error)

SetCalibrator is a paid mutator transaction binding the contract method 0x48922da5.

Solidity: function setCalibrator(uint256 _calibrator) returns()

func (*NodeContractTransactorSession) SetInitialLicencePrice

func (_NodeContract *NodeContractTransactorSession) SetInitialLicencePrice(token common.Address, _price *big.Int) (*types.Transaction, error)

SetInitialLicencePrice is a paid mutator transaction binding the contract method 0x98bcd0b0.

Solidity: function setInitialLicencePrice(address token, uint256 _price) returns()

func (*NodeContractTransactorSession) TransferOwnership

func (_NodeContract *NodeContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*NodeContractTransactorSession) Withdraw

func (_NodeContract *NodeContractTransactorSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address token, address to, uint256 amount) returns()

func (*NodeContractTransactorSession) WithdrawEthers

func (_NodeContract *NodeContractTransactorSession) WithdrawEthers(to common.Address) (*types.Transaction, error)

WithdrawEthers is a paid mutator transaction binding the contract method 0x2988a9f0.

Solidity: function withdrawEthers(address to) returns()

type RegistrationData

type RegistrationData struct {
	PublicKey  []byte
	Nonce      *big.Int
	Signature  []byte
	Commitment common.Address
}

RegistrationData is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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