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

Class InstanceRegistry

programs/registry/src/context.rs:33–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32#[derive(Accounts)]
33pub 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected