@toon-protocol/client-mcp 0.20.1 → 0.20.2
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-PYRQIHDN.js → chunk-IAOKAQLA.js} +2 -2
- package/dist/{chunk-PYRQIHDN.js.map → chunk-IAOKAQLA.js.map} +1 -1
- package/dist/{chunk-HZYKDGIH.js → chunk-UPIAVE44.js} +27 -16
- package/dist/chunk-UPIAVE44.js.map +1 -0
- package/dist/{chunk-XUORDSBA.js → chunk-WS3GVRQJ.js} +11 -14
- package/dist/chunk-WS3GVRQJ.js.map +1 -0
- package/dist/{chunk-HS5WVL2V.js → chunk-ZKSFO7M3.js} +2 -2
- package/dist/daemon.js +3 -3
- package/dist/index.js +4 -4
- package/dist/{lib-SPP3AMQ7.js → lib-GNW7AEA7.js} +633 -191
- package/dist/lib-GNW7AEA7.js.map +1 -0
- package/dist/mcp.js +3 -3
- package/dist/{node-WPA2UDEH-QIY3PFYB.js → node-WPA2UDEH-RCLJ66AU.js} +3 -3
- package/dist/{node-WPA2UDEH-QIY3PFYB.js.map → node-WPA2UDEH-RCLJ66AU.js.map} +1 -1
- package/package.json +5 -5
- package/dist/chunk-HZYKDGIH.js.map +0 -1
- package/dist/chunk-XUORDSBA.js.map +0 -1
- package/dist/lib-SPP3AMQ7.js.map +0 -1
- /package/dist/{chunk-HS5WVL2V.js.map → chunk-ZKSFO7M3.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__require
|
|
4
4
|
} from "./chunk-I7TGLGN6.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
6
|
+
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.1_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
9
|
var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
__commonJS,
|
|
30
30
|
__export
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-IAOKAQLA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@toon-protocol+sdk@3.1.1_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-UP2VWCW5.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __esm = (fn, res) => function __init() {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n};\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\nexport {\n __require,\n __esm,\n __commonJS,\n __export,\n __toCommonJS\n};\n//# sourceMappingURL=chunk-UP2VWCW5.js.map"],"mappings":";;;;;;AAAA,IAAI,YAAY,OAAO;AAEvB,IAAI,oBAAoB,OAAO;AAE/B,IAAIA,aAA6B,kBAAC,MAAM,OAAO,cAAY,cAAc,YAAU,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG;AAAA,EAC7H,KAAK,CAAC,GAAG,OAAO,OAAO,cAAY,cAAc,YAAU,GAAG,CAAC;AACjE,CAAC,IAAI,GAAG,SAAS,GAAG;AAClB,MAAI,OAAO,cAAY,YAAa,QAAO,UAAQ,MAAM,MAAM,SAAS;AACxE,QAAM,MAAM,yBAAyB,IAAI,oBAAoB;AAC/D,CAAC;AACD,IAAI,QAAQ,CAAC,IAAI,QAAQ,SAAS,SAAS;AACzC,SAAO,OAAO,OAAO,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI;AAClE;AACA,IAAI,aAAa,CAAC,IAAI,QAAQ,SAASC,cAAa;AAClD,SAAO,QAAQ,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,GAAG,IAAI;AAC7F;AACA,IAAI,WAAW,CAAC,QAAQ,QAAQ;AAC9B,WAAS,QAAQ;AACf,cAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAChE;","names":["__require","__require2"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
__require
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IAOKAQLA.js";
|
|
5
5
|
import {
|
|
6
6
|
HashMD,
|
|
7
7
|
rotlBH as rotlBH2,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
utils
|
|
92
92
|
} from "./chunk-NL7NYWPC.js";
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.
|
|
94
|
+
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/chunk-5WT7ISKC.js
|
|
95
95
|
import { encode } from "@toon-format/toon";
|
|
96
96
|
import { decode } from "@toon-format/toon";
|
|
97
97
|
import { decode as decode2 } from "@toon-format/toon";
|
|
@@ -207,7 +207,7 @@ function decodeEventFromToon(data) {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.
|
|
210
|
+
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/index.js
|
|
211
211
|
import { finalizeEvent } from "nostr-tools/pure";
|
|
212
212
|
import { finalizeEvent as finalizeEvent2 } from "nostr-tools/pure";
|
|
213
213
|
import { finalizeEvent as finalizeEvent3 } from "nostr-tools/pure";
|
|
@@ -1719,7 +1719,7 @@ function recoverEvmSigner(digest, sig65) {
|
|
|
1719
1719
|
return "0x" + bytesToHex(addrHash.slice(-20)).toLowerCase();
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
|
-
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.
|
|
1722
|
+
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/index.js
|
|
1723
1723
|
import { SimplePool as SimplePool3 } from "nostr-tools/pool";
|
|
1724
1724
|
import { getPublicKey as getPublicKey3 } from "nostr-tools/pure";
|
|
1725
1725
|
import WebSocket22 from "ws";
|
|
@@ -3408,9 +3408,13 @@ var CHAIN_PRESETS = {
|
|
|
3408
3408
|
name: "base-sepolia",
|
|
3409
3409
|
chainId: 84532,
|
|
3410
3410
|
rpcUrl: "https://sepolia.base.org",
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3411
|
+
// Post-2026-07-19 public-chain cutover addresses (source of truth: toon-meta
|
|
3412
|
+
// docs/deployment.md). USDC is a 6-decimal mock with an ungated mint; the
|
|
3413
|
+
// retired e2e deployment (18-decimal USDC 0xac806…, TokenNetwork 0x47616F4b…,
|
|
3414
|
+
// registry 0xb9516c…) is still on-chain but MUST NOT be used.
|
|
3415
|
+
usdcAddress: "0x49beE1Bca5d15Fb0963117923403F9498119a9Ce",
|
|
3416
|
+
tokenNetworkAddress: "0x1E95493fEF46707E034b4a1945f25a8C76A1823D",
|
|
3417
|
+
registryAddress: "0xcC9079adE929b168B54145f6d25262b64FAB9D5b"
|
|
3414
3418
|
},
|
|
3415
3419
|
// Base mainnet (public). USDC is Circle's native USDC on Base.
|
|
3416
3420
|
// TOON TokenNetwork/registry not deployed yet → settlement relay-only.
|
|
@@ -3432,8 +3436,12 @@ var EVM_TIER = {
|
|
|
3432
3436
|
var SOLANA_DEPLOYED_DEVNET = {
|
|
3433
3437
|
rpcUrl: "https://api.devnet.solana.com",
|
|
3434
3438
|
cluster: "devnet",
|
|
3435
|
-
|
|
3436
|
-
|
|
3439
|
+
// Post-2026-07-19 public-chain cutover (source of truth: toon-meta
|
|
3440
|
+
// docs/deployment.md). USDC mint authority is the faucet treasury
|
|
3441
|
+
// AEPoA5xT…; the pre-cutover self-hosted-validator values (mint
|
|
3442
|
+
// 9FtYCX…, program EdJxYPD…) are retired and MUST NOT be used.
|
|
3443
|
+
usdcMint: "xyc5J8MgKFiEN13PnfftdXxUzYH34FEvw1LCrFwN7in",
|
|
3444
|
+
programId: "2aEVJ8koKD8LTZrLRSGtAtU7LBt4e7QjjCgf1kzQ7Rip"
|
|
3437
3445
|
};
|
|
3438
3446
|
var SOLANA_TIER = {
|
|
3439
3447
|
mainnet: {
|
|
@@ -7922,7 +7930,7 @@ import { toHex as toHex3 } from "viem";
|
|
|
7922
7930
|
import { readFileSync, writeFileSync, existsSync } from "fs";
|
|
7923
7931
|
import { createPublicClient as createPublicClient2, http as http2, defineChain as defineChain2 } from "viem";
|
|
7924
7932
|
|
|
7925
|
-
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
7933
|
+
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.1_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-RAZRWSJF.js
|
|
7926
7934
|
import { getPublicKey as getPublicKey6 } from "nostr-tools/pure";
|
|
7927
7935
|
import { generateSecretKey, getPublicKey as getPublicKey22 } from "nostr-tools/pure";
|
|
7928
7936
|
import { createRumor, createSeal, createWrap } from "nostr-tools/nip59";
|
|
@@ -9546,7 +9554,7 @@ function getRandomValues(buf) {
|
|
|
9546
9554
|
);
|
|
9547
9555
|
}
|
|
9548
9556
|
|
|
9549
|
-
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
9557
|
+
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.1_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/index.js
|
|
9550
9558
|
var SwapControllerError = class extends ToonError {
|
|
9551
9559
|
constructor(message, cause) {
|
|
9552
9560
|
super(message, "SWAP_CONTROLLER_ERROR", cause);
|
|
@@ -11397,7 +11405,10 @@ function applyDefaults(rawConfig) {
|
|
|
11397
11405
|
connectorUrl,
|
|
11398
11406
|
// Surface the derived `POST /ilp` endpoint so HTTP mode selects HttpIlpClient.
|
|
11399
11407
|
...connectorHttpEndpoint ? { connectorHttpEndpoint } : {},
|
|
11400
|
-
|
|
11408
|
+
// Last-resort relay default. An explicit `config.relayUrl` always wins;
|
|
11409
|
+
// `applyNetworkPresets` does not set a per-network relay, so this fallback
|
|
11410
|
+
// points at the public devnet relay rather than a dead localhost socket.
|
|
11411
|
+
relayUrl: config.relayUrl ?? "wss://relay-ws.devnet.toonprotocol.dev",
|
|
11401
11412
|
queryTimeout: config.queryTimeout ?? 3e4,
|
|
11402
11413
|
maxRetries: config.maxRetries ?? 3,
|
|
11403
11414
|
retryDelay: config.retryDelay ?? 1e3,
|
|
@@ -17337,11 +17348,11 @@ function defaultFaucetTimeout(chain) {
|
|
|
17337
17348
|
function faucetPath(chain) {
|
|
17338
17349
|
switch (chain) {
|
|
17339
17350
|
case "evm":
|
|
17340
|
-
return "/api/request";
|
|
17351
|
+
return "/api/base-sepolia/request";
|
|
17341
17352
|
case "solana":
|
|
17342
|
-
return "/api/solana/request";
|
|
17353
|
+
return "/api/solana/usdc-request";
|
|
17343
17354
|
case "mina":
|
|
17344
|
-
return "/api/mina/request";
|
|
17355
|
+
return "/api/mina/usdc-request";
|
|
17345
17356
|
}
|
|
17346
17357
|
}
|
|
17347
17358
|
async function fundWallet(faucetUrl, address, chain, options = {}) {
|
|
@@ -18091,4 +18102,4 @@ export {
|
|
|
18091
18102
|
@scure/bip32/lib/esm/index.js:
|
|
18092
18103
|
(*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
18093
18104
|
*/
|
|
18094
|
-
//# sourceMappingURL=chunk-
|
|
18105
|
+
//# sourceMappingURL=chunk-UPIAVE44.js.map
|