Expand module APIs across pear, network, experimental, and ops categories.

Add batch helpers, counts, and management utilities so modules expose consistent peer, lease, queue, and telemetry surfaces.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:22:25 -04:00
co-authored by Cursor
parent c2282bd2b9
commit dec3956846
23 changed files with 199 additions and 0 deletions
@@ -93,6 +93,11 @@ class HyperP2PAttestationChain extends EventEmitter {
return n
}
appendBatch (payloads, opts = {}) {
if (!Array.isArray(payloads)) throw new Error('payloads array required')
return payloads.map((p) => this.append(p, opts))
}
async ready () {
if (this.swarm || !this.topic) return this
await initModuleSwarm(this, {