-
Notifications
You must be signed in to change notification settings - Fork 14
feat: new head endpoint + QoL fixes #41
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new head endpoint to fetch the latest block from vector contracts along with several quality-of-life improvements. Key changes include updating dependency versions and Docker/GitHub Actions configurations, adding a new v1/head/{chain_id} endpoint along with associated chain configuration in the application state, and adjusting build settings for improved performance and security.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main.rs | Added new get_head endpoint, introduced Chain struct and related logic for chain configurations, and updated dependency imports. |
| Dockerfile | Upgraded Rust and Ubuntu base images. |
| Cargo.toml | Updated dependencies including alloy, axum, and jsonrpsee versions. |
| .github/workflows/rust.yml | Upgraded actions and added caching improvements. |
| .github/workflows/release.yml | Updated runner images and changed build profile from release to maxperf. |
| .env.example | Added new environment variable placeholders for chain RPC and contract addresses. |
Comments suppressed due to low confidence (1)
.github/workflows/release.yml:86
- Please confirm that the 'maxperf' build profile is defined in Cargo.toml and that it meets production requirements, as switching from 'release' could affect build optimizations.
BUILD_PROFILE=maxperf
moraesjeremias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait on:
- #40
It's a blocker PR.
Is that not ready to merge? |
v1/head/{chain_id}endpoint to fetch latest block from vector contracts