x402-proxy 0.10.12 → 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.
Files changed (79) hide show
  1. package/README.md +3 -3
  2. package/dist/{Credential-0iRzpJkF.js → Mcp-CKylLH8N.js} +209 -211
  3. package/dist/accounts-D5u2KBgr.js +4 -0
  4. package/dist/{hashTypedData-CtEdfx4y.js → accounts-D9KsVVpJ.js} +228 -3
  5. package/dist/{auth-J9VuNMoG.js → auth-CaCZiNCk.js} +3 -3
  6. package/dist/bin/cli.js +46 -51
  7. package/dist/{decodeFunctionData-JPOUdvil.js → call-CNxk2xpg.js} +2084 -144
  8. package/dist/{decodeFunctionData-DuFcwhC_.js → call-DdUUzMfg.js} +11 -16
  9. package/dist/{ccip-C6CQOJYv.js → ccip-Cc1Fdazz.js} +1 -1
  10. package/dist/{ccip-Bx-zoUCJ.js → ccip-IumNC20V.js} +13 -3
  11. package/dist/{ccip-C2k1DD1T.js → ccip-JDVib6lf.js} +1 -1
  12. package/dist/{ccip-RZzsZ5Mv.js → ccip-RzF9aX_O.js} +3 -4
  13. package/dist/{chain-CafcHffR.js → chain-C_3Km9Dx.js} +1 -1
  14. package/dist/{client-Bcl2uC6u.js → client-C2DwSbYN.js} +1 -2
  15. package/dist/{Sse-DGR-tH7K.js → client-DqtxTnu6.js} +10249 -6224
  16. package/dist/client-DuqEc8Iw.js +3 -0
  17. package/dist/{client-DZV1cVsW.js → client-uAaF6lv2.js} +2 -2
  18. package/dist/{derive-DNUl8LU9.js → config-cyNyKO4-.js} +1024 -919
  19. package/dist/{dist-DM5_F3r5.js → dist-CFt2UZ4W.js} +1 -1
  20. package/dist/{dist-DxJCYyL5.js → dist-Cwt2qrTK.js} +2 -2
  21. package/dist/{helpers-ChcFbdC0.js → helpers-DebIs_21.js} +2 -2
  22. package/dist/{sendRawTransactionSync-DvSkhZtW.js → http-J0KYM-2Y.js} +2186 -169
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.js +30107 -771
  25. package/dist/{index.node-l8K03uWn.js → index.node-xc-jRJ78.js} +1 -1
  26. package/dist/{localBatchGatewayRequest-DOdQ9bR7.js → localBatchGatewayRequest-0gr8vzH3.js} +14 -2
  27. package/dist/{localBatchGatewayRequest-DQkbZaSy.js → localBatchGatewayRequest-CBsFXIAU.js} +2 -2
  28. package/dist/{localBatchGatewayRequest-C-RPJyDO.js → localBatchGatewayRequest-CPqqSJcB.js} +2 -2
  29. package/dist/{schemas-BxMFYNbH.js → schemas-DzZjufD1.js} +1 -1
  30. package/dist/{secp256k1-BZpiyffY.js → secp256k1-Bp7LcNvI.js} +2 -7
  31. package/dist/secp256k1-BsaSkXlH.js +2 -0
  32. package/dist/{secp256k1-BjenrLl5.js → secp256k1-BwSAYyif.js} +2 -2
  33. package/dist/secp256k1-CHAXu2gP.js +3 -0
  34. package/dist/{server-D2apWWY9.js → server-Dbsk9dql.js} +2 -2
  35. package/dist/setup-BdSfEdx4.js +3 -0
  36. package/dist/{setup-BY4J49Lv.js → setup-C10O8N36.js} +16 -33
  37. package/dist/{hmac-59IlS_by.js → sha2-XLg3s2a9.js} +81 -81
  38. package/dist/{sha256-FAs0qeni.js → sha256-DCLdwsRU.js} +1 -1
  39. package/dist/{sha3-DbMJRJ3C.js → sha3-03id956K.js} +1 -1
  40. package/dist/{sha3-CYkWM8Xa.js → sha3-VSia5eGE.js} +1 -1
  41. package/dist/{sse-qIEKrJEZ.js → sse-kba68iqF.js} +2 -2
  42. package/dist/status-B2xUewrq.js +3 -0
  43. package/dist/{status-CD_fCzGf.js → status-DjZdIeES.js} +2 -3
  44. package/dist/{stdio-BfDjLLnd.js → stdio-CdmkLt8r.js} +3 -3
  45. package/dist/{streamableHttp-BkayeoEQ.js → streamableHttp-DRntYTFN.js} +2 -2
  46. package/dist/{types-BmyZIQ8G.js → types-BQ17ZF7g.js} +1 -1
  47. package/dist/{types-DlqDf-zE.js → types-DH9rDVeP.js} +1 -1
  48. package/dist/{utils-SeGHMW9O.js → utils-psFtUKLa.js} +53 -53
  49. package/dist/wallet-BsCgqUun.js +3 -0
  50. package/dist/{wallet-C4RiduwM.js → wallet-CUCoLEqs.js} +179 -147
  51. package/package.json +1 -1
  52. package/dist/Mcp-CSyD7Hxz.js +0 -10
  53. package/dist/Sse-C-KDPYh0.js +0 -16482
  54. package/dist/accounts-DsuvWwph.js +0 -232
  55. package/dist/accounts-DzvAlQRn.js +0 -5
  56. package/dist/accounts-IG-Cmrwy.js +0 -229
  57. package/dist/chain-DwfP5RGZ.js +0 -1968
  58. package/dist/chunk-DBEY4PJZ.js +0 -16
  59. package/dist/client-1XQsO-Eh.js +0 -5152
  60. package/dist/client-Co7Fg1lv.js +0 -6388
  61. package/dist/config-BUQsit4s.js +0 -3
  62. package/dist/config-DR1Fs_wL.js +0 -6600
  63. package/dist/config-rvKA3SYT.js +0 -96
  64. package/dist/hashTypedData-BHmP9dBd.js +0 -859
  65. package/dist/http-BAtucMbS.js +0 -2060
  66. package/dist/isAddressEqual-BLrd1Hg1.js +0 -9
  67. package/dist/isAddressEqual-DsAqfQOD.js +0 -10
  68. package/dist/parseUnits-CApwcKSD.js +0 -49
  69. package/dist/parseUnits-cMO2udMe.js +0 -48
  70. package/dist/secp256k1-CLPUX17u.js +0 -3
  71. package/dist/setup-wMOAgrsN.js +0 -3
  72. package/dist/status-_TcPMyzr.js +0 -3
  73. package/dist/tempo-BcTkftHK.js +0 -17
  74. package/dist/tempo-Bs_aydgm.js +0 -18
  75. package/dist/wallet-BymEHYms.js +0 -3
  76. /package/dist/{api-CUzmQvTQ.js → api-B5mo8tpE.js} +0 -0
  77. /package/dist/{dist-C2YO6HSQ.js → dist-CvV4mGO6.js} +0 -0
  78. /package/dist/{index.node-DPDV8w2j.js → index.node-DCvOPMK7.js} +0 -0
  79. /package/dist/{utils-BYjkXZDF.js → utils-B1qOlJzL.js} +0 -0
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { t as createKeyPairSignerFromBytes } from "./index.node-DPDV8w2j.js";
2
+ import { t as createKeyPairSignerFromBytes } from "./index.node-DCvOPMK7.js";
3
3
  export { createKeyPairSignerFromBytes };
