@bloxchain/sdk 1.0.0-alpha.20 → 1.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +17 -16
  2. package/abi/AccountBlox.abi.json +1886 -1837
  3. package/abi/BaseStateMachine.abi.json +780 -775
  4. package/abi/CopyBlox.abi.json +825 -809
  5. package/abi/EngineBlox.abi.json +545 -538
  6. package/abi/GuardController.abi.json +1590 -1585
  7. package/abi/GuardControllerDefinitions.abi.json +231 -226
  8. package/abi/IDefinition.abi.json +54 -49
  9. package/abi/RoleBlox.abi.json +2993 -2993
  10. package/abi/RuntimeRBAC.abi.json +832 -827
  11. package/abi/RuntimeRBACDefinitions.abi.json +212 -207
  12. package/abi/SecureBlox.abi.json +2752 -2752
  13. package/abi/SecureOwnable.abi.json +1359 -1321
  14. package/abi/SecureOwnableDefinitions.abi.json +171 -166
  15. package/dist/abi/AccountBlox.abi.json +1886 -1837
  16. package/dist/abi/BaseStateMachine.abi.json +780 -775
  17. package/dist/abi/CopyBlox.abi.json +825 -809
  18. package/dist/abi/EngineBlox.abi.json +545 -538
  19. package/dist/abi/GuardController.abi.json +1590 -1585
  20. package/dist/abi/GuardControllerDefinitions.abi.json +231 -226
  21. package/dist/abi/IDefinition.abi.json +54 -49
  22. package/dist/abi/RoleBlox.abi.json +2993 -2993
  23. package/dist/abi/RuntimeRBAC.abi.json +832 -827
  24. package/dist/abi/RuntimeRBACDefinitions.abi.json +212 -207
  25. package/dist/abi/SecureBlox.abi.json +2752 -2752
  26. package/dist/abi/SecureOwnable.abi.json +1359 -1321
  27. package/dist/abi/SecureOwnableDefinitions.abi.json +171 -166
  28. package/dist/contracts/core/SecureOwnable.d.ts +1 -1
  29. package/dist/contracts/core/SecureOwnable.d.ts.map +1 -1
  30. package/dist/contracts/core/SecureOwnable.js +2 -2
  31. package/dist/contracts/core/SecureOwnable.js.map +1 -1
  32. package/dist/interfaces/core.security.index.d.ts +1 -1
  33. package/dist/interfaces/core.security.index.d.ts.map +1 -1
  34. package/dist/interfaces/lib.index.d.ts +1 -1
  35. package/dist/interfaces/lib.index.d.ts.map +1 -1
  36. package/dist/lib/Definition.d.ts.map +1 -1
  37. package/dist/lib/Definition.js +1 -0
  38. package/dist/lib/Definition.js.map +1 -1
  39. package/dist/lib/EngineBlox.d.ts +4 -5
  40. package/dist/lib/EngineBlox.d.ts.map +1 -1
  41. package/dist/lib/EngineBlox.js +9 -5
  42. package/dist/lib/EngineBlox.js.map +1 -1
  43. package/dist/types/core.security.index.js +2 -2
  44. package/dist/types/definition.index.d.ts +5 -0
  45. package/dist/types/definition.index.d.ts.map +1 -1
  46. package/dist/types/definition.index.js.map +1 -1
  47. package/dist/types/lib.index.d.ts +0 -1
  48. package/dist/types/lib.index.d.ts.map +1 -1
  49. package/dist/types/lib.index.js +1 -2
  50. package/dist/types/lib.index.js.map +1 -1
  51. package/dist/utils/contract-errors.d.ts +1 -8
  52. package/dist/utils/contract-errors.d.ts.map +1 -1
  53. package/dist/utils/contract-errors.js +0 -5
  54. package/dist/utils/contract-errors.js.map +1 -1
  55. package/dist/utils/interface-ids.js +1 -1
  56. package/dist/utils/validations.d.ts.map +1 -1
  57. package/dist/utils/validations.js +10 -11
  58. package/dist/utils/validations.js.map +1 -1
  59. package/package.json +2 -2
  60. package/abi/SimpleRWA20.abi.json +0 -4010
  61. package/abi/SimpleRWA20Definitions.abi.json +0 -196
  62. package/abi/SimpleVault.abi.json +0 -3385
  63. package/abi/SimpleVaultDefinitions.abi.json +0 -274
@@ -1,2350 +1,2355 @@
1
1
  [
2
2
  {
3
+ "type": "function",
4
+ "name": "approveTimeLockExecution",
3
5
  "inputs": [
4
6
  {
5
- "internalType": "uint256",
6
- "name": "array1Length",
7
- "type": "uint256"
8
- },
9
- {
10
- "internalType": "uint256",
11
- "name": "array2Length",
12
- "type": "uint256"
13
- }
14
- ],
15
- "name": "ArrayLengthMismatch",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "uint256",
22
- "name": "currentSize",
23
- "type": "uint256"
24
- },
25
- {
26
- "internalType": "uint256",
27
- "name": "maxSize",
28
- "type": "uint256"
29
- }
30
- ],
31
- "name": "BatchSizeExceeded",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [
36
- {
37
- "internalType": "bytes4",
38
- "name": "functionSelector",
39
- "type": "bytes4"
40
- }
41
- ],
42
- "name": "ContractFunctionMustBeProtected",
43
- "type": "error"
44
- },
45
- {
46
- "inputs": [
47
- {
48
- "internalType": "bytes4",
49
- "name": "functionSelector",
50
- "type": "bytes4"
51
- }
52
- ],
53
- "name": "InternalFunctionNotAccessible",
54
- "type": "error"
55
- },
56
- {
57
- "inputs": [],
58
- "name": "InvalidInitialization",
59
- "type": "error"
60
- },
61
- {
62
- "inputs": [],
63
- "name": "InvalidPayment",
64
- "type": "error"
65
- },
66
- {
67
- "inputs": [
68
- {
69
- "internalType": "address",
70
- "name": "signedContract",
71
- "type": "address"
72
- },
73
- {
74
- "internalType": "address",
75
- "name": "entryContract",
76
- "type": "address"
77
- }
78
- ],
79
- "name": "MetaTxHandlerContractMismatch",
80
- "type": "error"
81
- },
82
- {
83
- "inputs": [
84
- {
85
- "internalType": "bytes4",
86
- "name": "signedSelector",
87
- "type": "bytes4"
88
- },
89
- {
90
- "internalType": "bytes4",
91
- "name": "entrySelector",
92
- "type": "bytes4"
93
- }
94
- ],
95
- "name": "MetaTxHandlerSelectorMismatch",
96
- "type": "error"
97
- },
98
- {
99
- "inputs": [
100
- {
101
- "internalType": "address",
102
- "name": "caller",
103
- "type": "address"
104
- }
105
- ],
106
- "name": "NoPermission",
107
- "type": "error"
108
- },
109
- {
110
- "inputs": [],
111
- "name": "NotInitializing",
112
- "type": "error"
113
- },
114
- {
115
- "inputs": [],
116
- "name": "NotSupported",
117
- "type": "error"
118
- },
119
- {
120
- "inputs": [
121
- {
122
- "internalType": "address",
123
- "name": "caller",
124
- "type": "address"
125
- },
126
- {
127
- "internalType": "address",
128
- "name": "contractAddress",
129
- "type": "address"
130
- }
131
- ],
132
- "name": "OnlyCallableByContract",
133
- "type": "error"
134
- },
135
- {
136
- "inputs": [
137
- {
138
- "internalType": "uint256",
139
- "name": "rangeSize",
140
- "type": "uint256"
141
- },
142
- {
143
- "internalType": "uint256",
144
- "name": "maxRangeSize",
145
- "type": "uint256"
146
- }
147
- ],
148
- "name": "RangeSizeExceeded",
149
- "type": "error"
150
- },
151
- {
152
- "inputs": [],
153
- "name": "ReentrancyGuardReentrantCall",
154
- "type": "error"
155
- },
156
- {
157
- "inputs": [
158
- {
159
- "internalType": "bytes32",
160
- "name": "resourceId",
161
- "type": "bytes32"
162
- }
163
- ],
164
- "name": "ResourceNotFound",
165
- "type": "error"
166
- },
167
- {
168
- "anonymous": false,
169
- "inputs": [
170
- {
171
- "indexed": true,
172
- "internalType": "bytes4",
173
- "name": "functionSelector",
174
- "type": "bytes4"
175
- },
176
- {
177
- "indexed": false,
178
- "internalType": "bytes",
179
- "name": "data",
180
- "type": "bytes"
181
- }
182
- ],
183
- "name": "ComponentEvent",
184
- "type": "event"
185
- },
186
- {
187
- "anonymous": false,
188
- "inputs": [
189
- {
190
- "indexed": false,
191
- "internalType": "uint64",
192
- "name": "version",
193
- "type": "uint64"
194
- }
195
- ],
196
- "name": "Initialized",
197
- "type": "event"
198
- },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "address",
203
- "name": "handlerContract",
204
- "type": "address"
205
- },
206
- {
207
- "internalType": "bytes4",
208
- "name": "handlerSelector",
209
- "type": "bytes4"
210
- },
211
- {
212
- "internalType": "enum EngineBlox.TxAction",
213
- "name": "action",
214
- "type": "uint8"
215
- },
216
- {
217
- "internalType": "uint256",
218
- "name": "deadline",
219
- "type": "uint256"
220
- },
221
- {
222
- "internalType": "uint256",
223
- "name": "maxGasPrice",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "address",
228
- "name": "signer",
229
- "type": "address"
7
+ "name": "txId",
8
+ "type": "uint256",
9
+ "internalType": "uint256"
230
10
  }
231
11
  ],
232
- "name": "createMetaTxParams",
233
12
  "outputs": [
234
13
  {
235
- "components": [
236
- {
237
- "internalType": "uint256",
238
- "name": "chainId",
239
- "type": "uint256"
240
- },
241
- {
242
- "internalType": "uint256",
243
- "name": "nonce",
244
- "type": "uint256"
245
- },
246
- {
247
- "internalType": "address",
248
- "name": "handlerContract",
249
- "type": "address"
250
- },
251
- {
252
- "internalType": "bytes4",
253
- "name": "handlerSelector",
254
- "type": "bytes4"
255
- },
256
- {
257
- "internalType": "enum EngineBlox.TxAction",
258
- "name": "action",
259
- "type": "uint8"
260
- },
261
- {
262
- "internalType": "uint256",
263
- "name": "deadline",
264
- "type": "uint256"
265
- },
266
- {
267
- "internalType": "uint256",
268
- "name": "maxGasPrice",
269
- "type": "uint256"
270
- },
271
- {
272
- "internalType": "address",
273
- "name": "signer",
274
- "type": "address"
275
- }
276
- ],
277
- "internalType": "struct EngineBlox.MetaTxParams",
278
14
  "name": "",
279
- "type": "tuple"
15
+ "type": "uint256",
16
+ "internalType": "uint256"
280
17
  }
281
18
  ],
282
- "stateMutability": "view",
283
- "type": "function"
19
+ "stateMutability": "nonpayable"
284
20
  },
