@toon-protocol/client-mcp 0.7.0 → 0.8.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.
@@ -10358,7 +10358,7 @@ var ToonClient = class {
10358
10358
  }
10359
10359
  /**
10360
10360
  * Per-chain settlement readiness for the configured `network` tier, mirroring
10361
- * the townhouse node's status. Returns `undefined` when no named `network` is
10361
+ * the relay node's status. Returns `undefined` when no named `network` is
10362
10362
  * set (or `network: 'custom'`), since there is no preset tier to report on.
10363
10363
  */
10364
10364
  getNetworkStatus() {
@@ -10676,7 +10676,7 @@ var ToonClient = class {
10676
10676
  return client.fetch(url, opts);
10677
10677
  }
10678
10678
  /**
10679
- * Sends a raw swap ILP packet (Story 12.5) to a Mill peer with an attached
10679
+ * Sends a raw swap ILP packet (Story 12.5) to a swap peer with an attached
10680
10680
  * balance-proof claim. This is a lower-level surface than `publishEvent`:
10681
10681
  * it forwards the raw `IlpSendResult` so the sender (`streamSwap()`) can
10682
10682
  * decode FULFILL metadata itself.
@@ -11045,6 +11045,9 @@ var ToonClient = class {
11045
11045
  return this.state.discoveryTracker.getDiscoveredPeers();
11046
11046
  }
11047
11047
  };
11048
+ function defaultFaucetTimeout(chain2) {
11049
+ return chain2 === "mina" ? 12e4 : 3e4;
11050
+ }
11048
11051
  function faucetPath(chain2) {
11049
11052
  switch (chain2) {
11050
11053
  case "evm":
@@ -11065,7 +11068,7 @@ async function fundWallet(faucetUrl, address, chain2, options = {}) {
11065
11068
  const base = faucetUrl.replace(/\/+$/, "");
11066
11069
  const url = `${base}${faucetPath(chain2)}`;
11067
11070
  const fetchImpl = options.fetchImpl ?? fetch;
11068
- const timeout = options.timeout ?? 3e4;
11071
+ const timeout = options.timeout ?? defaultFaucetTimeout(chain2);
11069
11072
  const controller = new AbortController();
11070
11073
  const timeoutId = setTimeout(() => controller.abort(), timeout);
11071
11074
  let response;
@@ -11842,6 +11845,8 @@ function resolveConfig(file) {
11842
11845
  const mnemonic = resolveMnemonic(file);
11843
11846
  const proxyUrl = process.env["TOON_CLIENT_PROXY_URL"] ?? file.proxyUrl;
11844
11847
  const faucetUrl = process.env["TOON_CLIENT_FAUCET_URL"] ?? file.faucetUrl;
11848
+ const faucetTimeoutEnv = process.env["TOON_CLIENT_FAUCET_TIMEOUT_MS"];
11849
+ const faucetTimeoutMs = faucetTimeoutEnv && Number.isFinite(Number(faucetTimeoutEnv)) ? Number(faucetTimeoutEnv) : file.faucetTimeoutMs;
11845
11850
  const btpUrl = process.env["TOON_CLIENT_BTP_URL"] ?? file.btpUrl;
11846
11851
  const hasUplink = Boolean(btpUrl || proxyUrl);
11847
11852
  const genesisSeed = GenesisPeerLoader2.loadGenesisPeers()[0];
@@ -11849,7 +11854,7 @@ function resolveConfig(file) {
11849
11854
  const httpPort = Number(
11850
11855
  process.env["TOON_CLIENT_HTTP_PORT"] ?? file.httpPort ?? 8787
11851
11856
  );
11852
- const destination = process.env["TOON_CLIENT_DESTINATION"] ?? file.destination ?? genesisSeed?.ilpAddress ?? "g.townhouse.town";
11857
+ const destination = process.env["TOON_CLIENT_DESTINATION"] ?? file.destination ?? genesisSeed?.ilpAddress ?? "g.proxy";
11853
11858
  const routes = deriveRouteDestinations(destination);
11854
11859
  const publishDestination = process.env["TOON_CLIENT_PUBLISH_DESTINATION"] ?? file.publishDestination ?? routes.publish;
11855
11860
  const storeDestination = process.env["TOON_CLIENT_STORE_DESTINATION"] ?? file.storeDestination ?? routes.store;
@@ -11899,6 +11904,7 @@ function resolveConfig(file) {
11899
11904
  hasUplink,
11900
11905
  ...proxyUrl ? { proxyUrl } : {},
11901
11906
  ...faucetUrl ? { faucetUrl } : {},
11907
+ ...faucetTimeoutMs !== void 0 ? { faucetTimeoutMs } : {},
11902
11908
  destination,
11903
11909
  publishDestination,
11904
11910
  storeDestination,
@@ -12226,4 +12232,4 @@ export {
12226
12232
  @scure/bip32/lib/esm/index.js:
12227
12233
  (*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
12228
12234
  */
12229
- //# sourceMappingURL=chunk-76CTU2A5.js.map
12235
+ //# sourceMappingURL=chunk-UEP6PFZN.js.map