validator

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidatorContractABI = ValidatorContractMetaData.ABI

ValidatorContractABI is the input ABI used to generate the binding from. Deprecated: Use ValidatorContractMetaData.ABI instead.

View Source
var ValidatorContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"accountInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"operators\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"internalType\":\"structAccountInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accountLicenseCount\",\"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\":\"authorizeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"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\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"pubKey\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"eddKey\",\"type\":\"bytes32\"}],\"internalType\":\"structOperatorInfo[]\",\"name\":\"opr\",\"type\":\"tuple[]\"}],\"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\":\"bytes32\",\"name\":\"eddKey\",\"type\":\"bytes32\"}],\"internalType\":\"structRegistrationData\",\"name\":\"regData\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_network\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_licenseContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_otherLicenseContract\",\"type\":\"address\"}],\"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\":[],\"name\":\"licenseContract\",\"outputs\":[{\"internalType\":\"contractILicenseContract\",\"name\":\"\",\"type\":\"address\"}],\"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\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"licenseOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"promoCode\",\"type\":\"string\"}],\"name\":\"licensePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"operatorsEddKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"operatorsOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"otherLicenseContract\",\"outputs\":[{\"internalType\":\"contractILicenseContract\",\"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\":\"string\",\"name\":\"promoCode\",\"type\":\"string\"}],\"name\":\"purchaseLicense\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"promoCode\",\"type\":\"string\"}],\"name\":\"purchaseLicenseFor\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"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\":\"bytes32\",\"name\":\"eddKey\",\"type\":\"bytes32\"}],\"internalType\":\"structRegistrationData\",\"name\":\"regData\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"name\":\"registerOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"regDataBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"licenses\",\"type\":\"uint256[]\"}],\"name\":\"registerOperatorBytes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setLicenseContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setOtherLicenseContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\"}]",
}

ValidatorContractMetaData contains all meta data concerning the ValidatorContract contract.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	Operators [][]byte
	Licenses  []*big.Int
}

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

type OperatorInfo

type OperatorInfo struct {
	PubKey []byte
	Owner  common.Address
	EddKey [32]byte
}

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

type RegistrationData

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

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

type ValidatorContract

type ValidatorContract struct {
	ValidatorContractCaller     // Read-only binding to the contract
	ValidatorContractTransactor // Write-only binding to the contract
	ValidatorContractFilterer   // Log filterer for contract events
}

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

func NewValidatorContract

func NewValidatorContract(address common.Address, backend bind.ContractBackend) (*ValidatorContract, error)

NewValidatorContract creates a new instance of ValidatorContract, bound to a specific deployed contract.

type ValidatorContractCaller

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

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

func NewValidatorContractCaller

func NewValidatorContractCaller(address common.Address, caller bind.ContractCaller) (*ValidatorContractCaller, error)

NewValidatorContractCaller creates a new read-only instance of ValidatorContract, bound to a specific deployed contract.

func (*ValidatorContractCaller) AccountInfo

func (_ValidatorContract *ValidatorContractCaller) AccountInfo(opts *bind.CallOpts, addr common.Address) (AccountInfo, error)

AccountInfo is a free data retrieval call binding the contract method 0xa7310b58.

Solidity: function accountInfo(address addr) view returns((bytes[],uint256[]))

func (*ValidatorContractCaller) AccountLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) ActiveLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) ActiveLicensesIndex

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) Calibrator

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) DEFAULTADMINROLE

func (_ValidatorContract *ValidatorContractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ValidatorContractCaller) GetCycleActiveLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) GetCycleLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) GetOperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) GetOperatorLicenses

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) GetOperators

func (_ValidatorContract *ValidatorContractCaller) GetOperators(opts *bind.CallOpts, page *big.Int, perPage *big.Int) ([]OperatorInfo, error)

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

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

func (*ValidatorContractCaller) GetRegistrationData

func (_ValidatorContract *ValidatorContractCaller) 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,bytes32) regData)

func (*ValidatorContractCaller) GetRoleAdmin

func (_ValidatorContract *ValidatorContractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ValidatorContractCaller) HasRole

