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,9 +0,0 @@
1
- import { H as isAddress, K as InvalidAddressError } from "./chain-DwfP5RGZ.js";
2
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
3
- function isAddressEqual(a, b) {
4
- if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
5
- if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
6
- return a.toLowerCase() === b.toLowerCase();
7
- }
8
- //#endregion
9
- export { isAddressEqual as t };
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import { G as isAddress, Y as InvalidAddressError } from "./chain-CafcHffR.js";
3
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
4
- function isAddressEqual(a, b) {
5
- if (!isAddress(a, { strict: false })) throw new InvalidAddressError({ address: a });
6
- if (!isAddress(b, { strict: false })) throw new InvalidAddressError({ address: b });
7
- return a.toLowerCase() === b.toLowerCase();
8
- }
9
- //#endregion
10
- export { isAddressEqual as t };
@@ -1,49 +0,0 @@
1
- #!/usr/bin/env node
2
- import { Mt as BaseError } from "./chain-CafcHffR.js";
3
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
4
- var InvalidDecimalNumberError = class extends BaseError {
5
- constructor({ value }) {
6
- super(`Number \`${value}\` is not a valid decimal number.`, { name: "InvalidDecimalNumberError" });
7
- }
8
- };
9
- //#endregion
10
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
11
- /**
12
- * Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
13
- *
14
- * - Docs: https://viem.sh/docs/utilities/parseUnits
15
- *
16
- * @example
17
- * import { parseUnits } from 'viem'
18
- *
19
- * parseUnits('420', 9)
20
- * // 420000000000n
21
- */
22
- function parseUnits(value, decimals) {
23
- if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value)) throw new InvalidDecimalNumberError({ value });
24
- let [integer, fraction = "0"] = value.split(".");
25
- const negative = integer.startsWith("-");
26
- if (negative) integer = integer.slice(1);
27
- fraction = fraction.replace(/(0+)$/, "");
28
- if (decimals === 0) {
29
- if (Math.round(Number(`.${fraction}`)) === 1) integer = `${BigInt(integer) + 1n}`;
30
- fraction = "";
31
- } else if (fraction.length > decimals) {
32
- const [left, unit, right] = [
33
- fraction.slice(0, decimals - 1),
34
- fraction.slice(decimals - 1, decimals),
35
- fraction.slice(decimals)
36
- ];
37
- const rounded = Math.round(Number(`${unit}.${right}`));
38
- if (rounded > 9) fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
39
- else fraction = `${left}${rounded}`;
40
- if (fraction.length > decimals) {
41
- fraction = fraction.slice(1);
42
- integer = `${BigInt(integer) + 1n}`;
43
- }
44
- fraction = fraction.slice(0, decimals);
45
- } else fraction = fraction.padEnd(decimals, "0");
46
- return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
47
- }
48
- //#endregion
49
- export { parseUnits as t };
@@ -1,48 +0,0 @@
1
- import { Dt as BaseError } from "./chain-DwfP5RGZ.js";
2
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
3
- var InvalidDecimalNumberError = class extends BaseError {
4
- constructor({ value }) {
5
- super(`Number \`${value}\` is not a valid decimal number.`, { name: "InvalidDecimalNumberError" });
6
- }
7
- };
8
- //#endregion
9
- //#region node_modules/.pnpm/viem@2.47.6_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
10
- /**
11
- * Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
12
- *
13
- * - Docs: https://viem.sh/docs/utilities/parseUnits
14
- *
15
- * @example
16
- * import { parseUnits } from 'viem'
17
- *
18
- * parseUnits('420', 9)
19
- * // 420000000000n
20
- */
21
- function parseUnits(value, decimals) {
22
- if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value)) throw new InvalidDecimalNumberError({ value });
23
- let [integer, fraction = "0"] = value.split(".");
24
- const negative = integer.startsWith("-");
25
- if (negative) integer = integer.slice(1);
26
- fraction = fraction.replace(/(0+)$/, "");
27
- if (decimals === 0) {
28
- if (Math.round(Number(`.${fraction}`)) === 1) integer = `${BigInt(integer) + 1n}`;
29
- fraction = "";
30
- } else if (fraction.length > decimals) {
31
- const [left, unit, right] = [
32
- fraction.slice(0, decimals - 1),
33
- fraction.slice(decimals - 1, decimals),
34
- fraction.slice(decimals)
35
- ];
36
- const rounded = Math.round(Number(`${unit}.${right}`));
37
- if (rounded > 9) fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
38
- else fraction = `${left}${rounded}`;
39
- if (fraction.length > decimals) {
40
- fraction = fraction.slice(1);
41
- integer = `${BigInt(integer) + 1n}`;
42
- }
43
- fraction = fraction.slice(0, decimals);
44
- } else fraction = fraction.padEnd(decimals, "0");
45
- return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
46
- }
47
- //#endregion
48
- export { parseUnits as t };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as secp256k1 } from "./secp256k1-BjenrLl5.js";
3
- export { secp256k1 };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as runSetup } from "./setup-BY4J49Lv.js";
3
- export { runSetup };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as displayStatus } from "./status-CD_fCzGf.js";
3
- export { displayStatus };
@@ -1,17 +0,0 @@
1
- import { n as __exportAll } from "./chunk-DBEY4PJZ.js";
2
- import { d as Voucher_exports, i as Receipt_exports, l as Channel_exports, o as Chain_exports, r as ChannelStore_exports, t as Sse_exports } from "./Sse-C-KDPYh0.js";
3
- //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/Types.js
4
- var Types_exports = /* @__PURE__ */ __exportAll({});
5
- //#endregion
6
- //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/index.js
7
- var session_exports = /* @__PURE__ */ __exportAll({
8
- Chain: () => Chain_exports,
9
- Channel: () => Channel_exports,
10
- ChannelStore: () => ChannelStore_exports,
11
- Receipt: () => Receipt_exports,
12
- Sse: () => Sse_exports,
13
- Types: () => Types_exports,
14
- Voucher: () => Voucher_exports
15
- });
16
- //#endregion
17
- export { session_exports as Session };
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import { n as __exportAll } from "./chunk-DjEMn6fM.js";
3
- import { d as Voucher_exports, i as Receipt_exports, l as Channel_exports, o as Chain_exports, r as ChannelStore_exports, t as Sse_exports } from "./Sse-DGR-tH7K.js";
4
- //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/Types.js
5
- var Types_exports = /* @__PURE__ */ __exportAll({});
6
- //#endregion
7
- //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/tempo/session/index.js
8
- var session_exports = /* @__PURE__ */ __exportAll({
9
- Chain: () => Chain_exports,
10
- Channel: () => Channel_exports,
11
- ChannelStore: () => ChannelStore_exports,
12
- Receipt: () => Receipt_exports,
13
- Sse: () => Sse_exports,
14
- Types: () => Types_exports,
15
- Voucher: () => Voucher_exports
16
- });
17
- //#endregion
18
- export { session_exports as Session };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { n as fetchAllBalances } from "./wallet-C4RiduwM.js";
3
- export { fetchAllBalances };
File without changes
File without changes
File without changes