Skip to content

feat(toolkit): Support batched transactions#812

Merged
gilescope merged 6 commits into
mainfrom
timjroberts/compact-js-onchain-state
Mar 2, 2026
Merged

feat(toolkit): Support batched transactions#812
gilescope merged 6 commits into
mainfrom
timjroberts/compact-js-onchain-state

Conversation

@timjroberts

@timjroberts timjroberts commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Overview

PM-21901
Outputs from generate-intent can be combined into a single batched transaction using multiple --intent-file options when using the send-intent command. However, when using multiple calls to the generate-intent command 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. The generate-intent arguments have been updated to reflect this optional argument.

The toolkit-tokens-minter-e2e.sh script has also been modified to make use of this and now chains the on-chain state file between the usages of the generate-intent command.

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Tests can be found in the Compact.js repository, and the

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

Closes PM-21901

@timjroberts timjroberts requested a review from a team as a code owner February 27, 2026 15:19
@timjroberts timjroberts requested a review from ozgb February 27, 2026 15:23
@github-actions

github-actions Bot commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.19

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 99
LOW LOW 12
INFO INFO 83
TRACE TRACE 0
TOTAL TOTAL 194
Metric Values
Files scanned placeholder 31
Files parsed placeholder 31
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 10

@gilescope gilescope enabled auto-merge March 2, 2026 04:57
@gilescope gilescope added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit 779a16e Mar 2, 2026
36 checks passed
@gilescope gilescope deleted the timjroberts/compact-js-onchain-state branch March 2, 2026 07:21
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants