@toon-protocol/client-mcp 0.10.9 → 0.11.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.
@@ -11394,7 +11394,9 @@ var ToonClient = class {
11394
11394
  const tokens = this.config.preferredTokens;
11395
11395
  if (evmAddress && rpcUrls && tokens) {
11396
11396
  const chainKeys = this.config.supportedChains ?? Object.keys(rpcUrls);
11397
- const chainKey = chainKeys.find((c) => c.startsWith("evm") && rpcUrls[c] && tokens[c]);
11397
+ const usableEvm = (c) => c.startsWith("evm") && Boolean(rpcUrls[c]) && Boolean(tokens[c]);
11398
+ const settlementKeys = Object.keys(this.config.settlementAddresses ?? {});
11399
+ const chainKey = settlementKeys.find((c) => usableEvm(c)) ?? chainKeys.find(usableEvm);
11398
11400
  const rpcUrl = chainKey ? rpcUrls[chainKey] : void 0;
11399
11401
  const tokenAddress = chainKey ? tokens[chainKey] : void 0;
11400
11402
  if (chainKey && rpcUrl && tokenAddress) {
@@ -12588,7 +12590,13 @@ var ControlClient = class _ControlClient {
12588
12590
  return this.request("DELETE", "/apex", body);
12589
12591
  }
12590
12592
  fundWallet(body = {}) {
12591
- return this.request("POST", "/fund-wallet", body);
12593
+ return this.request("POST", "/fund-wallet", body, {
12594
+ timeoutMs: 4e4
12595
+ });
12596
+ }
12597
+ fundStatus(chain2) {
12598
+ const path = chain2 ? `/fund-wallet/status?chain=${encodeURIComponent(chain2)}` : "/fund-wallet/status";
12599
+ return this.request("GET", path);
12592
12600
  }
12593
12601
  /**
12594
12602
  * Whether an HTTP method is safe to transparently retry. Idempotent reads
@@ -12801,4 +12809,4 @@ export {
12801
12809
  @scure/bip32/lib/esm/index.js:
12802
12810
  (*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
12803
12811
  */
12804
- //# sourceMappingURL=chunk-UHITXU5V.js.map
12812
+ //# sourceMappingURL=chunk-CMGJ3NFT.js.map