@toon-protocol/client 5.2.0 → 5.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.
package/dist/cli/main.js CHANGED
@@ -632,7 +632,7 @@ function buildClientConfig(settings, keys) {
632
632
  };
633
633
  }
634
634
  async function defaultCreateClient(config) {
635
- const module = await import("../client-3KOPQDZG.js");
635
+ const module = await import("../client-LXLZVJV4.js");
636
636
  const factory = module.ToonClient;
637
637
  if (factory === void 0) {
638
638
  throw new Error(
@@ -8,7 +8,7 @@ import {
8
8
  resolveConfig,
9
9
  send,
10
10
  toEnvelopeRequest
11
- } from "./chunk-KGT4XOBZ.js";
11
+ } from "./chunk-IN75RK7V.js";
12
12
  import "./chunk-6O5OXJVR.js";
13
13
  import {
14
14
  BeforePayRefusedError,
@@ -76,4 +76,4 @@ export {
76
76
  send,
77
77
  toEnvelopeRequest
78
78
  };
79
- //# sourceMappingURL=client-3KOPQDZG.js.map
79
+ //# sourceMappingURL=client-LXLZVJV4.js.map
package/dist/index.d.ts CHANGED
@@ -1309,12 +1309,12 @@ interface ChannelStoreEntry {
1309
1309
  */
1310
1310
  provenFloor?: bigint;
1311
1311
  /**
1312
- * Set when a signed claim's fate is unknown (a transport error or a timeout,
1313
- * where the packet may have been delivered and banked anyway) or when the
1314
- * connector refused one. It means "our watermark and the connector's may
1315
- * disagree", and the next claim on this channel reconciles against
1316
- * `POST /ilp/claim-state` before it is signed. Persisted because a timeout in
1317
- * one `toon-client` invocation desyncs the next one.
1312
+ * Set when the connector refused a claim as not advancing its watermark
1313
+ * without saying where that watermark is. It means "our watermark and the
1314
+ * connector's disagree", and the next claim on this channel reconciles
1315
+ * against `POST /ilp/claim-state` before it is signed; adopting the
1316
+ * connector's figure clears it. Persisted because each `toon-client`
1317
+ * invocation is a new process, and the next one must resync first.
1318
1318
  */
1319
1319
  watermarkUncertain?: boolean;
1320
1320
  /** Unix SECONDS when close was initiated (withdraw flow). */
@@ -1658,6 +1658,13 @@ declare class BatchChannelManager {
1658
1658
  adoptConnectorWatermark(channelId: string, cumulativeClaimed: bigint, options?: {
1659
1659
  recovering?: boolean;
1660
1660
  }): void;
1661
+ /**
1662
+ * Mark `channelId`'s watermark as possibly out of step with the connector's.
1663
+ * Persisted, so the next invocation resyncs before it signs.
1664
+ */
1665
+ markInDoubt(channelId: string): void;
1666
+ /** Whether `channelId`'s watermark is in doubt, here or in an earlier invocation. */
1667
+ inDoubt(channelId: string): boolean;
1661
1668
  /** Whether this client still holds the watermark for `channelId`. */
1662
1669
  hasWatermark(channelId: string): boolean;
1663
1670
  /**
@@ -2036,8 +2043,6 @@ declare class BatchSettlementPayer {
2036
2043
  private readonly config;
2037
2044
  /** Onboardings in flight, so concurrent first sends open one channel, not two. */
2038
2045
  private readonly onboarding;
2039
- /** Channels whose last refusal said the connector holds more, without saying how much. */
2040
- private readonly inDoubt;
2041
2046
  constructor(config: BatchSettlementPayerConfig);
2042
2047
  /**
2043
2048
  * A voucher for one packet charging `amount` on `chain`, or `undefined` when
package/dist/index.js CHANGED
@@ -196,7 +196,7 @@ import {
196
196
  trimTrailingSlashes,
197
197
  withRetry,
198
198
  withdrawSvmBatchChannel
199
- } from "./chunk-KGT4XOBZ.js";
199
+ } from "./chunk-IN75RK7V.js";
200
200
  import {
201
201
  DEVNET,
202
202
  HS_HOSTNAME_MAX_LENGTH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toon-protocol/client",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "TOON client: pay for HTTP requests per request over ILP, with EVM and Solana payment channels",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Green",