func (_ValidatorContract *ValidatorContractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ValidatorContractCaller) IsActive

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) LicenseContract

func (_ValidatorContract *ValidatorContractCaller) LicenseContract(opts *bind.CallOpts) (common.Address, error)

LicenseContract is a free data retrieval call binding the contract method 0xe2c52b9d.

Solidity: function licenseContract() view returns(address)

func (*ValidatorContractCaller) LicenseOperator

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) LicenseOwner

func (_ValidatorContract *ValidatorContractCaller) LicenseOwner(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

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

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

func (*ValidatorContractCaller) LicensePrice

func (_ValidatorContract *ValidatorContractCaller) LicensePrice(opts *bind.CallOpts, quantity *big.Int, promoCode string) (*big.Int, error)

LicensePrice is a free data retrieval call binding the contract method 0x342d88c6.

Solidity: function licensePrice(uint256 quantity, string promoCode) view returns(uint256)

func (*ValidatorContractCaller) Locked

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) Network

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) NodesOwned

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) OperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) OperatorLicenseCount

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) OperatorLicenses

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) Operators

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) OperatorsEddKey

func (_ValidatorContract *ValidatorContractCaller) OperatorsEddKey(opts *bind.CallOpts, arg0 []byte) ([32]byte, error)

OperatorsEddKey is a free data retrieval call binding the contract method 0x2555a068.

Solidity: function operatorsEddKey(bytes ) view returns(bytes32)

func (*ValidatorContractCaller) OperatorsOwner

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) OtherLicenseContract

func (_ValidatorContract *ValidatorContractCaller) OtherLicenseContract(opts *bind.CallOpts) (common.Address, error)

OtherLicenseContract is a free data retrieval call binding the contract method 0x26732bfe.

Solidity: function otherLicenseContract() view returns(address)

func (*ValidatorContractCaller) Owner

func (_ValidatorContract *ValidatorContractCaller) 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 (*ValidatorContractCaller) SupportsInterface

func (_ValidatorContract *ValidatorContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ValidatorContractCaller) TotalAccounts

func (_ValidatorContract *ValidatorContractCaller) 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 ValidatorContractCallerRaw

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

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

func (*ValidatorContractCallerRaw) Call

func (_ValidatorContract *ValidatorContractCallerRaw) 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 ValidatorContractCallerSession

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

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

func (*ValidatorContractCallerSession) AccountInfo

func (_ValidatorContract *ValidatorContractCallerSession) AccountInfo(addr common.Address) (AccountInfo, error)

AccountInfo is a free data retrieval call binding the contract method 0xa7310b58.

Solidity: function accountInfo(address addr) view returns((bytes[],uint256[]))

func (*ValidatorContractCallerSession) AccountLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) ActiveLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) ActiveLicenseCount() (*big.Int, error)

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

Solidity: function activeLicenseCount() view returns(uint256)

func (*ValidatorContractCallerSession) ActiveLicensesIndex

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) Calibrator

func (_ValidatorContract *ValidatorContractCallerSession) Calibrator() (*big.Int, error)

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

Solidity: function calibrator() view returns(uint256)

func (*ValidatorContractCallerSession) DEFAULTADMINROLE

func (_ValidatorContract *ValidatorContractCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ValidatorContractCallerSession) GetCycleActiveLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) GetCycleLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) GetOperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) GetOperatorLicenses

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) GetOperators

func (_ValidatorContract *ValidatorContractCallerSession) GetOperators(page *big.Int, perPage *big.Int) ([]OperatorInfo, error)

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

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

func (*ValidatorContractCallerSession) GetRegistrationData

func (_ValidatorContract *ValidatorContractCallerSession) 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,bytes32) regData)

func (*ValidatorContractCallerSession) GetRoleAdmin

func (_ValidatorContract *ValidatorContractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ValidatorContractCallerSession) HasRole

func (_ValidatorContract *ValidatorContractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ValidatorContractCallerSession) IsActive

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) LicenseContract

func (_ValidatorContract *ValidatorContractCallerSession) LicenseContract() (common.Address, error)

LicenseContract is a free data retrieval call binding the contract method 0xe2c52b9d.

