sentry

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SentryContractABI = SentryContractMetaData.ABI

SentryContractABI is the input ABI used to generate the binding from. Deprecated: Use SentryContractMetaData.ABI instead.

View Source
var SentryContractMetaData = &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\"}]",
}

SentryContractMetaData contains all meta data concerning the SentryContract 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 SentryContract

type SentryContract struct {
	SentryContractCaller     // Read-only binding to the contract
	SentryContractTransactor // Write-only binding to the contract
	SentryContractFilterer   // Log filterer for contract events
}

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

func NewSentryContract

func NewSentryContract(address common.Address, backend bind.ContractBackend) (*SentryContract, error)

NewSentryContract creates a new instance of SentryContract, bound to a specific deployed contract.

type SentryContractCaller

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

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

func NewSentryContractCaller

func NewSentryContractCaller(address common.Address, caller bind.ContractCaller) (*SentryContractCaller, error)

NewSentryContractCaller creates a new read-only instance of SentryContract, bound to a specific deployed contract.

func (*SentryContractCaller) AccountInfo

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) AccountLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) ActiveLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) ActiveLicensesIndex

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) Calibrator

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) DEFAULTADMINROLE

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetCycleActiveLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetCycleLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetOperatorCycleLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetOperatorLicenses

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetOperators

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetRegistrationData

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) GetRoleAdmin

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) HasRole

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) IsActive

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) LicenseContract

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) LicenseOperator

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) LicenseOwner

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) LicensePrice

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) Locked

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) Network

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) NodesOwned

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OperatorCycleLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OperatorLicenseCount

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OperatorLicenses

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) Operators

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OperatorsEddKey

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OperatorsOwner

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) OtherLicenseContract

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) Owner

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) SupportsInterface

func (_SentryContract *SentryContractCaller) 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 (*SentryContractCaller) TotalAccounts

func (_SentryContract *SentryContractCaller) 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 SentryContractCallerRaw

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

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

func (*SentryContractCallerRaw) Call

func (_SentryContract *SentryContractCallerRaw) 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 SentryContractCallerSession

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

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

func (*SentryContractCallerSession) AccountInfo

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) AccountLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) ActiveLicenseCount

func (_SentryContract *SentryContractCallerSession) ActiveLicenseCount() (*big.Int, error)

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

Solidity: function activeLicenseCount() view returns(uint256)

func (*SentryContractCallerSession) ActiveLicensesIndex

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) Calibrator

func (_SentryContract *SentryContractCallerSession) Calibrator() (*big.Int, error)

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

Solidity: function calibrator() view returns(uint256)

func (*SentryContractCallerSession) DEFAULTADMINROLE

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetCycleActiveLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetCycleLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetOperatorCycleLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetOperatorLicenses

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetOperators

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetRegistrationData

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) GetRoleAdmin

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) HasRole

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) IsActive

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) LicenseContract

func (_SentryContract *SentryContractCallerSession) LicenseContract() (common.Address, error)

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

Solidity: function licenseContract() view returns(address)

func (*SentryContractCallerSession) LicenseOperator

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) LicenseOwner

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) LicensePrice

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) Locked

func (_SentryContract *SentryContractCallerSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*SentryContractCallerSession) Network

func (_SentryContract *SentryContractCallerSession) Network() (common.Address, error)

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

Solidity: function network() view returns(address)

func (*SentryContractCallerSession) NodesOwned

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OperatorCycleLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OperatorLicenseCount

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OperatorLicenses

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) Operators

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OperatorsEddKey

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OperatorsOwner

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) OtherLicenseContract

func (_SentryContract *SentryContractCallerSession) OtherLicenseContract() (common.Address, error)

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

Solidity: function otherLicenseContract() view returns(address)

func (*SentryContractCallerSession) Owner

func (_SentryContract *SentryContractCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SentryContractCallerSession) SupportsInterface

func (_SentryContract *SentryContractCallerSession) 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 (*SentryContractCallerSession) TotalAccounts

func (_SentryContract *SentryContractCallerSession) TotalAccounts() (*big.Int, error)

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

