@rhinestone/sdk 1.0.43 → 1.1.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 (61) hide show
  1. package/dist/src/accounts/index.d.ts +2 -5
  2. package/dist/src/accounts/index.d.ts.map +1 -1
  3. package/dist/src/accounts/index.js +0 -37
  4. package/dist/src/accounts/kernel.d.ts +2 -4
  5. package/dist/src/accounts/kernel.d.ts.map +1 -1
  6. package/dist/src/accounts/kernel.js +0 -16
  7. package/dist/src/accounts/nexus.d.ts +2 -4
  8. package/dist/src/accounts/nexus.d.ts.map +1 -1
  9. package/dist/src/accounts/nexus.js +0 -16
  10. package/dist/src/accounts/passport.d.ts +4 -7
  11. package/dist/src/accounts/passport.d.ts.map +1 -1
  12. package/dist/src/accounts/passport.js +0 -91
  13. package/dist/src/accounts/safe.d.ts +2 -4
  14. package/dist/src/accounts/safe.d.ts.map +1 -1
  15. package/dist/src/accounts/safe.js +0 -16
  16. package/dist/src/accounts/signing/common.d.ts +3 -3
  17. package/dist/src/accounts/signing/common.d.ts.map +1 -1
  18. package/dist/src/accounts/signing/common.js +18 -2
  19. package/dist/src/accounts/signing/message.js +2 -2
  20. package/dist/src/accounts/signing/typedData.d.ts.map +1 -1
  21. package/dist/src/accounts/signing/typedData.js +3 -3
  22. package/dist/src/accounts/startale.d.ts +2 -4
  23. package/dist/src/accounts/startale.d.ts.map +1 -1
  24. package/dist/src/accounts/startale.js +0 -4
  25. package/dist/src/actions/compact.d.ts +3 -2
  26. package/dist/src/actions/compact.d.ts.map +1 -1
  27. package/dist/src/actions/compact.js +1 -0
  28. package/dist/src/actions/smart-sessions.d.ts +7 -8
  29. package/dist/src/actions/smart-sessions.d.ts.map +1 -1
  30. package/dist/src/actions/smart-sessions.js +7 -4
  31. package/dist/src/execution/index.d.ts.map +1 -1
  32. package/dist/src/execution/index.js +3 -12
  33. package/dist/src/execution/utils.d.ts +1 -1
  34. package/dist/src/execution/utils.d.ts.map +1 -1
  35. package/dist/src/execution/utils.js +9 -12
  36. package/dist/src/index.d.ts +2 -2
  37. package/dist/src/index.d.ts.map +1 -1
  38. package/dist/src/index.js +4 -4
  39. package/dist/src/modules/abi/smart-session-emissary.d.ts +696 -0
  40. package/dist/src/modules/abi/smart-session-emissary.d.ts.map +1 -0
  41. package/dist/src/modules/abi/smart-session-emissary.js +565 -0
  42. package/dist/src/modules/index.d.ts +2 -1
  43. package/dist/src/modules/index.d.ts.map +1 -1
  44. package/dist/src/modules/index.js +3 -1
  45. package/dist/src/modules/validators/core.d.ts.map +1 -1
  46. package/dist/src/modules/validators/core.js +2 -0
  47. package/dist/src/modules/validators/index.d.ts +2 -2
  48. package/dist/src/modules/validators/index.d.ts.map +1 -1
  49. package/dist/src/modules/validators/index.js +1 -6
  50. package/dist/src/modules/validators/smart-sessions.d.ts +105 -20
  51. package/dist/src/modules/validators/smart-sessions.d.ts.map +1 -1
  52. package/dist/src/modules/validators/smart-sessions.js +199 -439
  53. package/dist/src/types.d.ts +8 -15
  54. package/dist/src/types.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/src/execution/smart-session.d.ts +0 -13
  57. package/dist/src/execution/smart-session.d.ts.map +0 -1
  58. package/dist/src/execution/smart-session.js +0 -178
  59. package/dist/src/modules/validators/smart-sessions.test.d.ts +0 -2
  60. package/dist/src/modules/validators/smart-sessions.test.d.ts.map +0 -1
  61. package/dist/src/modules/validators/smart-sessions.test.js +0 -219
@@ -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;
@@ -3,8 +3,9 @@ import type { RhinestoneAccountConfig, RhinestoneConfig } from '../types';
3
3
  import { type ModeleSetup, type Module } from './common';
4
4
  import { getOwners, getValidators } from './read';
5
5
  import { getOwnerValidator } from './validators';
6
+ import { getSessionDetails } from './validators/smart-sessions';
6
7
  declare function getSetup(config: RhinestoneAccountConfig): ModeleSetup;
7
8
  declare function getIntentExecutor(config: RhinestoneConfig): Module;
8
9
  declare function isRip7212SupportedNetwork(chain: Chain): boolean;
9
- export { getSetup, getOwnerValidator, getOwners, getIntentExecutor, getValidators, isRip7212SupportedNetwork, };
10
+ export { getSetup, getOwnerValidator, getOwners, getIntentExecutor, getValidators, isRip7212SupportedNetwork, getSessionDetails, };
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,KAAK,EAAuB,MAAM,MAAM,CAAA;AAWpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB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CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getValidators = exports.getOwners = exports.getOwnerValidator = void 0;
3
+ exports.getSessionDetails = exports.getValidators = exports.getOwners = exports.getOwnerValidator = void 0;
4
4
  exports.getSetup = getSetup;
5
5
  exports.getIntentExecutor = getIntentExecutor;
6
6
  exports.isRip7212SupportedNetwork = isRip7212SupportedNetwork;