Solidity: function licenseContract() view returns(address)

func (*ValidatorContractCallerSession) LicenseOperator

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) LicenseOwner

func (_ValidatorContract *ValidatorContractCallerSession) LicenseOwner(tokenId *big.Int) (common.Address, error)

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

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

func (*ValidatorContractCallerSession) LicensePrice

func (_ValidatorContract *ValidatorContractCallerSession) LicensePrice(quantity *big.Int, promoCode string) (*big.Int, error)

LicensePrice is a free data retrieval call binding the contract method 0x342d88c6.

Solidity: function licensePrice(uint256 quantity, string promoCode) view returns(uint256)

func (*ValidatorContractCallerSession) Locked

func (_ValidatorContract *ValidatorContractCallerSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*ValidatorContractCallerSession) Network

func (_ValidatorContract *ValidatorContractCallerSession) Network() (common.Address, error)

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

Solidity: function network() view returns(address)

func (*ValidatorContractCallerSession) NodesOwned

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) OperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) OperatorLicenseCount

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) OperatorLicenses

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) Operators

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) OperatorsEddKey

func (_ValidatorContract *ValidatorContractCallerSession) OperatorsEddKey(arg0 []byte) ([32]byte, error)

OperatorsEddKey is a free data retrieval call binding the contract method 0x2555a068.

Solidity: function operatorsEddKey(bytes ) view returns(bytes32)

func (*ValidatorContractCallerSession) OperatorsOwner

func (_ValidatorContract *ValidatorContractCallerSession) 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 (*ValidatorContractCallerSession) OtherLicenseContract

func (_ValidatorContract *ValidatorContractCallerSession) OtherLicenseContract() (common.Address, error)

OtherLicenseContract is a free data retrieval call binding the contract method 0x26732bfe.

Solidity: function otherLicenseContract() view returns(address)

func (*ValidatorContractCallerSession) Owner

func (_ValidatorContract *ValidatorContractCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ValidatorContractCallerSession) SupportsInterface

func (_ValidatorContract *ValidatorContractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ValidatorContractCallerSession) TotalAccounts

func (_ValidatorContract *ValidatorContractCallerSession) TotalAccounts() (*big.Int, error)

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

Solidity: function totalAccounts() view returns(uint256)

type ValidatorContractFilterer

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

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

func NewValidatorContractFilterer

func NewValidatorContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ValidatorContractFilterer, error)

NewValidatorContractFilterer creates a new log filterer instance of ValidatorContract, bound to a specific deployed contract.

func (*ValidatorContractFilterer) FilterInitialized

func (_ValidatorContract *ValidatorContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*ValidatorContractInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*ValidatorContractFilterer) FilterOwnershipTransferred

func (_ValidatorContract *ValidatorContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ValidatorContractOwnershipTransferredIterator, error)

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

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

func (*ValidatorContractFilterer) FilterPurchaseEvent

