- Chain event from the deposit contract.
- OMS account-activity event.
- Inventory delta from
GET /inventory/user/{user_id}.
Deposit join keys
Listen for bothDeposited and DepositedWithConfig on the deposit contract. OMS account activity emits:
(user, chain_id, deposit_nonce). Divide the event amount by 10¹⁸ to get the deposit credit in whole-token units. Use the registry decimals to convert onchain token base units to internal units.
Raw reconciliation:
Withdrawal join keys
A withdrawal starts withPOST /withdrawal/init, locks Funding tokens, exposes awaiting_signature or approved through GET /withdrawal/status/{user_id}, receives quorum approvals, then the user submits withdraw(...) on the deposit contract. Completion emits:
(user, chain_id, withdrawal_nonce). The deposit contract call carries token address, amount, nonce, target, validUntil, epochHash, and approval signatures; get exact fields from the live OMS reference and deposit contract.