Commit 386d6d7
feat(ovsm): Add Round 4 Solana program macros
SPL Token operations:
- (spl-close-account tok-prog acct dest auth) - Close token account
System Program operations:
- (system-allocate acct-idx space) - Allocate space in account
- (system-assign acct-idx owner-ptr) - Assign account to program
Anchor-compatible error handling:
- (anchor-error code) - Returns 6000 + code (Anchor error format)
- (require cond code) - Assert with Anchor error on failure
- (msg "text") - Anchor-style logging helper
All macros compile to sBPF and tested successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 34af221 commit 386d6d7
1 file changed
+417
-0
lines changed
0 commit comments