Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sw-utils"
version = "v0.12.5"
version = "v0.12.6"
description = "StakeWise Python utils"
authors = ["StakeWise Labs <info@stakewise.io>"]
license = "GPL-3.0-or-later"
Expand Down
6 changes: 5 additions & 1 deletion sw_utils/graph/subgraph_committee.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SubgraphCommittee:
def __init__(
self, endpoints: list[str], request_timeout: int, retry_timeout: int, page_size: int = 100
) -> None:
self.graph_clients = []
self.graph_clients: list[GraphClient] = []
self.page_size = page_size

for endpoint in endpoints:
Expand All @@ -28,6 +28,10 @@ def __init__(
)
self.graph_clients.append(graph_client)

async def setup(self) -> None:
for graph_client in self.graph_clients:
await graph_client.setup()

async def fetch_votes(
self, query: DocumentNode, block_number: BlockNumber
) -> 'SubgraphCommitteeVotes':
Expand Down