rwa-kyc-hook-api 0.2.0

Token-2022 KYC Transfer Hook for RWA primary issuance on x402
Documentation
pub mod consts;
pub mod error;
pub mod event;
pub mod instruction;
pub mod kyc;
pub mod loaders;
pub mod sdk;
pub mod state;
pub mod test_utils;

pub mod prelude {
    pub use crate::consts::{
        is_transfer_hook_instruction, CONFIG, ISSUER, KYC_RECORD, MAX_ISSUER_ID_LEN,
        MAX_OFFERING_ID_LEN, MINT_CONFIG, MINT_CONFIG_ISSUER_ID_OFFSET,
        MINT_CONFIG_OFFERING_ID_OFFSET, STEEL_ACCOUNT_DISCRIMINATOR_LEN,
        TOKEN_ACCOUNT_OWNER_OFFSET,
    };
    pub use crate::error::*;
    pub use crate::event::*;
    pub use crate::instruction::*;
    pub use crate::kyc::*;
    pub use crate::loaders::*;
    pub use crate::sdk::*;
    pub use crate::state::*;
}

use steel::*;

// Placeholder for Steel tooling only. On-chain logic MUST use the runtime `program_id`
// from the entrypoint — never `crate::ID` — so one SBF artifact deploys to any cluster.
declare_id!("11111111111111111111111111111111");

#[cfg(test)]
mod id_tests {
    use super::*;
    use solana_program::pubkey::Pubkey;

    #[test]
    fn placeholder_id_is_sentinel() {
        assert_eq!(id(), Pubkey::default());
    }
}