carbon-drift-v2-decoder 1.0.0

Drift v2 Decoder
Documentation
//! This code was AUTOGENERATED using the Codama library.
pub mod a_m_m_schema;
pub mod add_amm_constituent_mapping_datum_schema;
pub mod amm_cache_fixed_schema;
pub mod amm_constituent_datum_schema;
pub mod amm_constituent_mapping_fixed_schema;
pub mod asset_tier_schema;
pub mod asset_type_schema;
pub mod builder_info_schema;
pub mod cache_info_schema;
pub mod constituent_correlations_fixed_schema;
pub mod constituent_lp_operation_schema;
pub mod constituent_params_schema;
pub mod constituent_spot_balance_schema;
pub mod constituent_status_schema;
pub mod constituent_target_base_fixed_schema;
pub mod contract_tier_schema;
pub mod contract_type_schema;
pub mod curve_record_schema;
pub mod delete_user_record_schema;
pub mod deposit_direction_schema;
pub mod deposit_explanation_schema;
pub mod deposit_record_schema;
pub mod drift_action_schema;
pub mod exchange_status_schema;
pub mod feature_bit_flags_schema;
pub mod fee_structure_schema;
pub mod fee_tier_schema;
pub mod fill_mode_schema;
pub mod fuel_overflow_status_schema;
pub mod fuel_season_record_schema;
pub mod fuel_sweep_record_schema;
pub mod funding_payment_record_schema;
pub mod funding_rate_record_schema;
pub mod historical_index_data_schema;
pub mod historical_oracle_data_schema;
pub mod if_rebalance_config_params_schema;
pub mod insurance_claim_schema;
pub mod insurance_fund_operation_schema;
pub mod insurance_fund_record_schema;
pub mod insurance_fund_schema;
pub mod insurance_fund_stake_record_schema;
pub mod insurance_fund_swap_record_schema;
pub mod l_p_action_schema;
pub mod l_p_borrow_lend_deposit_record_schema;
pub mod l_p_mint_redeem_record_schema;
pub mod l_p_record_schema;
pub mod l_p_settle_record_schema;
pub mod l_p_swap_record_schema;
pub mod liquidate_borrow_for_perp_pnl_record_schema;
pub mod liquidate_perp_pnl_for_deposit_record_schema;
pub mod liquidate_perp_record_schema;
pub mod liquidate_spot_record_schema;
pub mod liquidation_bit_flag_schema;
pub mod liquidation_multiplier_type_schema;
pub mod liquidation_record_schema;
pub mod liquidation_type_schema;
pub mod log_mode_schema;
pub mod lp_pool_feature_bit_flags_schema;
pub mod lp_pool_params_schema;
pub mod lp_status_schema;
pub mod margin_calculation_mode_schema;
pub mod margin_mode_schema;
pub mod margin_requirement_type_schema;
pub mod margin_type_config_schema;
pub mod market_config_flag_schema;
pub mod market_identifier_schema;
pub mod market_status_schema;
pub mod market_type_schema;
pub mod modify_order_id_schema;
pub mod modify_order_params_schema;
pub mod modify_order_policy_schema;
pub mod new_user_record_schema;
pub mod oracle_guard_rails_schema;
pub mod oracle_source_schema;
pub mod oracle_validity_schema;
pub mod order_action_explanation_schema;
pub mod order_action_record_schema;
pub mod order_action_schema;
pub mod order_bit_flag_schema;
pub mod order_filler_reward_structure_schema;
pub mod order_params_bit_flag_schema;
pub mod order_params_schema;
pub mod order_record_schema;
pub mod order_schema;
pub mod order_status_schema;
pub mod order_trigger_condition_schema;
pub mod order_type_schema;
pub mod override_amm_cache_params_schema;
pub mod perp_bankruptcy_record_schema;
pub mod perp_fulfillment_method_schema;
pub mod perp_lp_operation_schema;
pub mod perp_operation_schema;
pub mod perp_position_schema;
pub mod place_and_take_order_success_condition_schema;
pub mod pool_balance_schema;
pub mod position_direction_schema;
pub mod position_flag_schema;
pub mod position_update_type_schema;
pub mod post_only_param_schema;
pub mod prelaunch_oracle_params_schema;
pub mod price_divergence_guard_rails_schema;
pub mod referrer_status_schema;
pub mod revenue_share_escrow_fixed_schema;
pub mod revenue_share_order_bit_flag_schema;
pub mod revenue_share_order_schema;
pub mod revenue_share_settle_record_schema;
pub mod scale_order_params_schema;
pub mod settle_pnl_explanation_schema;
pub mod settle_pnl_mode_schema;
pub mod settle_pnl_record_schema;
pub mod settlement_direction_schema;
pub mod signature_verification_error_schema;
pub mod signed_msg_order_id_schema;
pub mod signed_msg_order_params_delegate_message_schema;
pub mod signed_msg_order_params_message_schema;
pub mod signed_msg_order_record_schema;
pub mod signed_msg_trigger_order_params_schema;
pub mod signed_msg_user_orders_fixed_schema;
pub mod size_distribution_schema;
pub mod spot_balance_type_schema;
pub mod spot_bankruptcy_record_schema;
pub mod spot_fulfillment_config_status_schema;
pub mod spot_fulfillment_method_schema;
pub mod spot_fulfillment_type_schema;
pub mod spot_interest_record_schema;
pub mod spot_market_vault_deposit_record_schema;
pub mod spot_operation_schema;
pub mod spot_position_schema;
pub mod stake_action_schema;
pub mod swap_direction_schema;
pub mod swap_record_schema;
pub mod swap_reduce_only_schema;
pub mod targets_datum_schema;
pub mod token_program_flag_schema;
pub mod transfer_protocol_if_shares_to_revenue_pool_record_schema;
pub mod twap_period_schema;
pub mod update_perp_market_summary_stats_params_schema;
pub mod user_fees_schema;
pub mod user_stats_paused_operations_schema;
pub mod user_status_schema;
pub mod validity_guard_rails_schema;

