v0.1.0-pre.017

This commit is contained in:
2026-07-24 19:10:22 +02:00
parent 252fe51e34
commit 3e1d034633
1656 changed files with 315 additions and 198763 deletions

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/executor.rs
// version: 4
// version: 5
//! Consolidated executor modules.
@@ -493,6 +493,14 @@ pub use self::solana::ExSolanaCoreVoteLockout;
pub use self::solana::ExSolanaCoreZkElGamalContextState;
/// Exposes the official ZK ElGamal proof kinds.
pub use self::solana::ExSolanaCoreZkElGamalProofType;
/// Exposes the idempotent ATA creation operation code.
pub use self::spl::EX_SPL_ATA_CREATE_IDEMPOTENT_OPERATION;
/// Exposes the strict ATA creation operation code.
pub use self::spl::EX_SPL_ATA_CREATE_OPERATION;
/// Exposes the nested ATA recovery operation code.
pub use self::spl::EX_SPL_ATA_RECOVER_NESTED_OPERATION;
/// Exposes every supported ATA operation code.
pub use self::spl::EX_SPL_ATA_SUPPORTED_OPERATION_CODES;
/// Exposes the stable SPL Memo add-memo operation code.
pub use self::spl::EX_SPL_MEMO_ADD_MEMO_OPERATION;
/// Exposes the SPL Memo payload bound.
@@ -501,8 +509,14 @@ pub use self::spl::EX_SPL_MEMO_MAX_MESSAGE_BYTES;
pub use self::spl::EX_SPL_MEMO_MAX_SIGNERS;
/// Exposes the reserved `spl/account_compression` executor.
pub use self::spl::ExSplAccountCompressionExecutor;
/// Exposes the reserved `spl/associated_token_account` executor.
/// Exposes the typed SPL ATA execution intent.
pub use self::spl::ExSplAssociatedTokenAccountExecutionIntent;
/// Exposes the SPL ATA executor.
pub use self::spl::ExSplAssociatedTokenAccountExecutor;
/// Exposes one typed SPL ATA operation.
pub use self::spl::ExSplAssociatedTokenAccountOperation;
/// Exposes the exact Token Program used by ATA derivation.
pub use self::spl::ExSplAssociatedTokenProgram;
/// Exposes the reserved `spl/elgamal_registry` executor.
pub use self::spl::ExSplElgamalRegistryExecutor;
/// Exposes the typed SPL Memo execution intent.
@@ -598,8 +612,12 @@ pub(crate) use self::solana::executor_solana_core_validate_seeded_address;
pub(crate) use self::solana::executor_solana_core_vote_build_prepared_plan;
/// Crate-root access to `build_prepared_plan` from `zk_elgamal`.
pub(crate) use self::solana::executor_solana_core_zk_elgamal_build_prepared_plan;
/// Canonical SPL ATA tracing target.
pub(crate) use self::spl::EX_SPL_ATA_TRACING_TARGET;
/// Canonical SPL Memo tracing target.
pub(crate) use self::spl::EX_SPL_MEMO_TRACING_TARGET;
/// Internal SPL ATA plan builder.
pub(crate) use self::spl::executor_spl_ata_build_prepared_plan;
/// Internal SPL Memo plan builder.
pub(crate) use self::spl::executor_spl_memo_build_prepared_plan;
@@ -607,7 +625,7 @@ pub(crate) use self::spl::executor_spl_memo_build_prepared_plan;
mod reserved_executor_tests {
#[test]
fn every_reserved_executor_is_registered_and_builds_only_an_empty_plan() {
let executors: [&dyn crate::ExApiInstructionExecutor; 102] = [
let executors: [&dyn crate::ExApiInstructionExecutor; 101] = [
&crate::ExAdapterSaberDecimalWrapperExecutor,
&crate::ExAdminJupiterLockExecutor,
&crate::ExAdminPumpFeesExecutor,
@@ -686,7 +704,6 @@ mod reserved_executor_tests {
&crate::ExRouterOkxLabsV2Executor,
&crate::ExRwaOndoGlobalMarketsExecutor,
&crate::ExSplAccountCompressionExecutor,
&crate::ExSplAssociatedTokenAccountExecutor,
&crate::ExSplElgamalRegistryExecutor,
&crate::ExSplNoopExecutor,
&crate::ExSplSinglePoolExecutor,
@@ -711,7 +728,7 @@ mod reserved_executor_tests {
&crate::ExWalletJupiterApeproSmartWalletExecutor,
&crate::ExWeightedSwapStabbleExecutor,
];
assert_eq!(executors.len(), 103);
assert_eq!(executors.len(), 101);
for executor in executors {
assert!(!executor.program_ids().is_empty());
for program_id in executor.program_ids() {