doublezero-revenue-distribution 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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: doublezero-revenue-distribution
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: DoubleZero Revenue Distribution SDK
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: base58>=2.1
@@ -6,11 +6,11 @@ revdist/oracle.py,sha256=uEdwl6O0UoBiCLpoLty4-1Y0KqZACeHBVKs9P-KcuGY,922
6
6
  revdist/pda.py,sha256=hZ2wgEnyCi-LJuTycV6Ef-QUGXRgLb-AHXHrp_58zVg,2686
7
7
  revdist/reserved.py,sha256=0nvEbKK6DdzjY44Jn9zw6cP6NhXiGvjLli_reFMIb7A,546
8
8
  revdist/rpc.py,sha256=rzS_6rB5OLxsu4EcM8KpY4p6PSBB5PBZlm289WmzrWs,1631
9
- revdist/state.py,sha256=P0zeBmqXGPCfrPVP4TqjVDvPjHHFolkURMil5x6Ngws,17784
9
+ revdist/state.py,sha256=amif1C1IB0hyvEiBPupLcoZwByggBxC5wnU2QTh1gfs,17778
10
10
  revdist/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  revdist/tests/test_compat.py,sha256=rj-AKiu2135AzZSRLjo9RqB88JddfTNrts66Sz9Sn8g,10274
12
12
  revdist/tests/test_fixtures.py,sha256=sjFuCW4d8cwCXrXdM2T8OO7mEphp9JfGKWKkoZMFdf4,8069
13
13
  revdist/tests/test_pda.py,sha256=3wQmRg1b16D19lt_GFCuWThwNH4lOB1T3OqEvBqb2XY,1318
14
- doublezero_revenue_distribution-0.0.2.dist-info/METADATA,sha256=8spN6RKMIvJIB9Ob_LVTi1hdFl_PdG5YtASpZhRSThk,288
15
- doublezero_revenue_distribution-0.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- doublezero_revenue_distribution-0.0.2.dist-info/RECORD,,
14
+ doublezero_revenue_distribution-0.0.3.dist-info/METADATA,sha256=gt27Yo1ULTYIRwyQZ2rDPyA5vaPbE1w4eQzkkjGFAkE,288
15
+ doublezero_revenue_distribution-0.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ doublezero_revenue_distribution-0.0.3.dist-info/RECORD,,
revdist/state.py CHANGED
@@ -10,7 +10,7 @@ from __future__ import annotations
10
10
  import struct
11
11
  from dataclasses import dataclass
12
12
 
13
- from borsh_incremental import IncrementalReader
13
+ from borsh_incremental import DefensiveReader
14
14
 
15
15
  from revdist.reserved import Reserved
16
16
  from solders.pubkey import Pubkey # type: ignore[import-untyped]
@@ -415,7 +415,7 @@ class ComputedSolanaValidatorDebts:
415
415
 
416
416
  @classmethod
417
417
  def from_bytes(cls, data: bytes) -> ComputedSolanaValidatorDebts:
418
- r = IncrementalReader(data)
418
+ r = DefensiveReader(data)
419
419
  blockhash = r.read_bytes(32)
420
420
  first_epoch = r.read_u64()
421
421
  last_epoch = r.read_u64()
@@ -458,7 +458,7 @@ class ShapleyOutputStorage:
458
458
 
459
459
  @classmethod
460
460
  def from_bytes(cls, data: bytes) -> ShapleyOutputStorage:
461
- r = IncrementalReader(data)
461
+ r = DefensiveReader(data)
462
462
  epoch = r.read_u64()
463
463
  count = r.read_u32()
464
464
  rewards = []