Expand economy, autobase, network, observability, and scheduling modules.

Add auction withdraw/cancel, marketplace search helpers, update gossip history, autobase fork/lease/indexer/view APIs, link-probe and circuit-loom utilities, trace trees, pheromone ranking, and scheduling/measurement helpers with tests.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 01:09:29 -04:00
co-authored by Cursor
parent b8b815fce6
commit 44b8a80907
36 changed files with 508 additions and 4 deletions
@@ -37,3 +37,16 @@ test('getStats', async (t) => {
t.is(m.getStats().opened, 1)
await m.close()
})
test('withdraw cancel highest', async (t) => {
const m = new HyperP2PAuctionGossip()
m.openAuction('a1')
m.placeBid('a1', 10)
m._onGossip({ type: 'auction-bid', auctionId: 'a1', bid: { amount: 30, bidder: 'remote', at: 2 } })
t.is(m.highestBid('a1').amount, 30)
t.is(m.withdrawBid('a1', 'remote'), 1)
t.is(m.highestBid('a1').amount, 10)
t.ok(m.cancelAuction('a1'))
t.is(m.listAuctionIds().length, 0)
await m.close()
})