@chainvue/v402-deposit-watcher
v0.2.0
Published
Deposit watcher for the v402 facilitator: real mode (block polling, reorg detection, sender-VerusID attribution, confirmation crediting, re-mine handling) and simulated mode for dev/CI without a Verus node.
Readme
@chainvue/v402-deposit-watcher
Deposit watcher for the v402 facilitator.
Real mode (RealDepositWatcher) polls blocks via
@chainvue/v402-verus-rpc,
attributes deposits to the sending VerusID (source-tx vin lookup), credits
balances after the configured confirmation depth, and detects reorgs — on a
suspected reorg it re-verifies the block hashes of all recorded deposits so
deep reorgs alarm instead of passing silently. Simulated mode fakes deposits
for dev/CI without a Verus node (production-guarded).
Runs embedded in the facilitator daemon; published separately so custom facilitator builds can reuse it.
npm install @chainvue/v402-deposit-watcherKnown boundaries (by design, see the repo's
docs/RISKS.md):
shielded funding has no transparent vins → flagged for manual reconciliation;
amounts use the daemon's exact valueSat.
License
Apache-2.0
