Repository: solana-labs/solana-program-library
Pull request #6918 (2024-06-25 10:45:52)

token: Bump to v6 for Solana v2 compatibility
#### Problem

As part of #6897, we need to release new major versions of many crates.

#### Solution

Bump spl-token for the next release


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index d7145d454..d2d55c98d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -646,7 +646,7 @@ dependencies = [
  "arrayref",
  "borsh 1.5.1",
  "solana-program",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
  "uint",
 ]
@@ -1922,7 +1922,7 @@ version = "1.0.0"
 dependencies = [
  "arrayref",
  "solana-program",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
 ]
 
 [[package]]
@@ -6826,7 +6826,7 @@ dependencies = [
  "num-derive",
  "num-traits",
  "solana-program",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "thiserror",
 ]
@@ -6855,7 +6855,7 @@ dependencies = [
  "solana-program-test",
  "solana-sdk",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
 ]
 
@@ -6869,7 +6869,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
  "uint",
 ]
@@ -7004,7 +7004,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
 ]
 
 [[package]]
@@ -7015,7 +7015,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
 ]
 
 [[package]]
@@ -7053,7 +7053,7 @@ dependencies = [
  "spl-governance-addin-mock",
  "spl-governance-test-sdk",
  "spl-governance-tools",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7085,7 +7085,7 @@ dependencies = [
  "spl-governance-addin-api",
  "spl-governance-test-sdk",
  "spl-governance-tools",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7110,7 +7110,7 @@ dependencies = [
  "spl-governance-addin-mock",
  "spl-governance-test-sdk",
  "spl-governance-tools",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7129,7 +7129,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7145,7 +7145,7 @@ dependencies = [
  "serde",
  "serde_derive",
  "solana-program",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7169,7 +7169,7 @@ dependencies = [
  "solana-program-test",
  "solana-sdk",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -7239,7 +7239,7 @@ dependencies = [
  "serde_json",
  "solana-program",
  "solana-zk-token-sdk",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
 ]
 
 [[package]]
@@ -7252,33 +7252,33 @@ dependencies = [
  "bytemuck",
  "solana-program",
  "solana-zk-token-sdk",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
 ]
 
 [[package]]
 name = "spl-program-error"
 version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49065093ea91f57b9b2bd81493ff705e2ad4e64507a07dbc02b085778e02770e"
 dependencies = [
- "lazy_static",
  "num-derive",
  "num-traits",
- "serial_test",
  "solana-program",
- "solana-sdk",
- "spl-program-error-derive 0.4.1",
+ "spl-program-error-derive 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
  "thiserror",
 ]
 
 [[package]]
 name = "spl-program-error"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49065093ea91f57b9b2bd81493ff705e2ad4e64507a07dbc02b085778e02770e"
+version = "0.5.0"
 dependencies = [
+ "lazy_static",
  "num-derive",
  "num-traits",
+ "serial_test",
  "solana-program",
- "spl-program-error-derive 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "solana-sdk",
+ "spl-program-error-derive 0.4.1",
  "thiserror",
 ]
 
@@ -7346,7 +7346,7 @@ dependencies = [
  "solana-security-txt",
  "solana-vote-program",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "test-case",
  "thiserror",
 ]
@@ -7377,7 +7377,7 @@ dependencies = [
  "solana-vote-program",
  "spl-associated-token-account 3.0.2",
  "spl-single-pool",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-client",
  "tempfile",
  "test-case",
@@ -7406,7 +7406,7 @@ dependencies = [
  "solana-vote-program",
  "spl-math",
  "spl-pod 0.2.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "test-case",
  "thiserror",
@@ -7434,7 +7434,7 @@ dependencies = [
  "solana-sdk",
  "spl-associated-token-account 3.0.2",
  "spl-stake-pool",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
 ]
 
 [[package]]
@@ -7451,7 +7451,7 @@ dependencies = [
  "solana-sdk",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-type-length-value 0.4.3",
 ]
 
@@ -7465,7 +7465,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.2.2",
  "spl-pod 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
  "spl-type-length-value 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
@@ -7486,7 +7486,7 @@ dependencies = [
 
 [[package]]
 name = "spl-token"
-version = "5.0.0"
+version = "6.0.0"
 dependencies = [
  "arrayref",
  "bytemuck",
@@ -7526,7 +7526,7 @@ dependencies = [
  "spl-memo 5.0.0",
  "spl-pod 0.2.2",
  "spl-tlv-account-resolution 0.6.3",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-group-interface 0.2.3",
  "spl-token-metadata-interface 0.3.3",
  "spl-transfer-hook-interface 0.6.3",
@@ -7609,7 +7609,7 @@ dependencies = [
  "solana-transaction-status",
  "spl-associated-token-account 3.0.2",
  "spl-memo 5.0.0",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "spl-token-client",
  "spl-token-group-interface 0.2.3",
@@ -7637,7 +7637,7 @@ dependencies = [
  "solana-sdk",
  "spl-associated-token-account 3.0.2",
  "spl-memo 5.0.0",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "spl-token-group-interface 0.2.3",
  "spl-token-metadata-interface 0.3.3",
@@ -7654,7 +7654,7 @@ dependencies = [
  "solana-sdk",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-token-2022 3.0.2",
  "spl-token-client",
  "spl-token-group-example",
@@ -7687,7 +7687,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-type-length-value 0.4.3",
 ]
 
@@ -7701,7 +7701,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.2.2",
  "spl-pod 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
 ]
 
 [[package]]
@@ -7717,7 +7717,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
  "uint",
 ]
@@ -7733,7 +7733,7 @@ dependencies = [
  "solana-logger",
  "solana-program",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-lending",
 ]
 
@@ -7762,7 +7762,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-type-length-value 0.4.3",
 ]
 
@@ -7776,7 +7776,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.2.2",
  "spl-pod 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
  "spl-type-length-value 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
@@ -7794,7 +7794,7 @@ dependencies = [
  "solana-program",
  "solana-sdk",
  "spl-math",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "test-case",
  "thiserror",
@@ -7808,7 +7808,7 @@ dependencies = [
  "honggfuzz",
  "solana-program",
  "spl-math",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-swap",
 ]
 
@@ -7822,7 +7822,7 @@ dependencies = [
  "solana-program",
  "solana-program-test",
  "solana-sdk",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "spl-token-client",
  "test-case",
@@ -7843,7 +7843,7 @@ dependencies = [
  "solana-sdk",
  "solana-test-validator",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "spl-token-client",
  "spl-token-upgrade",
@@ -7859,7 +7859,7 @@ dependencies = [
  "num_enum",
  "solana-program",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-2022 3.0.2",
  "thiserror",
 ]
@@ -7913,7 +7913,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-tlv-account-resolution 0.6.3",
  "spl-type-length-value 0.4.3",
  "tokio",
@@ -7930,7 +7930,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.2.2",
  "spl-pod 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
  "spl-tlv-account-resolution 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
  "spl-type-length-value 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
@@ -7943,7 +7943,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.3.0",
  "spl-pod 0.2.2",
- "spl-program-error 0.4.1",
+ "spl-program-error 0.5.0",
  "spl-type-length-value-derive",
 ]
 
@@ -7957,7 +7957,7 @@ dependencies = [
  "solana-program",
  "spl-discriminator 0.2.2",
  "spl-pod 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "spl-program-error 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "spl-program-error 0.4.1",
 ]
 
 [[package]]
@@ -7988,7 +7988,7 @@ dependencies = [
  "solana-program-test",
  "solana-sdk",
  "spl-associated-token-account 3.0.2",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "thiserror",
 ]
 
@@ -8293,7 +8293,7 @@ version = "0.1.0"
 dependencies = [
  "solana-sdk",
  "spl-memo 5.0.0",
- "spl-token 5.0.0",
+ "spl-token 6.0.0",
  "spl-token-swap",
 ]
 
diff --git a/associated-token-account/program/Cargo.toml b/associated-token-account/program/Cargo.toml
index bcbe92013..caa1989f8 100644
--- a/associated-token-account/program/Cargo.toml
+++ b/associated-token-account/program/Cargo.toml
@@ -17,7 +17,7 @@ borsh = "1.5.1"
 num-derive = "0.4"
 num-traits = "0.2"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = [
diff --git a/binary-option/program/Cargo.toml b/binary-option/program/Cargo.toml
index b61c06f17..7b848cb97 100644
--- a/binary-option/program/Cargo.toml
+++ b/binary-option/program/Cargo.toml
@@ -11,7 +11,7 @@ test-sbf = []
 [dependencies]
 solana-program = "2.0.0"
 thiserror = "1.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 arrayref = "0.3.7"
diff --git a/binary-oracle-pair/program/Cargo.toml b/binary-oracle-pair/program/Cargo.toml
index eefe9a120..7328e9e3d 100644
--- a/binary-oracle-pair/program/Cargo.toml
+++ b/binary-oracle-pair/program/Cargo.toml
@@ -14,7 +14,7 @@ test-sbf = []
 num-derive = "0.4"
 num-traits = "0.2"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 thiserror = "1.0"
diff --git a/examples/rust/transfer-tokens/Cargo.toml b/examples/rust/transfer-tokens/Cargo.toml
index d5265d3cc..72230163b 100644
--- a/examples/rust/transfer-tokens/Cargo.toml
+++ b/examples/rust/transfer-tokens/Cargo.toml
@@ -13,7 +13,7 @@ test-sbf = []
 
 [dependencies]
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
+spl-token = { version = "6.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
 
 [dev-dependencies]
 solana-program-test = "2.0.0"
diff --git a/feature-proposal/program/Cargo.toml b/feature-proposal/program/Cargo.toml
index a965b1909..cf8d21ce2 100644
--- a/feature-proposal/program/Cargo.toml
+++ b/feature-proposal/program/Cargo.toml
@@ -14,7 +14,7 @@ test-sbf = []
 [dependencies]
 borsh = "1.5.1"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 
diff --git a/governance/addin-mock/program/Cargo.toml b/governance/addin-mock/program/Cargo.toml
index acaa8f594..db0d60ba8 100644
--- a/governance/addin-mock/program/Cargo.toml
+++ b/governance/addin-mock/program/Cargo.toml
@@ -20,7 +20,7 @@ num-traits = "0.2"
 serde = "1.0.203"
 serde_derive = "1.0.103"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../../token/program", features = [
+spl-token = { version = "6.0", path = "../../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-governance-addin-api = { version = "0.1.4", path = "../../addin-api" }
diff --git a/governance/chat/program/Cargo.toml b/governance/chat/program/Cargo.toml
index 0e8b3f82b..dacb1e860 100644
--- a/governance/chat/program/Cargo.toml
+++ b/governance/chat/program/Cargo.toml
@@ -20,7 +20,7 @@ num-traits = "0.2"
 serde = "1.0.203"
 serde_derive = "1.0.103"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../../token/program", features = [
+spl-token = { version = "6.0", path = "../../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-governance = { version = "4.0.0", path = "../../program", features = [
diff --git a/governance/program/Cargo.toml b/governance/program/Cargo.toml
index a759aca34..4178dffe7 100644
--- a/governance/program/Cargo.toml
+++ b/governance/program/Cargo.toml
@@ -20,7 +20,7 @@ num-traits = "0.2"
 serde = "1.0.203"
 serde_derive = "1.0.103"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-governance-tools = { version = "0.1.4", path = "../tools" }
diff --git a/governance/tools/Cargo.toml b/governance/tools/Cargo.toml
index 27e6a9f17..d095d795b 100644
--- a/governance/tools/Cargo.toml
+++ b/governance/tools/Cargo.toml
@@ -16,7 +16,7 @@ num-traits = "0.2"
 serde = "1.0.203"
 serde_derive = "1.0.103"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 thiserror = "1.0"
diff --git a/libraries/pod/Cargo.toml b/libraries/pod/Cargo.toml
index 04099f02e..b2740baa3 100644
--- a/libraries/pod/Cargo.toml
+++ b/libraries/pod/Cargo.toml
@@ -18,7 +18,7 @@ bytemuck = { version = "1.16.1" }
 serde = { version = "1.0.203", optional = true }
 solana-program = "2.0.0"
 solana-zk-token-sdk = "2.0.0"
-spl-program-error = { version = "0.4.0", path = "../program-error" }
+spl-program-error = { version = "0.5.0", path = "../program-error" }
 
 [dev-dependencies]
 serde_json = "1.0.117"
diff --git a/libraries/program-error/Cargo.toml b/libraries/program-error/Cargo.toml
index c37f846a2..ae2c8adaf 100644
--- a/libraries/program-error/Cargo.toml
+++ b/libraries/program-error/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "spl-program-error"
-version = "0.4.1"
+version = "0.5.0"
 description = "Library for Solana Program error attributes and derive macro for creating them"
 authors = ["Solana Labs Maintainers <maintainers@solanalabs.com>"]
 repository = "https://github.com/solana-labs/solana-program-library"
diff --git a/libraries/tlv-account-resolution/Cargo.toml b/libraries/tlv-account-resolution/Cargo.toml
index cbadd6c71..0993a1234 100644
--- a/libraries/tlv-account-resolution/Cargo.toml
+++ b/libraries/tlv-account-resolution/Cargo.toml
@@ -16,7 +16,7 @@ bytemuck = { version = "1.16.1", features = ["derive"] }
 serde = { version = "1.0.203", optional = true }
 solana-program = "2.0.0"
 spl-discriminator = { version = "0.3.0", path = "../discriminator" }
-spl-program-error = { version = "0.4.0", path = "../program-error" }
+spl-program-error = { version = "0.5.0", path = "../program-error" }
 spl-type-length-value = { version = "0.4.3", path = "../type-length-value" }
 spl-pod = { version = "0.2.2", path = "../pod" }
 
diff --git a/libraries/type-length-value/Cargo.toml b/libraries/type-length-value/Cargo.toml
index 4ef7fe8d8..f2eb9cfaa 100644
--- a/libraries/type-length-value/Cargo.toml
+++ b/libraries/type-length-value/Cargo.toml
@@ -15,7 +15,7 @@ derive = ["dep:spl-type-length-value-derive"]
 bytemuck = { version = "1.16.1", features = ["derive"] }
 solana-program = "2.0.0"
 spl-discriminator = { version = "0.3.0", path = "../discriminator" }
-spl-program-error = { version = "0.4.0", path = "../program-error" }
+spl-program-error = { version = "0.5.0", path = "../program-error" }
 spl-type-length-value-derive = { version = "0.1", path = "./derive", optional = true }
 spl-pod = { version = "0.2.2", path = "../pod" }
 
diff --git a/managed-token/program/Cargo.toml b/managed-token/program/Cargo.toml
index c37d7e827..709dc1ad3 100644
--- a/managed-token/program/Cargo.toml
+++ b/managed-token/program/Cargo.toml
@@ -28,7 +28,7 @@ solana-program = "2.0.0"
 spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = [
   "no-entrypoint",
 ] }
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 thiserror = "^1.0.61"
diff --git a/single-pool/cli/Cargo.toml b/single-pool/cli/Cargo.toml
index 3ffdaf788..c9fe4921e 100644
--- a/single-pool/cli/Cargo.toml
+++ b/single-pool/cli/Cargo.toml
@@ -27,7 +27,7 @@ solana-remote-wallet = "2.0.0"
 solana-sdk = "2.0.0"
 solana-transaction-status = "2.0.0"
 solana-vote-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-token-client = { version = "0.10.0", path = "../../token/client" }
diff --git a/single-pool/program/Cargo.toml b/single-pool/program/Cargo.toml
index 2ac007043..e33a74661 100644
--- a/single-pool/program/Cargo.toml
+++ b/single-pool/program/Cargo.toml
@@ -19,7 +19,7 @@ num-traits = "0.2"
 num_enum = "0.7.2"
 solana-program = "2.0.0"
 solana-security-txt = "1.1.1"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = [
diff --git a/stake-pool/cli/Cargo.toml b/stake-pool/cli/Cargo.toml
index 83994d6aa..f0784d2ae 100644
--- a/stake-pool/cli/Cargo.toml
+++ b/stake-pool/cli/Cargo.toml
@@ -29,7 +29,7 @@ spl-associated-token-account = { version = "=3.0.2", path = "../../associated-to
 spl-stake-pool = { version = "=1.0.0", path = "../program", features = [
   "no-entrypoint",
 ] }
-spl-token = { version = "=5.0", path = "../../token/program", features = [
+spl-token = { version = "=6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 bs58 = "0.4.0"
diff --git a/stake-pool/program/Cargo.toml b/stake-pool/program/Cargo.toml
index 7d7b32aa0..a4d49184a 100644
--- a/stake-pool/program/Cargo.toml
+++ b/stake-pool/program/Cargo.toml
@@ -40,7 +40,7 @@ proptest = "1.5"
 solana-program-test = "2.0.0"
 solana-sdk = "2.0.0"
 solana-vote-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 test-case = "3.3"
diff --git a/stateless-asks/program/Cargo.toml b/stateless-asks/program/Cargo.toml
index a9c3557b8..2f07e7ae6 100644
--- a/stateless-asks/program/Cargo.toml
+++ b/stateless-asks/program/Cargo.toml
@@ -13,7 +13,7 @@ test-sbf = []
 [dependencies]
 borsh = "1.5.1"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = [
diff --git a/token-collection/program/Cargo.toml b/token-collection/program/Cargo.toml
index a5ceded21..2018bd2e8 100644
--- a/token-collection/program/Cargo.toml
+++ b/token-collection/program/Cargo.toml
@@ -14,7 +14,7 @@ test-sbf = []
 [dependencies]
 solana-program = "2.0.0"
 spl-pod = { version = "0.2.2", path = "../../libraries/pod" }
-spl-program-error = { version = "0.4.0" , path = "../../libraries/program-error" }
+spl-program-error = { version = "0.5.0" , path = "../../libraries/program-error" }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] }
 spl-token-group-example = { version = "0.2", path = "../../token-group/example", features = ["no-entrypoint"] }
 spl-token-group-interface = { version = "0.2.3", path = "../../token-group/interface" }
diff --git a/token-group/interface/Cargo.toml b/token-group/interface/Cargo.toml
index 17cc1a3c2..13b2a313e 100644
--- a/token-group/interface/Cargo.toml
+++ b/token-group/interface/Cargo.toml
@@ -12,7 +12,7 @@ bytemuck = "1.16.1"
 solana-program = "2.0.0"
 spl-discriminator = { version = "0.3.0" , path = "../../libraries/discriminator" }
 spl-pod = { version = "0.2.2" , path = "../../libraries/pod", features = ["borsh"] }
-spl-program-error = { version = "0.4.0" , path = "../../libraries/program-error" }
+spl-program-error = { version = "0.5.0" , path = "../../libraries/program-error" }
 
 [dev-dependencies]
 spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value", features = ["derive"] }
diff --git a/token-lending/cli/Cargo.toml b/token-lending/cli/Cargo.toml
index dfa01f7c8..903db0f1d 100644
--- a/token-lending/cli/Cargo.toml
+++ b/token-lending/cli/Cargo.toml
@@ -17,7 +17,7 @@ solana-logger = "2.0.0"
 solana-sdk = "2.0.0"
 solana-program = "2.0.0"
 spl-token-lending = { version = "0.2", path="../program", features = [ "no-entrypoint" ] }
-spl-token = { version = "5.0", path="../../token/program", features = [ "no-entrypoint" ]  }
+spl-token = { version = "6.0", path="../../token/program", features = [ "no-entrypoint" ]  }
 
 [[bin]]
 name = "spl-token-lending"
diff --git a/token-lending/flash_loan_receiver/Cargo.toml b/token-lending/flash_loan_receiver/Cargo.toml
index 46e98d35c..f7f686fd6 100644
--- a/token-lending/flash_loan_receiver/Cargo.toml
+++ b/token-lending/flash_loan_receiver/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2021"
 [dependencies]
 arrayref = "0.3.7"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features=["no-entrypoint"] }
+spl-token = { version = "6.0", path = "../../token/program", features=["no-entrypoint"] }
 
 [lib]
 crate-type = ["cdylib", "lib"]
diff --git a/token-lending/program/Cargo.toml b/token-lending/program/Cargo.toml
index 5c2be5b72..cfe240098 100644
--- a/token-lending/program/Cargo.toml
+++ b/token-lending/program/Cargo.toml
@@ -17,7 +17,7 @@ bytemuck = "1.16.1"
 num-derive = "0.4"
 num-traits = "0.2"
 solana-program = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint" ] }
+spl-token = { version = "6.0", path = "../../token/program", features = [ "no-entrypoint" ] }
 thiserror = "1.0"
 uint = "0.9"
 
diff --git a/token-metadata/interface/Cargo.toml b/token-metadata/interface/Cargo.toml
index 3fd2b4e79..721b5aee7 100644
--- a/token-metadata/interface/Cargo.toml
+++ b/token-metadata/interface/Cargo.toml
@@ -15,7 +15,7 @@ borsh = "1.5.1"
 serde = { version = "1.0.203", optional = true }
 solana-program = "2.0.0"
 spl-discriminator = { version = "0.3.0", path = "../../libraries/discriminator" }
-spl-program-error = { version = "0.4.0", path = "../../libraries/program-error" }
+spl-program-error = { version = "0.5.0", path = "../../libraries/program-error" }
 spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value" }
 spl-pod = { version = "0.2.2", path = "../../libraries/pod", features = [
   "borsh",
diff --git a/token-swap/program/Cargo.toml b/token-swap/program/Cargo.toml
index 133440a05..50e48503e 100644
--- a/token-swap/program/Cargo.toml
+++ b/token-swap/program/Cargo.toml
@@ -19,7 +19,7 @@ num-derive = "0.4"
 num-traits = "0.2"
 solana-program = "2.0.0"
 spl-math = { version = "0.2", path = "../../libraries/math", features = [ "no-entrypoint" ] }
-spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint" ] }
+spl-token = { version = "6.0", path = "../../token/program", features = [ "no-entrypoint" ] }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = [ "no-entrypoint" ] }
 thiserror = "1.0"
 arbitrary = { version = "1.3", features = ["derive"], optional = true }
diff --git a/token-swap/program/fuzz/Cargo.toml b/token-swap/program/fuzz/Cargo.toml
index b5c7e7b21..b01b567e6 100644
--- a/token-swap/program/fuzz/Cargo.toml
+++ b/token-swap/program/fuzz/Cargo.toml
@@ -13,7 +13,7 @@ honggfuzz = { version = "0.5.56" }
 arbitrary = { version = "1.3", features = ["derive"] }
 solana-program = "2.0.0"
 spl-math = { version = "0.2", path = "../../../libraries/math", features = [ "no-entrypoint" ] }
-spl-token = { version = "5.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
+spl-token = { version = "6.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
 spl-token-swap = { path = "..", features = ["fuzz", "no-entrypoint"] }
 
 [[bin]]
diff --git a/token-upgrade/cli/Cargo.toml b/token-upgrade/cli/Cargo.toml
index 7e0ac1cb1..595f7f946 100644
--- a/token-upgrade/cli/Cargo.toml
+++ b/token-upgrade/cli/Cargo.toml
@@ -20,7 +20,7 @@ solana-logger = "2.0.0"
 solana-remote-wallet = "2.0.0"
 solana-sdk = "2.0.0"
 spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = ["no-entrypoint"] }
-spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] }
+spl-token = { version = "6.0", path = "../../token/program", features = ["no-entrypoint"] }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] }
 spl-token-client = { version = "0.10.0", path = "../../token/client" }
 spl-token-upgrade = { version = "0.1", path = "../program", features = ["no-entrypoint"] }
diff --git a/token-upgrade/program/Cargo.toml b/token-upgrade/program/Cargo.toml
index d2d0e968a..44d86653b 100644
--- a/token-upgrade/program/Cargo.toml
+++ b/token-upgrade/program/Cargo.toml
@@ -22,7 +22,7 @@ thiserror = "1.0"
 [dev-dependencies]
 solana-program-test = "2.0.0"
 solana-sdk = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] }
+spl-token = { version = "6.0", path = "../../token/program", features = ["no-entrypoint"] }
 spl-token-client = { version = "0.10.0", path = "../../token/client" }
 test-case = "3.3"
 
diff --git a/token-wrap/program/Cargo.toml b/token-wrap/program/Cargo.toml
index 6a0711459..9303b1a72 100644
--- a/token-wrap/program/Cargo.toml
+++ b/token-wrap/program/Cargo.toml
@@ -16,7 +16,7 @@ bytemuck = { version = "1.16.1", features = ["derive"] }
 num_enum = "0.7"
 solana-program = "2.0.0"
 spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = ["no-entrypoint"] }
-spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] }
+spl-token = { version = "6.0", path = "../../token/program", features = ["no-entrypoint"] }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] }
 thiserror = "1.0"
 
diff --git a/token/cli/Cargo.toml b/token/cli/Cargo.toml
index 53eb6484d..63ea453cc 100644
--- a/token/cli/Cargo.toml
+++ b/token/cli/Cargo.toml
@@ -28,7 +28,7 @@ solana-logger = "2.0.0"
 solana-remote-wallet = "2.0.0"
 solana-sdk = "2.0.0"
 solana-transaction-status = "2.0.0"
-spl-token = { version = "5.0", path = "../program", features = [
+spl-token = { version = "6.0", path = "../program", features = [
   "no-entrypoint",
 ] }
 spl-token-2022 = { version = "3.0.2", path = "../program-2022", features = [
diff --git a/token/client/Cargo.toml b/token/client/Cargo.toml
index 564c3403d..9b43b8161 100644
--- a/token/client/Cargo.toml
+++ b/token/client/Cargo.toml
@@ -26,7 +26,7 @@ spl-associated-token-account = { version = "3.0.2", path = "../../associated-tok
 spl-memo = { version = "5.0", path = "../../memo/program", features = [
   "no-entrypoint",
 ] }
-spl-token = { version = "5.0", path = "../program", features = [
+spl-token = { version = "6.0", path = "../program", features = [
   "no-entrypoint",
 ] }
 spl-token-2022 = { version = "3.0.2", path = "../program-2022" }
diff --git a/token/program-2022/Cargo.toml b/token/program-2022/Cargo.toml
index a63f29150..1661569de 100644
--- a/token/program-2022/Cargo.toml
+++ b/token/program-2022/Cargo.toml
@@ -30,7 +30,7 @@ solana-program = "2.0.0"
 solana-security-txt = "1.1.1"
 solana-zk-token-sdk = "2.0.0"
 spl-memo = { version = "5.0", path = "../../memo/program", features = [ "no-entrypoint" ] }
-spl-token = { version = "5.0",  path = "../program", features = ["no-entrypoint"] }
+spl-token = { version = "6.0",  path = "../program", features = ["no-entrypoint"] }
 spl-token-group-interface = { version = "0.2.3", path = "../../token-group/interface" }
 spl-token-metadata-interface = { version = "0.3.3", path = "../../token-metadata/interface" }
 spl-transfer-hook-interface = { version = "0.6.3", path = "../transfer-hook/interface" }
diff --git a/token/program/Cargo.toml b/token/program/Cargo.toml
index ffc5c1b75..a3754001d 100644
--- a/token/program/Cargo.toml
+++ b/token/program/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "spl-token"
-version = "5.0.0"
+version = "6.0.0"
 description = "Solana Program Library Token"
 authors = ["Solana Labs Maintainers <maintainers@solanalabs.com>"]
 repository = "https://github.com/solana-labs/solana-program-library"
diff --git a/token/transfer-hook/interface/Cargo.toml b/token/transfer-hook/interface/Cargo.toml
index 774b84230..cc487f51b 100644
--- a/token/transfer-hook/interface/Cargo.toml
+++ b/token/transfer-hook/interface/Cargo.toml
@@ -12,7 +12,7 @@ arrayref = "0.3.7"
 bytemuck = { version = "1.16.1", features = ["derive"] }
 solana-program = "2.0.0"
 spl-discriminator = { version = "0.3.0" , path = "../../../libraries/discriminator" }
-spl-program-error = { version = "0.4.0" , path = "../../../libraries/program-error" }
+spl-program-error = { version = "0.5.0" , path = "../../../libraries/program-error" }
 spl-tlv-account-resolution = { version = "0.6.3" , path = "../../../libraries/tlv-account-resolution" }
 spl-type-length-value = { version = "0.4.3" , path = "../../../libraries/type-length-value" }
 spl-pod = { version = "0.2.2", path = "../../../libraries/pod" }


Test patch:
diff --git a/associated-token-account/program-test/Cargo.toml b/associated-token-account/program-test/Cargo.toml
index 82c8bd336..93be4ea75 100644
--- a/associated-token-account/program-test/Cargo.toml
+++ b/associated-token-account/program-test/Cargo.toml
@@ -15,5 +15,5 @@ solana-program = "2.0.0"
 solana-program-test = "2.0.0"
 solana-sdk = "2.0.0"
 spl-associated-token-account = { version = "3.0.2", path = "../program", features = ["no-entrypoint"] }
-spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] }
+spl-token = { version = "6.0", path = "../../token/program", features = ["no-entrypoint"] }
 spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] }
diff --git a/governance/test-sdk/Cargo.toml b/governance/test-sdk/Cargo.toml
index 7edef72b0..30edbbf80 100644
--- a/governance/test-sdk/Cargo.toml
+++ b/governance/test-sdk/Cargo.toml
@@ -19,7 +19,7 @@ serde_derive = "1.0.103"
 solana-program = "2.0.0"
 solana-program-test = "2.0.0"
 solana-sdk = "2.0.0"
-spl-token = { version = "5.0", path = "../../token/program", features = [
+spl-token = { version = "6.0", path = "../../token/program", features = [
   "no-entrypoint",
 ] }
 thiserror = "1.0"