MCPcopy Create free account
hub / github.com/api3dao/airnode / parseReceipt

Function parseReceipt

packages/airnode-validator/src/api/api.ts:59–61  ·  view source on GitHub ↗
(receipt: unknown)

Source from the content-addressed store, hash-verified

57 * @returns `{success: true, data: <receipt>}` if successful, `{success: false, error: <error>}` otherwise
58 */
59export function parseReceipt(receipt: unknown): ValidationResult<Receipt> {
60 return receiptSchema.safeParse(receipt);
61}
62
63/**
64 * Used to interpolate secrets into config. This function only interpolates the secrets and does not perform any

Callers 1

parseReceiptFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected