| 128 | #[derive(Accounts)] |
| 129 | #[instruction(components: Vec<Pubkey>)] |
| 130 | pub struct AddComponentsToActionBundleRegistration <'info> { |
| 131 | #[account(mut)] |
| 132 | pub payer: Signer<'info>, |
| 133 | pub system_program: Program<'info, System>, |
| 134 | |
| 135 | /// CoreDS Registry Instance Account |
| 136 | /// Make sure that its a Registry instance that belongs to *this* Registry |
| 137 | #[account( |
| 138 | constraint = registry_instance.registry.key() == program_id.key() |
| 139 | )] |
| 140 | pub registry_instance: Account<'info, RegistryInstance>, |
| 141 | |
| 142 | /// Make sure the instance authority is of the Registry instance that's passed in |
| 143 | #[account( |
| 144 | constraint = instance_authority.instance == registry_instance.instance |
| 145 | )] |
| 146 | pub instance_authority: Account<'info, InstanceAuthority>, |
| 147 | |
| 148 | #[account( |
| 149 | mut, |
| 150 | realloc = action_bundle_registration.to_account_info().data_len() + (components.len()*32), |
| 151 | realloc::payer = payer, |
| 152 | realloc::zero = false, |
| 153 | seeds=[ |
| 154 | b"action_bundle_registration", |
| 155 | registry_instance.key().as_ref(), |
| 156 | action_bundle.key().as_ref() |
| 157 | ], |
| 158 | bump, |
| 159 | )] |
| 160 | pub action_bundle_registration: Account<'info, ActionBundleRegistration>, |
| 161 | |
| 162 | /// CHECK: This can be any pubkey, but likely will be pubkey of |
| 163 | /// PDA Signer from System |
| 164 | pub action_bundle: AccountInfo<'info>, |
| 165 | } |
| 166 | |
| 167 | #[derive(Accounts)] |
| 168 | #[instruction(instances: Vec<u64>)] |
nothing calls this directly
no outgoing calls
no test coverage detected