Modules§
- codama
- Codama IDL integration for the Anchor CLI.
- config
- coverage
anchor coverage— generates LCOV source-level coverage from SBF register traces. Reuses the debugger’s DWARF resolution to map executed PCs to source lines.- debugger
anchor debugger— a foundry-style SBF instruction stepper built on the same per-test register traces that--profileconsumes for flamegraphs.- fetch
- template
Macros§
Structs§
Enums§
Constants§
- DEFAULT_
MAX_ SIGN_ ATTEMPTS - Default re-sign attempts when blockhashes expire mid-deploy.
Matches Agave’s
solana program deploydefault (agave/cli/src/program.rs). Each blockhash window is ~60s, so 5 → ~5 minutes of resign budget. - DEFAULT_
RPC_ PORT - Default RPC port
- DOCKER_
BUILDER_ VERSION - VERSION
- WEBSOCKET_
PORT_ OFFSET - WebSocket port offset for solana-test-validator (RPC port + 1)
Statics§
Functions§
- build
- cargo_
build_ sbf - Run the configured SBF build command.
- create_
files - Create files from the given (path, content) tuple array.
- entry
- expand
- get_
recommended_ micro_ lamport_ fee - Get the recommended priority fee from the RPC client, falling back to 0 if unavailable.
write_locked_accountsscopes the query to txs that write-locked all of these accounts in recent blocks — passing the accounts the upcoming tx will lock gives a contention-aware fee. Pass&[]for a global median (often too low for hot mainnet windows). - override_
or_ create_ files - Override or create files from the given (path, content) tuple array.
- prepend_
compute_ unit_ ix - Prepend a compute unit ix, if the priority fee is greater than 0.
- support_
version_ report - target_
dir - Return the cargo build artifacts directory. The successful result is cached.
- verify
Type Aliases§
- Files
- Array of (path, content) tuple.