Esempio n. 1
0
def status(click_config, config_file):
    """
    Echo a snapshot of live network metadata.
    """
    #
    # Initialize
    #
    ursula_config = UrsulaConfiguration.from_configuration_file(
        filepath=config_file)
    if not ursula_config.federated_only:
        ursula_config.connect_to_blockchain(
            provider_uri=ursula_config.provider_uri)
        ursula_config.connect_to_contracts()

        # Contracts
        paint_contract_status(ursula_config=ursula_config,
                              click_config=click_config)

    # Known Nodes
    paint_known_nodes(ursula=ursula_config)
Esempio n. 2
0
def status(click_config, config_file):
    """
    Echo a snapshot of live network metadata.
    """
    #
    # Initialize
    #
    ursula_config = UrsulaConfiguration.from_configuration_file(
        filepath=config_file)
    if not ursula_config.federated_only:
        ursula_config.get_blockchain_interface(
            provider_uri=ursula_config.provider_uri)
        ursula_config.acquire_agency()

        # Contracts
        paint_contract_status(click_config.emitter,
                              ursula_config=ursula_config,
                              click_config=click_config)

    # Known Nodes
    paint_known_nodes(emitter=click_config.emitter, ursula=ursula_config)
Esempio n. 3
0
 def paintKnownNodes(self):
     """
     Display a list of all known nucypher peers.
     """
     from nucypher.cli.painting import paint_known_nodes
     paint_known_nodes(emitter=self.emitter, ursula=self.ursula)