Integrating with a vault
Integrating with a vault
What a developer needs to integrate with a Truss vault, from request and claim calls to reading state and batching operator calls.
A Truss vault is an ERC-7540 asynchronous vault: deposits and redemptions are requests that a settler fills later, rather than swaps that complete at once. It adds ERC-8161, an extension that lets a pending request be transferred to a new controller. Its share token is the vault contract itself, a plain ERC-20, as ERC-7575 allows. Most integrations open requests, claim them, and read the vault's state. This group gives the calls; the Flow of funds pages explain what each step does.
Key points
- Every deposit and redemption is a request with an id, a controller and an owner. Claims follow settlement.
- Some vaults also redeem instantly, through a call that opens and pays a redemption at once.
- The vault departs from ERC-4626 in a few documented places, such as preview functions that revert.
- The contracts are authoritative. These pages name the events and errors an integration needs where it uses them.
The pages in this group
| Page | What it covers |
|---|---|
| Deposits and redemptions | The request, claim, cancel and transfer calls, operators, and the instant path |
| Standards and deviations | Where the vault departs from ERC-4626, ERC-7540, ERC-7575, ERC-8161 and ERC-20 |
| Reading vault state | Share price, NAV, pending and claimable amounts, limits, fees and configuration |
| Building multicall batches | Operator multicalls and the vault's own batching |
Where the ABIs are
The interfaces an integration needs are ITrussVault for the vault's requests, claims and views, IFeeController
for fees, IVaultState for the vault's books, and IInstantRedemptionPolicy for instant quotes. A few calls live on
the concrete contracts only, such as crystalliseFees() and queuedFeeAssets() on TrussVault, so read those from
the contract's own ABI. Each deployed contract is verified on its network's block explorer.
Every contract of one vault is listed in its address book, which the factory returns from bookOf(vault).
Where to read more
| Page | What it covers |
|---|---|
| Flow of funds | What each step does, and who must call it |
| Architecture | The contracts in a vault and how they connect |
| Who can call what | Every restricted function, its tier and holders |