mech-client 0.15.4__tar.gz → 0.15.5__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 (78) hide show
  1. {mech_client-0.15.4 → mech_client-0.15.5}/PKG-INFO +1 -1
  2. mech_client-0.15.5/mech_client/__init__.py +3 -0
  3. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/cli.py +17 -1
  4. {mech_client-0.15.4 → mech_client-0.15.5}/pyproject.toml +1 -1
  5. mech_client-0.15.4/mech_client/__init__.py +0 -3
  6. {mech_client-0.15.4 → mech_client-0.15.5}/LICENSE +0 -0
  7. {mech_client-0.15.4 → mech_client-0.15.5}/README.md +0 -0
  8. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgentMech.json +0 -0
  9. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgentRegistry.json +0 -0
  10. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgreementStoreManager.base.json +0 -0
  11. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgreementStoreManager.gnosis.json +0 -0
  12. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceNative.json +0 -0
  13. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceToken.json +0 -0
  14. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionNative.json +0 -0
  15. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionToken.json +0 -0
  16. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/ComplementaryServiceMetadata.json +0 -0
  17. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/DIDRegistry.base.json +0 -0
  18. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/DIDRegistry.gnosis.json +0 -0
  19. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/EscrowPaymentCondition.base.json +0 -0
  20. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/EscrowPaymentCondition.gnosis.json +0 -0
  21. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IERC1155.json +0 -0
  22. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IMech.json +0 -0
  23. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IToken.json +0 -0
  24. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/LockPaymentCondition.base.json +0 -0
  25. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/LockPaymentCondition.gnosis.json +0 -0
  26. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/MechMarketplace.json +0 -0
  27. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NFTSalesTemplate.base.json +0 -0
  28. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NFTSalesTemplate.gnosis.json +0 -0
  29. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NeverminedConfig.base.json +0 -0
  30. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NeverminedConfig.gnosis.json +0 -0
  31. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionNFT.base.json +0 -0
  32. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionNFT.gnosis.json +0 -0
  33. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionProvider.base.json +0 -0
  34. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionProvider.gnosis.json +0 -0
  35. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionToken.base.json +0 -0
  36. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/TransferNFTCondition.base.json +0 -0
  37. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/TransferNFTCondition.gnosis.json +0 -0
  38. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/acn.py +0 -0
  39. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_base.json +0 -0
  40. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_gnosis.json +0 -0
  41. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_polygon.json +0 -0
  42. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/configs/mechs.json +0 -0
  43. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/delivery.py +0 -0
  44. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/fetch_ipfs_hash.py +0 -0
  45. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/helpers/__init__.py +0 -0
  46. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/interact.py +0 -0
  47. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/marketplace_interact.py +0 -0
  48. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_marketplace_subgraph.py +0 -0
  49. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_marketplace_tool_management.py +0 -0
  50. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_tool_management.py +0 -0
  51. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/prompt_to_ipfs.py +0 -0
  52. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/push_to_ipfs.py +0 -0
  53. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/safe.py +0 -0
  54. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/subgraph.py +0 -0
  55. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/to_png.py +0 -0
  56. {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/wss.py +0 -0
  57. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/__init__.py +0 -0
  58. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/benchmark.sh +0 -0
  59. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/bump.py +0 -0
  60. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/deposit_native.py +0 -0
  61. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/deposit_token.py +0 -0
  62. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscribe.py +0 -0
  63. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/agreement_manager.py +0 -0
  64. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/base_contract.py +0 -0
  65. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/did_registry.py +0 -0
  66. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/escrow_payment.py +0 -0
  67. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/lock_payment.py +0 -0
  68. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/nft.py +0 -0
  69. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/nft_sales.py +0 -0
  70. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/subscription_provider.py +0 -0
  71. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/token.py +0 -0
  72. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/transfer_nft.py +0 -0
  73. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/envs/base.env +0 -0
  74. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/envs/gnosis.env +0 -0
  75. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/manager.py +0 -0
  76. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/resources/networks.json +0 -0
  77. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/utils.py +0 -0
  78. {mech_client-0.15.4 → mech_client-0.15.5}/scripts/whitelist.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mech-client
3
- Version: 0.15.4
3
+ Version: 0.15.5
4
4
  Summary: Basic client to interact with a mech
5
5
  License: Apache-2.0
6
6
  Author: David Minarsch
@@ -0,0 +1,3 @@
1
+ """Mech client."""
2
+
3
+ __version__ = "0.15.5"
@@ -249,6 +249,7 @@ def setup_agent_mode(
249
249
  operate=operate,
250
250
  config_path=template,
251
251
  build_only=True,
252
+ use_binary=True,
252
253
  skip_dependency_check=False,
253
254
  )
254
255
  except requests.exceptions.HTTPError as e:
@@ -350,6 +351,7 @@ def interact( # pylint: disable=too-many-arguments,too-many-locals
350
351
  priority_mech: str,
351
352
  use_prepaid: bool,
352
353
  use_offchain: bool,
354
+ key: Optional[str],
353
355
  tools: Optional[tuple],
354
356
  safe: Optional[str] = None,
355
357
  extra_attribute: Optional[List[str]] = None,
@@ -363,7 +365,7 @@ def interact( # pylint: disable=too-many-arguments,too-many-locals
363
365
  try:
364
366
  agent_mode = is_agent_mode(ctx)
365
367
  click.echo(f"Running interact with agent_mode={agent_mode}")
366
- key_path: Optional[str] = None
368
+ key_path: Optional[str] = key
367
369
  key_password: Optional[str] = None
368
370
 
369
371
  extra_attributes_dict: Dict[str, Any] = {}
@@ -830,6 +832,7 @@ def tool_io_schema_for_marketplace_mech(tool_id: str, chain_config: str) -> None
830
832
  def deposit_native(
831
833
  ctx: click.Context,
832
834
  amount_to_deposit: str,
835
+ key: Optional[str] = None,
833
836
  safe: Optional[str] = None,
834
837
  chain_config: Optional[str] = None,
835
838
  ) -> None:
@@ -838,6 +841,8 @@ def deposit_native(
838
841
  agent_mode = is_agent_mode(ctx)
839
842
  click.echo(f"Running deposit native with agent_mode={agent_mode}")
840
843
 
844
+ key_path: Optional[str] = key
845
+ key_password: Optional[str] = None
841
846
  if agent_mode:
842
847
  safe, key_path, key_password = fetch_agent_mode_data(chain_config)
843
848
  if not safe or not key_path:
@@ -890,6 +895,7 @@ def deposit_native(
890
895
  def deposit_token(
891
896
  ctx: click.Context,
892
897
  amount_to_deposit: str,
898
+ key: Optional[str] = None,
893
899
  safe: Optional[str] = None,
894
900
  chain_config: Optional[str] = None,
895
901
  ) -> None:
@@ -898,6 +904,8 @@ def deposit_token(
898
904
  agent_mode = is_agent_mode(ctx)
899
905
  click.echo(f"Running deposit token with agent_mode={agent_mode}")
900
906
 
907
+ key_path: Optional[str] = key
908
+ key_password: Optional[str] = None
901
909
  if agent_mode:
902
910
  safe, key_path, key_password = fetch_agent_mode_data(chain_config)
903
911
  if not safe or not key_path:
@@ -950,12 +958,15 @@ def nvm_subscribe(
950
958
  ctx: click.Context,
951
959
  chain_config: str,
952
960
  safe: Optional[str] = None,
961
+ key: Optional[str] = None,
953
962
  ) -> None:
954
963
  """Allows to purchase nvm subscription for nvm mech requests."""
955
964
  try:
956
965
  agent_mode = is_agent_mode(ctx)
957
966
  click.echo(f"Running purchase nvm subscription with agent_mode={agent_mode}")
958
967
 
968
+ key_path: Optional[str] = key
969
+ key_password: Optional[str] = None
959
970
  if agent_mode:
960
971
  safe, key_path, key_password = fetch_agent_mode_data(chain_config)
961
972
  if not safe or not key_path:
@@ -963,6 +974,11 @@ def nvm_subscribe(
963
974
  "Cannot fetch safe or key data for the agent mode."
964
975
  )
965
976
 
977
+ if not key_path:
978
+ raise ClickException(
979
+ "Private key path is required. Use --key option or set up agent mode."
980
+ )
981
+
966
982
  nvm_subscribe_main(
967
983
  agent_mode=agent_mode,
968
984
  safe_address=safe,
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mech-client"
3
- version = "0.15.4"
3
+ version = "0.15.5"
4
4
  description = "Basic client to interact with a mech"
5
5
  authors = ["David Minarsch <david.minarsch@googlemail.com>"]
6
6
  readme = "README.md"
@@ -1,3 +0,0 @@
1
- """Mech client."""
2
-
3
- __version__ = "0.15.4"
File without changes
File without changes