Files
modules/applications-economy
Raven ScottandCursor 61abf1d069 Expand media, scheduling, trust, core capabilities, and economy modules
Add manual API helpers: media protection/ladder/access/manifest/chunk
clear and revoke helpers, enterprise region management, contribution ledger
counts, scheduling deadline and cron clear/cancel, peer scheduler cancelAll,
attestation clearChain, encrypted topic unregisterAll, multisig pending
proposals, capability purge/revoke, dev profile toggleFlag, PN counter
isZero, live edge streamIds, chunk scheduler dequeueBatch, auction clearAll,
and two-phase set clearAll.

Co-authored-by: Cursor <[email protected]>
2026-05-21 02:50:37 -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