Skip to main content

Generates Markdown reports for Forge gas report diffs

Project description

gasdiff

Takes in the path of two Forge gas reports in JSON format, and prints out a gas diff report in Markdown format. Forge JSON gas reports can be generated by running forge test --gas-report --json. We also recommend passing --fuzz-seed 0 so that fuzzy tests receive the same fuzzy parameters before and after changes in the source code.

Usage

python -m gasdiff before.json after.json

Example

Please consult the examples directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gasdiff-0.1.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gasdiff-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file gasdiff-0.1.0.tar.gz.

File metadata

  • Download URL: gasdiff-0.1.0.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for gasdiff-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d2481440b7da65f433c1cfb688fe9514bc434f10170a144a505213e9e540e25
MD5 a619968a53fce9a0fb8566676dd2c63f
BLAKE2b-256 5b7dee99914508f8683e1ac63e2582c60d1e29e43e463a7bdb9a8060ea0e072f

See more details on using hashes here.

File details

Details for the file gasdiff-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gasdiff-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for gasdiff-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 929070febddf2719d966f94db9c7c6c15c6574974abaa797c6be60f1ef824517
MD5 a406e7dad9fa2da59c7c0c6976fe21dd
BLAKE2b-256 17b5ab68ec763e9d286c18a186875b4ad229c0d9ea9e14b35d5dc6ea3bfef5ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page