Events and errors
Filter receipt logs by the emitting contract address before decoding them. Indexed fields can be filtered as topics. The remaining fields come from the log data. For example, a FeeProxy deposit can produce both a MultiVault deposit event and a FeeProxy routing event in one receipt.
Decode events
The fields in each row are in ABI order. For these events the indexed fields come first.
| Contract and event | Indexed fields, in order | Data fields, in order |
|---|---|---|
MultiVault AtomCreated | creator, termId | atomData, atomWallet |
MultiVault AtomContextRegistered | termId, registrant | uris |
MultiVault TripleCreated | creator, termId | subjectId, predicateId, objectId |
MultiVault Deposited | sender, receiver, termId | curveId, assets, assetsAfterFees, shares, receiverSharesAfter, vaultType |
MultiVault Redeemed | sender, account, termId | curveId, shares, accountSharesAfter, assetsAfterFees, totalFees, vaultType |
TrustBonding RewardsClaimed | user, recipient | amount |
MultiVault AtomWalletDepositFeesClaimed | termId, atomWalletOwner, feesClaimed | — |
FeeProxy DepositedVia | user, affiliate, termId | grossAssets, affiliateFee, forwardedAssets, shares |
FeeProxy AffiliateFeePaid | affiliate, user | affiliateFee |
AtomWarden AtomWalletOwnershipClaimed | atomId, claimant | — |
Group atom context with the atom using its termId. An empty URI list produces no context event. For a vault position, keep its termId and curveId together. The final share balance in a deposit or redemption event belongs to the named holder. In a rewards claim, the user earned the reward and the recipient received the transfer.
Interpret a revert
A custom error has a selector and, for errors that take arguments, ABI-encoded data. Decode it against the implementation and call path you used.
| Error | What to check |
|---|---|
MultiVault_AtomExists(bytes atomData) | The bytes already identify an existing atom. Reuse that ID when referring to it. |
MultiVault_AtomUriCountExceeded(), MultiVault_AtomUriLengthExceeded() | Compare each atom's URI list with the current limits. |
MultiVault_SlippageExceeded() | Compare the deposit or redemption result with the minimum output on the request. |
FeeProxy_BpsExceedsCallerGuard(uint256 configured, uint256 callerMax) | The affiliate's rate exceeds the caller's maximum. Refresh the quote before deciding whether to proceed. |
TrustBonding_RewardsAlreadyClaimedForEpoch() | Check the caller's claim history for the previous epoch. |
MultiVault_SenderNotApproved(), MultiVault_RedeemerNotApproved(), MultiVault_CreatorNotApproved() | The account acted for has not approved the caller for that action. See approvals. |
FeeProxy_ProxyNotApprovedForDeposit(address receiver, address proxy), FeeProxy_ProxyNotApprovedForCreation(address creator, address proxy) | The user must approve FeeProxy in MultiVault. See FeeProxy approvals. |
FeeProxy_AffiliateNotRegistered(address), FeeProxy_AffiliatePaused(address) | Check isAffiliateActive(affiliate) before routing. |
A MultiVault call can also propagate an error from a curve or its registry, such as BondingCurveRegistry_InvalidCurveId(). Use MultiVaultWithRevertsAbi to decode those cases. The packages library constructs this composite by adding distinct external error signatures to MultiVaultAbi. It keeps the published MultiVault ABI available separately.
MultiVault events · FeeProxy errors · AtomWarden events · TrustBonding events and errors · Composite ABI source
Applies to V2 · @0xintuition/protocol 4.1.0