Skip to main content

Module vaults

Module vaults 

Source
Expand description

Managed vaults: read vaults, their settlement history and a holder’s position, create a vault, and queue deposits and withdrawals. Every write is EIP-712 signed in the Hypercall domain by the owner or holder it names.

Deposits and withdrawals queue and fill at the next keeper settlement, at the vault’s NAV. Poll HypercallClient::get_vault_holder for the fill.

Structs§

CreateVault
POST /v1/vaults, signed by the owner.
CreateVaultResponse
POST /v1/vaults response: the derived account and the owner’s VaultManager calldata.
Vault
One vault, from the engine snapshot.
VaultCancel
POST /v1/vaults/:id/cancel, signed by the holder.
VaultClose
POST /v1/vaults/:id/close, signed by the owner.
VaultConfigParams
A vault’s owner-signed terms.
VaultDeposit
POST /v1/vaults/:id/deposit, signed by the holder.
VaultFill
VaultHistoryPage
VaultHolder
One holder’s shares and queued requests.
VaultMetadata
VaultPage
A page of history: older than before_seq, at most limit settlements.
VaultQueuedRequest
VaultRequestResponse
A queued deposit, withdrawal or cancel.
VaultSettlement
VaultSettlementsPage
VaultStatusChange
One status transition (pause, resume, freeze, close).
VaultStatusChangesPage
VaultWithdraw
POST /v1/vaults/:id/withdraw, signed by the holder.