@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.
- package/dist/app/index.html +86 -81
- package/dist/{chunk-UHITXU5V.js → chunk-CMGJ3NFT.js} +11 -3
- package/dist/chunk-CMGJ3NFT.js.map +1 -0
- package/dist/{chunk-X4GKWZQP.js → chunk-JPQ4VCCF.js} +64 -14
- package/dist/chunk-JPQ4VCCF.js.map +1 -0
- package/dist/{chunk-CS4B3GET.js → chunk-KVK6OZVD.js} +139 -18
- package/dist/chunk-KVK6OZVD.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/index.d.ts +73 -10
- package/dist/index.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-CS4B3GET.js.map +0 -1
- package/dist/chunk-UHITXU5V.js.map +0 -1
- package/dist/chunk-X4GKWZQP.js.map +0 -1
|
@@ -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
|
|
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-
|
|
12812
|
+
//# sourceMappingURL=chunk-CMGJ3NFT.js.map
|