ephemeral_rollups_sdk/
anchor.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#[cfg(feature = "anchor")]
pub use ephemeral_rollups_sdk_attribute_delegate::delegate;

#[cfg(feature = "anchor")]
pub use ephemeral_rollups_sdk_attribute_commit::commit;

#[cfg(feature = "anchor")]
use solana_program::pubkey::Pubkey;

#[cfg(feature = "anchor")]
extern crate anchor_lang;

#[cfg(feature = "anchor")]
pub struct DelegationProgram;

#[cfg(feature = "anchor")]
impl anchor_lang::Id for DelegationProgram {
    fn id() -> Pubkey {
        crate::consts::DELEGATION_PROGRAM_ID
    }
}

#[cfg(feature = "anchor")]
pub struct MagicProgram;

#[cfg(feature = "anchor")]
impl anchor_lang::Id for MagicProgram {
    fn id() -> Pubkey {
        crate::consts::MAGIC_PROGRAM_ID
    }
}