Skip to content

Add Anchor examples basic#13

Merged
ananas-block merged 11 commits into
mainfrom
add-anchor-clean
Feb 2, 2026
Merged

Add Anchor examples basic#13
ananas-block merged 11 commits into
mainfrom
add-anchor-clean

Conversation

@tilo-14
Copy link
Copy Markdown
Member

@tilo-14 tilo-14 commented Jan 27, 2026

Summary

  • Add programs/anchor/ workspace with basic SPL token instruction examples
  • Add basic-instructions/ - approve, burn, close, create-ata, create-mint, create-token-account, freeze, mint-to, mint-to-checked, revoke, thaw, transfer-checked, transfer-interface
  • Add basic-macros/ - counter, create-ata, create-mint, create-token-account
  • Include test suite and shared test utilities

Test plan

  • Run cargo test-sbf in each program directory
  • Verify all examples compile with cargo build-sbf

Open with Devin

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

@tilo-14 tilo-14 changed the title Add Anchor examples for basic SPL token instructions Add Anchor examples basic Jan 28, 2026
@tilo-14 tilo-14 force-pushed the add-anchor-clean branch 2 times, most recently from 29fe205 to ee3f30f Compare January 29, 2026 15:15
Comment thread README.md Outdated
Comment thread programs/anchor/basic-instructions/create-ata/tests/test.rs Outdated
Comment thread programs/anchor/basic-instructions/create-mint/Cargo.toml Outdated
Comment thread programs/anchor/basic-instructions/create-mint/src/lib.rs Outdated
Comment thread programs/anchor/basic-instructions/test-utils/src/lib.rs Outdated
Comment thread programs/anchor/basic-instructions/transfer-interface/src/lib.rs Outdated
Comment thread programs/anchor/basic-macros/create-ata/src/lib.rs Outdated
Comment thread programs/anchor/basic-macros/create-mint/src/lib.rs
Comment thread programs/anchor/create-and-transfer/token-transfer/src/lib.rs
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View issue and 13 additional flags in Devin Review.

Open in Devin Review

Comment thread programs/anchor/create-and-transfer/token-transfer/src/lib.rs Outdated
Comment thread programs/anchor/Anchor.toml Outdated
Comment thread programs/anchor/basic-macros/create-ata/src/lib.rs Outdated
Comment thread programs/anchor/basic-macros/create-ata/tests/test.rs Outdated
tilo-14 and others added 9 commits February 2, 2026 17:53
Basic instruction examples: approve, burn, close, create-ata,
create-mint, create-token-account, freeze, mint-to, revoke, thaw,
transfer-checked, transfer-interface.

Basic macro examples: counter, create-ata, create-mint,
create-token-account, create-and-transfer with token-transfer.
@ananas-block ananas-block merged commit 3e98c24 into main Feb 2, 2026
18 checks passed
@ananas-block ananas-block deleted the add-anchor-clean branch February 2, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants