Skip to content
docs

acrossDepositIsIntent

acrossDepositIsIntent(e, digest, sourceBlockTime?): boolean

Defined in: protocol-swap2-across/src/status.ts:161

Whether a deposit event is the one an intent id names: the canonical deposit calldata of its fields hashes to the id’s digest (acrossIntentId), so every field — parties, tokens, amounts, destination, deadlines, message — is the signed one. The event carries the resolved exclusivity deadline, not the parameter: 0 for none, the parameter itself for a timestamp, and for an offset the time of the block the deposit landed in plus the offset (SpokePool.sol _depositV3) — so an offset is recognized only with sourceBlockTime.

AcrossDepositEvent

string

number

boolean