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

    Function sequentialIds

    • Predictable id generator for tests. Counts up from seed (prefix_1, prefix_2, ...), so a test produces the same ids every run. The counter is shared across prefixes: it increments on every call, whatever the prefix.

      Parameters

      • seed: number = 0

      Returns Ids

      const ids = sequentialIds();
      ids.next('txn'); // 'txn_1'
      ids.next('evt'); // 'evt_2' — one counter, not one per prefix