From f3052e17249f2a487422b7b8dc3502ee25391d4b Mon Sep 17 00:00:00 2001 From: Mike Odnis Date: Mon, 21 Sep 2026 11:48:01 -0400 Subject: [PATCH] docs(readme): give each H2 heading a single authoritative section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two H2 headings each appeared twice, so a reader hitting the second copy could not tell which one was current. Configuration: both copies described Anchor.toml and version environment variables, so they were merged into the first. The second copy documented `SOLANA_CLI_VERSION`, a variable that appears nowhere in the repo — the override actually honoured by scripts/setup.sh and the Dockerfile is `SOLANA_VERSION`, which the kept section already documents. Its one detail not already covered, the Anchor.toml `[scripts]` entrypoint, is carried over as a bullet. Development: the two copies covered different things. The first is implementation guidance (error handling, CPI, AI tooling, threat model); the second is how to validate the repo (scripts/test.sh, integration targets), so it is renamed to "Testing and Validation". No content moved. The README has no table of contents or in-page anchor links, so no link needed updating. --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 05251a1..3172c28 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ Configuration for local development and deployments is managed in `Anchor.toml`. * **`[programs.localnet]` / `[programs.devnet]`**: Defines custom Program IDs for each cluster. Ensure these match the `declare_id!("...")` macro in your Rust code. * **`[provider]`**: Configures the default cluster URL and wallet keypair for Anchor commands. +* **`[scripts]`**: Defines the `anchor test` entrypoint (`bash ./scripts/test.sh`). * **Environment Overrides**: * `SOLANA_VERSION`: Ensure the `solana-cli` version matches dependencies. * `ANCHOR_VERSION`: Managed by `avm` (via Nix). @@ -243,15 +244,6 @@ Configuration for local development and deployments is managed in `Anchor.toml`. * **Arguments**: `ipfs_cid`, `lat`, `lon`, `alt_m`, `delivered_at`. * **Accounts**: `drone` (mut), `airspace` (account info), `delivery_record` (init), `system_program`. -## Configuration - -Configuration is primarily handled via `Anchor.toml` and environment variables. - -* **`Anchor.toml`**: Specifies program IDs for different clusters (`localnet`, `devnet`), default provider settings (cluster URL, wallet), and script commands. -* **Environment Variables**: - * `SOLANA_CLI_VERSION`: Not directly used, but `bootstrap.sh` and `flake.nix` pin specific versions. - * `ANCHOR_VERSION`: Managed by `avm` for cross-version compatibility. - ## Development ### Error Handling @@ -293,7 +285,7 @@ When the AI is invoked (e.g., through an integrated chat interface or specific c * **Economic Audits**: Specific focus on incentive alignment and potential economic attack vectors. * **Access Control**: Strict adherence to owner-only mutations, PDA authority checks, and role-based permissions. -## Development +## Testing and Validation ### Repository Validation