csm-dashboard 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/Dockerfile +1 -2
  2. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/PKG-INFO +1 -1
  3. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/pyproject.toml +2 -1
  4. csm_dashboard-0.2.1/src/abis/__init__.py +1 -0
  5. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/contracts.py +3 -4
  6. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.dockerignore +0 -0
  7. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.env.example +0 -0
  8. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.github/workflows/docker-publish.yaml +0 -0
  9. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.github/workflows/release.yaml +0 -0
  10. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.gitignore +0 -0
  11. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/README.md +0 -0
  12. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/docker-compose.yml +0 -0
  13. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/csm-dash-cli.png +0 -0
  14. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/csm-dash-web.png +0 -0
  15. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/logo.png +0 -0
  16. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/requirements.txt +0 -0
  17. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/__init__.py +0 -0
  18. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSAccounting.json +0 -0
  19. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSFeeDistributor.json +0 -0
  20. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSModule.json +0 -0
  21. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/stETH.json +0 -0
  22. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/cli/__init__.py +0 -0
  23. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/cli/commands.py +0 -0
  24. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/__init__.py +0 -0
  25. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/config.py +0 -0
  26. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/types.py +0 -0
  27. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/__init__.py +0 -0
  28. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/beacon.py +0 -0
  29. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/cache.py +0 -0
  30. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/etherscan.py +0 -0
  31. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/ipfs_logs.py +0 -0
  32. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/known_cids.py +0 -0
  33. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/lido_api.py +0 -0
  34. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/onchain.py +0 -0
  35. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/rewards_tree.py +0 -0
  36. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/strikes.py +0 -0
  37. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/main.py +0 -0
  38. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/services/__init__.py +0 -0
  39. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/services/operator_service.py +0 -0
  40. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/__init__.py +0 -0
  41. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/app.py +0 -0
  42. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/routes.py +0 -0
  43. {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/tests/__init__.py +0 -0
@@ -30,9 +30,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
30
30
  # Copy virtual environment from builder
31
31
  COPY --from=builder /opt/venv /opt/venv
32
32
 
33
- # Copy application code and ABIs
33
+ # Copy application code (includes abis inside src/)
34
34
  COPY src ./src
35
- COPY abis ./abis
36
35
 
37
36
  # Create csm alias script
38
37
  RUN echo '#!/bin/sh\npython -m src.main "$@"' > /usr/local/bin/csm && \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csm-dashboard
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Lido CSM Operator Dashboard for tracking validator earnings
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: fastapi>=0.104
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "csm-dashboard"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Lido CSM Operator Dashboard for tracking validator earnings"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -32,3 +32,4 @@ build-backend = "hatchling.build"
32
32
 
33
33
  [tool.hatch.build.targets.wheel]
34
34
  packages = ["src"]
35
+ artifacts = ["src/abis/*.json"]
@@ -0,0 +1 @@
1
+ # ABI files package
@@ -1,15 +1,14 @@
1
1
  """Contract ABIs and helpers."""
2
2
 
3
3
  import json
4
- from pathlib import Path
4
+ from importlib import resources
5
5
  from typing import Any
6
6
 
7
7
 
8
8
  def load_abi(name: str) -> list[dict[str, Any]]:
9
9
  """Load ABI from JSON file in abis directory."""
10
- abi_path = Path(__file__).parent.parent.parent / "abis" / f"{name}.json"
11
- with open(abi_path) as f:
12
- return json.load(f)
10
+ abi_file = resources.files("src.abis").joinpath(f"{name}.json")
11
+ return json.loads(abi_file.read_text())
13
12
 
14
13
 
15
14
  # Load ABIs at module level for easy import
File without changes
File without changes
File without changes