@toon-protocol/client-mcp 0.7.0 → 0.7.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-EY5GFEDH.js → chunk-6N2FGTST.js} +8 -3
- package/dist/chunk-6N2FGTST.js.map +1 -0
- package/dist/{chunk-76CTU2A5.js → chunk-CHTBE4PI.js} +8 -2
- package/dist/{chunk-76CTU2A5.js.map → chunk-CHTBE4PI.js.map} +1 -1
- package/dist/{chunk-PX3DOSEG.js → chunk-Y5U4UCHU.js} +2 -2
- package/dist/daemon.js +2 -2
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-EY5GFEDH.js.map +0 -1
- /package/dist/{chunk-PX3DOSEG.js.map → chunk-Y5U4UCHU.js.map} +0 -0
|
@@ -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 ??
|
|
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];
|
|
@@ -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-
|
|
12235
|
+
//# sourceMappingURL=chunk-CHTBE4PI.js.map
|