@bittasker/reviews-contracts
v0.0.1
Published
Zod schemas, constants, and helpers for BitTasker Nostr review attestations and on-chain settlement verification
Readme
@bittasker/reviews-contracts
Shared Zod schemas, constants, hashing helpers, and minimal viem ABI fragments for BitTasker review attestation flows (Nostr kinds, challenge payloads, settlement typing, and on-chain verification).
Install
npm install @bittasker/reviews-contractsPeer dependencies (install in your app):
zod^3 or ^4@noble/hashes^1.8nostr-tools^2.13 (declared for ecosystem alignment; most APIs here only need@noble/hashes)
Usage
import {
reviewEventPayloadSchema,
buildReviewDraftHash,
V2_PAYMENT_STATE_ABI,
LEGACY_ESCROW_ABI
} from '@bittasker/reviews-contracts';The published artifact is ESM ("type": "module") with TypeScript declarations under dist/.
Develop
npm install
npm run build
npm testLicense
UNLICENSED — replace the license field in package.json and add a LICENSE file before publishing if you intend an open-source terms.
