primecli 0.5.7__tar.gz → 0.5.8__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.
- {primecli-0.5.7 → primecli-0.5.8}/PKG-INFO +1 -1
- {primecli-0.5.7 → primecli-0.5.8}/primecli/degenprime.py +10 -1
- {primecli-0.5.7 → primecli-0.5.8}/primecli/health_monitor.py +4 -31
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/PKG-INFO +1 -1
- {primecli-0.5.7 → primecli-0.5.8}/pyproject.toml +1 -1
- {primecli-0.5.7 → primecli-0.5.8}/LICENSE +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/README.md +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli/__init__.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli/arbprime.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli/deltaprime.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/SOURCES.txt +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/dependency_links.txt +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/entry_points.txt +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/requires.txt +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/primecli.egg-info/top_level.txt +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/setup.cfg +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_cross_file_identity.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_gas_pricing.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_health_monitor.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_paraswap_validator.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_redstone_encoding.py +0 -0
- {primecli-0.5.7 → primecli-0.5.8}/tests/test_to_wei_units.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: primecli
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.8
|
|
4
4
|
Summary: Agent-friendly CLI tools for the DeltaPrime (Avalanche + Arbitrum) and DegenPrime (Base) lending and leverage protocols. Preview-by-default; no Etherscan key required.
|
|
5
5
|
Author: Mnemosyne-quest contributors
|
|
6
6
|
License: MIT
|
|
@@ -310,6 +310,8 @@ def resolve_private_key():
|
|
|
310
310
|
Raises with a clear message if none resolve."""
|
|
311
311
|
if _CLI_KEY:
|
|
312
312
|
return _CLI_KEY.strip()
|
|
313
|
+
if _SELECTED_AGENT:
|
|
314
|
+
return _agent_key(_SELECTED_AGENT)
|
|
313
315
|
for env_var in ("DEGENPRIME_PRIVATE_KEY", "DELTAPRIME_PRIVATE_KEY"):
|
|
314
316
|
raw = os.environ.get(env_var)
|
|
315
317
|
if raw:
|
|
@@ -2548,7 +2550,7 @@ def main():
|
|
|
2548
2550
|
def _dispatch():
|
|
2549
2551
|
args = sys.argv[1:] if len(sys.argv) > 1 else []
|
|
2550
2552
|
# Global signing-key override: --key <0xhex>, stripped before command dispatch.
|
|
2551
|
-
global _CLI_KEY
|
|
2553
|
+
global _SELECTED_AGENT, _CLI_KEY
|
|
2552
2554
|
if "--key" in args:
|
|
2553
2555
|
i = args.index("--key")
|
|
2554
2556
|
if i + 1 >= len(args):
|
|
@@ -2556,6 +2558,13 @@ def _dispatch():
|
|
|
2556
2558
|
return
|
|
2557
2559
|
_CLI_KEY = args[i + 1]
|
|
2558
2560
|
del args[i:i + 2]
|
|
2561
|
+
if "--as" in args:
|
|
2562
|
+
i = args.index("--as")
|
|
2563
|
+
if i + 1 >= len(args):
|
|
2564
|
+
print("--as requires an agent name. Example: --as parakletos")
|
|
2565
|
+
return
|
|
2566
|
+
_SELECTED_AGENT = args[i + 1]
|
|
2567
|
+
del args[i:i + 2]
|
|
2559
2568
|
if not args or args[0] in ("-h", "--help"):
|
|
2560
2569
|
print(__doc__)
|
|
2561
2570
|
return
|
|
@@ -560,39 +560,12 @@ def run_tick(
|
|
|
560
560
|
deployed_fail += 1
|
|
561
561
|
|
|
562
562
|
elif pos_type == "lb":
|
|
563
|
-
# LB deposits
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
r = subprocess.run(
|
|
567
|
-
[sys.executable, tool_path, "lb-deposit",
|
|
568
|
-
"--pool", lb_pool, "--amount", f"{split_amt:.2f}",
|
|
569
|
-
"--execute"],
|
|
570
|
-
capture_output=True, text=True, timeout=120,
|
|
571
|
-
)
|
|
572
|
-
if r.returncode == 0:
|
|
573
|
-
deployed_ok += 1
|
|
574
|
-
else:
|
|
575
|
-
result["warning"] = f"lb deposit failed: {r.stderr[:200]}"
|
|
576
|
-
deployed_fail += 1
|
|
577
|
-
except Exception as e:
|
|
578
|
-
result["error"] = f"lb deposit error: {e}"
|
|
579
|
-
deployed_fail += 1
|
|
563
|
+
# LB deposits need pair + amount-x + amount-y (not a single amount),
|
|
564
|
+
# so just leave as USDC for now — manual deployment required.
|
|
565
|
+
result["action"] = f"lb-add needs pair + dual amounts — leaving ${split_amt:.2f} as USDC"
|
|
580
566
|
|
|
581
567
|
elif pos_type == "aero":
|
|
582
|
-
|
|
583
|
-
r = subprocess.run(
|
|
584
|
-
[sys.executable, tool_path, "aerodrome-deposit",
|
|
585
|
-
"--amount", f"{split_amt:.2f}", "--execute"],
|
|
586
|
-
capture_output=True, text=True, timeout=120,
|
|
587
|
-
)
|
|
588
|
-
if r.returncode == 0:
|
|
589
|
-
deployed_ok += 1
|
|
590
|
-
else:
|
|
591
|
-
result["warning"] = f"aerodrome deposit failed: {r.stderr[:200]}"
|
|
592
|
-
deployed_fail += 1
|
|
593
|
-
except Exception as e:
|
|
594
|
-
result["error"] = f"aerodrome deposit error: {e}"
|
|
595
|
-
deployed_fail += 1
|
|
568
|
+
result["action"] = f"aero deposit not yet supported by tool — leaving ${split_amt:.2f} as USDC"
|
|
596
569
|
|
|
597
570
|
if deployed_ok > 0:
|
|
598
571
|
cooldown_file.write_text(str(int(time.time())))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: primecli
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.8
|
|
4
4
|
Summary: Agent-friendly CLI tools for the DeltaPrime (Avalanche + Arbitrum) and DegenPrime (Base) lending and leverage protocols. Preview-by-default; no Etherscan key required.
|
|
5
5
|
Author: Mnemosyne-quest contributors
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "primecli"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.8"
|
|
8
8
|
description = "Agent-friendly CLI tools for the DeltaPrime (Avalanche + Arbitrum) and DegenPrime (Base) lending and leverage protocols. Preview-by-default; no Etherscan key required."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
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
|