franlinozz/Archon Gas Action

Run Archon's Mantle gas optimizer on a Solidity source file, comment the L2/L1 gas diff on a PR, and optionally fail on regressions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
source-filePath to the Solidity file to scan. The workflow must checkout the repository first.yes
archon-urlArchon app URL that exposes /api/gas/scan and /api/gas/reports/:id.nohttps://archonaudit.xyz
calls-per-yearTraffic assumption used for annualized savings.no100000
mnt-usdMNT/USD assumption used for annualized savings.no1
github-tokenGitHub token used to post or update a PR comment. Usually secrets.GITHUB_TOKEN.no
commentPost or update a PR comment when running on pull_request.notrue
fail-on-regressionFail if Archon reports a negative L2 gas delta beyond max-regression-l2-gas.notrue
max-regression-l2-gasAllowed L2 gas regression per call before failing. Example: 0 fails on any negative delta.no0
timeout-secondsMaximum time to wait for the queued Archon gas report.no180
namedescription
gas-report-idArchon gas report id.
report-urlPublic Archon gas report URL.
annual-savings-usdAnnualized savings from the report assumptions.
l2-gas-saved-per-callL2 execution gas saved per call.