@rhinestone/sdk 0.0.0-dev-20260204114155

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 (206) hide show
  1. package/README.md +83 -0
  2. package/dist/src/accounts/error.d.ts +114 -0
  3. package/dist/src/accounts/error.d.ts.map +1 -0
  4. package/dist/src/accounts/error.js +174 -0
  5. package/dist/src/accounts/index.d.ts +48 -0
  6. package/dist/src/accounts/index.d.ts.map +1 -0
  7. package/dist/src/accounts/index.js +643 -0
  8. package/dist/src/accounts/index.test.d.ts +2 -0
  9. package/dist/src/accounts/index.test.d.ts.map +1 -0
  10. package/dist/src/accounts/index.test.js +33 -0
  11. package/dist/src/accounts/json-rpc/index.d.ts +5 -0
  12. package/dist/src/accounts/json-rpc/index.d.ts.map +1 -0
  13. package/dist/src/accounts/json-rpc/index.js +20 -0
  14. package/dist/src/accounts/json-rpc/index.test.d.ts +2 -0
  15. package/dist/src/accounts/json-rpc/index.test.d.ts.map +1 -0
  16. package/dist/src/accounts/json-rpc/index.test.js +33 -0
  17. package/dist/src/accounts/json-rpc/providers.d.ts +5 -0
  18. package/dist/src/accounts/json-rpc/providers.d.ts.map +1 -0
  19. package/dist/src/accounts/json-rpc/providers.js +22 -0
  20. package/dist/src/accounts/json-rpc/providers.test.d.ts +2 -0
  21. package/dist/src/accounts/json-rpc/providers.test.d.ts.map +1 -0
  22. package/dist/src/accounts/json-rpc/providers.test.js +43 -0
  23. package/dist/src/accounts/kernel.d.ts +27 -0
  24. package/dist/src/accounts/kernel.d.ts.map +1 -0
  25. package/dist/src/accounts/kernel.js +281 -0
  26. package/dist/src/accounts/kernel.test.d.ts +2 -0
  27. package/dist/src/accounts/kernel.test.d.ts.map +1 -0
  28. package/dist/src/accounts/kernel.test.js +132 -0
  29. package/dist/src/accounts/nexus.d.ts +33 -0
  30. package/dist/src/accounts/nexus.d.ts.map +1 -0
  31. package/dist/src/accounts/nexus.js +455 -0
  32. package/dist/src/accounts/nexus.test.d.ts +2 -0
  33. package/dist/src/accounts/nexus.test.d.ts.map +1 -0
  34. package/dist/src/accounts/nexus.test.js +118 -0
  35. package/dist/src/accounts/passport.d.ts +9 -0
  36. package/dist/src/accounts/passport.d.ts.map +1 -0
  37. package/dist/src/accounts/passport.js +82 -0
  38. package/dist/src/accounts/safe.d.ts +33 -0
  39. package/dist/src/accounts/safe.d.ts.map +1 -0
  40. package/dist/src/accounts/safe.js +349 -0
  41. package/dist/src/accounts/safe.test.d.ts +2 -0
  42. package/dist/src/accounts/safe.test.d.ts.map +1 -0
  43. package/dist/src/accounts/safe.test.js +118 -0
  44. package/dist/src/accounts/signing/common.d.ts +27 -0
  45. package/dist/src/accounts/signing/common.d.ts.map +1 -0
  46. package/dist/src/accounts/signing/common.js +190 -0
  47. package/dist/src/accounts/signing/message.d.ts +5 -0
  48. package/dist/src/accounts/signing/message.d.ts.map +1 -0
  49. package/dist/src/accounts/signing/message.js +47 -0
  50. package/dist/src/accounts/signing/passkeys.d.ts +36 -0
  51. package/dist/src/accounts/signing/passkeys.d.ts.map +1 -0
  52. package/dist/src/accounts/signing/passkeys.js +125 -0
  53. package/dist/src/accounts/signing/passkeys.test.d.ts +2 -0
  54. package/dist/src/accounts/signing/passkeys.test.d.ts.map +1 -0
  55. package/dist/src/accounts/signing/passkeys.test.js +88 -0
  56. package/dist/src/accounts/signing/typedData.d.ts +5 -0
  57. package/dist/src/accounts/signing/typedData.d.ts.map +1 -0
  58. package/dist/src/accounts/signing/typedData.js +35 -0
  59. package/dist/src/accounts/startale.d.ts +25 -0
  60. package/dist/src/accounts/startale.d.ts.map +1 -0
  61. package/dist/src/accounts/startale.js +112 -0
  62. package/dist/src/accounts/startale.test.d.ts +2 -0
  63. package/dist/src/accounts/startale.test.d.ts.map +1 -0
  64. package/dist/src/accounts/startale.test.js +92 -0
  65. package/dist/src/accounts/utils.d.ts +33 -0
  66. package/dist/src/accounts/utils.d.ts.map +1 -0
  67. package/dist/src/accounts/utils.js +208 -0
  68. package/dist/src/accounts/utils.test.d.ts +2 -0
  69. package/dist/src/accounts/utils.test.d.ts.map +1 -0
  70. package/dist/src/accounts/utils.test.js +49 -0
  71. package/dist/src/accounts/walletClient.d.ts +34 -0
  72. package/dist/src/accounts/walletClient.d.ts.map +1 -0
  73. package/dist/src/accounts/walletClient.js +121 -0
  74. package/dist/src/actions/compact.d.ts +15 -0
  75. package/dist/src/actions/compact.d.ts.map +1 -0
  76. package/dist/src/actions/compact.js +213 -0
  77. package/dist/src/actions/deployment.d.ts +19 -0
  78. package/dist/src/actions/deployment.d.ts.map +1 -0
  79. package/dist/src/actions/deployment.js +78 -0
  80. package/dist/src/actions/ecdsa.d.ts +35 -0
  81. package/dist/src/actions/ecdsa.d.ts.map +1 -0
  82. package/dist/src/actions/ecdsa.js +114 -0
  83. package/dist/src/actions/ecdsa.test.d.ts +2 -0
  84. package/dist/src/actions/ecdsa.test.d.ts.map +1 -0
  85. package/dist/src/actions/ecdsa.test.js +99 -0
  86. package/dist/src/actions/index.d.ts +17 -0
  87. package/dist/src/actions/index.d.ts.map +1 -0
  88. package/dist/src/actions/index.js +53 -0
  89. package/dist/src/actions/mfa.d.ts +37 -0
  90. package/dist/src/actions/mfa.d.ts.map +1 -0
  91. package/dist/src/actions/mfa.js +133 -0
  92. package/dist/src/actions/passkeys.d.ts +37 -0
  93. package/dist/src/actions/passkeys.d.ts.map +1 -0
  94. package/dist/src/actions/passkeys.js +129 -0
  95. package/dist/src/actions/passkeys.test.d.ts +2 -0
  96. package/dist/src/actions/passkeys.test.d.ts.map +1 -0
  97. package/dist/src/actions/passkeys.test.js +54 -0
  98. package/dist/src/actions/recovery.d.ts +33 -0
  99. package/dist/src/actions/recovery.d.ts.map +1 -0
  100. package/dist/src/actions/recovery.js +193 -0
  101. package/dist/src/actions/recovery.test.d.ts +2 -0
  102. package/dist/src/actions/recovery.test.d.ts.map +1 -0
  103. package/dist/src/actions/recovery.test.js +168 -0
  104. package/dist/src/actions/smart-sessions.d.ts +23 -0
  105. package/dist/src/actions/smart-sessions.d.ts.map +1 -0
  106. package/dist/src/actions/smart-sessions.js +52 -0
  107. package/dist/src/errors/index.d.ts +5 -0
  108. package/dist/src/errors/index.d.ts.map +1 -0
  109. package/dist/src/errors/index.js +54 -0
  110. package/dist/src/execution/compact.d.ts +148 -0
  111. package/dist/src/execution/compact.d.ts.map +1 -0
  112. package/dist/src/execution/compact.js +120 -0
  113. package/dist/src/execution/error.d.ts +55 -0
  114. package/dist/src/execution/error.d.ts.map +1 -0
  115. package/dist/src/execution/error.js +78 -0
  116. package/dist/src/execution/index.d.ts +41 -0
  117. package/dist/src/execution/index.d.ts.map +1 -0
  118. package/dist/src/execution/index.js +230 -0
  119. package/dist/src/execution/permit2.d.ts +143 -0
  120. package/dist/src/execution/permit2.d.ts.map +1 -0
  121. package/dist/src/execution/permit2.js +285 -0
  122. package/dist/src/execution/singleChainOps.d.ts +40 -0
  123. package/dist/src/execution/singleChainOps.d.ts.map +1 -0
  124. package/dist/src/execution/singleChainOps.js +46 -0
  125. package/dist/src/execution/types.d.ts +36 -0
  126. package/dist/src/execution/types.d.ts.map +1 -0
  127. package/dist/src/execution/types.js +2 -0
  128. package/dist/src/execution/utils.d.ts +87 -0
  129. package/dist/src/execution/utils.d.ts.map +1 -0
  130. package/dist/src/execution/utils.js +783 -0
  131. package/dist/src/index.d.ts +76 -0
  132. package/dist/src/index.d.ts.map +1 -0
  133. package/dist/src/index.js +319 -0
  134. package/dist/src/modules/abi/smart-session-emissary.d.ts +696 -0
  135. package/dist/src/modules/abi/smart-session-emissary.d.ts.map +1 -0
  136. package/dist/src/modules/abi/smart-session-emissary.js +565 -0
  137. package/dist/src/modules/abi/smart-sessions.d.ts +104 -0
  138. package/dist/src/modules/abi/smart-sessions.d.ts.map +1 -0
  139. package/dist/src/modules/abi/smart-sessions.js +131 -0
  140. package/dist/src/modules/chain-abstraction.d.ts +5 -0
  141. package/dist/src/modules/chain-abstraction.d.ts.map +1 -0
  142. package/dist/src/modules/chain-abstraction.js +7 -0
  143. package/dist/src/modules/common.d.ts +30 -0
  144. package/dist/src/modules/common.d.ts.map +1 -0
  145. package/dist/src/modules/common.js +42 -0
  146. package/dist/src/modules/index.d.ts +11 -0
  147. package/dist/src/modules/index.d.ts.map +1 -0
  148. package/dist/src/modules/index.js +97 -0
  149. package/dist/src/modules/index.test.d.ts +2 -0
  150. package/dist/src/modules/index.test.d.ts.map +1 -0
  151. package/dist/src/modules/index.test.js +81 -0
  152. package/dist/src/modules/legacy.d.ts +10 -0
  153. package/dist/src/modules/legacy.d.ts.map +1 -0
  154. package/dist/src/modules/legacy.js +65 -0
  155. package/dist/src/modules/read.d.ts +9 -0
  156. package/dist/src/modules/read.d.ts.map +1 -0
  157. package/dist/src/modules/read.js +125 -0
  158. package/dist/src/modules/validators/core.d.ts +31 -0
  159. package/dist/src/modules/validators/core.d.ts.map +1 -0
  160. package/dist/src/modules/validators/core.js +284 -0
  161. package/dist/src/modules/validators/core.test.d.ts +2 -0
  162. package/dist/src/modules/validators/core.test.d.ts.map +1 -0
  163. package/dist/src/modules/validators/core.test.js +101 -0
  164. package/dist/src/modules/validators/index.d.ts +4 -0
  165. package/dist/src/modules/validators/index.d.ts.map +1 -0
  166. package/dist/src/modules/validators/index.js +10 -0
  167. package/dist/src/modules/validators/smart-sessions.d.ts +185 -0
  168. package/dist/src/modules/validators/smart-sessions.d.ts.map +1 -0
  169. package/dist/src/modules/validators/smart-sessions.js +624 -0
  170. package/dist/src/orchestrator/client.d.ts +22 -0
  171. package/dist/src/orchestrator/client.d.ts.map +1 -0
  172. package/dist/src/orchestrator/client.js +360 -0
  173. package/dist/src/orchestrator/consts.d.ts +5 -0
  174. package/dist/src/orchestrator/consts.d.ts.map +1 -0
  175. package/dist/src/orchestrator/consts.js +9 -0
  176. package/dist/src/orchestrator/error.d.ts +242 -0
  177. package/dist/src/orchestrator/error.d.ts.map +1 -0
  178. package/dist/src/orchestrator/error.js +283 -0
  179. package/dist/src/orchestrator/index.d.ts +10 -0
  180. package/dist/src/orchestrator/index.d.ts.map +1 -0
  181. package/dist/src/orchestrator/index.js +58 -0
  182. package/dist/src/orchestrator/registry.d.ts +22 -0
  183. package/dist/src/orchestrator/registry.d.ts.map +1 -0
  184. package/dist/src/orchestrator/registry.js +116 -0
  185. package/dist/src/orchestrator/registry.test.d.ts +2 -0
  186. package/dist/src/orchestrator/registry.test.d.ts.map +1 -0
  187. package/dist/src/orchestrator/registry.test.js +154 -0
  188. package/dist/src/orchestrator/types.d.ts +322 -0
  189. package/dist/src/orchestrator/types.d.ts.map +1 -0
  190. package/dist/src/orchestrator/types.js +31 -0
  191. package/dist/src/orchestrator/utils.d.ts +3 -0
  192. package/dist/src/orchestrator/utils.d.ts.map +1 -0
  193. package/dist/src/orchestrator/utils.js +24 -0
  194. package/dist/src/types.d.ts +296 -0
  195. package/dist/src/types.d.ts.map +1 -0
  196. package/dist/src/types.js +2 -0
  197. package/dist/src/utils/index.d.ts +26 -0
  198. package/dist/src/utils/index.d.ts.map +1 -0
  199. package/dist/src/utils/index.js +63 -0
  200. package/dist/test/consts.d.ts +10 -0
  201. package/dist/test/consts.d.ts.map +1 -0
  202. package/dist/test/consts.js +22 -0
  203. package/dist/test/utils/utils.d.ts +5 -0
  204. package/dist/test/utils/utils.d.ts.map +1 -0
  205. package/dist/test/utils/utils.js +20 -0
  206. package/package.json +161 -0
@@ -0,0 +1,565 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const abi = [
4
+ {
5
+ type: 'constructor',
6
+ inputs: [
7
+ { name: 'intentExecutor', type: 'address', internalType: 'address' },
8
+ { name: 'lens', type: 'address', internalType: 'address' },
9
+ ],
10
+ stateMutability: 'nonpayable',
11
+ },
12
+ { type: 'fallback', stateMutability: 'nonpayable' },
13
+ {
14
+ type: 'function',
15
+ name: 'DOMAIN_SEPARATOR',
16
+ inputs: [],
17
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
18
+ stateMutability: 'view',
19
+ },
20
+ {
21
+ type: 'function',
22
+ name: 'INTENT_EXECUTOR',
23
+ inputs: [],
24
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
25
+ stateMutability: 'view',
26
+ },
27
+ {
28
+ type: 'function',
29
+ name: 'LENS',
30
+ inputs: [],
31
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
32
+ stateMutability: 'view',
33
+ },
34
+ {
35
+ type: 'function',
36
+ name: 'eip712Domain',
37
+ inputs: [],
38
+ outputs: [
39
+ { name: 'fields', type: 'bytes1', internalType: 'bytes1' },
40
+ { name: 'name', type: 'string', internalType: 'string' },
41
+ { name: 'version', type: 'string', internalType: 'string' },
42
+ { name: 'chainId', type: 'uint256', internalType: 'uint256' },
43
+ { name: 'verifyingContract', type: 'address', internalType: 'address' },
44
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
45
+ { name: 'extensions', type: 'uint256[]', internalType: 'uint256[]' },
46
+ ],
47
+ stateMutability: 'view',
48
+ },
49
+ {
50
+ type: 'function',
51
+ name: 'getConfig',
52
+ inputs: [
53
+ { name: 'account', type: 'address', internalType: 'address' },
54
+ { name: 'configId', type: 'uint8', internalType: 'uint8' },
55
+ { name: 'validator', type: 'address', internalType: 'address' },
56
+ { name: 'lockTag', type: 'bytes12', internalType: 'bytes12' },
57
+ ],
58
+ outputs: [{ name: 'config', type: 'bytes', internalType: 'bytes' }],
59
+ stateMutability: 'view',
60
+ },
61
+ {
62
+ type: 'function',
63
+ name: 'isValidSignatureWithSender',
64
+ inputs: [
65
+ { name: 'sender', type: 'address', internalType: 'address' },
66
+ { name: 'hash', type: 'bytes32', internalType: 'bytes32' },
67
+ { name: 'signature', type: 'bytes', internalType: 'bytes' },
68
+ ],
69
+ outputs: [{ name: 'result', type: 'bytes4', internalType: 'bytes4' }],
70
+ stateMutability: 'view',
71
+ },
72
+ {
73
+ type: 'function',
74
+ name: 'removeConfig',
75
+ inputs: [
76
+ { name: 'account', type: 'address', internalType: 'address' },
77
+ {
78
+ name: 'config',
79
+ type: 'tuple',
80
+ internalType: 'struct SmartSessionEmissaryConfig',
81
+ components: [
82
+ { name: 'scope', type: 'uint8', internalType: 'enum Scope' },
83
+ {
84
+ name: 'resetPeriod',
85
+ type: 'uint8',
86
+ internalType: 'enum ResetPeriod',
87
+ },
88
+ { name: 'allocator', type: 'address', internalType: 'address' },
89
+ {
90
+ name: 'permissionId',
91
+ type: 'bytes32',
92
+ internalType: 'PermissionId',
93
+ },
94
+ ],
95
+ },
96
+ {
97
+ name: 'disableData',
98
+ type: 'tuple',
99
+ internalType: 'struct SmartSessionEmissaryDisable',
100
+ components: [
101
+ { name: 'allocatorSig', type: 'bytes', internalType: 'bytes' },
102
+ { name: 'userSig', type: 'bytes', internalType: 'bytes' },
103
+ { name: 'expires', type: 'uint256', internalType: 'uint256' },
104
+ {
105
+ name: 'session',
106
+ type: 'tuple',
107
+ internalType: 'struct DisableSession',
108
+ components: [
109
+ {
110
+ name: 'chainDigestIndex',
111
+ type: 'uint8',
112
+ internalType: 'uint8',
113
+ },
114
+ {
115
+ name: 'hashesAndChainIds',
116
+ type: 'tuple[]',
117
+ internalType: 'struct ChainDigest[]',
118
+ components: [
119
+ { name: 'chainId', type: 'uint64', internalType: 'uint64' },
120
+ {
121
+ name: 'sessionDigest',
122
+ type: 'bytes32',
123
+ internalType: 'bytes32',
124
+ },
125
+ ],
126
+ },
127
+ ],
128
+ },
129
+ ],
130
+ },
131
+ ],
132
+ outputs: [],
133
+ stateMutability: 'nonpayable',
134
+ },
135
+ {
136
+ type: 'function',
137
+ name: 'setConfig',
138
+ inputs: [
139
+ { name: 'account', type: 'address', internalType: 'address' },
140
+ {
141
+ name: 'config',
142
+ type: 'tuple',
143
+ internalType: 'struct SmartSessionEmissaryConfig',
144
+ components: [
145
+ { name: 'scope', type: 'uint8', internalType: 'enum Scope' },
146
+ {
147
+ name: 'resetPeriod',
148
+ type: 'uint8',
149
+ internalType: 'enum ResetPeriod',
150
+ },
151
+ { name: 'allocator', type: 'address', internalType: 'address' },
152
+ {
153
+ name: 'permissionId',
154
+ type: 'bytes32',
155
+ internalType: 'PermissionId',
156
+ },
157
+ ],
158
+ },
159
+ {
160
+ name: 'enableData',
161
+ type: 'tuple',
162
+ internalType: 'struct SmartSessionEmissaryEnable',
163
+ components: [
164
+ { name: 'allocatorSig', type: 'bytes', internalType: 'bytes' },
165
+ { name: 'userSig', type: 'bytes', internalType: 'bytes' },
166
+ { name: 'expires', type: 'uint256', internalType: 'uint256' },
167
+ {
168
+ name: 'session',
169
+ type: 'tuple',
170
+ internalType: 'struct EnableSession',
171
+ components: [
172
+ {
173
+ name: 'chainDigestIndex',
174
+ type: 'uint8',
175
+ internalType: 'uint8',
176
+ },
177
+ {
178
+ name: 'hashesAndChainIds',
179
+ type: 'tuple[]',
180
+ internalType: 'struct ChainDigest[]',
181
+ components: [
182
+ { name: 'chainId', type: 'uint64', internalType: 'uint64' },
183
+ {
184
+ name: 'sessionDigest',
185
+ type: 'bytes32',
186
+ internalType: 'bytes32',
187
+ },
188
+ ],
189
+ },
190
+ {
191
+ name: 'sessionToEnable',
192
+ type: 'tuple',
193
+ internalType: 'struct Session',
194
+ components: [
195
+ {
196
+ name: 'sessionValidator',
197
+ type: 'address',
198
+ internalType: 'contract ISessionValidator',
199
+ },
200
+ {
201
+ name: 'sessionValidatorInitData',
202
+ type: 'bytes',
203
+ internalType: 'bytes',
204
+ },
205
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
206
+ {
207
+ name: 'actions',
208
+ type: 'tuple[]',
209
+ internalType: 'struct ActionData[]',
210
+ components: [
211
+ {
212
+ name: 'actionTargetSelector',
213
+ type: 'bytes4',
214
+ internalType: 'bytes4',
215
+ },
216
+ {
217
+ name: 'actionTarget',
218
+ type: 'address',
219
+ internalType: 'address',
220
+ },
221
+ {
222
+ name: 'actionPolicies',
223
+ type: 'tuple[]',
224
+ internalType: 'struct PolicyData[]',
225
+ components: [
226
+ {
227
+ name: 'policy',
228
+ type: 'address',
229
+ internalType: 'address',
230
+ },
231
+ {
232
+ name: 'initData',
233
+ type: 'bytes',
234
+ internalType: 'bytes',
235
+ },
236
+ ],
237
+ },
238
+ ],
239
+ },
240
+ {
241
+ name: 'claimPolicies',
242
+ type: 'tuple[]',
243
+ internalType: 'struct PolicyData[]',
244
+ components: [
245
+ {
246
+ name: 'policy',
247
+ type: 'address',
248
+ internalType: 'address',
249
+ },
250
+ {
251
+ name: 'initData',
252
+ type: 'bytes',
253
+ internalType: 'bytes',
254
+ },
255
+ ],
256
+ },
257
+ {
258
+ name: 'erc7739Policies',
259
+ type: 'tuple',
260
+ internalType: 'struct ERC7739Data',
261
+ components: [
262
+ {
263
+ name: 'allowedERC7739Content',
264
+ type: 'tuple[]',
265
+ internalType: 'struct ERC7739Context[]',
266
+ components: [
267
+ {
268
+ name: 'appDomainSeparator',
269
+ type: 'bytes32',
270
+ internalType: 'bytes32',
271
+ },
272
+ {
273
+ name: 'contentNames',
274
+ type: 'string[]',
275
+ internalType: 'string[]',
276
+ },
277
+ ],
278
+ },
279
+ {
280
+ name: 'erc1271Policies',
281
+ type: 'tuple[]',
282
+ internalType: 'struct PolicyData[]',
283
+ components: [
284
+ {
285
+ name: 'policy',
286
+ type: 'address',
287
+ internalType: 'address',
288
+ },
289
+ {
290
+ name: 'initData',
291
+ type: 'bytes',
292
+ internalType: 'bytes',
293
+ },
294
+ ],
295
+ },
296
+ ],
297
+ },
298
+ ],
299
+ },
300
+ ],
301
+ },
302
+ ],
303
+ },
304
+ ],
305
+ outputs: [],
306
+ stateMutability: 'nonpayable',
307
+ },
308
+ {
309
+ type: 'function',
310
+ name: 'verifyClaim',
311
+ inputs: [
312
+ { name: 'sponsor', type: 'address', internalType: 'address' },
313
+ { name: 'digest', type: 'bytes32', internalType: 'bytes32' },
314
+ { name: '', type: 'bytes32', internalType: 'bytes32' },
315
+ { name: 'emissaryData', type: 'bytes', internalType: 'bytes' },
316
+ { name: 'lockTag', type: 'bytes12', internalType: 'bytes12' },
317
+ ],
318
+ outputs: [{ name: '', type: 'bytes4', internalType: 'bytes4' }],
319
+ stateMutability: 'view',
320
+ },
321
+ {
322
+ type: 'function',
323
+ name: 'verifyExecution',
324
+ inputs: [
325
+ { name: 'sponsor', type: 'address', internalType: 'address' },
326
+ { name: 'digest', type: 'bytes32', internalType: 'bytes32' },
327
+ { name: 'emissaryData', type: 'bytes', internalType: 'bytes' },
328
+ {
329
+ name: 'executions',
330
+ type: 'tuple',
331
+ internalType: 'struct Types.Operation',
332
+ components: [{ name: 'data', type: 'bytes', internalType: 'bytes' }],
333
+ },
334
+ ],
335
+ outputs: [{ name: '', type: 'bytes4', internalType: 'bytes4' }],
336
+ stateMutability: 'nonpayable',
337
+ },
338
+ {
339
+ type: 'event',
340
+ name: 'EmissaryConfigUpdated',
341
+ inputs: [
342
+ {
343
+ name: 'account',
344
+ type: 'address',
345
+ indexed: true,
346
+ internalType: 'address',
347
+ },
348
+ {
349
+ name: 'validator',
350
+ type: 'address',
351
+ indexed: true,
352
+ internalType: 'contract IStatelessValidator',
353
+ },
354
+ {
355
+ name: 'lockTag',
356
+ type: 'bytes12',
357
+ indexed: true,
358
+ internalType: 'bytes12',
359
+ },
360
+ ],
361
+ anonymous: false,
362
+ },
363
+ {
364
+ type: 'event',
365
+ name: 'PolicyEnabled',
366
+ inputs: [
367
+ {
368
+ name: 'permissionId',
369
+ type: 'bytes32',
370
+ indexed: false,
371
+ internalType: 'PermissionId',
372
+ },
373
+ {
374
+ name: 'policyType',
375
+ type: 'uint8',
376
+ indexed: false,
377
+ internalType: 'enum PolicyType',
378
+ },
379
+ {
380
+ name: 'policy',
381
+ type: 'address',
382
+ indexed: false,
383
+ internalType: 'address',
384
+ },
385
+ {
386
+ name: 'smartAccount',
387
+ type: 'address',
388
+ indexed: false,
389
+ internalType: 'address',
390
+ },
391
+ ],
392
+ anonymous: false,
393
+ },
394
+ {
395
+ type: 'event',
396
+ name: 'SessionValidatorDisabled',
397
+ inputs: [
398
+ {
399
+ name: 'permissionId',
400
+ type: 'bytes32',
401
+ indexed: false,
402
+ internalType: 'PermissionId',
403
+ },
404
+ {
405
+ name: 'sessionValidator',
406
+ type: 'address',
407
+ indexed: false,
408
+ internalType: 'address',
409
+ },
410
+ {
411
+ name: 'smartAccount',
412
+ type: 'address',
413
+ indexed: false,
414
+ internalType: 'address',
415
+ },
416
+ ],
417
+ anonymous: false,
418
+ },
419
+ {
420
+ type: 'event',
421
+ name: 'SessionValidatorEnabled',
422
+ inputs: [
423
+ {
424
+ name: 'permissionId',
425
+ type: 'bytes32',
426
+ indexed: false,
427
+ internalType: 'PermissionId',
428
+ },
429
+ {
430
+ name: 'sessionValidator',
431
+ type: 'address',
432
+ indexed: false,
433
+ internalType: 'address',
434
+ },
435
+ {
436
+ name: 'smartAccount',
437
+ type: 'address',
438
+ indexed: false,
439
+ internalType: 'address',
440
+ },
441
+ ],
442
+ anonymous: false,
443
+ },
444
+ {
445
+ type: 'event',
446
+ name: 'SmartSessionEmissaryConfigUpdated',
447
+ inputs: [
448
+ {
449
+ name: 'account',
450
+ type: 'address',
451
+ indexed: true,
452
+ internalType: 'address',
453
+ },
454
+ {
455
+ name: 'permissionId',
456
+ type: 'bytes32',
457
+ indexed: false,
458
+ internalType: 'PermissionId',
459
+ },
460
+ {
461
+ name: 'lockTag',
462
+ type: 'bytes12',
463
+ indexed: true,
464
+ internalType: 'bytes12',
465
+ },
466
+ { name: 'enabled', type: 'bool', indexed: false, internalType: 'bool' },
467
+ ],
468
+ anonymous: false,
469
+ },
470
+ {
471
+ type: 'error',
472
+ name: 'ChainIdMismatch',
473
+ inputs: [
474
+ { name: 'providedChainId', type: 'uint64', internalType: 'uint64' },
475
+ ],
476
+ },
477
+ { type: 'error', name: 'ForbiddenValidationData', inputs: [] },
478
+ {
479
+ type: 'error',
480
+ name: 'HashMismatch',
481
+ inputs: [
482
+ { name: 'providedHash', type: 'bytes32', internalType: 'bytes32' },
483
+ { name: 'computedHash', type: 'bytes32', internalType: 'bytes32' },
484
+ ],
485
+ },
486
+ { type: 'error', name: 'IncorrectType', inputs: [] },
487
+ { type: 'error', name: 'InvalidActionId', inputs: [] },
488
+ { type: 'error', name: 'InvalidAllocatorSignature', inputs: [] },
489
+ { type: 'error', name: 'InvalidAllocatorSignature', inputs: [] },
490
+ { type: 'error', name: 'InvalidDataLength', inputs: [] },
491
+ { type: 'error', name: 'InvalidEmissaryDisableData', inputs: [] },
492
+ { type: 'error', name: 'InvalidEmissaryEnableData', inputs: [] },
493
+ {
494
+ type: 'error',
495
+ name: 'InvalidISessionValidator',
496
+ inputs: [
497
+ {
498
+ name: 'sessionValidator',
499
+ type: 'address',
500
+ internalType: 'contract ISessionValidator',
501
+ },
502
+ ],
503
+ },
504
+ { type: 'error', name: 'InvalidNonce', inputs: [] },
505
+ {
506
+ type: 'error',
507
+ name: 'InvalidPermissionId',
508
+ inputs: [
509
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
510
+ ],
511
+ },
512
+ {
513
+ type: 'error',
514
+ name: 'InvalidPermissionId',
515
+ inputs: [
516
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
517
+ ],
518
+ },
519
+ { type: 'error', name: 'InvalidSelfCall', inputs: [] },
520
+ {
521
+ type: 'error',
522
+ name: 'InvalidSession',
523
+ inputs: [
524
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
525
+ ],
526
+ },
527
+ { type: 'error', name: 'InvalidSignature', inputs: [] },
528
+ { type: 'error', name: 'InvalidTarget', inputs: [] },
529
+ { type: 'error', name: 'InvalidUserSignature', inputs: [] },
530
+ { type: 'error', name: 'InvalidUserSignature', inputs: [] },
531
+ { type: 'error', name: 'NoExecutionsInBatch', inputs: [] },
532
+ {
533
+ type: 'error',
534
+ name: 'NoPoliciesSet',
535
+ inputs: [
536
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
537
+ ],
538
+ },
539
+ { type: 'error', name: 'NotSet', inputs: [] },
540
+ {
541
+ type: 'error',
542
+ name: 'PolicyViolation',
543
+ inputs: [
544
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
545
+ { name: 'policy', type: 'address', internalType: 'address' },
546
+ ],
547
+ },
548
+ { type: 'error', name: 'Reentrancy', inputs: [] },
549
+ {
550
+ type: 'error',
551
+ name: 'SignerNotFound',
552
+ inputs: [
553
+ { name: 'permissionId', type: 'bytes32', internalType: 'PermissionId' },
554
+ { name: 'account', type: 'address', internalType: 'address' },
555
+ ],
556
+ },
557
+ { type: 'error', name: 'UnauthorizedSource', inputs: [] },
558
+ { type: 'error', name: 'UnsafeFallbackNotAllowed', inputs: [] },
559
+ {
560
+ type: 'error',
561
+ name: 'UnsupportedPolicy',
562
+ inputs: [{ name: 'policy', type: 'address', internalType: 'address' }],
563
+ },
564
+ ];
565
+ exports.default = abi;
@@ -0,0 +1,104 @@
1
+ declare const enableSessionsAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "enableSessions";
4
+ readonly inputs: readonly [{
5
+ readonly name: "sessions";
6
+ readonly type: "tuple[]";
7
+ readonly internalType: "struct Session[]";
8
+ readonly components: readonly [{
9
+ readonly name: "sessionValidator";
10
+ readonly type: "address";
11
+ readonly internalType: "contract ISessionValidator";
12
+ }, {
13
+ readonly name: "sessionValidatorInitData";
14
+ readonly type: "bytes";
15
+ readonly internalType: "bytes";
16
+ }, {
17
+ readonly name: "salt";
18
+ readonly type: "bytes32";
19
+ readonly internalType: "bytes32";
20
+ }, {
21
+ readonly name: "userOpPolicies";
22
+ readonly type: "tuple[]";
23
+ readonly internalType: "struct PolicyData[]";
24
+ readonly components: readonly [{
25
+ readonly name: "policy";
26
+ readonly type: "address";
27
+ readonly internalType: "address";
28
+ }, {
29
+ readonly name: "initData";
30
+ readonly type: "bytes";
31
+ readonly internalType: "bytes";
32
+ }];
33
+ }, {
34
+ readonly name: "erc7739Policies";
35
+ readonly type: "tuple";
36
+ readonly internalType: "struct ERC7739Data";
37
+ readonly components: readonly [{
38
+ readonly name: "allowedERC7739Content";
39
+ readonly type: "tuple[]";
40
+ readonly internalType: "struct ERC7739Context[]";
41
+ readonly components: readonly [{
42
+ readonly name: "appDomainSeparator";
43
+ readonly type: "bytes32";
44
+ readonly internalType: "bytes32";
45
+ }, {
46
+ readonly name: "contentName";
47
+ readonly type: "string[]";
48
+ readonly internalType: "string[]";
49
+ }];
50
+ }, {
51
+ readonly name: "erc1271Policies";
52
+ readonly type: "tuple[]";
53
+ readonly internalType: "struct PolicyData[]";
54
+ readonly components: readonly [{
55
+ readonly name: "policy";
56
+ readonly type: "address";
57
+ readonly internalType: "address";
58
+ }, {
59
+ readonly name: "initData";
60
+ readonly type: "bytes";
61
+ readonly internalType: "bytes";
62
+ }];
63
+ }];
64
+ }, {
65
+ readonly name: "actions";
66
+ readonly type: "tuple[]";
67
+ readonly internalType: "struct ActionData[]";
68
+ readonly components: readonly [{
69
+ readonly name: "actionTargetSelector";
70
+ readonly type: "bytes4";
71
+ readonly internalType: "bytes4";
72
+ }, {
73
+ readonly name: "actionTarget";
74
+ readonly type: "address";
75
+ readonly internalType: "address";
76
+ }, {
77
+ readonly name: "actionPolicies";
78
+ readonly type: "tuple[]";
79
+ readonly internalType: "struct PolicyData[]";
80
+ readonly components: readonly [{
81
+ readonly name: "policy";
82
+ readonly type: "address";
83
+ readonly internalType: "address";
84
+ }, {
85
+ readonly name: "initData";
86
+ readonly type: "bytes";
87
+ readonly internalType: "bytes";
88
+ }];
89
+ }];
90
+ }, {
91
+ readonly name: "permitERC4337Paymaster";
92
+ readonly type: "bool";
93
+ readonly internalType: "bool";
94
+ }];
95
+ }];
96
+ readonly outputs: readonly [{
97
+ readonly name: "permissionIds";
98
+ readonly type: "bytes32[]";
99
+ readonly internalType: "PermissionId[]";
100
+ }];
101
+ readonly stateMutability: "nonpayable";
102
+ }];
103
+ export { enableSessionsAbi };
104
+ //# sourceMappingURL=smart-sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-sessions.d.ts","sourceRoot":"","sources":["../../../../modules/abi/smart-sessions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Hb,CAAA;AAEV,OAAO,EAAE,iBAAiB,EAAE,CAAA"}