@alchemy/smart-accounts 0.0.0-alpha.2 → 0.0.0-alpha.21

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 (147) hide show
  1. package/dist/esm/index.d.ts +4 -3
  2. package/dist/esm/index.js +3 -3
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/light-account/accounts/account.d.ts +9 -4
  5. package/dist/esm/light-account/accounts/account.js +29 -18
  6. package/dist/esm/light-account/accounts/account.js.map +1 -1
  7. package/dist/esm/light-account/accounts/base.d.ts +4 -4
  8. package/dist/esm/light-account/accounts/base.js +51 -24
  9. package/dist/esm/light-account/accounts/base.js.map +1 -1
  10. package/dist/esm/light-account/accounts/multi-owner-account.d.ts +9 -4
  11. package/dist/esm/light-account/accounts/multi-owner-account.js +23 -14
  12. package/dist/esm/light-account/accounts/multi-owner-account.js.map +1 -1
  13. package/dist/esm/light-account/decorators/multiOwner.js +2 -1
  14. package/dist/esm/light-account/decorators/multiOwner.js.map +1 -1
  15. package/dist/esm/light-account/decorators/singleOwner.js +1 -1
  16. package/dist/esm/light-account/decorators/singleOwner.js.map +1 -1
  17. package/dist/esm/light-account/lightAccountStaticImpl.d.ts +3 -1
  18. package/dist/esm/light-account/lightAccountStaticImpl.js +57 -7
  19. package/dist/esm/light-account/lightAccountStaticImpl.js.map +1 -1
  20. package/dist/esm/light-account/predictAddress.d.ts +40 -2
  21. package/dist/esm/light-account/predictAddress.js +83 -3
  22. package/dist/esm/light-account/predictAddress.js.map +1 -1
  23. package/dist/esm/light-account/registry.d.ts +3411 -1
  24. package/dist/esm/light-account/registry.js +33 -1
  25. package/dist/esm/light-account/registry.js.map +1 -1
  26. package/dist/esm/light-account/utils.js +1 -1
  27. package/dist/esm/light-account/utils.js.map +1 -1
  28. package/dist/esm/ma-v1/accounts/base.d.ts +4 -4
  29. package/dist/esm/ma-v1/accounts/base.js +1 -1
  30. package/dist/esm/ma-v1/accounts/base.js.map +1 -1
  31. package/dist/esm/ma-v1/accounts/multi-owner-account.d.ts +9 -4
  32. package/dist/esm/ma-v1/accounts/multi-owner-account.js +26 -14
  33. package/dist/esm/ma-v1/accounts/multi-owner-account.js.map +1 -1
  34. package/dist/esm/ma-v1/decorators/multiOwner.js +2 -1
  35. package/dist/esm/ma-v1/decorators/multiOwner.js.map +1 -1
  36. package/dist/esm/ma-v1/predictAddress.d.ts +20 -1
  37. package/dist/esm/ma-v1/predictAddress.js +37 -1
  38. package/dist/esm/ma-v1/predictAddress.js.map +1 -1
  39. package/dist/esm/ma-v2/accounts/account.d.ts +10 -7
  40. package/dist/esm/ma-v2/accounts/account.js +24 -43
  41. package/dist/esm/ma-v2/accounts/account.js.map +1 -1
  42. package/dist/esm/ma-v2/accounts/base.d.ts +5 -5
  43. package/dist/esm/ma-v2/accounts/base.js +18 -60
  44. package/dist/esm/ma-v2/accounts/base.js.map +1 -1
  45. package/dist/esm/ma-v2/mav2StaticImpl.d.ts +1 -15
  46. package/dist/esm/ma-v2/mav2StaticImpl.js +0 -33
  47. package/dist/esm/ma-v2/mav2StaticImpl.js.map +1 -1
  48. package/dist/esm/ma-v2/predictAddress.d.ts +22 -6
  49. package/dist/esm/ma-v2/predictAddress.js +46 -12
  50. package/dist/esm/ma-v2/predictAddress.js.map +1 -1
  51. package/dist/esm/ma-v2/utils/account.d.ts +0 -3
  52. package/dist/esm/ma-v2/utils/account.js +2 -4
  53. package/dist/esm/ma-v2/utils/account.js.map +1 -1
  54. package/dist/esm/ma-v2/utils/signature.d.ts +1 -12
  55. package/dist/esm/ma-v2/utils/signature.js +1 -34
  56. package/dist/esm/ma-v2/utils/signature.js.map +1 -1
  57. package/dist/esm/types.d.ts +8 -1
  58. package/dist/esm/types.js.map +1 -1
  59. package/dist/esm/utils.d.ts +32 -2
  60. package/dist/esm/utils.js +75 -5
  61. package/dist/esm/utils.js.map +1 -1
  62. package/dist/esm/version.d.ts +1 -1
  63. package/dist/esm/version.js +1 -1
  64. package/dist/esm/version.js.map +1 -1
  65. package/dist/types/index.d.ts +4 -3
  66. package/dist/types/index.d.ts.map +1 -1
  67. package/dist/types/light-account/accounts/account.d.ts +9 -4
  68. package/dist/types/light-account/accounts/account.d.ts.map +1 -1
  69. package/dist/types/light-account/accounts/base.d.ts +4 -4
  70. package/dist/types/light-account/accounts/base.d.ts.map +1 -1
  71. package/dist/types/light-account/accounts/multi-owner-account.d.ts +9 -4
  72. package/dist/types/light-account/accounts/multi-owner-account.d.ts.map +1 -1
  73. package/dist/types/light-account/decorators/multiOwner.d.ts.map +1 -1
  74. package/dist/types/light-account/decorators/singleOwner.d.ts.map +1 -1
  75. package/dist/types/light-account/lightAccountStaticImpl.d.ts +3 -1
  76. package/dist/types/light-account/lightAccountStaticImpl.d.ts.map +1 -1
  77. package/dist/types/light-account/predictAddress.d.ts +40 -2
  78. package/dist/types/light-account/predictAddress.d.ts.map +1 -1
  79. package/dist/types/light-account/registry.d.ts +3411 -1
  80. package/dist/types/light-account/registry.d.ts.map +1 -1
  81. package/dist/types/ma-v1/accounts/base.d.ts +4 -4
  82. package/dist/types/ma-v1/accounts/base.d.ts.map +1 -1
  83. package/dist/types/ma-v1/accounts/multi-owner-account.d.ts +9 -4
  84. package/dist/types/ma-v1/accounts/multi-owner-account.d.ts.map +1 -1
  85. package/dist/types/ma-v1/decorators/multiOwner.d.ts.map +1 -1
  86. package/dist/types/ma-v1/predictAddress.d.ts +20 -1
  87. package/dist/types/ma-v1/predictAddress.d.ts.map +1 -1
  88. package/dist/types/ma-v2/accounts/account.d.ts +10 -7
  89. package/dist/types/ma-v2/accounts/account.d.ts.map +1 -1
  90. package/dist/types/ma-v2/accounts/base.d.ts +5 -5
  91. package/dist/types/ma-v2/accounts/base.d.ts.map +1 -1
  92. package/dist/types/ma-v2/mav2StaticImpl.d.ts +1 -15
  93. package/dist/types/ma-v2/mav2StaticImpl.d.ts.map +1 -1
  94. package/dist/types/ma-v2/predictAddress.d.ts +22 -6
  95. package/dist/types/ma-v2/predictAddress.d.ts.map +1 -1
  96. package/dist/types/ma-v2/utils/account.d.ts +0 -3
  97. package/dist/types/ma-v2/utils/account.d.ts.map +1 -1
  98. package/dist/types/ma-v2/utils/signature.d.ts +1 -12
  99. package/dist/types/ma-v2/utils/signature.d.ts.map +1 -1
  100. package/dist/types/types.d.ts +8 -1
  101. package/dist/types/types.d.ts.map +1 -1
  102. package/dist/types/utils.d.ts +32 -2
  103. package/dist/types/utils.d.ts.map +1 -1
  104. package/dist/types/version.d.ts +1 -1
  105. package/dist/types/version.d.ts.map +1 -1
  106. package/package.json +5 -6
  107. package/src/index.ts +4 -3
  108. package/src/light-account/accounts/account.ts +42 -26
  109. package/src/light-account/accounts/base.ts +66 -27
  110. package/src/light-account/accounts/multi-owner-account.ts +33 -16
  111. package/src/light-account/decorators/multiOwner.ts +4 -1
  112. package/src/light-account/decorators/singleOwner.ts +3 -1
  113. package/src/light-account/lightAccountStaticImpl.ts +84 -11
  114. package/src/light-account/predictAddress.ts +124 -3
  115. package/src/light-account/registry.ts +47 -1
  116. package/src/light-account/utils.ts +1 -1
  117. package/src/ma-v1/accounts/base.ts +8 -5
  118. package/src/ma-v1/accounts/multi-owner-account.ts +37 -18
  119. package/src/ma-v1/decorators/multiOwner.ts +4 -1
  120. package/src/ma-v1/predictAddress.ts +59 -2
  121. package/src/ma-v2/accounts/account.ts +42 -55
  122. package/src/ma-v2/accounts/base.ts +24 -88
  123. package/src/ma-v2/mav2StaticImpl.ts +1 -52
  124. package/src/ma-v2/predictAddress.ts +68 -30
  125. package/src/ma-v2/utils/account.ts +4 -4
  126. package/src/ma-v2/utils/signature.ts +2 -51
  127. package/src/types.ts +15 -1
  128. package/src/utils.ts +119 -6
  129. package/src/version.ts +1 -1
  130. package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.d.ts +0 -330
  131. package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.js +0 -260
  132. package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.js.map +0 -1
  133. package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +0 -287
  134. package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +0 -374
  135. package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +0 -1
  136. package/dist/esm/ma-v2/modules/webauthn-validation/module.d.ts +0 -11
  137. package/dist/esm/ma-v2/modules/webauthn-validation/module.js +0 -16
  138. package/dist/esm/ma-v2/modules/webauthn-validation/module.js.map +0 -1
  139. package/dist/types/ma-v2/abis/webAuthnFactoryAbi.d.ts +0 -331
  140. package/dist/types/ma-v2/abis/webAuthnFactoryAbi.d.ts.map +0 -1
  141. package/dist/types/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +0 -288
  142. package/dist/types/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +0 -1
  143. package/dist/types/ma-v2/modules/webauthn-validation/module.d.ts +0 -12
  144. package/dist/types/ma-v2/modules/webauthn-validation/module.d.ts.map +0 -1
  145. package/src/ma-v2/abis/webAuthnFactoryAbi.ts +0 -259
  146. package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +0 -373
  147. package/src/ma-v2/modules/webauthn-validation/module.ts +0 -28
