feat(keeper): add --dry-run flag for local task simulation#126
Merged
ayomideadeniran merged 1 commit intoSoroLabs:mainfrom Mar 29, 2026
Merged
feat(keeper): add --dry-run flag for local task simulation#126ayomideadeniran merged 1 commit intoSoroLabs:mainfrom
ayomideadeniran merged 1 commit intoSoroLabs:mainfrom
Conversation
Adds a dry-run mode to the keeper that builds and simulates each task's execute() transaction against the Soroban RPC without signing, submitting, or paying any fees. Useful for validating configuration and debugging task eligibility before going live. Changes: - keeper/src/dryRun.js: new module that runs steps 1-3 of executeTask (build → simulate → assemble) and logs full execution details, then intentionally stops before sign/submit - keeper/index.js: parse --dry-run from process.argv; swap executeTask for dryRunTask when the flag is present; log a clear startup banner - keeper/package.json: add "dry-run" npm script (node index.js --dry-run) - keeper/QUICKSTART.md: new Step 3 documenting dry-run usage, sample output, status codes, and common error explanations Closes SoroLabs#112
|
@jerrymusaga Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Your pr is under review. |
Contributor
Author
@ayomideadeniran okay sir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
keeper/src/dryRun.js— a new executor that builds and simulates each task'sexecute()transaction via Soroban RPC (steps: build → simulate → assemble) then intentionally stops before signing or submitting. Logs estimated fees, task eligibility, and any contract-level errors.keeper/index.jsto parse--dry-runfromprocess.argvand swap indryRunTaskinstead of the live executor. Prints a clear startup banner when the flag is active."dry-run": "node index.js --dry-run"topackage.jsonscripts.QUICKSTART.mdwith a new Step 3 covering dry-run usage, sample log output, status code reference (DRY_RUN_SUCCESS,DRY_RUN_SIM_FAILED,DRY_RUN_ERROR), and common troubleshooting cases.Closes #112
Test plan
npm run dry-runwith a valid.env— confirm no transactions are submitted and simulation results are loggedDRY_RUN_ERRORwith "Account not found"DRY_RUN_SIM_FAILEDwith contract errornpm start(no flag) — confirm live behaviour is unchanged🤖 Generated with Claude Code