From 93585b44da7e9141cdf54f81213f85419384f652 Mon Sep 17 00:00:00 2001 From: Jon C Date: Mon, 24 Jun 2024 14:05:43 +0200 Subject: [PATCH] token: Update to v5 for solana-program 2.0 compatibility Updating to allow for version <= 2.0 of the solana crates can appear as a breaking change for new projects, since cargo pulls in the latest version of all dependencies, and once there's an attempt to mix v1 and v2, downstream users will see errors. This is made worse that the patch versions will quietly pick up the v2 dependency, so if someone doesn't know how to manipulate a cargo lockfile, they will get build errors and won't know how to resolve them. All other SPL crates contain a new breaking version (new major for crates on v1 or more, new minor for crates on v0.X), except for spl-token. Bump spl-token to v5. --- Cargo.lock | 60 +++++++++---------- .../program-test/Cargo.toml | 2 +- associated-token-account/program/Cargo.toml | 2 +- binary-option/program/Cargo.toml | 2 +- binary-oracle-pair/program/Cargo.toml | 2 +- examples/rust/transfer-tokens/Cargo.toml | 2 +- feature-proposal/program/Cargo.toml | 2 +- governance/addin-mock/program/Cargo.toml | 2 +- governance/chat/program/Cargo.toml | 2 +- governance/program/Cargo.toml | 2 +- governance/test-sdk/Cargo.toml | 2 +- governance/tools/Cargo.toml | 2 +- managed-token/program/Cargo.toml | 2 +- single-pool/cli/Cargo.toml | 2 +- single-pool/program/Cargo.toml | 2 +- stake-pool/cli/Cargo.toml | 2 +- stake-pool/program/Cargo.toml | 2 +- stateless-asks/program/Cargo.toml | 2 +- token-lending/cli/Cargo.toml | 2 +- token-lending/flash_loan_receiver/Cargo.toml | 2 +- token-lending/program/Cargo.toml | 2 +- token-swap/program/Cargo.toml | 2 +- token-swap/program/fuzz/Cargo.toml | 2 +- token-upgrade/cli/Cargo.toml | 2 +- token-upgrade/program/Cargo.toml | 2 +- token-wrap/program/Cargo.toml | 2 +- token/cli/Cargo.toml | 2 +- token/client/Cargo.toml | 2 +- token/program-2022/Cargo.toml | 2 +- token/program/Cargo.toml | 2 +- 30 files changed, 59 insertions(+), 59 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4887ecccdd4..f2547c5c5a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -652,7 +652,7 @@ dependencies = [ "arrayref", "borsh 1.5.1", "solana-program", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", "uint", ] @@ -1972,7 +1972,7 @@ version = "1.0.0" dependencies = [ "arrayref", "solana-program", - "spl-token 4.0.1", + "spl-token 5.0.0", ] [[package]] @@ -6873,7 +6873,7 @@ dependencies = [ "num-derive 0.4.2", "num-traits", "solana-program", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "thiserror", ] @@ -6886,7 +6886,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", ] @@ -6900,7 +6900,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", "uint", ] @@ -7035,7 +7035,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", ] [[package]] @@ -7046,7 +7046,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", ] [[package]] @@ -7084,7 +7084,7 @@ dependencies = [ "spl-governance-addin-mock", "spl-governance-test-sdk", "spl-governance-tools", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7116,7 +7116,7 @@ dependencies = [ "spl-governance-addin-api", "spl-governance-test-sdk", "spl-governance-tools", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7141,7 +7141,7 @@ dependencies = [ "spl-governance-addin-mock", "spl-governance-test-sdk", "spl-governance-tools", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7160,7 +7160,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7176,7 +7176,7 @@ dependencies = [ "serde", "serde_derive", "solana-program", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7200,7 +7200,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -7377,7 +7377,7 @@ dependencies = [ "solana-security-txt", "solana-vote-program", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "test-case", "thiserror", ] @@ -7408,7 +7408,7 @@ dependencies = [ "solana-vote-program", "spl-associated-token-account 3.0.2", "spl-single-pool", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-client", "tempfile", "test-case", @@ -7437,7 +7437,7 @@ dependencies = [ "solana-vote-program", "spl-math", "spl-pod 0.2.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "test-case", "thiserror", @@ -7465,7 +7465,7 @@ dependencies = [ "solana-sdk", "spl-associated-token-account 3.0.2", "spl-stake-pool", - "spl-token 4.0.1", + "spl-token 5.0.0", ] [[package]] @@ -7517,7 +7517,7 @@ dependencies = [ [[package]] name = "spl-token" -version = "4.0.1" +version = "5.0.0" dependencies = [ "arrayref", "bytemuck", @@ -7581,7 +7581,7 @@ dependencies = [ "spl-memo 4.0.1", "spl-pod 0.2.2", "spl-tlv-account-resolution 0.6.3", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-group-interface 0.2.3", "spl-token-metadata-interface 0.3.3", "spl-transfer-hook-interface 0.6.3", @@ -7640,7 +7640,7 @@ dependencies = [ "solana-transaction-status", "spl-associated-token-account 3.0.2", "spl-memo 4.0.1", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "spl-token-client", "spl-token-group-interface 0.2.3", @@ -7668,7 +7668,7 @@ dependencies = [ "solana-sdk", "spl-associated-token-account 3.0.2", "spl-memo 4.0.1", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "spl-token-group-interface 0.2.3", "spl-token-metadata-interface 0.3.3", @@ -7748,7 +7748,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", "uint", ] @@ -7764,7 +7764,7 @@ dependencies = [ "solana-logger", "solana-program", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-lending", ] @@ -7825,7 +7825,7 @@ dependencies = [ "solana-program", "solana-sdk", "spl-math", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "test-case", "thiserror", @@ -7839,7 +7839,7 @@ dependencies = [ "honggfuzz", "solana-program", "spl-math", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-swap", ] @@ -7853,7 +7853,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "spl-token-client", "test-case", @@ -7874,7 +7874,7 @@ dependencies = [ "solana-sdk", "solana-test-validator", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "spl-token-client", "spl-token-upgrade", @@ -7890,7 +7890,7 @@ dependencies = [ "num_enum 0.7.2", "solana-program", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-2022 3.0.2", "thiserror", ] @@ -8019,7 +8019,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-associated-token-account 3.0.2", - "spl-token 4.0.1", + "spl-token 5.0.0", "thiserror", ] @@ -8315,7 +8315,7 @@ version = "0.1.0" dependencies = [ "solana-sdk", "spl-memo 4.0.1", - "spl-token 4.0.1", + "spl-token 5.0.0", "spl-token-swap", ] diff --git a/associated-token-account/program-test/Cargo.toml b/associated-token-account/program-test/Cargo.toml index dc10bce2a75..f73e4525641 100644 --- a/associated-token-account/program-test/Cargo.toml +++ b/associated-token-account/program-test/Cargo.toml @@ -15,5 +15,5 @@ solana-program = ">=1.18.11,<=2" solana-program-test = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" spl-associated-token-account = { version = "3.0.2", path = "../program", features = ["no-entrypoint"] } -spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } +spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] } spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] } diff --git a/associated-token-account/program/Cargo.toml b/associated-token-account/program/Cargo.toml index fbceb0e7781..1cfda2e3a60 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 8e2d46e47d2..b5be9e3cb42 100644 --- a/binary-option/program/Cargo.toml +++ b/binary-option/program/Cargo.toml @@ -11,7 +11,7 @@ test-sbf = [] [dependencies] solana-program = ">=1.18.11,<=2" thiserror = "1.0" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 7d1ff233663..58a76d5ec11 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 3d05c19a203..adde8fb9b48 100644 --- a/examples/rust/transfer-tokens/Cargo.toml +++ b/examples/rust/transfer-tokens/Cargo.toml @@ -13,7 +13,7 @@ test-sbf = [] [dependencies] solana-program = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../../token/program", features = [ "no-entrypoint" ] } +spl-token = { version = "5.0", path = "../../../token/program", features = [ "no-entrypoint" ] } [dev-dependencies] solana-program-test = ">=1.18.11,<=2" diff --git a/feature-proposal/program/Cargo.toml b/feature-proposal/program/Cargo.toml index 2f6b2835fc3..18b03234868 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint", ] } diff --git a/governance/addin-mock/program/Cargo.toml b/governance/addin-mock/program/Cargo.toml index 66b089fa121..a2ecfedcef9 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../../token/program", features = [ +spl-token = { version = "5.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 f37b3e708c1..7e85c6697a2 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../../token/program", features = [ +spl-token = { version = "5.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 9b897c07efc..b42ee365eeb 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint", ] } spl-governance-tools = { version = "0.1.4", path = "../tools" } diff --git a/governance/test-sdk/Cargo.toml b/governance/test-sdk/Cargo.toml index 475d5c8118c..de8cdec997e 100644 --- a/governance/test-sdk/Cargo.toml +++ b/governance/test-sdk/Cargo.toml @@ -19,7 +19,7 @@ serde_derive = "1.0.103" solana-program = ">=1.18.11,<=2" solana-program-test = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint", ] } thiserror = "1.0" diff --git a/governance/tools/Cargo.toml b/governance/tools/Cargo.toml index 49c268aacd5..afcd3902497 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint", ] } thiserror = "1.0" diff --git a/managed-token/program/Cargo.toml b/managed-token/program/Cargo.toml index bba91a1f40b..fc1b9917c09 100644 --- a/managed-token/program/Cargo.toml +++ b/managed-token/program/Cargo.toml @@ -28,7 +28,7 @@ solana-program = ">=1.18.11,<=2" spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = [ "no-entrypoint", ] } -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 ca77a8371f5..82fea303dd2 100644 --- a/single-pool/cli/Cargo.toml +++ b/single-pool/cli/Cargo.toml @@ -27,7 +27,7 @@ solana-remote-wallet = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" solana-transaction-status = ">=1.18.11,<=2" solana-vote-program = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 4439fe303cd..b25d693b0ff 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 = ">=1.18.11,<=2" solana-security-txt = "1.1.1" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 16a5debb0b4..c64bcf7d7e8 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 = "=4.0", path = "../../token/program", features = [ +spl-token = { version = "=5.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 d36bb8a40e6..b41db543b3b 100644 --- a/stake-pool/program/Cargo.toml +++ b/stake-pool/program/Cargo.toml @@ -40,7 +40,7 @@ proptest = "1.5" solana-program-test = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" solana-vote-program = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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 f03f38eb2c0..9f0481a19b7 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ +spl-token = { version = "5.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-lending/cli/Cargo.toml b/token-lending/cli/Cargo.toml index 95b1e0ac1d4..6c1c2530bdd 100644 --- a/token-lending/cli/Cargo.toml +++ b/token-lending/cli/Cargo.toml @@ -17,7 +17,7 @@ solana-logger = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" solana-program = ">=1.18.11,<=2" spl-token-lending = { version = "0.2", path="../program", features = [ "no-entrypoint" ] } -spl-token = { version = "4.0", path="../../token/program", features = [ "no-entrypoint" ] } +spl-token = { version = "5.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 5b2556a1a23..6d5cb94bec9 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features=["no-entrypoint"] } +spl-token = { version = "5.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 251a669e31e..76951bc8e63 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 = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = [ "no-entrypoint" ] } +spl-token = { version = "5.0", path = "../../token/program", features = [ "no-entrypoint" ] } thiserror = "1.0" uint = "0.9" diff --git a/token-swap/program/Cargo.toml b/token-swap/program/Cargo.toml index 323dafca815..7ef22f53764 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 = ">=1.18.11,<=2" spl-math = { version = "0.2", path = "../../libraries/math", features = [ "no-entrypoint" ] } -spl-token = { version = "4.0", path = "../../token/program", features = [ "no-entrypoint" ] } +spl-token = { version = "5.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 71f2c53b710..26e749aa917 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 = ">=1.18.11,<=2" spl-math = { version = "0.2", path = "../../../libraries/math", features = [ "no-entrypoint" ] } -spl-token = { version = "4.0", path = "../../../token/program", features = [ "no-entrypoint" ] } +spl-token = { version = "5.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 5887dceb950..4a3460d8335 100644 --- a/token-upgrade/cli/Cargo.toml +++ b/token-upgrade/cli/Cargo.toml @@ -20,7 +20,7 @@ solana-logger = ">=1.18.11,<=2" solana-remote-wallet = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = ["no-entrypoint"] } -spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } +spl-token = { version = "5.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 b24acb97361..67a70ede66f 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 = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } +spl-token = { version = "5.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 76fbe936a19..853be93ac13 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 = ">=1.18.11,<=2" spl-associated-token-account = { version = "3.0.2", path = "../../associated-token-account/program", features = ["no-entrypoint"] } -spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } +spl-token = { version = "5.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 44819e19e55..5534625e16f 100644 --- a/token/cli/Cargo.toml +++ b/token/cli/Cargo.toml @@ -28,7 +28,7 @@ solana-logger = ">=1.18.11,<=2" solana-remote-wallet = ">=1.18.11,<=2" solana-sdk = ">=1.18.11,<=2" solana-transaction-status = ">=1.18.11,<=2" -spl-token = { version = "4.0", path = "../program", features = [ +spl-token = { version = "5.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 2d58adb0013..eb37f3724b4 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 = "4.0", path = "../../memo/program", features = [ "no-entrypoint", ] } -spl-token = { version = "4.0", path = "../program", features = [ +spl-token = { version = "5.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 82cbb8035e9..753f2e21ef7 100644 --- a/token/program-2022/Cargo.toml +++ b/token/program-2022/Cargo.toml @@ -30,7 +30,7 @@ solana-program = ">=1.18.11,<=2" solana-security-txt = "1.1.1" solana-zk-token-sdk = ">=1.18.11,<=2" spl-memo = { version = "4.0", path = "../../memo/program", features = [ "no-entrypoint" ] } -spl-token = { version = "4.0", path = "../program", features = ["no-entrypoint"] } +spl-token = { version = "5.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 16a99e10526..c4336befa2d 100644 --- a/token/program/Cargo.toml +++ b/token/program/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spl-token" -version = "4.0.1" +version = "5.0.0" description = "Solana Program Library Token" authors = ["Solana Labs Maintainers "] repository = "https://github.com/solana-labs/solana-program-library"