provider_uri=option_provider_uri(), gas_strategy=option_gas_strategy, max_gas_price=option_max_gas_price, signer_uri=option_signer_uri, contract_name=option_contract_name(required=False), # TODO: Make this required see Issue #2314 poa=option_poa, force=option_force, hw_wallet=option_hw_wallet, deployer_address=option_deployer_address, registry_infile=option_registry_infile, registry_outfile=option_registry_outfile, dev=click.option('--dev', '-d', help="Forcibly use the development registry filepath.", is_flag=True), config_root=option_config_root, etherscan=option_etherscan, ignore_solidity_check=option_ignore_solidity_version, network=option_network(required=True) ) @click.group() @click.option('--solidity-version', help="Echo the supported solidity version.", is_flag=True, callback=echo_solidity_version, expose_value=False, is_eager=True) def deploy(): """Manage contract and registry deployment.""" @deploy.command(name='download-registry')
def setup(self, general_config) -> tuple: emitter = setup_emitter(general_config) registry = get_registry(network=self.network, registry_filepath=self.registry_filepath) blockchain = connect_to_blockchain(emitter=emitter, provider_uri=self.provider_uri) return emitter, registry, blockchain group_registry_options = group_options( RegistryOptions, geth=option_geth, poa=option_poa, light=option_light, registry_filepath=option_registry_filepath, network=option_network(), provider_uri=option_provider_uri( default=os.environ.get(NUCYPHER_ENVVAR_PROVIDER_URI)), ) @click.group() def status(): """Echo a snapshot of live NuCypher Network metadata.""" @status.command() @group_registry_options @group_general_config def network(general_config, registry_options): """Overall information of the NuCypher Network."""
def setup(self, general_config) -> tuple: emitter = setup_emitter(general_config) registry = get_registry(network=self.network, registry_filepath=self.registry_filepath) blockchain = connect_to_blockchain(emitter=emitter, provider_uri=self.provider_uri) return emitter, registry, blockchain group_registry_options = group_options( RegistryOptions, geth=option_geth, poa=option_poa, light=option_light, registry_filepath=option_registry_filepath, network=option_network(default=NetworksInventory.DEFAULT, validate=True), # TODO: See 2214 provider_uri=option_provider_uri( default=os.environ.get(NUCYPHER_ENVVAR_PROVIDER_URI)), ) @click.group() def status(): """Echo a snapshot of live NuCypher Network metadata.""" @status.command() @group_registry_options @group_general_config def network(general_config, registry_options): """Overall information of the NuCypher Network."""
max_gas_price=option_max_gas_price, worker_address=click.option( '--worker-address', help="Run the worker-ursula with a specified address", type=EIP55_CHECKSUM_ADDRESS), federated_only=option_federated_only, rest_host=click.option( '--rest-host', help="The host IP address to run Ursula network services on", type=WORKER_IP), rest_port=click.option( '--rest-port', help="The host port to run Ursula network services on", type=NETWORK_PORT), db_filepath=option_db_filepath, network=option_network(default=NetworksInventory.DEFAULT), registry_filepath=option_registry_filepath, poa=option_poa, light=option_light, dev=option_dev, availability_check=click.option( '--availability-check/--disable-availability-check', help="Enable or disable self-health checks while running", is_flag=True, default=None), lonely=option_lonely, ) class UrsulaCharacterOptions:
max_gas_price=option_max_gas_price, worker_address=click.option( '--worker-address', help="Run the worker-ursula with a specified address", type=EIP55_CHECKSUM_ADDRESS), federated_only=option_federated_only, rest_host=click.option( '--rest-host', help="The host IP address to run Ursula network services on", type=WORKER_IP), rest_port=click.option( '--rest-port', help="The host port to run Ursula network services on", type=NETWORK_PORT), db_filepath=option_db_filepath, network=option_network( ), # Don't set defaults here or they will be applied to config updates. Use the Config API. registry_filepath=option_registry_filepath, poa=option_poa, light=option_light, dev=option_dev, availability_check=click.option( '--availability-check/--disable-availability-check', help="Enable or disable self-health checks while running", is_flag=True, default=None), lonely=option_lonely, ) class UrsulaCharacterOptions:
hw_wallet=option_hw_wallet, deployer_address=option_deployer_address, registry_infile=option_registry_infile, registry_outfile=option_registry_outfile, dev=click.option('--dev', '-d', help="Forcibly use the development registry filepath.", is_flag=True), se_test_mode=click.option( '--se-test-mode', help="Enable test mode for StakingEscrow in deployment.", is_flag=True), config_root=option_config_root, etherscan=option_etherscan, ignore_solidity_check=option_ignore_solidity_version, network=option_network(required=True, default=NetworksInventory.DEFAULT)) @click.group() @click.option('--solidity-version', help="Echo the supported solidity version.", is_flag=True, callback=echo_solidity_version, expose_value=False, is_eager=True) def deploy(): """Manage contract and registry deployment.""" @deploy.command(name='download-registry') @group_general_config