TrussDocs

Architecture

Bridging

How Truss vaults move assets to a contract or wallet on another chain through attested sub-accounts, and how the NAV stays correct while funds are in transit.

A vault lives on one chain, but its capital does not have to. An attested sub-account can send assets to a contract or wallet on another chain, through a bridge the vault has approved. Its attestation then keeps counting those assets, in transit and on the other side, so the vault's NAV stays complete.

Key points

  • Only attested sub-accounts can bridge, and only through call shapes the vault approved.
  • Approving a route waits the CRITICAL tier after launch. Revoking one is immediate.
  • The attestation must count funds in flight and funds on the other chain.
  • A reported value is never newer than its oldest part, so a slow read elsewhere makes the whole report older.

Which sub-accounts can bridge?

Attested sub-accounts can, because they make direct calls that match approved shapes. A tracked sub-account cannot. Everything it does runs through a module and must come back to it in the same call, measured at oracle prices, so assets cannot leave its chain.

How a route is approved

A route is a small set of call shapes: usually an approval that lets the bridge contract take the token, and the bridge call itself. A shape fixes the bridge contract, the native value and the function exactly. It can also fix the arguments that matter, such as the destination chain, the recipient and the token, and leave the amount free.

For example, the factory's tests approve a Circle CCTP transfer of USDC to one fixed wallet on another network. Only the amount and the fee ceiling may vary, and a call naming any other destination, recipient or token is refused.

A deployer can approve shapes when the vault is deployed, through the factory, and they are live with the vault. After launch, the VaultAdmin approves a shape with allowCallShape after CRITICAL, and revokes it at once with revokeCallShape. Which routes a vault uses is chosen per vault. The committed configs approve none.

How NAV stays correct in transit

A bridge call is part of an executeCalls batch. After any batch, the account's value is stale until a report taken after the batch is used, so the vault waits for a report that shows the transfer.

  1. The report counts everything the account owns: funds still in flight, funds that have arrived on the other chain, and what is left on the vault's chain.
  2. Its observed time is no later than the oldest part. If the other chain was read before the vault's chain, the report takes the earlier time.
  3. The attestation service reports only after the bridge's effect has landed, or counts what is still in flight. The first report taken after the batch is used as soon as it is published, so it must show the whole effect.

Bringing funds back works the same way in reverse: they return to the account on the vault's chain, and the account returns them to the vault once a fresh report is in.

What it relies on

  • The bridge itself, which must deliver what it took.
  • The wallet or contract on the other side, and whoever controls it.
  • The attestation service, which must see both sides and report their sum.
  • The shapes. Free arguments can be filled with any value, and an approval granted by an approved call outlives the shape's revocation, so approve routes narrowly and clear approvals in the same batch.

Where to read more

PageWhat it covers
Attested sub-accountsApproved calls, the band and invalidation
NAV parametersHow each part of NAV is counted
Who can call whatWho can approve and revoke a shape