@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/{chunk-KGT4XOBZ.js → chunk-IN75RK7V.js} +18 -7
- package/dist/chunk-IN75RK7V.js.map +1 -0
- package/dist/cli/main.js +1 -1
- package/dist/{client-3KOPQDZG.js → client-LXLZVJV4.js} +2 -2
- package/dist/index.d.ts +13 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KGT4XOBZ.js.map +0 -1
- /package/dist/{client-3KOPQDZG.js.map → client-LXLZVJV4.js.map} +0 -0
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-
|
|
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-
|
|
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-
|
|
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
|
|
1313
|
-
*
|
|
1314
|
-
* connector
|
|
1315
|
-
*
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
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
package/package.json
CHANGED