Skip to content

Conversation

@tilo-14
Copy link
Contributor

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

Summary

  • Adds Rust client examples for light-token SDK
  • Includes tests for all major operations: create_mint, create_ata, mint_to, transfer_interface, burn, approve, revoke, freeze, thaw, close
  • Adds scenario test for SPL to light-token flow
  • Adds GitHub Actions workflow for Rust tests

Test plan

  • Run cargo test in rust-client directory
  • Verify all tests pass against localnet

Open with Devin

@tilo-14 tilo-14 force-pushed the chore/add-rust-client branch from 3202304 to 31c7176 Compare January 15, 2026 22:44
@tilo-14 tilo-14 force-pushed the chore/add-rust-client branch from 31c7176 to f51fd06 Compare January 15, 2026 22:50
@tilo-14 tilo-14 force-pushed the chore/add-rust-client branch from d97dcb2 to fa941d2 Compare January 15, 2026 23:36
@tilo-14 tilo-14 force-pushed the chore/add-rust-client branch from 13fa136 to 912ae0f Compare January 21, 2026 23:14
tilo-14 and others added 5 commits January 22, 2026 02:10
- Add mint_to_checked, transfer_checked, burn_checked instruction examples
- Add action examples: approve, revoke, create_mint, create_ata, mint_to,
  transfer_checked, transfer_interface, wrap, unwrap
- Restructure tests/ to examples-instructions/ and examples-actions/
- Add decimals field to SetupContext
- Update README to match TypeScript client style
- Rename examples-actions → example-actions
- Rename examples-instructions → example-instructions
- Fix setup_for_unwrap to use Wrap action (SPL mints can't mint directly to Light ATAs)
- Update Cargo.toml and README.md paths
- Remove verbose "using action API" / "using instruction API" from comments
- Simplify setup comments to match instruction style
- Rename transfer.rs -> transfer_interface.rs for consistency
- Merge TypeScript and Rust examples into unified list
- Add all Rust-only examples (burn, freeze, thaw, close, etc.)
- Update create_mint action to show TokenMetadata usage
- Fix SDK compatibility: add token_metadata field, remove fee_payer
- Fix rust-client README links and description
Copy link

@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 force-pushed the chore/add-rust-client branch from 59b6dfe to 00e384b Compare January 25, 2026 11:40
Copy link

@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 6 additional flags in Devin Review.

Open in Devin Review

@ananas-block
Copy link

looks like rust client tests are not part of ci

tilo-14 added 6 commits January 27, 2026 13:13
The CI installed Photon at rev 1a78503 but `light test-validator`
expects rev ac7df6c (v0.51.2). The mismatch prevented the indexer
from starting, causing ECONNREFUSED on port 8784.
Replace git branch dependencies (jorrit/refactor-light-token-client)
with published crates.io versions:
- light-token 0.4.0
- light-token-interface 0.3.0
- light-token-client 0.1.0
- light-program-test 0.19.0
- light-client 0.19.0
@tilo-14 tilo-14 merged commit fdb976a into main Jan 30, 2026
1 check passed
@tilo-14 tilo-14 deleted the chore/add-rust-client branch January 30, 2026 18:08
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.

3 participants