primecli 0.7.0__tar.gz → 0.7.1__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.7.0 → primecli-0.7.1}/PKG-INFO +1 -1
- {primecli-0.7.0 → primecli-0.7.1}/primecli/degenprime.py +5 -7
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/PKG-INFO +1 -1
- {primecli-0.7.0 → primecli-0.7.1}/pyproject.toml +1 -1
- {primecli-0.7.0 → primecli-0.7.1}/LICENSE +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/README.md +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli/__init__.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli/arbprime.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli/deltaprime.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli/health_monitor.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/SOURCES.txt +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/dependency_links.txt +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/entry_points.txt +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/requires.txt +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/primecli.egg-info/top_level.txt +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/setup.cfg +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_cross_file_identity.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_gas_pricing.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_health_meter.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_health_monitor.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_paraswap_validator.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/tests/test_redstone_encoding.py +0 -0
- {primecli-0.7.0 → primecli-0.7.1}/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.7.
|
|
3
|
+
Version: 0.7.1
|
|
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
|
|
@@ -1114,7 +1114,9 @@ def build_redstone_payload(symbols: list) -> bytes:
|
|
|
1114
1114
|
# Metadata = rest of timestamp + version + data service ID + null terminator
|
|
1115
1115
|
signed_metadata = f"{ts_str[1:]}#0.9.0#{REDSTONE_DATA_SERVICE}\0".encode()
|
|
1116
1116
|
payload += signed_metadata
|
|
1117
|
-
|
|
1117
|
+
# Unsigned metadata size = padding(3) + ts_digit(1) + signed_metadata
|
|
1118
|
+
unsigned_meta_size = len(signed_metadata) + 4
|
|
1119
|
+
payload += unsigned_meta_size.to_bytes(3, "big")
|
|
1118
1120
|
payload += REDSTONE_MARKER
|
|
1119
1121
|
return payload
|
|
1120
1122
|
|
|
@@ -2150,9 +2152,7 @@ def cmd_borrow(pool_name: str, amount: float, execute: bool = False):
|
|
|
2150
2152
|
pa_cs = Web3.to_checksum_address(pa)
|
|
2151
2153
|
account = w3.eth.contract(address=pa_cs, abi=PRIME_ACCOUNT_ABI)
|
|
2152
2154
|
# borrow has remainsSolvent -> needs RedStone price payload appended to calldata.
|
|
2153
|
-
feeds =
|
|
2154
|
-
if symbol in REDSTONE_AVAILABLE_FEEDS and symbol not in feeds:
|
|
2155
|
-
feeds.append(symbol)
|
|
2155
|
+
feeds = sorted(REDSTONE_AVAILABLE_FEEDS)
|
|
2156
2156
|
payload = build_redstone_payload(feeds)
|
|
2157
2157
|
base_calldata = account.encode_abi("borrow", args=[asset_b32(symbol), amount_wei])
|
|
2158
2158
|
data = base_calldata + payload.hex()
|
|
@@ -2883,9 +2883,7 @@ def cmd_execute_withdrawal(pool_name: str, index: int = None, execute: bool = Fa
|
|
|
2883
2883
|
print("Run with --execute to broadcast (pulls the funds to the wallet).")
|
|
2884
2884
|
return
|
|
2885
2885
|
|
|
2886
|
-
feeds =
|
|
2887
|
-
if symbol in REDSTONE_AVAILABLE_FEEDS and symbol not in feeds:
|
|
2888
|
-
feeds.append(symbol)
|
|
2886
|
+
feeds = sorted(REDSTONE_AVAILABLE_FEEDS)
|
|
2889
2887
|
payload = build_redstone_payload(feeds)
|
|
2890
2888
|
base_calldata = account.encode_abi("executeWithdrawalIntent", args=[asset_b32(symbol), ready])
|
|
2891
2889
|
data = base_calldata + payload.hex()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: primecli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
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.7.
|
|
7
|
+
version = "0.7.1"
|
|
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
|
|
File without changes
|
|
File without changes
|