285
21
  {
22
+ "type": "function",
23
+ "name": "approveTimeLockExecutionWithMetaTx",
286
24
  "inputs": [
287
25
  {
288
- "internalType": "uint256",
289
- "name": "txId",
290
- "type": "uint256"
291
- },
292
- {
293
- "components": [
294
- {
295
- "internalType": "uint256",
296
- "name": "chainId",
297
- "type": "uint256"
298
- },
299
- {
300
- "internalType": "uint256",
301
- "name": "nonce",
302
- "type": "uint256"
303
- },
304
- {
305
- "internalType": "address",
306
- "name": "handlerContract",
307
- "type": "address"
308
- },
309
- {
310
- "internalType": "bytes4",
311
- "name": "handlerSelector",
312
- "type": "bytes4"
313
- },
314
- {
315
- "internalType": "enum EngineBlox.TxAction",
316
- "name": "action",
317
- "type": "uint8"
318
- },
319
- {
320
- "internalType": "uint256",
321
- "name": "deadline",
322
- "type": "uint256"
323
- },
324
- {
325
- "internalType": "uint256",
326
- "name": "maxGasPrice",
327
- "type": "uint256"
328
- },
329
- {
330
- "internalType": "address",
331
- "name": "signer",
332
- "type": "address"
333
- }
334
- ],
335
- "internalType": "struct EngineBlox.MetaTxParams",
336
- "name": "metaTxParams",
337
- "type": "tuple"
338
- }
339
- ],
340
- "name": "generateUnsignedMetaTransactionForExisting",
341
- "outputs": [
342
- {
26
+ "name": "metaTx",
27
+ "type": "tuple",
28
+ "internalType": "struct EngineBlox.MetaTransaction",
343
29
  "components": [
344
30
  {
31
+ "name": "txRecord",
32
+ "type": "tuple",
33
+ "internalType": "struct EngineBlox.TxRecord",
345
34
  "components": [
346
35
  {
347
- "internalType": "uint256",
348
36
  "name": "txId",
349
- "type": "uint256"
37
+ "type": "uint256",
38
+ "internalType": "uint256"
350
39
  },
351
40
  {
352
- "internalType": "uint256",
353
41
  "name": "releaseTime",
354
- "type": "uint256"
42
+ "type": "uint256",
43
+ "internalType": "uint256"
355
44
  },
356
45
  {
357
- "internalType": "enum EngineBlox.TxStatus",
358
46
  "name": "status",
359
- "type": "uint8"
47
+ "type": "uint8",
48
+ "internalType": "enum EngineBlox.TxStatus"
360
49
  },
361
50
  {
51
+ "name": "params",
52
+ "type": "tuple",
53
+ "internalType": "struct EngineBlox.TxParams",
362
54
  "components": [
363
55
  {
364
- "internalType": "address",
365
56
  "name": "requester",
366
- "type": "address"
57
+ "type": "address",
58
+ "internalType": "address"
367
59
  },
368
60
  {
369
- "internalType": "address",
370
61
  "name": "target",
371
- "type": "address"
62
+ "type": "address",
63
+ "internalType": "address"
372
64
  },
373
65
  {
374
- "internalType": "uint256",
375
66
  "name": "value",
376
- "type": "uint256"
67
+ "type": "uint256",
68
+ "internalType": "uint256"
377
69
  },
378
70
  {
379
- "internalType": "uint256",
380
71
  "name": "gasLimit",
381
- "type": "uint256"
72
+ "type": "uint256",
73
+ "internalType": "uint256"
382
74
  },
383
75
  {
384
- "internalType": "bytes32",
385
76
  "name": "operationType",
386
- "type": "bytes32"
77
+ "type": "bytes32",
78
+ "internalType": "bytes32"
387
79
  },
388
80
  {
389
- "internalType": "bytes4",
390
81
  "name": "executionSelector",
391
- "type": "bytes4"
82
+ "type": "bytes4",
83
+ "internalType": "bytes4"
392
84
  },
393
85
  {
394
- "internalType": "bytes",
395
86
  "name": "executionParams",
396
- "type": "bytes"
87
+ "type": "bytes",
88
+ "internalType": "bytes"
397
89
  }
398
- ],
399
- "internalType": "struct EngineBlox.TxParams",
400
- "name": "params",
401
- "type": "tuple"
90
+ ]
402
91
  },
403
92
  {
404
- "internalType": "bytes32",
405
93
  "name": "message",
406
- "type": "bytes32"
94
+ "type": "bytes32",
95
+ "internalType": "bytes32"
407
96
  },
408
97
  {
409
- "internalType": "bytes",
410
- "name": "result",
411
- "type": "bytes"
98
+ "name": "resultHash",
99
+ "type": "bytes32",
100
+ "internalType": "bytes32"
412
101
  },
413
102
  {
103
+ "name": "payment",
104
+ "type": "tuple",
105
+ "internalType": "struct EngineBlox.PaymentDetails",
414
106
  "components": [
415
107
  {
416
- "internalType": "address",
417
108
  "name": "recipient",
418
- "type": "address"
109
+ "type": "address",
110
+ "internalType": "address"
419
111
  },
420
112
  {
421
- "internalType": "uint256",
422
113
  "name": "nativeTokenAmount",
423
- "type": "uint256"
114
+ "type": "uint256",
115
+ "internalType": "uint256"
424
116
  },
425
117
  {
426
- "internalType": "address",
427
118
  "name": "erc20TokenAddress",
428
- "type": "address"
119
+ "type": "address",
120
+ "internalType": "address"
429
121
  },
430
122
  {
431
- "internalType": "uint256",
432
123
  "name": "erc20TokenAmount",
433
- "type": "uint256"
124
+ "type": "uint256",
125
+ "internalType": "uint256"
434
126
  }
435
- ],
436
- "internalType": "struct EngineBlox.PaymentDetails",
437
- "name": "payment",
438
- "type": "tuple"
127
+ ]
439
128
  }
440
- ],
441
- "internalType": "struct EngineBlox.TxRecord",
442
- "name": "txRecord",
443
- "type": "tuple"
129
+ ]
444
130
  },
445
131
  {
132
+ "name": "params",
133
+ "type": "tuple",
134
+ "internalType": "struct EngineBlox.MetaTxParams",
446
135
  "components": [
447
136
  {
448
- "internalType": "uint256",
449
137
  "name": "chainId",
450
- "type": "uint256"
138
+ "type": "uint256",
139
+ "internalType": "uint256"
451
140
  },
452
141
  {
453
- "internalType": "uint256",
454
142
  "name": "nonce",
455
- "type": "uint256"
143
+ "type": "uint256",
144
+ "internalType": "uint256"
456
145
  },
457
146
  {
458
- "internalType": "address",
459
147
  "name": "handlerContract",
460
- "type": "address"
148
+ "type": "address",
149
+ "internalType": "address"
461
150
  },
462
151
  {
463
- "internalType": "bytes4",
464
152
  "name": "handlerSelector",
465
- "type": "bytes4"
153
+ "type": "bytes4",
154
+ "internalType": "bytes4"
466
155
  },
467
156
  {
468
- "internalType": "enum EngineBlox.TxAction",
469
157
  "name": "action",
470
- "type": "uint8"
158
+ "type": "uint8",
159
+ "internalType": "enum EngineBlox.TxAction"
471
160
  },
472
161
  {
473
- "internalType": "uint256",
474
162
  "name": "deadline",
475
- "type": "uint256"
163
+ "type": "uint256",
164
+ "internalType": "uint256"
476
165
  },
477
166
  {
478
- "internalType": "uint256",
479
167
  "name": "maxGasPrice",
480
- "type": "uint256"
168
+ "type": "uint256",
169
+ "internalType": "uint256"
481
170
  },
482
171
  {
483
- "internalType": "address",
484
172
  "name": "signer",
485
- "type": "address"
173
+ "type": "address",
174
+ "internalType": "address"
486
175
  }
487
- ],
488
- "internalType": "struct EngineBlox.MetaTxParams",
489
- "name": "params",
490
- "type": "tuple"
176
+ ]
491
177
  },
492
178
  {
493
- "internalType": "bytes32",
494
179
  "name": "message",
495
- "type": "bytes32"
180
+ "type": "bytes32",
181
+ "internalType": "bytes32"
496
182
  },
497
183
  {
498
- "internalType": "bytes",
499
184
  "name": "signature",
500
- "type": "bytes"
185
+ "type": "bytes",
186
+ "internalType": "bytes"
501
187
  },
502
188
  {
503
- "internalType": "bytes",
504
189
  "name": "data",
505
- "type": "bytes"
190
+ "type": "bytes",
191
+ "internalType": "bytes"
506
192
  }
507
- ],
508
- "internalType": "struct EngineBlox.MetaTransaction",
193
+ ]
194
+ }
195
+ ],
196
+ "outputs": [
197
+ {
509
198
  "name": "",
510
- "type": "tuple"
199
+ "type": "uint256",
200
+ "internalType": "uint256"
511
201
  }
512
202
  ],
513
- "stateMutability": "view",
514
- "type": "function"
203
+ "stateMutability": "nonpayable"
515
204
  },
516
205
  {
206
+ "type": "function",
207
+ "name": "cancelTimeLockExecution",
517
208
  "inputs": [
518
209
  {
519
- "internalType": "address",
520
- "name": "requester",
521
- "type": "address"
522
- },
523
- {
524
- "internalType": "address",
525
- "name": "target",
526
- "type": "address"
527
- },
210
+ "name": "txId",
211
+ "type": "uint256",
212
+ "internalType": "uint256"
213
+ }
214
+ ],
215
+ "outputs": [
528
216
  {
529
- "internalType": "uint256",
530
- "name": "value",
531
- "type": "uint256"
532
- },
533
- {
534
- "internalType": "uint256",
535
- "name": "gasLimit",
536
- "type": "uint256"
537
- },
538
- {
539
- "internalType": "bytes32",
540
- "name": "operationType",
541
- "type": "bytes32"
542
- },
543
- {
544
- "internalType": "bytes4",
545
- "name": "executionSelector",
546
- "type": "bytes4"
547
- },
548
- {
549
- "internalType": "bytes",
550
- "name": "executionParams",
551
- "type": "bytes"
552
- },
553
- {
554
- "components": [
555
- {
556
- "internalType": "uint256",
557
- "name": "chainId",
558
- "type": "uint256"
559
- },
560
- {
561
- "internalType": "uint256",
562
- "name": "nonce",
563
- "type": "uint256"
564
- },
565
- {
566
- "internalType": "address",
567
- "name": "handlerContract",
568
- "type": "address"
569
- },
570
- {
571
- "internalType": "bytes4",
572
- "name": "handlerSelector",
573
- "type": "bytes4"
574
- },
575
- {
576
- "internalType": "enum EngineBlox.TxAction",
577
- "name": "action",
578
- "type": "uint8"
579
- },
580
- {
581
- "internalType": "uint256",
582
- "name": "deadline",
583
- "type": "uint256"
584
- },
585
- {
586
- "internalType": "uint256",
587
- "name": "maxGasPrice",
588
- "type": "uint256"
589
- },
590
- {
591
- "internalType": "address",
592
- "name": "signer",
593
- "type": "address"
594
- }
595
- ],
596
- "internalType": "struct EngineBlox.MetaTxParams",
597
- "name": "metaTxParams",
598
- "type": "tuple"
217
+ "name": "",
218
+ "type": "uint256",
219
+ "internalType": "uint256"
599
220
  }
600
221
  ],
601
- "name": "generateUnsignedMetaTransactionForNew",
602
- "outputs": [
222
+ "stateMutability": "nonpayable"
223
+ },
224
+ {
225
+ "type": "function",
226
+ "name": "cancelTimeLockExecutionWithMetaTx",
227
+ "inputs": [
603
228
  {
229
+ "name": "metaTx",
230
+ "type": "tuple",
231
+ "internalType": "struct EngineBlox.MetaTransaction",
604
232
  "components": [
605
233
  {
234
+ "name": "txRecord",
235
+ "type": "tuple",
236
+ "internalType": "struct EngineBlox.TxRecord",
606
237
  "components": [
607
238
  {
608
- "internalType": "uint256",
609
239
  "name": "txId",
610
- "type": "uint256"
240
+ "type": "uint256",
241
+ "internalType": "uint256"
611
242
  },
612
243
  {
613
- "internalType": "uint256",
614
244
  "name": "releaseTime",
615
- "type": "uint256"
245
+ "type": "uint256",
246
+ "internalType": "uint256"
616
247
  },
617
248
  {
618
- "internalType": "enum EngineBlox.TxStatus",
619
249
  "name": "status",
620
- "type": "uint8"
250
+ "type": "uint8",
251
+ "internalType": "enum EngineBlox.TxStatus"
621
252
  },
622
253
  {
254
+ "name": "params",
255
+ "type": "tuple",
256
+ "internalType": "struct EngineBlox.TxParams",
623
257
  "components": [
624
258
  {
625
- "internalType": "address",
626
259
  "name": "requester",
627
- "type": "address"
260
+ "type": "address",
261
+ "internalType": "address"
628
262
  },
629
263
  {
630
- "internalType": "address",
631
264
  "name": "target",
632
- "type": "address"
265
+ "type": "address",
266
+ "internalType": "address"
633
267
  },
634
268
  {
635
- "internalType": "uint256",
636
269
  "name": "value",
637
- "type": "uint256"
270
+ "type": "uint256",
271
+ "internalType": "uint256"
638
272
  },
639
273
  {
640
- "internalType": "uint256",
641
274
  "name": "gasLimit",
642
- "type": "uint256"
275
+ "type": "uint256",
276
+ "internalType": "uint256"
643
277
  },
644
278
  {
645
- "internalType": "bytes32",
646
279
  "name": "operationType",
647
- "type": "bytes32"
280
+ "type": "bytes32",
281
+ "internalType": "bytes32"
648
282
  },
649
283
  {
650
- "internalType": "bytes4",
651
284
  "name": "executionSelector",
652
- "type": "bytes4"
285
+ "type": "bytes4",
286
+ "internalType": "bytes4"
653
287
  },
654
288
  {
655
- "internalType": "bytes",
656
289
  "name": "executionParams",
657
- "type": "bytes"
290
+ "type": "bytes",
291
+ "internalType": "bytes"
658
292
  }
659
- ],
660
- "internalType": "struct EngineBlox.TxParams",
661
- "name": "params",
662
- "type": "tuple"
293
+ ]
663
294
  },
664
295
  {
665
- "internalType": "bytes32",
666
296
  "name": "message",
667
- "type": "bytes32"
297
+ "type": "bytes32",
298
+ "internalType": "bytes32"
668
299
  },
669
300
  {
670
- "internalType": "bytes",
671
- "name": "result",
672
- "type": "bytes"
301
+ "name": "resultHash",
302
+ "type": "bytes32",
303
+ "internalType": "bytes32"
673
304
  },
674
305
  {
306
+ "name": "payment",
307
+ "type": "tuple",
308
+ "internalType": "struct EngineBlox.PaymentDetails",
675
309
  "components": [
676
310
  {
677
- "internalType": "address",
678
311
  "name": "recipient",
679
- "type": "address"
312
+ "type": "address",
313
+ "internalType": "address"
680
314
  },
681
315
  {
682
- "internalType": "uint256",
683
316
  "name": "nativeTokenAmount",
684
- "type": "uint256"
317
+ "type": "uint256",
318
+ "internalType": "uint256"
685
319
  },
686
320
  {
687
- "internalType": "address",
688
321
  "name": "erc20TokenAddress",
689
- "type": "address"
322
+ "type": "address",
323
+ "internalType": "address"
690
324
  },
691
325
  {
692
- "internalType": "uint256",
693
326
  "name": "erc20TokenAmount",
694
- "type": "uint256"
327
+ "type": "uint256",
328
+ "internalType": "uint256"
695
329
  }
696
- ],
697
- "internalType": "struct EngineBlox.PaymentDetails",
698
- "name": "payment",
699
- "type": "tuple"
330
+ ]
700
331
  }
701
- ],
702
- "internalType": "struct EngineBlox.TxRecord",
703
- "name": "txRecord",
704
- "type": "tuple"
332
+ ]
705
333
  },
706
334
  {
335
+ "name": "params",
336
+ "type": "tuple",
337
+ "internalType": "struct EngineBlox.MetaTxParams",
707
338
  "components": [
708
339
  {
709
- "internalType": "uint256",
710
340
  "name": "chainId",
711
- "type": "uint256"
341
+ "type": "uint256",
342
+ "internalType": "uint256"
712
343
  },
713
344
  {
714
- "internalType": "uint256",
715
345
  "name": "nonce",
716
- "type": "uint256"
346
+ "type": "uint256",
347
+ "internalType": "uint256"
717
348
  },
718
349
  {
719
- "internalType": "address",
720
350
  "name": "handlerContract",
721
- "type": "address"
351
+ "type": "address",
352
+ "internalType": "address"
722
353
  },
723
354
  {
724
- "internalType": "bytes4",
725
355
  "name": "handlerSelector",
726
- "type": "bytes4"
356
+ "type": "bytes4",
357
+ "internalType": "bytes4"
727
358
  },
728
359
  {
729
- "internalType": "enum EngineBlox.TxAction",
730
360
  "name": "action",
731
- "type": "uint8"
361
+ "type": "uint8",
362
+ "internalType": "enum EngineBlox.TxAction"
732
363
  },
733
364
  {
734
- "internalType": "uint256",
735
365
  "name": "deadline",
736
- "type": "uint256"
366
+ "type": "uint256",
367
+ "internalType": "uint256"
737
368
  },
738
369
  {
739
- "internalType": "uint256",
740
370
  "name": "maxGasPrice",
741
- "type": "uint256"
371
+ "type": "uint256",
372
+ "internalType": "uint256"
742
373
  },
743
374
  {
744
- "internalType": "address",
745
375
  "name": "signer",
746
- "type": "address"
376
+ "type": "address",
377
+ "internalType": "address"
747
378
  }
748
- ],
749
- "internalType": "struct EngineBlox.MetaTxParams",
750
- "name": "params",
751
- "type": "tuple"
379
+ ]
752
380
  },
753
381
  {
754
- "internalType": "bytes32",
755
382
  "name": "message",
756
- "type": "bytes32"
383
+ "type": "bytes32",
384
+ "internalType": "bytes32"
757
385
  },
758
386
  {
759
- "internalType": "bytes",
760
387
  "name": "signature",
761
- "type": "bytes"
388
+ "type": "bytes",
389
+ "internalType": "bytes"
762
390
  },
763
391
  {
764
- "internalType": "bytes",
765
392
  "name": "data",
766
- "type": "bytes"
393
+ "type": "bytes",
394
+ "internalType": "bytes"
767
395
  }
768
- ],
769
- "internalType": "struct EngineBlox.MetaTransaction",
770
- "name": "",
771
- "type": "tuple"
772
- }
773
- ],
774
- "stateMutability": "view",
775
- "type": "function"
776
- },
777
- {
778
- "inputs": [
779
- {
780
- "internalType": "bytes32",
781
- "name": "roleHash",
782
- "type": "bytes32"
396
+ ]
783
397
  }
784
398
  ],
785
- "name": "getActiveRolePermissions",
786
399
  "outputs": [
787
400
  {
788
- "components": [
789
- {
790
- "internalType": "bytes4",
791
- "name": "functionSelector",
792
- "type": "bytes4"
793
- },
794
- {
795
- "internalType": "uint16",
796
- "name": "grantedActionsBitmap",
797
- "type": "uint16"
798
- },
799
- {
800
- "internalType": "bytes4[]",
801
- "name": "handlerForSelectors",
802
- "type": "bytes4[]"
803
- }
804
- ],
805
- "internalType": "struct EngineBlox.FunctionPermission[]",
806
401
  "name": "",
807
- "type": "tuple[]"
402
+ "type": "uint256",
403
+ "internalType": "uint256"
808
404
  }
809
405
  ],
810
- "stateMutability": "view",
811
- "type": "function"
406
+ "stateMutability": "nonpayable"
812
407
  },
813
408
  {
409
+ "type": "function",
410
+ "name": "createMetaTxParams",
814
411
  "inputs": [
815
412
  {
816
- "internalType": "bytes32",
817
- "name": "roleHash",
818
- "type": "bytes32"
819
- }
820
- ],
821
- "name": "getAuthorizedWallets",
822
- "outputs": [
413
+ "name": "handlerContract",
414
+ "type": "address",
415
+ "internalType": "address"
416
+ },
823
417
  {
824
- "internalType": "address[]",
825
- "name": "",
826
- "type": "address[]"
827
- }
828
- ],
829
- "stateMutability": "view",
830
- "type": "function"
831
- },
832
- {
833
- "inputs": [],
834
- "name": "getBroadcasters",
835
- "outputs": [
418
+ "name": "handlerSelector",
419
+ "type": "bytes4",
420
+ "internalType": "bytes4"
421
+ },
836
422
  {
837
- "internalType": "address[]",
838
- "name": "",
839
- "type": "address[]"
840
- }
841
- ],
842
- "stateMutability": "view",
843
- "type": "function"
844
- },
845
- {
846
- "inputs": [
423
+ "name": "action",
424
+ "type": "uint8",
425
+ "internalType": "enum EngineBlox.TxAction"
426
+ },
847
427
  {
848
- "internalType": "bytes4",
849
- "name": "functionSelector",
850
- "type": "bytes4"
428
+ "name": "deadline",
429
+ "type": "uint256",
430
+ "internalType": "uint256"
431
+ },
432
+ {
433
+ "name": "maxGasPrice",
434
+ "type": "uint256",
435
+ "internalType": "uint256"
436
+ },
437
+ {
438
+ "name": "signer",
439
+ "type": "address",
440
+ "internalType": "address"
851
441
  }
852
442
  ],
853
- "name": "getFunctionSchema",
854
443
  "outputs": [
855
444
  {
445
+ "name": "",
446
+ "type": "tuple",
447
+ "internalType": "struct EngineBlox.MetaTxParams",
856
448
  "components": [
857
449
  {
858
- "internalType": "string",
859
- "name": "functionSignature",
860
- "type": "string"
450
+ "name": "chainId",
451
+ "type": "uint256",
452
+ "internalType": "uint256"
861
453
  },
862
454
  {
863
- "internalType": "bytes4",
864
- "name": "functionSelector",
865
- "type": "bytes4"
455
+ "name": "nonce",
456
+ "type": "uint256",
457
+ "internalType": "uint256"
866
458
  },
867
459
  {
868
- "internalType": "bytes32",
869
- "name": "operationType",
870
- "type": "bytes32"
460
+ "name": "handlerContract",
461
+ "type": "address",
462
+ "internalType": "address"
871
463
  },
872
464
  {
873
- "internalType": "string",
874
- "name": "operationName",
875
- "type": "string"
465
+ "name": "handlerSelector",
466
+ "type": "bytes4",
467
+ "internalType": "bytes4"
876
468
  },
877
469
  {
878
- "internalType": "uint16",
879
- "name": "supportedActionsBitmap",
880
- "type": "uint16"
470
+ "name": "action",
471
+ "type": "uint8",
472
+ "internalType": "enum EngineBlox.TxAction"
881
473
  },
882
474
  {
883
- "internalType": "bool",
884
- "name": "enforceHandlerRelations",
885
- "type": "bool"
475
+ "name": "deadline",
476
+ "type": "uint256",
477
+ "internalType": "uint256"
886
478
  },
887
479
  {
888
- "internalType": "bool",
889
- "name": "isProtected",
890
- "type": "bool"
480
+ "name": "maxGasPrice",
481
+ "type": "uint256",
482
+ "internalType": "uint256"
891
483
  },
892
484
  {
893
- "internalType": "bytes4[]",
894
- "name": "handlerForSelectors",
895
- "type": "bytes4[]"
485
+ "name": "signer",
486
+ "type": "address",
487
+ "internalType": "address"
896
488
  }
897
- ],
898
- "internalType": "struct EngineBlox.FunctionSchema",
899
- "name": "",
900
- "type": "tuple"
489
+ ]
901
490
  }
902
491
  ],
903
- "stateMutability": "view",
904
- "type": "function"
492
+ "stateMutability": "view"
905
493
  },
906
494
  {
495
+ "type": "function",
496
+ "name": "executeGuardConfigBatch",
907
497
  "inputs": [
908
498
  {
909
- "internalType": "bytes4",
910
- "name": "functionSelector",
911
- "type": "bytes4"
912
- }
913
- ],
914
- "name": "getFunctionWhitelistTargets",
915
- "outputs": [
916
- {
917
- "internalType": "address[]",
918
- "name": "",
919
- "type": "address[]"
499
+ "name": "actions",
500
+ "type": "tuple[]",
501
+ "internalType": "struct IGuardController.GuardConfigAction[]",
502
+ "components": [
503
+ {
504
+ "name": "actionType",
505
+ "type": "uint8",
506
+ "internalType": "enum IGuardController.GuardConfigActionType"
507
+ },
508
+ {
509
+ "name": "data",
510
+ "type": "bytes",
511
+ "internalType": "bytes"
512
+ }
513
+ ]
920
514
  }
921
515
  ],
922
- "stateMutability": "view",
923
- "type": "function"
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable"
924
518
  },
925
519
  {
520
+ "type": "function",
521
+ "name": "executeWithPayment",
926
522
  "inputs": [
927
523
  {
928
- "internalType": "bytes4",
524
+ "name": "target",
525
+ "type": "address",
526
+ "internalType": "address"
527
+ },
528
+ {
529
+ "name": "value",
530
+ "type": "uint256",
531
+ "internalType": "uint256"
532
+ },
533
+ {
929
534
  "name": "functionSelector",
930
- "type": "bytes4"
931
- }
932
- ],
933
- "name": "getHooks",
934
- "outputs": [
535
+ "type": "bytes4",
536
+ "internalType": "bytes4"
537
+ },
935
538
  {
936
- "internalType": "address[]",
937
- "name": "hooks",
938
- "type": "address[]"
939
- }
940
- ],
941
- "stateMutability": "view",
942
- "type": "function"
943
- },
944
- {
945
- "inputs": [],
946
- "name": "getPendingTransactions",
947
- "outputs": [
539
+ "name": "params",
540
+ "type": "bytes",
541
+ "internalType": "bytes"
542
+ },
948
543
  {
949
- "internalType": "uint256[]",
950
- "name": "",
951
- "type": "uint256[]"
544
+ "name": "gasLimit",
545
+ "type": "uint256",
546
+ "internalType": "uint256"
547
+ },
548
+ {
549
+ "name": "operationType",
550
+ "type": "bytes32",
551
+ "internalType": "bytes32"
552
+ },
553
+ {
554
+ "name": "paymentDetails",
555
+ "type": "tuple",
556
+ "internalType": "struct EngineBlox.PaymentDetails",
557
+ "components": [
558
+ {
559
+ "name": "recipient",
560
+ "type": "address",
561
+ "internalType": "address"
562
+ },
563
+ {
564
+ "name": "nativeTokenAmount",
565
+ "type": "uint256",
566
+ "internalType": "uint256"
567
+ },
568
+ {
569
+ "name": "erc20TokenAddress",
570
+ "type": "address",
571
+ "internalType": "address"
572
+ },
573
+ {
574
+ "name": "erc20TokenAmount",
575
+ "type": "uint256",
576
+ "internalType": "uint256"
577
+ }
578
+ ]
952
579
  }
953
580
  ],
954
- "stateMutability": "view",
955
- "type": "function"
956
- },
957
- {
958
- "inputs": [],
959
- "name": "getRecovery",
960
581
  "outputs": [
961
582
  {
962
- "internalType": "address",
963
- "name": "",
964
- "type": "address"
583
+ "name": "txId",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
965
586
  }
966
587
  ],
967
- "stateMutability": "view",
968
- "type": "function"
588
+ "stateMutability": "nonpayable"
969
589
  },
970
590
  {
591
+ "type": "function",
592
+ "name": "executeWithTimeLock",
971
593
  "inputs": [
972
594
  {
973
- "internalType": "bytes32",
974
- "name": "roleHash",
975
- "type": "bytes32"
976
- }
977
- ],
978
- "name": "getRole",
979
- "outputs": [
980
- {
981
- "internalType": "string",
982
- "name": "roleName",
983
- "type": "string"
595
+ "name": "target",
596
+ "type": "address",
597
+ "internalType": "address"
984
598
  },
985
599
  {
986
- "internalType": "bytes32",
987
- "name": "hash",
988
- "type": "bytes32"
600
+ "name": "value",
601
+ "type": "uint256",
602
+ "internalType": "uint256"
989
603
  },
990
604
  {
991
- "internalType": "uint256",
992
- "name": "maxWallets",
993
- "type": "uint256"
605
+ "name": "functionSelector",
606
+ "type": "bytes4",
607
+ "internalType": "bytes4"
994
608
  },
995
609
  {
996
- "internalType": "uint256",
997
- "name": "walletCount",
998
- "type": "uint256"
610
+ "name": "params",
611
+ "type": "bytes",
612
+ "internalType": "bytes"
999
613
  },
1000
614
  {
1001
- "internalType": "bool",
1002
- "name": "isProtected",
1003
- "type": "bool"
1004
- }
1005
- ],
1006
- "stateMutability": "view",
1007
- "type": "function"
1008
- },
1009
- {
1010
- "inputs": [
615
+ "name": "gasLimit",
616
+ "type": "uint256",
617
+ "internalType": "uint256"
618
+ },
1011
619
  {
1012
- "internalType": "address",
1013
- "name": "signer",
1014
- "type": "address"
620
+ "name": "operationType",
621
+ "type": "bytes32",
622
+ "internalType": "bytes32"
1015
623
  }
1016
624
  ],
1017
- "name": "getSignerNonce",
1018
625
  "outputs": [
1019
626
  {
1020
- "internalType": "uint256",
1021
- "name": "",
1022
- "type": "uint256"
627
+ "name": "txId",
628
+ "type": "uint256",
629
+ "internalType": "uint256"
1023
630
  }
1024
631
  ],
1025
- "stateMutability": "view",
1026
- "type": "function"
632
+ "stateMutability": "nonpayable"
1027
633
  },
