acp-plugin-gamesdk 0.1.12__tar.gz → 0.1.14__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: acp-plugin-gamesdk
3
- Version: 0.1.12
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)
@@ -335,8 +335,14 @@ class AcpPlugin:
335
335
  try:
336
336
  state = self.get_acp_state()
337
337
 
338
- if state["jobs"]["active"]["asABuyer"]:
339
- return FunctionResultStatus.FAILED, "You already have an active job as a buyer", {}
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
  [tool.poetry]
2
2
  name = "acp-plugin-gamesdk"
3
- version = "0.1.12"
3
+ version = "0.1.14"
4
4
  description = "ACP Plugin for Python SDK for GAME by Virtuals"
5
5
  authors = ["Steven Lee Soon Fatt <steven@virtuals.io>"]
6
6
  readme = "README.md"
@@ -15,7 +15,7 @@ eth-typing = "^5.2.0"
15
15
  eth-utils = "^5.2.0"
16
16
  requests = "^2.32.3"
17
17
  pydantic = "^2.10.6"
18
- twitter-plugin-gamesdk = ">=0.2.2"
18
+ twitter-plugin-gamesdk = ">=0.2.2,<0.2.4"
19
19
  game-sdk = ">=0.1.5"
20
20
  python-socketio = "^5.11.1"
21
21
  websocket-client = "^1.7.0"