@@ -1,259 +0,0 @@
1
- export const webAuthnFactoryAbi = [
2
- {
3
- inputs: [
4
- {
5
- internalType: "contract IEntryPoint",
6
- name: "_entryPoint",
7
- type: "address",
8
- },
9
- {
10
- internalType: "contract ModularAccount",
11
- name: "_accountImpl",
12
- type: "address",
13
- },
14
- {
15
- internalType: "address",
16
- name: "_webAuthnValidationModule",
17
- type: "address",
18
- },
19
- { internalType: "address", name: "owner", type: "address" },
20
- ],
21
- stateMutability: "nonpayable",
22
- type: "constructor",
23
- },
24
- {
25
- inputs: [{ internalType: "address", name: "target", type: "address" }],
26
- name: "AddressEmptyCode",
27
- type: "error",
28
- },
29
- {
30
- inputs: [{ internalType: "address", name: "account", type: "address" }],
31
- name: "AddressInsufficientBalance",
32
- type: "error",
33
- },
34
- { inputs: [], name: "FailedInnerCall", type: "error" },
35
- { inputs: [], name: "InvalidAction", type: "error" },
36
- { inputs: [], name: "NoCodeAccountImpl", type: "error" },
37
- { inputs: [], name: "NoCodeWebAuthnModule", type: "error" },
38
- {
39
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
40
- name: "OwnableInvalidOwner",
41
- type: "error",
42
- },
43
- {
44
- inputs: [{ internalType: "address", name: "account", type: "address" }],
45
- name: "OwnableUnauthorizedAccount",
46
- type: "error",
47
- },
48
- {
49
- inputs: [{ internalType: "address", name: "token", type: "address" }],
50
- name: "SafeERC20FailedOperation",
51
- type: "error",
52
- },
53
- { inputs: [], name: "TransferFailed", type: "error" },
54
- {
55
- anonymous: false,
56
- inputs: [
57
- {
58
- indexed: true,
59
- internalType: "address",
60
- name: "previousOwner",
61
- type: "address",
62
- },
63
- {
64
- indexed: true,
65
- internalType: "address",
66
- name: "newOwner",
67
- type: "address",
68
- },
69
- ],
70
- name: "OwnershipTransferStarted",
71
- type: "event",
72
- },
73
- {
74
- anonymous: false,
75
- inputs: [
76
- {
77
- indexed: true,
78
- internalType: "address",
79
- name: "previousOwner",
80
- type: "address",
81
- },
82
- {
83
- indexed: true,
84
- internalType: "address",
85
- name: "newOwner",
86
- type: "address",
87
- },
88
- ],
89
- name: "OwnershipTransferred",
90
- type: "event",
91
- },
92
- {
93
- anonymous: false,
94
- inputs: [
95
- {
96
- indexed: true,
97
- internalType: "address",
98
- name: "account",
99
- type: "address",
100
- },
101
- {
102
- indexed: true,
103
- internalType: "uint256",
104
- name: "ownerX",
105
- type: "uint256",
106
- },
107
- {
108
- indexed: true,
109
- internalType: "uint256",
110
- name: "ownerY",
111
- type: "uint256",
112
- },
113
- {
114
- indexed: false,
115
- internalType: "uint256",
116
- name: "salt",
117
- type: "uint256",
118
- },
119
- ],
120
- name: "WebAuthnModularAccountDeployed",
121
- type: "event",
122
- },
123
- {
124
- inputs: [],
125
- name: "ACCOUNT_IMPL",
126
- outputs: [
127
- { internalType: "contract ModularAccount", name: "", type: "address" },
128
- ],
129
- stateMutability: "view",
130
- type: "function",
131
- },
132
- {
133
- inputs: [],
134
- name: "ENTRY_POINT",
135
- outputs: [
136
- { internalType: "contract IEntryPoint", name: "", type: "address" },
137
- ],
138
- stateMutability: "view",
139
- type: "function",
140
- },
141
- {
142
- inputs: [],
143
- name: "WEBAUTHN_VALIDATION_MODULE",
144
- outputs: [{ internalType: "address", name: "", type: "address" }],
145
- stateMutability: "view",
146
- type: "function",
147
- },
148
- {
149
- inputs: [],
150
- name: "acceptOwnership",
151
- outputs: [],
152
- stateMutability: "nonpayable",
153
- type: "function",
154
- },
155
- {
156
- inputs: [{ internalType: "uint32", name: "unstakeDelay", type: "uint32" }],
157
- name: "addStake",
158
- outputs: [],
159
- stateMutability: "payable",
160
- type: "function",
161
- },
162
- {
163
- inputs: [
164
- { internalType: "uint256", name: "ownerX", type: "uint256" },
165
- { internalType: "uint256", name: "ownerY", type: "uint256" },
166
- { internalType: "uint256", name: "salt", type: "uint256" },
167
- { internalType: "uint32", name: "entityId", type: "uint32" },
168
- ],
169
- name: "createWebAuthnAccount",
170
- outputs: [
171
- { internalType: "contract ModularAccount", name: "", type: "address" },
172
- ],
173
- stateMutability: "nonpayable",
174
- type: "function",
175
- },
176
- {
177
- inputs: [
178
- { internalType: "uint256", name: "ownerX", type: "uint256" },
179
- { internalType: "uint256", name: "ownerY", type: "uint256" },
180
- { internalType: "uint256", name: "salt", type: "uint256" },
181
- { internalType: "uint32", name: "entityId", type: "uint32" },
182
- ],
183
- name: "getAddressWebAuthn",
184
- outputs: [{ internalType: "address", name: "", type: "address" }],
185
- stateMutability: "view",
186
- type: "function",
187
- },
188
- {
189
- inputs: [
190
- { internalType: "uint256", name: "ownerX", type: "uint256" },
191
- { internalType: "uint256", name: "ownerY", type: "uint256" },
192
- { internalType: "uint256", name: "salt", type: "uint256" },
193
- { internalType: "uint32", name: "entityId", type: "uint32" },
194
- ],
195
- name: "getSaltWebAuthn",
196
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
197
- stateMutability: "pure",
198
- type: "function",
199
- },
200
- {
201
- inputs: [],
202
- name: "owner",
203
- outputs: [{ internalType: "address", name: "", type: "address" }],
204
- stateMutability: "view",
205
- type: "function",
206
- },
207
- {
208
- inputs: [],
209
- name: "pendingOwner",
210
- outputs: [{ internalType: "address", name: "", type: "address" }],
211
- stateMutability: "view",
212
- type: "function",
213
- },
214
- {
215
- inputs: [],
216
- name: "renounceOwnership",
217
- outputs: [],
218
- stateMutability: "view",
219
- type: "function",
220
- },
221
- {
222
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
223
- name: "transferOwnership",
224
- outputs: [],
225
- stateMutability: "nonpayable",
226
- type: "function",
227
- },
228
- {
229
- inputs: [],
230
- name: "unlockStake",
231
- outputs: [],
232
- stateMutability: "nonpayable",
233
- type: "function",
234
- },
235
- {
236
- inputs: [
237
- { internalType: "address payable", name: "to", type: "address" },
238
- { internalType: "address", name: "token", type: "address" },
239
- { internalType: "uint256", name: "amount", type: "uint256" },
240
- ],
241
- name: "withdraw",
242
- outputs: [],
243
- stateMutability: "nonpayable",
244
- type: "function",
245
- },
246
- {
247
- inputs: [
248
- {
249
- internalType: "address payable",
250
- name: "withdrawAddress",
251
- type: "address",
252
- },
253
- ],
254
- name: "withdrawStake",
255
- outputs: [],
256
- stateMutability: "nonpayable",
257
- type: "function",
258
- },
259
- ] as const;
@@ -1,373 +0,0 @@
1
- export const webauthnValidationModuleAbi = [
2
- {
3
- type: "constructor",
4
- inputs: [
5
- {
6
- name: "_entryPoint",
7
- type: "address",
8
- internalType: "contract IEntryPoint",
9
- },
10
- {
11
- name: "_accountImpl",
12
- type: "address",
13
- internalType: "contract ModularAccount",
14
- },
15
- {
16
- name: "_webauthnValidationModule",
17
- type: "address",
18
- internalType: "address",
19
- },
20
- {
21
- name: "owner",
22
- type: "address",
23
- internalType: "address",
24
- },
25
- ],
26
- stateMutability: "nonpayable",
27
- },
28
- {
29
- type: "function",
30
- name: "ACCOUNT_IMPL",
31
- inputs: [],
32
- outputs: [
33
- {
34
- name: "",
35
- type: "address",
36
- internalType: "contract ModularAccount",
37
- },
38
- ],
39
- stateMutability: "view",
40
- },
41
- {
42
- type: "function",
43
- name: "ENTRY_POINT",
44
- inputs: [],
45
- outputs: [
46
- {
47
- name: "",
48
- type: "address",
49
- internalType: "contract IEntryPoint",
50
- },
51
- ],
52
- stateMutability: "view",
53
- },
54
- {
55
- type: "function",
56
- name: "WEBAUTHN_VALIDATION_MODULE",
57
- inputs: [],
58
- outputs: [
59
- {
60
- name: "",
61
- type: "address",
62
- internalType: "address",
63
- },
64
- ],
65
- stateMutability: "view",
66
- },
67
- {
68
- type: "function",
69
- name: "addStake",
70
- inputs: [
71
- {
72
- name: "unstakeDelay",
73
- type: "uint32",
74
- internalType: "uint32",
75
- },
76
- ],
77
- outputs: [],
78
- stateMutability: "payable",
79
- },
80
- {
81
- type: "function",
82
- name: "createAccount",
83
- inputs: [
84
- {
85
- name: "ownerX",
86
- type: "uint256",
87
- internalType: "uint256",
88
- },
89
- {
90
- name: "ownerY",
91
- type: "uint256",
92
- internalType: "uint256",
93
- },
94
- {
95
- name: "salt",
96
- type: "uint256",
97
- internalType: "uint256",
98
- },
99
- {
100
- name: "entityId",
101
- type: "uint32",
102
- internalType: "uint32",
103
- },
104
- ],
105
- outputs: [
106
- {
107
- name: "",
108
- type: "address",
109
- internalType: "contract ModularAccount",
110
- },
111
- ],
112
- stateMutability: "nonpayable",
113
- },
114
- {
115
- type: "function",
116
- name: "getAddress",
117
- inputs: [
118
- {
119
- name: "ownerX",
120
- type: "uint256",
121
- internalType: "uint256",
122
- },
123
- {
124
- name: "ownerY",
125
- type: "uint256",
126
- internalType: "uint256",
127
- },
128
- {
129
- name: "salt",
130
- type: "uint256",
131
- internalType: "uint256",
132
- },
133
- {
134
- name: "entityId",
135
- type: "uint32",
136
- internalType: "uint32",
137
- },
138
- ],
139
- outputs: [
140
- {
141
- name: "",
142
- type: "address",
143
- internalType: "address",
144
- },
145
- ],
146
- stateMutability: "view",
147
- },
148
- {
149
- type: "function",
150
- name: "getSalt",
151
- inputs: [
152
- {
153
- name: "ownerX",
154
- type: "uint256",
155
- internalType: "uint256",
156
- },
157
- {
158
- name: "ownerY",
159
- type: "uint256",
160
- internalType: "uint256",
161
- },
162
- {
163
- name: "salt",
164
- type: "uint256",
165
- internalType: "uint256",
166
- },
167
- {
168
- name: "entityId",
169
- type: "uint32",
170
- internalType: "uint32",
171
- },
172
- ],
173
- outputs: [
174
- {
175
- name: "",
176
- type: "bytes32",
177
- internalType: "bytes32",
178
- },
179
- ],
180
- stateMutability: "pure",
181
- },
182
- {
183
- type: "function",
184
- name: "owner",
185
- inputs: [],
186
- outputs: [
187
- {
188
- name: "",
189
- type: "address",
190
- internalType: "address",
191
- },
192
- ],
193
- stateMutability: "view",
194
- },
195
- {
196
- type: "function",
197
- name: "renounceOwnership",
198
- inputs: [],
199
- outputs: [],
200
- stateMutability: "nonpayable",
201
- },
202
- {
203
- type: "function",
204
- name: "transferOwnership",
205
- inputs: [
206
- {
207
- name: "newOwner",
208
- type: "address",
209
- internalType: "address",
210
- },
211
- ],
212
- outputs: [],
213
- stateMutability: "nonpayable",
214
- },
215
- {
216
- type: "function",
217
- name: "unlockStake",
218
- inputs: [],
219
- outputs: [],
220
- stateMutability: "nonpayable",
221
- },
222
- {
223
- type: "function",
224
- name: "withdraw",
225
- inputs: [
226
- {
227
- name: "to",
228
- type: "address",
229
- internalType: "address payable",
230
- },
231
- {
232
- name: "token",
233
- type: "address",
234
- internalType: "address",
235
- },
236
- {
237
- name: "amount",
238
- type: "uint256",
239
- internalType: "uint256",
240
- },
241
- ],
242
- outputs: [],
243
- stateMutability: "nonpayable",
244
- },
245
- {
246
- type: "function",
247
- name: "withdrawStake",
248
- inputs: [
249
- {
250
- name: "withdrawAddress",
251
- type: "address",
252
- internalType: "address payable",
253
- },
254
- ],
255
- outputs: [],
256
- stateMutability: "nonpayable",
257
- },
258
- {
259
- type: "event",
260
- name: "ModularAccountDeployed",
261
- inputs: [
262
- {
263
- name: "account",
264
- type: "address",
265
- indexed: true,
266
- internalType: "address",
267
- },
268
- {
269
- name: "ownerX",
270
- type: "uint256",
271
- indexed: true,
272
- internalType: "uint256",
273
- },
274
- {
275
- name: "ownerY",
276
- type: "uint256",
277
- indexed: true,
278
- internalType: "uint256",
279
- },
280
- {
281
- name: "salt",
282
- type: "uint256",
283
- indexed: false,
284
- internalType: "uint256",
285
- },
286
- ],
287
- anonymous: false,
288
- },
289
- {
290
- type: "event",
291
- name: "OwnershipTransferred",
292
- inputs: [
293
- {
294
- name: "previousOwner",
295
- type: "address",
296
- indexed: true,
297
- internalType: "address",
298
- },
299
- {
300
- name: "newOwner",
301
- type: "address",
302
- indexed: true,
303
- internalType: "address",
304
- },
305
- ],
306
- anonymous: false,
307
- },
308
- {
309
- type: "error",
310
- name: "AddressEmptyCode",
311
- inputs: [
312
- {
313
- name: "target",
314
- type: "address",
315
- internalType: "address",
316
- },
317
- ],
318
- },
319
- {
320
- type: "error",
321
- name: "AddressInsufficientBalance",
322
- inputs: [
323
- {
324
- name: "account",
325
- type: "address",
326
- internalType: "address",
327
- },
328
- ],
329
- },
330
- {
331
- type: "error",
332
- name: "FailedInnerCall",
333
- inputs: [],
334
- },
335
- {
336
- type: "error",
337
- name: "OwnableInvalidOwner",
338
- inputs: [
339
- {
340
- name: "owner",
341
- type: "address",
342
- internalType: "address",
343
- },
344
- ],
345
- },
346
- {
347
- type: "error",
348
- name: "OwnableUnauthorizedAccount",
349
- inputs: [
350
- {
351
- name: "account",
352
- type: "address",
353
- internalType: "address",
354
- },
355
- ],
356
- },
357
- {
358
- type: "error",
359
- name: "SafeERC20FailedOperation",
360
- inputs: [
361
- {
362
- name: "token",
363
- type: "address",
364
- internalType: "address",
365
- },
366
- ],
367
- },
368
- {
369
- type: "error",
370
- name: "TransferFailed",
371
- inputs: [],
372
- },
373
- ] as const;
@@ -1,28 +0,0 @@
1
- import { encodeAbiParameters, type Hex } from "viem";
2
-
3
- export const WebAuthnValidationModule = {
4
- encodeOnInstallData: (args: {
5
- entityId: number;
6
- x: bigint;
7
- y: bigint;
8
- }): Hex => {
9
- const { entityId, x, y } = args;
10
- return encodeAbiParameters(
11
- [{ type: "uint32" }, { type: "uint256" }, { type: "uint256" }],
12
- [entityId, x, y],
13
- );
14
- },
15
-
16
- encodeOnUninstallData: (args: { entityId: number }): Hex => {
17
- const { entityId } = args;
18
-
19
- return encodeAbiParameters(
20
- [
21
- {
22
- type: "uint32",
23
- },
24
- ],
25
- [entityId],
26
- );
27
- },
28
- };