1028
634
  {
1029
- "inputs": [],
1030
- "name": "getSupportedFunctions",
1031
- "outputs": [
635
+ "type": "function",
636
+ "name": "generateUnsignedMetaTransactionForExisting",
637
+ "inputs": [
1032
638
  {
1033
- "internalType": "bytes4[]",
1034
- "name": "",
1035
- "type": "bytes4[]"
1036
- }
1037
- ],
1038
- "stateMutability": "view",
1039
- "type": "function"
1040
- },
1041
- {
1042
- "inputs": [],
1043
- "name": "getSupportedOperationTypes",
1044
- "outputs": [
1045
- {
1046
- "internalType": "bytes32[]",
1047
- "name": "",
1048
- "type": "bytes32[]"
1049
- }
1050
- ],
1051
- "stateMutability": "view",
1052
- "type": "function"
1053
- },
1054
- {
1055
- "inputs": [],
1056
- "name": "getSupportedRoles",
1057
- "outputs": [
1058
- {
1059
- "internalType": "bytes32[]",
1060
- "name": "",
1061
- "type": "bytes32[]"
1062
- }
1063
- ],
1064
- "stateMutability": "view",
1065
- "type": "function"
1066
- },
1067
- {
1068
- "inputs": [],
1069
- "name": "getTimeLockPeriodSec",
1070
- "outputs": [
1071
- {
1072
- "internalType": "uint256",
1073
- "name": "",
1074
- "type": "uint256"
1075
- }
1076
- ],
1077
- "stateMutability": "view",
1078
- "type": "function"
1079
- },
1080
- {
1081
- "inputs": [
1082
- {
1083
- "internalType": "uint256",
1084
- "name": "txId",
1085
- "type": "uint256"
1086
- }
1087
- ],
1088
- "name": "getTransaction",
1089
- "outputs": [
639
+ "name": "txId",
640
+ "type": "uint256",
641
+ "internalType": "uint256"
642
+ },
1090
643
  {
644
+ "name": "metaTxParams",
645
+ "type": "tuple",
646
+ "internalType": "struct EngineBlox.MetaTxParams",
1091
647
  "components": [
1092
648
  {
1093
- "internalType": "uint256",
1094
- "name": "txId",
1095
- "type": "uint256"
649
+ "name": "chainId",
650
+ "type": "uint256",
651
+ "internalType": "uint256"
1096
652
  },
1097
653
  {
1098
- "internalType": "uint256",
1099
- "name": "releaseTime",
1100
- "type": "uint256"
654
+ "name": "nonce",
655
+ "type": "uint256",
656
+ "internalType": "uint256"
1101
657
  },
1102
658
  {
1103
- "internalType": "enum EngineBlox.TxStatus",
1104
- "name": "status",
1105
- "type": "uint8"
659
+ "name": "handlerContract",
660
+ "type": "address",
661
+ "internalType": "address"
662
+ },
663
+ {
664
+ "name": "handlerSelector",
665
+ "type": "bytes4",
666
+ "internalType": "bytes4"
667
+ },
668
+ {
669
+ "name": "action",
670
+ "type": "uint8",
671
+ "internalType": "enum EngineBlox.TxAction"
672
+ },
673
+ {
674
+ "name": "deadline",
675
+ "type": "uint256",
676
+ "internalType": "uint256"
677
+ },
678
+ {
679
+ "name": "maxGasPrice",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
1106
682
  },
1107
683
  {
684
+ "name": "signer",
685
+ "type": "address",
686
+ "internalType": "address"
687
+ }
688
+ ]
689
+ }
690
+ ],
691
+ "outputs": [
692
+ {
693
+ "name": "",
694
+ "type": "tuple",
695
+ "internalType": "struct EngineBlox.MetaTransaction",
696
+ "components": [
697
+ {
698
+ "name": "txRecord",
699
+ "type": "tuple",
700
+ "internalType": "struct EngineBlox.TxRecord",
1108
701
  "components": [
1109
702
  {
1110
- "internalType": "address",
1111
- "name": "requester",
1112
- "type": "address"
703
+ "name": "txId",
704
+ "type": "uint256",
705
+ "internalType": "uint256"
1113
706
  },
1114
707
  {
1115
- "internalType": "address",
1116
- "name": "target",
1117
- "type": "address"
708
+ "name": "releaseTime",
709
+ "type": "uint256",
710
+ "internalType": "uint256"
1118
711
  },
1119
712
  {
1120
- "internalType": "uint256",
1121
- "name": "value",
1122
- "type": "uint256"
713
+ "name": "status",
714
+ "type": "uint8",
715
+ "internalType": "enum EngineBlox.TxStatus"
1123
716
  },
1124
717
  {
1125
- "internalType": "uint256",
1126
- "name": "gasLimit",
1127
- "type": "uint256"
718
+ "name": "params",
719
+ "type": "tuple",
720
+ "internalType": "struct EngineBlox.TxParams",
721
+ "components": [
722
+ {
723
+ "name": "requester",
724
+ "type": "address",
725
+ "internalType": "address"
726
+ },
727
+ {
728
+ "name": "target",
729
+ "type": "address",
730
+ "internalType": "address"
731
+ },
732
+ {
733
+ "name": "value",
734
+ "type": "uint256",
735
+ "internalType": "uint256"
736
+ },
737
+ {
738
+ "name": "gasLimit",
739
+ "type": "uint256",
740
+ "internalType": "uint256"
741
+ },
742
+ {
743
+ "name": "operationType",
744
+ "type": "bytes32",
745
+ "internalType": "bytes32"
746
+ },
747
+ {
748
+ "name": "executionSelector",
749
+ "type": "bytes4",
750
+ "internalType": "bytes4"
751
+ },
752
+ {
753
+ "name": "executionParams",
754
+ "type": "bytes",
755
+ "internalType": "bytes"
756
+ }
757
+ ]
1128
758
  },
1129
759
  {
1130
- "internalType": "bytes32",
1131
- "name": "operationType",
1132
- "type": "bytes32"
760
+ "name": "message",
761
+ "type": "bytes32",
762
+ "internalType": "bytes32"
1133
763
  },
1134
764
  {
1135
- "internalType": "bytes4",
1136
- "name": "executionSelector",
1137
- "type": "bytes4"
765
+ "name": "resultHash",
766
+ "type": "bytes32",
767
+ "internalType": "bytes32"
1138
768
  },
1139
769
  {
1140
- "internalType": "bytes",
1141
- "name": "executionParams",
1142
- "type": "bytes"
770
+ "name": "payment",
771
+ "type": "tuple",
772
+ "internalType": "struct EngineBlox.PaymentDetails",
773
+ "components": [
774
+ {
775
+ "name": "recipient",
776
+ "type": "address",
777
+ "internalType": "address"
778
+ },
779
+ {
780
+ "name": "nativeTokenAmount",
781
+ "type": "uint256",
782
+ "internalType": "uint256"
783
+ },
784
+ {
785
+ "name": "erc20TokenAddress",
786
+ "type": "address",
787
+ "internalType": "address"
788
+ },
789
+ {
790
+ "name": "erc20TokenAmount",
791
+ "type": "uint256",
792
+ "internalType": "uint256"
793
+ }
794
+ ]
1143
795
  }
1144
- ],
1145
- "internalType": "struct EngineBlox.TxParams",
1146
- "name": "params",
1147
- "type": "tuple"
1148
- },
1149
- {
1150
- "internalType": "bytes32",
1151
- "name": "message",
1152
- "type": "bytes32"
1153
- },
1154
- {
1155
- "internalType": "bytes",
1156
- "name": "result",
1157
- "type": "bytes"
796
+ ]
1158
797
  },
1159
798
  {
799
+ "name": "params",
800
+ "type": "tuple",
801
+ "internalType": "struct EngineBlox.MetaTxParams",
1160
802
  "components": [
1161
803
  {
1162
- "internalType": "address",
1163
- "name": "recipient",
1164
- "type": "address"
804
+ "name": "chainId",
805
+ "type": "uint256",
806
+ "internalType": "uint256"
1165
807
  },
1166
808
  {
1167
- "internalType": "uint256",
1168
- "name": "nativeTokenAmount",
1169
- "type": "uint256"
809
+ "name": "nonce",
810
+ "type": "uint256",
811
+ "internalType": "uint256"
1170
812
  },
1171
813
  {
1172
- "internalType": "address",
1173
- "name": "erc20TokenAddress",
1174
- "type": "address"
814
+ "name": "handlerContract",
815
+ "type": "address",
816
+ "internalType": "address"
1175
817
  },
1176
818
  {
1177
- "internalType": "uint256",
1178
- "name": "erc20TokenAmount",
1179
- "type": "uint256"
819
+ "name": "handlerSelector",
820
+ "type": "bytes4",
821
+ "internalType": "bytes4"
822
+ },
823
+ {
824
+ "name": "action",
825
+ "type": "uint8",
826
+ "internalType": "enum EngineBlox.TxAction"
827
+ },
828
+ {
829
+ "name": "deadline",
830
+ "type": "uint256",
831
+ "internalType": "uint256"
832
+ },
833
+ {
834
+ "name": "maxGasPrice",
835
+ "type": "uint256",
836
+ "internalType": "uint256"
837
+ },
838
+ {
839
+ "name": "signer",
840
+ "type": "address",
841
+ "internalType": "address"
1180
842
  }
1181
- ],
1182
- "internalType": "struct EngineBlox.PaymentDetails",
1183
- "name": "payment",
1184
- "type": "tuple"
843
+ ]
844
+ },
845
+ {
846
+ "name": "message",
847
+ "type": "bytes32",
848
+ "internalType": "bytes32"
849
+ },
850
+ {
851
+ "name": "signature",
852
+ "type": "bytes",
853
+ "internalType": "bytes"
854
+ },
855
+ {
856
+ "name": "data",
857
+ "type": "bytes",
858
+ "internalType": "bytes"
1185
859
  }
1186
- ],
1187
- "internalType": "struct EngineBlox.TxRecord",
1188
- "name": "",
1189
- "type": "tuple"
860
+ ]
1190
861
  }
1191
862
  ],
1192
- "stateMutability": "view",
1193
- "type": "function"
863
+ "stateMutability": "view"
1194
864
  },
1195
865
  {
866
+ "type": "function",
867
+ "name": "generateUnsignedMetaTransactionForNew",
1196
868
  "inputs": [
1197
869
  {
1198
- "internalType": "uint256",
1199
- "name": "fromTxId",
1200
- "type": "uint256"
870
+ "name": "requester",
871
+ "type": "address",
872
+ "internalType": "address"
1201
873
  },
1202
874
  {
1203
- "internalType": "uint256",
1204
- "name": "toTxId",
1205
- "type": "uint256"
1206
- }
1207
- ],
1208
- "name": "getTransactionHistory",
1209
- "outputs": [
875
+ "name": "target",
876
+ "type": "address",
877
+ "internalType": "address"
878
+ },
879
+ {
880
+ "name": "value",
881
+ "type": "uint256",
882
+ "internalType": "uint256"
883
+ },
884
+ {
885
+ "name": "gasLimit",
886
+ "type": "uint256",
887
+ "internalType": "uint256"
888
+ },
889
+ {
890
+ "name": "operationType",
891
+ "type": "bytes32",
892
+ "internalType": "bytes32"
893
+ },
1210
894
  {
895
+ "name": "executionSelector",
896
+ "type": "bytes4",
897
+ "internalType": "bytes4"
898
+ },
899
+ {
900
+ "name": "executionParams",
901
+ "type": "bytes",
902
+ "internalType": "bytes"
903
+ },
904
+ {
905
+ "name": "metaTxParams",
906
+ "type": "tuple",
907
+ "internalType": "struct EngineBlox.MetaTxParams",
1211
908
  "components": [
1212
909
  {
1213
- "internalType": "uint256",
1214
- "name": "txId",
1215
- "type": "uint256"
910
+ "name": "chainId",
911
+ "type": "uint256",
912
+ "internalType": "uint256"
1216
913
  },
1217
914
  {
1218
- "internalType": "uint256",
1219
- "name": "releaseTime",
1220
- "type": "uint256"
915
+ "name": "nonce",
916
+ "type": "uint256",
917
+ "internalType": "uint256"
1221
918
  },
1222
919
  {
1223
- "internalType": "enum EngineBlox.TxStatus",
1224
- "name": "status",
1225
- "type": "uint8"
920
+ "name": "handlerContract",
921
+ "type": "address",
922
+ "internalType": "address"
1226
923
  },
1227
924
  {
925
+ "name": "handlerSelector",
926
+ "type": "bytes4",
927
+ "internalType": "bytes4"
928
+ },
929
+ {
930
+ "name": "action",
931
+ "type": "uint8",
932
+ "internalType": "enum EngineBlox.TxAction"
933
+ },
934
+ {
935
+ "name": "deadline",
936
+ "type": "uint256",
937
+ "internalType": "uint256"
938
+ },
939
+ {
940
+ "name": "maxGasPrice",
941
+ "type": "uint256",
942
+ "internalType": "uint256"
943
+ },
944
+ {
945
+ "name": "signer",
946
+ "type": "address",
947
+ "internalType": "address"
948
+ }
949
+ ]
950
+ }
951
+ ],
952
+ "outputs": [
953
+ {
954
+ "name": "",
955
+ "type": "tuple",
956
+ "internalType": "struct EngineBlox.MetaTransaction",
957
+ "components": [
958
+ {
959
+ "name": "txRecord",
960
+ "type": "tuple",
961
+ "internalType": "struct EngineBlox.TxRecord",
1228
962
  "components": [
1229
963
  {
1230
- "internalType": "address",
1231
- "name": "requester",
1232
- "type": "address"
964
+ "name": "txId",
965
+ "type": "uint256",
966
+ "internalType": "uint256"
1233
967
  },
1234
968
  {
1235
- "internalType": "address",
1236
- "name": "target",
1237
- "type": "address"
969
+ "name": "releaseTime",
970
+ "type": "uint256",
971
+ "internalType": "uint256"
1238
972
  },
1239
973
  {
1240
- "internalType": "uint256",
1241
- "name": "value",
1242
- "type": "uint256"
974
+ "name": "status",
975
+ "type": "uint8",
976
+ "internalType": "enum EngineBlox.TxStatus"
1243
977
  },
1244
978
  {
1245
- "internalType": "uint256",
1246
- "name": "gasLimit",
1247
- "type": "uint256"
979
+ "name": "params",
980
+ "type": "tuple",
981
+ "internalType": "struct EngineBlox.TxParams",
982
+ "components": [
983
+ {
984
+ "name": "requester",
985
+ "type": "address",
986
+ "internalType": "address"
987
+ },
988
+ {
989
+ "name": "target",
990
+ "type": "address",
991
+ "internalType": "address"
992
+ },
993
+ {
994
+ "name": "value",
995
+ "type": "uint256",
996
+ "internalType": "uint256"
997
+ },
998
+ {
999
+ "name": "gasLimit",
1000
+ "type": "uint256",
1001
+ "internalType": "uint256"
1002
+ },
1003
+ {
1004
+ "name": "operationType",
1005
+ "type": "bytes32",
1006
+ "internalType": "bytes32"
1007
+ },
1008
+ {
1009
+ "name": "executionSelector",
1010
+ "type": "bytes4",
1011
+ "internalType": "bytes4"
1012
+ },
1013
+ {
1014
+ "name": "executionParams",
1015
+ "type": "bytes",
1016
+ "internalType": "bytes"
1017
+ }
1018
+ ]
1248
1019
  },
1249
1020
  {
1250
- "internalType": "bytes32",
1251
- "name": "operationType",
1252
- "type": "bytes32"
1021
+ "name": "message",
1022
+ "type": "bytes32",
1023
+ "internalType": "bytes32"
1253
1024
  },
1254
1025
  {
1255
- "internalType": "bytes4",
1256
- "name": "executionSelector",
1257
- "type": "bytes4"
1026
+ "name": "resultHash",
1027
+ "type": "bytes32",
1028
+ "internalType": "bytes32"
1258
1029
  },
1259
1030
  {
1260
- "internalType": "bytes",
1261
- "name": "executionParams",
1262
- "type": "bytes"
1031
+ "name": "payment",
1032
+ "type": "tuple",
1033
+ "internalType": "struct EngineBlox.PaymentDetails",
1034
+ "components": [
1035
+ {
1036
+ "name": "recipient",
1037
+ "type": "address",
1038
+ "internalType": "address"
1039
+ },
1040
+ {
1041
+ "name": "nativeTokenAmount",
1042
+ "type": "uint256",
1043
+ "internalType": "uint256"
1044
+ },
1045
+ {
1046
+ "name": "erc20TokenAddress",
1047
+ "type": "address",
1048
+ "internalType": "address"
1049
+ },
1050
+ {
1051
+ "name": "erc20TokenAmount",
1052
+ "type": "uint256",
1053
+ "internalType": "uint256"
1054
+ }
1055
+ ]
1263
1056
  }
1264
- ],
1265
- "internalType": "struct EngineBlox.TxParams",
1266
- "name": "params",
1267
- "type": "tuple"
1268
- },
1269
- {
1270
- "internalType": "bytes32",
1271
- "name": "message",
1272
- "type": "bytes32"
1273
- },
1274
- {
1275
- "internalType": "bytes",
1276
- "name": "result",
1277
- "type": "bytes"
1057
+ ]
1278
1058
  },
1279
1059
  {
1060
+ "name": "params",
1061
+ "type": "tuple",
1062
+ "internalType": "struct EngineBlox.MetaTxParams",
1280
1063
  "components": [
1281
1064
  {
1282
- "internalType": "address",
1283
- "name": "recipient",
1284
- "type": "address"
1065
+ "name": "chainId",
1066
+ "type": "uint256",
1067
+ "internalType": "uint256"
1285
1068
  },
1286
1069
  {
1287
- "internalType": "uint256",
1288
- "name": "nativeTokenAmount",
1289
- "type": "uint256"
1070
+ "name": "nonce",
1071
+ "type": "uint256",
1072
+ "internalType": "uint256"
1290
1073
  },
1291
1074
  {
1292
- "internalType": "address",
1293
- "name": "erc20TokenAddress",
1294
- "type": "address"
1075
+ "name": "handlerContract",
1076
+ "type": "address",
1077
+ "internalType": "address"
1295
1078
  },
1296
1079
  {
1297
- "internalType": "uint256",
1298
- "name": "erc20TokenAmount",
1299
- "type": "uint256"
1080
+ "name": "handlerSelector",
1081
+ "type": "bytes4",
1082
+ "internalType": "bytes4"
1083
+ },
1084
+ {
1085
+ "name": "action",
1086
+ "type": "uint8",
1087
+ "internalType": "enum EngineBlox.TxAction"
1088
+ },
1089
+ {
1090
+ "name": "deadline",
1091
+ "type": "uint256",
1092
+ "internalType": "uint256"
1093
+ },
1094
+ {
1095
+ "name": "maxGasPrice",
1096
+ "type": "uint256",
1097
+ "internalType": "uint256"
1098
+ },
1099
+ {
1100
+ "name": "signer",
1101
+ "type": "address",
1102
+ "internalType": "address"
1300
1103
  }
1301
- ],
1302
- "internalType": "struct EngineBlox.PaymentDetails",
1303
- "name": "payment",
1304
- "type": "tuple"
1104
+ ]
1105
+ },
1106
+ {
1107
+ "name": "message",
1108
+ "type": "bytes32",
1109
+ "internalType": "bytes32"
1110
+ },
1111
+ {
1112
+ "name": "signature",
1113
+ "type": "bytes",
1114
+ "internalType": "bytes"
1115
+ },
1116
+ {
1117
+ "name": "data",
1118
+ "type": "bytes",
1119
+ "internalType": "bytes"
1305
1120
  }
1306
- ],
1307
- "internalType": "struct EngineBlox.TxRecord[]",
1308
- "name": "",
1309
- "type": "tuple[]"
1121
+ ]
1310
1122
  }
