v0.1.0-pre.011
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `adapter` executor family.
|
||||
|
||||
pub mod saber_decimal_wrapper;
|
||||
mod saber_decimal_wrapper;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_adapter_saber_decimal_wrapper`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_adapter_saber_decimal_wrapper";
|
||||
const LEGACY_CRATE: &str = "kb_executor_adapter_saber_decimal_wrapper";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
//! `admin` executor family.
|
||||
|
||||
pub mod jupiter_lock;
|
||||
pub mod pump_fees;
|
||||
mod jupiter_lock;
|
||||
mod pump_fees;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_admin_jupiter_lock`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_admin_jupiter_lock";
|
||||
const LEGACY_CRATE: &str = "kb_executor_admin_jupiter_lock";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_admin_pump_fees`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_admin_pump_fees";
|
||||
const LEGACY_CRATE: &str = "kb_executor_admin_pump_fees";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,29 +3,29 @@
|
||||
|
||||
//! `amm` executor family.
|
||||
|
||||
pub mod aldrin_v1;
|
||||
pub mod aldrin_v2;
|
||||
pub mod alphaq;
|
||||
pub mod believe;
|
||||
pub mod bonk_swap;
|
||||
pub mod fluxbeam;
|
||||
pub mod goon_fi;
|
||||
pub mod goosefx_gamma;
|
||||
pub mod goosefx_v2;
|
||||
pub mod guac_swap;
|
||||
pub mod lifinity_swap_v2;
|
||||
pub mod metadao_futarchy_amm;
|
||||
pub mod metadao_v0_5;
|
||||
pub mod meteora_damm_v1;
|
||||
pub mod meteora_damm_v2;
|
||||
pub mod obric_v2;
|
||||
pub mod one_dex;
|
||||
pub mod pump_swap;
|
||||
pub mod raydium_lp_v4;
|
||||
pub mod solfi;
|
||||
pub mod solfi_v2;
|
||||
pub mod vertigo;
|
||||
pub mod virtuals;
|
||||
pub mod woofi;
|
||||
pub mod zero_fi;
|
||||
pub mod zora;
|
||||
mod aldrin_v1;
|
||||
mod aldrin_v2;
|
||||
mod alphaq;
|
||||
mod believe;
|
||||
mod bonk_swap;
|
||||
mod fluxbeam;
|
||||
mod goon_fi;
|
||||
mod goosefx_gamma;
|
||||
mod goosefx_v2;
|
||||
mod guac_swap;
|
||||
mod lifinity_swap_v2;
|
||||
mod metadao_futarchy_amm;
|
||||
mod metadao_v0_5;
|
||||
mod meteora_damm_v1;
|
||||
mod meteora_damm_v2;
|
||||
mod obric_v2;
|
||||
mod one_dex;
|
||||
mod pump_swap;
|
||||
mod raydium_lp_v4;
|
||||
mod solfi;
|
||||
mod solfi_v2;
|
||||
mod vertigo;
|
||||
mod virtuals;
|
||||
mod woofi;
|
||||
mod zero_fi;
|
||||
mod zora;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_aldrin_v1`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_aldrin_v1";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_aldrin_v1";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_aldrin_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_aldrin_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_aldrin_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_alphaq`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_alphaq";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_alphaq";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_believe`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_believe";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_believe";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_bonk_swap`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_bonk_swap";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_bonk_swap";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_fluxbeam`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_fluxbeam";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_fluxbeam";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_goon_fi`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_goon_fi";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_goon_fi";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_goosefx_gamma`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_goosefx_gamma";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_goosefx_gamma";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_goosefx_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_goosefx_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_goosefx_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_guac_swap`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_guac_swap";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_guac_swap";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_lifinity_swap_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_lifinity_swap_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_lifinity_swap_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_metadao_futarchy_amm`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_metadao_futarchy_amm";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_metadao_futarchy_amm";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_metadao_v0_5`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_metadao_v0_5";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_metadao_v0_5";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_meteora_damm_v1`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_meteora_damm_v1";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_meteora_damm_v1";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_meteora_damm_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_meteora_damm_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_meteora_damm_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_obric_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_obric_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_obric_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_one_dex`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_one_dex";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_one_dex";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_pump_swap`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_pump_swap";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_pump_swap";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_raydium_lp_v4`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_raydium_lp_v4";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_raydium_lp_v4";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_solfi`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_solfi";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_solfi";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_solfi_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_solfi_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_solfi_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_vertigo`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_vertigo";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_vertigo";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_virtuals`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_virtuals";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_virtuals";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_woofi`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_woofi";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_woofi";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_zero_fi`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_zero_fi";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_zero_fi";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_amm_zora`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_amm_zora";
|
||||
const LEGACY_CRATE: &str = "kb_executor_amm_zora";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,55 +3,55 @@
|
||||
|
||||
//! Executor contracts consolidated from `kb_execution_api`.
|
||||
|
||||
pub mod execution;
|
||||
pub mod executor;
|
||||
mod execution;
|
||||
mod executor;
|
||||
/// Exposes the blockhash policy kind.
|
||||
pub use crate::executor::api::execution::ExecutionBlockhashKind;
|
||||
pub use self::execution::ExApiExecutionBlockhashKind;
|
||||
/// Exposes the blockhash policy.
|
||||
pub use crate::executor::api::execution::ExecutionBlockhashPolicy;
|
||||
pub use self::execution::ExApiExecutionBlockhashPolicy;
|
||||
/// Exposes the exact execution capability result.
|
||||
pub use crate::executor::api::execution::ExecutionCapability;
|
||||
pub use self::execution::ExApiExecutionCapability;
|
||||
/// Exposes supported Solana clusters.
|
||||
pub use crate::executor::api::execution::ExecutionCluster;
|
||||
pub use self::execution::ExApiExecutionCluster;
|
||||
/// Exposes cluster restrictions.
|
||||
pub use crate::executor::api::execution::ExecutionClusterPolicy;
|
||||
pub use self::execution::ExApiExecutionClusterPolicy;
|
||||
/// Exposes the result of waiting for transaction confirmation.
|
||||
pub use crate::executor::api::execution::ExecutionConfirmationResult;
|
||||
pub use self::execution::ExApiExecutionConfirmationResult;
|
||||
/// Exposes transaction confirmation states.
|
||||
pub use crate::executor::api::execution::ExecutionConfirmationStatus;
|
||||
pub use self::execution::ExApiExecutionConfirmationStatus;
|
||||
/// Exposes explicit execution cost ceilings.
|
||||
pub use crate::executor::api::execution::ExecutionCostLimit;
|
||||
pub use self::execution::ExApiExecutionCostLimit;
|
||||
/// Exposes the complete execution policy.
|
||||
pub use crate::executor::api::execution::ExecutionPolicy;
|
||||
pub use self::execution::ExApiExecutionPolicy;
|
||||
/// Exposes the result of a transaction send adapter.
|
||||
pub use crate::executor::api::execution::ExecutionSendResult;
|
||||
pub use self::execution::ExApiExecutionSendResult;
|
||||
/// Exposes the simulation policy.
|
||||
pub use crate::executor::api::execution::ExecutionSimulationPolicy;
|
||||
pub use self::execution::ExApiExecutionSimulationPolicy;
|
||||
/// Exposes the simulation result contract.
|
||||
pub use crate::executor::api::execution::ExecutionSimulationResult;
|
||||
pub use self::execution::ExApiExecutionSimulationResult;
|
||||
/// Exposes one planned instruction account.
|
||||
pub use crate::executor::api::execution::PlannedAccount;
|
||||
pub use self::execution::ExApiPlannedAccount;
|
||||
/// Exposes one encoded planned instruction.
|
||||
pub use crate::executor::api::execution::PlannedInstruction;
|
||||
pub use self::execution::ExApiPlannedInstruction;
|
||||
/// Exposes post-execution replay diagnostics.
|
||||
pub use crate::executor::api::execution::PostExecutionDiagnostic;
|
||||
pub use self::execution::ExApiPostExecutionDiagnostic;
|
||||
/// Exposes post-execution validation requirements.
|
||||
pub use crate::executor::api::execution::PostExecutionValidationPolicy;
|
||||
pub use self::execution::ExApiPostExecutionValidationPolicy;
|
||||
/// Exposes a typed execution plan.
|
||||
pub use crate::executor::api::execution::PreparedExecutionPlan;
|
||||
pub use self::execution::ExApiPreparedExecutionPlan;
|
||||
/// Exposes one required signer.
|
||||
pub use crate::executor::api::execution::RequiredSigner;
|
||||
pub use self::execution::ExApiRequiredSigner;
|
||||
/// Exposes the typed executor contract.
|
||||
pub use crate::executor::api::execution::TypedInstructionExecutor;
|
||||
pub use self::execution::ExApiTypedInstructionExecutor;
|
||||
/// Exposes the legacy common execution plan type.
|
||||
pub use crate::executor::api::executor::ExecutionPlan;
|
||||
pub use self::executor::ExApiExecutionPlan;
|
||||
/// Exposes the legacy common execution request type.
|
||||
pub use crate::executor::api::executor::ExecutionRequest;
|
||||
pub use self::executor::ExApiExecutionRequest;
|
||||
/// Exposes the legacy common execution support enum.
|
||||
pub use crate::executor::api::executor::ExecutionSupport;
|
||||
pub use self::executor::ExApiExecutionSupport;
|
||||
/// Exposes the legacy common instruction executor trait.
|
||||
pub use crate::executor::api::executor::InstructionExecutor;
|
||||
pub use self::executor::ExApiInstructionExecutor;
|
||||
/// Exposes the compact JSON payload serializer.
|
||||
pub use crate::executor::api::executor::serialize_payload_json;
|
||||
pub use self::executor::executor_api_serialize_payload_json;
|
||||
/// Exposes the pretty JSON payload serializer.
|
||||
pub use crate::executor::api::executor::serialize_payload_json_pretty;
|
||||
pub use self::executor::executor_api_serialize_payload_json_pretty;
|
||||
|
||||
@@ -12,7 +12,7 @@ use ts_rs::TS; // rust-rules: derive-import
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionCapability.ts"
|
||||
)]
|
||||
pub enum ExecutionCapability {
|
||||
pub enum ExApiExecutionCapability {
|
||||
/// The operation is implemented by the executor.
|
||||
Supported {
|
||||
/// Stable operation code implemented by the executor.
|
||||
@@ -27,7 +27,7 @@ pub enum ExecutionCapability {
|
||||
},
|
||||
}
|
||||
|
||||
impl crate::ExecutionCapability {
|
||||
impl crate::ExApiExecutionCapability {
|
||||
/// Creates a supported capability value.
|
||||
pub fn supported(operation_code: impl std::convert::Into<std::string::String>) -> Self {
|
||||
return Self::Supported { operation_code: operation_code.into() };
|
||||
@@ -57,7 +57,7 @@ impl crate::ExecutionCapability {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionCluster.ts"
|
||||
)]
|
||||
pub enum ExecutionCluster {
|
||||
pub enum ExApiExecutionCluster {
|
||||
/// Local validator cluster.
|
||||
Localnet,
|
||||
/// Public development cluster.
|
||||
@@ -80,7 +80,7 @@ enum ExecutionClusterWire {
|
||||
Mainnet,
|
||||
}
|
||||
|
||||
impl<'de> serde::Deserialize<'de> for crate::ExecutionCluster {
|
||||
impl<'de> serde::Deserialize<'de> for crate::ExApiExecutionCluster {
|
||||
fn deserialize<Deserializer>(
|
||||
deserializer: Deserializer,
|
||||
) -> std::result::Result<Self, Deserializer::Error>
|
||||
@@ -106,19 +106,19 @@ impl<'de> serde::Deserialize<'de> for crate::ExecutionCluster {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionClusterPolicy.ts"
|
||||
)]
|
||||
pub struct ExecutionClusterPolicy {
|
||||
pub struct ExApiExecutionClusterPolicy {
|
||||
/// Cluster that the RPC endpoint must report.
|
||||
pub expected_cluster: crate::ExecutionCluster,
|
||||
pub expected_cluster: crate::ExApiExecutionCluster,
|
||||
/// Whether production execution may proceed after all other checks.
|
||||
pub allow_mainnet: bool,
|
||||
/// Whether the operator explicitly confirmed this production execution.
|
||||
pub mainnet_confirmation: bool,
|
||||
}
|
||||
|
||||
impl std::default::Default for crate::ExecutionClusterPolicy {
|
||||
impl std::default::Default for crate::ExApiExecutionClusterPolicy {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
expected_cluster: crate::ExecutionCluster::Devnet,
|
||||
expected_cluster: crate::ExApiExecutionCluster::Devnet,
|
||||
allow_mainnet: false,
|
||||
mainnet_confirmation: false,
|
||||
};
|
||||
@@ -132,7 +132,7 @@ impl std::default::Default for crate::ExecutionClusterPolicy {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionSimulationPolicy.ts"
|
||||
)]
|
||||
pub enum ExecutionSimulationPolicy {
|
||||
pub enum ExApiExecutionSimulationPolicy {
|
||||
/// Simulation must succeed before signing or sending.
|
||||
Required,
|
||||
/// Simulation is not required. Safety policy rejects this mode by default.
|
||||
@@ -146,7 +146,7 @@ pub enum ExecutionSimulationPolicy {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionBlockhashKind.ts"
|
||||
)]
|
||||
pub enum ExecutionBlockhashKind {
|
||||
pub enum ExApiExecutionBlockhashKind {
|
||||
/// Fetch a recent blockhash and enforce a bounded age.
|
||||
Latest,
|
||||
/// Use a durable nonce account and authority.
|
||||
@@ -159,21 +159,21 @@ pub enum ExecutionBlockhashKind {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionBlockhashPolicy.ts"
|
||||
)]
|
||||
pub struct ExecutionBlockhashPolicy {
|
||||
pub struct ExApiExecutionBlockhashPolicy {
|
||||
/// Selected blockhash source.
|
||||
pub kind: crate::ExecutionBlockhashKind,
|
||||
pub kind: crate::ExApiExecutionBlockhashKind,
|
||||
/// Maximum accepted age for a recent blockhash, in slots.
|
||||
pub max_age_slots: std::option::Option<u64>,
|
||||
/// Durable nonce account when `kind` is `DurableNonce`.
|
||||
pub nonce_account: std::option::Option<crate::Pubkey>,
|
||||
pub nonce_account: std::option::Option<crate::MdPubkey>,
|
||||
/// Durable nonce authority when `kind` is `DurableNonce`.
|
||||
pub nonce_authority: std::option::Option<crate::Pubkey>,
|
||||
pub nonce_authority: std::option::Option<crate::MdPubkey>,
|
||||
}
|
||||
|
||||
impl std::default::Default for crate::ExecutionBlockhashPolicy {
|
||||
impl std::default::Default for crate::ExApiExecutionBlockhashPolicy {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
kind: crate::ExecutionBlockhashKind::Latest,
|
||||
kind: crate::ExApiExecutionBlockhashKind::Latest,
|
||||
max_age_slots: std::option::Option::Some(150),
|
||||
nonce_account: std::option::Option::None,
|
||||
nonce_authority: std::option::Option::None,
|
||||
@@ -187,7 +187,7 @@ impl std::default::Default for crate::ExecutionBlockhashPolicy {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionCostLimit.ts"
|
||||
)]
|
||||
pub struct ExecutionCostLimit {
|
||||
pub struct ExApiExecutionCostLimit {
|
||||
/// Maximum lamports that operation instructions may transfer or lock.
|
||||
pub max_spend_lamports: std::option::Option<u64>,
|
||||
/// Maximum total transaction fee accepted after simulation.
|
||||
@@ -196,7 +196,7 @@ pub struct ExecutionCostLimit {
|
||||
pub max_compute_unit_price_micro_lamports: std::option::Option<u64>,
|
||||
}
|
||||
|
||||
impl std::default::Default for crate::ExecutionCostLimit {
|
||||
impl std::default::Default for crate::ExApiExecutionCostLimit {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
max_spend_lamports: std::option::Option::None,
|
||||
@@ -212,7 +212,7 @@ impl std::default::Default for crate::ExecutionCostLimit {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/PostExecutionValidationPolicy.ts"
|
||||
)]
|
||||
pub struct PostExecutionValidationPolicy {
|
||||
pub struct ExApiPostExecutionValidationPolicy {
|
||||
/// Whether the sent signature must be inserted into canonical storage.
|
||||
pub canonical_insert_required: bool,
|
||||
/// Whether core extraction must complete.
|
||||
@@ -223,7 +223,7 @@ pub struct PostExecutionValidationPolicy {
|
||||
pub materialization_required: bool,
|
||||
}
|
||||
|
||||
impl std::default::Default for crate::PostExecutionValidationPolicy {
|
||||
impl std::default::Default for crate::ExApiPostExecutionValidationPolicy {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
canonical_insert_required: true,
|
||||
@@ -240,33 +240,33 @@ impl std::default::Default for crate::PostExecutionValidationPolicy {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionPolicy.ts"
|
||||
)]
|
||||
pub struct ExecutionPolicy {
|
||||
pub struct ExApiExecutionPolicy {
|
||||
/// Cluster restrictions.
|
||||
pub cluster: crate::ExecutionClusterPolicy,
|
||||
pub cluster: crate::ExApiExecutionClusterPolicy,
|
||||
/// Simulation requirement.
|
||||
pub simulation: crate::ExecutionSimulationPolicy,
|
||||
pub simulation: crate::ExApiExecutionSimulationPolicy,
|
||||
/// Blockhash source restrictions.
|
||||
pub blockhash: crate::ExecutionBlockhashPolicy,
|
||||
pub blockhash: crate::ExApiExecutionBlockhashPolicy,
|
||||
/// Explicit operation and fee ceilings.
|
||||
pub cost_limit: crate::ExecutionCostLimit,
|
||||
pub cost_limit: crate::ExApiExecutionCostLimit,
|
||||
/// Public keys authorized to sign this plan.
|
||||
pub authorized_signers: std::vec::Vec<crate::Pubkey>,
|
||||
pub authorized_signers: std::vec::Vec<crate::MdPubkey>,
|
||||
/// Whether the operation is restricted to plan construction and simulation.
|
||||
pub dry_run: bool,
|
||||
/// Required post-execution validation steps.
|
||||
pub post_execution_validation: crate::PostExecutionValidationPolicy,
|
||||
pub post_execution_validation: crate::ExApiPostExecutionValidationPolicy,
|
||||
}
|
||||
|
||||
impl std::default::Default for crate::ExecutionPolicy {
|
||||
impl std::default::Default for crate::ExApiExecutionPolicy {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
cluster: crate::ExecutionClusterPolicy::default(),
|
||||
simulation: crate::ExecutionSimulationPolicy::Required,
|
||||
blockhash: crate::ExecutionBlockhashPolicy::default(),
|
||||
cost_limit: crate::ExecutionCostLimit::default(),
|
||||
cluster: crate::ExApiExecutionClusterPolicy::default(),
|
||||
simulation: crate::ExApiExecutionSimulationPolicy::Required,
|
||||
blockhash: crate::ExApiExecutionBlockhashPolicy::default(),
|
||||
cost_limit: crate::ExApiExecutionCostLimit::default(),
|
||||
authorized_signers: std::vec::Vec::new(),
|
||||
dry_run: true,
|
||||
post_execution_validation: crate::PostExecutionValidationPolicy::default(),
|
||||
post_execution_validation: crate::ExApiPostExecutionValidationPolicy::default(),
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -277,9 +277,9 @@ impl std::default::Default for crate::ExecutionPolicy {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/PlannedAccount.ts"
|
||||
)]
|
||||
pub struct PlannedAccount {
|
||||
pub struct ExApiPlannedAccount {
|
||||
/// Account public key.
|
||||
pub pubkey: crate::Pubkey,
|
||||
pub pubkey: crate::MdPubkey,
|
||||
/// Whether the account must sign the transaction.
|
||||
pub is_signer: bool,
|
||||
/// Whether the account must be writable.
|
||||
@@ -292,13 +292,13 @@ pub struct PlannedAccount {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/PlannedInstruction.ts"
|
||||
)]
|
||||
pub struct PlannedInstruction {
|
||||
pub struct ExApiPlannedInstruction {
|
||||
/// Target program id.
|
||||
pub program_id: crate::ProgramId,
|
||||
pub program_id: crate::MdProgramId,
|
||||
/// Stable operation code represented by the instruction.
|
||||
pub operation_code: std::string::String,
|
||||
/// Ordered account metadata.
|
||||
pub accounts: std::vec::Vec<crate::PlannedAccount>,
|
||||
pub accounts: std::vec::Vec<crate::ExApiPlannedAccount>,
|
||||
/// Exact encoded instruction payload.
|
||||
pub data: std::vec::Vec<u8>,
|
||||
}
|
||||
@@ -309,9 +309,9 @@ pub struct PlannedInstruction {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/RequiredSigner.ts"
|
||||
)]
|
||||
pub struct RequiredSigner {
|
||||
pub struct ExApiRequiredSigner {
|
||||
/// Signer public key.
|
||||
pub pubkey: crate::Pubkey,
|
||||
pub pubkey: crate::MdPubkey,
|
||||
/// Stable signer role such as `fee_payer`, `funding_account` or `new_account`.
|
||||
pub role: std::string::String,
|
||||
}
|
||||
@@ -322,7 +322,7 @@ pub struct RequiredSigner {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/PreparedExecutionPlan.ts"
|
||||
)]
|
||||
pub struct PreparedExecutionPlan {
|
||||
pub struct ExApiPreparedExecutionPlan {
|
||||
/// Stable executor crate name.
|
||||
pub executor_name: std::string::String,
|
||||
/// Executor package version.
|
||||
@@ -332,13 +332,13 @@ pub struct PreparedExecutionPlan {
|
||||
/// Stable operation code.
|
||||
pub operation_code: std::string::String,
|
||||
/// Transaction fee payer.
|
||||
pub fee_payer: crate::Pubkey,
|
||||
pub fee_payer: crate::MdPubkey,
|
||||
/// Ordered instructions to place in the transaction message.
|
||||
pub instructions: std::vec::Vec<crate::PlannedInstruction>,
|
||||
pub instructions: std::vec::Vec<crate::ExApiPlannedInstruction>,
|
||||
/// Deduplicated signers required by the fee payer and instruction metas.
|
||||
pub required_signers: std::vec::Vec<crate::RequiredSigner>,
|
||||
pub required_signers: std::vec::Vec<crate::ExApiRequiredSigner>,
|
||||
/// Explicit policy to evaluate before simulation, signing and sending.
|
||||
pub policy: crate::ExecutionPolicy,
|
||||
pub policy: crate::ExApiExecutionPolicy,
|
||||
/// Lamports explicitly transferred or locked by planned instructions.
|
||||
pub requested_spend_lamports: u64,
|
||||
/// Requested compute-unit price, when present.
|
||||
@@ -351,15 +351,15 @@ pub struct PreparedExecutionPlan {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionSimulationResult.ts"
|
||||
)]
|
||||
pub struct ExecutionSimulationResult {
|
||||
pub struct ExApiExecutionSimulationResult {
|
||||
/// Whether an RPC simulation call was actually performed.
|
||||
pub simulated: bool,
|
||||
/// Whether the simulated transaction completed successfully.
|
||||
pub success: bool,
|
||||
/// Cluster reported by the simulation adapter.
|
||||
pub cluster: crate::ExecutionCluster,
|
||||
pub cluster: crate::ExApiExecutionCluster,
|
||||
/// Blockhash source used by the simulated transaction.
|
||||
pub blockhash_kind: crate::ExecutionBlockhashKind,
|
||||
pub blockhash_kind: crate::ExApiExecutionBlockhashKind,
|
||||
/// Observed recent blockhash age, in slots.
|
||||
pub blockhash_age_slots: std::option::Option<u64>,
|
||||
/// Replacement blockhash returned by the node, if replacement was requested.
|
||||
@@ -369,9 +369,9 @@ pub struct ExecutionSimulationResult {
|
||||
#[serde(default)]
|
||||
pub replacement_last_valid_block_height: std::option::Option<u64>,
|
||||
/// Durable nonce account used by the simulated transaction.
|
||||
pub nonce_account: std::option::Option<crate::Pubkey>,
|
||||
pub nonce_account: std::option::Option<crate::MdPubkey>,
|
||||
/// Durable nonce authority used by the simulated transaction.
|
||||
pub nonce_authority: std::option::Option<crate::Pubkey>,
|
||||
pub nonce_authority: std::option::Option<crate::MdPubkey>,
|
||||
/// Compute units consumed when reported by the RPC endpoint.
|
||||
pub units_consumed: std::option::Option<u64>,
|
||||
/// Estimated transaction fee in lamports when available.
|
||||
@@ -388,11 +388,11 @@ pub struct ExecutionSimulationResult {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionSendResult.ts"
|
||||
)]
|
||||
pub struct ExecutionSendResult {
|
||||
pub struct ExApiExecutionSendResult {
|
||||
/// Cluster used for submission.
|
||||
pub cluster: crate::ExecutionCluster,
|
||||
pub cluster: crate::ExApiExecutionCluster,
|
||||
/// Signature returned by the RPC endpoint.
|
||||
pub signature: crate::Signature,
|
||||
pub signature: crate::MdSignature,
|
||||
/// Whether submission was accepted by the RPC endpoint.
|
||||
pub submitted: bool,
|
||||
}
|
||||
@@ -404,7 +404,7 @@ pub struct ExecutionSendResult {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionConfirmationStatus.ts"
|
||||
)]
|
||||
pub enum ExecutionConfirmationStatus {
|
||||
pub enum ExApiExecutionConfirmationStatus {
|
||||
/// The transaction was observed at processed commitment.
|
||||
Processed,
|
||||
/// The transaction reached confirmed commitment.
|
||||
@@ -425,13 +425,13 @@ pub enum ExecutionConfirmationStatus {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/ExecutionConfirmationResult.ts"
|
||||
)]
|
||||
pub struct ExecutionConfirmationResult {
|
||||
pub struct ExApiExecutionConfirmationResult {
|
||||
/// Cluster queried for confirmation.
|
||||
pub cluster: crate::ExecutionCluster,
|
||||
pub cluster: crate::ExApiExecutionCluster,
|
||||
/// Submitted transaction signature.
|
||||
pub signature: crate::Signature,
|
||||
pub signature: crate::MdSignature,
|
||||
/// Highest confirmation state reached.
|
||||
pub status: crate::ExecutionConfirmationStatus,
|
||||
pub status: crate::ExApiExecutionConfirmationStatus,
|
||||
/// Slot that reported the transaction when available.
|
||||
pub slot: std::option::Option<u64>,
|
||||
/// Number of status polling attempts performed.
|
||||
@@ -448,9 +448,9 @@ pub struct ExecutionConfirmationResult {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/execution/PostExecutionDiagnostic.ts"
|
||||
)]
|
||||
pub struct PostExecutionDiagnostic {
|
||||
pub struct ExApiPostExecutionDiagnostic {
|
||||
/// Executed transaction signature.
|
||||
pub signature: crate::Signature,
|
||||
pub signature: crate::MdSignature,
|
||||
/// Whether canonical insertion completed.
|
||||
pub canonical_inserted: bool,
|
||||
/// Whether core extraction completed.
|
||||
@@ -464,33 +464,33 @@ pub struct PostExecutionDiagnostic {
|
||||
}
|
||||
|
||||
/// Contract implemented by executors that expose typed intents and exact plans.
|
||||
pub trait TypedInstructionExecutor {
|
||||
pub trait ExApiTypedInstructionExecutor {
|
||||
/// Protocol-specific typed intent.
|
||||
type Intent;
|
||||
|
||||
/// Returns the exact capability for one program and operation code.
|
||||
fn capability(
|
||||
&self,
|
||||
program_id: &crate::ProgramId,
|
||||
program_id: &crate::MdProgramId,
|
||||
operation_code: &str,
|
||||
) -> crate::ExecutionCapability;
|
||||
) -> crate::ExApiExecutionCapability;
|
||||
|
||||
/// Builds a typed execution plan without signing, sending or performing I/O.
|
||||
fn build_prepared_plan(
|
||||
&self,
|
||||
intent: &Self::Intent,
|
||||
) -> kb_core::Result<crate::PreparedExecutionPlan>;
|
||||
) -> kb_core::Result<crate::ExApiPreparedExecutionPlan>;
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn mainnet_cluster_serializes_with_current_name() {
|
||||
let serialized = serde_json::to_string(&crate::ExecutionCluster::Mainnet)
|
||||
let serialized = serde_json::to_string(&crate::ExApiExecutionCluster::Mainnet)
|
||||
.unwrap_or_else(|error| panic!("unexpected serialization error: {error}"));
|
||||
assert_eq!(serialized, "\"mainnet\"");
|
||||
let legacy = serde_json::from_str::<crate::ExecutionCluster>("\"mainnet_beta\"")
|
||||
let legacy = serde_json::from_str::<crate::ExApiExecutionCluster>("\"mainnet_beta\"")
|
||||
.unwrap_or_else(|error| panic!("unexpected deserialization error: {error}"));
|
||||
assert_eq!(legacy, crate::ExecutionCluster::Mainnet);
|
||||
assert_eq!(legacy, crate::ExApiExecutionCluster::Mainnet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ use ts_rs::TS; // rust-rules: derive-import
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/executor/ExecutionSupport.ts"
|
||||
)]
|
||||
pub enum ExecutionSupport {
|
||||
pub enum ExApiExecutionSupport {
|
||||
/// The executor cannot handle the request.
|
||||
No,
|
||||
/// The executor may handle the request after account and payload validation.
|
||||
@@ -26,9 +26,9 @@ pub enum ExecutionSupport {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/executor/ExecutionRequest.ts"
|
||||
)]
|
||||
pub struct ExecutionRequest {
|
||||
pub struct ExApiExecutionRequest {
|
||||
/// Target program id.
|
||||
pub program_id: crate::ProgramId,
|
||||
pub program_id: crate::MdProgramId,
|
||||
/// Stable operation code such as buy, sell, transfer or route.
|
||||
pub operation_code: std::string::String,
|
||||
/// Serialized JSON payload reserved for protocol-specific arguments.
|
||||
@@ -41,7 +41,7 @@ pub struct ExecutionRequest {
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_execution_api/executor/ExecutionPlan.ts"
|
||||
)]
|
||||
pub struct ExecutionPlan {
|
||||
pub struct ExApiExecutionPlan {
|
||||
/// Stable executor crate name.
|
||||
pub executor_name: std::string::String,
|
||||
/// Number of instructions that would be produced by the final implementation.
|
||||
@@ -51,7 +51,9 @@ pub struct ExecutionPlan {
|
||||
}
|
||||
|
||||
/// Serializes a JSON payload to its compact string representation.
|
||||
pub fn serialize_payload_json(value: &serde_json::Value) -> kb_core::Result<std::string::String> {
|
||||
pub fn executor_api_serialize_payload_json(
|
||||
value: &serde_json::Value,
|
||||
) -> kb_core::Result<std::string::String> {
|
||||
return match serde_json::to_string(value) {
|
||||
std::result::Result::Ok(serialized) => std::result::Result::Ok(serialized),
|
||||
std::result::Result::Err(error) => std::result::Result::Err(kb_core::Error::new(
|
||||
@@ -62,7 +64,7 @@ pub fn serialize_payload_json(value: &serde_json::Value) -> kb_core::Result<std:
|
||||
}
|
||||
|
||||
/// Serializes a JSON payload to its pretty string representation.
|
||||
pub fn serialize_payload_json_pretty(
|
||||
pub fn executor_api_serialize_payload_json_pretty(
|
||||
value: &serde_json::Value,
|
||||
) -> kb_core::Result<std::string::String> {
|
||||
return match serde_json::to_string_pretty(value) {
|
||||
@@ -75,7 +77,7 @@ pub fn serialize_payload_json_pretty(
|
||||
}
|
||||
|
||||
/// Common contract implemented by all execution crates.
|
||||
pub trait InstructionExecutor {
|
||||
pub trait ExApiInstructionExecutor {
|
||||
/// Returns the stable executor name.
|
||||
fn executor_name(&self) -> &'static str;
|
||||
|
||||
@@ -86,7 +88,7 @@ pub trait InstructionExecutor {
|
||||
fn program_ids(&self) -> &'static [&'static str];
|
||||
|
||||
/// Tests whether this executor owns a program id.
|
||||
fn handles_program_id(&self, program_id: &crate::ProgramId) -> bool {
|
||||
fn handles_program_id(&self, program_id: &crate::MdProgramId) -> bool {
|
||||
return self
|
||||
.program_ids()
|
||||
.iter()
|
||||
@@ -94,11 +96,14 @@ pub trait InstructionExecutor {
|
||||
}
|
||||
|
||||
/// Tests whether this executor supports a request.
|
||||
fn supports_request(&self, request: &crate::ExecutionRequest) -> crate::ExecutionSupport;
|
||||
fn supports_request(
|
||||
&self,
|
||||
request: &crate::ExApiExecutionRequest,
|
||||
) -> crate::ExApiExecutionSupport;
|
||||
|
||||
/// Builds a neutral execution plan placeholder.
|
||||
fn build_plan(
|
||||
&self,
|
||||
request: &crate::ExecutionRequest,
|
||||
) -> kb_core::Result<crate::ExecutionPlan>;
|
||||
request: &crate::ExApiExecutionRequest,
|
||||
) -> kb_core::Result<crate::ExApiExecutionPlan>;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
//! `bridge` executor family.
|
||||
|
||||
pub mod circle_cctp_token_messenger_minter;
|
||||
pub mod circle_cctp_token_messenger_minter_v2;
|
||||
pub mod layer_zero_endpoint;
|
||||
pub mod layer_zero_executor;
|
||||
mod circle_cctp_token_messenger_minter;
|
||||
mod circle_cctp_token_messenger_minter_v2;
|
||||
mod layer_zero_endpoint;
|
||||
mod layer_zero_executor;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_bridge_circle_cctp_token_messenger_minter`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_bridge_circle_cctp_token_messenger_minter";
|
||||
const LEGACY_CRATE: &str = "kb_executor_bridge_circle_cctp_token_messenger_minter";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_bridge_circle_cctp_token_messenger_minter_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_bridge_circle_cctp_token_messenger_minter_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_bridge_circle_cctp_token_messenger_minter_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_bridge_layer_zero_endpoint`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_bridge_layer_zero_endpoint";
|
||||
const LEGACY_CRATE: &str = "kb_executor_bridge_layer_zero_endpoint";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_bridge_layer_zero_executor`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_bridge_layer_zero_executor";
|
||||
const LEGACY_CRATE: &str = "kb_executor_bridge_layer_zero_executor";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
//! `clmm` executor family.
|
||||
|
||||
pub mod byreal;
|
||||
pub mod fusion;
|
||||
pub mod orca_whirlpool;
|
||||
pub mod pancake_swap;
|
||||
pub mod raydium;
|
||||
pub mod stabble;
|
||||
mod byreal;
|
||||
mod fusion;
|
||||
mod orca_whirlpool;
|
||||
mod pancake_swap;
|
||||
mod raydium;
|
||||
mod stabble;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_byreal`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_byreal";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_byreal";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_fusion`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_fusion";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_fusion";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_orca_whirlpool`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_orca_whirlpool";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_orca_whirlpool";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_pancake_swap`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_pancake_swap";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_pancake_swap";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_raydium`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_raydium";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_raydium";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_clmm_stabble`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_clmm_stabble";
|
||||
const LEGACY_CRATE: &str = "kb_executor_clmm_stabble";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `cpmm` executor family.
|
||||
|
||||
pub mod raydium;
|
||||
mod raydium;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_cpmm_raydium`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_cpmm_raydium";
|
||||
const LEGACY_CRATE: &str = "kb_executor_cpmm_raydium";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `dlmm` executor family.
|
||||
|
||||
pub mod meteora;
|
||||
mod meteora;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_dlmm_meteora`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_dlmm_meteora";
|
||||
const LEGACY_CRATE: &str = "kb_executor_dlmm_meteora";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
//! `fees` executor family.
|
||||
|
||||
pub mod bags_fee_share_v1;
|
||||
pub mod bags_fee_share_v2;
|
||||
mod bags_fee_share_v1;
|
||||
mod bags_fee_share_v2;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_fees_bags_fee_share_v1`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_fees_bags_fee_share_v1";
|
||||
const LEGACY_CRATE: &str = "kb_executor_fees_bags_fee_share_v1";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_fees_bags_fee_share_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_fees_bags_fee_share_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_fees_bags_fee_share_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `governance` executor family.
|
||||
|
||||
pub mod metadao_bid_wall;
|
||||
mod metadao_bid_wall;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_governance_metadao_bid_wall`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_governance_metadao_bid_wall";
|
||||
const LEGACY_CRATE: &str = "kb_executor_governance_metadao_bid_wall";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
//! `launchpad` executor family.
|
||||
|
||||
pub mod boop_fun;
|
||||
pub mod metadao_ico;
|
||||
pub mod meteora_dbc;
|
||||
pub mod moonit;
|
||||
pub mod orca_wavebreak;
|
||||
pub mod printr;
|
||||
pub mod pump_fun;
|
||||
pub mod pump_pumpup_ai;
|
||||
pub mod raydium_launchlab;
|
||||
mod boop_fun;
|
||||
mod metadao_ico;
|
||||
mod meteora_dbc;
|
||||
mod moonit;
|
||||
mod orca_wavebreak;
|
||||
mod printr;
|
||||
mod pump_fun;
|
||||
mod pump_pumpup_ai;
|
||||
mod raydium_launchlab;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_boop_fun`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_boop_fun";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_boop_fun";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_metadao_ico`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_metadao_ico";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_metadao_ico";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_meteora_dbc`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_meteora_dbc";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_meteora_dbc";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_moonit`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_moonit";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_moonit";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_orca_wavebreak`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_orca_wavebreak";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_orca_wavebreak";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_printr`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_printr";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_printr";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_pump_fun`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_pump_fun";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_pump_fun";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_pump_pumpup_ai`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_pump_pumpup_ai";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_pump_pumpup_ai";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_launchpad_raydium_launchlab`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_launchpad_raydium_launchlab";
|
||||
const LEGACY_CRATE: &str = "kb_executor_launchpad_raydium_launchlab";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
//! `lending` executor family.
|
||||
|
||||
pub mod clone;
|
||||
pub mod jupiter_lend_borrow;
|
||||
pub mod jupiter_lend_earn;
|
||||
pub mod jupiter_lend_flash_loan;
|
||||
pub mod jupiter_lend_liquidity;
|
||||
pub mod kamino;
|
||||
pub mod marginfi_v2;
|
||||
mod clone;
|
||||
mod jupiter_lend_borrow;
|
||||
mod jupiter_lend_earn;
|
||||
mod jupiter_lend_flash_loan;
|
||||
mod jupiter_lend_liquidity;
|
||||
mod kamino;
|
||||
mod marginfi_v2;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_clone`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_clone";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_clone";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_jupiter_lend_borrow`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_borrow";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_borrow";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_jupiter_lend_earn`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_earn";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_earn";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_jupiter_lend_flash_loan`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_flash_loan";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_flash_loan";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_jupiter_lend_liquidity`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_liquidity";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_jupiter_lend_liquidity";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_kamino`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_kamino";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_kamino";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lending_marginfi_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lending_marginfi_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lending_marginfi_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `lock` executor family.
|
||||
|
||||
pub mod raydium_lp;
|
||||
mod raydium_lp;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_lock_raydium_lp`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_lock_raydium_lp";
|
||||
const LEGACY_CRATE: &str = "kb_executor_lock_raydium_lp";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
//! `metadata` executor family.
|
||||
|
||||
pub mod metaplex_token_metadata;
|
||||
pub mod spl_name_service;
|
||||
mod metaplex_token_metadata;
|
||||
mod spl_name_service;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_metadata_metaplex_token_metadata`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_metadata_metaplex_token_metadata";
|
||||
const LEGACY_CRATE: &str = "kb_executor_metadata_metaplex_token_metadata";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_metadata_spl_name_service`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_metadata_spl_name_service";
|
||||
const LEGACY_CRATE: &str = "kb_executor_metadata_spl_name_service";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `nft` executor family.
|
||||
|
||||
pub mod metaplex_bubblegum;
|
||||
mod metaplex_bubblegum;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_nft_metaplex_bubblegum`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_nft_metaplex_bubblegum";
|
||||
const LEGACY_CRATE: &str = "kb_executor_nft_metaplex_bubblegum";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
//! `orderbook` executor family.
|
||||
|
||||
pub mod jupiter_limit_order;
|
||||
pub mod jupiter_limit_order_v2;
|
||||
pub mod openbook_v2;
|
||||
mod jupiter_limit_order;
|
||||
mod jupiter_limit_order_v2;
|
||||
mod openbook_v2;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_orderbook_jupiter_limit_order`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_orderbook_jupiter_limit_order";
|
||||
const LEGACY_CRATE: &str = "kb_executor_orderbook_jupiter_limit_order";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_orderbook_jupiter_limit_order_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_orderbook_jupiter_limit_order_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_orderbook_jupiter_limit_order_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_orderbook_openbook_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_orderbook_openbook_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_orderbook_openbook_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
//! `perpetuals` executor family.
|
||||
|
||||
pub mod drift_v2;
|
||||
pub mod jupiter;
|
||||
pub mod zeta;
|
||||
mod drift_v2;
|
||||
mod jupiter;
|
||||
mod zeta;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_perpetuals_drift_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_perpetuals_drift_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_perpetuals_drift_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_perpetuals_jupiter`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_perpetuals_jupiter";
|
||||
const LEGACY_CRATE: &str = "kb_executor_perpetuals_jupiter";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_perpetuals_zeta`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_perpetuals_zeta";
|
||||
const LEGACY_CRATE: &str = "kb_executor_perpetuals_zeta";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
//! `router` executor family.
|
||||
|
||||
pub mod dflow_aggregator_v4;
|
||||
pub mod jupiter_aggregator_v4;
|
||||
pub mod jupiter_aggregator_v6;
|
||||
pub mod jupiter_dca;
|
||||
pub mod okx_labs_v1;
|
||||
pub mod okx_labs_v2;
|
||||
mod dflow_aggregator_v4;
|
||||
mod jupiter_aggregator_v4;
|
||||
mod jupiter_aggregator_v6;
|
||||
mod jupiter_dca;
|
||||
mod okx_labs_v1;
|
||||
mod okx_labs_v2;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_dflow_aggregator_v4`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_dflow_aggregator_v4";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_dflow_aggregator_v4";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_jupiter_aggregator_v4`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_jupiter_aggregator_v4";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_jupiter_aggregator_v4";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_jupiter_aggregator_v6`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_jupiter_aggregator_v6";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_jupiter_aggregator_v6";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_jupiter_dca`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_jupiter_dca";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_jupiter_dca";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_okx_labs_v1`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_okx_labs_v1";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_okx_labs_v1";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_router_okx_labs_v2`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_router_okx_labs_v2";
|
||||
const LEGACY_CRATE: &str = "kb_executor_router_okx_labs_v2";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `rwa` executor family.
|
||||
|
||||
pub mod ondo_global_markets;
|
||||
mod ondo_global_markets;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_rwa_ondo_global_markets`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_rwa_ondo_global_markets";
|
||||
const LEGACY_CRATE: &str = "kb_executor_rwa_ondo_global_markets";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
//! `solana` executor family.
|
||||
|
||||
pub mod core;
|
||||
mod core;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Migration boundary for legacy crate `kb_executor_solana_core`.
|
||||
|
||||
/// Legacy crate name retained for migration and compatibility tracking.
|
||||
pub const LEGACY_CRATE: &str = "kb_executor_solana_core";
|
||||
const LEGACY_CRATE: &str = "kb_executor_solana_core";
|
||||
|
||||
/// Current porting status.
|
||||
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user