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.
- {mech_client-0.15.4 → mech_client-0.15.5}/PKG-INFO +1 -1
- mech_client-0.15.5/mech_client/__init__.py +3 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/cli.py +17 -1
- {mech_client-0.15.4 → mech_client-0.15.5}/pyproject.toml +1 -1
- mech_client-0.15.4/mech_client/__init__.py +0 -3
- {mech_client-0.15.4 → mech_client-0.15.5}/LICENSE +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/README.md +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgentMech.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgentRegistry.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgreementStoreManager.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgreementStoreManager.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceNative.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceToken.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionNative.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionToken.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/ComplementaryServiceMetadata.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/DIDRegistry.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/DIDRegistry.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/EscrowPaymentCondition.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/EscrowPaymentCondition.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IERC1155.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IMech.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/IToken.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/LockPaymentCondition.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/LockPaymentCondition.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/MechMarketplace.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NFTSalesTemplate.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NFTSalesTemplate.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NeverminedConfig.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/NeverminedConfig.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionNFT.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionNFT.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionProvider.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionProvider.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/SubscriptionToken.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/TransferNFTCondition.base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/TransferNFTCondition.gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/acn.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_base.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_gnosis.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/config/mech_client_polygon.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/configs/mechs.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/delivery.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/fetch_ipfs_hash.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/helpers/__init__.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/interact.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/marketplace_interact.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_marketplace_subgraph.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_marketplace_tool_management.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/mech_tool_management.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/prompt_to_ipfs.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/push_to_ipfs.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/safe.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/subgraph.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/to_png.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/mech_client/wss.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/__init__.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/benchmark.sh +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/bump.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/deposit_native.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/deposit_token.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscribe.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/agreement_manager.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/base_contract.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/did_registry.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/escrow_payment.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/lock_payment.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/nft.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/nft_sales.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/subscription_provider.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/token.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/transfer_nft.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/envs/base.env +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/envs/gnosis.env +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/manager.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/resources/networks.json +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/utils.py +0 -0
- {mech_client-0.15.4 → mech_client-0.15.5}/scripts/whitelist.py +0 -0
|
@@ -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] =
|
|
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,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/AgreementStoreManager.gnosis.json
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceNative.json
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerFixedPriceToken.json
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionNative.json
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/BalanceTrackerNvmSubscriptionToken.json
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/ComplementaryServiceMetadata.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/mech_client/abis/EscrowPaymentCondition.gnosis.json
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/agreement_manager.py
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/base_contract.py
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/did_registry.py
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/escrow_payment.py
RENAMED
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/lock_payment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.15.4 → mech_client-0.15.5}/scripts/nvm_subscription/contracts/transfer_nft.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|