{"_id":"@bittasker/reviews-contracts","_rev":"2-145a8d5ad75fc069cea1e57f9dc313f2","name":"@bittasker/reviews-contracts","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@bittasker/reviews-contracts","version":"0.0.1","keywords":["bittasker","nostr","reviews","attestation","zod","schemas"],"license":"UNLICENSED","_id":"@bittasker/reviews-contracts@0.0.1","maintainers":[{"name":"mohamed.bittasker","email":"mohamed@bittasker.com"},{"name":"scott-bittasker","email":"scott@bittasker.com"}],"homepage":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/tree/main/packages/reviews-contracts","bugs":{"url":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/issues"},"dist":{"shasum":"f98d29135f82c4fbf4f4b612b7c98c36c03368a3","tarball":"https://registry.npmjs.org/@bittasker/reviews-contracts/-/reviews-contracts-0.0.1.tgz","fileCount":50,"integrity":"sha512-48UYBaBdHxAl7n8dQlSKFiOggfWJGvKb0/JaryA3vGvP9Meh0LYG9LI475ecjzxsc4qPP6XmMxetQAmSWVQNnw==","signatures":[{"sig":"MEUCIQDV3BjiFqDjMzBJCMlMNl84ULIkSPK8hug1MJdVnApDhwIgK80kaRzcaUyGjBtHTzWr0PRLHul2DG7LtAucZFW5LtA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122171},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"0048090362ef0ecd4b529d24b87c4a27af20f3cd","scripts":{"test":"vitest run --config vitest.config.ts","build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit","prepack":"npm run build","test:watch":"vitest --config vitest.config.ts"},"_npmUser":{"name":"mohamed.bittasker","email":"mohamed@bittasker.com"},"repository":{"url":"git+https://gitlab.com/bittasker/nostr-reviews-verifier.git","type":"git","directory":"packages/reviews-contracts"},"_npmVersion":"11.13.0","description":"Zod schemas, constants, and helpers for BitTasker Nostr review attestations and on-chain settlement verification","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.8","typescript":"^5.8.2"},"peerDependencies":{"zod":"^3.0.0 || ^4.0.0","nostr-tools":"^2.13.0","@noble/hashes":"^1.8.0"},"_npmOperationalInternal":{"tmp":"tmp/reviews-contracts_0.0.1_1778532453444_0.6006706627482514","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bittasker/reviews-contracts","version":"0.0.2","description":"Zod schemas, constants, and helpers for BitTasker Nostr review attestations and on-chain settlement verification","type":"module","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","prepack":"npm run build","test":"vitest run --config vitest.config.ts","test:watch":"vitest --config vitest.config.ts","check":"tsc -p tsconfig.json --noEmit"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"keywords":["bittasker","nostr","reviews","attestation","zod","schemas"],"license":"UNLICENSED","repository":{"type":"git","url":"git+https://gitlab.com/bittasker/nostr-reviews-verifier.git","directory":"packages/reviews-contracts"},"bugs":{"url":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/issues"},"homepage":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/tree/main/packages/reviews-contracts","publishConfig":{"access":"public"},"engines":{"node":">=18"},"peerDependencies":{"@noble/hashes":"^1.8.0","nostr-tools":"^2.13.0","zod":"^3.0.0 || ^4.0.0"},"devDependencies":{"typescript":"^5.8.2","vitest":"^3.0.8"},"gitHead":"0d961ce645849d24016ef83132ef7dd3682c94a7","_id":"@bittasker/reviews-contracts@0.0.2","_nodeVersion":"25.9.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-3WHHYdG6sbdvFdyX0g4e4fK3gr3IrhV89vP6svNMmXusw4c6qrzHrG9PUcNq1Ov7gkY5xJO9cL7yy+mTOIxz6w==","shasum":"87b1eb8fb7ba00aa8d6e7f0bed8c36121de087c1","tarball":"https://registry.npmjs.org/@bittasker/reviews-contracts/-/reviews-contracts-0.0.2.tgz","fileCount":54,"unpackedSize":157824,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCfEXchz4jkxeyFRzNguzeS4fQnbdh17+g+jEey8ILPxQIhAKa82SPIIMrnGozCG5hOQVxWzIb1mq9M83IY/0CE7MHz"}]},"_npmUser":{"name":"mohamed.bittasker","email":"mohamed@bittasker.com"},"directories":{},"maintainers":[{"name":"mohamed.bittasker","email":"mohamed@bittasker.com"},{"name":"scott-bittasker","email":"scott@bittasker.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reviews-contracts_0.0.2_1780414432679_0.11143468794933176"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-11T20:47:33.295Z","modified":"2026-06-02T15:33:53.026Z","0.0.1":"2026-05-11T20:47:33.606Z","0.0.2":"2026-06-02T15:33:52.877Z"},"bugs":{"url":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/issues"},"license":"UNLICENSED","homepage":"https://gitlab.com/bittasker/nostr-reviews-verifier/-/tree/main/packages/reviews-contracts","keywords":["bittasker","nostr","reviews","attestation","zod","schemas"],"repository":{"type":"git","url":"git+https://gitlab.com/bittasker/nostr-reviews-verifier.git","directory":"packages/reviews-contracts"},"description":"Zod schemas, constants, and helpers for BitTasker Nostr review attestations and on-chain settlement verification","maintainers":[{"name":"mohamed.bittasker","email":"mohamed@bittasker.com"},{"name":"scott-bittasker","email":"scott@bittasker.com"}],"readme":"# @bittasker/reviews-contracts\n\nShared **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).\n\n## Install\n\n```bash\nnpm install @bittasker/reviews-contracts\n```\n\nPeer dependencies (install in your app):\n\n- `zod` ^3 or ^4\n- `@noble/hashes` ^1.8\n- `nostr-tools` ^2.13 (declared for ecosystem alignment; most APIs here only need `@noble/hashes`)\n\n## Usage\n\n```ts\nimport {\n\treviewEventPayloadSchema,\n\tbuildReviewDraftHash,\n\tV2_PAYMENT_STATE_ABI,\n\tLEGACY_ESCROW_ABI\n} from '@bittasker/reviews-contracts';\n```\n\nThe published artifact is **ESM** (`\"type\": \"module\"`) with TypeScript declarations under `dist/`.\n\n## Develop\n\n```bash\nnpm install\nnpm run build\nnpm test\n```\n\n## License\n\n`UNLICENSED` — replace the `license` field in `package.json` and add a `LICENSE` file before publishing if you intend an open-source terms.\n","readmeFilename":"README.md"}