func (_ValidatorContract *ValidatorContractFilterer) FilterPurchaseEvent(opts *bind.FilterOpts, account []common.Address) (*ValidatorContractPurchaseEventIterator, 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 (*ValidatorContractFilterer) FilterReceived

func (_ValidatorContract *ValidatorContractFilterer) FilterReceived(opts *bind.FilterOpts) (*ValidatorContractReceivedIterator, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*ValidatorContractFilterer) FilterRoleAdminChanged

func (_ValidatorContract *ValidatorContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ValidatorContractRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ValidatorContractFilterer) FilterRoleGranted

func (_ValidatorContract *ValidatorContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ValidatorContractRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ValidatorContractFilterer) FilterRoleRevoked

func (_ValidatorContract *ValidatorContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ValidatorContractRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ValidatorContractFilterer) ParseInitialized

func (_ValidatorContract *ValidatorContractFilterer) ParseInitialized(log types.Log) (*ValidatorContractInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*ValidatorContractFilterer) ParseOwnershipTransferred

func (_ValidatorContract *ValidatorContractFilterer) ParseOwnershipTransferred(log types.Log) (*ValidatorContractOwnershipTransferred, error)

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

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

func (*ValidatorContractFilterer) ParsePurchaseEvent

func (_ValidatorContract *ValidatorContractFilterer) ParsePurchaseEvent(log types.Log) (*ValidatorContractPurchaseEvent, 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 (*ValidatorContractFilterer) ParseReceived

func (_ValidatorContract *ValidatorContractFilterer) ParseReceived(log types.Log) (*ValidatorContractReceived, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*ValidatorContractFilterer) ParseRoleAdminChanged

func (_ValidatorContract *ValidatorContractFilterer) ParseRoleAdminChanged(log types.Log) (*ValidatorContractRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ValidatorContractFilterer) ParseRoleGranted

func (_ValidatorContract *ValidatorContractFilterer) ParseRoleGranted(log types.Log) (*ValidatorContractRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ValidatorContractFilterer) ParseRoleRevoked

func (_ValidatorContract *ValidatorContractFilterer) ParseRoleRevoked(log types.Log) (*ValidatorContractRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ValidatorContractFilterer) WatchInitialized

func (_ValidatorContract *ValidatorContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ValidatorContractInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*ValidatorContractFilterer) WatchOwnershipTransferred

func (_ValidatorContract *ValidatorContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ValidatorContractOwnershipTransferred, 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 (*ValidatorContractFilterer) WatchPurchaseEvent

func (_ValidatorContract *ValidatorContractFilterer) WatchPurchaseEvent(opts *bind.WatchOpts, sink chan<- *ValidatorContractPurchaseEvent, 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 (*ValidatorContractFilterer) WatchReceived

func (_ValidatorContract *ValidatorContractFilterer) WatchReceived(opts *bind.WatchOpts, sink chan<- *ValidatorContractReceived) (event.Subscription, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*ValidatorContractFilterer) WatchRoleAdminChanged

func (_ValidatorContract *ValidatorContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ValidatorContractRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ValidatorContractFilterer) WatchRoleGranted

func (_ValidatorContract *ValidatorContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ValidatorContractRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ValidatorContractFilterer) WatchRoleRevoked

func (_ValidatorContract *ValidatorContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ValidatorContractRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type ValidatorContractInitialized

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

ValidatorContractInitialized represents a Initialized event raised by the ValidatorContract contract.

type ValidatorContractInitializedIterator

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

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

func (*ValidatorContractInitializedIterator) Close

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

func (*ValidatorContractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractInitializedIterator) 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 ValidatorContractOwnershipTransferred

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

ValidatorContractOwnershipTransferred represents a OwnershipTransferred event raised by the ValidatorContract contract.

type ValidatorContractOwnershipTransferredIterator

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

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

func (*ValidatorContractOwnershipTransferredIterator) Close

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

func (*ValidatorContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractOwnershipTransferredIterator) 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 ValidatorContractPurchaseEvent

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

ValidatorContractPurchaseEvent represents a PurchaseEvent event raised by the ValidatorContract contract.

type ValidatorContractPurchaseEventIterator

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

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

func (*ValidatorContractPurchaseEventIterator) Close

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

func (*ValidatorContractPurchaseEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractPurchaseEventIterator) 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 ValidatorContractRaw

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

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

func (*ValidatorContractRaw) Call

func (_ValidatorContract *ValidatorContractRaw) 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 (*ValidatorContractRaw) Transact

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

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

func (*ValidatorContractRaw) Transfer

func (_ValidatorContract *ValidatorContractRaw) 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 ValidatorContractReceived

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

ValidatorContractReceived represents a Received event raised by the ValidatorContract contract.

type ValidatorContractReceivedIterator

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

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

func (*ValidatorContractReceivedIterator) Close

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

func (*ValidatorContractReceivedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractReceivedIterator) 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 ValidatorContractRoleAdminChanged

type ValidatorContractRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

ValidatorContractRoleAdminChanged represents a RoleAdminChanged event raised by the ValidatorContract contract.

type ValidatorContractRoleAdminChangedIterator

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

ValidatorContractRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the ValidatorContract contract.

func (*ValidatorContractRoleAdminChangedIterator) Close

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

func (*ValidatorContractRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractRoleAdminChangedIterator) 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 ValidatorContractRoleGranted

type ValidatorContractRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ValidatorContractRoleGranted represents a RoleGranted event raised by the ValidatorContract contract.

type ValidatorContractRoleGrantedIterator

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

ValidatorContractRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the ValidatorContract contract.

func (*ValidatorContractRoleGrantedIterator) Close

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

func (*ValidatorContractRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractRoleGrantedIterator) 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 ValidatorContractRoleRevoked

type ValidatorContractRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ValidatorContractRoleRevoked represents a RoleRevoked event raised by the ValidatorContract contract.

type ValidatorContractRoleRevokedIterator

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

ValidatorContractRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the ValidatorContract contract.

func (*ValidatorContractRoleRevokedIterator) Close

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

func (*ValidatorContractRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ValidatorContractRoleRevokedIterator) 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 ValidatorContractSession

type ValidatorContractSession struct {
	Contract     *ValidatorContract // 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
}

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

func (*ValidatorContractSession) AccountInfo

func (_ValidatorContract *ValidatorContractSession) AccountInfo(addr common.Address) (AccountInfo, error)

AccountInfo is a free data retrieval call binding the contract method 0xa7310b58.

Solidity: function accountInfo(address addr) view returns((bytes[],uint256[]))

func (*ValidatorContractSession) AccountLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) ActiveLicenseCount

func (_ValidatorContract *ValidatorContractSession) ActiveLicenseCount() (*big.Int, error)

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

Solidity: function activeLicenseCount() view returns(uint256)

func (*ValidatorContractSession) ActiveLicensesIndex

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) AuthorizeAdmin

func (_ValidatorContract *ValidatorContractSession) AuthorizeAdmin() (*types.Transaction, error)

AuthorizeAdmin is a paid mutator transaction binding the contract method 0x997c579e.

Solidity: function authorizeAdmin() returns()

func (*ValidatorContractSession) Calibrator

func (_ValidatorContract *ValidatorContractSession) Calibrator() (*big.Int, error)

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

Solidity: function calibrator() view returns(uint256)

func (*ValidatorContractSession) DEFAULTADMINROLE

func (_ValidatorContract *ValidatorContractSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ValidatorContractSession) DeRegisterNodeOperator

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) Fallback

func (_ValidatorContract *ValidatorContractSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*ValidatorContractSession) FillLicenseCountGap

func (_ValidatorContract *ValidatorContractSession) FillLicenseCountGap() (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*ValidatorContractSession) GetCycleActiveLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) GetCycleLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) GetOperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) GetOperatorLicenses

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) GetOperators

