v0.1.0-pre.019

This commit is contained in:
2026-07-24 20:14:28 +02:00
parent f965fcc58a
commit fa2d9d8ecd
10 changed files with 703 additions and 142 deletions

View File

@@ -501,6 +501,10 @@ pub use self::spl::EX_SPL_ATA_CREATE_OPERATION;
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 ElGamal registry creation operation code.
pub use self::spl::EX_SPL_ELGAMAL_REGISTRY_CREATE_OPERATION;
/// Exposes the ElGamal registry update operation code.
pub use self::spl::EX_SPL_ELGAMAL_REGISTRY_UPDATE_OPERATION;
/// 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.
@@ -717,8 +721,14 @@ pub use self::spl::ExSplAssociatedTokenAccountExecutor;
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.
/// Exposes the typed SPL ElGamal registry execution intent.
pub use self::spl::ExSplElgamalRegistryExecutionIntent;
/// Exposes the typed SPL ElGamal registry executor.
pub use self::spl::ExSplElgamalRegistryExecutor;
/// Exposes one exact SPL ElGamal registry operation.
pub use self::spl::ExSplElgamalRegistryOperation;
/// Exposes the SPL ElGamal registry proof-location contract.
pub use self::spl::ExSplElgamalRegistryProofLocation;
/// Exposes the typed SPL Memo execution intent.
pub use self::spl::ExSplMemoExecutionIntent;
/// Exposes the SPL Memo executor.
@@ -852,6 +862,8 @@ pub(crate) use self::solana::executor_solana_core_vote_build_prepared_plan;
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 ElGamal registry tracing target.
pub(crate) use self::spl::EX_SPL_ELGAMAL_REGISTRY_TRACING_TARGET;
/// Canonical SPL Memo tracing target.
pub(crate) use self::spl::EX_SPL_MEMO_TRACING_TARGET;
/// Maximum ordered multisig signer occurrences for SPL Token-2022.
@@ -864,6 +876,8 @@ pub(crate) use self::spl::EX_SPL_TOKEN2022_MAX_UI_AMOUNT_BYTES;
pub(crate) use self::spl::EX_SPL_TOKEN2022_TRACING_TARGET;
/// Internal SPL ATA plan builder.
pub(crate) use self::spl::executor_spl_ata_build_prepared_plan;
/// Internal SPL ElGamal registry plan builder.
pub(crate) use self::spl::executor_spl_elgamal_registry_build_prepared_plan;
/// Internal SPL Memo plan builder.
pub(crate) use self::spl::executor_spl_memo_build_prepared_plan;
/// Internal SPL Token-2022 prepared-plan builder.
@@ -873,7 +887,7 @@ pub(crate) use self::spl::executor_spl_token2022_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; 100] = [
let executors: [&dyn crate::ExApiInstructionExecutor; 99] = [
&crate::ExAdapterSaberDecimalWrapperExecutor,
&crate::ExAdminJupiterLockExecutor,
&crate::ExAdminPumpFeesExecutor,
@@ -952,7 +966,6 @@ mod reserved_executor_tests {
&crate::ExRouterOkxLabsV2Executor,
&crate::ExRwaOndoGlobalMarketsExecutor,
&crate::ExSplAccountCompressionExecutor,
&crate::ExSplElgamalRegistryExecutor,
&crate::ExSplNoopExecutor,
&crate::ExSplSinglePoolExecutor,
&crate::ExSplStakePoolExecutor,
@@ -975,7 +988,7 @@ mod reserved_executor_tests {
&crate::ExWalletJupiterApeproSmartWalletExecutor,
&crate::ExWeightedSwapStabbleExecutor,
];
assert_eq!(executors.len(), 100);
assert_eq!(executors.len(), 99);
for executor in executors {
assert!(!executor.program_ids().is_empty());
for program_id in executor.program_ids() {