-
Notifications
You must be signed in to change notification settings - Fork 0
Add anchor #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add anchor #9
Conversation
3772405 to
81db9df
Compare
| .await | ||
| .unwrap(); | ||
|
|
||
| // 7. Transfer Light Token → SPL (uses TransferInterface with auto-detection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto-detection is misleading you declare which tokens you are using by defining source and recipient owner program ids.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt the file be called spl_to_light_tokens.rs or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dangerous these will easily become outdated
program-examples/native/CLAUDE.md
Outdated
| └── close.rs | ||
| ``` | ||
|
|
||
| ## Instruction discriminators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misleading
| pub fn burn<'info>( | ||
| ctx: Context<'_, '_, '_, 'info, BurnAccounts<'info>>, | ||
| amount: u64, | ||
| ) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pub fn burn<'info>( | |
| ctx: Context<'_, '_, '_, 'info, BurnAccounts<'info>>, | |
| amount: u64, | |
| ) -> Result<()> { | |
| pub fn burn(ctx: Context<BurnAccounts>, amount: u64) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for all other programs
program-examples/anchor/README.md
Outdated
|
|
||
| Learn more [about Light-Token here](https://www.zkcompression.com/light-token/welcome). | ||
|
|
||
| For your AI to index this repo: [AI Index](CLAUDE.md), [Flow Diagram](flow.mermaid), [State Machine Diagram](states.mermaid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm For your AI to index this repo: AI Index, Flow Diagram, State Machine Diagram
| .await | ||
| .unwrap(); | ||
|
|
||
| println!("Burned {} tokens via anchor program", burn_amount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should only print tx id. akin to typescript client prints
| @@ -0,0 +1 @@ | |||
| [196,52,241,96,50,167,183,75,251,111,133,107,26,185,35,101,19,119,253,19,35,164,230,219,57,197,157,114,110,187,41,190,170,36,163,213,228,94,249,171,13,74,217,229,218,63,175,39,24,177,247,204,140,120,73,245,204,205,44,199,159,204,122,189] No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm
- Remove AI index line from README.md - Delete keypair.json from create-token-account program - Simplify test println statements to only output transaction signature The transaction signature provides all necessary information for verification and is more useful than verbose descriptive text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
program-examples/anchor/programs/create-token-account/keypair.json
Outdated
Show resolved
Hide resolved
- Remove all TypeScript test files (tests/*.ts) - Remove package.json and tsconfig.json - Remove .claude/settings.json and BURN_ARCHITECTURE.md - Add .gitignore for node_modules, target, TS files - Update Anchor.toml test script to use cargo test-sbf Rust integration tests remain in programs/*/tests/test.rs
Uh oh!
There was an error while loading. Please reload this page.