ephemeral_rollups_sdk/
consts.rs

1// NOTE: this should go into a core package that both the sdk + the program can depend on
2use solana_program::pubkey;
3use solana_program::pubkey::Pubkey;
4
5/// The delegation program ID.
6pub const DELEGATION_PROGRAM_ID: Pubkey = pubkey!("DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh");
7
8/// The magic program ID.
9pub const MAGIC_PROGRAM_ID: Pubkey = pubkey!("Magic11111111111111111111111111111111111111");
10
11/// The magic context ID.
12pub const MAGIC_CONTEXT_ID: Pubkey = pubkey!("MagicContext1111111111111111111111111111111");
13
14///
15/// The seed of the authority account PDA.
16pub const DELEGATION_RECORD: &[u8] = b"delegation";
17
18/// The account to store the delegated account seeds.
19pub const DELEGATION_METADATA: &[u8] = b"delegation-metadata";
20
21/// The seed of the buffer account PDA.
22pub const BUFFER: &[u8] = b"buffer";
23
24/// The seed of the committed state PDA.
25pub const COMMIT_STATE: &[u8] = b"state-diff";
26
27/// The seed of a commit state record PDA.
28pub const COMMIT_RECORD: &[u8] = b"commit-state-record";
29
30/// The discriminator for the external undelegate instruction.
31pub const EXTERNAL_UNDELEGATE_DISCRIMINATOR: [u8; 8] = [196, 28, 41, 206, 48, 37, 51, 167];