@toon-protocol/client-mcp 0.11.0 → 0.12.0

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.
@@ -15,7 +15,7 @@ import {
15
15
  isEventExpired,
16
16
  parseIlpPeerInfo,
17
17
  readConfigFile
18
- } from "./chunk-CMGJ3NFT.js";
18
+ } from "./chunk-W6T6ZK7U.js";
19
19
  import {
20
20
  __require
21
21
  } from "./chunk-F22GNSF6.js";
@@ -1778,9 +1778,17 @@ var ClientRunner = class {
1778
1778
  const cm = apex.client.channelManager;
1779
1779
  if (saved && cm && typeof cm.trackChannel === "function") {
1780
1780
  cm.trackChannel(saved.channelId, saved.context);
1781
- this.log(
1782
- `[runner] resumed apex channel ${saved.channelId} (tracked, no re-deposit)`
1783
- );
1781
+ if (saved.context.chainType === "evm") {
1782
+ await apex.client.rehydrateChannelDeposit?.(saved.channelId, {
1783
+ chain: `evm:${saved.context.chainId}`,
1784
+ tokenNetworkAddress: saved.context.tokenNetworkAddress
1785
+ }).catch(
1786
+ (err) => this.log(
1787
+ `[runner] deposit re-hydrate for ${saved.channelId} failed: ${errMsg2(err)}`
1788
+ )
1789
+ );
1790
+ }
1791
+ this.log(`[runner] resumed apex channel ${saved.channelId} (deposit re-read)`);
1784
1792
  return saved.channelId;
1785
1793
  }
1786
1794
  if (opts.resumeOnly) return void 0;
@@ -2783,4 +2791,4 @@ export {
2783
2791
  PublishRejectedError,
2784
2792
  registerRoutes
2785
2793
  };
2786
- //# sourceMappingURL=chunk-KVK6OZVD.js.map
2794
+ //# sourceMappingURL=chunk-74KX5LXI.js.map