doublezero-telemetry 0.0.2__py3-none-any.whl → 0.0.3__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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: doublezero-telemetry
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: DoubleZero Telemetry SDK
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: borsh-incremental
|
|
7
|
+
Requires-Dist: doublezero-serviceability
|
|
7
8
|
Requires-Dist: httpx>=0.27
|
|
8
9
|
Requires-Dist: solana>=0.35
|
|
9
10
|
Requires-Dist: solders>=0.21
|
|
@@ -3,10 +3,10 @@ telemetry/client.py,sha256=gImIz7ozpXb87wfYMQrKVplakQ1CSLYvNKZXgAYYf9o,2728
|
|
|
3
3
|
telemetry/config.py,sha256=Vhn6wJjhEsODjGOGXll_ypZQstwHqYdb-9huG6pWs0Y,685
|
|
4
4
|
telemetry/pda.py,sha256=vlentmvAFyvRLYbS65pGxY7oqSCkbHjn8hrwjVaIK28,1416
|
|
5
5
|
telemetry/rpc.py,sha256=G7GPRl0DM3x3p6B3NTdIgjDJTljwCat9-C_XKL5wXwM,1548
|
|
6
|
-
telemetry/state.py,sha256=
|
|
6
|
+
telemetry/state.py,sha256=G_avCcvrxurZcM2zhT5aT90UPxQifurMNIOs-Qc9gak,4595
|
|
7
7
|
telemetry/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
telemetry/tests/test_fixtures.py,sha256=2cDoa5pGcKziDR-eNhrtJ-XCuRMexvnYiv402De-ClU,2985
|
|
9
9
|
telemetry/tests/test_pda.py,sha256=zFzEWbw_UVEppL4W75Lquf3t_4Sob3cbXo0l2Ow3hvM,1340
|
|
10
|
-
doublezero_telemetry-0.0.
|
|
11
|
-
doublezero_telemetry-0.0.
|
|
12
|
-
doublezero_telemetry-0.0.
|
|
10
|
+
doublezero_telemetry-0.0.3.dist-info/METADATA,sha256=GaAAEI6a-dXfCSU2RdTIFeqU0fMMkFLo2TwdSzMNxMw,280
|
|
11
|
+
doublezero_telemetry-0.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
12
|
+
doublezero_telemetry-0.0.3.dist-info/RECORD,,
|
telemetry/state.py
CHANGED
|
@@ -9,7 +9,7 @@ from __future__ import annotations
|
|
|
9
9
|
|
|
10
10
|
from dataclasses import dataclass, field
|
|
11
11
|
|
|
12
|
-
from borsh_incremental import
|
|
12
|
+
from borsh_incremental import DefensiveReader
|
|
13
13
|
from solders.pubkey import Pubkey # type: ignore[import-untyped]
|
|
14
14
|
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ MAX_INTERNET_LATENCY_SAMPLES_PER_ACCOUNT = 3_000
|
|
|
23
23
|
DEVICE_LATENCY_HEADER_SIZE = 1 + 8 + 32 * 6 + 8 + 8 + 4 + 128
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
def _read_pubkey(r:
|
|
26
|
+
def _read_pubkey(r: DefensiveReader) -> Pubkey:
|
|
27
27
|
return Pubkey.from_bytes(r.read_pubkey_raw())
|
|
28
28
|
|
|
29
29
|
|
|
@@ -49,7 +49,7 @@ class DeviceLatencySamples:
|
|
|
49
49
|
f"data too short for device latency header: {len(data)} < {DEVICE_LATENCY_HEADER_SIZE}"
|
|
50
50
|
)
|
|
51
51
|
|
|
52
|
-
r =
|
|
52
|
+
r = DefensiveReader(data)
|
|
53
53
|
|
|
54
54
|
account_type = r.read_u8()
|
|
55
55
|
epoch = r.read_u64()
|
|
@@ -106,7 +106,7 @@ class InternetLatencySamples:
|
|
|
106
106
|
if len(data) < 10:
|
|
107
107
|
raise ValueError("data too short")
|
|
108
108
|
|
|
109
|
-
r =
|
|
109
|
+
r = DefensiveReader(data)
|
|
110
110
|
|
|
111
111
|
account_type = r.read_u8()
|
|
112
112
|
epoch = r.read_u64()
|
|
File without changes
|