@toon-protocol/client-mcp 0.20.1 → 0.20.3
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-FDUYHYB2.js} +2 -2
- package/dist/{chunk-PYRQIHDN.js.map → chunk-FDUYHYB2.js.map} +1 -1
- package/dist/{chunk-HZYKDGIH.js → chunk-LRHUY3PO.js} +115 -32
- package/dist/chunk-LRHUY3PO.js.map +1 -0
- package/dist/{chunk-XUORDSBA.js → chunk-R3KZIPBQ.js} +11 -14
- package/dist/chunk-R3KZIPBQ.js.map +1 -0
- package/dist/{chunk-HS5WVL2V.js → chunk-UITLRZ7O.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-HZP3B4FH.js} +3 -3
- package/dist/{node-WPA2UDEH-QIY3PFYB.js.map → node-WPA2UDEH-HZP3B4FH.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-UITLRZ7O.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.2_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-FDUYHYB2.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.2_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-FDUYHYB2.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.2_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.2_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.2_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";
|
|
@@ -3407,10 +3407,19 @@ var CHAIN_PRESETS = {
|
|
|
3407
3407
|
"base-sepolia": {
|
|
3408
3408
|
name: "base-sepolia",
|
|
3409
3409
|
chainId: 84532,
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3410
|
+
// The old `https://sepolia.base.org` is a stale-read load balancer: reads
|
|
3411
|
+
// work, but openChannel->setTotalDeposit fails with InvalidChannelState
|
|
3412
|
+
// (0xf806e9d9) because a follow-up read lands on a lagging replica. publicnode
|
|
3413
|
+
// is the working devnet/testnet default (source of truth: toon-meta
|
|
3414
|
+
// docs/deployment.md).
|
|
3415
|
+
rpcUrl: "https://base-sepolia-rpc.publicnode.com",
|
|
3416
|
+
// Post-2026-07-19 public-chain cutover addresses (source of truth: toon-meta
|
|
3417
|
+
// docs/deployment.md). USDC is a 6-decimal mock with an ungated mint; the
|
|
3418
|
+
// retired e2e deployment (18-decimal USDC 0xac806…, TokenNetwork 0x47616F4b…,
|
|
3419
|
+
// registry 0xb9516c…) is still on-chain but MUST NOT be used.
|
|
3420
|
+
usdcAddress: "0x49beE1Bca5d15Fb0963117923403F9498119a9Ce",
|
|
3421
|
+
tokenNetworkAddress: "0x1E95493fEF46707E034b4a1945f25a8C76A1823D",
|
|
3422
|
+
registryAddress: "0xcC9079adE929b168B54145f6d25262b64FAB9D5b"
|
|
3414
3423
|
},
|
|
3415
3424
|
// Base mainnet (public). USDC is Circle's native USDC on Base.
|
|
3416
3425
|
// TOON TokenNetwork/registry not deployed yet → settlement relay-only.
|
|
@@ -3432,8 +3441,12 @@ var EVM_TIER = {
|
|
|
3432
3441
|
var SOLANA_DEPLOYED_DEVNET = {
|
|
3433
3442
|
rpcUrl: "https://api.devnet.solana.com",
|
|
3434
3443
|
cluster: "devnet",
|
|
3435
|
-
|
|
3436
|
-
|
|
3444
|
+
// Post-2026-07-19 public-chain cutover (source of truth: toon-meta
|
|
3445
|
+
// docs/deployment.md). USDC mint authority is the faucet treasury
|
|
3446
|
+
// AEPoA5xT…; the pre-cutover self-hosted-validator values (mint
|
|
3447
|
+
// 9FtYCX…, program EdJxYPD…) are retired and MUST NOT be used.
|
|
3448
|
+
usdcMint: "xyc5J8MgKFiEN13PnfftdXxUzYH34FEvw1LCrFwN7in",
|
|
3449
|
+
programId: "2aEVJ8koKD8LTZrLRSGtAtU7LBt4e7QjjCgf1kzQ7Rip"
|
|
3437
3450
|
};
|
|
3438
3451
|
var SOLANA_TIER = {
|
|
3439
3452
|
mainnet: {
|
|
@@ -3449,12 +3462,13 @@ var SOLANA_TIER = {
|
|
|
3449
3462
|
var MINA_DEPLOYED_DEVNET = {
|
|
3450
3463
|
graphqlUrl: "https://api.minascan.io/node/devnet/v1/graphql",
|
|
3451
3464
|
network: "devnet",
|
|
3452
|
-
//
|
|
3453
|
-
//
|
|
3454
|
-
//
|
|
3455
|
-
//
|
|
3456
|
-
//
|
|
3457
|
-
zkAppAddress: "
|
|
3465
|
+
// Post-2026-07-19 public-chain cutover (source of truth: toon-meta
|
|
3466
|
+
// docs/deployment.md). This is the CURRENT deployed PaymentChannel zkApp; the
|
|
3467
|
+
// previous address (B62qrH1As4…) is retired and MUST NOT be used. The channels
|
|
3468
|
+
// settle a custom USDC token, so the tokenId is required to read balances /
|
|
3469
|
+
// open channels against the right token.
|
|
3470
|
+
zkAppAddress: "B62qmgPhv2Xo6QVEtwjLja8UZJUtu8yapRFAR6gaoGtbM9zE5hG7Tkf",
|
|
3471
|
+
tokenId: "9497120696276615621907376728658022802954262638363646162765282600447713419198"
|
|
3458
3472
|
};
|
|
3459
3473
|
var MINA_TIER = {
|
|
3460
3474
|
mainnet: {
|
|
@@ -3515,7 +3529,8 @@ function resolveClientNetwork(network) {
|
|
|
3515
3529
|
minaChannel = {
|
|
3516
3530
|
graphqlUrl: mina.graphqlUrl,
|
|
3517
3531
|
zkAppAddress: mina.zkAppAddress,
|
|
3518
|
-
networkId: mina.network === "mainnet" ? "mainnet" : "devnet"
|
|
3532
|
+
networkId: mina.network === "mainnet" ? "mainnet" : "devnet",
|
|
3533
|
+
...mina.tokenId && { tokenId: mina.tokenId }
|
|
3519
3534
|
};
|
|
3520
3535
|
status.mina = "configured";
|
|
3521
3536
|
}
|
|
@@ -7922,7 +7937,7 @@ import { toHex as toHex3 } from "viem";
|
|
|
7922
7937
|
import { readFileSync, writeFileSync, existsSync } from "fs";
|
|
7923
7938
|
import { createPublicClient as createPublicClient2, http as http2, defineChain as defineChain2 } from "viem";
|
|
7924
7939
|
|
|
7925
|
-
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
7940
|
+
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.2_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/chunk-RAZRWSJF.js
|
|
7926
7941
|
import { getPublicKey as getPublicKey6 } from "nostr-tools/pure";
|
|
7927
7942
|
import { generateSecretKey, getPublicKey as getPublicKey22 } from "nostr-tools/pure";
|
|
7928
7943
|
import { createRumor, createSeal, createWrap } from "nostr-tools/nip59";
|
|
@@ -9546,7 +9561,7 @@ function getRandomValues(buf) {
|
|
|
9546
9561
|
);
|
|
9547
9562
|
}
|
|
9548
9563
|
|
|
9549
|
-
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.
|
|
9564
|
+
// ../../node_modules/.pnpm/@toon-protocol+sdk@3.1.2_mina-signer@3.1.0_typescript@5.9.3/node_modules/@toon-protocol/sdk/dist/index.js
|
|
9550
9565
|
var SwapControllerError = class extends ToonError {
|
|
9551
9566
|
constructor(message, cause) {
|
|
9552
9567
|
super(message, "SWAP_CONTROLLER_ERROR", cause);
|
|
@@ -11397,7 +11412,10 @@ function applyDefaults(rawConfig) {
|
|
|
11397
11412
|
connectorUrl,
|
|
11398
11413
|
// Surface the derived `POST /ilp` endpoint so HTTP mode selects HttpIlpClient.
|
|
11399
11414
|
...connectorHttpEndpoint ? { connectorHttpEndpoint } : {},
|
|
11400
|
-
|
|
11415
|
+
// Last-resort relay default. An explicit `config.relayUrl` always wins;
|
|
11416
|
+
// `applyNetworkPresets` does not set a per-network relay, so this fallback
|
|
11417
|
+
// points at the public devnet relay rather than a dead localhost socket.
|
|
11418
|
+
relayUrl: config.relayUrl ?? "wss://relay-ws.devnet.toonprotocol.dev",
|
|
11401
11419
|
queryTimeout: config.queryTimeout ?? 3e4,
|
|
11402
11420
|
maxRetries: config.maxRetries ?? 3,
|
|
11403
11421
|
retryDelay: config.retryDelay ?? 1e3,
|
|
@@ -15016,6 +15034,62 @@ async function readMinaBalance(opts) {
|
|
|
15016
15034
|
assetScale: 9
|
|
15017
15035
|
};
|
|
15018
15036
|
}
|
|
15037
|
+
var BASE58_ALPHABET22 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
15038
|
+
function base58encode(bytes) {
|
|
15039
|
+
let num2 = 0n;
|
|
15040
|
+
for (const b of bytes) num2 = num2 * 256n + BigInt(b);
|
|
15041
|
+
let out = "";
|
|
15042
|
+
while (num2 > 0n) {
|
|
15043
|
+
out = BASE58_ALPHABET22[Number(num2 % 58n)] + out;
|
|
15044
|
+
num2 /= 58n;
|
|
15045
|
+
}
|
|
15046
|
+
for (const b of bytes) {
|
|
15047
|
+
if (b === 0) out = "1" + out;
|
|
15048
|
+
else break;
|
|
15049
|
+
}
|
|
15050
|
+
return out;
|
|
15051
|
+
}
|
|
15052
|
+
function minaTokenIdToBase58(tokenId) {
|
|
15053
|
+
if (!/^\d+$/.test(tokenId)) {
|
|
15054
|
+
throw new Error(`Mina tokenId must be a decimal Field string: "${tokenId}"`);
|
|
15055
|
+
}
|
|
15056
|
+
let field = BigInt(tokenId);
|
|
15057
|
+
const le = new Uint8Array(32);
|
|
15058
|
+
for (let i = 0; i < 32; i++) {
|
|
15059
|
+
le[i] = Number(field & 0xffn);
|
|
15060
|
+
field >>= 8n;
|
|
15061
|
+
}
|
|
15062
|
+
const body = new Uint8Array(1 + 32);
|
|
15063
|
+
body[0] = 28;
|
|
15064
|
+
body.set(le, 1);
|
|
15065
|
+
const checksum = sha2562(sha2562(body)).slice(0, 4);
|
|
15066
|
+
const raw = new Uint8Array(body.length + 4);
|
|
15067
|
+
raw.set(body, 0);
|
|
15068
|
+
raw.set(checksum, body.length);
|
|
15069
|
+
return base58encode(raw);
|
|
15070
|
+
}
|
|
15071
|
+
async function readMinaTokenBalance(opts) {
|
|
15072
|
+
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
15073
|
+
const token = minaTokenIdToBase58(opts.tokenId);
|
|
15074
|
+
const query = "query($pk:PublicKey!,$t:TokenId){account(publicKey:$pk,token:$t){balance{total}}}";
|
|
15075
|
+
const res = await fetchImpl(opts.graphqlUrl, {
|
|
15076
|
+
method: "POST",
|
|
15077
|
+
headers: { "content-type": "application/json" },
|
|
15078
|
+
body: JSON.stringify({ query, variables: { pk: opts.owner, t: token } })
|
|
15079
|
+
});
|
|
15080
|
+
if (!res.ok) throw new Error(`Mina GraphQL request failed: HTTP ${res.status}`);
|
|
15081
|
+
const json = await res.json();
|
|
15082
|
+
if (json.errors && json.errors.length > 0) {
|
|
15083
|
+
throw new Error(`Mina GraphQL error: ${json.errors[0]?.message ?? "unknown"}`);
|
|
15084
|
+
}
|
|
15085
|
+
return {
|
|
15086
|
+
chain: "mina",
|
|
15087
|
+
address: opts.owner,
|
|
15088
|
+
amount: String(json.data?.account?.balance?.total ?? "0"),
|
|
15089
|
+
asset: "USDC",
|
|
15090
|
+
assetScale: 9
|
|
15091
|
+
};
|
|
15092
|
+
}
|
|
15019
15093
|
var errText = (e) => e instanceof Error ? e.message : String(e);
|
|
15020
15094
|
function foldNative(out, settled, errors) {
|
|
15021
15095
|
if (settled.status === "fulfilled") out.native = settled.value;
|
|
@@ -15080,24 +15154,28 @@ async function readWalletBalances(sources) {
|
|
|
15080
15154
|
);
|
|
15081
15155
|
}
|
|
15082
15156
|
if (sources.mina) {
|
|
15083
|
-
const { chainKey = "mina", graphqlUrl, owner } = sources.mina;
|
|
15157
|
+
const { chainKey = "mina", graphqlUrl, owner, tokenId } = sources.mina;
|
|
15084
15158
|
tasks.push(
|
|
15085
15159
|
(async () => {
|
|
15086
15160
|
const out = { chain: "mina", chainKey, address: owner, tokens: [] };
|
|
15087
15161
|
const errors = [];
|
|
15088
|
-
const nativeR = await Promise.allSettled([
|
|
15162
|
+
const [nativeR, tokenR] = await Promise.allSettled([
|
|
15163
|
+
readMinaBalance({ graphqlUrl, owner, fetchImpl }),
|
|
15164
|
+
tokenId ? readMinaTokenBalance({ graphqlUrl, owner, tokenId, fetchImpl }) : Promise.resolve(void 0)
|
|
15165
|
+
]);
|
|
15089
15166
|
foldNative(
|
|
15090
15167
|
out,
|
|
15091
|
-
nativeR
|
|
15168
|
+
nativeR.status === "fulfilled" ? {
|
|
15092
15169
|
status: "fulfilled",
|
|
15093
15170
|
value: {
|
|
15094
|
-
symbol: nativeR
|
|
15095
|
-
amount: nativeR
|
|
15096
|
-
decimals: nativeR
|
|
15171
|
+
symbol: nativeR.value.asset,
|
|
15172
|
+
amount: nativeR.value.amount,
|
|
15173
|
+
decimals: nativeR.value.assetScale
|
|
15097
15174
|
}
|
|
15098
|
-
} : nativeR
|
|
15175
|
+
} : nativeR,
|
|
15099
15176
|
errors
|
|
15100
15177
|
);
|
|
15178
|
+
foldToken(out, tokenR, void 0, errors);
|
|
15101
15179
|
finalizeChain(out, errors);
|
|
15102
15180
|
return out;
|
|
15103
15181
|
})()
|
|
@@ -16759,7 +16837,12 @@ var ToonClient = class {
|
|
|
16759
16837
|
if (mina?.graphqlUrl) {
|
|
16760
16838
|
const minaAddress = this.getMinaAddress() ?? (await ensureDerived())?.mina.publicKey;
|
|
16761
16839
|
if (minaAddress) {
|
|
16762
|
-
sources.mina = {
|
|
16840
|
+
sources.mina = {
|
|
16841
|
+
chainKey: "mina",
|
|
16842
|
+
graphqlUrl: mina.graphqlUrl,
|
|
16843
|
+
owner: minaAddress,
|
|
16844
|
+
...mina.tokenId ? { tokenId: mina.tokenId } : {}
|
|
16845
|
+
};
|
|
16763
16846
|
}
|
|
16764
16847
|
}
|
|
16765
16848
|
return readWalletBalances(sources);
|
|
@@ -17337,11 +17420,11 @@ function defaultFaucetTimeout(chain) {
|
|
|
17337
17420
|
function faucetPath(chain) {
|
|
17338
17421
|
switch (chain) {
|
|
17339
17422
|
case "evm":
|
|
17340
|
-
return "/api/request";
|
|
17423
|
+
return "/api/base-sepolia/request";
|
|
17341
17424
|
case "solana":
|
|
17342
|
-
return "/api/solana/request";
|
|
17425
|
+
return "/api/solana/usdc-request";
|
|
17343
17426
|
case "mina":
|
|
17344
|
-
return "/api/mina/request";
|
|
17427
|
+
return "/api/mina/usdc-request";
|
|
17345
17428
|
}
|
|
17346
17429
|
}
|
|
17347
17430
|
async function fundWallet(faucetUrl, address, chain, options = {}) {
|
|
@@ -18091,4 +18174,4 @@ export {
|
|
|
18091
18174
|
@scure/bip32/lib/esm/index.js:
|
|
18092
18175
|
(*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
18093
18176
|
*/
|
|
18094
|
-
//# sourceMappingURL=chunk-
|
|
18177
|
+
//# sourceMappingURL=chunk-LRHUY3PO.js.map
|