@dvmkit/dvm-cli 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,7 +82,7 @@ async function generateTempoKey(opts = {}) {
82
82
  );
83
83
  }
84
84
  if (existing && opts.force) {
85
- const { assertTempoWalletIdle } = await import("./tempo-lifecycle-SQL3KLEZ-AATA2SKI.js");
85
+ const { assertTempoWalletIdle } = await import("./tempo-lifecycle-SQL3KLEZ-YZ2XAOOS.js");
86
86
  await assertTempoWalletIdle("replace");
87
87
  }
88
88
  const { privateKeyToAccount, generatePrivateKey } = await import("./accounts-2WZE4N5F.js");
@@ -5,7 +5,7 @@ import {
5
5
  withSdkInitLock
6
6
  } from "./chunk-3SWX5BQP.js";
7
7
 
8
- // node_modules/@dvmkit/sdk/dist/chunk-X3IKFWJA.js
8
+ // node_modules/@dvmkit/sdk/dist/chunk-6BQM7TOW.js
9
9
  import { createHash, randomUUID } from "crypto";
10
10
  var MemoryX402BatchStore = class {
11
11
  batches = /* @__PURE__ */ new Map();
@@ -143,6 +143,7 @@ var PayoutReporter = class {
143
143
  ownsBatchStore;
144
144
  intervalMs;
145
145
  now;
146
+ lastX402SnapshotAt = 0;
146
147
  x402;
147
148
  tempo;
148
149
  timer = null;
@@ -575,6 +576,8 @@ var PayoutReporter = class {
575
576
  async snapshotX402() {
576
577
  const ctx = this.x402;
577
578
  if (!ctx) return;
579
+ const snapshotAt = Math.max(this.now(), this.lastX402SnapshotAt + 1);
580
+ this.lastX402SnapshotAt = snapshotAt;
578
581
  try {
579
582
  const pools = [];
580
583
  const wedged = [];
@@ -630,7 +633,7 @@ var PayoutReporter = class {
630
633
  items: pools.length,
631
634
  pools,
632
635
  wedged,
633
- snapshotAt: this.now()
636
+ snapshotAt
634
637
  });
635
638
  } catch (err) {
636
639
  warn("payout_pending_snapshot_failed", { rail: "x402", error: message(err) });