Skip to content

SPL: Use token interface crate#7311

Merged
rustopian merged 16 commits intoanza-xyz:masterfrom
rustopian:spl-token-interface
Aug 6, 2025
Merged

SPL: Use token interface crate#7311
rustopian merged 16 commits intoanza-xyz:masterfrom
rustopian:spl-token-interface

Conversation

@rustopian
Copy link
Copy Markdown

@rustopian rustopian commented Aug 4, 2025

Problem

As outlined in 7256, we need to get Agave off of crates that depend back on Agave.

spl-token is one of those crates.

Summary of changes

Use spl-token-interface instead.

@rustopian rustopian self-assigned this Aug 4, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Aug 4, 2025

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/kit (example)

Thank you for keeping the RPC clients in sync with the server API @rustopian.

Copy link
Copy Markdown

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looking good so far! Just a couple of little things that I noticed

Comment thread accounts-cluster-bench/src/main.rs Outdated
solana_test_validator::TestValidator,
spl_token::{
spl_token_interface::{
solana_program::program_pack::Pack,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We'll probably need to import this ourselves in this file, since the interface doesn't re-export whole crates like the program crate does

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Absolutely. Search-and-replace still awaiting manual check & fixup here and a couple of other places, just wanted to grab that spot in the SDK V3 project with this draft before the night was out:D

will wrap tomorrow

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Haha sounds good, thanks 😁

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This script is super out of date, and made sense when all of the SPL crates were hosted in the same SPL repo, so let's just leave it as is

@rustopian rustopian marked this pull request as ready for review August 5, 2025 17:41
@rustopian rustopian requested a review from a team as a code owner August 5, 2025 17:41
@rustopian rustopian requested a review from joncinque August 5, 2025 17:41
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.16667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (4e746fb) to head (16f6686).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7311     +/-   ##
=========================================
+ Coverage    83.0%    83.2%   +0.1%     
=========================================
  Files         801      800      -1     
  Lines      362250   361470    -780     
=========================================
+ Hits       300776   300805     +29     
+ Misses      61474    60665    -809     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

@rustopian rustopian merged commit c859d8b into anza-xyz:master Aug 6, 2025
52 checks passed
@rustopian rustopian deleted the spl-token-interface branch August 6, 2025 09:16
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.

4 participants