@@ -14,6 +14,8 @@ Object.defineProperty(exports, "getValidators", { enumerable: true, get: functio
14
14
  const validators_1 = require("./validators");
15
15
  Object.defineProperty(exports, "getOwnerValidator", { enumerable: true, get: function () { return validators_1.getOwnerValidator; } });
16
16
  const core_1 = require("./validators/core");
17
+ const smart_sessions_1 = require("./validators/smart-sessions");
18
+ Object.defineProperty(exports, "getSessionDetails", { enumerable: true, get: function () { return smart_sessions_1.getSessionDetails; } });
17
19
  const SMART_SESSION_COMPATIBILITY_FALLBACK_ADDRESS = '0x000000000052e9685932845660777DF43C2dC496';
18
20
  function getSetup(config) {
19
21
  const ownerValidator = (0, validators_1.getOwnerValidator)(config);
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../modules/validators/core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EAKZ,KAAK,GAAG,EAKT,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACR,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AAEjE,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,SAAS,GAAG,GAAG,GAAG,UA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EAAE,OAAO,GAChB,MAAM,CAiBR;AAED,iBAAS,eAAe,CACtB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,EAAE,EACjB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,CAsCR;AAED,iBAAS,oBAAoB,CAC3B,SAAS,EAAE,MAAM,EACjB,mBAAmB,EAAE,kBAAkB,EAAE,EACzC,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,CA4DR;AAED,iBAAS,uBAAuB,CAC9B,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,CACR,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,IAAI,CACP,EAAE,GACF,MAAM,CAgDR;AAED,iBAAS,0BAA0B,CACjC,SAAS,EAAE,OAAO,EAAE,EACpB,SAAS,SAAI,GACZ,MAAM,CAsBR;AAeD,iBAAS,cAAc,CAAC,SAAS,EAAE,MAAM,WASxC;AAED,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,CAAA;AACD,YAAY,EAAE,kBAAkB,EAAE,CAAA"}
@@ -13,6 +13,7 @@ exports.supportsEip712 = supportsEip712;
13
13
  const viem_1 = require("viem");
14
14
  const error_1 = require("../../accounts/error");
15
15
  const common_1 = require("../common");
16
+ const smart_sessions_1 = require("./smart-sessions");
16
17
  const OWNABLE_VALIDATOR_ADDRESS = '0x000000000013fdb5234e4e3162a810f54d9f7e98';
17
18
  exports.OWNABLE_VALIDATOR_ADDRESS = OWNABLE_VALIDATOR_ADDRESS;
18
19
  const ENS_VALIDATOR_ADDRESS = '0xdc38f07b060374b6480c4bf06231e7d10955bca4';
@@ -271,6 +272,7 @@ function supportsEip712(validator) {
271
272
  switch (validator.address.toLowerCase()) {
272
273
  case OWNABLE_BETA_VALIDATOR_ADDRESS: // Ownable Validator V1-beta
273
274
  case OWNABLE_V0_VALIDATOR_ADDRESS: // Ownable Validator V0
275
+ case smart_sessions_1.SMART_SESSION_EMISSARY_ADDRESS: // Smart Sessions (not yet supported)
274
276
  return false;
275
277
  default:
276
278
  return true;
@@ -1,4 +1,4 @@
1
1
  import { getMockSignature, getOwnerValidator } from './core';
2
- import { encodeSmartSessionSignature, getEnableSessionCall, getPermissionId, getSmartSessionValidator, isSessionEnabled, SMART_SESSION_MODE_ENABLE, SMART_SESSION_MODE_USE, SMART_SESSIONS_VALIDATOR_ADDRESS } from './smart-sessions';
3
- export { SMART_SESSION_MODE_USE, SMART_SESSION_MODE_ENABLE, SMART_SESSIONS_VALIDATOR_ADDRESS, getOwnerValidator, getSmartSessionValidator, getEnableSessionCall, encodeSmartSessionSignature, getPermissionId, getMockSignature, isSessionEnabled, };
2
+ import { getEnableSessionCall, getPermissionId, getSmartSessionValidator } from './smart-sessions';
3
+ export { getOwnerValidator, getSmartSessionValidator, getEnableSessionCall, getPermissionId, getMockSignature, };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACtB,gCAAgC,EACjC,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GACjB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACzB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,GACjB,CAAA"}
@@ -1,15 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSessionEnabled = exports.getMockSignature = exports.getPermissionId = exports.encodeSmartSessionSignature = exports.getEnableSessionCall = exports.getSmartSessionValidator = exports.getOwnerValidator = exports.SMART_SESSIONS_VALIDATOR_ADDRESS = exports.SMART_SESSION_MODE_ENABLE = exports.SMART_SESSION_MODE_USE = void 0;
3
+ exports.getMockSignature = exports.getPermissionId = exports.getEnableSessionCall = exports.getSmartSessionValidator = exports.getOwnerValidator = void 0;
4
4
  const core_1 = require("./core");
5
5
  Object.defineProperty(exports, "getMockSignature", { enumerable: true, get: function () { return core_1.getMockSignature; } });
6
6
  Object.defineProperty(exports, "getOwnerValidator", { enumerable: true, get: function () { return core_1.getOwnerValidator; } });
7
7
  const smart_sessions_1 = require("./smart-sessions");
8
- Object.defineProperty(exports, "encodeSmartSessionSignature", { enumerable: true, get: function () { return smart_sessions_1.encodeSmartSessionSignature; } });
9
8
  Object.defineProperty(exports, "getEnableSessionCall", { enumerable: true, get: function () { return smart_sessions_1.getEnableSessionCall; } });
10
9
  Object.defineProperty(exports, "getPermissionId", { enumerable: true, get: function () { return smart_sessions_1.getPermissionId; } });
11
10
  Object.defineProperty(exports, "getSmartSessionValidator", { enumerable: true, get: function () { return smart_sessions_1.getSmartSessionValidator; } });
12
- Object.defineProperty(exports, "isSessionEnabled", { enumerable: true, get: function () { return smart_sessions_1.isSessionEnabled; } });
13
- Object.defineProperty(exports, "SMART_SESSION_MODE_ENABLE", { enumerable: true, get: function () { return smart_sessions_1.SMART_SESSION_MODE_ENABLE; } });
14
- Object.defineProperty(exports, "SMART_SESSION_MODE_USE", { enumerable: true, get: function () { return smart_sessions_1.SMART_SESSION_MODE_USE; } });
15
- Object.defineProperty(exports, "SMART_SESSIONS_VALIDATOR_ADDRESS", { enumerable: true, get: function () { return smart_sessions_1.SMART_SESSIONS_VALIDATOR_ADDRESS; } });