docs: add Safe testnet custody handoff#111
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ac42d59a-afe3-41c5-aa34-f1c032e2b5d0) |
PR Summary by QodoAdd testnet Safe custody handoff docs and Foundry/1Password helper scripts
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
17 rules 1.
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_2dccd194-5304-4bb8-8c5c-2d783088c27c) |
Summary
Adds comprehensive documentation and helper scripts for managing testnet-only Safe custody workflows. This includes:
castandforgecommands that reads passwords from 1Password into temporary 0600 files without exposing them to the clipboard or child environment variables.All scripts and documentation emphasize testnet-only scope, explicit human approval gates, and the production boundary. No real keys, 1Password items, Safe contracts, RPC calls, or transactions are created or modified.
Testing
Verification passed:
Note
Medium Risk
New custody/signing helpers touch keystore and 1Password flows; misuse or bypassing documented approval gates could expose keys or enable unintended broadcasts via the Foundry wrapper.
Overview
Introduces a testnet-only Safe custody prep package for Base Sepolia: three linked docs plus
scripts/safe/helpers, all scoped as unapproved checklists (not authorization to deploy, change owners, or broadcast).Documentation:
SAFE_TESTNET_KEYSTORE_HANDOFF.mdties account creation to explicit human inputs,.env.safe.localpublic config, and production boundaries.SAFE_TESTNET_OWNERSHIP_MANIFEST.mdis a draft 2-of-3 manifest with pending owners and approval gates.SAFE_TESTNET_TRANSACTION_RUNBOOK.mddefines a seven-step review flow (Safe snapshot throughexecTransactionsimulation, hash review, execution, and post-finality verification).Scripts:
create_safe_test_accounts.shcreates or re-verifies Foundry keystores against 1Password (required vault, no overwrite, byte-for-byte backup checks,0700/0600perms);create_foundry_keystore.expectfeeds passwords tocast wallet newwithout argv/env leakage;run_foundry_with_op_password.shsupplies a temp--password-filefromop://forcast/forge.test_safe_account_helpers.shmocksop/castfor vault-required, idempotent rerun, and password-leak checks.Reviewed by Cursor Bugbot for commit 41636ca. Bugbot is set up for automated code reviews on this repo. Configure here.