Solidity: function totalAccounts() view returns(uint256)

type SentryContractFilterer

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

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

func NewSentryContractFilterer

func NewSentryContractFilterer(address common.Address, filterer bind.ContractFilterer) (*SentryContractFilterer, error)

NewSentryContractFilterer creates a new log filterer instance of SentryContract, bound to a specific deployed contract.

func (*SentryContractFilterer) FilterInitialized

func (_SentryContract *SentryContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*SentryContractInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*SentryContractFilterer) FilterOwnershipTransferred

func (_SentryContract *SentryContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SentryContractOwnershipTransferredIterator, error)

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

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

func (*SentryContractFilterer) FilterPurchaseEvent

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

func (_SentryContract *SentryContractFilterer) FilterReceived(opts *bind.FilterOpts) (*SentryContractReceivedIterator, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*SentryContractFilterer) FilterRoleAdminChanged

func (_SentryContract *SentryContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SentryContractRoleAdminChangedIterator, 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 (*SentryContractFilterer) FilterRoleGranted

func (_SentryContract *SentryContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SentryContractRoleGrantedIterator, 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 (*SentryContractFilterer) FilterRoleRevoked

func (_SentryContract *SentryContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SentryContractRoleRevokedIterator, 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 (*SentryContractFilterer) ParseInitialized

func (_SentryContract *SentryContractFilterer) ParseInitialized(log types.Log) (*SentryContractInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*SentryContractFilterer) ParseOwnershipTransferred

func (_SentryContract *SentryContractFilterer) ParseOwnershipTransferred(log types.Log) (*SentryContractOwnershipTransferred, error)

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

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

func (*SentryContractFilterer) ParsePurchaseEvent

func (_SentryContract *SentryContractFilterer) ParsePurchaseEvent(log types.Log) (*SentryContractPurchaseEvent, 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 (*SentryContractFilterer) ParseReceived

func (_SentryContract *SentryContractFilterer) ParseReceived(log types.Log) (*SentryContractReceived, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*SentryContractFilterer) ParseRoleAdminChanged

func (_SentryContract *SentryContractFilterer) ParseRoleAdminChanged(log types.Log) (*SentryContractRoleAdminChanged, 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 (*SentryContractFilterer) ParseRoleGranted

func (_SentryContract *SentryContractFilterer) ParseRoleGranted(log types.Log) (*SentryContractRoleGranted, 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 (*SentryContractFilterer) ParseRoleRevoked

func (_SentryContract *SentryContractFilterer) ParseRoleRevoked(log types.Log) (*SentryContractRoleRevoked, 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 (*SentryContractFilterer) WatchInitialized

func (_SentryContract *SentryContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SentryContractInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*SentryContractFilterer) WatchOwnershipTransferred

func (_SentryContract *SentryContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SentryContractOwnershipTransferred, 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 (*SentryContractFilterer) WatchPurchaseEvent

func (_SentryContract *SentryContractFilterer) WatchPurchaseEvent(opts *bind.WatchOpts, sink chan<- *SentryContractPurchaseEvent, 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 (*SentryContractFilterer) WatchReceived

func (_SentryContract *SentryContractFilterer) WatchReceived(opts *bind.WatchOpts, sink chan<- *SentryContractReceived) (event.Subscription, error)

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

Solidity: event Received(address arg0, uint256 arg1)

func (*SentryContractFilterer) WatchRoleAdminChanged

func (_SentryContract *SentryContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SentryContractRoleAdminChanged, 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 (*SentryContractFilterer) WatchRoleGranted

func (_SentryContract *SentryContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SentryContractRoleGranted, 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 (*SentryContractFilterer) WatchRoleRevoked

func (_SentryContract *SentryContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SentryContractRoleRevoked, 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 SentryContractInitialized

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

SentryContractInitialized represents a Initialized event raised by the SentryContract contract.

type SentryContractInitializedIterator

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

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

func (*SentryContractInitializedIterator) Close

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

func (*SentryContractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractInitializedIterator) 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 SentryContractOwnershipTransferred

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

SentryContractOwnershipTransferred represents a OwnershipTransferred event raised by the SentryContract contract.

type SentryContractOwnershipTransferredIterator

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

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

func (*SentryContractOwnershipTransferredIterator) Close

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

func (*SentryContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractOwnershipTransferredIterator) 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 SentryContractPurchaseEvent

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

SentryContractPurchaseEvent represents a PurchaseEvent event raised by the SentryContract contract.

type SentryContractPurchaseEventIterator

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

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

func (*SentryContractPurchaseEventIterator) Close

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

func (*SentryContractPurchaseEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractPurchaseEventIterator) 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 SentryContractRaw

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

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

func (*SentryContractRaw) Call

func (_SentryContract *SentryContractRaw) 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 (*SentryContractRaw) Transact

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

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

func (*SentryContractRaw) Transfer

func (_SentryContract *SentryContractRaw) 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 SentryContractReceived

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

SentryContractReceived represents a Received event raised by the SentryContract contract.

type SentryContractReceivedIterator

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

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

func (*SentryContractReceivedIterator) Close

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

func (*SentryContractReceivedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractReceivedIterator) 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 SentryContractRoleAdminChanged

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

SentryContractRoleAdminChanged represents a RoleAdminChanged event raised by the SentryContract contract.

type SentryContractRoleAdminChangedIterator

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

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

func (*SentryContractRoleAdminChangedIterator) Close

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

func (*SentryContractRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractRoleAdminChangedIterator) 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 SentryContractRoleGranted

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

SentryContractRoleGranted represents a RoleGranted event raised by the SentryContract contract.

type SentryContractRoleGrantedIterator

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

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

func (*SentryContractRoleGrantedIterator) Close

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

func (*SentryContractRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractRoleGrantedIterator) 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 SentryContractRoleRevoked

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

SentryContractRoleRevoked represents a RoleRevoked event raised by the SentryContract contract.

type SentryContractRoleRevokedIterator

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

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

func (*SentryContractRoleRevokedIterator) Close

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

func (*SentryContractRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SentryContractRoleRevokedIterator) 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 SentryContractSession

type SentryContractSession struct {
	Contract     *SentryContract   // 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
}

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

func (*SentryContractSession) AccountInfo

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) AccountLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) ActiveLicenseCount

func (_SentryContract *SentryContractSession) ActiveLicenseCount() (*big.Int, error)

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

Solidity: function activeLicenseCount() view returns(uint256)

func (*SentryContractSession) ActiveLicensesIndex

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) AuthorizeAdmin

func (_SentryContract *SentryContractSession) AuthorizeAdmin() (*types.Transaction, error)

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

Solidity: function authorizeAdmin() returns()

func (*SentryContractSession) Calibrator

func (_SentryContract *SentryContractSession) Calibrator() (*big.Int, error)

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

Solidity: function calibrator() view returns(uint256)

func (*SentryContractSession) DEFAULTADMINROLE

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) DeRegisterNodeOperator

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Fallback

func (_SentryContract *SentryContractSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*SentryContractSession) FillLicenseCountGap

func (_SentryContract *SentryContractSession) FillLicenseCountGap() (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*SentryContractSession) GetCycleActiveLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetCycleLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetOperatorCycleLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetOperatorLicenses

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetOperators

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetRegistrationData

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GetRoleAdmin

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) GrantRole

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) HasRole

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Initialize

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) IsActive

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) LicenseContract

func (_SentryContract *SentryContractSession) LicenseContract() (common.Address, error)

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

Solidity: function licenseContract() view returns(address)

func (*SentryContractSession) LicenseOperator

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) LicenseOwner

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) LicensePrice

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Locked

func (_SentryContract *SentryContractSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*SentryContractSession) Network

func (_SentryContract *SentryContractSession) Network() (common.Address, error)

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

Solidity: function network() view returns(address)

func (*SentryContractSession) NodesOwned

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OperatorCycleLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OperatorLicenseCount

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OperatorLicenses

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Operators

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OperatorsEddKey

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OperatorsOwner

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) OtherLicenseContract

func (_SentryContract *SentryContractSession) OtherLicenseContract() (common.Address, error)

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

Solidity: function otherLicenseContract() view returns(address)

func (*SentryContractSession) Owner

func (_SentryContract *SentryContractSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SentryContractSession) PurchaseLicense

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) PurchaseLicenseFor

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Receive

