acp-plugin-gamesdk 0.1.22__py3-none-any.whl → 0.1.24__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.
@@ -268,7 +268,7 @@ class AcpClient:
268
268
  f"Response description: {response.text}\n"
269
269
  )
270
270
 
271
- def get_agent_by_wallet_address(self, wallet_address: str) -> AcpAgent:
271
+ def get_agent_by_wallet_address(self, wallet_address: str) -> Optional[AcpAgent]:
272
272
  url = f"{self.acp_base_url}/agents?filters[walletAddress]={wallet_address}"
273
273
 
274
274
  response = requests.get(
@@ -284,6 +284,9 @@ class AcpClient:
284
284
 
285
285
  result = []
286
286
 
287
+ if len(response_json.get("data", [])) == 0:
288
+ return None
289
+
287
290
  for agent in response_json.get("data", []):
288
291
  if agent["offerings"]:
289
292
  offerings = [AcpOffering(name=offering["name"], price=offering["price"]) for offering in
@@ -80,7 +80,7 @@ class AcpJob:
80
80
  clientName: Optional[str]
81
81
  providerName: Optional[str]
82
82
  desc: Optional[str]
83
- price: float
83
+ price: str
84
84
  providerAddress: Optional[str]
85
85
  clientAddress: Optional[str]
86
86
  phase: AcpJobPhasesDesc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: acp-plugin-gamesdk
3
- Version: 0.1.22
3
+ Version: 0.1.24
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
@@ -1,9 +1,9 @@
1
- acp_plugin_gamesdk/acp_client.py,sha256=rZLdl099XOlMfd3Q5a4pg5FUgtP3VUxDZtiOqYlUYUQ,10008
1
+ acp_plugin_gamesdk/acp_client.py,sha256=DltsE3-vXSNnGu96Mj5sfpCqFm4oHG96O9MNtMnq8RI,10095
2
2
  acp_plugin_gamesdk/acp_plugin.py,sha256=vc357rzmkZyBaKWQdCDUWfBaHfbYHh5bnKckx32gQXA,26911
3
3
  acp_plugin_gamesdk/acp_token.py,sha256=zjW-W7_4JO31K8eLBBw5dn5tb4FrCSag6qGYQi7xkaA,11804
4
4
  acp_plugin_gamesdk/acp_token_abi.py,sha256=nllh9xOuDXxFFdhLklTTdtZxWZd2LcUTBoOP2d9xDTA,22319
5
5
  acp_plugin_gamesdk/configs.py,sha256=4rLOOMbRPqf2RM-Lz5Az7mbUI_a5kgmySZlBiMkB3Mo,1406
6
- acp_plugin_gamesdk/interface.py,sha256=1UXNwUTZootImsBfwfwxuQiAiIa8X4bdcwAPw4on3w8,4419
7
- acp_plugin_gamesdk-0.1.22.dist-info/METADATA,sha256=vK-yndPehZU0VOfN_eOrCbbtRqRsi7YIxdI12roj2G4,12791
8
- acp_plugin_gamesdk-0.1.22.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
- acp_plugin_gamesdk-0.1.22.dist-info/RECORD,,
6
+ acp_plugin_gamesdk/interface.py,sha256=kCWr4ydEIRnmTZsBHEeUSZgPtRUYH8YjEZ81ppIhIGI,4417
7
+ acp_plugin_gamesdk-0.1.24.dist-info/METADATA,sha256=85DM-k9GLMwhLq8-Qm1eJcCcUQ9Fo_62JsI_SwJ1Ow4,12791
8
+ acp_plugin_gamesdk-0.1.24.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
+ acp_plugin_gamesdk-0.1.24.dist-info/RECORD,,