@epoch-protocol/epoch-commons-sdk 0.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 (43) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/compact.d.ts +1 -0
  3. package/dist/constants/compact.js +5 -0
  4. package/dist/constants/contractAddresses.d.ts +57 -0
  5. package/dist/constants/contractAddresses.js +181 -0
  6. package/dist/constants/index.d.ts +2 -0
  7. package/dist/constants/index.js +18 -0
  8. package/dist/data/epochgraphmainnet.json +410 -0
  9. package/dist/data/epochgraphtestnet.json +532 -0
  10. package/dist/data/index.d.ts +3 -0
  11. package/dist/data/index.js +10 -0
  12. package/dist/index.d.ts +5 -0
  13. package/dist/index.js +22 -0
  14. package/dist/types/index.d.ts +322 -0
  15. package/dist/types/index.js +37 -0
  16. package/dist/utils/compact.d.ts +4 -0
  17. package/dist/utils/compact.js +58 -0
  18. package/dist/utils/index.d.ts +1 -0
  19. package/dist/utils/index.js +17 -0
  20. package/dist/utils/web3.d.ts +9 -0
  21. package/dist/utils/web3.js +115 -0
  22. package/dist/web3/abis/COMPACT_ABI.json +1529 -0
  23. package/dist/web3/abis/epochModuleAbi.d.ts +2 -0
  24. package/dist/web3/abis/epochModuleAbi.js +233 -0
  25. package/dist/web3/abis/erc20Abi.d.ts +2 -0
  26. package/dist/web3/abis/erc20Abi.js +224 -0
  27. package/dist/web3/abis/intentRegistryAbi.d.ts +2 -0
  28. package/dist/web3/abis/intentRegistryAbi.js +925 -0
  29. package/dist/web3/abis/safe7702ProxyFactoryAbi.d.ts +2 -0
  30. package/dist/web3/abis/safe7702ProxyFactoryAbi.js +107 -0
  31. package/dist/web3/abis/safeProxyFactoryAbi.d.ts +2 -0
  32. package/dist/web3/abis/safeProxyFactoryAbi.js +3 -0
  33. package/dist/web3/abis/solverRegistryAbi.d.ts +2 -0
  34. package/dist/web3/abis/solverRegistryAbi.js +236 -0
  35. package/dist/web3/index.d.ts +3 -0
  36. package/dist/web3/index.js +23 -0
  37. package/dist/web3/intents.d.ts +5 -0
  38. package/dist/web3/intents.js +32 -0
  39. package/dist/web3/registry.d.ts +5 -0
  40. package/dist/web3/registry.js +29 -0
  41. package/dist/web3/wallet.d.ts +26 -0
  42. package/dist/web3/wallet.js +390 -0
  43. package/package.json +41 -0
