v0.1.1-pre.003
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-core-lib/src/lib.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
@@ -7,6 +7,7 @@
|
||||
//! Core contracts shared by the foundational KSP layers.
|
||||
|
||||
mod error;
|
||||
mod program_ids;
|
||||
|
||||
/// Common KSP error type used by higher-level crates.
|
||||
pub use self::error::Error;
|
||||
@@ -16,3 +17,99 @@ pub use self::error::ErrorCode;
|
||||
pub use self::error::ErrorContext;
|
||||
/// Common KSP result alias using [`Error`].
|
||||
pub use self::error::Result;
|
||||
/// Canonical Address Lookup Table Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_ADDRESS_LOOKUP_TABLE;
|
||||
/// Canonical Compute Budget Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_COMPUTE_BUDGET;
|
||||
/// Canonical Config Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_CONFIG;
|
||||
/// Canonical Feature Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_FEATURE;
|
||||
/// Canonical upgradeable BPF Loader Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_LOADER_BPF_UPGRADEABLE;
|
||||
/// Canonical deprecated BPF Loader Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_LOADER_BPF_V1;
|
||||
/// Canonical BPF Loader v2 Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_LOADER_BPF_V2;
|
||||
/// Canonical Native Loader Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_LOADER_NATIVE;
|
||||
/// Canonical Loader v4 Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_LOADER_V4;
|
||||
/// Canonical Ed25519 precompile Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_PRECOMPILE_ED25519;
|
||||
/// Canonical Secp256k1 precompile Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_PRECOMPILE_SECP256K1;
|
||||
/// Canonical Secp256r1 precompile Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_PRECOMPILE_SECP256R1;
|
||||
/// Canonical Slashing Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_SLASHING;
|
||||
/// Canonical Stake Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_STAKE;
|
||||
/// Canonical System Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_SYSTEM;
|
||||
/// Canonical Vote Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_VOTE;
|
||||
/// Canonical ZK ElGamal Proof Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_ZK_ELGAMAL_PROOF;
|
||||
/// Canonical ZK Token Proof Program ID as Base58 text.
|
||||
pub use self::program_ids::PRGID_SOLANA_ZK_TOKEN_PROOF;
|
||||
/// Canonical Address Lookup Table Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_ADDRESS_LOOKUP_TABLE;
|
||||
/// Canonical Compute Budget Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_COMPUTE_BUDGET;
|
||||
/// Canonical Config Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_CONFIG;
|
||||
/// Canonical Feature Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_FEATURE;
|
||||
/// Canonical upgradeable BPF Loader Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_LOADER_BPF_UPGRADEABLE;
|
||||
/// Canonical deprecated BPF Loader Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_LOADER_BPF_V1;
|
||||
/// Canonical BPF Loader v2 Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_LOADER_BPF_V2;
|
||||
/// Canonical Native Loader Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_LOADER_NATIVE;
|
||||
/// Canonical Loader v4 Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_LOADER_V4;
|
||||
/// Canonical Ed25519 precompile Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_PRECOMPILE_ED25519;
|
||||
/// Canonical Secp256k1 precompile Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_PRECOMPILE_SECP256K1;
|
||||
/// Canonical Secp256r1 precompile Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_PRECOMPILE_SECP256R1;
|
||||
/// Canonical Slashing Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_SLASHING;
|
||||
/// Canonical Stake Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_STAKE;
|
||||
/// Canonical System Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_SYSTEM;
|
||||
/// Canonical Vote Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_VOTE;
|
||||
/// Canonical ZK ElGamal Proof Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_ZK_ELGAMAL_PROOF;
|
||||
/// Canonical ZK Token Proof Program ID as a typed [`Pubkey`].
|
||||
pub use self::program_ids::PRGIDPK_SOLANA_ZK_TOKEN_PROOF;
|
||||
/// Immutable descriptor for one registered Program ID.
|
||||
pub use self::program_ids::ProgramIdEntry;
|
||||
/// Borrowed multi-axis filter for the canonical Program ID registry.
|
||||
pub use self::program_ids::ProgramIdFilter;
|
||||
/// Technical classification of one registered Program ID.
|
||||
pub use self::program_ids::ProgramIdKind;
|
||||
/// Returns the canonical Program ID registry.
|
||||
pub use self::program_ids::entries;
|
||||
/// Finds one registered Program ID by its Base58 representation.
|
||||
pub use self::program_ids::find_program_id;
|
||||
/// Finds one registered Program ID by its typed [`Pubkey`] representation.
|
||||
pub use self::program_ids::find_program_pubkey;
|
||||
/// Returns the Solana core/native Program ID view.
|
||||
pub use self::program_ids::native_program_ids;
|
||||
/// Returns Program IDs matching a multi-axis filter.
|
||||
pub use self::program_ids::program_ids;
|
||||
/// Returns Program IDs belonging to one domain.
|
||||
pub use self::program_ids::program_ids_by_domain;
|
||||
/// Returns Program IDs belonging to one family.
|
||||
pub use self::program_ids::program_ids_by_family;
|
||||
/// Returns Program IDs belonging to one protocol or project.
|
||||
pub use self::program_ids::program_ids_by_protocol;
|
||||
/// Solana account address primitive used by KSP Program IDs.
|
||||
pub use solana_pubkey::Pubkey;
|
||||
|
||||
Reference in New Issue
Block a user