Module vault

Source

Modules§

ext_vault

Structs§

AllocatingState
Supplying idle underlying to markets according to a plan or queue.
Delta
EscrowSettlement
IdleState
No operation in-flight. The vault is ready to start a new allocation or withdrawal.
Locker
MarketConfiguration
Concrete configuration for a market.
PayoutState
Final step that transfers assets to the receiver and settles the share escrow.
PendingValue
PendingWithdrawal
VaultConfiguration
Configuration for the setup of a metavault.
WithdrawingState
Collecting liquidity from markets to satisfy a user withdrawal/redeem request.

Enums§

AllocationDelta
AllocationPositionIssueKind
DepositMsg
Parsed from the string parameter msg passed by *_transfer_call to *_on_transfer calls.
Error
Event
IdleBalanceDelta
OpState
Operation state machine for asynchronous allocation, withdrawal, and payout flows.
PositionReportOutcome
QueueAction
QueueStatus
Reason
Restrictions
Restrictions that can be applied to the vault.
UnbrickPhase
WithdrawProgressPhase
WithdrawalAccountingKind

Constants§

AFTER_SEND_TO_USER_GAS
ALLOCATE_GAS
CREATE_WITHDRAW_REQ_GAS
EXECUTE_NEXT_SUPPLY_WITHDRAW_REQ_GAS
EXECUTE_WITHDRAW_GAS
FT_BALANCE_OF_GAS
GET_SUPPLY_POSITION_GAS
MAX_QUEUE_LEN
MAX_TIMELOCK_NS
MIN_TIMELOCK_NS
SUBMIT_CAP_GAS
SUPPLY_AFTER_TRANSFER_CHECK_GAS
SUPPLY_GAS
SUPPLY_POSITION_READ_CALLBACK_GAS
SUPPLY_POST_VERIFY_GAS
WITHDRAW_CREATE_REQUEST_CALLBACK_GAS
WITHDRAW_EXECUTE_FETCH_POSITION_GAS
WITHDRAW_GAS
WITHDRAW_SETTLE_CALLBACK_GAS

Traits§

VaultExt

Functions§

buffer
require_at_least
storage_bytes_for_account_id

Type Aliases§

ActualIdx
AllocationPlan
AllocationWeights
ExpectedIdx
TimestampNs