Files
modules/applications-economy
Raven ScottandCursor 32f4292036 Expand consensus, discovery, collab, and infrastructure modules
Add leader lease remaining time and follower removal, message envelope
cloning and version config, presence onlineCount fix plus announceNow,
auction open/winning bid helpers, topic announcer bulk revoke, topic lease
releaseAll, and collab room totals and closeRoom.

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