Skip to content
docs

SwapTracker

Defined in: swaps.ts:142

new SwapTracker(deps): SwapTracker

Defined in: swaps.ts:146

SwapTrackerDeps

SwapTracker

claimed(id, destTxHash): Promise<void>

Defined in: swaps.ts:160

After the user’s claim transaction went out: keep polling until the provider sees the mint.

string

string

Promise<void>


tick(): Promise<void>

Defined in: swaps.ts:166

One alarm tick: check every active record once; stop the alarm when nothing is active. Concurrent ticks coalesce.

Promise<void>


track(input): Promise<SwapRecord>

Defined in: swaps.ts:151

Record a just-executed swap and make sure the alarm runs.

Omit<SwapRecord, "createdAt" | "checks" | "destTxHash" | "status" | "updatedAt"> & object

Promise<SwapRecord>