func (_ValidatorContract *ValidatorContractSession) GetOperators(page *big.Int, perPage *big.Int) ([]OperatorInfo, error)

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

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

func (*ValidatorContractSession) GetRegistrationData

func (_ValidatorContract *ValidatorContractSession) 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,bytes32) regData)

func (*ValidatorContractSession) GetRoleAdmin

func (_ValidatorContract *ValidatorContractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ValidatorContractSession) GrantRole

func (_ValidatorContract *ValidatorContractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ValidatorContractSession) HasRole

func (_ValidatorContract *ValidatorContractSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ValidatorContractSession) Initialize

func (_ValidatorContract *ValidatorContractSession) Initialize(_network common.Address, _token common.Address, _licenseContract common.Address, _otherLicenseContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address _token, address _licenseContract, address _otherLicenseContract) returns()

func (*ValidatorContractSession) IsActive

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) LicenseContract

func (_ValidatorContract *ValidatorContractSession) LicenseContract() (common.Address, error)

LicenseContract is a free data retrieval call binding the contract method 0xe2c52b9d.

Solidity: function licenseContract() view returns(address)

func (*ValidatorContractSession) LicenseOperator

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) LicenseOwner

func (_ValidatorContract *ValidatorContractSession) LicenseOwner(tokenId *big.Int) (common.Address, error)

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

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

func (*ValidatorContractSession) LicensePrice

func (_ValidatorContract *ValidatorContractSession) LicensePrice(quantity *big.Int, promoCode string) (*big.Int, error)

LicensePrice is a free data retrieval call binding the contract method 0x342d88c6.

