oc · docs
docs / documentation

@orangecheck/stamp-ots


@orangecheck/stamp-ots / UpgradeOptions

Interface: UpgradeOptions

Defined in: upgrade.ts:24

Properties

PropertyTypeDescriptionDefined in
<a id="property-fetch"></a> fetch?(input: RequestInfo | URL, init?: RequestInit) => Promise&lt;Response>Optional custom fetch passed through to calendar clients.upgrade.ts:36
<a id="property-headersource"></a> headerSource?BlockHeaderSourceHeader source used to resolve the anchor's block hash and to check that the proof's Merkle root is in that block.upgrade.ts:29
<a id="property-parseanchor"></a> parseAnchor?(proofBytes: Uint8Array) => Promise&lt; | &#123; blockHash: string; blockHeight: number; &#125; | null>Alternative to headerSource: given the merged proof bytes, return the anchor if the proof is confirmed, else null.upgrade.ts:34
<a id="property-signal"></a> signal?AbortSignal-upgrade.ts:39
<a id="property-timeoutms"></a> timeoutMs?numberRequest timeout per calendar. Default 30_000ms.upgrade.ts:38