Skip to content

Commit

Permalink
Add token 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Oct 8, 2024
1 parent 55a76be commit 2d40e68
Show file tree
Hide file tree
Showing 20 changed files with 1,431 additions and 13 deletions.
111 changes: 99 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ members = [
"lang/syn",
"spl",
]
resolver = "2"
5 changes: 4 additions & 1 deletion spl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ description = "CPI clients for SPL programs"
publish = ["star-atlas"]

[features]
default = ["mint", "token", "associated_token"]
default = ["mint", "token", "associated_token", "token_2022", "token_2022_extensions"]
mint = []
token = ["spl-token"]
token_2022 = ["spl-token-2022"]
token_2022_extensions = ["spl-token-2022"]
associated_token = ["spl-associated-token-account"]
governance = []
shmem = []
Expand All @@ -25,3 +27,4 @@ serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2
solana-program = ">=1.10.29"
spl-associated-token-account = { version = "1.1.0", features = ["no-entrypoint"], optional = true }
spl-token = { version = "3.3.0", features = ["no-entrypoint"], optional = true }
spl-token-2022 = { version = "0.7", features = ["no-entrypoint"], optional = true }
9 changes: 9 additions & 0 deletions spl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ pub mod mint;
#[cfg(feature = "token")]
pub mod token;

#[cfg(feature = "token_2022")]
pub mod token_2022;

#[cfg(feature = "token_2022_extensions")]
pub mod token_2022_extensions;

#[cfg(feature = "token_2022")]
pub mod token_interface;

#[cfg(feature = "dex")]
pub mod dex;

Expand Down
Loading

0 comments on commit 2d40e68

Please sign in to comment.