Solidity: function licensePrice(uint256 quantity, string promoCode) view returns(uint256)

func (*ValidatorContractSession) Locked

func (_ValidatorContract *ValidatorContractSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*ValidatorContractSession) Network

func (_ValidatorContract *ValidatorContractSession) Network() (common.Address, error)

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

Solidity: function network() view returns(address)

func (*ValidatorContractSession) NodesOwned

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) OperatorCycleLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) OperatorLicenseCount

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) OperatorLicenses

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) Operators

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) OperatorsEddKey

func (_ValidatorContract *ValidatorContractSession) OperatorsEddKey(arg0 []byte) ([32]byte, error)

OperatorsEddKey is a free data retrieval call binding the contract method 0x2555a068.

Solidity: function operatorsEddKey(bytes ) view returns(bytes32)

func (*ValidatorContractSession) OperatorsOwner

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) OtherLicenseContract

func (_ValidatorContract *ValidatorContractSession) OtherLicenseContract() (common.Address, error)

OtherLicenseContract is a free data retrieval call binding the contract method 0x26732bfe.

Solidity: function otherLicenseContract() view returns(address)

func (*ValidatorContractSession) Owner

func (_ValidatorContract *ValidatorContractSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ValidatorContractSession) PurchaseLicense

func (_ValidatorContract *ValidatorContractSession) PurchaseLicense(quantity *big.Int, promoCode string) (*types.Transaction, error)

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

Solidity: function purchaseLicense(uint256 quantity, string promoCode) payable returns(uint256[])

func (*ValidatorContractSession) PurchaseLicenseFor

func (_ValidatorContract *ValidatorContractSession) PurchaseLicenseFor(quantity *big.Int, receiver common.Address, promoCode string) (*types.Transaction, error)

PurchaseLicenseFor is a paid mutator transaction binding the contract method 0xd921884f.

Solidity: function purchaseLicenseFor(uint256 quantity, address receiver, string promoCode) payable returns(uint256[] licenses)

func (*ValidatorContractSession) Receive

func (_ValidatorContract *ValidatorContractSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ValidatorContractSession) RegisterOperator

func (_ValidatorContract *ValidatorContractSession) RegisterOperator(regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

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

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

func (*ValidatorContractSession) RegisterOperatorBytes

func (_ValidatorContract *ValidatorContractSession) RegisterOperatorBytes(regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperatorBytes is a paid mutator transaction binding the contract method 0xb87b14d7.

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

func (*ValidatorContractSession) RenounceOwnership

func (_ValidatorContract *ValidatorContractSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ValidatorContractSession) RenounceRole

func (_ValidatorContract *ValidatorContractSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ValidatorContractSession) RevokeRole

func (_ValidatorContract *ValidatorContractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ValidatorContractSession) SetLicenseContract

func (_ValidatorContract *ValidatorContractSession) SetLicenseContract(addr common.Address) (*types.Transaction, error)

SetLicenseContract is a paid mutator transaction binding the contract method 0x9ae3aff8.

Solidity: function setLicenseContract(address addr) returns()

func (*ValidatorContractSession) SetOtherLicenseContract

func (_ValidatorContract *ValidatorContractSession) SetOtherLicenseContract(addr common.Address) (*types.Transaction, error)

SetOtherLicenseContract is a paid mutator transaction binding the contract method 0xb8f434b1.

Solidity: function setOtherLicenseContract(address addr) returns()

func (*ValidatorContractSession) SupportsInterface

func (_ValidatorContract *ValidatorContractSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ValidatorContractSession) TotalAccounts

func (_ValidatorContract *ValidatorContractSession) TotalAccounts() (*big.Int, error)

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

Solidity: function totalAccounts() view returns(uint256)

func (*ValidatorContractSession) TransferOwnership

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) Withdraw

func (_ValidatorContract *ValidatorContractSession) 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 (*ValidatorContractSession) WithdrawEthers

func (_ValidatorContract *ValidatorContractSession) 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 ValidatorContractTransactor

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

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

func NewValidatorContractTransactor

func NewValidatorContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ValidatorContractTransactor, error)

