x402-proxy 0.10.7 → 0.10.9

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 (90) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +7 -1
  3. package/dist/Credential-COZQnr1-.js +2055 -0
  4. package/dist/Mcp-CrCEqLqO.js +10 -0
  5. package/dist/Sse-ChldYgU7.js +9742 -0
  6. package/dist/Sse-kCB38G56.js +16482 -0
  7. package/dist/accounts-DsuvWwph.js +232 -0
  8. package/dist/accounts-DzvAlQRn.js +5 -0
  9. package/dist/accounts-IG-Cmrwy.js +229 -0
  10. package/dist/api-CUzmQvTQ.js +2802 -0
  11. package/dist/auth-DTzQmnZ_.js +1196 -0
  12. package/dist/bin/cli.js +585 -242
  13. package/dist/ccip-Bx-zoUCJ.js +240 -0
  14. package/dist/ccip-C2k1DD1T.js +153 -0
  15. package/dist/ccip-C6CQOJYv.js +152 -0
  16. package/dist/ccip-RZzsZ5Mv.js +156 -0
  17. package/dist/chain-CafcHffR.js +1997 -0
  18. package/dist/chain-DwfP5RGZ.js +1968 -0
  19. package/dist/chunk-DBEY4PJZ.js +16 -0
  20. package/dist/chunk-DjEMn6fM.js +36 -0
  21. package/dist/client-Blw2V7LF.js +657 -0
  22. package/dist/client-C37gWJOZ.js +102 -0
  23. package/dist/client-CEc4NYAA.js +6388 -0
  24. package/dist/client-CVDTUY0l.js +5152 -0
  25. package/dist/config-BUQsit4s.js +3 -0
  26. package/dist/config-DR1Fs_wL.js +6600 -0
  27. package/dist/{config-D9wIR3xc.js → config-rvKA3SYT.js} +10 -5
  28. package/dist/decodeFunctionData-DuFcwhC_.js +4510 -0
  29. package/dist/decodeFunctionData-JPOUdvil.js +4394 -0
  30. package/dist/derive-DNUl8LU9.js +9109 -0
  31. package/dist/dist-C2YO6HSQ.js +6581 -0
  32. package/dist/dist-DM5_F3r5.js +4 -0
  33. package/dist/dist-DxJCYyL5.js +1388 -0
  34. package/dist/hashTypedData-BHmP9dBd.js +859 -0
  35. package/dist/hashTypedData-CtEdfx4y.js +846 -0
  36. package/dist/helpers-CuUSw-tH.js +7125 -0
  37. package/dist/hmac-59IlS_by.js +648 -0
  38. package/dist/http-BAtucMbS.js +2060 -0
  39. package/dist/index.d.ts +1903 -9
  40. package/dist/index.js +18006 -50
  41. package/dist/index.node-CxkL0OFh.js +3592 -0
  42. package/dist/index.node-DvmeuZBj.js +3 -0
  43. package/dist/isAddressEqual-BLrd1Hg1.js +9 -0
  44. package/dist/isAddressEqual-DsAqfQOD.js +10 -0
  45. package/dist/localBatchGatewayRequest-C-RPJyDO.js +6260 -0
  46. package/dist/localBatchGatewayRequest-DOdQ9bR7.js +93 -0
  47. package/dist/localBatchGatewayRequest-DQkbZaSy.js +6261 -0
  48. package/dist/parseUnits-CApwcKSD.js +49 -0
  49. package/dist/parseUnits-cMO2udMe.js +48 -0
  50. package/dist/schemas-BxMFYNbH.js +1270 -0
  51. package/dist/secp256k1-BZpiyffY.js +2525 -0
  52. package/dist/secp256k1-BjenrLl5.js +1877 -0
  53. package/dist/secp256k1-CLPUX17u.js +3 -0
  54. package/dist/sendRawTransactionSync-DvSkhZtW.js +3612 -0
  55. package/dist/server-CSq0IuUq.js +565 -0
  56. package/dist/setup-BY4J49Lv.js +1110 -0
  57. package/dist/setup-wMOAgrsN.js +3 -0
  58. package/dist/sha256-FAs0qeni.js +17 -0
  59. package/dist/sha3-CYkWM8Xa.js +195 -0
  60. package/dist/sha3-DbMJRJ3C.js +194 -0
  61. package/dist/sse-B4LLqBQm.js +408 -0
  62. package/dist/status-Bu23RjW6.js +3 -0
  63. package/dist/{status-DihAcUSC.js → status-X21VnGUO.js} +16 -15
  64. package/dist/stdio-BADqxZdZ.js +85 -0
  65. package/dist/streamableHttp-BHkJypcI.js +358 -0
  66. package/dist/tempo-3nttrxgQ.js +17 -0
  67. package/dist/tempo-DER0P-ul.js +18 -0
  68. package/dist/types-BEKUz-Mf.js +1240 -0
  69. package/dist/types-DatK5vR5.js +3 -0
  70. package/dist/utils-BYjkXZDF.js +444 -0
  71. package/dist/utils-SeGHMW9O.js +445 -0
  72. package/dist/wallet-DKVlrR1S.js +3 -0
  73. package/dist/wallet-DSyht15_.js +17759 -0
  74. package/package.json +18 -71
  75. package/dist/config-B_upkJeK.js +0 -66
  76. package/dist/config-Be35NM5s.js +0 -3
  77. package/dist/config-J1m-CWXT.js +0 -27
  78. package/dist/derive-CL6e8K0Z.js +0 -81
  79. package/dist/openclaw/plugin.d.ts +0 -15
  80. package/dist/openclaw/plugin.js +0 -2067
  81. package/dist/openclaw.plugin.json +0 -93
  82. package/dist/setup-CNyMLnM-.js +0 -197
  83. package/dist/setup-DTIxPe58.js +0 -3
  84. package/dist/status-DZlJ4pS7.js +0 -3
  85. package/dist/wallet-B0S-rma9.js +0 -544
  86. package/dist/wallet-DBrVZJqe.js +0 -3
  87. package/openclaw.plugin.json +0 -93
  88. package/skills/SKILL.md +0 -183
  89. package/skills/references/library.md +0 -85
  90. package/skills/references/openclaw-plugin.md +0 -145
@@ -0,0 +1,49 @@
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 };
@@ -0,0 +1,48 @@
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 };