Skip to main content

spherenet_regulated_token_interface/
lib.rs

1#![no_std]
2
3pub mod error;
4pub mod event;
5pub mod instruction;
6pub mod onchain;
7pub mod pda;
8pub mod state;
9
10/// The address type used throughout this crate's public API (PDA helpers,
11/// event payloads, and account state). Re-exported so downstream consumers
12/// can name it without depending on `pinocchio`/`solana-address` directly.
13pub use pinocchio::Address;
14
15#[cfg(not(target_os = "solana"))]
16pub mod client;
17
18const PROGRAM_ID: &str = "RToknUEh35YSeoYgqipSouivVQMhf3VNzx5TB5R9bhv";
19pub mod program {
20    use crate::PROGRAM_ID;
21
22    /// The program ID.
23    pub const ID: pinocchio::Address = pinocchio::Address::from_str_const(PROGRAM_ID);
24}
25#[cfg(not(target_os = "solana"))]
26solana_pubkey::declare_id!(PROGRAM_ID);