NewValidatorContractTransactor creates a new write-only instance of ValidatorContract, bound to a specific deployed contract.

func (*ValidatorContractTransactor) AuthorizeAdmin

func (_ValidatorContract *ValidatorContractTransactor) AuthorizeAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

AuthorizeAdmin is a paid mutator transaction binding the contract method 0x997c579e.

Solidity: function authorizeAdmin() returns()

func (*ValidatorContractTransactor) DeRegisterNodeOperator

func (_ValidatorContract *ValidatorContractTransactor) 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 (*ValidatorContractTransactor) Fallback

func (_ValidatorContract *ValidatorContractTransactor) 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 (*ValidatorContractTransactor) FillLicenseCountGap

func (_ValidatorContract *ValidatorContractTransactor) FillLicenseCountGap(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*ValidatorContractTransactor) GrantRole

func (_ValidatorContract *ValidatorContractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ValidatorContractTransactor) Initialize

func (_ValidatorContract *ValidatorContractTransactor) Initialize(opts *bind.TransactOpts, _network common.Address, _token common.Address, _licenseContract common.Address, _otherLicenseContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address _token, address _licenseContract, address _otherLicenseContract) returns()

func (*ValidatorContractTransactor) PurchaseLicense

func (_ValidatorContract *ValidatorContractTransactor) PurchaseLicense(opts *bind.TransactOpts, quantity *big.Int, promoCode string) (*types.Transaction, error)

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

Solidity: function purchaseLicense(uint256 quantity, string promoCode) payable returns(uint256[])

func (*ValidatorContractTransactor) PurchaseLicenseFor

func (_ValidatorContract *ValidatorContractTransactor) PurchaseLicenseFor(opts *bind.TransactOpts, quantity *big.Int, receiver common.Address, promoCode string) (*types.Transaction, error)

PurchaseLicenseFor is a paid mutator transaction binding the contract method 0xd921884f.

Solidity: function purchaseLicenseFor(uint256 quantity, address receiver, string promoCode) payable returns(uint256[] licenses)

func (*ValidatorContractTransactor) Receive

func (_ValidatorContract *ValidatorContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ValidatorContractTransactor) RegisterOperator

