@orangecheck/stamp-ots / UpgradeOptions
Interface: UpgradeOptions
Defined in: upgrade.ts:17
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-fetch"></a> fetch? | { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response>; } | Optional custom fetch passed through to calendar clients. | upgrade.ts:27 |
<a id="property-parseanchor"></a> parseAnchor | (proofBytes: Uint8Array) => Promise< | { blockHash: string; blockHeight: number; } | null> | A parser that, given proof bytes, returns {blockHeight, blockHash} if the proof is fully anchored, or null if it's still pending. Callers plug in their own parser (e.g., via the opentimestamps npm package). This keeps @orangecheck/stamp-ots free of heavy parser deps. | upgrade.ts:25 |
<a id="property-signal"></a> signal? | AbortSignal | - | upgrade.ts:30 |
<a id="property-timeoutms"></a> timeoutMs? | number | Request timeout per calendar. Default 30_000ms. | upgrade.ts:29 |