acp-plugin-gamesdk 0.1.12__py3-none-any.whl → 0.1.14__py3-none-any.whl
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.
- acp_plugin_gamesdk/acp_plugin.py +8 -2
- {acp_plugin_gamesdk-0.1.12.dist-info → acp_plugin_gamesdk-0.1.14.dist-info}/METADATA +2 -2
- {acp_plugin_gamesdk-0.1.12.dist-info → acp_plugin_gamesdk-0.1.14.dist-info}/RECORD +4 -4
- {acp_plugin_gamesdk-0.1.12.dist-info → acp_plugin_gamesdk-0.1.14.dist-info}/WHEEL +0 -0
acp_plugin_gamesdk/acp_plugin.py
CHANGED
@@ -335,8 +335,14 @@ class AcpPlugin:
|
|
335
335
|
try:
|
336
336
|
state = self.get_acp_state()
|
337
337
|
|
338
|
-
|
339
|
-
|
338
|
+
existing_job = next(
|
339
|
+
(job for job in state["jobs"]["active"]["asABuyer"]
|
340
|
+
if job["providerAddress"] == sellerWalletAddress),
|
341
|
+
None
|
342
|
+
)
|
343
|
+
|
344
|
+
if existing_job:
|
345
|
+
return FunctionResultStatus.FAILED, f"You already have an active job as a buyer with {existing_job['providerAddress']} - complete the current job before initiating a new one", {}
|
340
346
|
|
341
347
|
if not sellerWalletAddress:
|
342
348
|
return FunctionResultStatus.FAILED, "Missing seller wallet address - specify the agent you want to buy from", {}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: acp-plugin-gamesdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.14
|
4
4
|
Summary: ACP Plugin for Python SDK for GAME by Virtuals
|
5
5
|
Author: Steven Lee Soon Fatt
|
6
6
|
Author-email: steven@virtuals.io
|
@@ -21,7 +21,7 @@ Requires-Dist: python-dotenv (>=1.1.0,<2.0.0)
|
|
21
21
|
Requires-Dist: python-socketio (>=5.11.1,<6.0.0)
|
22
22
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
23
23
|
Requires-Dist: rich (>=13.9.4,<15.0.0)
|
24
|
-
Requires-Dist: twitter-plugin-gamesdk (>=0.2.2)
|
24
|
+
Requires-Dist: twitter-plugin-gamesdk (>=0.2.2,<0.2.4)
|
25
25
|
Requires-Dist: virtuals-sdk (>=0.1.6,<0.2.0)
|
26
26
|
Requires-Dist: web3 (>=7.9.0,<8.0.0)
|
27
27
|
Requires-Dist: websocket-client (>=1.7.0,<2.0.0)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
acp_plugin_gamesdk/acp_client.py,sha256=zF-FLFJ2PbS3LeI3cDx63pJyWCAVb8YQn7yZHQQ9wtY,9254
|
2
|
-
acp_plugin_gamesdk/acp_plugin.py,sha256=
|
2
|
+
acp_plugin_gamesdk/acp_plugin.py,sha256=H5bI_bMDoaxVU5aXxeT8mPh6C3dIrHzq1SVrQiIbDXQ,28583
|
3
3
|
acp_plugin_gamesdk/acp_token.py,sha256=E7nkLVfXSzMozFoVcYGzVQyocnKQpohb_YlByZtVY_8,12078
|
4
4
|
acp_plugin_gamesdk/acp_token_abi.py,sha256=nllh9xOuDXxFFdhLklTTdtZxWZd2LcUTBoOP2d9xDTA,22319
|
5
5
|
acp_plugin_gamesdk/interface.py,sha256=TsNQ74qW80YcUESOmBWX0wWzCTXG7S9eSF1mnfoJj0U,3983
|
6
|
-
acp_plugin_gamesdk-0.1.
|
7
|
-
acp_plugin_gamesdk-0.1.
|
8
|
-
acp_plugin_gamesdk-0.1.
|
6
|
+
acp_plugin_gamesdk-0.1.14.dist-info/METADATA,sha256=jhcfcXWy3nIVbSCxoQbBjzIZbKawR_PiLmV6GXjCZn8,12231
|
7
|
+
acp_plugin_gamesdk-0.1.14.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
8
|
+
acp_plugin_gamesdk-0.1.14.dist-info/RECORD,,
|
File without changes
|