| 31 | |
| 32 | #[derive(Accounts)] |
| 33 | pub struct InstanceRegistry<'info>{ |
| 34 | #[account(mut)] |
| 35 | pub payer: Signer<'info>, |
| 36 | pub system_program: Program<'info, System>, |
| 37 | |
| 38 | #[account( |
| 39 | mut, |
| 40 | seeds=[b"registry_signer"], |
| 41 | bump, |
| 42 | )] |
| 43 | pub registry_config: Account<'info, RegistryConfig>, |
| 44 | |
| 45 | /// CHECK: Initialized via CPI |
| 46 | #[account(mut)] |
| 47 | pub registry_instance: AccountInfo<'info>, |
| 48 | pub core_ds: Program<'info, CoreDs>, |
| 49 | |
| 50 | // Instance Authority is in charge of allowing new action_bundles onto this instance |
| 51 | #[account( |
| 52 | init, |
| 53 | payer=payer, |
| 54 | seeds=[ |
| 55 | b"instance_authority", |
| 56 | registry_instance.key().as_ref() |
| 57 | ], |
| 58 | bump, |
| 59 | space=8+InstanceAuthority::get_max_size() as usize, |
| 60 | )] |
| 61 | pub instance_authority: Account<'info, InstanceAuthority> |
| 62 | |
| 63 | } |
| 64 | |
| 65 | #[derive(Accounts)] |
| 66 | #[instruction(schema:String)] |
nothing calls this directly
no outgoing calls
no test coverage detected