feat(toolkit): Support batched transactions#812
Merged
Conversation
… it into the command args in `execute_circuit`
…atched circuit calls
…n `generate-intent` calls
Contributor
gilescope
approved these changes
Mar 2, 2026
gilescope
pushed a commit
that referenced
this pull request
Apr 8, 2026
m2ux
added a commit
that referenced
this pull request
Apr 23, 2026
Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux
added a commit
that referenced
this pull request
Apr 23, 2026
Signed-off-by: Mike Clay <mike.clay@shielded.io>
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.








Overview
PM-21901
Outputs from
generate-intentcan be combined into a single batched transaction using multiple--intent-fileoptions when using thesend-intentcommand. However, when using multiple calls to thegenerate-intentcommand it was impossible to chain the contract state changes between calls. As such, subsequent calls meant that the contract was executing with the same on-chain (or public) state as what is presented in the initial call.This PR updates Compact.js to version
'2.4.2'which allows circuit invocations to write out the on-chain state to a file that can be passed as an input into further invocations. Thegenerate-intentarguments have been updated to reflect this optional argument.The
toolkit-tokens-minter-e2e.shscript has also been modified to make use of this and now chains the on-chain state file between the usages of thegenerate-intentcommand.🗹 TODO before merging
📌 Submission Checklist
🧪 Testing Evidence
Tests can be found in the Compact.js repository, and the
🔱 Fork Strategy
Links
Closes PM-21901