Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update mpl-core rust client to register groups plugin as known
  • Loading branch information
pileks committed Sep 29, 2025
commit 7ddc21f143130ca9b05f8ab49edd8b6bea7bf594
24 changes: 16 additions & 8 deletions Cargo.lock

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

15 changes: 11 additions & 4 deletions clients/rust/src/hooked/advanced_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ use crate::{
types::{
AddBlocker, AppData, Attributes, Autograph, BubblegumV2, BurnDelegate, DataSection,
Edition, ExternalCheckResult, ExternalPluginAdapter, ExternalPluginAdapterKey,
ExternalPluginAdapterType, FreezeDelegate, FreezeExecute, ImmutableMetadata, Key,
LifecycleHook, LinkedAppData, LinkedLifecycleHook, MasterEdition, Oracle,
PermanentBurnDelegate, PermanentFreezeDelegate, PermanentTransferDelegate, PluginAuthority,
Royalties, TransferDelegate, UpdateDelegate, VerifiedCreators,
FreezeDelegate, FreezeExecute, Groups, ImmutableMetadata, Key, LifecycleHook,
LinkedAppData, LinkedLifecycleHook, MasterEdition, Oracle, PermanentBurnDelegate,
PermanentFreezeDelegate, PermanentTransferDelegate, PluginAuthority, Royalties,
TransferDelegate, UpdateDelegate, VerifiedCreators,
},
};

Expand Down Expand Up @@ -173,6 +173,12 @@ pub struct FreezeExecutePlugin {
pub freeze_execute: FreezeExecute,
}

#[derive(Debug, Eq, PartialEq, Clone)]
pub struct GroupsPlugin {
pub base: BasePlugin,
pub groups: Groups,
}

#[derive(Debug, Default)]
pub struct PluginsList {
pub royalties: Option<RoyaltiesPlugin>,
Expand All @@ -192,6 +198,7 @@ pub struct PluginsList {
pub autograph: Option<AutographPlugin>,
pub bubblegum_v2: Option<BubblegumV2Plugin>,
pub freeze_execute: Option<FreezeExecutePlugin>,
pub groups: Option<GroupsPlugin>,
}

#[derive(Debug, Default)]
Expand Down
11 changes: 6 additions & 5 deletions clients/rust/src/hooked/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ use crate::{
AddBlockerPlugin, AppDataWithData, AttributesPlugin, AutographPlugin, BaseAuthority,
BasePlugin, BubblegumV2Plugin, BurnDelegatePlugin, DataBlob, DataSectionWithData,
EditionPlugin, ExternalPluginAdaptersList, ExternalRegistryRecordSafe, FreezeDelegatePlugin,
FreezeExecutePlugin, ImmutableMetadataPlugin, LifecycleHookWithData, MasterEditionPlugin,
PermanentBurnDelegatePlugin, PermanentFreezeDelegatePlugin, PermanentTransferDelegatePlugin,
PluginRegistryV1Safe, PluginsList, RegistryRecordSafe, RoyaltiesPlugin, SolanaAccount,
TransferDelegatePlugin, UpdateDelegatePlugin, VerifiedCreatorsPlugin,
FreezeExecutePlugin, GroupsPlugin, ImmutableMetadataPlugin, LifecycleHookWithData,
MasterEditionPlugin, PermanentBurnDelegatePlugin, PermanentFreezeDelegatePlugin,
PermanentTransferDelegatePlugin, PluginRegistryV1Safe, PluginsList, RegistryRecordSafe,
RoyaltiesPlugin, SolanaAccount, TransferDelegatePlugin, UpdateDelegatePlugin,
VerifiedCreatorsPlugin,
};

/// Fetch the plugin from the registry.
Expand Down Expand Up @@ -348,7 +349,7 @@ pub(crate) fn registry_records_to_plugin_list(
Plugin::BubblegumV2(bubblegum_v2) => {
acc.bubblegum_v2 = Some(BubblegumV2Plugin { base, bubblegum_v2 })
}
Plugin::Groups(_) => {}
Plugin::Groups(groups) => acc.groups = Some(GroupsPlugin { base, groups }),
Plugin::FreezeExecute(freeze_execute) => {
acc.freeze_execute = Some(FreezeExecutePlugin {
base,
Expand Down
Loading