UNPKG

@provablehq/sdk

Version:

A Software Development Kit (SDK) for Zero-Knowledge Transactions

16 lines (15 loc) 520 B
import type { RecordScannerFailure } from "./error.js"; /** * Success variant of serialNumbers() result. * * @property ok - Whether the request was successful, always true for this interface. * @property data - A map of serial numbers to whether they are owned by the account. */ export interface SerialNumbersSuccess { ok: true; data: Record<string, boolean>; } /** * Success or failure variant of serialNumbers() result. */ export type SerialNumbersResult = SerialNumbersSuccess | RecordScannerFailure;