Crate templar_vault_kernel

Source

Re-exports§

pub use actions::apply_action;
pub use actions::convert_to_assets;
pub use actions::convert_to_assets_ceil;
pub use actions::convert_to_shares;
pub use actions::convert_to_shares_ceil;
pub use actions::effective_totals;
pub use actions::plan_idle_payout;
pub use actions::preview_deposit_shares;
pub use actions::preview_withdraw_assets;
pub use actions::EffectiveTotals;
pub use actions::IdlePayoutPlan;
pub use actions::KernelAction;
pub use actions::KernelResult;
pub use actions::PayoutOutcome;
pub use address_book::AddressBook;
pub use fee::Fee;
pub use fee::FeeSlot;
pub use fee::Fees;
pub use fee::FeesSpec;
pub use math::number::Number;
pub use math::wad::compute_fee_shares;
pub use math::wad::compute_fee_shares_from_assets;
pub use math::wad::compute_management_fee_shares;
pub use math::wad::mul_div_ceil;
pub use math::wad::mul_div_floor;
pub use math::wad::mul_wad_floor;
pub use math::wad::total_assets_for_fee_accrual;
pub use math::wad::Wad;
pub use math::wad::MAX_FEE_WAD;
pub use math::wad::MAX_MANAGEMENT_FEE_WAD;
pub use math::wad::MAX_PERFORMANCE_FEE_WAD;
pub use math::wad::YEAR_NS;
pub use restrictions::RestrictionKind;
pub use restrictions::Restrictions;
pub use state::escrow::apply_settlement;
pub use state::escrow::can_apply_settlement;
pub use state::escrow::compute_escrow_stats;
pub use state::escrow::find_by_owner;
pub use state::escrow::is_stale;
pub use state::escrow::settle_proportional;
pub use state::escrow::total_burn;
pub use state::escrow::total_refund;
pub use state::escrow::EscrowEntry;
pub use state::escrow::EscrowSettlement;
pub use state::escrow::EscrowStats;
pub use state::escrow::SettlementResult;
pub use state::op_state::AllocatingState;
pub use state::op_state::AllocationPlanEntry;
pub use state::op_state::IdleState;
pub use state::op_state::OpState;
pub use state::op_state::PayoutState;
pub use state::op_state::RefreshingState;
pub use state::op_state::TargetId;
pub use state::op_state::WithdrawingState;
pub use state::queue::can_enqueue;
pub use state::queue::can_partially_satisfy;
pub use state::queue::can_satisfy_withdrawal;
pub use state::queue::compute_full_withdrawal;
pub use state::queue::compute_idle_settlement;
pub use state::queue::compute_partial_withdrawal;
pub use state::queue::compute_queue_status;
pub use state::queue::compute_settlement;
pub use state::queue::compute_settlement_by_price;
pub use state::queue::count_satisfiable;
pub use state::queue::find_request_status;
pub use state::queue::is_past_cooldown;
pub use state::queue::is_valid_withdrawal_amount;
pub use state::queue::PendingWithdrawal;
pub use state::queue::QueueError;
pub use state::queue::QueueStatus;
pub use state::queue::WithdrawQueue;
pub use state::queue::WithdrawalRequestStatus;
pub use state::queue::WithdrawalResult;
pub use state::queue::DEFAULT_COOLDOWN_NS;
pub use state::queue::MAX_PENDING;
pub use state::queue::MAX_QUEUE_LENGTH;
pub use state::queue::MIN_WITHDRAWAL_ASSETS;
pub use state::vault::FeeAccrualAnchor;
pub use state::vault::VaultConfig;
pub use state::vault::VaultState;
pub use transitions::allocation_step_callback;
pub use transitions::complete_allocation;
pub use transitions::complete_refresh;
pub use transitions::payout_complete;
pub use transitions::refresh_step_callback;
pub use transitions::start_allocation;
pub use transitions::start_refresh;
pub use transitions::start_withdrawal;
pub use transitions::stop_withdrawal;
pub use transitions::withdrawal_collected;
pub use transitions::withdrawal_settled;
pub use transitions::withdrawal_step_callback;
pub use transitions::TransitionError;
pub use transitions::TransitionRes;
pub use transitions::TransitionResult;
pub use transitions::WithdrawalRequest;
pub use types::ActualIdx;
pub use types::Address;
pub use types::AssetId;
pub use types::ExpectedIdx;
pub use types::KernelVersion;
pub use types::TimestampNs;
pub use utils::TimeGate;

Modules§

actions
Kernel action dispatch for vault state transitions.
address_book
effects
error
Kernel error types.
fee
Fee structures for vault operations.
math
restrictions
Chain-agnostic restrictions (gates) for vault access control.
state
transitions
Pure transition functions for the OpState machine.
types
Chain-agnostic types for the vault kernel.
utils
Shared non-domain helpers for kernel-adjacent crates.