Open oberstet opened 2 years ago
crossbar/__init__.py: legal Print crossbar license terms
crossbar/shell/command.py:class CmdGetDomainLicense(Cmd):
crossbar/shell/command.py: GLOBAL REALM: get domain software stack license.
crossbar/shell/command.py: result = await session.call('crossbarfabriccenter.domain.get_license')
crossbar/shell/main.py:@cmd_show.command(name='license', help='get domain software stack license')
crossbar/shell/main.py:def cmd_show_domain_license(ctx):
crossbar/shell/main.py: _command = command.CmdGetDomainLicense(ctx.obj.realm)
crossbar/network/_api.py: "text": "XBR End User License Agreement (EULA) ..."
crossbar/master/node/controller.py: def get_license(self, details=None):
crossbar/master/node/controller.py: Returns CFC software stack license information.
crossbar/master/node/controller.py: :procedure: ``crossbarfabriccenter.domain.get_license``
crossbar/master/node/controller.py: :return: License information, including enabled features and limits.
crossbar/master/node/controller.py: self.log.debug('{klass}.get_license(details={details})', klass=self.__class__.__name__, details=details)
crossbar/master/node/controller.py: # FIXME: check blockchain for license information
crossbar/master/node/controller.py: license = {
crossbar/master/node/controller.py: 'terms': 'https://crossbario.com/license',
crossbar/master/node/controller.py: return license
crossbar/master/node/node.py:class License(object):
crossbar/master/node/node.py: def __init__(self, license_type):
crossbar/master/node/node.py: assert license_type in [20010]
crossbar/master/node/node.py: self._type = license_type
crossbar/master/node/node.py: if license_type == 20010:
crossbar/master/node/node.py: # the node license under which this master node will be running (instance of :class:License)
crossbar/master/node/node.py: self._license = None
crossbar/master/node/node.py: # FIXME: for testing use hard-coded "trial license" (no. 20010)
crossbar/master/node/node.py: xbr_node_license = 20010
crossbar/master/node/node.py: # xbr_node_license = xbr.xbrnetwork.functions.getNodeLicense(xbr_node_id).call()
crossbar/master/node/node.py: 'Node is configured for XBR (xbr_node_id="{xbr_node_id}", xbr_node_domain="{xbr_node_domain}", xbr_node_type="{xbr_node_type}", xbr_node_license="{xbr_node_license}", xbr_node_config="{xbr_node_config}")',
crossbar/master/node/node.py: xbr_node_license=hlid(xbr_node_license))
crossbar/master/node/node.py: self._license = License(xbr_node_license)
crossbar/master/node/node.py: self.log.info('Node is registered in the XBR network with license type={license}',
crossbar/master/node/node.py: license=self._license.type)
crossbar/master/webservice/registerme.py: master_license = yield self._service_agent.call('crossbarfabriccenter.domain.get_license')
crossbar/master/webservice/registerme.py: 'master_license': master_license,
crossbar/node/main.py: docs = [personality.LEGAL, personality.LICENSE, personality.LICENSE_FOR_API, personality.LICENSES_OSS]
crossbar/node/main.py: print('Type "{} legal" to read legal notices, terms of use and license and privacy information.'.format(prog))
crossbar/personality.py: LICENSE = ('crossbar', 'LICENSE')
crossbar/personality.py: LICENSE_FOR_API = ('crossbar', 'LICENSE-FOR-API')
crossbar/personality.py: LICENSES_OSS = ('crossbar', 'LICENSES-OSS')
crossbar/edge/webservice/pairme.py: # master_license = yield self._service_agent.call('crossbarfabriccenter.domain.get_license')
crossbar/edge/webservice/pairme.py: # 'master_license': master_license,
https://github.com/crossbario/xbr-protocol/blob/master/contracts/XBRDomain.sol
get_status
get_version
get_license
- this depends on https://github.com/crossbario/crossbar/issues/1988 and https://github.com/crossbario/crossbar/issues/1989https://github.com/crossbario/crossbar/blob/ca8d383f01231e2b3f986e791f215f12f2deee5d/crossbar/master/node/controller.py#L56
https://github.com/crossbario/crossbar/blob/ca8d383f01231e2b3f986e791f215f12f2deee5d/crossbar/master/node/controller.py#L155
https://github.com/crossbario/crossbar/blob/ca8d383f01231e2b3f986e791f215f12f2deee5d/crossbar/master/node/config.json#L247