RaycashDocs
Reference

Events

All events across Raycash contracts.

ERC7984 (Confidential ERC-20)

EventSignatureWhen
TransferTransfer(address indexed from, address indexed to, euint64 confidentialAmount)Every transfer, mint, or burn
ApprovalApproval(address indexed owner, address indexed spender, uint256 placeholder)Every approve() call

The Transfer event emits the encrypted handle, not the cleartext amount. The Approval event always emits type(uint256).max as a placeholder since the actual allowance is encrypted.

RaycashWrapper

Wrap / Unwrap Events

EventSignatureWhen
WrapInitiatedWrapInitiated(uint256 indexed depositIndex, address indexed depositor, uint256 amount, bytes32 encryptedRecipientHandle, bytes data)initWrap succeeds (deposit recorded)
WrapFinalizedWrapFinalized(address indexed recipient, bytes32 amount, bytes32 recipientBalance, uint256[] depositIndices)finalizeWrap succeeds
UnwrapRequestedUnwrapRequested(address indexed account, address indexed destination, bytes32 handle)initUnwrap succeeds
UnwrapFinalizedUnwrapFinalized(address indexed caller, address indexed destination, uint256 amount, bytes32 handle)finalizeUnwrap succeeds
RaycashTransferRaycashTransfer(address indexed from, address indexed to, bytes32 transferred, bytes32 amount, bytes32 senderBalance, bytes32 recipientBalance, bytes extraData)Every _update (mint, burn, P2P)
UnwrapRequestedHookFailedUnwrapRequestedHookFailed(address indexed account, bytes32 handle, bytes reason)unwrapRequestedHook reverted
UnwrapFinalizedHookFailedUnwrapFinalizedHookFailed(address indexed destination, bytes32 handle, bytes reason)unwrapFinalizedHook reverted

Hook Update Events

EventWhen
TransferHookUpdated(address indexed oldHook, address indexed newHook)setTransferHook called
UnwrapRequestedHookUpdated(address indexed oldHook, address indexed newHook)setUnwrapRequestedHook called
UnwrapFinalizedHookUpdated(address indexed oldHook, address indexed newHook)setUnwrapFinalizedHook called

Factory / Rage Quit Events

EventSignatureWhen
DepositorCreatedDepositorCreated(bytes32 indexed salt, address depositorAddr)New depositor deployed (first initWrap() or withdraw() for a given salt)
WithdrawalCompletedWithdrawalCompleted(address indexed depositor, address indexed recipient, address indexed token, uint256 amount)Hash-preimage withdrawal succeeds

CardChargesEscrow

EventSignatureWhen
SettlementInitiatedSettlementInitiated(uint256 indexed nonce, address indexed destination, uint256 amount)settle() succeeds
SettlementFinalizedSettlementFinalized(uint256 indexed nonce, address indexed destination, uint256 amount)finalizeSettlement() succeeds
AdminUpdatedAdminUpdated(address indexed oldAdmin, address indexed newAdmin)setAdmin() succeeds

Was this page helpful?

On this page