1311
1123
  ],
1312
- "stateMutability": "view",
1313
- "type": "function"
1124
+ "stateMutability": "view"
1314
1125
  },
1315
1126
  {
1127
+ "type": "function",
1128
+ "name": "getActiveRolePermissions",
1316
1129
  "inputs": [
1317
1130
  {
1318
- "internalType": "address",
1319
- "name": "wallet",
1320
- "type": "address"
1131
+ "name": "roleHash",
1132
+ "type": "bytes32",
1133
+ "internalType": "bytes32"
1321
1134
  }
1322
1135
  ],
1323
- "name": "getWalletRoles",
1324
1136
  "outputs": [
1325
1137
  {
1326
- "internalType": "bytes32[]",
1327
1138
  "name": "",
1328
- "type": "bytes32[]"
1139
+ "type": "tuple[]",
1140
+ "internalType": "struct EngineBlox.FunctionPermission[]",
1141
+ "components": [
1142
+ {
1143
+ "name": "functionSelector",
1144
+ "type": "bytes4",
1145
+ "internalType": "bytes4"
1146
+ },
1147
+ {
1148
+ "name": "grantedActionsBitmap",
1149
+ "type": "uint16",
1150
+ "internalType": "uint16"
1151
+ },
1152
+ {
1153
+ "name": "handlerForSelectors",
1154
+ "type": "bytes4[]",
1155
+ "internalType": "bytes4[]"
1156
+ }
1157
+ ]
1329
1158
  }
1330
1159
  ],
1331
- "stateMutability": "view",
1332
- "type": "function"
1160
+ "stateMutability": "view"
1333
1161
  },
1334
1162
  {
1163
+ "type": "function",
1164
+ "name": "getAuthorizedWallets",
1335
1165
  "inputs": [
1336
1166
  {
1337
- "internalType": "bytes32",
1338
1167
  "name": "roleHash",
1339
- "type": "bytes32"
1340
- },
1341
- {
1342
- "internalType": "address",
1343
- "name": "wallet",
1344
- "type": "address"
1168
+ "type": "bytes32",
1169
+ "internalType": "bytes32"
1345
1170
  }
1346
1171
  ],
1347
- "name": "hasRole",
1348
1172
  "outputs": [
1349
1173
  {
1350
- "internalType": "bool",
1351
1174
  "name": "",
1352
- "type": "bool"
1175
+ "type": "address[]",
1176
+ "internalType": "address[]"
1353
1177
  }
1354
1178
  ],
1355
- "stateMutability": "view",
1356
- "type": "function"
1179
+ "stateMutability": "view"
1357
1180
  },
1358
1181
  {
1182
+ "type": "function",
1183
+ "name": "getBroadcasters",
1359
1184
  "inputs": [],
1360
- "name": "initialized",
1361
1185
  "outputs": [
1362
1186
  {
1363
- "internalType": "bool",
1364
1187
  "name": "",
1365
- "type": "bool"
1188
+ "type": "address[]",
1189
+ "internalType": "address[]"
1366
1190
  }
1367
1191
  ],
1368
- "stateMutability": "view",
1369
- "type": "function"
1192
+ "stateMutability": "view"
1370
1193
  },
1371
1194
  {
1372
- "inputs": [],
1373
- "name": "owner",
1195
+ "type": "function",
1196
+ "name": "getFunctionSchema",
1197
+ "inputs": [
1198
+ {
1199
+ "name": "functionSelector",
1200
+ "type": "bytes4",
1201
+ "internalType": "bytes4"
1202
+ }
1203
+ ],
1374
1204
  "outputs": [
1375
1205
  {
1376
- "internalType": "address",
1377
1206
  "name": "",
1378
- "type": "address"
1207
+ "type": "tuple",
1208
+ "internalType": "struct EngineBlox.FunctionSchema",
1209
+ "components": [
1210
+ {
1211
+ "name": "functionSignature",
1212
+ "type": "string",
1213
+ "internalType": "string"
1214
+ },
1215
+ {
1216
+ "name": "functionSelector",
1217
+ "type": "bytes4",
1218
+ "internalType": "bytes4"
1219
+ },
1220
+ {
1221
+ "name": "operationType",
1222
+ "type": "bytes32",
1223
+ "internalType": "bytes32"
1224
+ },
1225
+ {
1226
+ "name": "operationName",
1227
+ "type": "string",
1228
+ "internalType": "string"
1229
+ },
1230
+ {
1231
+ "name": "supportedActionsBitmap",
1232
+ "type": "uint16",
1233
+ "internalType": "uint16"
1234
+ },
1235
+ {
1236
+ "name": "enforceHandlerRelations",
1237
+ "type": "bool",
1238
+ "internalType": "bool"
1239
+ },
1240
+ {
1241
+ "name": "isProtected",
1242
+ "type": "bool",
1243
+ "internalType": "bool"
1244
+ },
1245
+ {
1246
+ "name": "isGrantRevocable",
1247
+ "type": "bool",
1248
+ "internalType": "bool"
1249
+ },
1250
+ {
1251
+ "name": "handlerForSelectors",
1252
+ "type": "bytes4[]",
1253
+ "internalType": "bytes4[]"
1254
+ }
1255
+ ]
1379
1256
  }
1380
1257
  ],
1381
- "stateMutability": "view",
1382
- "type": "function"
1258
+ "stateMutability": "view"
1383
1259
  },
1384
1260
  {
1261
+ "type": "function",
1262
+ "name": "getFunctionWhitelistTargets",
1385
1263
  "inputs": [
1386
1264
  {
1387
- "internalType": "address",
1388
- "name": "initialOwner",
1389
- "type": "address"
1390
- },
1391
- {
1392
- "internalType": "address",
1393
- "name": "broadcaster",
1394
- "type": "address"
1395
- },
1396
- {
1397
- "internalType": "address",
1398
- "name": "recovery",
1399
- "type": "address"
1400
- },
1401
- {
1402
- "internalType": "uint256",
1403
- "name": "timeLockPeriodSec",
1404
- "type": "uint256"
1405
- },
1265
+ "name": "functionSelector",
1266
+ "type": "bytes4",
1267
+ "internalType": "bytes4"
1268
+ }
1269
+ ],
1270
+ "outputs": [
1406
1271
  {
1407
- "internalType": "address",
1408
- "name": "eventForwarder",
1409
- "type": "address"
1272
+ "name": "",
1273
+ "type": "address[]",
1274
+ "internalType": "address[]"
1410
1275
  }
1411
1276
  ],
1412
- "name": "initialize",
1413
- "outputs": [],
1414
- "stateMutability": "nonpayable",
1415
- "type": "function"
1277
+ "stateMutability": "view"
1416
1278
  },
1417
1279
  {
1280
+ "type": "function",
1281
+ "name": "getHooks",
1418
1282
  "inputs": [
1419
1283
  {
1420
- "internalType": "bytes4",
1421
- "name": "interfaceId",
1422
- "type": "bytes4"
1284
+ "name": "functionSelector",
1285
+ "type": "bytes4",
1286
+ "internalType": "bytes4"
1423
1287
  }
1424
1288
  ],
1425
- "name": "supportsInterface",
1426
1289
  "outputs": [
1427
1290
  {
1428
- "internalType": "bool",
1429
- "name": "",
1430
- "type": "bool"
1291
+ "name": "hooks",
1292
+ "type": "address[]",
1293
+ "internalType": "address[]"
1431
1294
  }
1432
1295
  ],
1433
- "stateMutability": "view",
1434
- "type": "function"
1296
+ "stateMutability": "view"
1435
1297
  },
1436
1298
  {
1437
- "inputs": [
1438
- {
1439
- "internalType": "address",
1440
- "name": "target",
1441
- "type": "address"
1442
- },
1443
- {
1444
- "internalType": "uint256",
1445
- "name": "value",
1446
- "type": "uint256"
1447
- },
1448
- {
1449
- "internalType": "bytes4",
1450
- "name": "functionSelector",
1451
- "type": "bytes4"
1452
- },
1453
- {
1454
- "internalType": "bytes",
1455
- "name": "params",
1456
- "type": "bytes"
1457
- },
1458
- {
1459
- "internalType": "uint256",
1460
- "name": "gasLimit",
1461
- "type": "uint256"
1462
- },
1299
+ "type": "function",
1300
+ "name": "getPendingTransactions",
1301
+ "inputs": [],
1302
+ "outputs": [
1463
1303
  {
1464
- "internalType": "bytes32",
1465
- "name": "operationType",
1466
- "type": "bytes32"
1304
+ "name": "",
1305
+ "type": "uint256[]",
1306
+ "internalType": "uint256[]"
1467
1307
  }
1468
1308
  ],
1469
- "name": "executeWithTimeLock",
1309
+ "stateMutability": "view"
1310
+ },
1311
+ {
1312
+ "type": "function",
1313
+ "name": "getRecovery",
1314
+ "inputs": [],
1470
1315
  "outputs": [
1471
1316
  {
1472
- "internalType": "uint256",
1473
- "name": "txId",
1474
- "type": "uint256"
1317
+ "name": "",
1318
+ "type": "address",
1319
+ "internalType": "address"
1475
1320
  }
1476
1321
  ],
1477
- "stateMutability": "nonpayable",
1478
- "type": "function"
1322
+ "stateMutability": "view"
1479
1323
  },
1480
1324
  {
1325
+ "type": "function",
1326
+ "name": "getRole",
1481
1327
  "inputs": [
1482
1328
  {
1483
- "internalType": "address",
1484
- "name": "target",
1485
- "type": "address"
1486
- },
1329
+ "name": "roleHash",
1330
+ "type": "bytes32",
1331
+ "internalType": "bytes32"
1332
+ }
1333
+ ],
1334
+ "outputs": [
1487
1335
  {
1488
- "internalType": "uint256",
1489
- "name": "value",
1490
- "type": "uint256"
1336
+ "name": "roleName",
1337
+ "type": "string",
1338
+ "internalType": "string"
1491
1339
  },
1492
1340
  {
1493
- "internalType": "bytes4",
1494
- "name": "functionSelector",
1495
- "type": "bytes4"
1341
+ "name": "hash",
1342
+ "type": "bytes32",
1343
+ "internalType": "bytes32"
1496
1344
  },
1497
1345
  {
1498
- "internalType": "bytes",
1499
- "name": "params",
1500
- "type": "bytes"
1346
+ "name": "maxWallets",
1347
+ "type": "uint256",
1348
+ "internalType": "uint256"
1501
1349
  },
1502
1350
  {
1503
- "internalType": "uint256",
1504
- "name": "gasLimit",
1505
- "type": "uint256"
1351
+ "name": "walletCount",
1352
+ "type": "uint256",
1353
+ "internalType": "uint256"
1506
1354
  },
1507
1355
  {
1508
- "internalType": "bytes32",
1509
- "name": "operationType",
1510
- "type": "bytes32"
1511
- },
1356
+ "name": "isProtected",
1357
+ "type": "bool",
1358
+ "internalType": "bool"
1359
+ }
1360
+ ],
1361
+ "stateMutability": "view"
1362
+ },
1363
+ {
1364
+ "type": "function",
1365
+ "name": "getSignerNonce",
1366
+ "inputs": [
1512
1367
  {
1513
- "components": [
1514
- {
1515
- "internalType": "address",
1516
- "name": "recipient",
1517
- "type": "address"
1518
- },
1519
- {
1520
- "internalType": "uint256",
1521
- "name": "nativeTokenAmount",
1522
- "type": "uint256"
1523
- },
1524
- {
1525
- "internalType": "address",
1526
- "name": "erc20TokenAddress",
1527
- "type": "address"
1528
- },
1529
- {
1530
- "internalType": "uint256",
1531
- "name": "erc20TokenAmount",
1532
- "type": "uint256"
1533
- }
1534
- ],
1535
- "internalType": "struct EngineBlox.PaymentDetails",
1536
- "name": "paymentDetails",
1537
- "type": "tuple"
1368
+ "name": "signer",
1369
+ "type": "address",
1370
+ "internalType": "address"
1538
1371
  }
1539
1372
  ],
1540
- "name": "executeWithPayment",
1541
1373
  "outputs": [
1542
1374
  {
1543
- "internalType": "uint256",
1544
- "name": "txId",
1545
- "type": "uint256"
1375
+ "name": "",
1376
+ "type": "uint256",
1377
+ "internalType": "uint256"
1546
1378
  }
1547
1379
  ],
1548
- "stateMutability": "nonpayable",
1549
- "type": "function"
1380
+ "stateMutability": "view"
1550
1381
  },
