Skip to content

Conversation

@QEDK
Copy link
Member

@QEDK QEDK commented May 27, 2025

  • updates Dockerfile to use non-vulnerable images
  • updates actions to use maintained actions and newer machines
  • adds v1/head/{chain_id} endpoint to fetch latest block from vector contracts
  • bump deps
  • bump edition and version

@QEDK QEDK self-assigned this May 27, 2025
@QEDK QEDK added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file labels May 27, 2025
Copy link

Copilot AI left a 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

Copy link
Member

@moraesjeremias moraesjeremias left a 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.

@QEDK
Copy link
Member Author

QEDK commented May 28, 2025

Let's wait on:

Is that not ready to merge?

@0xSasaPrsic 0xSasaPrsic merged commit 138f114 into main May 29, 2025
1 check passed
@0xSasaPrsic 0xSasaPrsic deleted the feat/v1-head branch May 29, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants