@account-kit/smart-contracts 4.7.0 → 4.8.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 (151) hide show
  1. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.d.ts +492 -0
  2. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js +639 -0
  3. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js.map +1 -0
  4. package/dist/esm/src/ma-v2/abis/modularAccountAbi.d.ts +954 -0
  5. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js +1242 -0
  6. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js.map +1 -0
  7. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +991 -0
  8. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js +1289 -0
  9. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js.map +1 -0
  10. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1001 -0
  11. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js +1302 -0
  12. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js.map +1 -0
  13. package/dist/esm/src/ma-v2/account/nativeSMASigner.d.ts +238 -0
  14. package/dist/esm/src/ma-v2/account/nativeSMASigner.js +88 -0
  15. package/dist/esm/src/ma-v2/account/nativeSMASigner.js.map +1 -0
  16. package/dist/esm/src/ma-v2/account/semiModularAccountV2.d.ts +41 -0
  17. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js +148 -0
  18. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js.map +1 -0
  19. package/dist/esm/src/ma-v2/actions/common/types.d.ts +31 -0
  20. package/dist/esm/src/ma-v2/actions/common/types.js +6 -0
  21. package/dist/esm/src/ma-v2/actions/common/types.js.map +1 -0
  22. package/dist/esm/src/ma-v2/actions/common/utils.d.ts +76 -0
  23. package/dist/esm/src/ma-v2/actions/common/utils.js +100 -0
  24. package/dist/esm/src/ma-v2/actions/common/utils.js.map +1 -0
  25. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.d.ts +71 -0
  26. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js +109 -0
  27. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js.map +1 -0
  28. package/dist/esm/src/ma-v2/client/client.d.ts +6 -0
  29. package/dist/esm/src/ma-v2/client/client.js +40 -0
  30. package/dist/esm/src/ma-v2/client/client.js.map +1 -0
  31. package/dist/esm/src/ma-v2/index.d.ts +26 -0
  32. package/dist/esm/src/ma-v2/index.js +24 -0
  33. package/dist/esm/src/ma-v2/index.js.map +1 -0
  34. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +556 -0
  35. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js +716 -0
  36. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js.map +1 -0
  37. package/dist/esm/src/ma-v2/modules/allowlist-module/module.d.ts +579 -0
  38. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js +56 -0
  39. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js.map +1 -0
  40. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +312 -0
  41. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js +404 -0
  42. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js.map +1 -0
  43. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.d.ts +322 -0
  44. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js +14 -0
  45. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js.map +1 -0
  46. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +186 -0
  47. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js +242 -0
  48. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js.map +1 -0
  49. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.d.ts +196 -0
  50. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js +25 -0
  51. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js.map +1 -0
  52. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +45 -0
  53. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js +331 -0
  54. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js.map +1 -0
  55. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.d.ts +10 -0
  56. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js +16 -0
  57. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js.map +1 -0
  58. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.d.ts +239 -0
  59. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js +93 -0
  60. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js.map +1 -0
  61. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +229 -0
  62. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js +296 -0
  63. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js.map +1 -0
  64. package/dist/esm/src/ma-v2/modules/time-range-module/module.d.ts +245 -0
  65. package/dist/esm/src/ma-v2/modules/time-range-module/module.js +42 -0
  66. package/dist/esm/src/ma-v2/modules/time-range-module/module.js.map +1 -0
  67. package/dist/esm/src/ma-v2/modules/utils.d.ts +91 -0
  68. package/dist/esm/src/ma-v2/modules/utils.js +188 -0
  69. package/dist/esm/src/ma-v2/modules/utils.js.map +1 -0
  70. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +287 -0
  71. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +374 -0
  72. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +1 -0
  73. package/dist/esm/src/ma-v2/utils.d.ts +16 -0
  74. package/dist/esm/src/ma-v2/utils.js +105 -0
  75. package/dist/esm/src/ma-v2/utils.js.map +1 -0
  76. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts +493 -0
  77. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts.map +1 -0
  78. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts +955 -0
  79. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts.map +1 -0
  80. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +992 -0
  81. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts.map +1 -0
  82. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1002 -0
  83. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts.map +1 -0
  84. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts +239 -0
  85. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts.map +1 -0
  86. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts +42 -0
  87. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts.map +1 -0
  88. package/dist/types/src/ma-v2/actions/common/types.d.ts +32 -0
  89. package/dist/types/src/ma-v2/actions/common/types.d.ts.map +1 -0
  90. package/dist/types/src/ma-v2/actions/common/utils.d.ts +77 -0
  91. package/dist/types/src/ma-v2/actions/common/utils.d.ts.map +1 -0
  92. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts +72 -0
  93. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts.map +1 -0
  94. package/dist/types/src/ma-v2/client/client.d.ts +7 -0
  95. package/dist/types/src/ma-v2/client/client.d.ts.map +1 -0
  96. package/dist/types/src/ma-v2/index.d.ts +27 -0
  97. package/dist/types/src/ma-v2/index.d.ts.map +1 -0
  98. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +557 -0
  99. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts.map +1 -0
  100. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts +580 -0
  101. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts.map +1 -0
  102. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +313 -0
  103. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts.map +1 -0
  104. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts +323 -0
  105. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts.map +1 -0
  106. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +187 -0
  107. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts.map +1 -0
  108. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts +197 -0
  109. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts.map +1 -0
  110. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +46 -0
  111. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts.map +1 -0
  112. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts +11 -0
  113. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts.map +1 -0
  114. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts +240 -0
  115. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts.map +1 -0
  116. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +230 -0
  117. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts.map +1 -0
  118. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts +246 -0
  119. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts.map +1 -0
  120. package/dist/types/src/ma-v2/modules/utils.d.ts +92 -0
  121. package/dist/types/src/ma-v2/modules/utils.d.ts.map +1 -0
  122. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +288 -0
  123. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +1 -0
  124. package/dist/types/src/ma-v2/utils.d.ts +17 -0
  125. package/dist/types/src/ma-v2/utils.d.ts.map +1 -0
  126. package/package.json +10 -5
  127. package/src/ma-v2/abis/accountFactoryAbi.ts +638 -0
  128. package/src/ma-v2/abis/modularAccountAbi.ts +1241 -0
  129. package/src/ma-v2/abis/semiModularAccountBytecodeAbi.ts +1288 -0
  130. package/src/ma-v2/abis/semiModularAccountStorageAbi.ts +1301 -0
  131. package/src/ma-v2/account/nativeSMASigner.ts +121 -0
  132. package/src/ma-v2/account/semiModularAccountV2.ts +289 -0
  133. package/src/ma-v2/actions/common/types.ts +37 -0
  134. package/src/ma-v2/actions/common/utils.ts +103 -0
  135. package/src/ma-v2/actions/install-validation/installValidation.ts +213 -0
  136. package/src/ma-v2/client/client.ts +74 -0
  137. package/src/ma-v2/index.ts +47 -0
  138. package/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.ts +715 -0
  139. package/src/ma-v2/modules/allowlist-module/module.ts +87 -0
  140. package/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.ts +403 -0
  141. package/src/ma-v2/modules/native-token-limit-module/module.ts +21 -0
  142. package/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts +241 -0
  143. package/src/ma-v2/modules/paymaster-guard-module/module.ts +35 -0
  144. package/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts +330 -0
  145. package/src/ma-v2/modules/single-signer-validation/module.ts +24 -0
  146. package/src/ma-v2/modules/single-signer-validation/signer.ts +127 -0
  147. package/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.ts +295 -0
  148. package/src/ma-v2/modules/time-range-module/module.ts +63 -0
  149. package/src/ma-v2/modules/utils.ts +213 -0
  150. package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +373 -0
  151. package/src/ma-v2/utils.ts +138 -0
@@ -0,0 +1,246 @@
1
+ import { type Hex } from "viem";
2
+ export declare const TimeRangeModule: {
3
+ abi: readonly [{
4
+ readonly type: "function";
5
+ readonly name: "moduleId";
6
+ readonly inputs: readonly [];
7
+ readonly outputs: readonly [{
8
+ readonly name: "";
9
+ readonly type: "string";
10
+ readonly internalType: "string";
11
+ }];
12
+ readonly stateMutability: "pure";
13
+ }, {
14
+ readonly type: "function";
15
+ readonly name: "onInstall";
16
+ readonly inputs: readonly [{
17
+ readonly name: "data";
18
+ readonly type: "bytes";
19
+ readonly internalType: "bytes";
20
+ }];
21
+ readonly outputs: readonly [];
22
+ readonly stateMutability: "nonpayable";
23
+ }, {
24
+ readonly type: "function";
25
+ readonly name: "onUninstall";
26
+ readonly inputs: readonly [{
27
+ readonly name: "data";
28
+ readonly type: "bytes";
29
+ readonly internalType: "bytes";
30
+ }];
31
+ readonly outputs: readonly [];
32
+ readonly stateMutability: "nonpayable";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "preRuntimeValidationHook";
36
+ readonly inputs: readonly [{
37
+ readonly name: "entityId";
38
+ readonly type: "uint32";
39
+ readonly internalType: "uint32";
40
+ }, {
41
+ readonly name: "";
42
+ readonly type: "address";
43
+ readonly internalType: "address";
44
+ }, {
45
+ readonly name: "";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }, {
49
+ readonly name: "";
50
+ readonly type: "bytes";
51
+ readonly internalType: "bytes";
52
+ }, {
53
+ readonly name: "";
54
+ readonly type: "bytes";
55
+ readonly internalType: "bytes";
56
+ }];
57
+ readonly outputs: readonly [];
58
+ readonly stateMutability: "view";
59
+ }, {
60
+ readonly type: "function";
61
+ readonly name: "preSignatureValidationHook";
62
+ readonly inputs: readonly [{
63
+ readonly name: "";
64
+ readonly type: "uint32";
65
+ readonly internalType: "uint32";
66
+ }, {
67
+ readonly name: "";
68
+ readonly type: "address";
69
+ readonly internalType: "address";
70
+ }, {
71
+ readonly name: "";
72
+ readonly type: "bytes32";
73
+ readonly internalType: "bytes32";
74
+ }, {
75
+ readonly name: "";
76
+ readonly type: "bytes";
77
+ readonly internalType: "bytes";
78
+ }];
79
+ readonly outputs: readonly [];
80
+ readonly stateMutability: "pure";
81
+ }, {
82
+ readonly type: "function";
83
+ readonly name: "preUserOpValidationHook";
84
+ readonly inputs: readonly [{
85
+ readonly name: "entityId";
86
+ readonly type: "uint32";
87
+ readonly internalType: "uint32";
88
+ }, {
89
+ readonly name: "userOp";
90
+ readonly type: "tuple";
91
+ readonly internalType: "struct PackedUserOperation";
92
+ readonly components: readonly [{
93
+ readonly name: "sender";
94
+ readonly type: "address";
95
+ readonly internalType: "address";
96
+ }, {
97
+ readonly name: "nonce";
98
+ readonly type: "uint256";
99
+ readonly internalType: "uint256";
100
+ }, {
101
+ readonly name: "initCode";
102
+ readonly type: "bytes";
103
+ readonly internalType: "bytes";
104
+ }, {
105
+ readonly name: "callData";
106
+ readonly type: "bytes";
107
+ readonly internalType: "bytes";
108
+ }, {
109
+ readonly name: "accountGasLimits";
110
+ readonly type: "bytes32";
111
+ readonly internalType: "bytes32";
112
+ }, {
113
+ readonly name: "preVerificationGas";
114
+ readonly type: "uint256";
115
+ readonly internalType: "uint256";
116
+ }, {
117
+ readonly name: "gasFees";
118
+ readonly type: "bytes32";
119
+ readonly internalType: "bytes32";
120
+ }, {
121
+ readonly name: "paymasterAndData";
122
+ readonly type: "bytes";
123
+ readonly internalType: "bytes";
124
+ }, {
125
+ readonly name: "signature";
126
+ readonly type: "bytes";
127
+ readonly internalType: "bytes";
128
+ }];
129
+ }, {
130
+ readonly name: "";
131
+ readonly type: "bytes32";
132
+ readonly internalType: "bytes32";
133
+ }];
134
+ readonly outputs: readonly [{
135
+ readonly name: "";
136
+ readonly type: "uint256";
137
+ readonly internalType: "uint256";
138
+ }];
139
+ readonly stateMutability: "view";
140
+ }, {
141
+ readonly type: "function";
142
+ readonly name: "setTimeRange";
143
+ readonly inputs: readonly [{
144
+ readonly name: "entityId";
145
+ readonly type: "uint32";
146
+ readonly internalType: "uint32";
147
+ }, {
148
+ readonly name: "validUntil";
149
+ readonly type: "uint48";
150
+ readonly internalType: "uint48";
151
+ }, {
152
+ readonly name: "validAfter";
153
+ readonly type: "uint48";
154
+ readonly internalType: "uint48";
155
+ }];
156
+ readonly outputs: readonly [];
157
+ readonly stateMutability: "nonpayable";
158
+ }, {
159
+ readonly type: "function";
160
+ readonly name: "supportsInterface";
161
+ readonly inputs: readonly [{
162
+ readonly name: "interfaceId";
163
+ readonly type: "bytes4";
164
+ readonly internalType: "bytes4";
165
+ }];
166
+ readonly outputs: readonly [{
167
+ readonly name: "";
168
+ readonly type: "bool";
169
+ readonly internalType: "bool";
170
+ }];
171
+ readonly stateMutability: "view";
172
+ }, {
173
+ readonly type: "function";
174
+ readonly name: "timeRanges";
175
+ readonly inputs: readonly [{
176
+ readonly name: "entityId";
177
+ readonly type: "uint32";
178
+ readonly internalType: "uint32";
179
+ }, {
180
+ readonly name: "account";
181
+ readonly type: "address";
182
+ readonly internalType: "address";
183
+ }];
184
+ readonly outputs: readonly [{
185
+ readonly name: "validUntil";
186
+ readonly type: "uint48";
187
+ readonly internalType: "uint48";
188
+ }, {
189
+ readonly name: "validAfter";
190
+ readonly type: "uint48";
191
+ readonly internalType: "uint48";
192
+ }];
193
+ readonly stateMutability: "view";
194
+ }, {
195
+ readonly type: "event";
196
+ readonly name: "TimeRangeSet";
197
+ readonly inputs: readonly [{
198
+ readonly name: "entityId";
199
+ readonly type: "uint32";
200
+ readonly indexed: true;
201
+ readonly internalType: "uint32";
202
+ }, {
203
+ readonly name: "account";
204
+ readonly type: "address";
205
+ readonly indexed: true;
206
+ readonly internalType: "address";
207
+ }, {
208
+ readonly name: "validUntil";
209
+ readonly type: "uint48";
210
+ readonly indexed: false;
211
+ readonly internalType: "uint48";
212
+ }, {
213
+ readonly name: "validAfter";
214
+ readonly type: "uint48";
215
+ readonly indexed: false;
216
+ readonly internalType: "uint48";
217
+ }];
218
+ readonly anonymous: false;
219
+ }, {
220
+ readonly type: "error";
221
+ readonly name: "NotImplemented";
222
+ readonly inputs: readonly [];
223
+ }, {
224
+ readonly type: "error";
225
+ readonly name: "TimeRangeNotValid";
226
+ readonly inputs: readonly [];
227
+ }, {
228
+ readonly type: "error";
229
+ readonly name: "UnexpectedDataPassed";
230
+ readonly inputs: readonly [];
231
+ }];
232
+ encodeOnInstallData: (args: {
233
+ entityId: number;
234
+ validUntil: number;
235
+ validAfter: number;
236
+ }) => Hex;
237
+ encodeOnUninstallData: (args: {
238
+ entityId: number;
239
+ }) => Hex;
240
+ encodeSetTimeRange: (args: {
241
+ entityId: number;
242
+ validUntil: number;
243
+ validAfter: number;
244
+ }) => Hex;
245
+ };
246
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/ma-v2/modules/time-range-module/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAIrD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAEE;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,KAAG,GAAG;kCAkBuB;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAG,GAAG;+BAY7B;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,KAAG,GAAG;CAkBR,CAAC"}
@@ -0,0 +1,92 @@
1
+ import type { Chain, Address } from "viem";
2
+ /**
3
+ * Maps a given chain to a specific address of the webauthn validation module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { getDefaultWebauthnValidationModuleAddress } from "@account-kit/smart-contracts";
8
+ * import { Chain, Address } from "viem";
9
+ *
10
+ * const chain: Chain = ...
11
+ * const webauthnValidationAddress: Address = getDefaultWebauthnValidationModuleAddress(chain);
12
+ * ```
13
+ * @param {Chain} chain The chain object containing the chain ID to map
14
+ * @returns {Address} The webauthn validation module address associated with the specified chain ID or a default address if no specific mapping exists
15
+ */
16
+ export declare const getDefaultWebauthnValidationModuleAddress: (chain: Chain) => Address;
17
+ /**
18
+ * Maps a given chain to a specific address of the time range module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * import { getDefaultTimeRangeModuleAddress } from "@account-kit/smart-contracts";
23
+ * import { Chain, Address } from "viem";
24
+ *
25
+ * const chain: Chain = ...
26
+ * const timeRangeModuleAddress: Address = getDefaultTimeRangeModuleAddress(chain);
27
+ * ```
28
+ * @param {Chain} chain The chain object containing the chain ID to map
29
+ * @returns {Address} The time range module address associated with the specified chain ID or a default address if no specific mapping exists
30
+ */
31
+ export declare const getDefaultTimeRangeModuleAddress: (chain: Chain) => Address;
32
+ /**
33
+ * Maps a given chain to a specific address of the single signer validation module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * import { getDefaultSingleSignerValidationModuleAddress } from "@account-kit/smart-contracts";
38
+ * import { Chain, Address } from "viem";
39
+ *
40
+ * const chain: Chain = ...
41
+ * const singleSignerValidationAddress: Address = getDefaultSingleSignerValidationModuleAddress(chain);
42
+ * ```
43
+ * @param {Chain} chain The chain object containing the chain ID to map
44
+ * @returns {Address} The single signer validation module address associated with the specified chain ID or a default address if no specific mapping exists
45
+ */
46
+ export declare const getDefaultSingleSignerValidationModuleAddress: (chain: Chain) => Address;
47
+ /**
48
+ * Maps a given chain to a specific address of the paymaster guard module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * import { getDefaultPaymasterGuardModuleAddress } from "@account-kit/smart-contracts";
53
+ * import { Chain, Address } from "viem";
54
+ *
55
+ * const chain: Chain = ...
56
+ * const paymasterGuardAddress: Address = getDefaultPaymasterGuardModuleAddress(chain);
57
+ * ```
58
+ * @param {Chain} chain The chain object containing the chain ID to map
59
+ * @returns {Address} The paymaster guard module address associated with the specified chain ID or a default address if no specific mapping exists
60
+ */
61
+ export declare const getDefaultPaymasterGuardModuleAddress: (chain: Chain) => Address;
62
+ /**
63
+ * Maps a given chain to a specific address of the native token limit module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * import { getDefaultNativeTokenLimitModuleAddress } from "@account-kit/smart-contracts";
68
+ * import { Chain, Address } from "viem";
69
+ *
70
+ * const chain: Chain = ...
71
+ * const nativeTokenLimitAddress: Address = getDefaultNativeTokenLimitModuleAddress(chain);
72
+ * ```
73
+ * @param {Chain} chain The chain object containing the chain ID to map
74
+ * @returns {Address} The native token limit module address associated with the specified chain ID or a default address if no specific mapping exists
75
+ */
76
+ export declare const getDefaultNativeTokenLimitModuleAddress: (chain: Chain) => Address;
77
+ /**
78
+ * Maps a given chain to a specific address of the allowlist module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * import { getDefaultAllowlistModuleAddress } from "@account-kit/smart-contracts";
83
+ * import { Chain, Address } from "viem";
84
+ *
85
+ * const chain: Chain = ...
86
+ * const allowlistModule: Address = getDefaultAllowlistModuleAddress(chain);
87
+ * ```
88
+ * @param {Chain} chain The chain object containing the chain ID to map
89
+ * @returns {Address} The allowlist module address associated with the specified chain ID or a default address if no specific mapping exists
90
+ */
91
+ export declare const getDefaultAllowlistModuleAddress: (chain: Chain) => Address;
92
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/ma-v2/modules/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAc3C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yCAAyC,UAC7C,KAAK,KACX,OAgBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,UAAW,KAAK,KAAG,OAgB/D,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6CAA6C,UACjD,KAAK,KACX,OAgBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qCAAqC,UACzC,KAAK,KACX,OAgBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uCAAuC,UAC3C,KAAK,KACX,OAgBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,UAAW,KAAK,KAAG,OAgB/D,CAAC"}
@@ -0,0 +1,288 @@
1
+ export declare const webauthnValidationModuleAbi: readonly [{
2
+ readonly type: "constructor";
3
+ readonly inputs: readonly [{
4
+ readonly name: "_entryPoint";
5
+ readonly type: "address";
6
+ readonly internalType: "contract IEntryPoint";
7
+ }, {
8
+ readonly name: "_accountImpl";
9
+ readonly type: "address";
10
+ readonly internalType: "contract ModularAccount";
11
+ }, {
12
+ readonly name: "_webauthnValidationModule";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }, {
16
+ readonly name: "owner";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }];
20
+ readonly stateMutability: "nonpayable";
21
+ }, {
22
+ readonly type: "function";
23
+ readonly name: "ACCOUNT_IMPL";
24
+ readonly inputs: readonly [];
25
+ readonly outputs: readonly [{
26
+ readonly name: "";
27
+ readonly type: "address";
28
+ readonly internalType: "contract ModularAccount";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ }, {
32
+ readonly type: "function";
33
+ readonly name: "ENTRY_POINT";
34
+ readonly inputs: readonly [];
35
+ readonly outputs: readonly [{
36
+ readonly name: "";
37
+ readonly type: "address";
38
+ readonly internalType: "contract IEntryPoint";
39
+ }];
40
+ readonly stateMutability: "view";
41
+ }, {
42
+ readonly type: "function";
43
+ readonly name: "WEBAUTHN_VALIDATION_MODULE";
44
+ readonly inputs: readonly [];
45
+ readonly outputs: readonly [{
46
+ readonly name: "";
47
+ readonly type: "address";
48
+ readonly internalType: "address";
49
+ }];
50
+ readonly stateMutability: "view";
51
+ }, {
52
+ readonly type: "function";
53
+ readonly name: "addStake";
54
+ readonly inputs: readonly [{
55
+ readonly name: "unstakeDelay";
56
+ readonly type: "uint32";
57
+ readonly internalType: "uint32";
58
+ }];
59
+ readonly outputs: readonly [];
60
+ readonly stateMutability: "payable";
61
+ }, {
62
+ readonly type: "function";
63
+ readonly name: "createAccount";
64
+ readonly inputs: readonly [{
65
+ readonly name: "ownerX";
66
+ readonly type: "uint256";
67
+ readonly internalType: "uint256";
68
+ }, {
69
+ readonly name: "ownerY";
70
+ readonly type: "uint256";
71
+ readonly internalType: "uint256";
72
+ }, {
73
+ readonly name: "salt";
74
+ readonly type: "uint256";
75
+ readonly internalType: "uint256";
76
+ }, {
77
+ readonly name: "entityId";
78
+ readonly type: "uint32";
79
+ readonly internalType: "uint32";
80
+ }];
81
+ readonly outputs: readonly [{
82
+ readonly name: "";
83
+ readonly type: "address";
84
+ readonly internalType: "contract ModularAccount";
85
+ }];
86
+ readonly stateMutability: "nonpayable";
87
+ }, {
88
+ readonly type: "function";
89
+ readonly name: "getAddress";
90
+ readonly inputs: readonly [{
91
+ readonly name: "ownerX";
92
+ readonly type: "uint256";
93
+ readonly internalType: "uint256";
94
+ }, {
95
+ readonly name: "ownerY";
96
+ readonly type: "uint256";
97
+ readonly internalType: "uint256";
98
+ }, {
99
+ readonly name: "salt";
100
+ readonly type: "uint256";
101
+ readonly internalType: "uint256";
102
+ }, {
103
+ readonly name: "entityId";
104
+ readonly type: "uint32";
105
+ readonly internalType: "uint32";
106
+ }];
107
+ readonly outputs: readonly [{
108
+ readonly name: "";
109
+ readonly type: "address";
110
+ readonly internalType: "address";
111
+ }];
112
+ readonly stateMutability: "view";
113
+ }, {
114
+ readonly type: "function";
115
+ readonly name: "getSalt";
116
+ readonly inputs: readonly [{
117
+ readonly name: "ownerX";
118
+ readonly type: "uint256";
119
+ readonly internalType: "uint256";
120
+ }, {
121
+ readonly name: "ownerY";
122
+ readonly type: "uint256";
123
+ readonly internalType: "uint256";
124
+ }, {
125
+ readonly name: "salt";
126
+ readonly type: "uint256";
127
+ readonly internalType: "uint256";
128
+ }, {
129
+ readonly name: "entityId";
130
+ readonly type: "uint32";
131
+ readonly internalType: "uint32";
132
+ }];
133
+ readonly outputs: readonly [{
134
+ readonly name: "";
135
+ readonly type: "bytes32";
136
+ readonly internalType: "bytes32";
137
+ }];
138
+ readonly stateMutability: "pure";
139
+ }, {
140
+ readonly type: "function";
141
+ readonly name: "owner";
142
+ readonly inputs: readonly [];
143
+ readonly outputs: readonly [{
144
+ readonly name: "";
145
+ readonly type: "address";
146
+ readonly internalType: "address";
147
+ }];
148
+ readonly stateMutability: "view";
149
+ }, {
150
+ readonly type: "function";
151
+ readonly name: "renounceOwnership";
152
+ readonly inputs: readonly [];
153
+ readonly outputs: readonly [];
154
+ readonly stateMutability: "nonpayable";
155
+ }, {
156
+ readonly type: "function";
157
+ readonly name: "transferOwnership";
158
+ readonly inputs: readonly [{
159
+ readonly name: "newOwner";
160
+ readonly type: "address";
161
+ readonly internalType: "address";
162
+ }];
163
+ readonly outputs: readonly [];
164
+ readonly stateMutability: "nonpayable";
165
+ }, {
166
+ readonly type: "function";
167
+ readonly name: "unlockStake";
168
+ readonly inputs: readonly [];
169
+ readonly outputs: readonly [];
170
+ readonly stateMutability: "nonpayable";
171
+ }, {
172
+ readonly type: "function";
173
+ readonly name: "withdraw";
174
+ readonly inputs: readonly [{
175
+ readonly name: "to";
176
+ readonly type: "address";
177
+ readonly internalType: "address payable";
178
+ }, {
179
+ readonly name: "token";
180
+ readonly type: "address";
181
+ readonly internalType: "address";
182
+ }, {
183
+ readonly name: "amount";
184
+ readonly type: "uint256";
185
+ readonly internalType: "uint256";
186
+ }];
187
+ readonly outputs: readonly [];
188
+ readonly stateMutability: "nonpayable";
189
+ }, {
190
+ readonly type: "function";
191
+ readonly name: "withdrawStake";
192
+ readonly inputs: readonly [{
193
+ readonly name: "withdrawAddress";
194
+ readonly type: "address";
195
+ readonly internalType: "address payable";
196
+ }];
197
+ readonly outputs: readonly [];
198
+ readonly stateMutability: "nonpayable";
199
+ }, {
200
+ readonly type: "event";
201
+ readonly name: "ModularAccountDeployed";
202
+ readonly inputs: readonly [{
203
+ readonly name: "account";
204
+ readonly type: "address";
205
+ readonly indexed: true;
206
+ readonly internalType: "address";
207
+ }, {
208
+ readonly name: "ownerX";
209
+ readonly type: "uint256";
210
+ readonly indexed: true;
211
+ readonly internalType: "uint256";
212
+ }, {
213
+ readonly name: "ownerY";
214
+ readonly type: "uint256";
215
+ readonly indexed: true;
216
+ readonly internalType: "uint256";
217
+ }, {
218
+ readonly name: "salt";
219
+ readonly type: "uint256";
220
+ readonly indexed: false;
221
+ readonly internalType: "uint256";
222
+ }];
223
+ readonly anonymous: false;
224
+ }, {
225
+ readonly type: "event";
226
+ readonly name: "OwnershipTransferred";
227
+ readonly inputs: readonly [{
228
+ readonly name: "previousOwner";
229
+ readonly type: "address";
230
+ readonly indexed: true;
231
+ readonly internalType: "address";
232
+ }, {
233
+ readonly name: "newOwner";
234
+ readonly type: "address";
235
+ readonly indexed: true;
236
+ readonly internalType: "address";
237
+ }];
238
+ readonly anonymous: false;
239
+ }, {
240
+ readonly type: "error";
241
+ readonly name: "AddressEmptyCode";
242
+ readonly inputs: readonly [{
243
+ readonly name: "target";
244
+ readonly type: "address";
245
+ readonly internalType: "address";
246
+ }];
247
+ }, {
248
+ readonly type: "error";
249
+ readonly name: "AddressInsufficientBalance";
250
+ readonly inputs: readonly [{
251
+ readonly name: "account";
252
+ readonly type: "address";
253
+ readonly internalType: "address";
254
+ }];
255
+ }, {
256
+ readonly type: "error";
257
+ readonly name: "FailedInnerCall";
258
+ readonly inputs: readonly [];
259
+ }, {
260
+ readonly type: "error";
261
+ readonly name: "OwnableInvalidOwner";
262
+ readonly inputs: readonly [{
263
+ readonly name: "owner";
264
+ readonly type: "address";
265
+ readonly internalType: "address";
266
+ }];
267
+ }, {
268
+ readonly type: "error";
269
+ readonly name: "OwnableUnauthorizedAccount";
270
+ readonly inputs: readonly [{
271
+ readonly name: "account";
272
+ readonly type: "address";
273
+ readonly internalType: "address";
274
+ }];
275
+ }, {
276
+ readonly type: "error";
277
+ readonly name: "SafeERC20FailedOperation";
278
+ readonly inputs: readonly [{
279
+ readonly name: "token";
280
+ readonly type: "address";
281
+ readonly internalType: "address";
282
+ }];
283
+ }, {
284
+ readonly type: "error";
285
+ readonly name: "TransferFailed";
286
+ readonly inputs: readonly [];
287
+ }];
288
+ //# sourceMappingURL=webauthnValidationAbi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webauthnValidationAbi.d.ts","sourceRoot":"","sources":["../../../../../../../src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoX9B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type Hex, type Chain, type Address } from "viem";
2
+ export declare const DEFAULT_OWNER_ENTITY_ID = 0;
3
+ export type PackUOSignatureParams = {
4
+ validationSignature: Hex;
5
+ };
6
+ export type Pack1271SignatureParams = {
7
+ validationSignature: Hex;
8
+ entityId: number;
9
+ };
10
+ export declare const packUOSignature: ({ validationSignature, }: PackUOSignatureParams) => Hex;
11
+ export declare const pack1271Signature: ({ validationSignature, entityId, }: Pack1271SignatureParams) => Hex;
12
+ export declare const getDefaultMAV2FactoryAddress: (chain: Chain) => Address;
13
+ export declare const getDefaultSMAV2BytecodeAddress: (chain: Chain) => Address;
14
+ export declare const getDefaultSMAV2StorageAddress: (chain: Chain) => Address;
15
+ export declare const getDefaultSMAV27702Address: (chain: Chain) => Address;
16
+ export declare const getDefaultMAV2Address: (chain: Chain) => Address;
17
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,GAAG,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAczE,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,MAAM,MAAM,qBAAqB,GAAG;IAElC,mBAAmB,EAAE,GAAG,CAAC;CAC1B,CAAC;AAGF,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,EAAE,GAAG,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,eAAe,6BAGzB,qBAAqB,KAAG,GAE1B,CAAC;AAGF,eAAO,MAAM,iBAAiB,uCAG3B,uBAAuB,KAAG,GAQ5B,CAAC;AAEF,eAAO,MAAM,4BAA4B,UAAW,KAAK,KAAG,OAgB3D,CAAC;AAEF,eAAO,MAAM,8BAA8B,UAAW,KAAK,KAAG,OAgB7D,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAAW,KAAK,KAAG,OAgB5D,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAW,KAAK,KAAG,OAgBzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,KAAK,KAAG,OAgBpD,CAAC"}