Module vault

Source

Re-exports§

pub use event::AllocationPositionIssueKind;
pub use event::Event;
pub use event::PositionReportOutcome;
pub use event::QueueAction;
pub use event::QueueStatus;
pub use event::Reason;
pub use event::UnbrickPhase;
pub use event::WithdrawProgressPhase;
pub use event::WithdrawalAccountingKind;
pub use errors::Error;
pub use lock::Locker;
pub use external::*;
pub use params::*;
pub use gas::*;
pub use restrictions::*;

Modules§

errors
event
external
gas
lock
params
prelude
Broad import surface for vault consumers.
restrictions

Structs§

ActualIdx
Actual index reached during processing.
AllocatingState
Supplying idle underlying to targets according to a plan or queue.
CapGroupId
CapGroupRecord
Record tracking the state of a cap group.
Delta
A single market allocation delta specifying a market and an amount in underlying asset units.
EscrowSettlement
Settlement breakdown for escrowed withdrawal shares. Invariant: to_burn + refund == original escrow_shares.
ExpectedIdx
Expected index in a queue or plan.
Fee
A fee configuration pairing a fee rate with its recipient.
FeeAccrualAnchor
Anchor point for fee accrual: stores the total assets and nanosecond timestamp at which fees were last accrued.
Fees
Complete fee configuration for the vault, including performance and management fees.
IdleState
No operation in-flight. The vault is ready to start a new allocation or withdrawal.
MarketConfiguration
Concrete configuration for a market.
MarketId
PayoutState
Final step that transfers assets to the receiver and settles the share escrow.
PendingWithdrawal
A queued withdrawal request with shares held in escrow. Fields use underlying asset units for expected_assets and nanosecond timestamps for requested_at.
RealAssetsReport
Report of real (live) total assets broken down by market, used for AUM refresh.
RefreshingState
Read-only refresh of target principals to update stored AUM.
ResyncIdleReport
Detailed report from an idle balance resync operation.
TimestampNs
Timestamp in nanoseconds.
VaultConfiguration
Configuration for the setup of a metavault.
WithdrawingState
Collecting liquidity from targets to satisfy a user withdrawal/redeem request.

Enums§

AllocationDelta
Allocation instruction for a single market. Supply forwards idle assets to the market. Withdraw creates a supply-withdrawal request in the market (does not execute it).
CapGroupUpdate
A cap-group governance update (shared across chains).
CapGroupUpdateKey
Identifies a cap-group governance update for accept/revoke operations.
DepositMsg
Parsed from the string parameter msg passed by *_transfer_call to *_on_transfer calls.
IdleBalanceDelta
Direction and magnitude of an idle balance change. Emits an IdleBalanceUpdated event when applied.
IdleResyncOutcome
Outcome of an idle balance resynchronization attempt.
OpState
Operation state machine for asynchronous allocation, withdrawal, and payout flows.

Functions§

storage_bytes_for_account_id

Type Aliases§

AllocationPlan
AllocationWeights
TargetId