@pwngh/economy-lab
    Preparing search index...

    Function drainInbox

    • Applies a batch of pending inbox events — verified inbound provider events already mapped to the Operation they apply.

      Never gated on the economy pause: settlements must keep flowing through a maintenance window. An apply can run more than once (submit committed but markApplied did not); exactly-once rests on the stored Operation's idempotencyKey (the provider event id the row deduped on), so a re-apply resolves to a duplicate Outcome.

      Parameters

      • store: Store
      • ports: Ports
      • input: { economy: Applier; limit: number; now: number }
      • Optionaloptions: CallOptions

      Returns Promise<InboxSummary>