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.
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/Dockerfile +1 -2
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/PKG-INFO +1 -1
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/pyproject.toml +2 -1
- csm_dashboard-0.2.1/src/abis/__init__.py +1 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/contracts.py +3 -4
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.dockerignore +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.env.example +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.github/workflows/docker-publish.yaml +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.github/workflows/release.yaml +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/.gitignore +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/README.md +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/docker-compose.yml +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/csm-dash-cli.png +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/csm-dash-web.png +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/img/logo.png +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/requirements.txt +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSAccounting.json +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSFeeDistributor.json +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/CSModule.json +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1/src}/abis/stETH.json +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/cli/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/cli/commands.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/config.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/core/types.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/beacon.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/cache.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/etherscan.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/ipfs_logs.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/known_cids.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/lido_api.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/onchain.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/rewards_tree.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/data/strikes.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/main.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/services/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/services/operator_service.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/__init__.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/app.py +0 -0
- {csm_dashboard-0.2.0 → csm_dashboard-0.2.1}/src/web/routes.py +0 -0
- {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
|
|
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
|
[project]
|
|
2
2
|
name = "csm-dashboard"
|
|
3
|
-
version = "0.2.
|
|
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
|
|
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
|
-
|
|
11
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|