1551
1382
  {
1552
- "inputs": [
1383
+ "type": "function",
1384
+ "name": "getSupportedFunctions",
1385
+ "inputs": [],
1386
+ "outputs": [
1553
1387
  {
1554
- "internalType": "uint256",
1555
- "name": "txId",
1556
- "type": "uint256"
1388
+ "name": "",
1389
+ "type": "bytes4[]",
1390
+ "internalType": "bytes4[]"
1557
1391
  }
1558
1392
  ],
1559
- "name": "approveTimeLockExecution",
1393
+ "stateMutability": "view"
1394
+ },
1395
+ {
1396
+ "type": "function",
1397
+ "name": "getSupportedOperationTypes",
1398
+ "inputs": [],
1560
1399
  "outputs": [
1561
1400
  {
1562
- "internalType": "uint256",
1563
1401
  "name": "",
1564
- "type": "uint256"
1402
+ "type": "bytes32[]",
1403
+ "internalType": "bytes32[]"
1565
1404
  }
1566
1405
  ],
1567
- "stateMutability": "nonpayable",
1568
- "type": "function"
1406
+ "stateMutability": "view"
1569
1407
  },
1570
1408
  {
1571
- "inputs": [
1409
+ "type": "function",
1410
+ "name": "getSupportedRoles",
1411
+ "inputs": [],
1412
+ "outputs": [
1572
1413
  {
1573
- "internalType": "uint256",
1574
- "name": "txId",
1575
- "type": "uint256"
1414
+ "name": "",
1415
+ "type": "bytes32[]",
1416
+ "internalType": "bytes32[]"
1576
1417
  }
1577
1418
  ],
1578
- "name": "cancelTimeLockExecution",
1419
+ "stateMutability": "view"
1420
+ },
1421
+ {
1422
+ "type": "function",
1423
+ "name": "getTimeLockPeriodSec",
1424
+ "inputs": [],
1579
1425
  "outputs": [
1580
1426
  {
1581
- "internalType": "uint256",
1582
1427
  "name": "",
1583
- "type": "uint256"
1428
+ "type": "uint256",
1429
+ "internalType": "uint256"
1584
1430
  }
1585
1431
  ],
1586
- "stateMutability": "nonpayable",
1587
- "type": "function"
1432
+ "stateMutability": "view"
1588
1433
  },
1589
1434
  {
1435
+ "type": "function",
1436
+ "name": "getTransaction",
1590
1437
  "inputs": [
1591
1438
  {
1439
+ "name": "txId",
1440
+ "type": "uint256",
1441
+ "internalType": "uint256"
1442
+ }
1443
+ ],
1444
+ "outputs": [
1445
+ {
1446
+ "name": "",
1447
+ "type": "tuple",
1448
+ "internalType": "struct EngineBlox.TxRecord",
1592
1449
  "components": [
1593
1450
  {
1451
+ "name": "txId",
1452
+ "type": "uint256",
1453
+ "internalType": "uint256"
1454
+ },
1455
+ {
1456
+ "name": "releaseTime",
1457
+ "type": "uint256",
1458
+ "internalType": "uint256"
1459
+ },
1460
+ {
1461
+ "name": "status",
1462
+ "type": "uint8",
1463
+ "internalType": "enum EngineBlox.TxStatus"
1464
+ },
1465
+ {
1466
+ "name": "params",
1467
+ "type": "tuple",
1468
+ "internalType": "struct EngineBlox.TxParams",
1594
1469
  "components": [
1595
1470
  {
1596
- "internalType": "uint256",
1597
- "name": "txId",
1598
- "type": "uint256"
1471
+ "name": "requester",
1472
+ "type": "address",
1473
+ "internalType": "address"
1599
1474
  },
1600
1475
  {
1601
- "internalType": "uint256",
1602
- "name": "releaseTime",
1603
- "type": "uint256"
1476
+ "name": "target",
1477
+ "type": "address",
1478
+ "internalType": "address"
1604
1479
  },
1605
1480
  {
1606
- "internalType": "enum EngineBlox.TxStatus",
1607
- "name": "status",
1608
- "type": "uint8"
1481
+ "name": "value",
1482
+ "type": "uint256",
1483
+ "internalType": "uint256"
1609
1484
  },
1610
1485
  {
1611
- "components": [
1612
- {
1613
- "internalType": "address",
1614
- "name": "requester",
1615
- "type": "address"
1616
- },
1617
- {
1618
- "internalType": "address",
1619
- "name": "target",
1620
- "type": "address"
1621
- },
1622
- {
1623
- "internalType": "uint256",
1624
- "name": "value",
1625
- "type": "uint256"
1626
- },
1627
- {
1628
- "internalType": "uint256",
1629
- "name": "gasLimit",
1630
- "type": "uint256"
1631
- },
1632
- {
1633
- "internalType": "bytes32",
1634
- "name": "operationType",
1635
- "type": "bytes32"
1636
- },
1637
- {
1638
- "internalType": "bytes4",
1639
- "name": "executionSelector",
1640
- "type": "bytes4"
1641
- },
1642
- {
1643
- "internalType": "bytes",
1644
- "name": "executionParams",
1645
- "type": "bytes"
1646
- }
1647
- ],
1648
- "internalType": "struct EngineBlox.TxParams",
1649
- "name": "params",
1650
- "type": "tuple"
1486
+ "name": "gasLimit",
1487
+ "type": "uint256",
1488
+ "internalType": "uint256"
1651
1489
  },
1652
1490
  {
1653
- "internalType": "bytes32",
1654
- "name": "message",
1655
- "type": "bytes32"
1491
+ "name": "operationType",
1492
+ "type": "bytes32",
1493
+ "internalType": "bytes32"
1656
1494
  },
1657
1495
  {
1658
- "internalType": "bytes",
1659
- "name": "result",
1660
- "type": "bytes"
1496
+ "name": "executionSelector",
1497
+ "type": "bytes4",
1498
+ "internalType": "bytes4"
1661
1499
  },
1662
1500
  {
1663
- "components": [
1664
- {
1665
- "internalType": "address",
1666
- "name": "recipient",
1667
- "type": "address"
1668
- },
1669
- {
1670
- "internalType": "uint256",
1671
- "name": "nativeTokenAmount",
1672
- "type": "uint256"
1673
- },
1674
- {
1675
- "internalType": "address",
1676
- "name": "erc20TokenAddress",
1677
- "type": "address"
1678
- },
1679
- {
1680
- "internalType": "uint256",
1681
- "name": "erc20TokenAmount",
1682
- "type": "uint256"
1683
- }
1684
- ],
1685
- "internalType": "struct EngineBlox.PaymentDetails",
1686
- "name": "payment",
1687
- "type": "tuple"
1501
+ "name": "executionParams",
1502
+ "type": "bytes",
1503
+ "internalType": "bytes"
1688
1504
  }
1689
- ],
1690
- "internalType": "struct EngineBlox.TxRecord",
1691
- "name": "txRecord",
1692
- "type": "tuple"
1505
+ ]
1506
+ },
1507
+ {
1508
+ "name": "message",
1509
+ "type": "bytes32",
1510
+ "internalType": "bytes32"
1693
1511
  },
1694
1512
  {
1513
+ "name": "resultHash",
1514
+ "type": "bytes32",
1515
+ "internalType": "bytes32"
1516
+ },
1517
+ {
1518
+ "name": "payment",
1519
+ "type": "tuple",
1520
+ "internalType": "struct EngineBlox.PaymentDetails",
1695
1521
  "components": [
1696
1522
  {
1697
- "internalType": "uint256",
1698
- "name": "chainId",
1699
- "type": "uint256"
1700
- },
1701
- {
1702
- "internalType": "uint256",
1703
- "name": "nonce",
1704
- "type": "uint256"
1705
- },
1706
- {
1707
- "internalType": "address",
1708
- "name": "handlerContract",
1709
- "type": "address"
1710
- },
1711
- {
1712
- "internalType": "bytes4",
1713
- "name": "handlerSelector",
1714
- "type": "bytes4"
1715
- },
1716
- {
1717
- "internalType": "enum EngineBlox.TxAction",
1718
- "name": "action",
1719
- "type": "uint8"
1523
+ "name": "recipient",
1524
+ "type": "address",
1525
+ "internalType": "address"
1720
1526
  },
1721
1527
  {
1722
- "internalType": "uint256",
1723
- "name": "deadline",
1724
- "type": "uint256"
1528
+ "name": "nativeTokenAmount",
1529
+ "type": "uint256",
1530
+ "internalType": "uint256"
1725
1531
  },
1726
1532
  {
1727
- "internalType": "uint256",
1728
- "name": "maxGasPrice",
1729
- "type": "uint256"
1533
+ "name": "erc20TokenAddress",
1534
+ "type": "address",
1535
+ "internalType": "address"
1730
1536
  },
1731
1537
  {
1732
- "internalType": "address",
1733
- "name": "signer",
1734
- "type": "address"
1538
+ "name": "erc20TokenAmount",
1539
+ "type": "uint256",
1540
+ "internalType": "uint256"
1735
1541
  }
1736
- ],
1737
- "internalType": "struct EngineBlox.MetaTxParams",
1738
- "name": "params",
1739
- "type": "tuple"
1740
- },
1741
- {
1742
- "internalType": "bytes32",
1743
- "name": "message",
1744
- "type": "bytes32"
1745
- },
1746
- {
1747
- "internalType": "bytes",
1748
- "name": "signature",
1749
- "type": "bytes"
1750
- },
1751
- {
1752
- "internalType": "bytes",
1753
- "name": "data",
1754
- "type": "bytes"
1542
+ ]
1755
1543
  }
1756
- ],
1757
- "internalType": "struct EngineBlox.MetaTransaction",
1758
- "name": "metaTx",
1759
- "type": "tuple"
1760
- }
1761
- ],
1762
- "name": "approveTimeLockExecutionWithMetaTx",
1763
- "outputs": [
1764
- {
1765
- "internalType": "uint256",
1766
- "name": "",
1767
- "type": "uint256"
1544
+ ]
1768
1545
  }
1769
1546
  ],
1770
- "stateMutability": "nonpayable",
1771
- "type": "function"
1547
+ "stateMutability": "view"
1772
1548
  },
1773
1549
  {
1550
+ "type": "function",
1551
+ "name": "getTransactionHistory",
1774
1552
  "inputs": [
1775
1553
  {
1554
+ "name": "fromTxId",
1555
+ "type": "uint256",
1556
+ "internalType": "uint256"
1557
+ },
1558
+ {
1559
+ "name": "toTxId",
1560
+ "type": "uint256",
1561
+ "internalType": "uint256"
1562
+ }
1563
+ ],
1564
+ "outputs": [
1565
+ {
1566
+ "name": "",
1567
+ "type": "tuple[]",
1568
+ "internalType": "struct EngineBlox.TxRecord[]",
1776
1569
  "components": [
1777
1570
  {
1778
- "components": [
1779
- {
1780
- "internalType": "uint256",
1781
- "name": "txId",
1782
- "type": "uint256"
1783
- },
1784
- {
1785
- "internalType": "uint256",
1786
- "name": "releaseTime",
1787
- "type": "uint256"
1788
- },
1789
- {
1790
- "internalType": "enum EngineBlox.TxStatus",
1791
- "name": "status",
1792
- "type": "uint8"
1793
- },
1794
- {
1795
- "components": [
1796
- {
1797
- "internalType": "address",
1798
- "name": "requester",
1799
- "type": "address"
1800
- },
1801
- {
1802
- "internalType": "address",
1803
- "name": "target",
1804
- "type": "address"
1805
- },
1806
- {
1807
- "internalType": "uint256",
1808
- "name": "value",
1809
- "type": "uint256"
1810
- },
1811
- {
1812
- "internalType": "uint256",
1813
- "name": "gasLimit",
1814
- "type": "uint256"
1815
- },
1816
- {
1817
- "internalType": "bytes32",
1818
- "name": "operationType",
1819
- "type": "bytes32"
1820
- },
1821
- {
1822
- "internalType": "bytes4",
1823
- "name": "executionSelector",
1824
- "type": "bytes4"
1825
- },
1826
- {
1827
- "internalType": "bytes",
1828
- "name": "executionParams",
1829
- "type": "bytes"
1830
- }
1831
- ],
1832
- "internalType": "struct EngineBlox.TxParams",
1833
- "name": "params",
1834
- "type": "tuple"
1835
- },
1836
- {
1837
- "internalType": "bytes32",
1838
- "name": "message",
1839
- "type": "bytes32"
1840
- },
1841
- {
1842
- "internalType": "bytes",
1843
- "name": "result",
1844
- "type": "bytes"
1845
- },
1846
- {
1847
- "components": [
1848
- {
1849
- "internalType": "address",
1850
- "name": "recipient",
1851
- "type": "address"
1852
- },
1853
- {
1854
- "internalType": "uint256",
1855
- "name": "nativeTokenAmount",
1856
- "type": "uint256"
1857
- },
1858
- {
1859
- "internalType": "address",
1860
- "name": "erc20TokenAddress",
1861
- "type": "address"
1862
- },
1863
- {
1864
- "internalType": "uint256",
1865
- "name": "erc20TokenAmount",
1866
- "type": "uint256"
1867
- }
1868
- ],
1869
- "internalType": "struct EngineBlox.PaymentDetails",
1870
- "name": "payment",
1871
- "type": "tuple"
1872
- }
1873
- ],
1874
- "internalType": "struct EngineBlox.TxRecord",
1875
- "name": "txRecord",
1876
- "type": "tuple"
1571
+ "name": "txId",
1572
+ "type": "uint256",
1573
+ "internalType": "uint256"
1574
+ },
1575
+ {
1576
+ "name": "releaseTime",
1577
+ "type": "uint256",
1578
+ "internalType": "uint256"
1579
+ },
1580
+ {
1581
+ "name": "status",
1582
+ "type": "uint8",
1583
+ "internalType": "enum EngineBlox.TxStatus"
1877
1584
  },
1878
1585
  {
1586
+ "name": "params",
1587
+ "type": "tuple",
1588
+ "internalType": "struct EngineBlox.TxParams",
1879
1589
  "components": [
1880
1590
  {
1881
- "internalType": "uint256",
1882
- "name": "chainId",
1883
- "type": "uint256"
1884
- },
1885
- {
1886
- "internalType": "uint256",
1887
- "name": "nonce",
1888
- "type": "uint256"
1591
+ "name": "requester",
1592
+ "type": "address",
1593
+ "internalType": "address"
1889
1594
  },
1890
1595
  {
1891
- "internalType": "address",
1892
- "name": "handlerContract",
1893
- "type": "address"
1596
+ "name": "target",
1597
+ "type": "address",
1598
+ "internalType": "address"
1894
1599
  },
1895
1600
  {
1896
- "internalType": "bytes4",
1897
- "name": "handlerSelector",
1898
- "type": "bytes4"
1601
+ "name": "value",
1602
+ "type": "uint256",
1603
+ "internalType": "uint256"
1899
1604
  },
1900
1605
  {
1901
- "internalType": "enum EngineBlox.TxAction",
1902
- "name": "action",
1903
- "type": "uint8"
1606
+ "name": "gasLimit",
1607
+ "type": "uint256",
1608
+ "internalType": "uint256"
1904
1609
  },
1905
1610
  {
1906
- "internalType": "uint256",
1907
- "name": "deadline",
1908
- "type": "uint256"
1611
+ "name": "operationType",
1612
+ "type": "bytes32",
1613
+ "internalType": "bytes32"
1909
1614
  },
1910
1615
  {
1911
- "internalType": "uint256",
1912
- "name": "maxGasPrice",
1913
- "type": "uint256"
1616
+ "name": "executionSelector",
1617
+ "type": "bytes4",
1618
+ "internalType": "bytes4"
1914
1619
  },
1915
1620
  {
1916
- "internalType": "address",
1917
- "name": "signer",
1918
- "type": "address"
1621
+ "name": "executionParams",
1622
+ "type": "bytes",
1623
+ "internalType": "bytes"
1919
1624
  }
1920
- ],
1921
- "internalType": "struct EngineBlox.MetaTxParams",
1922
- "name": "params",
1923
- "type": "tuple"
1625
+ ]
1924
1626
  },
1925
1627
  {
1926
- "internalType": "bytes32",
1927
1628
  "name": "message",
1928
- "type": "bytes32"
1629
+ "type": "bytes32",
1630
+ "internalType": "bytes32"
1929
1631
  },
1930
1632
  {
1931
- "internalType": "bytes",
1932
- "name": "signature",
1933
- "type": "bytes"
1633
+ "name": "resultHash",
1634
+ "type": "bytes32",
1635
+ "internalType": "bytes32"
1934
1636
  },
1935
1637
  {
1936
- "internalType": "bytes",
1937
- "name": "data",
1938
- "type": "bytes"
1638
+ "name": "payment",
1639
+ "type": "tuple",
1640
+ "internalType": "struct EngineBlox.PaymentDetails",
1641
+ "components": [
1642
+ {
1643
+ "name": "recipient",
1644
+ "type": "address",
1645
+ "internalType": "address"
1646
+ },
1647
+ {
1648
+ "name": "nativeTokenAmount",
1649
+ "type": "uint256",
1650
+ "internalType": "uint256"
1651
+ },
1652
+ {
1653
+ "name": "erc20TokenAddress",
1654
+ "type": "address",
1655
+ "internalType": "address"
1656
+ },
1657
+ {
1658
+ "name": "erc20TokenAmount",
1659
+ "type": "uint256",
1660
+ "internalType": "uint256"
1661
+ }
1662
+ ]
1939
1663
  }
1940
- ],
1941
- "internalType": "struct EngineBlox.MetaTransaction",
1942
- "name": "metaTx",
1943
- "type": "tuple"
1664
+ ]
1665
+ }
1666
+ ],
1667
+ "stateMutability": "view"
1668
+ },
1669
+ {
1670
+ "type": "function",
1671
+ "name": "getWalletRoles",
1672
+ "inputs": [
1673
+ {
1674
+ "name": "wallet",
1675
+ "type": "address",
1676
+ "internalType": "address"
1944
1677
  }
1945
1678
  ],
1946
- "name": "cancelTimeLockExecutionWithMetaTx",
1947
1679
  "outputs": [
1948
1680
  {
1949
- "internalType": "uint256",
1950
1681
  "name": "",
1951
- "type": "uint256"
1682
+ "type": "bytes32[]",
1683
+ "internalType": "bytes32[]"
1952
1684
  }
1953
1685
  ],
1954
- "stateMutability": "nonpayable",
1955
- "type": "function"
1686
+ "stateMutability": "view"
1956
1687
  },