func (_ValidatorContract *ValidatorContractTransactor) RegisterOperator(opts *bind.TransactOpts, regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

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

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

func (*ValidatorContractTransactor) RegisterOperatorBytes

func (_ValidatorContract *ValidatorContractTransactor) RegisterOperatorBytes(opts *bind.TransactOpts, regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperatorBytes is a paid mutator transaction binding the contract method 0xb87b14d7.

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

func (*ValidatorContractTransactor) RenounceOwnership

func (_ValidatorContract *ValidatorContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ValidatorContractTransactor) RenounceRole

func (_ValidatorContract *ValidatorContractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ValidatorContractTransactor) RevokeRole

func (_ValidatorContract *ValidatorContractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ValidatorContractTransactor) SetLicenseContract

func (_ValidatorContract *ValidatorContractTransactor) SetLicenseContract(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetLicenseContract is a paid mutator transaction binding the contract method 0x9ae3aff8.

Solidity: function setLicenseContract(address addr) returns()

func (*ValidatorContractTransactor) SetOtherLicenseContract

func (_ValidatorContract *ValidatorContractTransactor) SetOtherLicenseContract(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetOtherLicenseContract is a paid mutator transaction binding the contract method 0xb8f434b1.

Solidity: function setOtherLicenseContract(address addr) returns()

func (*ValidatorContractTransactor) TransferOwnership

func (_ValidatorContract *ValidatorContractTransactor) 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 (*ValidatorContractTransactor) Withdraw

func (_ValidatorContract *ValidatorContractTransactor) 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 (*ValidatorContractTransactor) WithdrawEthers

func (_ValidatorContract *ValidatorContractTransactor) 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 ValidatorContractTransactorRaw

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

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

func (*ValidatorContractTransactorRaw) Transact

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

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

func (*ValidatorContractTransactorRaw) Transfer

func (_ValidatorContract *ValidatorContractTransactorRaw) 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 ValidatorContractTransactorSession

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

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

func (*ValidatorContractTransactorSession) AuthorizeAdmin

func (_ValidatorContract *ValidatorContractTransactorSession) AuthorizeAdmin() (*types.Transaction, error)

AuthorizeAdmin is a paid mutator transaction binding the contract method 0x997c579e.

Solidity: function authorizeAdmin() returns()

func (*ValidatorContractTransactorSession) DeRegisterNodeOperator

func (_ValidatorContract *ValidatorContractTransactorSession) 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 (*ValidatorContractTransactorSession) Fallback

func (_ValidatorContract *ValidatorContractTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*ValidatorContractTransactorSession) FillLicenseCountGap

func (_ValidatorContract *ValidatorContractTransactorSession) FillLicenseCountGap() (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*ValidatorContractTransactorSession) GrantRole

func (_ValidatorContract *ValidatorContractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ValidatorContractTransactorSession) Initialize

func (_ValidatorContract *ValidatorContractTransactorSession) Initialize(_network common.Address, _token common.Address, _licenseContract common.Address, _otherLicenseContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address _token, address _licenseContract, address _otherLicenseContract) returns()

func (*ValidatorContractTransactorSession) PurchaseLicense

func (_ValidatorContract *ValidatorContractTransactorSession) PurchaseLicense(quantity *big.Int, promoCode string) (*types.Transaction, error)

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

Solidity: function purchaseLicense(uint256 quantity, string promoCode) payable returns(uint256[])

func (*ValidatorContractTransactorSession) PurchaseLicenseFor

func (_ValidatorContract *ValidatorContractTransactorSession) PurchaseLicenseFor(quantity *big.Int, receiver common.Address, promoCode string) (*types.Transaction, error)

PurchaseLicenseFor is a paid mutator transaction binding the contract method 0xd921884f.

Solidity: function purchaseLicenseFor(uint256 quantity, address receiver, string promoCode) payable returns(uint256[] licenses)

func (*ValidatorContractTransactorSession) Receive

func (_ValidatorContract *ValidatorContractTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ValidatorContractTransactorSession) RegisterOperator

func (_ValidatorContract *ValidatorContractTransactorSession) RegisterOperator(regData RegistrationData, licenses []*big.Int) (*types.Transaction, error)

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

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

func (*ValidatorContractTransactorSession) RegisterOperatorBytes

func (_ValidatorContract *ValidatorContractTransactorSession) RegisterOperatorBytes(regDataBytes []byte, licenses []*big.Int) (*types.Transaction, error)

RegisterOperatorBytes is a paid mutator transaction binding the contract method 0xb87b14d7.

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

func (*ValidatorContractTransactorSession) RenounceOwnership

func (_ValidatorContract *ValidatorContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ValidatorContractTransactorSession) RenounceRole

func (_ValidatorContract *ValidatorContractTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ValidatorContractTransactorSession) RevokeRole

func (_ValidatorContract *ValidatorContractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ValidatorContractTransactorSession) SetLicenseContract

func (_ValidatorContract *ValidatorContractTransactorSession) SetLicenseContract(addr common.Address) (*types.Transaction, error)

SetLicenseContract is a paid mutator transaction binding the contract method 0x9ae3aff8.

Solidity: function setLicenseContract(address addr) returns()

func (*ValidatorContractTransactorSession) SetOtherLicenseContract

func (_ValidatorContract *ValidatorContractTransactorSession) SetOtherLicenseContract(addr common.Address) (*types.Transaction, error)

SetOtherLicenseContract is a paid mutator transaction binding the contract method 0xb8f434b1.

Solidity: function setOtherLicenseContract(address addr) returns()

func (*ValidatorContractTransactorSession) TransferOwnership

func (_ValidatorContract *ValidatorContractTransactorSession) 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 (*ValidatorContractTransactorSession) Withdraw

func (_ValidatorContract *ValidatorContractTransactorSession) 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 (*ValidatorContractTransactorSession) WithdrawEthers

func (_ValidatorContract *ValidatorContractTransactorSession) WithdrawEthers(to common.Address) (*types.Transaction, error)

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

Solidity: function withdrawEthers(address to) returns()

Jump to

Keyboard shortcuts

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