SwapTracker
Defined in: swaps.ts:142
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SwapTracker(
deps):SwapTracker
Defined in: swaps.ts:146
Parameters
Section titled “Parameters”Returns
Section titled “Returns”SwapTracker
Methods
Section titled “Methods”claimed()
Section titled “claimed()”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.
Parameters
Section titled “Parameters”string
destTxHash
Section titled “destTxHash”string
Returns
Section titled “Returns”Promise<void>
tick()
Section titled “tick()”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.
Returns
Section titled “Returns”Promise<void>
track()
Section titled “track()”track(
input):Promise<SwapRecord>
Defined in: swaps.ts:151
Record a just-executed swap and make sure the alarm runs.
Parameters
Section titled “Parameters”Omit<SwapRecord, "createdAt" | "checks" | "destTxHash" | "status" | "updatedAt"> & object
Returns
Section titled “Returns”Promise<SwapRecord>