Skip to content

Conversation

0xRiz0
Copy link
Contributor

@0xRiz0 0xRiz0 commented Sep 26, 2025

Description

This PR enhances the project makefile with new developer-focused tasks for gas reporting, dependency updates, and environment checks. These improvements streamline developer workflows, enforce best practices, and simplify project maintenance.

Changes

  • Gas-related tasks

    • gas-snapshot: Generate and persist gas usage snapshots for contracts.
    • gas-diff: Compare gas snapshots to identify regressions or improvements.
    • gas-report: Generate detailed gas consumption reports to analyze performance.
  • Dependency and environment tasks

    • check-updates: Check for outdated dependencies.
    • update-foundry: Update Foundry toolchain to the latest version.
    • node-modules: Reinstall and ensure consistency of Node.js dependencies.
    • env-check: Validate .env configuration and ensure required variables are set.

Motivation

  • Ensure gas efficiency is continuously monitored and regressions are quickly detected.
  • Improve developer productivity by adding automated tasks for dependency management and environment validation.
  • Align with industry best practices for CI/CD pipelines and reproducibility.

Impact

  • No runtime or contract-level changes.
  • Developer tooling improvements only.
  • Tasks can be easily integrated into CI pipelines to enforce consistency and quality checks.

Checklist

  • Added gas snapshot, diff, and report tasks.
  • Added update and environment management tasks.
  • Updated makefile PHONY targets list.

@0xRiz0 0xRiz0 self-assigned this Sep 26, 2025
@0xRiz0 0xRiz0 added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 26, 2025
@0xRiz0 0xRiz0 requested review from cantinaverse and removed request for cantinaverse September 26, 2025 15:37
@0xRiz0 0xRiz0 merged commit 298e220 into main Sep 26, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant