Skip to content

Commit c026a1a

Browse files
committed
fix(automations): update generation scrips
1 parent df1e37d commit c026a1a

File tree

7 files changed

+27
-1565
lines changed

7 files changed

+27
-1565
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Each subdirectory includes its own `README.md` with setup and run instructions.
9696
### Run automations
9797
9898
Automations update generated content used by tables/components (for example, contract addresses and feed metadata).
99-
This will update `automations/ftso_feeds.json` and `automations/solidity_reference.json`.
99+
This will update `ftso_feeds.json` and `solidity_reference.json` in `src/features/DataTables/*`.
100100
101101
```bash
102102
npm run automations

automations/custom_feeds.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

automations/feed_table_generator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ def get(cls, name: str) -> "NetworkConfig":
5454

5555
# Configuration
5656
FTSO_RISK_PATH: Final[Path] = Path("ftso_risk.json")
57-
FTSO_FEEDS_PATH: Final[Path] = Path("ftso_feeds.json")
57+
REPO_ROOT: Final[Path] = Path(__file__).resolve().parents[1]
58+
FTSO_FEEDS_PATH: Final[Path] = (
59+
REPO_ROOT / "src" / "features" / "DataTables" / "FtsoFeeds" / "ftso_feeds.json"
60+
)
61+
5862
HARD_CODED_FEEDS: Final[dict[str, dict[str, str]]] = {
5963
"FTM/USD": {
6064
"name": "Fantom",

0 commit comments

Comments
 (0)