func (_SentryContract *SentryContractSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SentryContractSession) RegisterOperator

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) RegisterOperatorBytes

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) RenounceOwnership

func (_SentryContract *SentryContractSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SentryContractSession) RenounceRole

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) RevokeRole

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) SetLicenseContract

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) SetOtherLicenseContract

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) SupportsInterface

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) TotalAccounts

func (_SentryContract *SentryContractSession) TotalAccounts() (*big.Int, error)

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

Solidity: function totalAccounts() view returns(uint256)

func (*SentryContractSession) TransferOwnership

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) Withdraw

func (_SentryContract *SentryContractSession) 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 (*SentryContractSession) WithdrawEthers

func (_SentryContract *SentryContractSession) 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 SentryContractTransactor

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

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

func NewSentryContractTransactor

func NewSentryContractTransactor(address common.Address, transactor bind.ContractTransactor) (*SentryContractTransactor, error)

NewSentryContractTransactor creates a new write-only instance of SentryContract, bound to a specific deployed contract.

func (*SentryContractTransactor) AuthorizeAdmin

func (_SentryContract *SentryContractTransactor) AuthorizeAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function authorizeAdmin() returns()

func (*SentryContractTransactor) DeRegisterNodeOperator

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) Fallback

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) FillLicenseCountGap

