cartha-cli 1.0.3__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/PKG-INFO +1 -1
  2. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/prove_lock.py +9 -9
  3. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/pyproject.toml +1 -1
  4. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/.github/workflows/README.md +0 -0
  5. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/.github/workflows/ci.yml +0 -0
  6. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/.gitignore +0 -0
  7. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/.ruff.toml +0 -0
  8. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/CONTRIBUTING.md +0 -0
  9. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/LICENSE +0 -0
  10. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/Makefile +0 -0
  11. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/README.md +0 -0
  12. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/__init__.py +0 -0
  13. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/bt.py +0 -0
  14. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/__init__.py +0 -0
  15. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/common.py +0 -0
  16. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/config.py +0 -0
  17. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/health.py +0 -0
  18. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/help.py +0 -0
  19. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/miner_password.py +0 -0
  20. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/miner_status.py +0 -0
  21. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/pair_status.py +0 -0
  22. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/pools.py +0 -0
  23. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/register.py +0 -0
  24. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/shared_options.py +0 -0
  25. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/commands/version.py +0 -0
  26. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/config.py +0 -0
  27. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/display.py +0 -0
  28. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/eth712.py +0 -0
  29. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/main.py +0 -0
  30. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/pair.py +0 -0
  31. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/testnet/README.md +0 -0
  32. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/testnet/__init__.py +0 -0
  33. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/testnet/pool_ids.py +0 -0
  34. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/utils.py +0 -0
  35. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/verifier.py +0 -0
  36. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/cartha_cli/wallet.py +0 -0
  37. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/docs/COMMANDS.md +0 -0
  38. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/docs/FEEDBACK.md +0 -0
  39. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/tests/conftest.py +0 -0
  40. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/tests/test_cli.py +0 -0
  41. {cartha_cli-1.0.3 → cartha_cli-1.0.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cartha-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: CLI utilities for Cartha subnet miners.
5
5
  Project-URL: Homepage, https://cartha.finance
6
6
  Project-URL: Repository, https://github.com/General-Tao-Ventures/cartha-cli
@@ -383,24 +383,24 @@ def prove_lock(
383
383
  auto_chain_id = None
384
384
  try:
385
385
  auto_chain_id = pool_id_to_chain_id(pool_id)
386
- except NameError:
386
+ except (NameError, AttributeError):
387
387
  # Function not available - this shouldn't happen if imports worked
388
388
  # But handle gracefully by trying to import it
389
389
  try:
390
- from testnet.pool_ids import pool_id_to_chain_id
390
+ from ..testnet.pool_ids import pool_id_to_chain_id
391
391
  auto_chain_id = pool_id_to_chain_id(pool_id)
392
- except ImportError:
392
+ except (ImportError, ModuleNotFoundError):
393
393
  pass
394
394
 
395
395
  if not auto_chain_id:
396
396
  # Fallback: try to get from vault address
397
397
  try:
398
398
  auto_chain_id = vault_address_to_chain_id(vault)
399
- except NameError:
399
+ except (NameError, AttributeError):
400
400
  try:
401
- from testnet.pool_ids import vault_address_to_chain_id
401
+ from ..testnet.pool_ids import vault_address_to_chain_id
402
402
  auto_chain_id = vault_address_to_chain_id(vault)
403
- except ImportError:
403
+ except (ImportError, ModuleNotFoundError):
404
404
  pass
405
405
 
406
406
  if auto_chain_id:
@@ -431,11 +431,11 @@ def prove_lock(
431
431
  expected_chain_id = None
432
432
  try:
433
433
  expected_chain_id = vault_address_to_chain_id(vault)
434
- except NameError:
434
+ except (NameError, AttributeError):
435
435
  try:
436
- from testnet.pool_ids import vault_address_to_chain_id
436
+ from ..testnet.pool_ids import vault_address_to_chain_id
437
437
  expected_chain_id = vault_address_to_chain_id(vault)
438
- except ImportError:
438
+ except (ImportError, ModuleNotFoundError):
439
439
  pass
440
440
 
441
441
  if expected_chain_id and expected_chain_id != chain:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cartha-cli"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "CLI utilities for Cartha subnet miners."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11,<3.12"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes