acp-plugin-gamesdk 0.1.23__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.
- acp_plugin_gamesdk/acp_client.py +4 -1
- {acp_plugin_gamesdk-0.1.23.dist-info → acp_plugin_gamesdk-0.1.24.dist-info}/METADATA +1 -1
- {acp_plugin_gamesdk-0.1.23.dist-info → acp_plugin_gamesdk-0.1.24.dist-info}/RECORD +4 -4
- {acp_plugin_gamesdk-0.1.23.dist-info → acp_plugin_gamesdk-0.1.24.dist-info}/WHEEL +0 -0
acp_plugin_gamesdk/acp_client.py
CHANGED
@@ -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
|
@@ -1,9 +1,9 @@
|
|
1
|
-
acp_plugin_gamesdk/acp_client.py,sha256=
|
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
6
|
acp_plugin_gamesdk/interface.py,sha256=kCWr4ydEIRnmTZsBHEeUSZgPtRUYH8YjEZ81ppIhIGI,4417
|
7
|
-
acp_plugin_gamesdk-0.1.
|
8
|
-
acp_plugin_gamesdk-0.1.
|
9
|
-
acp_plugin_gamesdk-0.1.
|
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,,
|
File without changes
|