Squads-Protocol/v4 ? reverse-engineered prompt

Reverse engineered prompt

Build me the Squads v4 multisig project for Solana.

I want a secure on chain multisig system that lets a group manage a vault together, with support for things like spending limits, time locks, roles, sub accounts, multiple party payments, and address lookup tables. Please make sure there is a smart contract, a TypeScript SDK for apps to talk to it, and Rust support for program and client use.

I’d also like the repo to build cleanly, include tests, and be set up so I can run it locally against a validator and verify that the compiled program matches what is on chain. If anything needs current Solana or Anchor docs, look those up online and use the latest reliable approach.

Keep it production minded, since this is handling real assets, and make the default flow easy for developers who want to create and manage multisig wallets from an app.