1957
1688
  {
1689
+ "type": "function",
1690
+ "name": "guardConfigBatchRequestAndApprove",
1958
1691
  "inputs": [
1959
1692
  {
1693
+ "name": "metaTx",
1694
+ "type": "tuple",
1695
+ "internalType": "struct EngineBlox.MetaTransaction",
1960
1696
  "components": [
1961
1697
  {
1698
+ "name": "txRecord",
1699
+ "type": "tuple",
1700
+ "internalType": "struct EngineBlox.TxRecord",
1962
1701
  "components": [
1963
1702
  {
1964
- "internalType": "uint256",
1965
1703
  "name": "txId",
1966
- "type": "uint256"
1704
+ "type": "uint256",
1705
+ "internalType": "uint256"
1967
1706
  },
1968
1707
  {
1969
- "internalType": "uint256",
1970
1708
  "name": "releaseTime",
1971
- "type": "uint256"
1709
+ "type": "uint256",
1710
+ "internalType": "uint256"
1972
1711
  },
1973
1712
  {
1974
- "internalType": "enum EngineBlox.TxStatus",
1975
1713
  "name": "status",
1976
- "type": "uint8"
1714
+ "type": "uint8",
1715
+ "internalType": "enum EngineBlox.TxStatus"
1977
1716
  },
1978
1717
  {
1718
+ "name": "params",
1719
+ "type": "tuple",
1720
+ "internalType": "struct EngineBlox.TxParams",
1979
1721
  "components": [
1980
1722
  {
1981
- "internalType": "address",
1982
1723
  "name": "requester",
1983
- "type": "address"
1724
+ "type": "address",
1725
+ "internalType": "address"
1984
1726
  },
1985
1727
  {
1986
- "internalType": "address",
1987
1728
  "name": "target",
1988
- "type": "address"
1729
+ "type": "address",
1730
+ "internalType": "address"
1989
1731
  },
1990
1732
  {
1991
- "internalType": "uint256",
1992
1733
  "name": "value",
1993
- "type": "uint256"
1734
+ "type": "uint256",
1735
+ "internalType": "uint256"
1994
1736
  },
1995
1737
  {
1996
- "internalType": "uint256",
1997
1738
  "name": "gasLimit",
1998
- "type": "uint256"
1739
+ "type": "uint256",
1740
+ "internalType": "uint256"
1999
1741
  },
2000
1742
  {
2001
- "internalType": "bytes32",
2002
1743
  "name": "operationType",
2003
- "type": "bytes32"
1744
+ "type": "bytes32",
1745
+ "internalType": "bytes32"
2004
1746
  },
2005
1747
  {
2006
- "internalType": "bytes4",
2007
1748
  "name": "executionSelector",
2008
- "type": "bytes4"
1749
+ "type": "bytes4",
1750
+ "internalType": "bytes4"
2009
1751
  },
2010
1752
  {
2011
- "internalType": "bytes",
2012
1753
  "name": "executionParams",
2013
- "type": "bytes"
1754
+ "type": "bytes",
1755
+ "internalType": "bytes"
2014
1756
  }
2015
- ],
2016
- "internalType": "struct EngineBlox.TxParams",
2017
- "name": "params",
2018
- "type": "tuple"
1757
+ ]
2019
1758
  },
2020
1759
  {
2021
- "internalType": "bytes32",
2022
1760
  "name": "message",
2023
- "type": "bytes32"
1761
+ "type": "bytes32",
1762
+ "internalType": "bytes32"
2024
1763
  },
2025
1764
  {
2026
- "internalType": "bytes",
2027
- "name": "result",
2028
- "type": "bytes"
1765
+ "name": "resultHash",
1766
+ "type": "bytes32",
1767
+ "internalType": "bytes32"
2029
1768
  },
2030
1769
  {
1770
+ "name": "payment",
1771
+ "type": "tuple",
1772
+ "internalType": "struct EngineBlox.PaymentDetails",
2031
1773
  "components": [
2032
1774
  {
2033
- "internalType": "address",
2034
1775
  "name": "recipient",
2035
- "type": "address"
1776
+ "type": "address",
1777
+ "internalType": "address"
2036
1778
  },
2037
1779
  {
2038
- "internalType": "uint256",
2039
1780
  "name": "nativeTokenAmount",
2040
- "type": "uint256"
1781
+ "type": "uint256",
1782
+ "internalType": "uint256"
2041
1783
  },
2042
1784
  {
2043
- "internalType": "address",
2044
1785
  "name": "erc20TokenAddress",
2045
- "type": "address"
1786
+ "type": "address",
1787
+ "internalType": "address"
2046
1788
  },
2047
1789
  {
2048
- "internalType": "uint256",
2049
1790
  "name": "erc20TokenAmount",
2050
- "type": "uint256"
1791
+ "type": "uint256",
1792
+ "internalType": "uint256"
2051
1793
  }
2052
- ],
2053
- "internalType": "struct EngineBlox.PaymentDetails",
2054
- "name": "payment",
2055
- "type": "tuple"
1794
+ ]
2056
1795
  }
2057
- ],
2058
- "internalType": "struct EngineBlox.TxRecord",
2059
- "name": "txRecord",
2060
- "type": "tuple"
1796
+ ]
2061
1797
  },
2062
1798
  {
1799
+ "name": "params",
1800
+ "type": "tuple",
1801
+ "internalType": "struct EngineBlox.MetaTxParams",
2063
1802
  "components": [
2064
1803
  {
2065
- "internalType": "uint256",
2066
1804
  "name": "chainId",
2067
- "type": "uint256"
1805
+ "type": "uint256",
1806
+ "internalType": "uint256"
2068
1807
  },
2069
1808
  {
2070
- "internalType": "uint256",
2071
1809
  "name": "nonce",
2072
- "type": "uint256"
1810
+ "type": "uint256",
1811
+ "internalType": "uint256"
2073
1812
  },
2074
1813
  {
2075
- "internalType": "address",
2076
1814
  "name": "handlerContract",
2077
- "type": "address"
1815
+ "type": "address",
1816
+ "internalType": "address"
2078
1817
  },
2079
1818
  {
2080
- "internalType": "bytes4",
2081
1819
  "name": "handlerSelector",
2082
- "type": "bytes4"
1820
+ "type": "bytes4",
1821
+ "internalType": "bytes4"
2083
1822
  },
2084
1823
  {
2085
- "internalType": "enum EngineBlox.TxAction",
2086
1824
  "name": "action",
2087
- "type": "uint8"
1825
+ "type": "uint8",
1826
+ "internalType": "enum EngineBlox.TxAction"
2088
1827
  },
2089
1828
  {
2090
- "internalType": "uint256",
2091
1829
  "name": "deadline",
2092
- "type": "uint256"
1830
+ "type": "uint256",
1831
+ "internalType": "uint256"
2093
1832
  },
2094
1833
  {
2095
- "internalType": "uint256",
2096
1834
  "name": "maxGasPrice",
2097
- "type": "uint256"
1835
+ "type": "uint256",
1836
+ "internalType": "uint256"
2098
1837
  },
2099
1838
  {
2100
- "internalType": "address",
2101
1839
  "name": "signer",
2102
- "type": "address"
1840
+ "type": "address",
1841
+ "internalType": "address"
2103
1842
  }
2104
- ],
2105
- "internalType": "struct EngineBlox.MetaTxParams",
2106
- "name": "params",
2107
- "type": "tuple"
1843
+ ]
2108
1844
  },
2109
1845
  {
2110
- "internalType": "bytes32",
2111
1846
  "name": "message",
2112
- "type": "bytes32"
1847
+ "type": "bytes32",
1848
+ "internalType": "bytes32"
2113
1849
  },
2114
1850
  {
2115
- "internalType": "bytes",
2116
1851
  "name": "signature",
2117
- "type": "bytes"
1852
+ "type": "bytes",
1853
+ "internalType": "bytes"
2118
1854
  },
2119
1855
  {
2120
- "internalType": "bytes",
2121
1856
  "name": "data",
2122
- "type": "bytes"
1857
+ "type": "bytes",
1858
+ "internalType": "bytes"
2123
1859
  }
2124
- ],
2125
- "internalType": "struct EngineBlox.MetaTransaction",
2126
- "name": "metaTx",
2127
- "type": "tuple"
1860
+ ]
2128
1861
  }
2129
1862
  ],
2130
- "name": "requestAndApproveExecution",
2131
1863
  "outputs": [
2132
1864
  {
2133
- "internalType": "uint256",
2134
1865
  "name": "",
2135
- "type": "uint256"
1866
+ "type": "uint256",
1867
+ "internalType": "uint256"
1868
+ }
1869
+ ],
1870
+ "stateMutability": "nonpayable"
1871
+ },
1872
+ {
1873
+ "type": "function",
1874
+ "name": "hasRole",
1875
+ "inputs": [
1876
+ {
1877
+ "name": "roleHash",
1878
+ "type": "bytes32",
1879
+ "internalType": "bytes32"
1880
+ },
1881
+ {
1882
+ "name": "wallet",
1883
+ "type": "address",
1884
+ "internalType": "address"
1885
+ }
1886
+ ],
1887
+ "outputs": [
1888
+ {
1889
+ "name": "",
1890
+ "type": "bool",
1891
+ "internalType": "bool"
1892
+ }
1893
+ ],
1894
+ "stateMutability": "view"
1895
+ },
1896
+ {
1897
+ "type": "function",
1898
+ "name": "initialize",
1899
+ "inputs": [
1900
+ {
1901
+ "name": "initialOwner",
1902
+ "type": "address",
1903
+ "internalType": "address"
1904
+ },
1905
+ {
1906
+ "name": "broadcaster",
1907
+ "type": "address",
1908
+ "internalType": "address"
1909
+ },
1910
+ {
1911
+ "name": "recovery",
1912
+ "type": "address",
1913
+ "internalType": "address"
1914
+ },
1915
+ {
1916
+ "name": "timeLockPeriodSec",
1917
+ "type": "uint256",
1918
+ "internalType": "uint256"
1919
+ },
1920
+ {
1921
+ "name": "eventForwarder",
1922
+ "type": "address",
1923
+ "internalType": "address"
1924
+ }
1925
+ ],
1926
+ "outputs": [],
1927
+ "stateMutability": "nonpayable"
1928
+ },
1929
+ {
1930
+ "type": "function",
1931
+ "name": "initialized",
1932
+ "inputs": [],
1933
+ "outputs": [
1934
+ {
1935
+ "name": "",
1936
+ "type": "bool",
1937
+ "internalType": "bool"
1938
+ }
1939
+ ],
1940
+ "stateMutability": "view"
1941
+ },
1942
+ {
1943
+ "type": "function",
1944
+ "name": "owner",
1945
+ "inputs": [],
1946
+ "outputs": [
1947
+ {
1948
+ "name": "",
1949
+ "type": "address",
1950
+ "internalType": "address"
2136
1951
  }
2137
1952
  ],
2138
- "stateMutability": "nonpayable",
2139
- "type": "function"
1953
+ "stateMutability": "view"
2140
1954
  },
