@arcenpay/react 0.0.1

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 (101) hide show
  1. package/README.md +124 -0
  2. package/dist/add-LG363GP4.mjs +34 -0
  3. package/dist/all-wallets-UW4KSWDQ.mjs +25 -0
  4. package/dist/app-store-GOSERMQC.mjs +36 -0
  5. package/dist/apple-Y34SY63H.mjs +37 -0
  6. package/dist/arrow-bottom-YDRRJYRC.mjs +27 -0
  7. package/dist/arrow-bottom-circle-XSCE7Y52.mjs +30 -0
  8. package/dist/arrow-left-VMP4J3ME.mjs +27 -0
  9. package/dist/arrow-right-FSU7ZETV.mjs +27 -0
  10. package/dist/arrow-top-SQNMDYUF.mjs +27 -0
  11. package/dist/bank-DO6DNPBT.mjs +33 -0
  12. package/dist/basic-3OAVXLDO.mjs +10769 -0
  13. package/dist/browser-BI7YYLKK.mjs +33 -0
  14. package/dist/card-F2CIEB7K.mjs +33 -0
  15. package/dist/checkmark-YASK3T7D.mjs +30 -0
  16. package/dist/checkmark-bold-UJRS6R4T.mjs +27 -0
  17. package/dist/chevron-bottom-Z7YOJH7F.mjs +27 -0
  18. package/dist/chevron-left-YPDPGZVV.mjs +27 -0
  19. package/dist/chevron-right-4464VKIO.mjs +27 -0
  20. package/dist/chevron-top-6F4WXRKZ.mjs +27 -0
  21. package/dist/chrome-store-KH57RD54.mjs +80 -0
  22. package/dist/chunk-5MZNFSFK.mjs +1273 -0
  23. package/dist/chunk-ALKFEKMG.mjs +8108 -0
  24. package/dist/chunk-GUHCPHEG.mjs +768 -0
  25. package/dist/chunk-HPVNNTYF.mjs +7546 -0
  26. package/dist/chunk-LACDYDLO.mjs +402 -0
  27. package/dist/chunk-LGBIIGSV.mjs +39793 -0
  28. package/dist/chunk-M4NAIVF3.mjs +93283 -0
  29. package/dist/chunk-QILMZVJE.mjs +11957 -0
  30. package/dist/chunk-RKV353G3.mjs +272 -0
  31. package/dist/chunk-X2BMVUAF.mjs +50 -0
  32. package/dist/chunk-ZKNFAGRN.mjs +1414 -0
  33. package/dist/clock-WGC5S5SU.mjs +27 -0
  34. package/dist/close-HJ6ZBPVZ.mjs +27 -0
  35. package/dist/coinPlaceholder-UOKFKY4T.mjs +27 -0
  36. package/dist/compass-WAYDVX5E.mjs +27 -0
  37. package/dist/copy-OPJY4AKY.mjs +34 -0
  38. package/dist/core-GECUTVXD.mjs +10138 -0
  39. package/dist/cursor-PAYF2D2S.mjs +22 -0
  40. package/dist/cursor-transparent-T4M3KZJ2.mjs +31 -0
  41. package/dist/desktop-QSXXA65J.mjs +28 -0
  42. package/dist/disconnect-7NMPCP66.mjs +27 -0
  43. package/dist/discord-KRLKWIM5.mjs +36 -0
  44. package/dist/etherscan-TAXMMDC4.mjs +25 -0
  45. package/dist/exclamation-triangle-MW7PXM5B.mjs +23 -0
  46. package/dist/extension-LAAZQU7X.mjs +27 -0
  47. package/dist/external-link-IFBQ3MSI.mjs +27 -0
  48. package/dist/facebook-PAENGKOR.mjs +45 -0
  49. package/dist/farcaster-P47HCAAY.mjs +31 -0
  50. package/dist/filters-4HNPLZQV.mjs +27 -0
  51. package/dist/github-RO4C47BJ.mjs +37 -0
  52. package/dist/google-RIBTWZH2.mjs +37 -0
  53. package/dist/help-circle-PN7NOOY4.mjs +31 -0
  54. package/dist/id-JYBNXVYQ.mjs +31 -0
  55. package/dist/image-FUPENKKO.mjs +23 -0
  56. package/dist/index.d.mts +288 -0
  57. package/dist/index.d.ts +288 -0
  58. package/dist/index.js +295316 -0
  59. package/dist/index.mjs +7936 -0
  60. package/dist/info-34PNUQRI.mjs +22 -0
  61. package/dist/info-circle-M5CXNBEA.mjs +31 -0
  62. package/dist/lightbulb-CPZO66W6.mjs +22 -0
  63. package/dist/mail-RAF36J77.mjs +27 -0
  64. package/dist/mobile-ZLFYOCHK.mjs +28 -0
  65. package/dist/more-CIHKDQMO.mjs +30 -0
  66. package/dist/network-placeholder-QOMFBWMT.mjs +33 -0
  67. package/dist/nftPlaceholder-7TK2T2QP.mjs +27 -0
  68. package/dist/off-WWNLGDOR.mjs +27 -0
  69. package/dist/play-store-HLZSDCUP.mjs +51 -0
  70. package/dist/plus-SCLTSRAT.mjs +32 -0
  71. package/dist/qr-code-T7FWUJU6.mjs +25 -0
  72. package/dist/recycle-horizontal-WRR5I5MX.mjs +28 -0
  73. package/dist/refresh-6AQ524CD.mjs +27 -0
  74. package/dist/reown-logo-NJCCGFTU.mjs +31 -0
  75. package/dist/search-HXD6I5XQ.mjs +27 -0
  76. package/dist/send-3N2W3TJ6.mjs +34 -0
  77. package/dist/src-DKYFVWPL.mjs +7 -0
  78. package/dist/src-HMFDWVJP.mjs +5 -0
  79. package/dist/src-TV3VFBF5.mjs +98950 -0
  80. package/dist/swapHorizontal-KPYCPFL4.mjs +27 -0
  81. package/dist/swapHorizontalBold-WCO2BX6U.mjs +27 -0
  82. package/dist/swapHorizontalMedium-SCPLSG7N.mjs +35 -0
  83. package/dist/swapHorizontalRoundedBold-YX7IIFNL.mjs +27 -0
  84. package/dist/swapVertical-XS35BJ2R.mjs +27 -0
  85. package/dist/telegram-RIP72IGI.mjs +35 -0
  86. package/dist/three-dots-IPE2YG6Z.mjs +24 -0
  87. package/dist/twitch-5K6DAEPG.mjs +37 -0
  88. package/dist/twitterIcon-U3V7EFPB.mjs +25 -0
  89. package/dist/verify-JML7EMVO.mjs +27 -0
  90. package/dist/verify-filled-R5MYOEEJ.mjs +27 -0
  91. package/dist/w3m-modal-LW2TBGRA.mjs +2042 -0
  92. package/dist/wallet-AJFVN7JZ.mjs +27 -0
  93. package/dist/wallet-placeholder-4QSRXVF5.mjs +33 -0
  94. package/dist/walletconnect-G267PBVT.mjs +53 -0
  95. package/dist/warning-circle-2KJXNGLQ.mjs +31 -0
  96. package/dist/x-MTQL7KFF.mjs +31 -0
  97. package/dist/zerodev.d.mts +106 -0
  98. package/dist/zerodev.d.ts +106 -0
  99. package/dist/zerodev.js +420 -0
  100. package/dist/zerodev.mjs +17 -0
  101. package/package.json +78 -0
