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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source-file | Path to the Solidity file to scan. The workflow must checkout the repository first. | yes | — |
| archon-url | Archon app URL that exposes /api/gas/scan and /api/gas/reports/:id. | no | https://archonaudit.xyz |
| calls-per-year | Traffic assumption used for annualized savings. | no | 100000 |
| mnt-usd | MNT/USD assumption used for annualized savings. | no | 1 |
| github-token | GitHub token used to post or update a PR comment. Usually secrets.GITHUB_TOKEN. | no | — |
| comment | Post or update a PR comment when running on pull_request. | no | true |
| fail-on-regression | Fail if Archon reports a negative L2 gas delta beyond max-regression-l2-gas. | no | true |
| max-regression-l2-gas | Allowed L2 gas regression per call before failing. Example: 0 fails on any negative delta. | no | 0 |
| timeout-seconds | Maximum time to wait for the queued Archon gas report. | no | 180 |
Outputs
| name | description |
|---|---|
| gas-report-id | Archon gas report id. |
| report-url | Public Archon gas report URL. |
| annual-savings-usd | Annualized savings from the report assumptions. |
| l2-gas-saved-per-call | L2 execution gas saved per call. |