MCPcopy Create free account
hub / github.com/JumpCrypto/sol-arc / ModifyComponent

Class ModifyComponent

programs/registry/src/context.rs:339–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337#[derive(Accounts)]
338#[instruction(components: Vec<Pubkey>, data:Vec<Vec<u8>>)]
339pub struct ModifyComponent<'info>{
340 //Used to Sign Tx for the CPI
341 #[account(
342 seeds=[b"registry_signer"],
343 bump,
344 )]
345 pub registry_config: Account<'info, RegistryConfig>,
346
347 #[account(
348 mut,
349 constraint = entity.registry.key() == program_id.key() && action_bundle_registration.instances.contains(&entity.instance)
350 )]
351 pub entity: Account<'info, Entity>,
352
353 pub action_bundle: Signer<'info>,
354
355 // System is allowed to modify the component it's adding
356 // System is a signer
357 #[account(
358 constraint = action_bundle_registration.action_bundle.key() == action_bundle.key() && check_sys_registry(&components, &action_bundle_registration.components)
359 )]
360 pub action_bundle_registration: Account<'info, ActionBundleRegistration>,
361
362 pub core_ds: Program<'info, CoreDs>,
363}
364
365#[derive(Accounts)]
366pub struct RemoveEntity<'info>{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected