rwa-kyc-hook-api 0.2.0

Token-2022 KYC Transfer Hook for RWA primary issuance on x402
Documentation
use super::HookAccount;
use static_assertions::const_assert_eq;
use steel::*;

/// Pending two-step platform-admin transfer proposal (singleton, one per program).
///
/// Created by `UpdatePlatformAdmin` (propose), consumed by `AcceptPlatformAdmin`
/// after the cluster-derived timelock, or closed by `CancelPlatformAdminProposal`.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct AuthorityTransfer {
    /// Key that must sign `AcceptPlatformAdmin` to complete the transfer.
    pub proposed_admin: Pubkey,
    /// Unix timestamp of the proposal; acceptance is gated by the timelock.
    pub proposed_at: i64,
    pub bump: u8,
    pub _padding: [u8; 7],
}

const_assert_eq!(core::mem::size_of::<AuthorityTransfer>() % 8, 0);

account!(HookAccount, AuthorityTransfer);