pub use {
    a_m_m_schema::*, add_amm_constituent_mapping_datum_schema::*, amm_cache_fixed_schema::*,
    amm_constituent_datum_schema::*, amm_constituent_mapping_fixed_schema::*, asset_tier_schema::*,
    asset_type_schema::*, builder_info_schema::*, cache_info_schema::*,
    constituent_correlations_fixed_schema::*, constituent_lp_operation_schema::*,
    constituent_params_schema::*, constituent_spot_balance_schema::*, constituent_status_schema::*,
    constituent_target_base_fixed_schema::*, contract_tier_schema::*, contract_type_schema::*,
    curve_record_schema::*, delete_user_record_schema::*, deposit_direction_schema::*,
    deposit_explanation_schema::*, deposit_record_schema::*, drift_action_schema::*,
    exchange_status_schema::*, feature_bit_flags_schema::*, fee_structure_schema::*,
    fee_tier_schema::*, fill_mode_schema::*, fuel_overflow_status_schema::*,
    fuel_season_record_schema::*, fuel_sweep_record_schema::*, funding_payment_record_schema::*,
    funding_rate_record_schema::*, historical_index_data_schema::*,
    historical_oracle_data_schema::*, if_rebalance_config_params_schema::*,
    insurance_claim_schema::*, insurance_fund_operation_schema::*, insurance_fund_record_schema::*,
    insurance_fund_schema::*, insurance_fund_stake_record_schema::*,
    insurance_fund_swap_record_schema::*, l_p_action_schema::*,
    l_p_borrow_lend_deposit_record_schema::*, l_p_mint_redeem_record_schema::*,
    l_p_record_schema::*, l_p_settle_record_schema::*, l_p_swap_record_schema::*,
    liquidate_borrow_for_perp_pnl_record_schema::*,
    liquidate_perp_pnl_for_deposit_record_schema::*, liquidate_perp_record_schema::*,
    liquidate_spot_record_schema::*, liquidation_bit_flag_schema::*,
    liquidation_multiplier_type_schema::*, liquidation_record_schema::*,
    liquidation_type_schema::*, log_mode_schema::*, lp_pool_feature_bit_flags_schema::*,
    lp_pool_params_schema::*, lp_status_schema::*, margin_calculation_mode_schema::*,
    margin_mode_schema::*, margin_requirement_type_schema::*, margin_type_config_schema::*,
    market_config_flag_schema::*, market_identifier_schema::*, market_status_schema::*,
    market_type_schema::*, modify_order_id_schema::*, modify_order_params_schema::*,
    modify_order_policy_schema::*, new_user_record_schema::*, oracle_guard_rails_schema::*,
    oracle_source_schema::*, oracle_validity_schema::*, order_action_explanation_schema::*,
    order_action_record_schema::*, order_action_schema::*, order_bit_flag_schema::*,
    order_filler_reward_structure_schema::*, order_params_bit_flag_schema::*,
    order_params_schema::*, order_record_schema::*, order_schema::*, order_status_schema::*,
    order_trigger_condition_schema::*, order_type_schema::*, override_amm_cache_params_schema::*,
    perp_bankruptcy_record_schema::*, perp_fulfillment_method_schema::*,
    perp_lp_operation_schema::*, perp_operation_schema::*, perp_position_schema::*,
    place_and_take_order_success_condition_schema::*, pool_balance_schema::*,
    position_direction_schema::*, position_flag_schema::*, position_update_type_schema::*,
    post_only_param_schema::*, prelaunch_oracle_params_schema::*,
    price_divergence_guard_rails_schema::*, referrer_status_schema::*,
    revenue_share_escrow_fixed_schema::*, revenue_share_order_bit_flag_schema::*,
    revenue_share_order_schema::*, revenue_share_settle_record_schema::*,
    scale_order_params_schema::*, settle_pnl_explanation_schema::*, settle_pnl_mode_schema::*,
    settle_pnl_record_schema::*, settlement_direction_schema::*,
    signature_verification_error_schema::*, signed_msg_order_id_schema::*,
    signed_msg_order_params_delegate_message_schema::*, signed_msg_order_params_message_schema::*,
    signed_msg_order_record_schema::*, signed_msg_trigger_order_params_schema::*,
    signed_msg_user_orders_fixed_schema::*, size_distribution_schema::*,
    spot_balance_type_schema::*, spot_bankruptcy_record_schema::*,
    spot_fulfillment_config_status_schema::*, spot_fulfillment_method_schema::*,
    spot_fulfillment_type_schema::*, spot_interest_record_schema::*,
    spot_market_vault_deposit_record_schema::*, spot_operation_schema::*, spot_position_schema::*,
    stake_action_schema::*, swap_direction_schema::*, swap_record_schema::*,
    swap_reduce_only_schema::*, targets_datum_schema::*, token_program_flag_schema::*,
    transfer_protocol_if_shares_to_revenue_pool_record_schema::*, twap_period_schema::*,
    update_perp_market_summary_stats_params_schema::*, user_fees_schema::*,
    user_stats_paused_operations_schema::*, user_status_schema::*, validity_guard_rails_schema::*,
};