We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d479d2e commit 37954fbCopy full SHA for 37954fb
metrics/hyperliquid.py
@@ -75,9 +75,14 @@ class HTTPGetLogsLatencyMetric(HttpCallLatencyMetricBase):
75
def method(self) -> str:
76
return "eth_getLogs"
77
78
+ @staticmethod
79
+ def validate_state(state_data: dict) -> bool:
80
+ """Validates that required block number exists in state data."""
81
+ return bool(state_data and state_data.get("old_block"))
82
+
83
@staticmethod
84
def get_params_from_state(state_data: dict) -> list:
- """Get parameters for USDC transfer logs from recent block range."""
85
+ """Get parameters for Wrapped HYPE logs from a recent block range."""
86
from_block_hex = state_data["old_block"]
87
from_block_int = int(from_block_hex, 16)
88
to_block_int: int = max(0, from_block_int + 100)
0 commit comments