@@ -1,6 +1,18 @@
1
1
  #!/usr/bin/env node
2
- import { Xt as toFunctionSelector, Yt as getAbiItem, f as batchGatewayAbi, qt as solidityError, t as decodeFunctionData } from "./decodeFunctionData-DuFcwhC_.js";
3
- import { Ct as AbiFunctionNotFoundError, Ft as formatAbiItem, I as encodeAbiParameters, W as concatHex, _t as AbiErrorInputsNotFoundError, jt as InvalidArrayError, vt as AbiErrorNotFoundError, wt as AbiFunctionOutputsNotFoundError } from "./chain-CafcHffR.js";
2
+ import { Kt as decodeAbiParameters, Xt as toFunctionSelector, Yt as getAbiItem, d as batchGatewayAbi, qt as solidityError } from "./call-DdUUzMfg.js";
3
+ import { B as slice, Ct as AbiFunctionNotFoundError, Ft as formatAbiItem, I as encodeAbiParameters, Tt as AbiFunctionSignatureNotFoundError, W as concatHex, _t as AbiErrorInputsNotFoundError, jt as InvalidArrayError, vt as AbiErrorNotFoundError, wt as AbiFunctionOutputsNotFoundError } from "./chain-C_3Km9Dx.js";
4
+ //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
5
+ function decodeFunctionData(parameters) {
6
+ const { abi, data } = parameters;
7
+ const signature = slice(data, 0, 4);
8
+ const description = abi.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem(x)));
9
+ if (!description) throw new AbiFunctionSignatureNotFoundError(signature, { docsPath: "/docs/contract/decodeFunctionData" });
10
+ return {
11
+ functionName: description.name,
12
+ args: "inputs" in description && description.inputs && description.inputs.length > 0 ? decodeAbiParameters(description.inputs, slice(data, 4)) : void 0
13
+ };
14
+ }
15
+ //#endregion
4
16
  //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
5
17
  const docsPath$1 = "/docs/contract/encodeErrorResult";
6
18
  function encodeErrorResult(parameters) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as keccak_256 } from "./sha3-CYkWM8Xa.js";
2
+ import { t as keccak_256 } from "./sha3-VSia5eGE.js";
3
3
  //#region node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/version.js
4
4
  const version$2 = "1.2.3";
5
5
  //#endregion