func (_SentryContract *SentryContractTransactor) FillLicenseCountGap(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*SentryContractTransactor) GrantRole

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) Initialize

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) PurchaseLicense

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) PurchaseLicenseFor

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) Receive

func (_SentryContract *SentryContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SentryContractTransactor) RegisterOperator

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) RegisterOperatorBytes

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) RenounceOwnership

func (_SentryContract *SentryContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SentryContractTransactor) RenounceRole

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) RevokeRole

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) SetLicenseContract

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) SetOtherLicenseContract

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) TransferOwnership

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) Withdraw

func (_SentryContract *SentryContractTransactor) 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 (*SentryContractTransactor) WithdrawEthers

func (_SentryContract *SentryContractTransactor) 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 SentryContractTransactorRaw

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

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

func (*SentryContractTransactorRaw) Transact

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

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

func (*SentryContractTransactorRaw) Transfer

func (_SentryContract *SentryContractTransactorRaw) 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 SentryContractTransactorSession

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

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

func (*SentryContractTransactorSession) AuthorizeAdmin

func (_SentryContract *SentryContractTransactorSession) AuthorizeAdmin() (*types.Transaction, error)

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

Solidity: function authorizeAdmin() returns()

func (*SentryContractTransactorSession) DeRegisterNodeOperator

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) Fallback

func (_SentryContract *SentryContractTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*SentryContractTransactorSession) FillLicenseCountGap

func (_SentryContract *SentryContractTransactorSession) FillLicenseCountGap() (*types.Transaction, error)

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

Solidity: function fillLicenseCountGap() returns()

func (*SentryContractTransactorSession) GrantRole

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) Initialize

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) PurchaseLicense

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) PurchaseLicenseFor

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) Receive

func (_SentryContract *SentryContractTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SentryContractTransactorSession) RegisterOperator

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) RegisterOperatorBytes

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) RenounceOwnership

func (_SentryContract *SentryContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SentryContractTransactorSession) RenounceRole

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) RevokeRole

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) SetLicenseContract

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) SetOtherLicenseContract

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) TransferOwnership

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) Withdraw

func (_SentryContract *SentryContractTransactorSession) 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 (*SentryContractTransactorSession) WithdrawEthers

func (_SentryContract *SentryContractTransactorSession) 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