live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/stamp-ots


@orangecheck/stamp-ots / UpgradeOptions

Interface: UpgradeOptions

Defined in: upgrade.ts:17

Properties

PropertyTypeDescriptionDefined in
<a id="property-fetch"></a> fetch?&#123; (input: RequestInfo | URL, init?: RequestInit): Promise&lt;Response>; (input: string | Request | URL, init?: RequestInit): Promise&lt;Response>; &#125;Optional custom fetch passed through to calendar clients.upgrade.ts:27
<a id="property-parseanchor"></a> parseAnchor(proofBytes: Uint8Array) => Promise&lt; | &#123; blockHash: string; blockHeight: number; &#125; | 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?numberRequest timeout per calendar. Default 30_000ms.upgrade.ts:29