@@ -0,0 +1,925 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = `[
4
+ {
5
+ "type": "constructor",
6
+ "inputs": [
7
+ { "name": "_userEscrow", "type": "address", "internalType": "address" },
8
+ { "name": "_owner", "type": "address", "internalType": "address" },
9
+ {
10
+ "name": "_initialModules",
11
+ "type": "address[]",
12
+ "internalType": "address[]"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable"
16
+ },
17
+ { "type": "receive", "stateMutability": "payable" },
18
+ {
19
+ "type": "function",
20
+ "name": "addIntent",
21
+ "inputs": [
22
+ { "name": "params", "type": "bytes", "internalType": "bytes" },
23
+ { "name": "_epochModule", "type": "address", "internalType": "address" }
24
+ ],
25
+ "outputs": [],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "addIntentWithSignature",
31
+ "inputs": [
32
+ {
33
+ "name": "_epochModule",
34
+ "type": "address",
35
+ "internalType": "address"
36
+ },
37
+ { "name": "params", "type": "bytes", "internalType": "bytes" },
38
+ { "name": "signature", "type": "bytes", "internalType": "bytes" }
39
+ ],
40
+ "outputs": [],
41
+ "stateMutability": "nonpayable"
42
+ },
43
+ {
44
+ "type": "function",
45
+ "name": "decodeIntentParams",
46
+ "inputs": [{ "name": "data", "type": "bytes", "internalType": "bytes" }],
47
+ "outputs": [
48
+ {
49
+ "name": "",
50
+ "type": "tuple",
51
+ "internalType": "struct IntentRegistry.IntentParams",
52
+ "components": [
53
+ { "name": "sender", "type": "address", "internalType": "address" },
54
+ {
55
+ "name": "approvals",
56
+ "type": "tuple[]",
57
+ "internalType": "struct IntentRegistry.Approval[]",
58
+ "components": [
59
+ {
60
+ "name": "tokenAddress",
61
+ "type": "address",
62
+ "internalType": "address"
63
+ },
64
+ {
65
+ "name": "spenderAddress",
66
+ "type": "address",
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "amount",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ },
74
+ {
75
+ "name": "chainId",
76
+ "type": "uint256",
77
+ "internalType": "uint256"
78
+ }
79
+ ]
80
+ },
81
+ { "name": "task", "type": "string", "internalType": "string" },
82
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" },
83
+ {
84
+ "name": "constraint",
85
+ "type": "tuple",
86
+ "internalType": "struct IntentRegistry.Constraint",
87
+ "components": [
88
+ {
89
+ "name": "constraintData",
90
+ "type": "bytes",
91
+ "internalType": "bytes"
92
+ },
93
+ {
94
+ "name": "constraintResponse",
95
+ "type": "bytes",
96
+ "internalType": "bytes"
97
+ },
98
+ {
99
+ "name": "constraints",
100
+ "type": "string",
101
+ "internalType": "string"
102
+ },
103
+ {
104
+ "name": "optimizationFactor",
105
+ "type": "uint256",
106
+ "internalType": "uint256"
107
+ },
108
+ {
109
+ "name": "preferredSolvers",
110
+ "type": "address[]",
111
+ "internalType": "address[]"
112
+ },
113
+ {
114
+ "name": "deadline",
115
+ "type": "uint256",
116
+ "internalType": "uint256"
117
+ },
118
+ {
119
+ "name": "triggers",
120
+ "type": "string",
121
+ "internalType": "string"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "proposedFeeRewards",
127
+ "type": "uint256",
128
+ "internalType": "uint256"
129
+ },
130
+ { "name": "recurring", "type": "bool", "internalType": "bool" },
131
+ {
132
+ "name": "chainIds",
133
+ "type": "uint32[]",
134
+ "internalType": "uint32[]"
135
+ },
136
+ {
137
+ "name": "calldatas",
138
+ "type": "tuple[]",
139
+ "internalType": "struct IntentRegistry.Calldata[]",
140
+ "components": [
141
+ {
142
+ "name": "target",
143
+ "type": "address",
144
+ "internalType": "address"
145
+ },
146
+ {
147
+ "name": "value",
148
+ "type": "uint256",
149
+ "internalType": "uint256"
150
+ },
151
+ { "name": "data", "type": "bytes", "internalType": "bytes" }
152
+ ]
153
+ }
154
+ ]
155
+ }
156
+ ],
157
+ "stateMutability": "pure"
158
+ },
159
+ {
160
+ "type": "function",
161
+ "name": "getEncodedIntentParams",
162
+ "inputs": [
163
+ { "name": "sender", "type": "address", "internalType": "address" },
164
+ {
165
+ "name": "approvals",
166
+ "type": "tuple[]",
167
+ "internalType": "struct IntentRegistry.Approval[]",
168
+ "components": [
169
+ {
170
+ "name": "tokenAddress",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ },
174
+ {
175
+ "name": "spenderAddress",
176
+ "type": "address",
177
+ "internalType": "address"
178
+ },
179
+ { "name": "amount", "type": "uint256", "internalType": "uint256" },
180
+ { "name": "chainId", "type": "uint256", "internalType": "uint256" }
181
+ ]
182
+ },
183
+ { "name": "task", "type": "string", "internalType": "string" },
184
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" },
185
+ {
186
+ "name": "constraint",
187
+ "type": "tuple",
188
+ "internalType": "struct IntentRegistry.Constraint",
189
+ "components": [
190
+ {
191
+ "name": "constraintData",
192
+ "type": "bytes",
193
+ "internalType": "bytes"
194
+ },
195
+ {
196
+ "name": "constraintResponse",
197
+ "type": "bytes",
198
+ "internalType": "bytes"
199
+ },
200
+ {
201
+ "name": "constraints",
202
+ "type": "string",
203
+ "internalType": "string"
204
+ },
205
+ {
206
+ "name": "optimizationFactor",
207
+ "type": "uint256",
208
+ "internalType": "uint256"
209
+ },
210
+ {
211
+ "name": "preferredSolvers",
212
+ "type": "address[]",
213
+ "internalType": "address[]"
214
+ },
215
+ {
216
+ "name": "deadline",
217
+ "type": "uint256",
218
+ "internalType": "uint256"
219
+ },
220
+ { "name": "triggers", "type": "string", "internalType": "string" }
221
+ ]
222
+ },
223
+ {
224
+ "name": "proposedFeeRewards",
225
+ "type": "uint256",
226
+ "internalType": "uint256"
227
+ },
228
+ { "name": "recurring", "type": "bool", "internalType": "bool" },
229
+ { "name": "chainIds", "type": "uint32[]", "internalType": "uint32[]" },
230
+ {
231
+ "name": "calldatas",
232
+ "type": "tuple[]",
233
+ "internalType": "struct IntentRegistry.Calldata[]",
234
+ "components": [
235
+ { "name": "target", "type": "address", "internalType": "address" },
236
+ { "name": "value", "type": "uint256", "internalType": "uint256" },
237
+ { "name": "data", "type": "bytes", "internalType": "bytes" }
238
+ ]
239
+ }
240
+ ],
241
+ "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }],
242
+ "stateMutability": "pure"
243
+ },
244
+ {
245
+ "type": "function",
246
+ "name": "getIntent",
247
+ "inputs": [
248
+ { "name": "sender", "type": "address", "internalType": "address" },
249
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" }
250
+ ],
251
+ "outputs": [
252
+ {
253
+ "name": "",
254
+ "type": "tuple",
255
+ "internalType": "struct IntentRegistry.IntentParams",
256
+ "components": [
257
+ { "name": "sender", "type": "address", "internalType": "address" },
258
+ {
259
+ "name": "approvals",
260
+ "type": "tuple[]",
261
+ "internalType": "struct IntentRegistry.Approval[]",
262
+ "components": [
263
+ {
264
+ "name": "tokenAddress",
265
+ "type": "address",
266
+ "internalType": "address"
267
+ },
268
+ {
269
+ "name": "spenderAddress",
270
+ "type": "address",
271
+ "internalType": "address"
272
+ },
273
+ {
274
+ "name": "amount",
275
+ "type": "uint256",
276
+ "internalType": "uint256"
277
+ },
278
+ {
279
+ "name": "chainId",
280
+ "type": "uint256",
281
+ "internalType": "uint256"
282
+ }
283
+ ]
284
+ },
285
+ { "name": "task", "type": "string", "internalType": "string" },
286
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" },
287
+ {
288
+ "name": "constraint",
289
+ "type": "tuple",
290
+ "internalType": "struct IntentRegistry.Constraint",
291
+ "components": [
292
+ {
293
+ "name": "constraintData",
294
+ "type": "bytes",
295
+ "internalType": "bytes"
296
+ },
297
+ {
298
+ "name": "constraintResponse",
299
+ "type": "bytes",
300
+ "internalType": "bytes"
301
+ },
302
+ {
303
+ "name": "constraints",
304
+ "type": "string",
305
+ "internalType": "string"
306
+ },
307
+ {
308
+ "name": "optimizationFactor",
309
+ "type": "uint256",
310
+ "internalType": "uint256"
311
+ },
312
+ {
313
+ "name": "preferredSolvers",
314
+ "type": "address[]",
315
+ "internalType": "address[]"
316
+ },
317
+ {
318
+ "name": "deadline",
319
+ "type": "uint256",
320
+ "internalType": "uint256"
321
+ },
322
+ {
323
+ "name": "triggers",
324
+ "type": "string",
325
+ "internalType": "string"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "name": "proposedFeeRewards",
331
+ "type": "uint256",
332
+ "internalType": "uint256"
333
+ },
334
+ { "name": "recurring", "type": "bool", "internalType": "bool" },
335
+ {
336
+ "name": "chainIds",
337
+ "type": "uint32[]",
338
+ "internalType": "uint32[]"
339
+ },
340
+ {
341
+ "name": "calldatas",
342
+ "type": "tuple[]",
343
+ "internalType": "struct IntentRegistry.Calldata[]",
344
+ "components": [
345
+ {
346
+ "name": "target",
347
+ "type": "address",
348
+ "internalType": "address"
349
+ },
350
+ {
351
+ "name": "value",
352
+ "type": "uint256",
353
+ "internalType": "uint256"
354
+ },
355
+ { "name": "data", "type": "bytes", "internalType": "bytes" }
356
+ ]
357
+ }
358
+ ]
359
+ }
360
+ ],
361
+ "stateMutability": "view"
362
+ },
363
+ {
364
+ "type": "function",
365
+ "name": "getIntentCount",
366
+ "inputs": [
367
+ { "name": "_user", "type": "address", "internalType": "address" }
368
+ ],
369
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
370
+ "stateMutability": "view"
371
+ },
372
+ {
373
+ "type": "function",
374
+ "name": "getIntentEIP191Hash",
375
+ "inputs": [
376
+ {
377
+ "name": "intent",
378
+ "type": "tuple",
379
+ "internalType": "struct IntentRegistry.IntentParams",
380
+ "components": [
381
+ { "name": "sender", "type": "address", "internalType": "address" },
382
+ {
383
+ "name": "approvals",
384
+ "type": "tuple[]",
385
+ "internalType": "struct IntentRegistry.Approval[]",
386
+ "components": [
387
+ {
388
+ "name": "tokenAddress",
389
+ "type": "address",
390
+ "internalType": "address"
391
+ },
392
+ {
393
+ "name": "spenderAddress",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ },
397
+ {
398
+ "name": "amount",
399
+ "type": "uint256",
400
+ "internalType": "uint256"
401
+ },
402
+ {
403
+ "name": "chainId",
404
+ "type": "uint256",
405
+ "internalType": "uint256"
406
+ }
407
+ ]
408
+ },
409
+ { "name": "task", "type": "string", "internalType": "string" },
410
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" },
411
+ {
412
+ "name": "constraint",
413
+ "type": "tuple",
414
+ "internalType": "struct IntentRegistry.Constraint",
415
+ "components": [
416
+ {
417
+ "name": "constraintData",
418
+ "type": "bytes",
419
+ "internalType": "bytes"
420
+ },
421
+ {
422
+ "name": "constraintResponse",
423
+ "type": "bytes",
424
+ "internalType": "bytes"
425
+ },
426
+ {
427
+ "name": "constraints",
428
+ "type": "string",
429
+ "internalType": "string"
430
+ },
431
+ {
432
+ "name": "optimizationFactor",
433
+ "type": "uint256",
434
+ "internalType": "uint256"
435
+ },
436
+ {
437
+ "name": "preferredSolvers",
438
+ "type": "address[]",
439
+ "internalType": "address[]"
440
+ },
441
+ {
442
+ "name": "deadline",
443
+ "type": "uint256",
444
+ "internalType": "uint256"
445
+ },
446
+ {
447
+ "name": "triggers",
448
+ "type": "string",
449
+ "internalType": "string"
450
+ }
451
+ ]
452
+ },
453
+ {
454
+ "name": "proposedFeeRewards",
455
+ "type": "uint256",
456
+ "internalType": "uint256"
457
+ },
458
+ { "name": "recurring", "type": "bool", "internalType": "bool" },
459
+ {
460
+ "name": "chainIds",
461
+ "type": "uint32[]",
462
+ "internalType": "uint32[]"
463
+ },
464
+ {
465
+ "name": "calldatas",
466
+ "type": "tuple[]",
467
+ "internalType": "struct IntentRegistry.Calldata[]",
468
+ "components": [
469
+ {
470
+ "name": "target",
471
+ "type": "address",
472
+ "internalType": "address"
473
+ },
474
+ {
475
+ "name": "value",
476
+ "type": "uint256",
477
+ "internalType": "uint256"
478
+ },
479
+ { "name": "data", "type": "bytes", "internalType": "bytes" }
480
+ ]
481
+ }
482
+ ]
483
+ }
484
+ ],
485
+ "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
486
+ "stateMutability": "view"
487
+ },
488
+ {
489
+ "type": "function",
490
+ "name": "getIntentExecutionParams",
491
+ "inputs": [
492
+ { "name": "sender", "type": "address", "internalType": "address" },
493
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" }
494
+ ],
495
+ "outputs": [
496
+ {
497
+ "name": "",
498
+ "type": "tuple",
499
+ "internalType": "struct IntentRegistry.IntentExecutionParams",
500
+ "components": [
501
+ { "name": "completed", "type": "bool", "internalType": "bool" },
502
+ { "name": "executor", "type": "address", "internalType": "address" }
503
+ ]
504
+ }
505
+ ],
506
+ "stateMutability": "view"
507
+ },
508
+ {
509
+ "type": "function",
510
+ "name": "getNonce",
511
+ "inputs": [
512
+ { "name": "sender", "type": "address", "internalType": "address" },
513
+ { "name": "key", "type": "uint192", "internalType": "uint192" }
514
+ ],
515
+ "outputs": [
516
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" }
517
+ ],
518
+ "stateMutability": "view"
519
+ },
520
+ {
521
+ "type": "function",
522
+ "name": "getUserNonces",
523
+ "inputs": [
524
+ { "name": "sender", "type": "address", "internalType": "address" }
525
+ ],
526
+ "outputs": [
527
+ { "name": "", "type": "uint256[]", "internalType": "uint256[]" }
528
+ ],
529
+ "stateMutability": "view"
530
+ },
531
+ {
532
+ "type": "function",
533
+ "name": "handleCrossChainIntentSettlement",
534
+ "inputs": [
535
+ { "name": "_message", "type": "bytes", "internalType": "bytes" }
536
+ ],
537
+ "outputs": [],
538
+ "stateMutability": "nonpayable"
539
+ },
540
+ {
541
+ "type": "function",
542
+ "name": "incrementNonce",
543
+ "inputs": [{ "name": "key", "type": "uint192", "internalType": "uint192" }],
544
+ "outputs": [],
545
+ "stateMutability": "nonpayable"
546
+ },
547
+ {
548
+ "type": "function",
549
+ "name": "intentExecutionParams",
550
+ "inputs": [
551
+ { "name": "", "type": "address", "internalType": "address" },
552
+ { "name": "", "type": "uint256", "internalType": "uint256" }
553
+ ],
554
+ "outputs": [
555
+ { "name": "completed", "type": "bool", "internalType": "bool" },
556
+ { "name": "executor", "type": "address", "internalType": "address" }
557
+ ],
558
+ "stateMutability": "view"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "intents",
563
+ "inputs": [
564
+ { "name": "", "type": "address", "internalType": "address" },
565
+ { "name": "", "type": "uint256", "internalType": "uint256" }
566
+ ],
567
+ "outputs": [
568
+ { "name": "sender", "type": "address", "internalType": "address" },
569
+ { "name": "task", "type": "string", "internalType": "string" },
570
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" },
571
+ {
572
+ "name": "constraint",
573
+ "type": "tuple",
574
+ "internalType": "struct IntentRegistry.Constraint",
575
+ "components": [
576
+ {
577
+ "name": "constraintData",
578
+ "type": "bytes",
579
+ "internalType": "bytes"
580
+ },
581
+ {
582
+ "name": "constraintResponse",
583
+ "type": "bytes",
584
+ "internalType": "bytes"
585
+ },
586
+ {
587
+ "name": "constraints",
588
+ "type": "string",
589
+ "internalType": "string"
590
+ },
591
+ {
592
+ "name": "optimizationFactor",
593
+ "type": "uint256",
594
+ "internalType": "uint256"
595
+ },
596
+ {
597
+ "name": "preferredSolvers",
598
+ "type": "address[]",
599
+ "internalType": "address[]"
600
+ },
601
+ {
602
+ "name": "deadline",
603
+ "type": "uint256",
604
+ "internalType": "uint256"
605
+ },
606
+ { "name": "triggers", "type": "string", "internalType": "string" }
607
+ ]
608
+ },
609
+ {
610
+ "name": "proposedFeeRewards",
611
+ "type": "uint256",
612
+ "internalType": "uint256"
613
+ },
614
+ { "name": "recurring", "type": "bool", "internalType": "bool" }
615
+ ],
616
+ "stateMutability": "view"
617
+ },
618
+ {
619
+ "type": "function",
620
+ "name": "nonceSequenceNumber",
621
+ "inputs": [
622
+ { "name": "", "type": "address", "internalType": "address" },
623
+ { "name": "", "type": "uint192", "internalType": "uint192" }
624
+ ],
625
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
626
+ "stateMutability": "view"
627
+ },
628
+ {
629
+ "type": "function",
630
+ "name": "owner",
631
+ "inputs": [],
632
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
633
+ "stateMutability": "view"
634
+ },
635
+ {
636
+ "type": "function",
637
+ "name": "renounceOwnership",
638
+ "inputs": [],
639
+ "outputs": [],
640
+ "stateMutability": "nonpayable"
641
+ },
642
+ {
643
+ "type": "function",
644
+ "name": "setIntentCompleted",
645
+ "inputs": [
646
+ { "name": "_user", "type": "address", "internalType": "address" },
647
+ { "name": "_nonce", "type": "uint256", "internalType": "uint256" }
648
+ ],
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable"
651
+ },
652
+ {
653
+ "type": "function",
654
+ "name": "setIntentExecutor",
655
+ "inputs": [
656
+ { "name": "_user", "type": "address", "internalType": "address" },
657
+ { "name": "_nonce", "type": "uint256", "internalType": "uint256" },
658
+ { "name": "_executor", "type": "address", "internalType": "address" }
659
+ ],
660
+ "outputs": [],
661
+ "stateMutability": "nonpayable"
662
+ },
663
+ {
664
+ "type": "function",
665
+ "name": "setSupportedDispatchers",
666
+ "inputs": [
667
+ {
668
+ "name": "dispatchers",
669
+ "type": "address[]",
670
+ "internalType": "address[]"
671
+ },
672
+ { "name": "status", "type": "bool", "internalType": "bool" }
673
+ ],
674
+ "outputs": [],
675
+ "stateMutability": "nonpayable"
676
+ },
677
+ {
678
+ "type": "function",
679
+ "name": "setSupportedModules",
680
+ "inputs": [
681
+ { "name": "modules", "type": "address[]", "internalType": "address[]" },
682
+ { "name": "status", "type": "bool", "internalType": "bool" }
683
+ ],
684
+ "outputs": [],
685
+ "stateMutability": "nonpayable"
686
+ },
687
+ {
688
+ "type": "function",
689
+ "name": "setUserEscrow",
690
+ "inputs": [
691
+ { "name": "_userEscrow", "type": "address", "internalType": "address" }
692
+ ],
693
+ "outputs": [],
694
+ "stateMutability": "nonpayable"
695
+ },
696
+ {
697
+ "type": "function",
698
+ "name": "settleIntentOnChains",
699
+ "inputs": [
700
+ { "name": "_user", "type": "address", "internalType": "address" },
701
+ { "name": "_nonce", "type": "uint256", "internalType": "uint256" },
702
+ { "name": "_dispatcher", "type": "address", "internalType": "address" }
703
+ ],
704
+ "outputs": [],
705
+ "stateMutability": "nonpayable"
706
+ },
707
+ {
708
+ "type": "function",
709
+ "name": "supportedDispatchers",
710
+ "inputs": [{ "name": "", "type": "address", "internalType": "address" }],
711
+ "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
712
+ "stateMutability": "view"
713
+ },
714
+ {
715
+ "type": "function",
716
+ "name": "supportedModules",
717
+ "inputs": [{ "name": "", "type": "address", "internalType": "address" }],
718
+ "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
719
+ "stateMutability": "view"
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "transferOwnership",
724
+ "inputs": [
725
+ { "name": "newOwner", "type": "address", "internalType": "address" }
726
+ ],
727
+ "outputs": [],
728
+ "stateMutability": "nonpayable"
729
+ },
730
+ {
731
+ "type": "function",
732
+ "name": "userEscrow",
733
+ "inputs": [],
734
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
735
+ "stateMutability": "view"
736
+ },
737
+ {
738
+ "type": "function",
739
+ "name": "userNonces",
740
+ "inputs": [
741
+ { "name": "", "type": "address", "internalType": "address" },
742
+ { "name": "", "type": "uint256", "internalType": "uint256" }
743
+ ],
744
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
745
+ "stateMutability": "view"
746
+ },
747
+ {
748
+ "type": "function",
749
+ "name": "validateNonce",
750
+ "inputs": [
751
+ { "name": "sender", "type": "address", "internalType": "address" },
752
+ { "name": "nonce", "type": "uint256", "internalType": "uint256" }
753
+ ],
754
+ "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
755
+ "stateMutability": "view"
756
+ },
757
+ {
758
+ "type": "function",
759
+ "name": "validateSignature",
760
+ "inputs": [
761
+ {
762
+ "name": "_epochModule",
763
+ "type": "address",
764
+ "internalType": "address"
765
+ },
766
+ { "name": "params", "type": "bytes", "internalType": "bytes" },
767
+ { "name": "signature", "type": "bytes", "internalType": "bytes" }
768
+ ],
769
+ "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
770
+ "stateMutability": "view"
771
+ },
772
+ {
773
+ "type": "event",
774
+ "name": "CrosschainIntentSettled",
775
+ "inputs": [
776
+ {
777
+ "name": "user",
778
+ "type": "address",
779
+ "indexed": true,
780
+ "internalType": "address"
781
+ },
782
+ {
783
+ "name": "nonce",
784
+ "type": "uint256",
785
+ "indexed": true,
786
+ "internalType": "uint256"
787
+ }
788
+ ],
789
+ "anonymous": false
790
+ },
791
+ {
792
+ "type": "event",
793
+ "name": "DispatcherStatusUpdated",
794
+ "inputs": [
795
+ {
796
+ "name": "dispatcher",
797
+ "type": "address",
798
+ "indexed": true,
799
+ "internalType": "address"
800
+ },
801
+ {
802
+ "name": "status",
803
+ "type": "bool",
804
+ "indexed": false,
805
+ "internalType": "bool"
806
+ }
807
+ ],
808
+ "anonymous": false
809
+ },
810
+ {
811
+ "type": "event",
812
+ "name": "IntentAdded",
813
+ "inputs": [
814
+ {
815
+ "name": "user",
816
+ "type": "address",
817
+ "indexed": true,
818
+ "internalType": "address"
819
+ },
820
+ {
821
+ "name": "intentIndex",
822
+ "type": "uint256",
823
+ "indexed": false,
824
+ "internalType": "uint256"
825
+ }
826
+ ],
827
+ "anonymous": false
828
+ },
829
+ {
830
+ "type": "event",
831
+ "name": "IntentCompleted",
832
+ "inputs": [
833
+ {
834
+ "name": "user",
835
+ "type": "address",
836
+ "indexed": false,
837
+ "internalType": "address"
838
+ },
839
+ {
840
+ "name": "taskId",
841
+ "type": "uint256",
842
+ "indexed": false,
843
+ "internalType": "uint256"
844
+ }
845
+ ],
846
+ "anonymous": false
847
+ },
848
+ {
849
+ "type": "event",
850
+ "name": "IntentExecutorUpdated",
851
+ "inputs": [
852
+ {
853
+ "name": "user",
854
+ "type": "address",
855
+ "indexed": false,
856
+ "internalType": "address"
857
+ },
858
+ {
859
+ "name": "taskId",
860
+ "type": "uint256",
861
+ "indexed": false,
862
+ "internalType": "uint256"
863
+ },
864
+ {
865
+ "name": "executor",
866
+ "type": "address",
867
+ "indexed": false,
868
+ "internalType": "address"
869
+ }
870
+ ],
871
+ "anonymous": false
872
+ },
873
+ {
874
+ "type": "event",
875
+ "name": "ModuleStatusUpdated",
876
+ "inputs": [
877
+ {
878
+ "name": "module",
879
+ "type": "address",
880
+ "indexed": true,
881
+ "internalType": "address"
882
+ },
883
+ {
884
+ "name": "status",
885
+ "type": "bool",
886
+ "indexed": false,
887
+ "internalType": "bool"
888
+ }
889
+ ],
890
+ "anonymous": false
891
+ },
892
+ {
893
+ "type": "event",
894
+ "name": "OwnershipTransferred",
895
+ "inputs": [
896
+ {
897
+ "name": "previousOwner",
898
+ "type": "address",
899
+ "indexed": true,
900
+ "internalType": "address"
901
+ },
902
+ {
903
+ "name": "newOwner",
904
+ "type": "address",
905
+ "indexed": true,
906
+ "internalType": "address"
907
+ }
908
+ ],
909
+ "anonymous": false
910
+ },
911
+ {
912
+ "type": "error",
913
+ "name": "OwnableInvalidOwner",
914
+ "inputs": [
915
+ { "name": "owner", "type": "address", "internalType": "address" }
916
+ ]
917
+ },
918
+ {
919
+ "type": "error",
920
+ "name": "OwnableUnauthorizedAccount",
921
+ "inputs": [
922
+ { "name": "account", "type": "address", "internalType": "address" }
923
+ ]
924
+ }
925
+ ]`;