Files
Chris Troutner 6a8cf6653e Refactor postHeights index code and add property tests
Deduplicate the postHeights query iteration into a shared generator,
extract shared pagination parsing/enrichment, and extract the idempotent
create-if-missing write pattern. Reduces CRAP for the changed post-height
code to <=6 and removes duplicated parse/attach logic across the post list
use cases. Add property tests covering the postHeight key round-trip and
ordering invariants for both the DB and indexer, exposed via a separate
'property' command.

By refactorer.
2026-08-26 11:02:13 -07:00

35 lines
1021 B
JSON

{
"name": "psf-memo-indexer",
"version": "1.0.0",
"description": "Indexes Memo protocol transactions on Bitcoin Cash.",
"type": "module",
"scripts": {
"block-indexer": "node --max-old-space-size=8192 psf-memo-block-indexer.js",
"tx-indexer": "node --max-old-space-size=4096 psf-memo-tx-indexer.js",
"test": "c8 --reporter=text mocha --exit --recursive test/unit/",
"property": "node --test \"test/property/*.test.js\"",
"acceptance": "node acceptance/acceptance.js",
"lint": "standard --env mocha --fix"
},
"author": "Chris Troutner",
"license": "GPLV3",
"dependencies": {
"@chris.troutner/retry-queue": "1.0.11",
"@psf/bch-js": "7.1.11",
"@psf/bitcoincash-zmq-decoder": "0.1.5",
"axios": "1.12.2",
"dotenv": "17.2.3",
"express": "5.1.0",
"p-queue": "8.1.1",
"p-retry": "6.2.1",
"zeromq": "6.5.0"
},
"devDependencies": {
"c8": "10.1.3",
"chai": "6.2.0",
"mocha": "11.7.4",
"sinon": "21.0.0",
"standard": "17.1.2"
}
}