Enrich module APIs with snapshot and batch helpers across categories.

Adds snapshot(), domain batch methods, and clearAll aliases on consensus, core, encoding, experimental, indexes, messaging, network, oracle, pear, routing, storage, supercomputer, and trust modules.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:53:48 -04:00
co-authored by Cursor
parent d1e8608280
commit 24a9fde231
49 changed files with 359 additions and 2 deletions
@@ -117,6 +117,14 @@ class HyperP2PQosTopic extends EventEmitter {
return { handlers, pending }
}
snapshot () {
return {
channels: this.listChannels(),
queueDepths: this.queueDepths(),
handlers: this.handlerCount()
}
}
_onGossip (data) {
if (!data || data.type !== 'qos-publish') return
this._stats.gossipIn++