From 5adc821b5d36e22bb929cdcfcf61eae67a2beac0 Mon Sep 17 00:00:00 2001 From: Jon C Date: Tue, 25 Jun 2024 12:49:39 +0200 Subject: [PATCH] tlv: Bump to 0.5.0 for Solana v2 compatibility --- Cargo.lock | 48 +++++++++---------- libraries/tlv-account-resolution/Cargo.toml | 2 +- .../type-length-value-derive-test/Cargo.toml | 2 +- libraries/type-length-value/Cargo.toml | 2 +- token-collection/program/Cargo.toml | 2 +- token-group/example/Cargo.toml | 2 +- token-group/interface/Cargo.toml | 2 +- token-metadata/example/Cargo.toml | 2 +- token-metadata/interface/Cargo.toml | 2 +- token/program-2022/Cargo.toml | 2 +- token/transfer-hook/example/Cargo.toml | 2 +- token/transfer-hook/interface/Cargo.toml | 2 +- 12 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 694e56a8a0f..c616b60aca5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7452,7 +7452,7 @@ dependencies = [ "spl-discriminator 0.3.0", "spl-pod 0.2.2", "spl-program-error 0.5.0", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7466,7 +7466,7 @@ dependencies = [ "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", - "spl-type-length-value 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-type-length-value 0.4.3", ] [[package]] @@ -7530,7 +7530,7 @@ dependencies = [ "spl-token-group-interface 0.2.3", "spl-token-metadata-interface 0.3.3", "spl-transfer-hook-interface 0.6.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", "thiserror", ] @@ -7554,7 +7554,7 @@ dependencies = [ "spl-token-group-interface 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "spl-token-metadata-interface 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "spl-transfer-hook-interface 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)", + "spl-type-length-value 0.4.3", "thiserror", ] @@ -7660,7 +7660,7 @@ dependencies = [ "spl-token-group-example", "spl-token-group-interface 0.2.3", "spl-token-metadata-interface 0.3.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7676,7 +7676,7 @@ dependencies = [ "spl-token-client", "spl-token-group-interface 0.2.3", "spl-token-metadata-interface 0.3.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7688,7 +7688,7 @@ dependencies = [ "spl-discriminator 0.3.0", "spl-pod 0.2.2", "spl-program-error 0.5.0", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7748,7 +7748,7 @@ dependencies = [ "spl-token-2022 3.0.2", "spl-token-client", "spl-token-metadata-interface 0.3.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", "test-case", ] @@ -7763,7 +7763,7 @@ dependencies = [ "spl-discriminator 0.3.0", "spl-pod 0.2.2", "spl-program-error 0.5.0", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7777,7 +7777,7 @@ dependencies = [ "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", - "spl-type-length-value 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-type-length-value 0.4.3", ] [[package]] @@ -7901,7 +7901,7 @@ dependencies = [ "spl-tlv-account-resolution 0.6.3", "spl-token-2022 3.0.2", "spl-transfer-hook-interface 0.6.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] @@ -7915,7 +7915,7 @@ dependencies = [ "spl-pod 0.2.2", "spl-program-error 0.5.0", "spl-tlv-account-resolution 0.6.3", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", "tokio", ] @@ -7932,32 +7932,32 @@ dependencies = [ "spl-pod 0.2.2 (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)", + "spl-type-length-value 0.4.3", ] [[package]] name = "spl-type-length-value" version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "422ce13429dbd41d2cee8a73931c05fda0b0c8ca156a8b0c19445642550bb61a" dependencies = [ "bytemuck", "solana-program", - "spl-discriminator 0.3.0", - "spl-pod 0.2.2", - "spl-program-error 0.5.0", - "spl-type-length-value-derive", + "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", ] [[package]] name = "spl-type-length-value" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "422ce13429dbd41d2cee8a73931c05fda0b0c8ca156a8b0c19445642550bb61a" +version = "0.5.0" dependencies = [ "bytemuck", "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", + "spl-discriminator 0.3.0", + "spl-pod 0.2.2", + "spl-program-error 0.5.0", + "spl-type-length-value-derive", ] [[package]] @@ -7976,7 +7976,7 @@ dependencies = [ "borsh 1.5.1", "solana-program", "spl-discriminator 0.3.0", - "spl-type-length-value 0.4.3", + "spl-type-length-value 0.5.0", ] [[package]] diff --git a/libraries/tlv-account-resolution/Cargo.toml b/libraries/tlv-account-resolution/Cargo.toml index 0993a1234b5..ebdf5a04143 100644 --- a/libraries/tlv-account-resolution/Cargo.toml +++ b/libraries/tlv-account-resolution/Cargo.toml @@ -17,7 +17,7 @@ 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.5.0", path = "../program-error" } -spl-type-length-value = { version = "0.4.3", path = "../type-length-value" } +spl-type-length-value = { version = "0.5.0", path = "../type-length-value" } spl-pod = { version = "0.2.2", path = "../pod" } [dev-dependencies] diff --git a/libraries/type-length-value-derive-test/Cargo.toml b/libraries/type-length-value-derive-test/Cargo.toml index 5ab0d1b6759..124e1cc4015 100644 --- a/libraries/type-length-value-derive-test/Cargo.toml +++ b/libraries/type-length-value-derive-test/Cargo.toml @@ -11,6 +11,6 @@ edition = "2021" borsh = "1.5.1" solana-program = "2.0.0" spl-discriminator = { version = "0.3.0", path = "../discriminator" } -spl-type-length-value = { version = "0.4.3", path = "../type-length-value", features = [ +spl-type-length-value = { version = "0.5.0", path = "../type-length-value", features = [ "derive", ] } diff --git a/libraries/type-length-value/Cargo.toml b/libraries/type-length-value/Cargo.toml index f2eb9cfaa1d..67a32c87e52 100644 --- a/libraries/type-length-value/Cargo.toml +++ b/libraries/type-length-value/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spl-type-length-value" -version = "0.4.3" +version = "0.5.0" description = "Solana Program Library Type-Length-Value Management" authors = ["Solana Labs Maintainers "] repository = "https://github.com/solana-labs/solana-program-library" diff --git a/token-collection/program/Cargo.toml b/token-collection/program/Cargo.toml index 2018bd2e806..6d019d8af9c 100644 --- a/token-collection/program/Cargo.toml +++ b/token-collection/program/Cargo.toml @@ -19,7 +19,7 @@ spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", feature 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" } spl-token-metadata-interface = { version = "0.3.3", path = "../../token-metadata/interface" } -spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0", path = "../../libraries/type-length-value" } [dev-dependencies] solana-program-test = "2.0.0" diff --git a/token-group/example/Cargo.toml b/token-group/example/Cargo.toml index 0e077fe1d95..4017dbc3abd 100644 --- a/token-group/example/Cargo.toml +++ b/token-group/example/Cargo.toml @@ -16,7 +16,7 @@ solana-program = "2.0.0" spl-pod = { version = "0.2.2", path = "../../libraries/pod" } spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] } spl-token-group-interface = { version = "0.2.3", path = "../interface" } -spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0", path = "../../libraries/type-length-value" } [dev-dependencies] solana-program-test = "2.0.0" diff --git a/token-group/interface/Cargo.toml b/token-group/interface/Cargo.toml index 13b2a313eff..a215ed53db6 100644 --- a/token-group/interface/Cargo.toml +++ b/token-group/interface/Cargo.toml @@ -15,7 +15,7 @@ spl-pod = { version = "0.2.2" , path = "../../libraries/pod", features = ["borsh 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"] } +spl-type-length-value = { version = "0.5.0", path = "../../libraries/type-length-value", features = ["derive"] } [lib] crate-type = ["cdylib", "lib"] diff --git a/token-metadata/example/Cargo.toml b/token-metadata/example/Cargo.toml index bcf3a69164d..d1d5fbe96fc 100644 --- a/token-metadata/example/Cargo.toml +++ b/token-metadata/example/Cargo.toml @@ -15,7 +15,7 @@ test-sbf = [] solana-program = "2.0.0" spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] } spl-token-metadata-interface = { version = "0.3.3", path = "../interface" } -spl-type-length-value = { version = "0.4.3" , path = "../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0" , path = "../../libraries/type-length-value" } spl-pod = { version = "0.2.2", path = "../../libraries/pod" } [dev-dependencies] diff --git a/token-metadata/interface/Cargo.toml b/token-metadata/interface/Cargo.toml index 721b5aee7ba..252ec1ea286 100644 --- a/token-metadata/interface/Cargo.toml +++ b/token-metadata/interface/Cargo.toml @@ -16,7 +16,7 @@ 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.5.0", path = "../../libraries/program-error" } -spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0", path = "../../libraries/type-length-value" } spl-pod = { version = "0.2.2", path = "../../libraries/pod", features = [ "borsh", ] } diff --git a/token/program-2022/Cargo.toml b/token/program-2022/Cargo.toml index a63f2915051..87a3f7e0536 100644 --- a/token/program-2022/Cargo.toml +++ b/token/program-2022/Cargo.toml @@ -34,7 +34,7 @@ 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" } -spl-type-length-value = { version = "0.4.3", path = "../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0", path = "../../libraries/type-length-value" } spl-pod = { version = "0.2.2", path = "../../libraries/pod" } thiserror = "1.0" serde = { version = "1.0.203", optional = true } diff --git a/token/transfer-hook/example/Cargo.toml b/token/transfer-hook/example/Cargo.toml index 65dac3a22bc..171ccd1328f 100644 --- a/token/transfer-hook/example/Cargo.toml +++ b/token/transfer-hook/example/Cargo.toml @@ -19,7 +19,7 @@ solana-program = "2.0.0" spl-tlv-account-resolution = { version = "0.6.3" , path = "../../../libraries/tlv-account-resolution" } spl-token-2022 = { version = "3.0.2", path = "../../program-2022", features = ["no-entrypoint"] } spl-transfer-hook-interface = { version = "0.6.3" , path = "../interface" } -spl-type-length-value = { version = "0.4.3" , path = "../../../libraries/type-length-value" } +spl-type-length-value = { version = "0.5.0" , path = "../../../libraries/type-length-value" } [dev-dependencies] solana-program-test = "2.0.0" diff --git a/token/transfer-hook/interface/Cargo.toml b/token/transfer-hook/interface/Cargo.toml index cc487f51b17..d0244f0fb75 100644 --- a/token/transfer-hook/interface/Cargo.toml +++ b/token/transfer-hook/interface/Cargo.toml @@ -14,7 +14,7 @@ solana-program = "2.0.0" spl-discriminator = { version = "0.3.0" , path = "../../../libraries/discriminator" } 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-type-length-value = { version = "0.5.0" , path = "../../../libraries/type-length-value" } spl-pod = { version = "0.2.2", path = "../../../libraries/pod" } [lib]