Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Aug 29, 2024
1 parent 731f390 commit 6ee3d47
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/validators/typings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass
from enum import Enum
from typing import NewType, Sequence, Union
from typing import NewType, Sequence

from eth_typing import BlockNumber, BLSSignature, ChecksumAddress, HexStr
from multiproof import MultiProof, StandardMerkleTree
Expand All @@ -15,14 +15,20 @@ class NetworkValidator:
block_number: BlockNumber


@dataclass
class ExitSignatureShards:
public_keys: list[HexStr]
exit_signatures: list[HexStr]


@dataclass
class Validator:
public_key: HexStr
signature: HexStr
amount_gwei: int
deposit_data_index: int | None = None
exit_signature: BLSSignature | None = None
exit_signature_shards: Union['ExitSignatureShards', None] = None
exit_signature_shards: ExitSignatureShards | None = None

def copy(self) -> 'Validator':
return Validator(
Expand Down Expand Up @@ -51,12 +57,6 @@ def public_keys(self) -> list[HexStr]:
return [v.public_key for v in self.validators]


@dataclass
class ExitSignatureShards:
public_keys: list[HexStr]
exit_signatures: list[HexStr]


@dataclass
# pylint: disable-next=too-many-instance-attributes
class ApprovalRequest:
Expand Down

0 comments on commit 6ee3d47

Please sign in to comment.