Exemplo n.º 1
0
def inspect(general_config, provider_uri, config_root, registry_infile,
            deployer_address, poa, ignore_solidity_check):
    """Echo owner information and bare contract metadata."""
    emitter = general_config.emitter
    ensure_config_root(config_root)
    initialize_deployer_interface(poa=poa,
                                  provider_uri=provider_uri,
                                  emitter=emitter,
                                  ignore_solidity_check=ignore_solidity_check)
    local_registry = establish_deployer_registry(
        emitter=emitter,
        registry_infile=registry_infile,
        download_registry=not bool(registry_infile))
    paint_deployer_contract_inspection(emitter=emitter,
                                       registry=local_registry,
                                       deployer_address=deployer_address)
Exemplo n.º 2
0
def inspect(general_config, eth_provider_uri, config_root, registry_infile, deployer_address,
            poa, ignore_solidity_check, network):
    """Echo owner information and bare contract metadata."""
    emitter = general_config.emitter
    ensure_config_root(config_root)
    initialize_deployer_interface(poa=poa,
                                  eth_provider_uri=eth_provider_uri,
                                  emitter=emitter,
                                  ignore_solidity_check=ignore_solidity_check)
    download_required = not bool(registry_infile)
    registry = establish_deployer_registry(emitter=emitter,
                                           registry_infile=registry_infile,
                                           download_registry=download_required,
                                           network=network if download_required else None)
    paint_deployer_contract_inspection(emitter=emitter,
                                       registry=registry,
                                       deployer_address=deployer_address)