From 4b22f184f6f4fc70b7b48ef859402727f5792251 Mon Sep 17 00:00:00 2001 From: Michael Danenberg <56533526+danenbm@users.noreply.github.com> Date: Thu, 30 May 2024 07:13:31 -0700 Subject: [PATCH] Update to mpl-core client that supports external plugins (#46) --- Cargo.lock | 56 ++++++++++++++++++++++++++++++++++++++++-- blockbuster/Cargo.toml | 2 +- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0f3296b..05f3062 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2159,6 +2159,27 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "modular-bitfield" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a53d79ba8304ac1c4f9eb3b9d281f21f7be9d4626f72ce7df4ad8fbde4f38a74" +dependencies = [ + "modular-bitfield-impl", + "static_assertions", +] + +[[package]] +name = "modular-bitfield-impl" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a7d5f7076603ebc68de2dc6a650ec331a062a13abaa346975be747bbfa4b789" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "mpl-bubblegum" version = "1.2.0" @@ -2175,15 +2196,18 @@ dependencies = [ [[package]] name = "mpl-core" -version = "0.5.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5c11b334e9243b0953095358b7f1e9b17b197a1a3ec9f1ece4be340bcb6b6f2" +checksum = "69b314fcf76dc22cc42a02a208231c667d0c533ce140d6ba9985df5a2a50b0aa" dependencies = [ "base64 0.22.0", "borsh 0.10.3", + "modular-bitfield", "num-derive 0.3.3", "num-traits", + "rmp-serde", "serde", + "serde_json", "serde_with 3.7.0", "solana-program", "thiserror", @@ -2930,6 +2954,28 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rmp" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "228ed7c16fa39782c3b3468e974aec2795e9089153cd08ee2e9aefb3613334c4" +dependencies = [ + "byteorder", + "num-traits", + "paste", +] + +[[package]] +name = "rmp-serde" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52e599a477cf9840e92f2cde9a7189e67b42c57532749bf90aea6ec10facd4db" +dependencies = [ + "byteorder", + "rmp", + "serde", +] + [[package]] name = "rpassword" version = "7.3.1" @@ -4349,6 +4395,12 @@ dependencies = [ "spl-program-error", ] +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + [[package]] name = "strsim" version = "0.8.0" diff --git a/blockbuster/Cargo.toml b/blockbuster/Cargo.toml index 5055b57..bdc2658 100644 --- a/blockbuster/Cargo.toml +++ b/blockbuster/Cargo.toml @@ -14,7 +14,7 @@ spl-token-2022 = { version = "1.0", features = ["no-entrypoint"] } spl-account-compression = { version = "0.3.0", features = ["no-entrypoint"] } spl-noop = { version = "0.2.0", features = ["no-entrypoint"] } mpl-bubblegum = "1.2.0" -mpl-core = { version = "0.5.0", features = ["serde"] } +mpl-core = { version = "0.7.0", features = ["serde"] } mpl-token-metadata = { version = "4.1.1", features = ["serde"] } spl-token = { version = "4.0.0", features = ["no-entrypoint"] } async-trait = "0.1.57"