Skip to content

Commit 38c809f

Browse files
0xrinegadeclaude
andcommitted
feat(ovsm): Add comprehensive Solana program macros
Round 2 Features: - get-ata: Derive Associated Token Account addresses - assert-signer, assert-writable, assert-owner: Validation with abort - is-signer, is-writable: Query functions without abort - zerocopy-load, zerocopy-store: Direct memory access to account data - account-data-len, account-lamports: Account metadata accessors Round 3 Features: - emit-event: Anchor-style event emission with discriminator - emit-log: Simple message + values logging - clock-unix-timestamp, clock-epoch: Clock sysvar access - rent-minimum-balance: Rent exemption calculation - instruction-count, current-instruction-index: Instructions sysvar - assert-not-cpi: Anti-CPI guard for re-entrancy protection - pda-cache-init, pda-cache-store, pda-cache-lookup: Bump caching - derive-pda-cached: PDA derivation with cache integration All macros compile to sBPF and have been tested. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 81193ae commit 38c809f

File tree

1 file changed

+517
-0
lines changed
  • crates/ovsm/src/compiler

1 file changed

+517
-0
lines changed

0 commit comments

Comments
 (0)