v0.1.0-pre.011-fix-01

This commit is contained in:
2026-07-24 15:06:27 +02:00
parent 42e8a203ec
commit 60660ca555
161 changed files with 10665 additions and 977 deletions

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder.rs
// version: 6
// version: 7
//! Consolidated decoder modules.
@@ -33,6 +33,38 @@ mod vesting;
mod wallet;
mod weighted;
/// Internal inventory of pending decoder migration boundaries.
#[allow(dead_code)]
pub(crate) const DC_MIGRATION_BOUNDARIES: &[&[(&str, &str)]] = &[
self::adapter::DC_ADAPTER_MIGRATION_BOUNDARIES,
self::admin::DC_ADMIN_MIGRATION_BOUNDARIES,
self::amm::DC_AMM_MIGRATION_BOUNDARIES,
self::anchor::DC_ANCHOR_MIGRATION_BOUNDARIES,
self::bridge::DC_BRIDGE_MIGRATION_BOUNDARIES,
self::clmm::DC_CLMM_MIGRATION_BOUNDARIES,
self::cpmm::DC_CPMM_MIGRATION_BOUNDARIES,
self::dlmm::DC_DLMM_MIGRATION_BOUNDARIES,
self::fees::DC_FEES_MIGRATION_BOUNDARIES,
self::governance::DC_GOVERNANCE_MIGRATION_BOUNDARIES,
self::launchpad::DC_LAUNCHPAD_MIGRATION_BOUNDARIES,
self::lending::DC_LENDING_MIGRATION_BOUNDARIES,
self::lock::DC_LOCK_MIGRATION_BOUNDARIES,
self::metadata::DC_METADATA_MIGRATION_BOUNDARIES,
self::nft::DC_NFT_MIGRATION_BOUNDARIES,
self::orderbook::DC_ORDERBOOK_MIGRATION_BOUNDARIES,
self::perpetuals::DC_PERPETUALS_MIGRATION_BOUNDARIES,
self::router::DC_ROUTER_MIGRATION_BOUNDARIES,
self::rwa::DC_RWA_MIGRATION_BOUNDARIES,
self::spl::DC_SPL_MIGRATION_BOUNDARIES,
self::stable::DC_STABLE_MIGRATION_BOUNDARIES,
self::staking::DC_STAKING_MIGRATION_BOUNDARIES,
self::treasury::DC_TREASURY_MIGRATION_BOUNDARIES,
self::vault::DC_VAULT_MIGRATION_BOUNDARIES,
self::vesting::DC_VESTING_MIGRATION_BOUNDARIES,
self::wallet::DC_WALLET_MIGRATION_BOUNDARIES,
self::weighted::DC_WEIGHTED_MIGRATION_BOUNDARIES,
];
/// Approve Collection Authority discriminator.
pub(crate) use self::metadata::DC_METADATA_MTM_APPROVE_COLLECTION_AUTHORITY_DISCRIMINATOR;
/// Approve Use Authority discriminator.
@@ -95,7 +127,6 @@ pub(crate) use self::metadata::DC_METADATA_MTM_LOCK_DISCRIMINATOR;
pub(crate) use self::metadata::DC_METADATA_MTM_MAX_BASE64_BYTES;
/// Maximum number of instruction accounts accepted by this decoder.
pub(crate) use self::metadata::DC_METADATA_MTM_MAX_INSTRUCTION_ACCOUNTS;
/// Tracing target for this decoder.
/// Maximum retained instruction payload size.
pub(crate) use self::metadata::DC_METADATA_MTM_MAX_INSTRUCTION_BYTES;
/// Migrate discriminator.

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/adapter.rs
// version: 1
// version: 2
//! `adapter` decoder family.
mod saber_decimal_wrapper;
/// Pending `adapter` decoder migration boundaries.
pub(crate) const DC_ADAPTER_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::saber_decimal_wrapper::DC_ADAPTER_SABER_DECIMAL_WRAPPER_LEGACY_CRATE,
self::saber_decimal_wrapper::DC_ADAPTER_SABER_DECIMAL_WRAPPER_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/adapter/saber_decimal_wrapper.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_adapter_saber_decimal_wrapper`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_adapter_saber_decimal_wrapper";
pub(crate) const DC_ADAPTER_SABER_DECIMAL_WRAPPER_LEGACY_CRATE: &str =
"kb_decoder_adapter_saber_decimal_wrapper";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ADAPTER_SABER_DECIMAL_WRAPPER_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,7 +1,19 @@
// file: kb-lib/src/decoder/admin.rs
// version: 1
// version: 2
//! `admin` decoder family.
mod jupiter_lock;
mod pump_fees;
/// Pending `admin` decoder migration boundaries.
pub(crate) const DC_ADMIN_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::jupiter_lock::DC_ADMIN_JUPITER_LOCK_LEGACY_CRATE,
self::jupiter_lock::DC_ADMIN_JUPITER_LOCK_MIGRATION_STATUS,
),
(
self::pump_fees::DC_ADMIN_PUMP_FEES_LEGACY_CRATE,
self::pump_fees::DC_ADMIN_PUMP_FEES_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/admin/jupiter_lock.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_admin_jupiter_lock`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_admin_jupiter_lock";
pub(crate) const DC_ADMIN_JUPITER_LOCK_LEGACY_CRATE: &str = "kb_decoder_admin_jupiter_lock";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ADMIN_JUPITER_LOCK_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/admin/pump_fees.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_admin_pump_fees`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_admin_pump_fees";
pub(crate) const DC_ADMIN_PUMP_FEES_LEGACY_CRATE: &str = "kb_decoder_admin_pump_fees";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ADMIN_PUMP_FEES_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/amm.rs
// version: 1
// version: 2
//! `amm` decoder family.
@@ -29,3 +29,108 @@ mod virtuals;
mod woofi;
mod zero_fi;
mod zora;
/// Pending `amm` decoder migration boundaries.
pub(crate) const DC_AMM_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::aldrin_v1::DC_AMM_ALDRIN_V1_LEGACY_CRATE,
self::aldrin_v1::DC_AMM_ALDRIN_V1_MIGRATION_STATUS,
),
(
self::aldrin_v2::DC_AMM_ALDRIN_V2_LEGACY_CRATE,
self::aldrin_v2::DC_AMM_ALDRIN_V2_MIGRATION_STATUS,
),
(
self::alphaq::DC_AMM_ALPHAQ_LEGACY_CRATE,
self::alphaq::DC_AMM_ALPHAQ_MIGRATION_STATUS,
),
(
self::believe::DC_AMM_BELIEVE_LEGACY_CRATE,
self::believe::DC_AMM_BELIEVE_MIGRATION_STATUS,
),
(
self::bonk_swap::DC_AMM_BONK_SWAP_LEGACY_CRATE,
self::bonk_swap::DC_AMM_BONK_SWAP_MIGRATION_STATUS,
),
(
self::fluxbeam::DC_AMM_FLUXBEAM_LEGACY_CRATE,
self::fluxbeam::DC_AMM_FLUXBEAM_MIGRATION_STATUS,
),
(
self::goon_fi::DC_AMM_GOON_FI_LEGACY_CRATE,
self::goon_fi::DC_AMM_GOON_FI_MIGRATION_STATUS,
),
(
self::goosefx_gamma::DC_AMM_GOOSEFX_GAMMA_LEGACY_CRATE,
self::goosefx_gamma::DC_AMM_GOOSEFX_GAMMA_MIGRATION_STATUS,
),
(
self::goosefx_v2::DC_AMM_GOOSEFX_V2_LEGACY_CRATE,
self::goosefx_v2::DC_AMM_GOOSEFX_V2_MIGRATION_STATUS,
),
(
self::guac_swap::DC_AMM_GUAC_SWAP_LEGACY_CRATE,
self::guac_swap::DC_AMM_GUAC_SWAP_MIGRATION_STATUS,
),
(
self::lifinity_swap_v2::DC_AMM_LIFINITY_SWAP_V2_LEGACY_CRATE,
self::lifinity_swap_v2::DC_AMM_LIFINITY_SWAP_V2_MIGRATION_STATUS,
),
(
self::metadao_futarchy_amm::DC_AMM_METADAO_FUTARCHY_AMM_LEGACY_CRATE,
self::metadao_futarchy_amm::DC_AMM_METADAO_FUTARCHY_AMM_MIGRATION_STATUS,
),
(
self::metadao_v0_5::DC_AMM_METADAO_V0_5_LEGACY_CRATE,
self::metadao_v0_5::DC_AMM_METADAO_V0_5_MIGRATION_STATUS,
),
(
self::meteora_damm_v1::DC_AMM_METEORA_DAMM_V1_LEGACY_CRATE,
self::meteora_damm_v1::DC_AMM_METEORA_DAMM_V1_MIGRATION_STATUS,
),
(
self::meteora_damm_v2::DC_AMM_METEORA_DAMM_V2_LEGACY_CRATE,
self::meteora_damm_v2::DC_AMM_METEORA_DAMM_V2_MIGRATION_STATUS,
),
(
self::obric_v2::DC_AMM_OBRIC_V2_LEGACY_CRATE,
self::obric_v2::DC_AMM_OBRIC_V2_MIGRATION_STATUS,
),
(
self::one_dex::DC_AMM_ONE_DEX_LEGACY_CRATE,
self::one_dex::DC_AMM_ONE_DEX_MIGRATION_STATUS,
),
(
self::pump_swap::DC_AMM_PUMP_SWAP_LEGACY_CRATE,
self::pump_swap::DC_AMM_PUMP_SWAP_MIGRATION_STATUS,
),
(
self::raydium_lp_v4::DC_AMM_RAYDIUM_LP_V4_LEGACY_CRATE,
self::raydium_lp_v4::DC_AMM_RAYDIUM_LP_V4_MIGRATION_STATUS,
),
(
self::solfi::DC_AMM_SOLFI_LEGACY_CRATE,
self::solfi::DC_AMM_SOLFI_MIGRATION_STATUS,
),
(
self::solfi_v2::DC_AMM_SOLFI_V2_LEGACY_CRATE,
self::solfi_v2::DC_AMM_SOLFI_V2_MIGRATION_STATUS,
),
(
self::vertigo::DC_AMM_VERTIGO_LEGACY_CRATE,
self::vertigo::DC_AMM_VERTIGO_MIGRATION_STATUS,
),
(
self::virtuals::DC_AMM_VIRTUALS_LEGACY_CRATE,
self::virtuals::DC_AMM_VIRTUALS_MIGRATION_STATUS,
),
(
self::woofi::DC_AMM_WOOFI_LEGACY_CRATE,
self::woofi::DC_AMM_WOOFI_MIGRATION_STATUS,
),
(
self::zero_fi::DC_AMM_ZERO_FI_LEGACY_CRATE,
self::zero_fi::DC_AMM_ZERO_FI_MIGRATION_STATUS,
),
(self::zora::DC_AMM_ZORA_LEGACY_CRATE, self::zora::DC_AMM_ZORA_MIGRATION_STATUS),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/aldrin_v1.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_aldrin_v1`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_aldrin_v1";
pub(crate) const DC_AMM_ALDRIN_V1_LEGACY_CRATE: &str = "kb_decoder_amm_aldrin_v1";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ALDRIN_V1_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/aldrin_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_aldrin_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_aldrin_v2";
pub(crate) const DC_AMM_ALDRIN_V2_LEGACY_CRATE: &str = "kb_decoder_amm_aldrin_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ALDRIN_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/alphaq.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_alphaq`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_alphaq";
pub(crate) const DC_AMM_ALPHAQ_LEGACY_CRATE: &str = "kb_decoder_amm_alphaq";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ALPHAQ_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/believe.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_believe`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_believe";
pub(crate) const DC_AMM_BELIEVE_LEGACY_CRATE: &str = "kb_decoder_amm_believe";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_BELIEVE_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/bonk_swap.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_bonk_swap`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_bonk_swap";
pub(crate) const DC_AMM_BONK_SWAP_LEGACY_CRATE: &str = "kb_decoder_amm_bonk_swap";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_BONK_SWAP_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/fluxbeam.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_fluxbeam`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_fluxbeam";
pub(crate) const DC_AMM_FLUXBEAM_LEGACY_CRATE: &str = "kb_decoder_amm_fluxbeam";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_FLUXBEAM_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/goon_fi.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_goon_fi`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_goon_fi";
pub(crate) const DC_AMM_GOON_FI_LEGACY_CRATE: &str = "kb_decoder_amm_goon_fi";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_GOON_FI_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/goosefx_gamma.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_goosefx_gamma`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_goosefx_gamma";
pub(crate) const DC_AMM_GOOSEFX_GAMMA_LEGACY_CRATE: &str = "kb_decoder_amm_goosefx_gamma";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_GOOSEFX_GAMMA_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/goosefx_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_goosefx_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_goosefx_v2";
pub(crate) const DC_AMM_GOOSEFX_V2_LEGACY_CRATE: &str = "kb_decoder_amm_goosefx_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_GOOSEFX_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/guac_swap.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_guac_swap`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_guac_swap";
pub(crate) const DC_AMM_GUAC_SWAP_LEGACY_CRATE: &str = "kb_decoder_amm_guac_swap";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_GUAC_SWAP_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/lifinity_swap_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_lifinity_swap_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_lifinity_swap_v2";
pub(crate) const DC_AMM_LIFINITY_SWAP_V2_LEGACY_CRATE: &str = "kb_decoder_amm_lifinity_swap_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_LIFINITY_SWAP_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/amm/metadao_futarchy_amm.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_metadao_futarchy_amm`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_metadao_futarchy_amm";
pub(crate) const DC_AMM_METADAO_FUTARCHY_AMM_LEGACY_CRATE: &str =
"kb_decoder_amm_metadao_futarchy_amm";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_METADAO_FUTARCHY_AMM_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/metadao_v0_5.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_metadao_v0_5`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_metadao_v0_5";
pub(crate) const DC_AMM_METADAO_V0_5_LEGACY_CRATE: &str = "kb_decoder_amm_metadao_v0_5";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_METADAO_V0_5_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/meteora_damm_v1.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_meteora_damm_v1`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_meteora_damm_v1";
pub(crate) const DC_AMM_METEORA_DAMM_V1_LEGACY_CRATE: &str = "kb_decoder_amm_meteora_damm_v1";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_METEORA_DAMM_V1_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/meteora_damm_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_meteora_damm_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_meteora_damm_v2";
pub(crate) const DC_AMM_METEORA_DAMM_V2_LEGACY_CRATE: &str = "kb_decoder_amm_meteora_damm_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_METEORA_DAMM_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/obric_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_obric_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_obric_v2";
pub(crate) const DC_AMM_OBRIC_V2_LEGACY_CRATE: &str = "kb_decoder_amm_obric_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_OBRIC_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/one_dex.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_one_dex`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_one_dex";
pub(crate) const DC_AMM_ONE_DEX_LEGACY_CRATE: &str = "kb_decoder_amm_one_dex";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ONE_DEX_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/pump_swap.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_pump_swap`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_pump_swap";
pub(crate) const DC_AMM_PUMP_SWAP_LEGACY_CRATE: &str = "kb_decoder_amm_pump_swap";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_PUMP_SWAP_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/raydium_lp_v4.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_raydium_lp_v4`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_raydium_lp_v4";
pub(crate) const DC_AMM_RAYDIUM_LP_V4_LEGACY_CRATE: &str = "kb_decoder_amm_raydium_lp_v4";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_RAYDIUM_LP_V4_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/solfi.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_solfi`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_solfi";
pub(crate) const DC_AMM_SOLFI_LEGACY_CRATE: &str = "kb_decoder_amm_solfi";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_SOLFI_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/solfi_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_solfi_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_solfi_v2";
pub(crate) const DC_AMM_SOLFI_V2_LEGACY_CRATE: &str = "kb_decoder_amm_solfi_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_SOLFI_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/vertigo.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_vertigo`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_vertigo";
pub(crate) const DC_AMM_VERTIGO_LEGACY_CRATE: &str = "kb_decoder_amm_vertigo";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_VERTIGO_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/virtuals.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_virtuals`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_virtuals";
pub(crate) const DC_AMM_VIRTUALS_LEGACY_CRATE: &str = "kb_decoder_amm_virtuals";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_VIRTUALS_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/woofi.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_woofi`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_woofi";
pub(crate) const DC_AMM_WOOFI_LEGACY_CRATE: &str = "kb_decoder_amm_woofi";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_WOOFI_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/zero_fi.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_zero_fi`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_zero_fi";
pub(crate) const DC_AMM_ZERO_FI_LEGACY_CRATE: &str = "kb_decoder_amm_zero_fi";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ZERO_FI_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/amm/zora.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_amm_zora`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_amm_zora";
pub(crate) const DC_AMM_ZORA_LEGACY_CRATE: &str = "kb_decoder_amm_zora";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_AMM_ZORA_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/anchor.rs
// version: 1
// version: 2
//! `anchor` decoder family.
mod core;
/// Pending `anchor` decoder migration boundaries.
pub(crate) const DC_ANCHOR_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::core::DC_ANCHOR_CORE_LEGACY_CRATE,
self::core::DC_ANCHOR_CORE_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/anchor/core.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_anchor`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_anchor";
pub(crate) const DC_ANCHOR_CORE_LEGACY_CRATE: &str = "kb_decoder_anchor";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ANCHOR_CORE_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/bridge.rs
// version: 1
// version: 2
//! `bridge` decoder family.
@@ -7,3 +7,23 @@ mod circle_cctp_token_messenger_minter;
mod circle_cctp_token_messenger_minter_v2;
mod layer_zero_endpoint;
mod layer_zero_executor;
/// Pending `bridge` decoder migration boundaries.
pub(crate) const DC_BRIDGE_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::circle_cctp_token_messenger_minter::DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_LEGACY_CRATE,
self::circle_cctp_token_messenger_minter::DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_MIGRATION_STATUS,
),
(
self::circle_cctp_token_messenger_minter_v2::DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_V2_LEGACY_CRATE,
self::circle_cctp_token_messenger_minter_v2::DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_V2_MIGRATION_STATUS,
),
(
self::layer_zero_endpoint::DC_BRIDGE_LAYER_ZERO_ENDPOINT_LEGACY_CRATE,
self::layer_zero_endpoint::DC_BRIDGE_LAYER_ZERO_ENDPOINT_MIGRATION_STATUS,
),
(
self::layer_zero_executor::DC_BRIDGE_LAYER_ZERO_EXECUTOR_LEGACY_CRATE,
self::layer_zero_executor::DC_BRIDGE_LAYER_ZERO_EXECUTOR_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/bridge/circle_cctp_token_messenger_minter.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_bridge_circle_cctp_token_messenger_minter`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_bridge_circle_cctp_token_messenger_minter";
pub(crate) const DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_LEGACY_CRATE: &str =
"kb_decoder_bridge_circle_cctp_token_messenger_minter";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/bridge/circle_cctp_token_messenger_minter_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_bridge_circle_cctp_token_messenger_minter_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_bridge_circle_cctp_token_messenger_minter_v2";
pub(crate) const DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_V2_LEGACY_CRATE: &str =
"kb_decoder_bridge_circle_cctp_token_messenger_minter_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_BRIDGE_CIRCLE_CCTP_TOKEN_MESSENGER_MINTER_V2_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/bridge/layer_zero_endpoint.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_bridge_layer_zero_endpoint`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_bridge_layer_zero_endpoint";
pub(crate) const DC_BRIDGE_LAYER_ZERO_ENDPOINT_LEGACY_CRATE: &str =
"kb_decoder_bridge_layer_zero_endpoint";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_BRIDGE_LAYER_ZERO_ENDPOINT_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/bridge/layer_zero_executor.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_bridge_layer_zero_executor`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_bridge_layer_zero_executor";
pub(crate) const DC_BRIDGE_LAYER_ZERO_EXECUTOR_LEGACY_CRATE: &str =
"kb_decoder_bridge_layer_zero_executor";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_BRIDGE_LAYER_ZERO_EXECUTOR_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/clmm.rs
// version: 1
// version: 2
//! `clmm` decoder family.
@@ -9,3 +9,31 @@ mod orca_whirlpool;
mod pancake_swap;
mod raydium;
mod stabble;
/// Pending `clmm` decoder migration boundaries.
pub(crate) const DC_CLMM_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::byreal::DC_CLMM_BYREAL_LEGACY_CRATE,
self::byreal::DC_CLMM_BYREAL_MIGRATION_STATUS,
),
(
self::fusion::DC_CLMM_FUSION_LEGACY_CRATE,
self::fusion::DC_CLMM_FUSION_MIGRATION_STATUS,
),
(
self::orca_whirlpool::DC_CLMM_ORCA_WHIRLPOOL_LEGACY_CRATE,
self::orca_whirlpool::DC_CLMM_ORCA_WHIRLPOOL_MIGRATION_STATUS,
),
(
self::pancake_swap::DC_CLMM_PANCAKE_SWAP_LEGACY_CRATE,
self::pancake_swap::DC_CLMM_PANCAKE_SWAP_MIGRATION_STATUS,
),
(
self::raydium::DC_CLMM_RAYDIUM_LEGACY_CRATE,
self::raydium::DC_CLMM_RAYDIUM_MIGRATION_STATUS,
),
(
self::stabble::DC_CLMM_STABBLE_LEGACY_CRATE,
self::stabble::DC_CLMM_STABBLE_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/byreal.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_byreal`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_byreal";
pub(crate) const DC_CLMM_BYREAL_LEGACY_CRATE: &str = "kb_decoder_clmm_byreal";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_BYREAL_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/fusion.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_fusion`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_fusion";
pub(crate) const DC_CLMM_FUSION_LEGACY_CRATE: &str = "kb_decoder_clmm_fusion";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_FUSION_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/orca_whirlpool.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_orca_whirlpool`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_orca_whirlpool";
pub(crate) const DC_CLMM_ORCA_WHIRLPOOL_LEGACY_CRATE: &str = "kb_decoder_clmm_orca_whirlpool";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_ORCA_WHIRLPOOL_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/pancake_swap.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_pancake_swap`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_pancake_swap";
pub(crate) const DC_CLMM_PANCAKE_SWAP_LEGACY_CRATE: &str = "kb_decoder_clmm_pancake_swap";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_PANCAKE_SWAP_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/raydium.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_raydium`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_raydium";
pub(crate) const DC_CLMM_RAYDIUM_LEGACY_CRATE: &str = "kb_decoder_clmm_raydium";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_RAYDIUM_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/clmm/stabble.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_clmm_stabble`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_clmm_stabble";
pub(crate) const DC_CLMM_STABBLE_LEGACY_CRATE: &str = "kb_decoder_clmm_stabble";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CLMM_STABBLE_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/cpmm.rs
// version: 1
// version: 2
//! `cpmm` decoder family.
mod raydium;
/// Pending `cpmm` decoder migration boundaries.
pub(crate) const DC_CPMM_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::raydium::DC_CPMM_RAYDIUM_LEGACY_CRATE,
self::raydium::DC_CPMM_RAYDIUM_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/cpmm/raydium.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_cpmm_raydium`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_cpmm_raydium";
pub(crate) const DC_CPMM_RAYDIUM_LEGACY_CRATE: &str = "kb_decoder_cpmm_raydium";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_CPMM_RAYDIUM_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/dlmm.rs
// version: 1
// version: 2
//! `dlmm` decoder family.
mod meteora;
/// Pending `dlmm` decoder migration boundaries.
pub(crate) const DC_DLMM_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::meteora::DC_DLMM_METEORA_LEGACY_CRATE,
self::meteora::DC_DLMM_METEORA_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/dlmm/meteora.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_dlmm_meteora`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_dlmm_meteora";
pub(crate) const DC_DLMM_METEORA_LEGACY_CRATE: &str = "kb_decoder_dlmm_meteora";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_DLMM_METEORA_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,7 +1,19 @@
// file: kb-lib/src/decoder/fees.rs
// version: 1
// version: 2
//! `fees` decoder family.
mod bags_fee_share_v1;
mod bags_fee_share_v2;
/// Pending `fees` decoder migration boundaries.
pub(crate) const DC_FEES_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::bags_fee_share_v1::DC_FEES_BAGS_FEE_SHARE_V1_LEGACY_CRATE,
self::bags_fee_share_v1::DC_FEES_BAGS_FEE_SHARE_V1_MIGRATION_STATUS,
),
(
self::bags_fee_share_v2::DC_FEES_BAGS_FEE_SHARE_V2_LEGACY_CRATE,
self::bags_fee_share_v2::DC_FEES_BAGS_FEE_SHARE_V2_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/fees/bags_fee_share_v1.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_fees_bags_fee_share_v1`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_fees_bags_fee_share_v1";
pub(crate) const DC_FEES_BAGS_FEE_SHARE_V1_LEGACY_CRATE: &str = "kb_decoder_fees_bags_fee_share_v1";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_FEES_BAGS_FEE_SHARE_V1_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/fees/bags_fee_share_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_fees_bags_fee_share_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_fees_bags_fee_share_v2";
pub(crate) const DC_FEES_BAGS_FEE_SHARE_V2_LEGACY_CRATE: &str = "kb_decoder_fees_bags_fee_share_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_FEES_BAGS_FEE_SHARE_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/governance.rs
// version: 1
// version: 2
//! `governance` decoder family.
mod metadao_bid_wall;
/// Pending `governance` decoder migration boundaries.
pub(crate) const DC_GOVERNANCE_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::metadao_bid_wall::DC_GOVERNANCE_METADAO_BID_WALL_LEGACY_CRATE,
self::metadao_bid_wall::DC_GOVERNANCE_METADAO_BID_WALL_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/governance/metadao_bid_wall.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_governance_metadao_bid_wall`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_governance_metadao_bid_wall";
pub(crate) const DC_GOVERNANCE_METADAO_BID_WALL_LEGACY_CRATE: &str =
"kb_decoder_governance_metadao_bid_wall";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_GOVERNANCE_METADAO_BID_WALL_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/launchpad.rs
// version: 1
// version: 2
//! `launchpad` decoder family.
@@ -12,3 +12,43 @@ mod printr;
mod pump_fun;
mod pump_pumpup_ai;
mod raydium_launchlab;
/// Pending `launchpad` decoder migration boundaries.
pub(crate) const DC_LAUNCHPAD_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::boop_fun::DC_LAUNCHPAD_BOOP_FUN_LEGACY_CRATE,
self::boop_fun::DC_LAUNCHPAD_BOOP_FUN_MIGRATION_STATUS,
),
(
self::metadao_ico::DC_LAUNCHPAD_METADAO_ICO_LEGACY_CRATE,
self::metadao_ico::DC_LAUNCHPAD_METADAO_ICO_MIGRATION_STATUS,
),
(
self::meteora_dbc::DC_LAUNCHPAD_METEORA_DBC_LEGACY_CRATE,
self::meteora_dbc::DC_LAUNCHPAD_METEORA_DBC_MIGRATION_STATUS,
),
(
self::moonit::DC_LAUNCHPAD_MOONIT_LEGACY_CRATE,
self::moonit::DC_LAUNCHPAD_MOONIT_MIGRATION_STATUS,
),
(
self::orca_wavebreak::DC_LAUNCHPAD_ORCA_WAVEBREAK_LEGACY_CRATE,
self::orca_wavebreak::DC_LAUNCHPAD_ORCA_WAVEBREAK_MIGRATION_STATUS,
),
(
self::printr::DC_LAUNCHPAD_PRINTR_LEGACY_CRATE,
self::printr::DC_LAUNCHPAD_PRINTR_MIGRATION_STATUS,
),
(
self::pump_fun::DC_LAUNCHPAD_PUMP_FUN_LEGACY_CRATE,
self::pump_fun::DC_LAUNCHPAD_PUMP_FUN_MIGRATION_STATUS,
),
(
self::pump_pumpup_ai::DC_LAUNCHPAD_PUMP_PUMPUP_AI_LEGACY_CRATE,
self::pump_pumpup_ai::DC_LAUNCHPAD_PUMP_PUMPUP_AI_MIGRATION_STATUS,
),
(
self::raydium_launchlab::DC_LAUNCHPAD_RAYDIUM_LAUNCHLAB_LEGACY_CRATE,
self::raydium_launchlab::DC_LAUNCHPAD_RAYDIUM_LAUNCHLAB_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/boop_fun.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_boop_fun`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_boop_fun";
pub(crate) const DC_LAUNCHPAD_BOOP_FUN_LEGACY_CRATE: &str = "kb_decoder_launchpad_boop_fun";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_BOOP_FUN_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/metadao_ico.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_metadao_ico`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_metadao_ico";
pub(crate) const DC_LAUNCHPAD_METADAO_ICO_LEGACY_CRATE: &str = "kb_decoder_launchpad_metadao_ico";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_METADAO_ICO_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/meteora_dbc.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_meteora_dbc`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_meteora_dbc";
pub(crate) const DC_LAUNCHPAD_METEORA_DBC_LEGACY_CRATE: &str = "kb_decoder_launchpad_meteora_dbc";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_METEORA_DBC_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/moonit.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_moonit`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_moonit";
pub(crate) const DC_LAUNCHPAD_MOONIT_LEGACY_CRATE: &str = "kb_decoder_launchpad_moonit";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_MOONIT_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/launchpad/orca_wavebreak.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_orca_wavebreak`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_orca_wavebreak";
pub(crate) const DC_LAUNCHPAD_ORCA_WAVEBREAK_LEGACY_CRATE: &str =
"kb_decoder_launchpad_orca_wavebreak";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_ORCA_WAVEBREAK_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/printr.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_printr`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_printr";
pub(crate) const DC_LAUNCHPAD_PRINTR_LEGACY_CRATE: &str = "kb_decoder_launchpad_printr";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_PRINTR_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/launchpad/pump_fun.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_pump_fun`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_pump_fun";
pub(crate) const DC_LAUNCHPAD_PUMP_FUN_LEGACY_CRATE: &str = "kb_decoder_launchpad_pump_fun";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_PUMP_FUN_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/launchpad/pump_pumpup_ai.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_pump_pumpup_ai`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_pump_pumpup_ai";
pub(crate) const DC_LAUNCHPAD_PUMP_PUMPUP_AI_LEGACY_CRATE: &str =
"kb_decoder_launchpad_pump_pumpup_ai";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_PUMP_PUMPUP_AI_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/launchpad/raydium_launchlab.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_launchpad_raydium_launchlab`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_launchpad_raydium_launchlab";
pub(crate) const DC_LAUNCHPAD_RAYDIUM_LAUNCHLAB_LEGACY_CRATE: &str =
"kb_decoder_launchpad_raydium_launchlab";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LAUNCHPAD_RAYDIUM_LAUNCHLAB_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/lending.rs
// version: 1
// version: 2
//! `lending` decoder family.
@@ -10,3 +10,35 @@ mod jupiter_lend_flash_loan;
mod jupiter_lend_liquidity;
mod kamino;
mod marginfi_v2;
/// Pending `lending` decoder migration boundaries.
pub(crate) const DC_LENDING_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::clone::DC_LENDING_CLONE_LEGACY_CRATE,
self::clone::DC_LENDING_CLONE_MIGRATION_STATUS,
),
(
self::jupiter_lend_borrow::DC_LENDING_JUPITER_LEND_BORROW_LEGACY_CRATE,
self::jupiter_lend_borrow::DC_LENDING_JUPITER_LEND_BORROW_MIGRATION_STATUS,
),
(
self::jupiter_lend_earn::DC_LENDING_JUPITER_LEND_EARN_LEGACY_CRATE,
self::jupiter_lend_earn::DC_LENDING_JUPITER_LEND_EARN_MIGRATION_STATUS,
),
(
self::jupiter_lend_flash_loan::DC_LENDING_JUPITER_LEND_FLASH_LOAN_LEGACY_CRATE,
self::jupiter_lend_flash_loan::DC_LENDING_JUPITER_LEND_FLASH_LOAN_MIGRATION_STATUS,
),
(
self::jupiter_lend_liquidity::DC_LENDING_JUPITER_LEND_LIQUIDITY_LEGACY_CRATE,
self::jupiter_lend_liquidity::DC_LENDING_JUPITER_LEND_LIQUIDITY_MIGRATION_STATUS,
),
(
self::kamino::DC_LENDING_KAMINO_LEGACY_CRATE,
self::kamino::DC_LENDING_KAMINO_MIGRATION_STATUS,
),
(
self::marginfi_v2::DC_LENDING_MARGINFI_V2_LEGACY_CRATE,
self::marginfi_v2::DC_LENDING_MARGINFI_V2_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/lending/clone.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_clone`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_clone";
pub(crate) const DC_LENDING_CLONE_LEGACY_CRATE: &str = "kb_decoder_lending_clone";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_CLONE_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/lending/jupiter_lend_borrow.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_jupiter_lend_borrow`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_jupiter_lend_borrow";
pub(crate) const DC_LENDING_JUPITER_LEND_BORROW_LEGACY_CRATE: &str =
"kb_decoder_lending_jupiter_lend_borrow";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_JUPITER_LEND_BORROW_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/lending/jupiter_lend_earn.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_jupiter_lend_earn`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_jupiter_lend_earn";
pub(crate) const DC_LENDING_JUPITER_LEND_EARN_LEGACY_CRATE: &str =
"kb_decoder_lending_jupiter_lend_earn";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_JUPITER_LEND_EARN_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/lending/jupiter_lend_flash_loan.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_jupiter_lend_flash_loan`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_jupiter_lend_flash_loan";
pub(crate) const DC_LENDING_JUPITER_LEND_FLASH_LOAN_LEGACY_CRATE: &str =
"kb_decoder_lending_jupiter_lend_flash_loan";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_JUPITER_LEND_FLASH_LOAN_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/lending/jupiter_lend_liquidity.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_jupiter_lend_liquidity`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_jupiter_lend_liquidity";
pub(crate) const DC_LENDING_JUPITER_LEND_LIQUIDITY_LEGACY_CRATE: &str =
"kb_decoder_lending_jupiter_lend_liquidity";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_JUPITER_LEND_LIQUIDITY_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/lending/kamino.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_kamino`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_kamino";
pub(crate) const DC_LENDING_KAMINO_LEGACY_CRATE: &str = "kb_decoder_lending_kamino";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_KAMINO_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/lending/marginfi_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lending_marginfi_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lending_marginfi_v2";
pub(crate) const DC_LENDING_MARGINFI_V2_LEGACY_CRATE: &str = "kb_decoder_lending_marginfi_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LENDING_MARGINFI_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/lock.rs
// version: 1
// version: 2
//! `lock` decoder family.
mod raydium_lp;
/// Pending `lock` decoder migration boundaries.
pub(crate) const DC_LOCK_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::raydium_lp::DC_LOCK_RAYDIUM_LP_LEGACY_CRATE,
self::raydium_lp::DC_LOCK_RAYDIUM_LP_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/lock/raydium_lp.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_lock_raydium_lp`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_lock_raydium_lp";
pub(crate) const DC_LOCK_RAYDIUM_LP_LEGACY_CRATE: &str = "kb_decoder_lock_raydium_lp";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_LOCK_RAYDIUM_LP_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,11 +1,17 @@
// file: kb-lib/src/decoder/metadata.rs
// version: 2
// version: 3
//! `metadata` decoder family.
mod metaplex_token_metadata;
mod spl_name_service;
/// Pending `metadata` decoder migration boundaries.
pub(crate) const DC_METADATA_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::spl_name_service::DC_METADATA_SPL_NAME_SERVICE_LEGACY_CRATE,
self::spl_name_service::DC_METADATA_SPL_NAME_SERVICE_MIGRATION_STATUS,
)];
/// Approve Collection Authority discriminator.
pub(crate) use self::metaplex_token_metadata::DC_METADATA_MTM_APPROVE_COLLECTION_AUTHORITY_DISCRIMINATOR;
/// Approve Use Authority discriminator.
@@ -68,7 +74,6 @@ pub(crate) use self::metaplex_token_metadata::DC_METADATA_MTM_LOCK_DISCRIMINATOR
pub(crate) use self::metaplex_token_metadata::DC_METADATA_MTM_MAX_BASE64_BYTES;
/// Maximum number of instruction accounts accepted by this decoder.
pub(crate) use self::metaplex_token_metadata::DC_METADATA_MTM_MAX_INSTRUCTION_ACCOUNTS;
/// Tracing target for this decoder.
/// Maximum retained instruction payload size.
pub(crate) use self::metaplex_token_metadata::DC_METADATA_MTM_MAX_INSTRUCTION_BYTES;
/// Migrate discriminator.

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/metadata/metaplex_token_metadata.rs
// version: 2
// version: 3
//! Contextual instruction and bounded account decoder for Metaplex Token Metadata.
@@ -71,7 +71,6 @@ pub(crate) use self::constants::DC_METADATA_MTM_LOCK_DISCRIMINATOR;
pub(crate) use self::constants::DC_METADATA_MTM_MAX_BASE64_BYTES;
/// Maximum number of instruction accounts accepted by this decoder.
pub(crate) use self::constants::DC_METADATA_MTM_MAX_INSTRUCTION_ACCOUNTS;
/// Tracing target for this decoder.
/// Maximum retained instruction payload size.
pub(crate) use self::constants::DC_METADATA_MTM_MAX_INSTRUCTION_BYTES;
/// Migrate discriminator.

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/metadata/spl_name_service.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_metadata_spl_name_service`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_metadata_spl_name_service";
pub(crate) const DC_METADATA_SPL_NAME_SERVICE_LEGACY_CRATE: &str =
"kb_decoder_metadata_spl_name_service";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_METADATA_SPL_NAME_SERVICE_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/nft.rs
// version: 1
// version: 2
//! `nft` decoder family.
mod metaplex_bubblegum;
/// Pending `nft` decoder migration boundaries.
pub(crate) const DC_NFT_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::metaplex_bubblegum::DC_NFT_METAPLEX_BUBBLEGUM_LEGACY_CRATE,
self::metaplex_bubblegum::DC_NFT_METAPLEX_BUBBLEGUM_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/nft/metaplex_bubblegum.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_nft_metaplex_bubblegum`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_nft_metaplex_bubblegum";
pub(crate) const DC_NFT_METAPLEX_BUBBLEGUM_LEGACY_CRATE: &str = "kb_decoder_nft_metaplex_bubblegum";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_NFT_METAPLEX_BUBBLEGUM_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,8 +1,24 @@
// file: kb-lib/src/decoder/orderbook.rs
// version: 1
// version: 2
//! `orderbook` decoder family.
mod jupiter_limit_order;
mod jupiter_limit_order_v2;
mod openbook_v2;
/// Pending `orderbook` decoder migration boundaries.
pub(crate) const DC_ORDERBOOK_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::jupiter_limit_order::DC_ORDERBOOK_JUPITER_LIMIT_ORDER_LEGACY_CRATE,
self::jupiter_limit_order::DC_ORDERBOOK_JUPITER_LIMIT_ORDER_MIGRATION_STATUS,
),
(
self::jupiter_limit_order_v2::DC_ORDERBOOK_JUPITER_LIMIT_ORDER_V2_LEGACY_CRATE,
self::jupiter_limit_order_v2::DC_ORDERBOOK_JUPITER_LIMIT_ORDER_V2_MIGRATION_STATUS,
),
(
self::openbook_v2::DC_ORDERBOOK_OPENBOOK_V2_LEGACY_CRATE,
self::openbook_v2::DC_ORDERBOOK_OPENBOOK_V2_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/orderbook/jupiter_limit_order.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_orderbook_jupiter_limit_order`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_orderbook_jupiter_limit_order";
pub(crate) const DC_ORDERBOOK_JUPITER_LIMIT_ORDER_LEGACY_CRATE: &str =
"kb_decoder_orderbook_jupiter_limit_order";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ORDERBOOK_JUPITER_LIMIT_ORDER_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/orderbook/jupiter_limit_order_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_orderbook_jupiter_limit_order_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_orderbook_jupiter_limit_order_v2";
pub(crate) const DC_ORDERBOOK_JUPITER_LIMIT_ORDER_V2_LEGACY_CRATE: &str =
"kb_decoder_orderbook_jupiter_limit_order_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ORDERBOOK_JUPITER_LIMIT_ORDER_V2_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/orderbook/openbook_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_orderbook_openbook_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_orderbook_openbook_v2";
pub(crate) const DC_ORDERBOOK_OPENBOOK_V2_LEGACY_CRATE: &str = "kb_decoder_orderbook_openbook_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ORDERBOOK_OPENBOOK_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,8 +1,24 @@
// file: kb-lib/src/decoder/perpetuals.rs
// version: 1
// version: 2
//! `perpetuals` decoder family.
mod drift_v2;
mod jupiter;
mod zeta;
/// Pending `perpetuals` decoder migration boundaries.
pub(crate) const DC_PERPETUALS_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::drift_v2::DC_PERPETUALS_DRIFT_V2_LEGACY_CRATE,
self::drift_v2::DC_PERPETUALS_DRIFT_V2_MIGRATION_STATUS,
),
(
self::jupiter::DC_PERPETUALS_JUPITER_LEGACY_CRATE,
self::jupiter::DC_PERPETUALS_JUPITER_MIGRATION_STATUS,
),
(
self::zeta::DC_PERPETUALS_ZETA_LEGACY_CRATE,
self::zeta::DC_PERPETUALS_ZETA_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/perpetuals/drift_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_perpetuals_drift_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_perpetuals_drift_v2";
pub(crate) const DC_PERPETUALS_DRIFT_V2_LEGACY_CRATE: &str = "kb_decoder_perpetuals_drift_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_PERPETUALS_DRIFT_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/perpetuals/jupiter.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_perpetuals_jupiter`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_perpetuals_jupiter";
pub(crate) const DC_PERPETUALS_JUPITER_LEGACY_CRATE: &str = "kb_decoder_perpetuals_jupiter";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_PERPETUALS_JUPITER_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/perpetuals/zeta.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_perpetuals_zeta`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_perpetuals_zeta";
pub(crate) const DC_PERPETUALS_ZETA_LEGACY_CRATE: &str = "kb_decoder_perpetuals_zeta";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_PERPETUALS_ZETA_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/router.rs
// version: 1
// version: 2
//! `router` decoder family.
@@ -9,3 +9,31 @@ mod jupiter_aggregator_v6;
mod jupiter_dca;
mod okx_labs_v1;
mod okx_labs_v2;
/// Pending `router` decoder migration boundaries.
pub(crate) const DC_ROUTER_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::dflow_aggregator_v4::DC_ROUTER_DFLOW_AGGREGATOR_V4_LEGACY_CRATE,
self::dflow_aggregator_v4::DC_ROUTER_DFLOW_AGGREGATOR_V4_MIGRATION_STATUS,
),
(
self::jupiter_aggregator_v4::DC_ROUTER_JUPITER_AGGREGATOR_V4_LEGACY_CRATE,
self::jupiter_aggregator_v4::DC_ROUTER_JUPITER_AGGREGATOR_V4_MIGRATION_STATUS,
),
(
self::jupiter_aggregator_v6::DC_ROUTER_JUPITER_AGGREGATOR_V6_LEGACY_CRATE,
self::jupiter_aggregator_v6::DC_ROUTER_JUPITER_AGGREGATOR_V6_MIGRATION_STATUS,
),
(
self::jupiter_dca::DC_ROUTER_JUPITER_DCA_LEGACY_CRATE,
self::jupiter_dca::DC_ROUTER_JUPITER_DCA_MIGRATION_STATUS,
),
(
self::okx_labs_v1::DC_ROUTER_OKX_LABS_V1_LEGACY_CRATE,
self::okx_labs_v1::DC_ROUTER_OKX_LABS_V1_MIGRATION_STATUS,
),
(
self::okx_labs_v2::DC_ROUTER_OKX_LABS_V2_LEGACY_CRATE,
self::okx_labs_v2::DC_ROUTER_OKX_LABS_V2_MIGRATION_STATUS,
),
];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/router/dflow_aggregator_v4.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_dflow_aggregator_v4`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_dflow_aggregator_v4";
pub(crate) const DC_ROUTER_DFLOW_AGGREGATOR_V4_LEGACY_CRATE: &str =
"kb_decoder_router_dflow_aggregator_v4";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_DFLOW_AGGREGATOR_V4_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/router/jupiter_aggregator_v4.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_jupiter_aggregator_v4`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_jupiter_aggregator_v4";
pub(crate) const DC_ROUTER_JUPITER_AGGREGATOR_V4_LEGACY_CRATE: &str =
"kb_decoder_router_jupiter_aggregator_v4";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_JUPITER_AGGREGATOR_V4_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/router/jupiter_aggregator_v6.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_jupiter_aggregator_v6`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_jupiter_aggregator_v6";
pub(crate) const DC_ROUTER_JUPITER_AGGREGATOR_V6_LEGACY_CRATE: &str =
"kb_decoder_router_jupiter_aggregator_v6";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_JUPITER_AGGREGATOR_V6_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/router/jupiter_dca.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_jupiter_dca`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_jupiter_dca";
pub(crate) const DC_ROUTER_JUPITER_DCA_LEGACY_CRATE: &str = "kb_decoder_router_jupiter_dca";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_JUPITER_DCA_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/router/okx_labs_v1.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_okx_labs_v1`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_okx_labs_v1";
pub(crate) const DC_ROUTER_OKX_LABS_V1_LEGACY_CRATE: &str = "kb_decoder_router_okx_labs_v1";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_OKX_LABS_V1_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,10 +1,10 @@
// file: kb-lib/src/decoder/router/okx_labs_v2.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_router_okx_labs_v2`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_router_okx_labs_v2";
pub(crate) const DC_ROUTER_OKX_LABS_V2_LEGACY_CRATE: &str = "kb_decoder_router_okx_labs_v2";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_ROUTER_OKX_LABS_V2_MIGRATION_STATUS: &str = "source-preserved-pending-port";

View File

@@ -1,6 +1,12 @@
// file: kb-lib/src/decoder/rwa.rs
// version: 1
// version: 2
//! `rwa` decoder family.
mod ondo_global_markets;
/// Pending `rwa` decoder migration boundaries.
pub(crate) const DC_RWA_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[(
self::ondo_global_markets::DC_RWA_ONDO_GLOBAL_MARKETS_LEGACY_CRATE,
self::ondo_global_markets::DC_RWA_ONDO_GLOBAL_MARKETS_MIGRATION_STATUS,
)];

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/rwa/ondo_global_markets.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_rwa_ondo_global_markets`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_rwa_ondo_global_markets";
pub(crate) const DC_RWA_ONDO_GLOBAL_MARKETS_LEGACY_CRATE: &str =
"kb_decoder_rwa_ondo_global_markets";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_RWA_ONDO_GLOBAL_MARKETS_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

View File

@@ -1,5 +1,5 @@
// file: kb-lib/src/decoder/spl.rs
// version: 5
// version: 6
//! `spl` decoder family.
@@ -13,6 +13,23 @@ mod stake_pool;
mod token;
mod token2022;
/// Pending `spl` decoder migration boundaries.
pub(crate) const DC_SPL_MIGRATION_BOUNDARIES: &[(&str, &str)] = &[
(
self::account_compression::DC_SPL_ACCOUNT_COMPRESSION_LEGACY_CRATE,
self::account_compression::DC_SPL_ACCOUNT_COMPRESSION_MIGRATION_STATUS,
),
(self::noop::DC_SPL_NOOP_LEGACY_CRATE, self::noop::DC_SPL_NOOP_MIGRATION_STATUS),
(
self::single_pool::DC_SPL_SINGLE_POOL_LEGACY_CRATE,
self::single_pool::DC_SPL_SINGLE_POOL_MIGRATION_STATUS,
),
(
self::stake_pool::DC_SPL_STAKE_POOL_LEGACY_CRATE,
self::stake_pool::DC_SPL_STAKE_POOL_MIGRATION_STATUS,
),
];
/// Current stable Associated Token Account decoded event contract version.
pub(crate) use self::associated_token_account::DC_SPL_ATA_EVENT_VERSION;
/// Exact Associated Token Account instructions published by the official interface.

View File

@@ -1,10 +1,12 @@
// file: kb-lib/src/decoder/spl/account_compression.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_spl_account_compression`.
/// Legacy crate name retained for migration and compatibility tracking.
const LEGACY_CRATE: &str = "kb_decoder_spl_account_compression";
pub(crate) const DC_SPL_ACCOUNT_COMPRESSION_LEGACY_CRATE: &str =
"kb_decoder_spl_account_compression";
/// Current porting status.
const MIGRATION_STATUS: &str = "source-preserved-pending-port";
pub(crate) const DC_SPL_ACCOUNT_COMPRESSION_MIGRATION_STATUS: &str =
"source-preserved-pending-port";

Some files were not shown because too many files have changed in this diff Show More