Files
modules/applications-economy
Raven ScottandCursor 2a7812ddbb Add batch helpers and domain utilities across modules missing Batch APIs.
Third enrichment pass: *Batch methods for agents, economy, consensus, core, messaging, network, observability, pear-platform, scheduling, storage, supercomputer, and time-ordering modules.

Co-authored-by: Cursor <[email protected]>
2026-05-21 04:12:52 -04:00
..

Applications (economy)

Path: modules/applications-economy/ · Modules: 3 (production)

P2P economy primitives: credit ledger, auction gossip, marketplace listings. Hub: ../../docs/applications-economy/README.md.

When to use

  • Account balances with credit/debit and mesh sync (credit-ledger)
  • Second-price style bidding over gossip (auction-gossip)
  • Tagged listings with sold state (marketplace-listing)

Modules

Module Protocol Summary
hyper-p2p-credit-ledger credit-ledger/v1 Open account, credit/debit, totalSupply()
hyper-p2p-auction-gossip auction-gossip/v1 Open auction, bids, withdraw, cancel, close
hyper-p2p-marketplace-listing marketplace-listing/v1 Listings, tag/price search, remove

Quick start

const { HyperP2PCreditLedger } = require('hyper-p2p-credit-ledger')
const ledger = new HyperP2PCreditLedger({ topic: 'economy' })
await ledger.ready()
ledger.openAccount('alice')
ledger.credit('alice', 100, 'grant')
console.log(ledger.balance('alice'), ledger.totalSupply())

Test

cd hyper-p2p-auction-gossip && npm install && npm test