Skip to main content

rwa_kyc_hook_api/
lib.rs

1pub mod consts;
2pub mod error;
3pub mod event;
4pub mod instruction;
5pub mod kyc;
6pub mod loaders;
7pub mod sdk;
8pub mod state;
9pub mod test_utils;
10
11pub mod prelude {
12    pub use crate::consts::{
13        is_transfer_hook_instruction, CONFIG, ISSUER, KYC_RECORD, MAX_ISSUER_ID_LEN,
14        MAX_OFFERING_ID_LEN, MINT_CONFIG, MINT_CONFIG_ISSUER_ID_OFFSET,
15        MINT_CONFIG_OFFERING_ID_OFFSET, STEEL_ACCOUNT_DISCRIMINATOR_LEN,
16        TOKEN_ACCOUNT_OWNER_OFFSET,
17    };
18    pub use crate::error::*;
19    pub use crate::event::*;
20    pub use crate::instruction::*;
21    pub use crate::kyc::*;
22    pub use crate::loaders::*;
23    pub use crate::sdk::*;
24    pub use crate::state::*;
25}
26
27use steel::*;
28
29// Placeholder for Steel tooling only. On-chain logic MUST use the runtime `program_id`
30// from the entrypoint — never `crate::ID` — so one SBF artifact deploys to any cluster.
31declare_id!("11111111111111111111111111111111");
32
33#[cfg(test)]
34mod id_tests {
35    use super::*;
36    use solana_program::pubkey::Pubkey;
37
38    #[test]
39    fn placeholder_id_is_sentinel() {
40        assert_eq!(id(), Pubkey::default());
41    }
42}