Skip to content

Commit

Permalink
Use py-ssz package
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc60 committed May 28, 2024
1 parent 997557e commit eaba80a
Show file tree
Hide file tree
Showing 25 changed files with 49 additions and 2,584 deletions.
93 changes: 46 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sw-utils"
version = "0.6.13"
version = "0.6.14"
description = "StakeWise Python utils"
authors = ["StakeWise Labs <[email protected]>"]
license = "GPL-3.0-or-later"
Expand All @@ -13,8 +13,8 @@ py-ecc = "^6.0.0"
ipfshttpclient = "^0.8.0a2"
web3 = "==6.15.1"
tenacity = "==8.2.3"
pyrsistent = "0.19.3"
pyjwt = "==2.8.0"
ssz = "==0.5.0"

[tool.poetry.group.dev.dependencies]
pylint = "^3.0.1"
Expand Down
4 changes: 1 addition & 3 deletions sw_utils/signing.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# pylint: disable=W0511
# TODO: remove once https://github.com/ethereum/py-ssz/issues/127 fixed
import milagro_bls_binding as bls
from eth_typing import BLSPubkey, BLSSignature, HexAddress
from eth_utils import to_canonical_address
from py_ecc.bls import G2ProofOfPossession
from ssz import Serializable, bytes4, bytes32, bytes48, bytes96, uint64

from .ssz import Serializable, bytes4, bytes32, bytes48, bytes96, uint64
from .typings import Bytes32, ConsensusFork

ETH1_ADDRESS_WITHDRAWAL_PREFIX = bytes.fromhex('01')
Expand Down
25 changes: 0 additions & 25 deletions sw_utils/ssz/__init__.py

This file was deleted.

156 changes: 0 additions & 156 deletions sw_utils/ssz/abc.py

This file was deleted.

1 change: 0 additions & 1 deletion sw_utils/ssz/cache/__init__.py

This file was deleted.

Loading

0 comments on commit eaba80a

Please sign in to comment.