2141
1955
  {
1956
+ "type": "function",
1957
+ "name": "requestAndApproveExecution",
2142
1958
  "inputs": [
2143
1959
  {
1960
+ "name": "metaTx",
1961
+ "type": "tuple",
1962
+ "internalType": "struct EngineBlox.MetaTransaction",
2144
1963
  "components": [
2145
1964
  {
1965
+ "name": "txRecord",
1966
+ "type": "tuple",
1967
+ "internalType": "struct EngineBlox.TxRecord",
2146
1968
  "components": [
2147
1969
  {
2148
- "internalType": "uint256",
2149
1970
  "name": "txId",
2150
- "type": "uint256"
1971
+ "type": "uint256",
1972
+ "internalType": "uint256"
2151
1973
  },
2152
1974
  {
2153
- "internalType": "uint256",
2154
1975
  "name": "releaseTime",
2155
- "type": "uint256"
1976
+ "type": "uint256",
1977
+ "internalType": "uint256"
2156
1978
  },
2157
1979
  {
2158
- "internalType": "enum EngineBlox.TxStatus",
2159
1980
  "name": "status",
2160
- "type": "uint8"
1981
+ "type": "uint8",
1982
+ "internalType": "enum EngineBlox.TxStatus"
2161
1983
  },
2162
1984
  {
1985
+ "name": "params",
1986
+ "type": "tuple",
1987
+ "internalType": "struct EngineBlox.TxParams",
2163
1988
  "components": [
2164
1989
  {
2165
- "internalType": "address",
2166
1990
  "name": "requester",
2167
- "type": "address"
1991
+ "type": "address",
1992
+ "internalType": "address"
2168
1993
  },
2169
1994
  {
2170
- "internalType": "address",
2171
1995
  "name": "target",
2172
- "type": "address"
1996
+ "type": "address",
1997
+ "internalType": "address"
2173
1998
  },
2174
1999
  {
2175
- "internalType": "uint256",
2176
2000
  "name": "value",
2177
- "type": "uint256"
2001
+ "type": "uint256",
2002
+ "internalType": "uint256"
2178
2003
  },
2179
2004
  {
2180
- "internalType": "uint256",
2181
2005
  "name": "gasLimit",
2182
- "type": "uint256"
2006
+ "type": "uint256",
2007
+ "internalType": "uint256"
2183
2008
  },
2184
2009
  {
2185
- "internalType": "bytes32",
2186
2010
  "name": "operationType",
2187
- "type": "bytes32"
2011
+ "type": "bytes32",
2012
+ "internalType": "bytes32"
2188
2013
  },
2189
2014
  {
2190
- "internalType": "bytes4",
2191
2015
  "name": "executionSelector",
2192
- "type": "bytes4"
2016
+ "type": "bytes4",
2017
+ "internalType": "bytes4"
2193
2018
  },
2194
2019
  {
2195
- "internalType": "bytes",
2196
2020
  "name": "executionParams",
2197
- "type": "bytes"
2021
+ "type": "bytes",
2022
+ "internalType": "bytes"
2198
2023
  }
2199
- ],
2200
- "internalType": "struct EngineBlox.TxParams",
2201
- "name": "params",
2202
- "type": "tuple"
2024
+ ]
2203
2025
  },
2204
2026
  {
2205
- "internalType": "bytes32",
2206
2027
  "name": "message",
2207
- "type": "bytes32"
2028
+ "type": "bytes32",
2029
+ "internalType": "bytes32"
2208
2030
  },
2209
2031
  {
2210
- "internalType": "bytes",
2211
- "name": "result",
2212
- "type": "bytes"
2032
+ "name": "resultHash",
2033
+ "type": "bytes32",
2034
+ "internalType": "bytes32"
2213
2035
  },
2214
2036
  {
2037
+ "name": "payment",
2038
+ "type": "tuple",
2039
+ "internalType": "struct EngineBlox.PaymentDetails",
2215
2040
  "components": [
2216
2041
  {
2217
- "internalType": "address",
2218
2042
  "name": "recipient",
2219
- "type": "address"
2043
+ "type": "address",
2044
+ "internalType": "address"
2220
2045
  },
2221
2046
  {
2222
- "internalType": "uint256",
2223
2047
  "name": "nativeTokenAmount",
2224
- "type": "uint256"
2048
+ "type": "uint256",
2049
+ "internalType": "uint256"
2225
2050
  },
2226
2051
  {
2227
- "internalType": "address",
2228
2052
  "name": "erc20TokenAddress",
2229
- "type": "address"
2053
+ "type": "address",
2054
+ "internalType": "address"
2230
2055
  },
2231
2056
  {
2232
- "internalType": "uint256",
2233
2057
  "name": "erc20TokenAmount",
2234
- "type": "uint256"
2058
+ "type": "uint256",
2059
+ "internalType": "uint256"
2235
2060
  }
2236
- ],
2237
- "internalType": "struct EngineBlox.PaymentDetails",
2238
- "name": "payment",
2239
- "type": "tuple"
2061
+ ]
2240
2062
  }
2241
- ],
2242
- "internalType": "struct EngineBlox.TxRecord",
2243
- "name": "txRecord",
2244
- "type": "tuple"
2063
+ ]
2245
2064
  },
2246
2065
  {
2066
+ "name": "params",
2067
+ "type": "tuple",
2068
+ "internalType": "struct EngineBlox.MetaTxParams",
2247
2069
  "components": [
2248
2070
  {
2249
- "internalType": "uint256",
2250
2071
  "name": "chainId",
2251
- "type": "uint256"
2072
+ "type": "uint256",
2073
+ "internalType": "uint256"
2252
2074
  },
2253
2075
  {
2254
- "internalType": "uint256",
2255
2076
  "name": "nonce",
2256
- "type": "uint256"
2077
+ "type": "uint256",
2078
+ "internalType": "uint256"
2257
2079
  },
2258
2080
  {
2259
- "internalType": "address",
2260
2081
  "name": "handlerContract",
2261
- "type": "address"
2082
+ "type": "address",
2083
+ "internalType": "address"
2262
2084
  },
2263
2085
  {
2264
- "internalType": "bytes4",
2265
2086
  "name": "handlerSelector",
2266
- "type": "bytes4"
2087
+ "type": "bytes4",
2088
+ "internalType": "bytes4"
2267
2089
  },
2268
2090
  {
2269
- "internalType": "enum EngineBlox.TxAction",
2270
2091
  "name": "action",
2271
- "type": "uint8"
2092
+ "type": "uint8",
2093
+ "internalType": "enum EngineBlox.TxAction"
2272
2094
  },
2273
2095
  {
2274
- "internalType": "uint256",
2275
2096
  "name": "deadline",
2276
- "type": "uint256"
2097
+ "type": "uint256",
2098
+ "internalType": "uint256"
2277
2099
  },
2278
2100
  {
2279
- "internalType": "uint256",
2280
2101
  "name": "maxGasPrice",
2281
- "type": "uint256"
2102
+ "type": "uint256",
2103
+ "internalType": "uint256"
2282
2104
  },
2283
2105
  {
2284
- "internalType": "address",
2285
2106
  "name": "signer",
2286
- "type": "address"
2107
+ "type": "address",
2108
+ "internalType": "address"
2287
2109
  }
2288
- ],
2289
- "internalType": "struct EngineBlox.MetaTxParams",
2290
- "name": "params",
2291
- "type": "tuple"
2110
+ ]
2292
2111
  },
2293
2112
  {
2294
- "internalType": "bytes32",
2295
2113
  "name": "message",
2296
- "type": "bytes32"
2114
+ "type": "bytes32",
2115
+ "internalType": "bytes32"
2297
2116
  },
2298
2117
  {
2299
- "internalType": "bytes",
2300
2118
  "name": "signature",
2301
- "type": "bytes"
2119
+ "type": "bytes",
2120
+ "internalType": "bytes"
2302
2121
  },
2303
2122
  {
2304
- "internalType": "bytes",
2305
2123
  "name": "data",
2306
- "type": "bytes"
2124
+ "type": "bytes",
2125
+ "internalType": "bytes"
2307
2126
  }
2308
- ],
2309
- "internalType": "struct EngineBlox.MetaTransaction",
2310
- "name": "metaTx",
2311
- "type": "tuple"
2127
+ ]
2312
2128
  }
2313
2129
  ],
2314
- "name": "guardConfigBatchRequestAndApprove",
2315
2130
  "outputs": [
2316
2131
  {
2317
- "internalType": "uint256",
2318
2132
  "name": "",
2319
- "type": "uint256"
2133
+ "type": "uint256",
2134
+ "internalType": "uint256"
2320
2135
  }
2321
2136
  ],
2322
- "stateMutability": "nonpayable",
2323
- "type": "function"
2137
+ "stateMutability": "nonpayable"
2324
2138
  },
2325
2139
  {
2140
+ "type": "function",
2141
+ "name": "supportsInterface",
2326
2142
  "inputs": [
2327
2143
  {
2328
- "components": [
2329
- {
2330
- "internalType": "enum IGuardController.GuardConfigActionType",
2331
- "name": "actionType",
2332
- "type": "uint8"
2333
- },
2334
- {
2335
- "internalType": "bytes",
2336
- "name": "data",
2337
- "type": "bytes"
2338
- }
2339
- ],
2340
- "internalType": "struct IGuardController.GuardConfigAction[]",
2341
- "name": "actions",
2342
- "type": "tuple[]"
2144
+ "name": "interfaceId",
2145
+ "type": "bytes4",
2146
+ "internalType": "bytes4"
2343
2147
  }
2344
2148
  ],
2345
- "name": "executeGuardConfigBatch",
2346
- "outputs": [],
2347
- "stateMutability": "nonpayable",
2348
- "type": "function"
2149
+ "outputs": [
2150
+ {
2151
+ "name": "",
2152
+ "type": "bool",
2153
+ "internalType": "bool"
2154
+ }
2155
+ ],
2156
+ "stateMutability": "view"
2157
+ },
2158
+ {
2159
+ "type": "event",
2160
+ "name": "ComponentEvent",
2161
+ "inputs": [
2162
+ {
2163
+ "name": "functionSelector",
2164
+ "type": "bytes4",
2165
+ "indexed": true,
2166
+ "internalType": "bytes4"
2167
+ },
2168
+ {
2169
+ "name": "data",
2170
+ "type": "bytes",
2171
+ "indexed": false,
2172
+ "internalType": "bytes"
2173
+ }
2174
+ ],
2175
+ "anonymous": false
2176
+ },
2177
+ {
2178
+ "type": "event",
2179
+ "name": "Initialized",
2180
+ "inputs": [
2181
+ {
2182
+ "name": "version",
2183
+ "type": "uint64",
2184
+ "indexed": false,
2185
+ "internalType": "uint64"
2186
+ }
2187
+ ],
2188
+ "anonymous": false
2189
+ },
2190
+ {
2191
+ "type": "error",
2192
+ "name": "ArrayLengthMismatch",
2193
+ "inputs": [
2194
+ {
2195
+ "name": "array1Length",
2196
+ "type": "uint256",
2197
+ "internalType": "uint256"
2198
+ },
2199
+ {
2200
+ "name": "array2Length",
2201
+ "type": "uint256",
2202
+ "internalType": "uint256"
2203
+ }
2204
+ ]
2205
+ },
2206
+ {
2207
+ "type": "error",
2208
+ "name": "BatchSizeExceeded",
2209
+ "inputs": [
2210
+ {
2211
+ "name": "currentSize",
2212
+ "type": "uint256",
2213
+ "internalType": "uint256"
2214
+ },
2215
+ {
2216
+ "name": "maxSize",
2217
+ "type": "uint256",
2218
+ "internalType": "uint256"
2219
+ }
2220
+ ]
2221
+ },
2222
+ {
2223
+ "type": "error",
2224
+ "name": "ContractFunctionMustBeProtected",
2225
+ "inputs": [
2226
+ {
2227
+ "name": "functionSelector",
2228
+ "type": "bytes4",
2229
+ "internalType": "bytes4"
2230
+ }
2231
+ ]
2232
+ },
2233
+ {
2234
+ "type": "error",
2235
+ "name": "InternalFunctionNotAccessible",
2236
+ "inputs": [
2237
+ {
2238
+ "name": "functionSelector",
2239
+ "type": "bytes4",
2240
+ "internalType": "bytes4"
2241
+ }
2242
+ ]
2243
+ },
2244
+ {
2245
+ "type": "error",
2246
+ "name": "InvalidInitialization",
2247
+ "inputs": []
2248
+ },
2249
+ {
2250
+ "type": "error",
2251
+ "name": "InvalidPayment",
2252
+ "inputs": []
2253
+ },
2254
+ {
2255
+ "type": "error",
2256
+ "name": "MetaTxHandlerContractMismatch",
2257
+ "inputs": [
2258
+ {
2259
+ "name": "signedContract",
2260
+ "type": "address",
2261
+ "internalType": "address"
2262
+ },
2263
+ {
2264
+ "name": "entryContract",
2265
+ "type": "address",
2266
+ "internalType": "address"
2267
+ }
2268
+ ]
2269
+ },
2270
+ {
2271
+ "type": "error",
2272
+ "name": "MetaTxHandlerSelectorMismatch",
2273
+ "inputs": [
2274
+ {
2275
+ "name": "signedSelector",
2276
+ "type": "bytes4",
2277
+ "internalType": "bytes4"
2278
+ },
2279
+ {
2280
+ "name": "entrySelector",
2281
+ "type": "bytes4",
2282
+ "internalType": "bytes4"
2283
+ }
2284
+ ]
2285
+ },
2286
+ {
2287
+ "type": "error",
2288
+ "name": "NoPermission",
2289
+ "inputs": [
2290
+ {
2291
+ "name": "caller",
2292
+ "type": "address",
2293
+ "internalType": "address"
2294
+ }
2295
+ ]
2296
+ },
2297
+ {
2298
+ "type": "error",
2299
+ "name": "NotInitializing",
2300
+ "inputs": []
2301
+ },
2302
+ {
2303
+ "type": "error",
2304
+ "name": "NotSupported",
2305
+ "inputs": []
2306
+ },
2307
+ {
2308
+ "type": "error",
2309
+ "name": "OnlyCallableByContract",
2310
+ "inputs": [
2311
+ {
2312
+ "name": "caller",
2313
+ "type": "address",
2314
+ "internalType": "address"
2315
+ },
2316
+ {
2317
+ "name": "contractAddress",
2318
+ "type": "address",
2319
+ "internalType": "address"
2320
+ }
2321
+ ]
2322
+ },
2323
+ {
2324
+ "type": "error",
2325
+ "name": "RangeSizeExceeded",
2326
+ "inputs": [
2327
+ {
2328
+ "name": "rangeSize",
2329
+ "type": "uint256",
2330
+ "internalType": "uint256"
2331
+ },
2332
+ {
2333
+ "name": "maxRangeSize",
2334
+ "type": "uint256",
2335
+ "internalType": "uint256"
2336
+ }
2337
+ ]
2338
+ },
2339
+ {
2340
+ "type": "error",
2341
+ "name": "ReentrancyGuardReentrantCall",
2342
+ "inputs": []
2343
+ },
2344
+ {
2345
+ "type": "error",
2346
+ "name": "ResourceNotFound",
2347
+ "inputs": [
2348
+ {
2349
+ "name": "resourceId",
2350
+ "type": "bytes32",
2351
+ "internalType": "bytes32"
2352
+ }
2353
+ ]
2349
2354
  }
2350
2355
  ]