Skip to content

Commit 2f72fd9

Browse files
EvolveArtyezz123
andauthored
✨ bump version to 2.8.11 (#275)
* feat: health endpoint * ✨ bump version to 2.8.11 --------- Co-authored-by: Yasser Tahiri <yasserth19@gmail.com>
1 parent 0fc4c94 commit 2f72fd9

File tree

17 files changed

+1745
-1921
lines changed

17 files changed

+1745
-1921
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.8.10"
1+
__version__ = "2.8.11"

checkpointer/uv.lock

Lines changed: 373 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.8.10"
1+
__version__ = "2.8.11"

lp-pricer/uv.lock

Lines changed: 424 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pragma-sdk/pragma_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.8.10"
1+
__version__ = "2.8.11"

pragma-sdk/uv.lock

Lines changed: 2 additions & 419 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.8.10"
1+
__version__ = "2.8.11"

pragma-utils/uv.lock

Lines changed: 1 addition & 156 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.8.10"
1+
__version__ = "2.8.11"

price-pusher/price_pusher/core/pusher.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
import time
33
import logging
4-
from typing import List, Optional, Dict
4+
from typing import List, Optional, Dict, Callable
55
from starknet_py.contract import InvokeResult
66
from starknet_py.net.client_errors import ClientError
77
from requests.exceptions import RequestException
@@ -30,10 +30,15 @@ async def update_price_feeds(self, entries: List[Entry]) -> Optional[Dict]: ...
3030

3131

3232
class PricePusher(IPricePusher):
33-
def __init__(self, client: PragmaClient):
33+
def __init__(
34+
self,
35+
client: PragmaClient,
36+
on_successful_push: Optional[Callable[[], None]] = None,
37+
):
3438
self.client = client
3539
self.consecutive_push_error = 0
3640
self.onchain_lock = asyncio.Lock()
41+
self.on_successful_push = on_successful_push
3742

3843
# Setup RPC health monitoring if using onchain client
3944
if isinstance(self.client, PragmaOnChainClient):
@@ -82,6 +87,11 @@ async def update_price_feeds(self, entries: List[Entry]) -> Optional[Dict]:
8287
f"(took {(end_t - start_t):.2f}s)"
8388
)
8489
self.consecutive_push_error = 0
90+
91+
# Notify health server of successful push
92+
if self.on_successful_push:
93+
self.on_successful_push()
94+
8595
return response
8696

8797
except (ClientError, RequestException) as e:

0 commit comments

Comments
 (0)