@@ -6051,7 +6051,7 @@ async function call(client, args) {
6051
6051
  return { data: response };
6052
6052
  } catch (err) {
6053
6053
  const data = getRevertErrorData(err);
6054
- const { offchainLookup, offchainLookupSignature } = await import("./ccip-C2k1DD1T.js");
6054
+ const { offchainLookup, offchainLookupSignature } = await import("./ccip-JDVib6lf.js");
6055
6055
  if (client.ccipRead !== false && data?.slice(0, 10) === offchainLookupSignature && to) return { data: await offchainLookup(client, {
6056
6056
  data,
6057
6057
  to
@@ -1,4 +1,4 @@
1
- import { t as keccak_256 } from "./sha3-DbMJRJ3C.js";
1
+ import { t as keccak_256 } from "./sha3-03id956K.js";
2
2
  //#region node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/version.js
3
3
  const version$2 = "1.2.3";
4
4
  //#endregion
@@ -6050,7 +6050,7 @@ async function call(client, args) {
6050
6050
  return { data: response };
6051
6051
  } catch (err) {
6052
6052
  const data = getRevertErrorData(err);
6053
- const { offchainLookup, offchainLookupSignature } = await import("./ccip-C6CQOJYv.js");
6053
+ const { offchainLookup, offchainLookupSignature } = await import("./ccip-Cc1Fdazz.js");
6054
6054
  if (client.ccipRead !== false && data?.slice(0, 10) === offchainLookupSignature && to) return { data: await offchainLookup(client, {
6055
6055
  data,
6056
6056
  to
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as _uppercase, $t as $ZodStringFormat, A as _lowercase, An as getEnumValues, At as $ZodISODate, B as _number, Bn as safeExtend, Bt as $ZodNonOptional, C as _isoDate, Ct as $ZodEmail, D as _jwt, Dn as clone, Dt as $ZodGUID, E as _isoTime, En as formatError, Et as $ZodExactOptional, F as _multipleOf, Fn as normalizeParams, Ft as $ZodJWT, G as _startsWith, H as _refine, Hn as $ZodEncodeError, Ht as $ZodNullable, I as _nanoid, In as omit, It as $ZodKSUID, J as _toLowerCase, Jt as $ZodPipe, K as _string, Kt as $ZodObjectJIT, L as _never, Ln as partial, Lt as $ZodLiteral, M as _lte, Mn as jsonStringifyReplacer, Mt as $ZodISODuration, N as _maxLength, Nn as merge, Nt as $ZodISOTime, O as _ksuid, On as defineLazy, Ot as $ZodIPv4, P as _minLength, Pn as mergeDefs, Pt as $ZodIntersection, Q as _unknown, Qt as $ZodString, R as _normalize, Rn as pick, Rt as $ZodNanoID, S as _ipv6, St as $ZodE164, T as _isoDuration, Tn as flattenError, Tt as $ZodEnum, U as _regex, Un as $constructor, Ut as $ZodNumber, V as _overwrite, Vn as shallowClone, Vt as $ZodNull, W as _slugify, Wt as $ZodNumberFormat, X as _trim, Xt as $ZodReadonly, Y as _toUpperCase, Yt as $ZodPrefault, Z as _ulid, Zt as $ZodRecord, _ as _gte, _n as _safeEncodeAsync, _t as $ZodCUID2, a as _boolean, an as $ZodUnion, at as _xid, b as _int, bt as $ZodDefault, cn as _decode, ct as globalRegistry, d as _custom, dn as _encodeAsync, dt as $ZodBase64, en as $ZodTransform, et as _url, f as _e164, fn as _parse, ft as $ZodBase64URL, g as _gt, gn as _safeEncode, gt as $ZodCUID, h as _endsWith, hn as _safeDecodeAsync, ht as $ZodCIDRv6, i as _base64url, in as $ZodUUID, it as _uuidv7, j as _lt, jn as issue, jt as $ZodISODateTime, k as _length, kn as extend, kt as $ZodIPv6, l as _cuid, ln as _decodeAsync, lt as $ZodAny, m as _emoji, mn as _safeDecode, mt as $ZodCIDRv4, n as _array, nn as $ZodULID, nt as _uuidv4, o as _cidrv4, on as $ZodUnknown, p as _email, pn as _parseAsync, pt as $ZodBoolean, q as _superRefine, qt as $ZodOptional, r as _base64, rn as $ZodURL, rt as _uuidv6, s as _cidrv6, sn as $ZodXID, t as _any, tn as $ZodType, tt as _uuid, u as _cuid2, un as _encode, ut as $ZodArray, v as _guid, vn as _safeParse, vt as $ZodCatch, w as _isoDateTime, wn as $ZodError, wt as $ZodEmoji, x as _ipv4, xt as $ZodDiscriminatedUnion, y as _includes, yn as _safeParseAsync, yt as $ZodCustom, z as _null$1, zn as required, zt as $ZodNever } from "./api-CUzmQvTQ.js";
2
+ import { $ as _uppercase, $t as $ZodStringFormat, A as _lowercase, An as getEnumValues, At as $ZodISODate, B as _number, Bn as safeExtend, Bt as $ZodNonOptional, C as _isoDate, Ct as $ZodEmail, D as _jwt, Dn as clone, Dt as $ZodGUID, E as _isoTime, En as formatError, Et as $ZodExactOptional, F as _multipleOf, Fn as normalizeParams, Ft as $ZodJWT, G as _startsWith, H as _refine, Hn as $ZodEncodeError, Ht as $ZodNullable, I as _nanoid, In as omit, It as $ZodKSUID, J as _toLowerCase, Jt as $ZodPipe, K as _string, Kt as $ZodObjectJIT, L as _never, Ln as partial, Lt as $ZodLiteral, M as _lte, Mn as jsonStringifyReplacer, Mt as $ZodISODuration, N as _maxLength, Nn as merge, Nt as $ZodISOTime, O as _ksuid, On as defineLazy, Ot as $ZodIPv4, P as _minLength, Pn as mergeDefs, Pt as $ZodIntersection, Q as _unknown, Qt as $ZodString, R as _normalize, Rn as pick, Rt as $ZodNanoID, S as _ipv6, St as $ZodE164, T as _isoDuration, Tn as flattenError, Tt as $ZodEnum, U as _regex, Un as $constructor, Ut as $ZodNumber, V as _overwrite, Vn as shallowClone, Vt as $ZodNull, W as _slugify, Wt as $ZodNumberFormat, X as _trim, Xt as $ZodReadonly, Y as _toUpperCase, Yt as $ZodPrefault, Z as _ulid, Zt as $ZodRecord, _ as _gte, _n as _safeEncodeAsync, _t as $ZodCUID2, a as _boolean, an as $ZodUnion, at as _xid, b as _int, bt as $ZodDefault, cn as _decode, ct as globalRegistry, d as _custom, dn as _encodeAsync, dt as $ZodBase64, en as $ZodTransform, et as _url, f as _e164, fn as _parse, ft as $ZodBase64URL, g as _gt, gn as _safeEncode, gt as $ZodCUID, h as _endsWith, hn as _safeDecodeAsync, ht as $ZodCIDRv6, i as _base64url, in as $ZodUUID, it as _uuidv7, j as _lt, jn as issue, jt as $ZodISODateTime, k as _length, kn as extend, kt as $ZodIPv6, l as _cuid, ln as _decodeAsync, lt as $ZodAny, m as _emoji, mn as _safeDecode, mt as $ZodCIDRv4, n as _array, nn as $ZodULID, nt as _uuidv4, o as _cidrv4, on as $ZodUnknown, p as _email, pn as _parseAsync, pt as $ZodBoolean, q as _superRefine, qt as $ZodOptional, r as _base64, rn as $ZodURL, rt as _uuidv6, s as _cidrv6, sn as $ZodXID, t as _any, tn as $ZodType, tt as _uuid, u as _cuid2, un as _encode, ut as $ZodArray, v as _guid, vn as _safeParse, vt as $ZodCatch, w as _isoDateTime, wn as $ZodError, wt as $ZodEmoji, x as _ipv4, xt as $ZodDiscriminatedUnion, y as _includes, yn as _safeParseAsync, yt as $ZodCustom, z as _null$1, zn as required, zt as $ZodNever } from "./api-B5mo8tpE.js";
3
3
  //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
4
4
  function initializeContext(params) {
5
5
  let target = params?.target ?? "draft-2020-12";
@@ -1,5 +1,4 @@
1
- import { n as __exportAll } from "./chunk-DBEY4PJZ.js";
2
- import { $ as shrSH, A as createHasher$1, B as add3L, C as abytes, D as aoutput, E as anumber, H as add4L, I as toBytes, N as randomBytes, O as clean, P as rotr, Q as rotrSL, R as add, S as Hash, T as ahash, U as add5H, V as add4H, W as add5L, X as rotrBL, Y as rotrBH, Z as rotrSH, _ as numberToBytesBE, a as bitMask, b as utf8ToBytes, c as bytesToNumberLE, d as ensureBytes, et as shrSL, g as memoized, h as isBytes, i as bitLen, j as createView, k as concatBytes$1, l as concatBytes, m as inRange, n as abool, o as bytesToHex, p as hexToBytes, r as abytes$1, s as bytesToNumberBE, t as aInRange, tt as split, u as createHmacDrbg, v as numberToBytesLE, w as aexists, x as validateObject, y as numberToHexUnpadded, z as add3H } from "./utils-BYjkXZDF.js";
1
+ import { $ as shrSH, A as createHasher$1, B as add3L, C as abytes, D as aoutput, E as anumber, H as add4L, I as toBytes, N as randomBytes, O as clean, P as rotr, Q as rotrSL, R as add, S as Hash, T as ahash, U as add5H, V as add4H, W as add5L, X as rotrBL, Y as rotrBH, Z as rotrSH, _ as numberToBytesBE, a as bitMask, b as utf8ToBytes, c as bytesToNumberLE, d as ensureBytes, et as shrSL, g as memoized, h as isBytes, i as bitLen, j as createView, k as concatBytes$1, l as concatBytes, m as inRange, n as abool, o as bytesToHex, p as hexToBytes, r as abytes$1, s as bytesToNumberBE, t as aInRange, tt as split, u as createHmacDrbg, v as numberToBytesLE, w as aexists, x as validateObject, y as numberToHexUnpadded, z as add3H } from "./utils-B1qOlJzL.js";
3
2
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
4
3
  /**
5
4
  * Internal Merkle-Damgard hash utils.
@@ -2394,10 +2393,6 @@ function createHasher(Point, mapToCurve, defaults) {
2394
2393
  * @module
2395
2394
  */
2396
2395
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2397
- var secp256k1_exports = /* @__PURE__ */ __exportAll({
2398
- secp256k1: () => secp256k1,
2399
- secp256k1_hasher: () => secp256k1_hasher
2400
- });
2401
2396
  const secp256k1P = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f");
2402
2397
  const secp256k1N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
2403
2398
  const _0n = BigInt(0);
@@ -2522,4 +2517,4 @@ const secp256k1_hasher = createHasher(secp256k1.ProjectivePoint, (scalars) => {
2522
2517
  secp256k1_hasher.hashToCurve;
2523
2518
  secp256k1_hasher.encodeToCurve;
2524
2519
  //#endregion
2525
- export { mapToCurveSimpleSWU as a, sha256 as c, createCurve as i, sha384 as l, secp256k1_exports as n, Field as o, createHasher as r, hmac as s, secp256k1 as t, sha512 as u };
2520
+ export { mapToCurveSimpleSWU as a, sha256 as c, createCurve as i, sha384 as l, secp256k1_hasher as n, Field as o, createHasher as r, hmac as s, secp256k1 as t, sha512 as u };
@@ -0,0 +1,2 @@
1
+ import { t as secp256k1 } from "./secp256k1-Bp7LcNvI.js";
2
+ export { secp256k1 };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { E as anumber, N as randomBytes, _ as numberToBytesBE, a as bitMask, b as utf8ToBytes, c as bytesToNumberLE, d as ensureBytes, g as memoized, h as isBytes, i as bitLen, k as concatBytes$1, l as concatBytes, m as inRange, n as abool, o as bytesToHex, p as hexToBytes, r as abytes, s as bytesToNumberBE, t as aInRange, u as createHmacDrbg, v as numberToBytesLE, x as validateObject, y as numberToHexUnpadded } from "./utils-SeGHMW9O.js";
3
- import { n as sha256, t as hmac } from "./hmac-59IlS_by.js";
2
+ import { W as anumber, Z as randomBytes, _ as numberToBytesBE, a as bitMask, b as utf8ToBytes, c as bytesToNumberLE, d as ensureBytes, g as memoized, h as isBytes, i as bitLen, l as concatBytes, m as inRange, n as abool, o as bytesToHex, p as hexToBytes, q as concatBytes$1, r as abytes, s as bytesToNumberBE, t as aInRange, u as createHmacDrbg, v as numberToBytesLE, x as validateObject, y as numberToHexUnpadded } from "./utils-psFtUKLa.js";
3
+ import { i as hmac, t as sha256 } from "./sha2-XLg3s2a9.js";
4
4
  //#region node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js
5
5
  /**
6
6
  * Utils for modular division and finite fields.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { t as secp256k1 } from "./secp256k1-BwSAYyif.js";
3
+ export { secp256k1 };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { a as mergeCapabilities, c as safeParse, i as Protocol, n as assertToolsCallTaskCapability, o as getObjectShape, r as AjvJsonSchemaValidator, s as isZ4Schema, t as assertClientRequestTaskCapability } from "./helpers-ChcFbdC0.js";
3
- import { C as CreateTaskResultSchema, F as ErrorCode, N as EmptyResultSchema, S as CreateMessageResultWithToolsSchema, Y as InitializedNotificationSchema, an as SUPPORTED_PROTOCOL_VERSIONS, c as CallToolResultSchema, dt as ListRootsResultSchema, fn as SetLevelRequestSchema, gt as LoggingLevelSchema, k as ElicitResultSchema, q as InitializeRequestSchema, s as CallToolRequestSchema, tt as LATEST_PROTOCOL_VERSION, x as CreateMessageResultSchema, yt as McpError } from "./types-BmyZIQ8G.js";
2
+ import { a as mergeCapabilities, c as safeParse, i as Protocol, n as assertToolsCallTaskCapability, o as getObjectShape, r as AjvJsonSchemaValidator, s as isZ4Schema, t as assertClientRequestTaskCapability } from "./helpers-DebIs_21.js";
3
+ import { C as CreateTaskResultSchema, F as ErrorCode, N as EmptyResultSchema, S as CreateMessageResultWithToolsSchema, Y as InitializedNotificationSchema, an as SUPPORTED_PROTOCOL_VERSIONS, c as CallToolResultSchema, dt as ListRootsResultSchema, fn as SetLevelRequestSchema, gt as LoggingLevelSchema, k as ElicitResultSchema, q as InitializeRequestSchema, s as CallToolRequestSchema, tt as LATEST_PROTOCOL_VERSION, x as CreateMessageResultSchema, yt as McpError } from "./types-BQ17ZF7g.js";
4
4
  //#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
5
5
  /**
6
6
  * Experimental server task features for MCP SDK.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { t as runSetup } from "./setup-C10O8N36.js";
3
+ export { runSetup };
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as __toESM, t as __commonJSMin } from "./chunk-DjEMn6fM.js";
3
- import { c as buildCommand, n as deriveSolanaKeypair, o as require_picocolors, r as generateMnemonic, t as deriveEvmKeypair } from "./derive-DNUl8LU9.js";
4
- import { c as getWalletPath, d as loadWalletFile, f as saveConfig, i as getConfigDirShort, l as isConfigured, m as saveWalletFile } from "./config-rvKA3SYT.js";
3
+ import { c as isConfigured, d as saveConfig, g as generateMnemonic, i as getConfigDirShort, n as createWalletFile, p as saveWalletFile, s as getWalletPath, u as loadWalletFile, x as buildCommand, y as require_picocolors } from "./config-cyNyKO4-.js";
5
4
  import "node:path";
6
5
  import "node:fs";
7
6
  import { stripVTControlCharacters, styleText } from "node:util";
8
- import N, { stdin, stdout } from "node:process";
7
+ import process$1, { stdin, stdout } from "node:process";
9
8
  import "node:readline";
10
9
  import ot from "node:readline";
11
10
  import "node:tty";
@@ -494,7 +493,7 @@ var $t = class extends B {
494
493
  //#endregion
495
494
  //#region node_modules/.pnpm/@clack+prompts@1.1.0/node_modules/@clack/prompts/dist/index.mjs
496
495
  function pt() {
497
- return N.platform !== "win32" ? N.env.TERM !== "linux" : !!N.env.CI || !!N.env.WT_SESSION || !!N.env.TERMINUS_SUBLIME || N.env.ConEmuTask === "{cmd::Cmder}" || N.env.TERM_PROGRAM === "Terminus-Sublime" || N.env.TERM_PROGRAM === "vscode" || N.env.TERM === "xterm-256color" || N.env.TERM === "alacritty" || N.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
496
+ return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
498
497
  }
499
498
  const ee = pt(), I = (e, r) => ee ? e : r, Re = I("◆", "*"), $e = I("■", "x"), de = I("▲", "x"), V = I("◇", "o"), he = I("┌", "T"), h = I("│", "|"), x = I("└", "—");
500
499
  I("┐", "T");
@@ -946,21 +945,13 @@ async function runSetup(opts) {
946
945
  }
947
946
  mnemonic = opts.importMnemonic.trim();
948
947
  } else mnemonic = generateMnemonic();
949
- const evm = deriveEvmKeypair(mnemonic);
950
- const sol = deriveSolanaKeypair(mnemonic);
951
- saveWalletFile({
952
- version: 1,
953
- mnemonic,
954
- addresses: {
955
- evm: evm.address,
956
- solana: sol.address
957
- }
958
- });
948
+ const wallet = createWalletFile(mnemonic);
949
+ saveWalletFile(wallet);
959
950
  saveConfig({ preferredProtocol: "x402" });
960
951
  process.stdout.write(`${JSON.stringify({
961
- base: evm.address,
962
- tempo: evm.address,
963
- solana: sol.address
952
+ base: wallet.addresses.evm,
953
+ tempo: wallet.addresses.evm,
954
+ solana: wallet.addresses.solana
964
955
  })}\n`);
965
956
  return;
966
957
  }
@@ -998,19 +989,11 @@ async function runSetup(opts) {
998
989
  }
999
990
  mnemonic = input.trim();
1000
991
  }
1001
- const evm = deriveEvmKeypair(mnemonic);
1002
- const sol = deriveSolanaKeypair(mnemonic);
1003
- R.success(`Base address: ${import_picocolors.default.green(evm.address)}`);
1004
- R.success(`Tempo address: ${import_picocolors.default.green(evm.address)}`);
1005
- R.success(`Solana address: ${import_picocolors.default.green(sol.address)}`);
1006
- saveWalletFile({
1007
- version: 1,
1008
- mnemonic,
1009
- addresses: {
1010
- evm: evm.address,
1011
- solana: sol.address
1012
- }
1013
- });
992
+ const wallet = createWalletFile(mnemonic);
993
+ R.success(`Base address: ${import_picocolors.default.green(wallet.addresses.evm)}`);
994
+ R.success(`Tempo address: ${import_picocolors.default.green(wallet.addresses.evm)}`);
995
+ R.success(`Solana address: ${import_picocolors.default.green(wallet.addresses.solana)}`);
996
+ saveWalletFile(wallet);
1014
997
  const protocol = await Jt({
1015
998
  message: "Preferred payment protocol?",
1016
999
  options: [{
@@ -1054,10 +1037,10 @@ async function runSetup(opts) {
1054
1037
  saveConfig(config);
1055
1038
  R.info(`Config directory: ${import_picocolors.default.dim(getConfigDirShort())}`);
1056
1039
  R.step("Fund your wallets to start using x402 resources:");
1057
- R.message(` Solana (USDC): Send USDC to ${import_picocolors.default.cyan(sol.address)}`);
1058
- R.message(` Base (USDC): Send USDC to ${import_picocolors.default.cyan(evm.address)}`);
1040
+ R.message(` Solana (USDC): Send USDC to ${import_picocolors.default.cyan(wallet.addresses.solana)}`);
1041
+ R.message(` Base (USDC): Send USDC to ${import_picocolors.default.cyan(wallet.addresses.evm)}`);
1059
1042
  R.step("Try your first request:");
1060
- R.message(` ${import_picocolors.default.cyan(`$ npx x402-proxy -X POST -d '{"ref":"CoinbaseDev"}' https://surf.cascade.fyi/api/v1/twitter/user`)}`);
1043
+ R.message(` ${import_picocolors.default.cyan(`$ npx x402-proxy https://surf.cascade.fyi/api/v1/twitter/user/openclaw`)}`);
1061
1044
  Gt(import_picocolors.default.green("Setup complete!"));
1062
1045
  }
1063
1046
  const setupCommand = buildCommand({
@@ -1,5 +1,84 @@
1
1
  #!/usr/bin/env node
2
- import { $ as shrSH, A as createHasher, B as add3L, C as abytes, D as aoutput, H as add4L, I as toBytes, O as clean, P as rotr, Q as rotrSL, R as add, S as Hash, T as ahash, U as add5H, V as add4H, W as add5L, X as rotrBL, Y as rotrBH, Z as rotrSH, et as shrSL, j as createView, tt as split, w as aexists, z as add3H } from "./utils-SeGHMW9O.js";
2
+ import { B as Hash, C as add3H, D as add5H, E as add4L, F as rotrSH, G as aoutput, H as aexists, I as rotrSL, J as createHasher, K as clean, L as shrSH, N as rotrBH, O as add5L, P as rotrBL, Q as rotr, R as shrSL, S as add, T as add4H, U as ahash, V as abytes, Y as createView, et as toBytes, w as add3L, z as split } from "./utils-psFtUKLa.js";
3
+ //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
4
+ /**
5
+ * HMAC: RFC2104 message authentication code.
6
+ * @module
7
+ */
8
+ var HMAC = class extends Hash {
9
+ constructor(hash, _key) {
10
+ super();
11
+ this.finished = false;
12
+ this.destroyed = false;
13
+ ahash(hash);
14
+ const key = toBytes(_key);
15
+ this.iHash = hash.create();
16
+ if (typeof this.iHash.update !== "function") throw new Error("Expected instance of class which extends utils.Hash");
17
+ this.blockLen = this.iHash.blockLen;
18
+ this.outputLen = this.iHash.outputLen;
19
+ const blockLen = this.blockLen;
20
+ const pad = new Uint8Array(blockLen);
21
+ pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
22
+ for (let i = 0; i < pad.length; i++) pad[i] ^= 54;
23
+ this.iHash.update(pad);
24
+ this.oHash = hash.create();
25
+ for (let i = 0; i < pad.length; i++) pad[i] ^= 106;
26
+ this.oHash.update(pad);
27
+ clean(pad);
28
+ }
29
+ update(buf) {
30
+ aexists(this);
31
+ this.iHash.update(buf);
32
+ return this;
33
+ }
34
+ digestInto(out) {
35
+ aexists(this);
36
+ abytes(out, this.outputLen);
37
+ this.finished = true;
38
+ this.iHash.digestInto(out);
39
+ this.oHash.update(out);
40
+ this.oHash.digestInto(out);
41
+ this.destroy();
42
+ }
43
+ digest() {
44
+ const out = new Uint8Array(this.oHash.outputLen);
45
+ this.digestInto(out);
46
+ return out;
47
+ }
48
+ _cloneInto(to) {
49
+ to || (to = Object.create(Object.getPrototypeOf(this), {}));
50
+ const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
51
+ to = to;
52
+ to.finished = finished;
53
+ to.destroyed = destroyed;
54
+ to.blockLen = blockLen;
55
+ to.outputLen = outputLen;
56
+ to.oHash = oHash._cloneInto(to.oHash);
57
+ to.iHash = iHash._cloneInto(to.iHash);
58
+ return to;
59
+ }
60
+ clone() {
61
+ return this._cloneInto();
62
+ }
63
+ destroy() {
64
+ this.destroyed = true;
65
+ this.oHash.destroy();
66
+ this.iHash.destroy();
67
+ }
68
+ };
69
+ /**
70
+ * HMAC: RFC2104 message authentication code.
71
+ * @param hash - function that would be used e.g. sha256
72
+ * @param key - message key
73
+ * @param message - message data
74
+ * @example
75
+ * import { hmac } from '@noble/hashes/hmac';
76
+ * import { sha256 } from '@noble/hashes/sha2';
77
+ * const mac1 = hmac(sha256, 'key', 'message');
78
+ */
79
+ const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
80
+ hmac.create = (hash, key) => new HMAC(hash, key);
81
+ //#endregion
3
82
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
4
83
  /**
5
84
  * Internal Merkle-Damgard hash utils.
@@ -566,83 +645,4 @@ const sha512 = /* @__PURE__ */ createHasher(() => new SHA512());
566
645
  /** SHA2-384 hash function from RFC 4634. */
567
646
  const sha384 = /* @__PURE__ */ createHasher(() => new SHA384());
568
647
  //#endregion
569
- //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
570
- /**
571
- * HMAC: RFC2104 message authentication code.
572
- * @module
573
- */
574
- var HMAC = class extends Hash {
575
- constructor(hash, _key) {
576
- super();
577
- this.finished = false;
578
- this.destroyed = false;
579
- ahash(hash);
580
- const key = toBytes(_key);
581
- this.iHash = hash.create();
582
- if (typeof this.iHash.update !== "function") throw new Error("Expected instance of class which extends utils.Hash");
583
- this.blockLen = this.iHash.blockLen;
584
- this.outputLen = this.iHash.outputLen;
585
- const blockLen = this.blockLen;
586
- const pad = new Uint8Array(blockLen);
587
- pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
588
- for (let i = 0; i < pad.length; i++) pad[i] ^= 54;
589
- this.iHash.update(pad);
590
- this.oHash = hash.create();
591
- for (let i = 0; i < pad.length; i++) pad[i] ^= 106;
592
- this.oHash.update(pad);
593
- clean(pad);
594
- }
595
- update(buf) {
596
- aexists(this);
597
- this.iHash.update(buf);
598
- return this;
599
- }
600
- digestInto(out) {
601
- aexists(this);
602
- abytes(out, this.outputLen);
603
- this.finished = true;
604
- this.iHash.digestInto(out);
605
- this.oHash.update(out);
606
- this.oHash.digestInto(out);
607
- this.destroy();
608
- }
609
- digest() {
610
- const out = new Uint8Array(this.oHash.outputLen);
611
- this.digestInto(out);
612
- return out;
613
- }
614
- _cloneInto(to) {
615
- to || (to = Object.create(Object.getPrototypeOf(this), {}));
616
- const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
617
- to = to;
618
- to.finished = finished;
619
- to.destroyed = destroyed;
620
- to.blockLen = blockLen;
621
- to.outputLen = outputLen;
622
- to.oHash = oHash._cloneInto(to.oHash);
623
- to.iHash = iHash._cloneInto(to.iHash);
624
- return to;
625
- }
626
- clone() {
627
- return this._cloneInto();
628
- }
629
- destroy() {
630
- this.destroyed = true;
631
- this.oHash.destroy();
632
- this.iHash.destroy();
633
- }
634
- };
635
- /**
636
- * HMAC: RFC2104 message authentication code.
637
- * @param hash - function that would be used e.g. sha256
638
- * @param key - message key
639
- * @param message - message data
640
- * @example
641
- * import { hmac } from '@noble/hashes/hmac';
642
- * import { sha256 } from '@noble/hashes/sha2';
643
- * const mac1 = hmac(sha256, 'key', 'message');
644
- */
645
- const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
646
- hmac.create = (hash, key) => new HMAC(hash, key);
647
- //#endregion
648
- export { sha512 as i, sha256 as n, sha384 as r, hmac as t };
648
+ export { hmac as i, sha384 as n, sha512 as r, sha256 as t };
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as sha256$1 } from "./hmac-59IlS_by.js";
2
+ import { t as sha256$1 } from "./sha2-XLg3s2a9.js";
3
3
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
4
4
  /**
5
5
  * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
@@ -1,4 +1,4 @@
1
- import { A as createHasher, C as abytes, D as aoutput, E as anumber, F as swap32IfBE, G as rotlBH, I as toBytes, J as rotlSL, K as rotlBL, L as u32, M as createXOFer, O as clean, S as Hash, q as rotlSH, tt as split, w as aexists } from "./utils-BYjkXZDF.js";
1
+ import { A as createHasher, C as abytes, D as aoutput, E as anumber, F as swap32IfBE, G as rotlBH, I as toBytes, J as rotlSL, K as rotlBL, L as u32, M as createXOFer, O as clean, S as Hash, q as rotlSH, tt as split, w as aexists } from "./utils-B1qOlJzL.js";
2
2
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
3
3
  /**
4
4
  * SHA3 (keccak) hash function, based on a new "Sponge function" design.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as createHasher, C as abytes, D as aoutput, E as anumber, F as swap32IfBE, G as rotlBH, I as toBytes, J as rotlSL, K as rotlBL, L as u32, M as createXOFer, O as clean, S as Hash, q as rotlSH, tt as split, w as aexists } from "./utils-SeGHMW9O.js";
2
+ import { $ as swap32IfBE, A as rotlBL, B as Hash, G as aoutput, H as aexists, J as createHasher, K as clean, M as rotlSL, V as abytes, W as anumber, X as createXOFer, et as toBytes, j as rotlSH, k as rotlBH, tt as u32, z as split } from "./utils-psFtUKLa.js";
3
3
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
4
4
  /**
5
5
  * SHA3 (keccak) hash function, based on a new "Sponge function" design.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { a as normalizeHeaders, i as createFetchWithInit, n as auth, o as createParser, r as extractWWWAuthenticateParams, t as UnauthorizedError } from "./auth-J9VuNMoG.js";
3
- import { Z as JSONRPCMessageSchema } from "./types-BmyZIQ8G.js";
2
+ import { a as normalizeHeaders, i as createFetchWithInit, n as auth, o as createParser, r as extractWWWAuthenticateParams, t as UnauthorizedError } from "./auth-CaCZiNCk.js";
3
+ import { Z as JSONRPCMessageSchema } from "./types-BQ17ZF7g.js";
4
4
  //#region node_modules/.pnpm/eventsource@3.0.7/node_modules/eventsource/dist/index.js
5
5
  var ErrorEvent = class extends Event {
6
6
  /**
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { t as displayStatus } from "./status-DjZdIeES.js";
3
+ export { displayStatus };
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as __toESM } from "./chunk-DjEMn6fM.js";
3
- import { c as buildCommand, o as require_picocolors } from "./derive-DNUl8LU9.js";
4
- import { c as resolveWallet, f as formatAmount, h as readHistory, m as formatUsdcValue, n as fetchAllBalances, p as formatTxLine, t as balanceLine, u as calcSpend, v as dim } from "./wallet-C4RiduwM.js";
5
- import { i as getConfigDirShort, o as getHistoryPath, u as loadConfig } from "./config-rvKA3SYT.js";
3
+ import { i as getConfigDirShort, l as loadConfig, o as getHistoryPath, x as buildCommand, y as require_picocolors } from "./config-cyNyKO4-.js";
4
+ import { c as resolveWallet, f as formatAmount, h as readHistory, m as formatUsdcValue, n as fetchAllBalances, p as formatTxLine, t as balanceLine, u as calcSpend, v as dim } from "./wallet-CUCoLEqs.js";
6
5
  //#region packages/x402-proxy/src/commands/status.ts
7
6
  var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
8
7
  async function displayStatus() {
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { Z as JSONRPCMessageSchema } from "./types-BmyZIQ8G.js";
3
- import N from "node:process";
2
+ import { Z as JSONRPCMessageSchema } from "./types-BQ17ZF7g.js";
3
+ import process from "node:process";
4
4
  //#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
5
5
  /**
6
6
  * Buffers a continuous stdio stream into discrete JSON-RPC messages.
@@ -35,7 +35,7 @@ function serializeMessage(message) {
35
35
  * This transport is only available in Node.js environments.
36
36
  */
37
37
  var StdioServerTransport = class {
38
- constructor(_stdin = N.stdin, _stdout = N.stdout) {
38
+ constructor(_stdin = process.stdin, _stdout = process.stdout) {
39
39
  this._stdin = _stdin;
40
40
  this._stdout = _stdout;
41
41
  this._readBuffer = new ReadBuffer();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { a as normalizeHeaders, i as createFetchWithInit, n as auth, o as createParser, r as extractWWWAuthenticateParams, t as UnauthorizedError } from "./auth-J9VuNMoG.js";
3
- import { Hn as isJSONRPCRequest, Un as isJSONRPCResultResponse, Z as JSONRPCMessageSchema, zn as isInitializedNotification } from "./types-BmyZIQ8G.js";
2
+ import { a as normalizeHeaders, i as createFetchWithInit, n as auth, o as createParser, r as extractWWWAuthenticateParams, t as UnauthorizedError } from "./auth-CaCZiNCk.js";
3
+ import { Hn as isJSONRPCRequest, Un as isJSONRPCResultResponse, Z as JSONRPCMessageSchema, zn as isInitializedNotification } from "./types-BQ17ZF7g.js";
4
4
  //#region node_modules/.pnpm/eventsource-parser@3.0.6/node_modules/eventsource-parser/dist/stream.js
5
5
  var EventSourceParserStream = class extends TransformStream {
6
6
  constructor({ onError, onRetry, onComment } = {}) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { _ as string, a as array, c as discriminatedUnion, d as looseObject, f as number, g as record, h as preprocess, l as intersection, m as optional, n as _enum, o as boolean, p as object, r as _null, s as custom, u as literal, v as union, x as datetime, y as unknown } from "./schemas-BxMFYNbH.js";
2
+ import { _ as string, a as array, c as discriminatedUnion, d as looseObject, f as number, g as record, h as preprocess, l as intersection, m as optional, n as _enum, o as boolean, p as object, r as _null, s as custom, u as literal, v as union, x as datetime, y as unknown } from "./schemas-DzZjufD1.js";
3
3
  //#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
4
4
  const LATEST_PROTOCOL_VERSION = "2025-11-25";
5
5
  const SUPPORTED_PROTOCOL_VERSIONS = [
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { An as ToolListChangedNotificationSchema, Jt as ResourceListChangedNotificationSchema, Vt as ReadResourceRequestSchema, ct as ListResourcesRequestSchema, mt as ListToolsRequestSchema, s as CallToolRequestSchema } from "./types-BmyZIQ8G.js";
2
+ import { An as ToolListChangedNotificationSchema, Jt as ResourceListChangedNotificationSchema, Vt as ReadResourceRequestSchema, ct as ListResourcesRequestSchema, mt as ListToolsRequestSchema, s as CallToolRequestSchema } from "./types-BQ17ZF7g.js";
3
3
  export { CallToolRequestSchema, ListResourcesRequestSchema, ListToolsRequestSchema, ReadResourceRequestSchema, ResourceListChangedNotificationSchema, ToolListChangedNotificationSchema };
@@ -1,57 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  import * as nc from "node:crypto";
3
- //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
4
- /**
5
- * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
6
- * @todo re-check https://issues.chromium.org/issues/42212588
7
- * @module
8
- */
9
- const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
10
- const _32n = /* @__PURE__ */ BigInt(32);
11
- function fromBig(n, le = false) {
12
- if (le) return {
13
- h: Number(n & U32_MASK64),
14
- l: Number(n >> _32n & U32_MASK64)
15
- };
16
- return {
17
- h: Number(n >> _32n & U32_MASK64) | 0,
18
- l: Number(n & U32_MASK64) | 0
19
- };
20
- }
21
- function split(lst, le = false) {
22
- const len = lst.length;
23
- let Ah = new Uint32Array(len);
24
- let Al = new Uint32Array(len);
25
- for (let i = 0; i < len; i++) {
26
- const { h, l } = fromBig(lst[i], le);
27
- [Ah[i], Al[i]] = [h, l];
28
- }
29
- return [Ah, Al];
30
- }
31
- const shrSH = (h, _l, s) => h >>> s;
32
- const shrSL = (h, l, s) => h << 32 - s | l >>> s;
33
- const rotrSH = (h, l, s) => h >>> s | l << 32 - s;
34
- const rotrSL = (h, l, s) => h << 32 - s | l >>> s;
35
- const rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
36
- const rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
37
- const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
38
- const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
39
- const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
40
- const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
41
- function add(Ah, Al, Bh, Bl) {
42
- const l = (Al >>> 0) + (Bl >>> 0);
43
- return {
44
- h: Ah + Bh + (l / 2 ** 32 | 0) | 0,
45
- l: l | 0
46
- };
47
- }
48
- const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
49
- const add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
50
- const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
51
- const add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
52
- const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
53
- const add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
54
- //#endregion
55
3
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/cryptoNode.js
56
4
  /**
57
5
  * Internal webcrypto alias.
@@ -187,6 +135,58 @@ function randomBytes(bytesLength = 32) {
187
135
  throw new Error("crypto.getRandomValues must be defined");
188
136
  }
189
137
  //#endregion
138
+ //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
139
+ /**
140
+ * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
141
+ * @todo re-check https://issues.chromium.org/issues/42212588
142
+ * @module
143
+ */
144
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
145
+ const _32n = /* @__PURE__ */ BigInt(32);
146
+ function fromBig(n, le = false) {
147
+ if (le) return {
148
+ h: Number(n & U32_MASK64),
149
+ l: Number(n >> _32n & U32_MASK64)
150
+ };
151
+ return {
152
+ h: Number(n >> _32n & U32_MASK64) | 0,
153
+ l: Number(n & U32_MASK64) | 0
154
+ };
155
+ }
156
+ function split(lst, le = false) {
157
+ const len = lst.length;
158
+ let Ah = new Uint32Array(len);
159
+ let Al = new Uint32Array(len);
160
+ for (let i = 0; i < len; i++) {
161
+ const { h, l } = fromBig(lst[i], le);
162
+ [Ah[i], Al[i]] = [h, l];
163
+ }
164
+ return [Ah, Al];
165
+ }
166
+ const shrSH = (h, _l, s) => h >>> s;
167
+ const shrSL = (h, l, s) => h << 32 - s | l >>> s;
168
+ const rotrSH = (h, l, s) => h >>> s | l << 32 - s;
169
+ const rotrSL = (h, l, s) => h << 32 - s | l >>> s;
170
+ const rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
171
+ const rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
172
+ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
173
+ const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
174
+ const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
175
+ const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
176
+ function add(Ah, Al, Bh, Bl) {
177
+ const l = (Al >>> 0) + (Bl >>> 0);
178
+ return {
179
+ h: Ah + Bh + (l / 2 ** 32 | 0) | 0,
180
+ l: l | 0
181
+ };
182
+ }
183
+ const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
184
+ const add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
185
+ const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
186
+ const add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
187
+ const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
188
+ const add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
189
+ //#endregion
190
190
  //#region node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
191
191
  /**
192
192
  * Hex, bytes and number utilities.
@@ -442,4 +442,4 @@ function memoized(fn) {
442
442
  };
443
443
  }
444
444
  //#endregion
445
- export { shrSH as $, createHasher as A, add3L as B, abytes$1 as C, aoutput as D, anumber as E, swap32IfBE as F, rotlBH as G, add4L as H, toBytes as I, rotlSL as J, rotlBL as K, u32 as L, createXOFer as M, randomBytes as N, clean as O, rotr as P, rotrSL as Q, add as R, Hash as S, ahash as T, add5H as U, add4H as V, add5L as W, rotrBL as X, rotrBH as Y, rotrSH as Z, numberToBytesBE as _, bitMask as a, utf8ToBytes as b, bytesToNumberLE as c, ensureBytes as d, shrSL as et, equalBytes as f, memoized as g, isBytes as h, bitLen as i, createView as j, concatBytes$1 as k, concatBytes as l, inRange as m, abool as n, bytesToHex as o, hexToBytes as p, rotlSH as q, abytes as r, bytesToNumberBE as s, aInRange as t, split as tt, createHmacDrbg as u, numberToBytesLE as v, aexists as w, validateObject as x, numberToHexUnpadded as y, add3H as z };
445
+ export { swap32IfBE as $, rotlBL as A, Hash as B, add3H as C, add5H as D, add4L as E, rotrSH as F, aoutput as G, aexists as H, rotrSL as I, createHasher as J, clean as K, shrSH as L, rotlSL as M, rotrBH as N, add5L as O, rotrBL as P, rotr as Q, shrSL as R, add as S, add4H as T, ahash as U, abytes$1 as V, anumber as W, createXOFer as X, createView as Y, randomBytes as Z, numberToBytesBE as _, bitMask as a, utf8ToBytes as b, bytesToNumberLE as c, ensureBytes as d, toBytes as et, equalBytes as f, memoized as g, isBytes as h, bitLen as i, rotlSH as j, rotlBH as k, concatBytes as l, inRange as m, abool as n, bytesToHex as o, hexToBytes as p, concatBytes$1 as q, abytes as r, bytesToNumberBE as s, aInRange as t, u32 as tt, createHmacDrbg as u, numberToBytesLE as v, add3L as w, validateObject as x, numberToHexUnpadded as y, split as z };
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { n as fetchAllBalances } from "./wallet-CUCoLEqs.js";
3
+ export { fetchAllBalances };