@@ -0,0 +1,27 @@
1
+ import {
2
+ b2 as b,
3
+ init_lit
4
+ } from "./chunk-5MZNFSFK.mjs";
5
+ import {
6
+ __esm
7
+ } from "./chunk-X2BMVUAF.mjs";
8
+
9
+ // ../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/wallet.js
10
+ var walletSvg;
11
+ var init_wallet = __esm({
12
+ "../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/wallet.js"() {
13
+ init_lit();
14
+ walletSvg = b`<svg fill="none" viewBox="0 0 20 20">
15
+ <path
16
+ fill="currentColor"
17
+ fill-rule="evenodd"
18
+ d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z"
19
+ clip-rule="evenodd"
20
+ />
21
+ </svg>`;
22
+ }
23
+ });
24
+ init_wallet();
25
+ export {
26
+ walletSvg
27
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ b2 as b,
3
+ init_lit
4
+ } from "./chunk-5MZNFSFK.mjs";
5
+ import {
6
+ __esm
7
+ } from "./chunk-X2BMVUAF.mjs";
8
+
9
+ // ../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/wallet-placeholder.js
10
+ var walletPlaceholderSvg;
11
+ var init_wallet_placeholder = __esm({
12
+ "../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/wallet-placeholder.js"() {
13
+ init_lit();
14
+ walletPlaceholderSvg = b`
15
+ <svg fill="none" viewBox="0 0 48 44">
16
+ <path
17
+ style="fill: var(--wui-color-bg-300);"
18
+ d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.05 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z"
19
+ />
20
+ <path
21
+ style="fill: var(--wui-color-fg-200);"
22
+ fill-rule="evenodd"
23
+ d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z"
24
+ clip-rule="evenodd"
25
+ />
26
+ </svg>
27
+ `;
28
+ }
29
+ });
30
+ init_wallet_placeholder();
31
+ export {
32
+ walletPlaceholderSvg
33
+ };
@@ -0,0 +1,53 @@
1
+ import {
2
+ b2 as b,
3
+ init_lit
4
+ } from "./chunk-5MZNFSFK.mjs";
5
+ import {
6
+ __esm
7
+ } from "./chunk-X2BMVUAF.mjs";
8
+
9
+ // ../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/walletconnect.js
10
+ var walletConnectSvg, walletConnectLightBrownSvg, walletConnectBrownSvg;
11
+ var init_walletconnect = __esm({
12
+ "../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/walletconnect.js"() {
13
+ init_lit();
14
+ walletConnectSvg = b`<svg fill="none" viewBox="0 0 96 67">
15
+ <path
16
+ fill="currentColor"
17
+ d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z"
18
+ />
19
+ <path
20
+ stroke="#000"
21
+ stroke-opacity=".1"
22
+ d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z"
23
+ />
24
+ </svg>`;
25
+ walletConnectLightBrownSvg = b`
26
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
27
+ <g clip-path="url(#clip0_22274_4692)">
28
+ <path d="M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z" fill="#C7B994"/>
29
+ <path d="M4.49038 5.76609C6.42869 3.86833 9.5713 3.86833 11.5096 5.76609L11.7429 5.99449C11.8398 6.08938 11.8398 6.24323 11.7429 6.33811L10.9449 7.11942C10.8964 7.16686 10.8179 7.16686 10.7694 7.11942L10.4484 6.80512C9.09617 5.48119 6.90381 5.48119 5.5516 6.80512L5.20782 7.14171C5.15936 7.18915 5.08079 7.18915 5.03234 7.14171L4.23434 6.3604C4.13742 6.26552 4.13742 6.11167 4.23434 6.01678L4.49038 5.76609ZM13.1599 7.38192L13.8702 8.07729C13.9671 8.17217 13.9671 8.32602 13.8702 8.4209L10.6677 11.5564C10.5708 11.6513 10.4137 11.6513 10.3168 11.5564L8.04388 9.33105C8.01965 9.30733 7.98037 9.30733 7.95614 9.33105L5.6833 11.5564C5.58638 11.6513 5.42925 11.6513 5.33234 11.5564L2.12982 8.42087C2.0329 8.32598 2.0329 8.17213 2.12982 8.07724L2.84004 7.38188C2.93695 7.28699 3.09408 7.28699 3.191 7.38188L5.46392 9.60726C5.48815 9.63098 5.52743 9.63098 5.55166 9.60726L7.82447 7.38188C7.92138 7.28699 8.07851 7.28699 8.17543 7.38187L10.4484 9.60726C10.4726 9.63098 10.5119 9.63098 10.5361 9.60726L12.809 7.38192C12.9059 7.28703 13.063 7.28703 13.1599 7.38192Z" fill="#202020"/>
30
+ </g>
31
+ <defs>
32
+ <clipPath id="clip0_22274_4692">
33
+ <path d="M0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z" fill="white"/>
34
+ </clipPath>
35
+ </defs>
36
+ </svg>
37
+ `;
38
+ walletConnectBrownSvg = b`
39
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
40
+ <circle cx="11" cy="11" r="11" transform="matrix(-1 0 0 1 23 1)" fill="#202020"/>
41
+ <circle cx="11" cy="11" r="11.5" transform="matrix(-1 0 0 1 23 1)" stroke="#C7B994" stroke-opacity="0.7"/>
42
+ <path d="M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z" fill="#C7B994"/>
43
+ <path d="M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z" fill="#C7B994"/>
44
+ </svg>
45
+ `;
46
+ }
47
+ });
48
+ init_walletconnect();
49
+ export {
50
+ walletConnectBrownSvg,
51
+ walletConnectLightBrownSvg,
52
+ walletConnectSvg
53
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ b2 as b,
3
+ init_lit
4
+ } from "./chunk-5MZNFSFK.mjs";
5
+ import {
6
+ __esm
7
+ } from "./chunk-X2BMVUAF.mjs";
8
+
9
+ // ../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/warning-circle.js
10
+ var warningCircleSvg;
11
+ var init_warning_circle = __esm({
12
+ "../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/warning-circle.js"() {
13
+ init_lit();
14
+ warningCircleSvg = b`<svg fill="none" viewBox="0 0 20 20">
15
+ <path
16
+ fill="currentColor"
17
+ d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"
18
+ />
19
+ <path
20
+ fill="currentColor"
21
+ fill-rule="evenodd"
22
+ d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"
23
+ clip-rule="evenodd"
24
+ />
25
+ </svg>`;
26
+ }
27
+ });
28
+ init_warning_circle();
29
+ export {
30
+ warningCircleSvg
31
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ b2 as b,
3
+ init_lit
4
+ } from "./chunk-5MZNFSFK.mjs";
5
+ import {
6
+ __esm
7
+ } from "./chunk-X2BMVUAF.mjs";
8
+
9
+ // ../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/x.js
10
+ var xSvg;
11
+ var init_x = __esm({
12
+ "../../node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/x.js"() {
13
+ init_lit();
14
+ xSvg = b`<svg fill="none" viewBox="0 0 41 40">
15
+ <g clip-path="url(#a)">
16
+ <path fill="#000" d="M.8 0h40v40H.8z" />
17
+ <path
18
+ fill="#fff"
19
+ d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z"
20
+ />
21
+ </g>
22
+ <defs>
23
+ <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath>
24
+ </defs>
25
+ </svg>`;
26
+ }
27
+ });
28
+ init_x();
29
+ export {
30
+ xSvg
31
+ };
@@ -0,0 +1,106 @@
1
+ import { WalletClient } from 'viem';
2
+
3
+ declare function isRecoverableSmartAccountFundingError(error: unknown): boolean;
4
+ interface DeploySmartAccountConfig {
5
+ /** ZeroDev project ID (from dashboard.zerodev.app) */
6
+ projectId: string;
7
+ /** Chain ID */
8
+ chainId: number;
9
+ /** The user's wallet client (e.g., from wagmi) */
10
+ walletClient: WalletClient;
11
+ /** Optional: bundler URL override */
12
+ bundlerUrl?: string;
13
+ /** Optional: paymaster URL override */
14
+ paymasterUrl?: string;
15
+ }
16
+ interface SmartAccountResult {
17
+ /** The Kernel smart account address */
18
+ smartAccountAddress: `0x${string}`;
19
+ /** Transaction hash of the module installation */
20
+ installTxHash?: `0x${string}`;
21
+ /** Whether the account was already deployed */
22
+ alreadyDeployed: boolean;
23
+ }
24
+ interface RevokeAutopayConfig {
25
+ projectId: string;
26
+ chainId: number;
27
+ walletClient: WalletClient;
28
+ smartAccountAddress: `0x${string}`;
29
+ bundlerUrl?: string;
30
+ paymasterUrl?: string;
31
+ }
32
+ interface SmartAccountTransactionConfig {
33
+ projectId: string;
34
+ chainId: number;
35
+ walletClient: WalletClient;
36
+ to: `0x${string}`;
37
+ data: `0x${string}`;
38
+ value?: bigint;
39
+ smartAccountAddress?: `0x${string}`;
40
+ bundlerUrl?: string;
41
+ paymasterUrl?: string;
42
+ }
43
+ interface UpdateAutopayConfigInput {
44
+ projectId: string;
45
+ chainId: number;
46
+ walletClient: WalletClient;
47
+ smartAccountAddress: `0x${string}`;
48
+ merchant: `0x${string}`;
49
+ maxAmount: bigint;
50
+ token: `0x${string}`;
51
+ interval: number;
52
+ startTime: bigint;
53
+ planId: bigint;
54
+ maxTotalAmount?: bigint;
55
+ bundlerUrl?: string;
56
+ paymasterUrl?: string;
57
+ }
58
+ interface CancelSubscriptionInput {
59
+ projectId: string;
60
+ chainId: number;
61
+ walletClient: WalletClient;
62
+ smartAccountAddress: `0x${string}`;
63
+ tokenId: bigint;
64
+ bundlerUrl?: string;
65
+ paymasterUrl?: string;
66
+ }
67
+ /**
68
+ * Deploy a ZeroDev Kernel smart account and install the ERC-7579 AutopayModule.
69
+ *
70
+ * Flow:
71
+ * 1. Create an ECDSA validator from the user's signer
72
+ * 2. Create a Kernel account (counterfactual address if not yet deployed)
73
+ * 3. Create a Kernel account client with ZeroDev paymaster for gas sponsorship
74
+ * 4. Install the AutopayModule as an execution module on the Kernel
75
+ *
76
+ * PRD MEAP-001 — This enables recurring subscription payments to be
77
+ * pulled automatically by the BillingKeeper.
78
+ */
79
+ declare function deploySmartAccount(config: DeploySmartAccountConfig): Promise<SmartAccountResult>;
80
+ /**
81
+ * Revoke autopay module state for an existing smart account.
82
+ * This calls module `onUninstall(0x)` through the smart account executor.
83
+ */
84
+ declare function revokeAutopayModule(config: RevokeAutopayConfig): Promise<{
85
+ txHash?: `0x${string}`;
86
+ alreadyRevoked: boolean;
87
+ }>;
88
+ /**
89
+ * Sends a transaction through the caller's ZeroDev Kernel smart account and waits
90
+ * for the resulting on-chain receipt. This keeps follow-up checkout actions
91
+ * originating from the smart account rather than the owner EOA.
92
+ */
93
+ declare function sendSmartAccountTransaction(config: SmartAccountTransactionConfig): Promise<{
94
+ smartAccountAddress: `0x${string}`;
95
+ txHash: `0x${string}`;
96
+ }>;
97
+ declare function updateAutopayConfig(config: UpdateAutopayConfigInput): Promise<{
98
+ smartAccountAddress: `0x${string}`;
99
+ txHash: `0x${string}`;
100
+ }>;
101
+ declare function cancelSubscription(config: CancelSubscriptionInput): Promise<{
102
+ smartAccountAddress: `0x${string}`;
103
+ txHash: `0x${string}`;
104
+ }>;
105
+
106
+ export { type CancelSubscriptionInput, type DeploySmartAccountConfig, type RevokeAutopayConfig, type SmartAccountResult, type SmartAccountTransactionConfig, type UpdateAutopayConfigInput, cancelSubscription, deploySmartAccount, isRecoverableSmartAccountFundingError, revokeAutopayModule, sendSmartAccountTransaction, updateAutopayConfig };
@@ -0,0 +1,106 @@
1
+ import { WalletClient } from 'viem';
2
+
3
+ declare function isRecoverableSmartAccountFundingError(error: unknown): boolean;
4
+ interface DeploySmartAccountConfig {
5
+ /** ZeroDev project ID (from dashboard.zerodev.app) */
6
+ projectId: string;
7
+ /** Chain ID */
8
+ chainId: number;
9
+ /** The user's wallet client (e.g., from wagmi) */
10
+ walletClient: WalletClient;
11
+ /** Optional: bundler URL override */
12
+ bundlerUrl?: string;
13
+ /** Optional: paymaster URL override */
14
+ paymasterUrl?: string;
15
+ }
16
+ interface SmartAccountResult {
17
+ /** The Kernel smart account address */
18
+ smartAccountAddress: `0x${string}`;
19
+ /** Transaction hash of the module installation */
20
+ installTxHash?: `0x${string}`;
21
+ /** Whether the account was already deployed */
22
+ alreadyDeployed: boolean;
23
+ }
24
+ interface RevokeAutopayConfig {
25
+ projectId: string;
26
+ chainId: number;
27
+ walletClient: WalletClient;
28
+ smartAccountAddress: `0x${string}`;
29
+ bundlerUrl?: string;
30
+ paymasterUrl?: string;
31
+ }
32
+ interface SmartAccountTransactionConfig {
33
+ projectId: string;
34
+ chainId: number;
35
+ walletClient: WalletClient;
36
+ to: `0x${string}`;
37
+ data: `0x${string}`;
38
+ value?: bigint;
39
+ smartAccountAddress?: `0x${string}`;
40
+ bundlerUrl?: string;
41
+ paymasterUrl?: string;
42
+ }
43
+ interface UpdateAutopayConfigInput {
44
+ projectId: string;
45
+ chainId: number;
46
+ walletClient: WalletClient;
47
+ smartAccountAddress: `0x${string}`;
48
+ merchant: `0x${string}`;
49
+ maxAmount: bigint;
50
+ token: `0x${string}`;
51
+ interval: number;
52
+ startTime: bigint;
53
+ planId: bigint;
54
+ maxTotalAmount?: bigint;
55
+ bundlerUrl?: string;
56
+ paymasterUrl?: string;
57
+ }
58
+ interface CancelSubscriptionInput {
59
+ projectId: string;
60
+ chainId: number;
61
+ walletClient: WalletClient;
62
+ smartAccountAddress: `0x${string}`;
63
+ tokenId: bigint;
64
+ bundlerUrl?: string;
65
+ paymasterUrl?: string;
66
+ }
67
+ /**
68
+ * Deploy a ZeroDev Kernel smart account and install the ERC-7579 AutopayModule.
69
+ *
70
+ * Flow:
71
+ * 1. Create an ECDSA validator from the user's signer
72
+ * 2. Create a Kernel account (counterfactual address if not yet deployed)
73
+ * 3. Create a Kernel account client with ZeroDev paymaster for gas sponsorship
74
+ * 4. Install the AutopayModule as an execution module on the Kernel
75
+ *
76
+ * PRD MEAP-001 — This enables recurring subscription payments to be
77
+ * pulled automatically by the BillingKeeper.
78
+ */
79
+ declare function deploySmartAccount(config: DeploySmartAccountConfig): Promise<SmartAccountResult>;
80
+ /**
81
+ * Revoke autopay module state for an existing smart account.
82
+ * This calls module `onUninstall(0x)` through the smart account executor.
83
+ */
84
+ declare function revokeAutopayModule(config: RevokeAutopayConfig): Promise<{
85
+ txHash?: `0x${string}`;
86
+ alreadyRevoked: boolean;
87
+ }>;
88
+ /**
89
+ * Sends a transaction through the caller's ZeroDev Kernel smart account and waits
90
+ * for the resulting on-chain receipt. This keeps follow-up checkout actions
91
+ * originating from the smart account rather than the owner EOA.
92
+ */
93
+ declare function sendSmartAccountTransaction(config: SmartAccountTransactionConfig): Promise<{
94
+ smartAccountAddress: `0x${string}`;
95
+ txHash: `0x${string}`;
96
+ }>;
97
+ declare function updateAutopayConfig(config: UpdateAutopayConfigInput): Promise<{
98
+ smartAccountAddress: `0x${string}`;
99
+ txHash: `0x${string}`;
100
+ }>;
101
+ declare function cancelSubscription(config: CancelSubscriptionInput): Promise<{
102
+ smartAccountAddress: `0x${string}`;
103
+ txHash: `0x${string}`;
104
+ }>;
105
+
106
+ export { type CancelSubscriptionInput, type DeploySmartAccountConfig, type RevokeAutopayConfig, type SmartAccountResult, type SmartAccountTransactionConfig, type UpdateAutopayConfigInput, cancelSubscription, deploySmartAccount, isRecoverableSmartAccountFundingError, revokeAutopayModule, sendSmartAccountTransaction, updateAutopayConfig };