Skip to content

feat(scripts): add Safe Transaction Builder JSON output to fund-safe#431

Open
BigLep wants to merge 2 commits intomainfrom
biglep/update-fund-safe-with-json-output
Open

feat(scripts): add Safe Transaction Builder JSON output to fund-safe#431
BigLep wants to merge 2 commits intomainfrom
biglep/update-fund-safe-with-json-output

Conversation

@BigLep
Copy link
Copy Markdown
Contributor

@BigLep BigLep commented Apr 2, 2026

Summary

  • Generates a Safe Transaction Builder–compatible JSON batch file alongside the existing human-readable output
  • Computes the batch checksum (keccak256 of the JSON without the checksum field) matching the Safe UI's expected format
  • Adds --output <file> flag to write the JSON directly to disk, avoiding terminal line-wrapping that corrupts hex calldata when copy-pasting

Test plan

🤖 Generated with Claude Code

Generates a ready-to-import JSON batch file (Safe Transaction Builder
format) in addition to the existing human-readable output. Use
--output batch.json to write directly to a file and avoid terminal
line-wrapping issues that corrupt the hex calldata when copy-pasting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 2, 2026 16:26
@FilOzzy FilOzzy added this to FOC Apr 2, 2026
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Apr 2, 2026
@BigLep BigLep self-assigned this Apr 2, 2026
@BigLep BigLep requested review from rjan90 and rvagg April 2, 2026 16:27
@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting review in FOC Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Safe Transaction Builder JSON batch output to the existing fund-safe helper script so operators can import a pre-built 3-transaction batch into the Safe UI (optionally writing directly to a file to avoid copy/paste issues).

Changes:

  • Generate a Safe Transaction Builder–compatible JSON batch (3 transactions) alongside the existing human-readable output
  • Compute and include the Safe batch checksum (keccak256 of the JSON without the checksum field)
  • Add --output <file> to write the JSON batch to disk

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

3 participants