Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(automations): improve readme and fix new feeds assignee #540

Merged
merged 3 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The static files are generated in the `build` directory. To serve the production
npm run serve
```

**Tip**: Test search functionality using a production build.
**Tip**: Search only works in production builds.

## 📄 **Autogenerate Solidity Documentation**

Expand Down Expand Up @@ -111,34 +111,21 @@ To generate Solidity documentation:

## 🔄 **Automations**

Ensure [uv](https://docs.astral.sh/uv/) dependencies are synced:
A set of scripts that:

```bash
cd automations
uv sync
```

### Automated Tasks
- Update contract addresses (from onchain `ContractRegistry`)
- Update feed risks (from `automations/*_risk.json`)

1. **Update Feed IDs:**
**Run all automations:**

Generate and save feed IDs in `anchor_feeds.json` and `block_latency_feeds.json`:
1. Ensure [uv](https://docs.astral.sh/uv/) dependencies are synced:

```bash
uv run feed_table_generator.py
cd automations
uv sync
```

2. **Update Contract Addresses:**

Fetch and save contract addresses in `solidity_reference.json`:

```bash
uv run solidity_reference_table_generator.py
```

3. **Run All Automations:**

Execute all tasks at once:
2. Execute automations:

```bash
npm run automations
Expand Down
2 changes: 1 addition & 1 deletion automations/check_new_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MAX_MARKET_CAP_RANK = 100
HEADER_TEMPLATE = """---
title: "[auto_req]: Potential New Feeds"
assignees: dineshpinto
assignees: swarna1101
labels: "enhancement"
---
"""
Expand Down
Loading