@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,1291 +1,1296 @@
1
1
  [
2
2
  {
3
- "inputs": [],
4
- "name": "InvalidInitialization",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [
9
- {
10
- "internalType": "address",
11
- "name": "caller",
12
- "type": "address"
13
- }
14
- ],
15
- "name": "NoPermission",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "NotInitializing",
21
- "type": "error"
22
- },
23
- {
24
- "inputs": [
25
- {
26
- "internalType": "uint256",
27
- "name": "rangeSize",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "maxRangeSize",
33
- "type": "uint256"
34
- }
35
- ],
36
- "name": "RangeSizeExceeded",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [],
41
- "name": "ReentrancyGuardReentrantCall",
42
- "type": "error"
43
- },
44
- {
45
- "inputs": [
46
- {
47
- "internalType": "bytes32",
48
- "name": "resourceId",
49
- "type": "bytes32"
50
- }
51
- ],
52
- "name": "ResourceNotFound",
53
- "type": "error"
54
- },
55
- {
56
- "anonymous": false,
57
- "inputs": [
58
- {
59
- "indexed": true,
60
- "internalType": "bytes4",
61
- "name": "functionSelector",
62
- "type": "bytes4"
63
- },
64
- {
65
- "indexed": false,
66
- "internalType": "bytes",
67
- "name": "data",
68
- "type": "bytes"
69
- }
70
- ],
71
- "name": "ComponentEvent",
72
- "type": "event"
73
- },
74
- {
75
- "anonymous": false,
76
- "inputs": [
77
- {
78
- "indexed": false,
79
- "internalType": "uint64",
80
- "name": "version",
81
- "type": "uint64"
82
- }
83
- ],
84
- "name": "Initialized",
85
- "type": "event"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "owner",
90
- "outputs": [
91
- {
92
- "internalType": "address",
93
- "name": "",
94
- "type": "address"
95
- }
96
- ],
97
- "stateMutability": "view",
98
- "type": "function"
99
- },
100
- {
101
- "inputs": [],
102
- "name": "getBroadcasters",
103
- "outputs": [
104
- {
105
- "internalType": "address[]",
106
- "name": "",
107
- "type": "address[]"
108
- }
109
- ],
110
- "stateMutability": "view",
111
- "type": "function"
112
- },
113
- {
114
- "inputs": [],
115
- "name": "getRecovery",
116
- "outputs": [
117
- {
118
- "internalType": "address",
119
- "name": "",
120
- "type": "address"
121
- }
122
- ],
123
- "stateMutability": "view",
124
- "type": "function"
125
- },
126
- {
127
- "inputs": [
128
- {
129
- "internalType": "bytes4",
130
- "name": "interfaceId",
131
- "type": "bytes4"
132
- }
133
- ],
134
- "name": "supportsInterface",
135
- "outputs": [
136
- {
137
- "internalType": "bool",
138
- "name": "",
139
- "type": "bool"
140
- }
141
- ],
142
- "stateMutability": "view",
143
- "type": "function"
144
- },
145
- {
146
- "inputs": [
147
- {
148
- "internalType": "bytes4",
149
- "name": "functionSelector",
150
- "type": "bytes4"
151
- }
152
- ],
153
- "name": "getHooks",
154
- "outputs": [
155
- {
156
- "internalType": "address[]",
157
- "name": "hooks",
158
- "type": "address[]"
159
- }
160
- ],
161
- "stateMutability": "view",
162
- "type": "function"
163
- },
164
- {
3
+ "type": "function",
4
+ "name": "createMetaTxParams",
165
5
  "inputs": [
166
6
  {
167
- "internalType": "address",
168
7
  "name": "handlerContract",
169
- "type": "address"
8
+ "type": "address",
9
+ "internalType": "address"
170
10
  },
171
11
  {
172
- "internalType": "bytes4",
173
12
  "name": "handlerSelector",
174
- "type": "bytes4"
13
+ "type": "bytes4",
14
+ "internalType": "bytes4"
175
15
  },
176
16
  {
177
- "internalType": "enum EngineBlox.TxAction",
178
17
  "name": "action",
179
- "type": "uint8"
18
+ "type": "uint8",
19
+ "internalType": "enum EngineBlox.TxAction"
180
20
  },
181
21
  {
182
- "internalType": "uint256",
183
22
  "name": "deadline",
184
- "type": "uint256"
23
+ "type": "uint256",
24
+ "internalType": "uint256"
185
25
  },
186
26
  {
187
- "internalType": "uint256",
188
27
  "name": "maxGasPrice",
189
- "type": "uint256"
28
+ "type": "uint256",
29
+ "internalType": "uint256"
190
30
  },
191
31
  {
192
- "internalType": "address",
193
32
  "name": "signer",
194
- "type": "address"
33
+ "type": "address",
34
+ "internalType": "address"
195
35
  }
196
36
  ],
197
- "name": "createMetaTxParams",
198
37
  "outputs": [
199
38
  {
39
+ "name": "",
40
+ "type": "tuple",
41
+ "internalType": "struct EngineBlox.MetaTxParams",
200
42
  "components": [
201
43
  {
202
- "internalType": "uint256",
203
44
  "name": "chainId",
204
- "type": "uint256"
45
+ "type": "uint256",
46
+ "internalType": "uint256"
205
47
  },
206
48
  {
207
- "internalType": "uint256",
208
49
  "name": "nonce",
209
- "type": "uint256"
50
+ "type": "uint256",
51
+ "internalType": "uint256"
210
52
  },
211
53
  {
212
- "internalType": "address",
213
54
  "name": "handlerContract",
214
- "type": "address"
55
+ "type": "address",
56
+ "internalType": "address"
215
57
  },
216
58
  {
217
- "internalType": "bytes4",
218
59
  "name": "handlerSelector",
219
- "type": "bytes4"
60
+ "type": "bytes4",
61
+ "internalType": "bytes4"
220
62
  },
221
63
  {
222
- "internalType": "enum EngineBlox.TxAction",
223
64
  "name": "action",
224
- "type": "uint8"
65
+ "type": "uint8",
66
+ "internalType": "enum EngineBlox.TxAction"
225
67
  },
226
68
  {
227
- "internalType": "uint256",
228
69
  "name": "deadline",
229
- "type": "uint256"
70
+ "type": "uint256",
71
+ "internalType": "uint256"
230
72
  },
231
73
  {
232
- "internalType": "uint256",
233
74
  "name": "maxGasPrice",
234
- "type": "uint256"
75
+ "type": "uint256",
76
+ "internalType": "uint256"
235
77
  },
236
78
  {
237
- "internalType": "address",
238
79
  "name": "signer",
239
- "type": "address"
80
+ "type": "address",
81
+ "internalType": "address"
240
82
  }
241
- ],
242
- "internalType": "struct EngineBlox.MetaTxParams",
243
- "name": "",
244
- "type": "tuple"
83
+ ]
245
84
  }
246
85
  ],
247
- "stateMutability": "view",
248
- "type": "function"
86
+ "stateMutability": "view"
249
87
  },
250
88
  {
89
+ "type": "function",
90
+ "name": "generateUnsignedMetaTransactionForExisting",
251
91
  "inputs": [
252
92
  {
253
- "internalType": "address",
254
- "name": "requester",
255
- "type": "address"
256
- },
257
- {
258
- "internalType": "address",
259
- "name": "target",
260
- "type": "address"
261
- },
262
- {
263
- "internalType": "uint256",
264
- "name": "value",
265
- "type": "uint256"
266
- },
267
- {
268
- "internalType": "uint256",
269
- "name": "gasLimit",
270
- "type": "uint256"
271
- },
272
- {
273
- "internalType": "bytes32",
274
- "name": "operationType",
275
- "type": "bytes32"
276
- },
277
- {
278
- "internalType": "bytes4",
279
- "name": "executionSelector",
280
- "type": "bytes4"
281
- },
282
- {
283
- "internalType": "bytes",
284
- "name": "executionParams",
285
- "type": "bytes"
93
+ "name": "txId",
94
+ "type": "uint256",
95
+ "internalType": "uint256"
286
96
  },
287
97
  {
98
+ "name": "metaTxParams",
99
+ "type": "tuple",
100
+ "internalType": "struct EngineBlox.MetaTxParams",
288
101
  "components": [
289
102
  {
290
- "internalType": "uint256",
291
103
  "name": "chainId",
292
- "type": "uint256"
104
+ "type": "uint256",
105
+ "internalType": "uint256"
293
106
  },
294
107
  {
295
- "internalType": "uint256",
296
108
  "name": "nonce",
297
- "type": "uint256"
109
+ "type": "uint256",
110
+ "internalType": "uint256"
298
111
  },
299
112
  {
300
- "internalType": "address",
301
113
  "name": "handlerContract",
302
- "type": "address"
114
+ "type": "address",
115
+ "internalType": "address"
303
116
  },
304
117
  {
305
- "internalType": "bytes4",
306
118
  "name": "handlerSelector",
307
- "type": "bytes4"
119
+ "type": "bytes4",
120
+ "internalType": "bytes4"
308
121
  },
309
122
  {
310
- "internalType": "enum EngineBlox.TxAction",
311
123
  "name": "action",
312
- "type": "uint8"
124
+ "type": "uint8",
125
+ "internalType": "enum EngineBlox.TxAction"
313
126
  },
314
127
  {
315
- "internalType": "uint256",
316
128
  "name": "deadline",
317
- "type": "uint256"
129
+ "type": "uint256",
130
+ "internalType": "uint256"
318
131
  },
319
132
  {
320
- "internalType": "uint256",
321
133
  "name": "maxGasPrice",
322
- "type": "uint256"
134
+ "type": "uint256",
135
+ "internalType": "uint256"
323
136
  },
324
137
  {
325
- "internalType": "address",
326
138
  "name": "signer",
327
- "type": "address"
139
+ "type": "address",
140
+ "internalType": "address"
328
141
  }
329
- ],
330
- "internalType": "struct EngineBlox.MetaTxParams",
331
- "name": "metaTxParams",
332
- "type": "tuple"
142
+ ]
333
143
  }
334
144
  ],
335
- "name": "generateUnsignedMetaTransactionForNew",
336
145
  "outputs": [
337
146
  {
147
+ "name": "",
148
+ "type": "tuple",
149
+ "internalType": "struct EngineBlox.MetaTransaction",
338
150
  "components": [
339
151
  {
152
+ "name": "txRecord",
153
+ "type": "tuple",
154
+ "internalType": "struct EngineBlox.TxRecord",
340
155
  "components": [
341
156
  {
342
- "internalType": "uint256",
343
157
  "name": "txId",
344
- "type": "uint256"
158
+ "type": "uint256",
159
+ "internalType": "uint256"
345
160
  },
346
161
  {
347
- "internalType": "uint256",
348
162
  "name": "releaseTime",
349
- "type": "uint256"
163
+ "type": "uint256",
164
+ "internalType": "uint256"
350
165
  },
351
166
  {
352
- "internalType": "enum EngineBlox.TxStatus",
353
167
  "name": "status",
354
- "type": "uint8"
168
+ "type": "uint8",
169
+ "internalType": "enum EngineBlox.TxStatus"
355
170
  },
356
171
  {
172
+ "name": "params",
173
+ "type": "tuple",
174
+ "internalType": "struct EngineBlox.TxParams",
357
175
  "components": [
358
176
  {
359
- "internalType": "address",
360
177
  "name": "requester",
361
- "type": "address"
178
+ "type": "address",
179
+ "internalType": "address"
362
180
  },
363
181
  {
364
- "internalType": "address",
365
182
  "name": "target",
366
- "type": "address"
183
+ "type": "address",
184
+ "internalType": "address"
367
185
  },
368
186
  {
369
- "internalType": "uint256",
370
187
  "name": "value",
371
- "type": "uint256"
188
+ "type": "uint256",
189
+ "internalType": "uint256"
372
190
  },
373
191
  {
374
- "internalType": "uint256",
375
192
  "name": "gasLimit",
376
- "type": "uint256"
193
+ "type": "uint256",
194
+ "internalType": "uint256"
377
195
  },
378
196
  {
379
- "internalType": "bytes32",
380
197
  "name": "operationType",
381
- "type": "bytes32"
198
+ "type": "bytes32",
199
+ "internalType": "bytes32"
382
200
  },
383
201
  {
384
- "internalType": "bytes4",
385
202
  "name": "executionSelector",
386
- "type": "bytes4"
203
+ "type": "bytes4",
204
+ "internalType": "bytes4"
387
205
  },
388
206
  {
389
- "internalType": "bytes",
390
207
  "name": "executionParams",
391
- "type": "bytes"
208
+ "type": "bytes",
209
+ "internalType": "bytes"
392
210
  }
393
- ],
394
- "internalType": "struct EngineBlox.TxParams",
395
- "name": "params",
396
- "type": "tuple"
211
+ ]
397
212
  },
398
213
  {
399
- "internalType": "bytes32",
400
214
  "name": "message",
401
- "type": "bytes32"
215
+ "type": "bytes32",
216
+ "internalType": "bytes32"
402
217
  },
403
218
  {
404
- "internalType": "bytes",
405
- "name": "result",
406
- "type": "bytes"
219
+ "name": "resultHash",
220
+ "type": "bytes32",
221
+ "internalType": "bytes32"
407
222
  },
408
223
  {
224
+ "name": "payment",
225
+ "type": "tuple",
226
+ "internalType": "struct EngineBlox.PaymentDetails",
409
227
  "components": [
410
228
  {
411
- "internalType": "address",
412
229
  "name": "recipient",
413
- "type": "address"
230
+ "type": "address",
231
+ "internalType": "address"
414
232
  },
415
233
  {
416
- "internalType": "uint256",
417
234
  "name": "nativeTokenAmount",
418
- "type": "uint256"
235
+ "type": "uint256",
236
+ "internalType": "uint256"
419
237
  },
420
238
  {
421
- "internalType": "address",
422
239
  "name": "erc20TokenAddress",
423
- "type": "address"
240
+ "type": "address",
241
+ "internalType": "address"
424
242
  },
425
243
  {
426
- "internalType": "uint256",
427
244
  "name": "erc20TokenAmount",
428
- "type": "uint256"
245
+ "type": "uint256",
246
+ "internalType": "uint256"
429
247
  }
430
- ],
431
- "internalType": "struct EngineBlox.PaymentDetails",
432
- "name": "payment",
433
- "type": "tuple"
248
+ ]
434
249
  }
435
- ],
436
- "internalType": "struct EngineBlox.TxRecord",
437
- "name": "txRecord",
438
- "type": "tuple"
250
+ ]
439
251
  },
440
252
  {
253
+ "name": "params",
254
+ "type": "tuple",
255
+ "internalType": "struct EngineBlox.MetaTxParams",
441
256
  "components": [
442
257
  {
443
- "internalType": "uint256",
444
258
  "name": "chainId",
445
- "type": "uint256"
259
+ "type": "uint256",
260
+ "internalType": "uint256"
446
261
  },
447
262
  {
448
- "internalType": "uint256",
449
263
  "name": "nonce",
450
- "type": "uint256"
264
+ "type": "uint256",
265
+ "internalType": "uint256"
451
266
  },
452
267
  {
453
- "internalType": "address",
454
268
  "name": "handlerContract",
455
- "type": "address"
269
+ "type": "address",
270
+ "internalType": "address"
456
271
  },
457
272
  {
458
- "internalType": "bytes4",
459
273
  "name": "handlerSelector",
460
- "type": "bytes4"
274
+ "type": "bytes4",
275
+ "internalType": "bytes4"
461
276
  },
462
277
  {
463
- "internalType": "enum EngineBlox.TxAction",
464
278
  "name": "action",
465
- "type": "uint8"
279
+ "type": "uint8",
280
+ "internalType": "enum EngineBlox.TxAction"
466
281
  },
467
282
  {
468
- "internalType": "uint256",
469
283
  "name": "deadline",
470
- "type": "uint256"
284
+ "type": "uint256",
285
+ "internalType": "uint256"
471
286
  },
472
287
  {
473
- "internalType": "uint256",
474
288
  "name": "maxGasPrice",
475
- "type": "uint256"
289
+ "type": "uint256",
290
+ "internalType": "uint256"
476
291
  },
477
292
  {
478
- "internalType": "address",
479
293
  "name": "signer",
480
- "type": "address"
294
+ "type": "address",
295
+ "internalType": "address"
481
296
  }
482
- ],
483
- "internalType": "struct EngineBlox.MetaTxParams",
484
- "name": "params",
485
- "type": "tuple"
297
+ ]
486
298
  },
487
299
  {
488
- "internalType": "bytes32",
489
300
  "name": "message",
490
- "type": "bytes32"
301
+ "type": "bytes32",
302
+ "internalType": "bytes32"
491
303
  },
492
304
  {
493
- "internalType": "bytes",
494
305
  "name": "signature",
495
- "type": "bytes"
306
+ "type": "bytes",
307
+ "internalType": "bytes"
496
308
  },
497
309
  {
498
- "internalType": "bytes",
499
310
  "name": "data",
500
- "type": "bytes"
311
+ "type": "bytes",
312
+ "internalType": "bytes"
501
313
  }
502
- ],
503
- "internalType": "struct EngineBlox.MetaTransaction",
504
- "name": "",
505
- "type": "tuple"
314
+ ]
506
315
  }
507
316
  ],
508
- "stateMutability": "view",
509
- "type": "function"
317
+ "stateMutability": "view"
510
318
  },
511
319
  {
320
+ "type": "function",
321
+ "name": "generateUnsignedMetaTransactionForNew",
512
322
  "inputs": [
513
323
  {
514
- "internalType": "uint256",
515
- "name": "txId",
516
- "type": "uint256"
324
+ "name": "requester",
325
+ "type": "address",
326
+ "internalType": "address"
327
+ },
328
+ {
329
+ "name": "target",
330
+ "type": "address",
331
+ "internalType": "address"
332
+ },
333
+ {
334
+ "name": "value",
335
+ "type": "uint256",
336
+ "internalType": "uint256"
337
+ },
338
+ {
339
+ "name": "gasLimit",
340
+ "type": "uint256",
341
+ "internalType": "uint256"
342
+ },
343
+ {
344
+ "name": "operationType",
345
+ "type": "bytes32",
346
+ "internalType": "bytes32"
347
+ },
348
+ {
349
+ "name": "executionSelector",
350
+ "type": "bytes4",
351
+ "internalType": "bytes4"
517
352
  },
518
353
  {
354
+ "name": "executionParams",
355
+ "type": "bytes",
356
+ "internalType": "bytes"
357
+ },
358
+ {
359
+ "name": "metaTxParams",
360
+ "type": "tuple",
361
+ "internalType": "struct EngineBlox.MetaTxParams",
519
362
  "components": [
520
363
  {
521
- "internalType": "uint256",
522
364
  "name": "chainId",
523
- "type": "uint256"
365
+ "type": "uint256",
366
+ "internalType": "uint256"
524
367
  },
525
368
  {
526
- "internalType": "uint256",
527
369
  "name": "nonce",
528
- "type": "uint256"
370
+ "type": "uint256",
371
+ "internalType": "uint256"
529
372
  },
530
373
  {
531
- "internalType": "address",
532
374
  "name": "handlerContract",
533
- "type": "address"
375
+ "type": "address",
376
+ "internalType": "address"
534
377
  },
535
378
  {
536
- "internalType": "bytes4",
537
379
  "name": "handlerSelector",
538
- "type": "bytes4"
380
+ "type": "bytes4",
381
+ "internalType": "bytes4"
539
382
  },
540
383
  {
541
- "internalType": "enum EngineBlox.TxAction",
542
384
  "name": "action",
543
- "type": "uint8"
385
+ "type": "uint8",
386
+ "internalType": "enum EngineBlox.TxAction"
544
387
  },
545
388
  {
546
- "internalType": "uint256",
547
389
  "name": "deadline",
548
- "type": "uint256"
390
+ "type": "uint256",
391
+ "internalType": "uint256"
549
392
  },
550
393
  {
551
- "internalType": "uint256",
552
394
  "name": "maxGasPrice",
553
- "type": "uint256"
395
+ "type": "uint256",
396
+ "internalType": "uint256"
554
397
  },
555
398
  {
556
- "internalType": "address",
557
399
  "name": "signer",
558
- "type": "address"
400
+ "type": "address",
401
+ "internalType": "address"
559
402
  }
560
- ],
561
- "internalType": "struct EngineBlox.MetaTxParams",
562
- "name": "metaTxParams",
563
- "type": "tuple"
403
+ ]
564
404
  }
565
405
  ],
566
- "name": "generateUnsignedMetaTransactionForExisting",
567
406
  "outputs": [
568
407
  {
408
+ "name": "",
409
+ "type": "tuple",
410
+ "internalType": "struct EngineBlox.MetaTransaction",
569
411
  "components": [
570
412
  {
413
+ "name": "txRecord",
414
+ "type": "tuple",
415
+ "internalType": "struct EngineBlox.TxRecord",
571
416
  "components": [
572
417
  {
573
- "internalType": "uint256",
574
418
  "name": "txId",
575
- "type": "uint256"
419
+ "type": "uint256",
420
+ "internalType": "uint256"
576
421
  },
577
422
  {
578
- "internalType": "uint256",
579
423
  "name": "releaseTime",
580
- "type": "uint256"
424
+ "type": "uint256",
425
+ "internalType": "uint256"
581
426
  },
582
427
  {
583
- "internalType": "enum EngineBlox.TxStatus",
584
428
  "name": "status",
585
- "type": "uint8"
429
+ "type": "uint8",
430
+ "internalType": "enum EngineBlox.TxStatus"
586
431
  },
587
432
  {
433
+ "name": "params",
434
+ "type": "tuple",
435
+ "internalType": "struct EngineBlox.TxParams",
588
436
  "components": [
589
437
  {
590
- "internalType": "address",
591
438
  "name": "requester",
592
- "type": "address"
439
+ "type": "address",
440
+ "internalType": "address"
593
441
  },
594
442
  {
595
- "internalType": "address",
596
443
  "name": "target",
597
- "type": "address"
444
+ "type": "address",
445
+ "internalType": "address"
598
446
  },
599
447
  {
600
- "internalType": "uint256",
601
448
  "name": "value",
602
- "type": "uint256"
449
+ "type": "uint256",
450
+ "internalType": "uint256"
603
451
  },
604
452
  {
605
- "internalType": "uint256",
606
453
  "name": "gasLimit",
607
- "type": "uint256"
454
+ "type": "uint256",
455
+ "internalType": "uint256"
608
456
  },
609
457
  {
610
- "internalType": "bytes32",
611
458
  "name": "operationType",
612
- "type": "bytes32"
459
+ "type": "bytes32",
460
+ "internalType": "bytes32"
613
461
  },
614
462
  {
615
- "internalType": "bytes4",
616
463
  "name": "executionSelector",
617
- "type": "bytes4"
464
+ "type": "bytes4",
465
+ "internalType": "bytes4"
618
466
  },
619
467
  {
620
- "internalType": "bytes",
621
468
  "name": "executionParams",
622
- "type": "bytes"
469
+ "type": "bytes",
470
+ "internalType": "bytes"
623
471
  }
624
- ],
625
- "internalType": "struct EngineBlox.TxParams",
626
- "name": "params",
627
- "type": "tuple"
472
+ ]
628
473
  },
629
474
  {
630
- "internalType": "bytes32",
631
475
  "name": "message",
632
- "type": "bytes32"
476
+ "type": "bytes32",
477
+ "internalType": "bytes32"
633
478
  },
634
479
  {
635
- "internalType": "bytes",
636
- "name": "result",
637
- "type": "bytes"
480
+ "name": "resultHash",
481
+ "type": "bytes32",
482
+ "internalType": "bytes32"
638
483
  },
639
484
  {
485
+ "name": "payment",
486
+ "type": "tuple",
487
+ "internalType": "struct EngineBlox.PaymentDetails",
640
488
  "components": [
641
489
  {
642
- "internalType": "address",
643
490
  "name": "recipient",
644
- "type": "address"
491
+ "type": "address",
492
+ "internalType": "address"
645
493
  },
646
494
  {
647
- "internalType": "uint256",
648
495
  "name": "nativeTokenAmount",
649
- "type": "uint256"
496
+ "type": "uint256",
497
+ "internalType": "uint256"
650
498
  },
651
499
  {
652
- "internalType": "address",
653
500
  "name": "erc20TokenAddress",
654
- "type": "address"
501
+ "type": "address",
502
+ "internalType": "address"
655
503
  },
656
504
  {
657
- "internalType": "uint256",
658
505
  "name": "erc20TokenAmount",
659
- "type": "uint256"
506
+ "type": "uint256",
507
+ "internalType": "uint256"
660
508
  }
661
- ],
662
- "internalType": "struct EngineBlox.PaymentDetails",
663
- "name": "payment",
664
- "type": "tuple"
509
+ ]
665
510
  }
666
- ],
667
- "internalType": "struct EngineBlox.TxRecord",
668
- "name": "txRecord",
669
- "type": "tuple"
511
+ ]
670
512
  },
671
513
  {
514
+ "name": "params",
515
+ "type": "tuple",
516
+ "internalType": "struct EngineBlox.MetaTxParams",
672
517
  "components": [
673
518
  {
674
- "internalType": "uint256",
675
519
  "name": "chainId",
676
- "type": "uint256"
520
+ "type": "uint256",
521
+ "internalType": "uint256"
677
522
  },
678
523
  {
679
- "internalType": "uint256",
680
524
  "name": "nonce",
681
- "type": "uint256"
525
+ "type": "uint256",
526
+ "internalType": "uint256"
682
527
  },
683
528
  {
684
- "internalType": "address",
685
529
  "name": "handlerContract",
686
- "type": "address"
530
+ "type": "address",
531
+ "internalType": "address"
687
532
  },
688
533
  {
689
- "internalType": "bytes4",
690
534
  "name": "handlerSelector",
691
- "type": "bytes4"
535
+ "type": "bytes4",
536
+ "internalType": "bytes4"
692
537
  },
693
538
  {
694
- "internalType": "enum EngineBlox.TxAction",
695
539
  "name": "action",
696
- "type": "uint8"
540
+ "type": "uint8",
541
+ "internalType": "enum EngineBlox.TxAction"
697
542
  },
698
543
  {
699
- "internalType": "uint256",
700
544
  "name": "deadline",
701
- "type": "uint256"
545
+ "type": "uint256",
546
+ "internalType": "uint256"
702
547
  },
703
548
  {
704
- "internalType": "uint256",
705
549
  "name": "maxGasPrice",
706
- "type": "uint256"
550
+ "type": "uint256",
551
+ "internalType": "uint256"
707
552
  },
708
553
  {
709
- "internalType": "address",
710
554
  "name": "signer",
711
- "type": "address"
555
+ "type": "address",
556
+ "internalType": "address"
712
557
  }
713
- ],
714
- "internalType": "struct EngineBlox.MetaTxParams",
715
- "name": "params",
716
- "type": "tuple"
558
+ ]
717
559
  },
718
560
  {
719
- "internalType": "bytes32",
720
561
  "name": "message",
721
- "type": "bytes32"
562
+ "type": "bytes32",
563
+ "internalType": "bytes32"
722
564
  },
723
565
  {
724
- "internalType": "bytes",
725
566
  "name": "signature",
726
- "type": "bytes"
567
+ "type": "bytes",
568
+ "internalType": "bytes"
727
569
  },
728
570
  {
729
- "internalType": "bytes",
730
571
  "name": "data",
731
- "type": "bytes"
572
+ "type": "bytes",
573
+ "internalType": "bytes"
732
574
  }
733
- ],
734
- "internalType": "struct EngineBlox.MetaTransaction",
735
- "name": "",
736
- "type": "tuple"
575
+ ]
737
576
  }
738
577
  ],
739
- "stateMutability": "view",
740
- "type": "function"
578
+ "stateMutability": "view"
741
579
  },
742
580
  {
581
+ "type": "function",
582
+ "name": "getActiveRolePermissions",
743
583
  "inputs": [
744
584
  {
745
- "internalType": "uint256",
746
- "name": "fromTxId",
747
- "type": "uint256"
748
- },
749
- {
750
- "internalType": "uint256",
751
- "name": "toTxId",
752
- "type": "uint256"
585
+ "name": "roleHash",
586
+ "type": "bytes32",
587
+ "internalType": "bytes32"
753
588
  }
754
589
  ],
755
- "name": "getTransactionHistory",
756
590
  "outputs": [
757
591
  {
592
+ "name": "",
593
+ "type": "tuple[]",
594
+ "internalType": "struct EngineBlox.FunctionPermission[]",
758
595
  "components": [
759
596
  {
760
- "internalType": "uint256",
761
- "name": "txId",
762
- "type": "uint256"
763
- },
764
- {
765
- "internalType": "uint256",
766
- "name": "releaseTime",
767
- "type": "uint256"
768
- },
769
- {
770
- "internalType": "enum EngineBlox.TxStatus",
771
- "name": "status",
772
- "type": "uint8"
597
+ "name": "functionSelector",
598
+ "type": "bytes4",
599
+ "internalType": "bytes4"
773
600
  },
774
601
  {
775
- "components": [
776
- {
777
- "internalType": "address",
778
- "name": "requester",
779
- "type": "address"
780
- },
781
- {
782
- "internalType": "address",
783
- "name": "target",
784
- "type": "address"
785
- },
786
- {
787
- "internalType": "uint256",
788
- "name": "value",
789
- "type": "uint256"
790
- },
791
- {
792
- "internalType": "uint256",
793
- "name": "gasLimit",
794
- "type": "uint256"
795
- },
796
- {
797
- "internalType": "bytes32",
798
- "name": "operationType",
799
- "type": "bytes32"
800
- },
801
- {
802
- "internalType": "bytes4",
803
- "name": "executionSelector",
804
- "type": "bytes4"
805
- },
806
- {
807
- "internalType": "bytes",
808
- "name": "executionParams",
809
- "type": "bytes"
810
- }
811
- ],
812
- "internalType": "struct EngineBlox.TxParams",
813
- "name": "params",
814
- "type": "tuple"
602
+ "name": "grantedActionsBitmap",
603
+ "type": "uint16",
604
+ "internalType": "uint16"
815
605
  },
816
606
  {
817
- "internalType": "bytes32",
818
- "name": "message",
819
- "type": "bytes32"
820
- },
821
- {
822
- "internalType": "bytes",
823
- "name": "result",
824
- "type": "bytes"
825
- },
826
- {
827
- "components": [
828
- {
829
- "internalType": "address",
830
- "name": "recipient",
831
- "type": "address"
832
- },
833
- {
834
- "internalType": "uint256",
835
- "name": "nativeTokenAmount",
836
- "type": "uint256"
837
- },
838
- {
839
- "internalType": "address",
840
- "name": "erc20TokenAddress",
841
- "type": "address"
842
- },
843
- {
844
- "internalType": "uint256",
845
- "name": "erc20TokenAmount",
846
- "type": "uint256"
847
- }
848
- ],
849
- "internalType": "struct EngineBlox.PaymentDetails",
850
- "name": "payment",
851
- "type": "tuple"
607
+ "name": "handlerForSelectors",
608
+ "type": "bytes4[]",
609
+ "internalType": "bytes4[]"
852
610
  }
853
- ],
854
- "internalType": "struct EngineBlox.TxRecord[]",
611
+ ]
612
+ }
613
+ ],
614
+ "stateMutability": "view"
615
+ },
616
+ {
617
+ "type": "function",
618
+ "name": "getAuthorizedWallets",
619
+ "inputs": [
620
+ {
621
+ "name": "roleHash",
622
+ "type": "bytes32",
623
+ "internalType": "bytes32"
624
+ }
625
+ ],
626
+ "outputs": [
627
+ {
855
628
  "name": "",
856
- "type": "tuple[]"
629
+ "type": "address[]",
630
+ "internalType": "address[]"
857
631
  }
858
632
  ],
859
- "stateMutability": "view",
860
- "type": "function"
633
+ "stateMutability": "view"
861
634
  },
862
635
  {
636
+ "type": "function",
637
+ "name": "getBroadcasters",
638
+ "inputs": [],
639
+ "outputs": [
640
+ {
641
+ "name": "",
642
+ "type": "address[]",
643
+ "internalType": "address[]"
644
+ }
645
+ ],
646
+ "stateMutability": "view"
647
+ },
648
+ {
649
+ "type": "function",
650
+ "name": "getFunctionSchema",
863
651
  "inputs": [
864
652
  {
865
- "internalType": "uint256",
866
- "name": "txId",
867
- "type": "uint256"
653
+ "name": "functionSelector",
654
+ "type": "bytes4",
655
+ "internalType": "bytes4"
868
656
  }
869
657
  ],
870
- "name": "getTransaction",
871
658
  "outputs": [
872
659
  {
660
+ "name": "",
661
+ "type": "tuple",
662
+ "internalType": "struct EngineBlox.FunctionSchema",
873
663
  "components": [
874
664
  {
875
- "internalType": "uint256",
876
- "name": "txId",
877
- "type": "uint256"
665
+ "name": "functionSignature",
666
+ "type": "string",
667
+ "internalType": "string"
878
668
  },
879
669
  {
880
- "internalType": "uint256",
881
- "name": "releaseTime",
882
- "type": "uint256"
670
+ "name": "functionSelector",
671
+ "type": "bytes4",
672
+ "internalType": "bytes4"
883
673
  },
884
674
  {
885
- "internalType": "enum EngineBlox.TxStatus",
886
- "name": "status",
887
- "type": "uint8"
675
+ "name": "operationType",
676
+ "type": "bytes32",
677
+ "internalType": "bytes32"
888
678
  },
889
679
  {
890
- "components": [
891
- {
892
- "internalType": "address",
893
- "name": "requester",
894
- "type": "address"
895
- },
896
- {
897
- "internalType": "address",
898
- "name": "target",
899
- "type": "address"
900
- },
901
- {
902
- "internalType": "uint256",
903
- "name": "value",
904
- "type": "uint256"
905
- },
906
- {
907
- "internalType": "uint256",
908
- "name": "gasLimit",
909
- "type": "uint256"
910
- },
911
- {
912
- "internalType": "bytes32",
913
- "name": "operationType",
914
- "type": "bytes32"
915
- },
916
- {
917
- "internalType": "bytes4",
918
- "name": "executionSelector",
919
- "type": "bytes4"
920
- },
921
- {
922
- "internalType": "bytes",
923
- "name": "executionParams",
924
- "type": "bytes"
925
- }
926
- ],
927
- "internalType": "struct EngineBlox.TxParams",
928
- "name": "params",
929
- "type": "tuple"
680
+ "name": "operationName",
681
+ "type": "string",
682
+ "internalType": "string"
930
683
  },
931
684
  {
932
- "internalType": "bytes32",
933
- "name": "message",
934
- "type": "bytes32"
685
+ "name": "supportedActionsBitmap",
686
+ "type": "uint16",
687
+ "internalType": "uint16"
935
688
  },
936
689
  {
937
- "internalType": "bytes",
938
- "name": "result",
939
- "type": "bytes"
690
+ "name": "enforceHandlerRelations",
691
+ "type": "bool",
692
+ "internalType": "bool"
940
693
  },
941
694
  {
942
- "components": [
943
- {
944
- "internalType": "address",
945
- "name": "recipient",
946
- "type": "address"
947
- },
948
- {
949
- "internalType": "uint256",
950
- "name": "nativeTokenAmount",
951
- "type": "uint256"
952
- },
953
- {
954
- "internalType": "address",
955
- "name": "erc20TokenAddress",
956
- "type": "address"
957
- },
958
- {
959
- "internalType": "uint256",
960
- "name": "erc20TokenAmount",
961
- "type": "uint256"
962
- }
963
- ],
964
- "internalType": "struct EngineBlox.PaymentDetails",
965
- "name": "payment",
966
- "type": "tuple"
695
+ "name": "isProtected",
696
+ "type": "bool",
697
+ "internalType": "bool"
698
+ },
699
+ {
700
+ "name": "isGrantRevocable",
701
+ "type": "bool",
702
+ "internalType": "bool"
703
+ },
704
+ {
705
+ "name": "handlerForSelectors",
706
+ "type": "bytes4[]",
707
+ "internalType": "bytes4[]"
967
708
  }
968
- ],
969
- "internalType": "struct EngineBlox.TxRecord",
709
+ ]
710
+ }
711
+ ],
712
+ "stateMutability": "view"
713
+ },
714
+ {
715
+ "type": "function",
716
+ "name": "getFunctionWhitelistTargets",
717
+ "inputs": [
718
+ {
719
+ "name": "functionSelector",
720
+ "type": "bytes4",
721
+ "internalType": "bytes4"
722
+ }
723
+ ],
724
+ "outputs": [
725
+ {
970
726
  "name": "",
971
- "type": "tuple"
727
+ "type": "address[]",
728
+ "internalType": "address[]"
972
729
  }
973
730
  ],
974
- "stateMutability": "view",
975
- "type": "function"
731
+ "stateMutability": "view"
976
732
  },
977
733
  {
978
- "inputs": [],
734
+ "type": "function",
735
+ "name": "getHooks",
736
+ "inputs": [
737
+ {
738
+ "name": "functionSelector",
739
+ "type": "bytes4",
740
+ "internalType": "bytes4"
741
+ }
742
+ ],
743
+ "outputs": [
744
+ {
745
+ "name": "hooks",
746
+ "type": "address[]",
747
+ "internalType": "address[]"
748
+ }
749
+ ],
750
+ "stateMutability": "view"
751
+ },
752
+ {
753
+ "type": "function",
979
754
  "name": "getPendingTransactions",
755
+ "inputs": [],
980
756
  "outputs": [
981
757
  {
982
- "internalType": "uint256[]",
983
758
  "name": "",
984
- "type": "uint256[]"
759
+ "type": "uint256[]",
760
+ "internalType": "uint256[]"
985
761
  }
986
762
  ],
987
- "stateMutability": "view",
988
- "type": "function"
763
+ "stateMutability": "view"
989
764
  },
990
765
  {
766
+ "type": "function",
767
+ "name": "getRecovery",
768
+ "inputs": [],
769
+ "outputs": [
770
+ {
771
+ "name": "",
772
+ "type": "address",
773
+ "internalType": "address"
774
+ }
775
+ ],
776
+ "stateMutability": "view"
777
+ },
778
+ {
779
+ "type": "function",
780
+ "name": "getRole",
991
781
  "inputs": [
992
782
  {
993
- "internalType": "bytes32",
994
783
  "name": "roleHash",
995
- "type": "bytes32"
784
+ "type": "bytes32",
785
+ "internalType": "bytes32"
996
786
  }
997
787
  ],
998
- "name": "getRole",
999
788
  "outputs": [
1000
789
  {
1001
- "internalType": "string",
1002
790
  "name": "roleName",
1003
- "type": "string"
791
+ "type": "string",
792
+ "internalType": "string"
1004
793
  },
1005
794
  {
1006
- "internalType": "bytes32",
1007
795
  "name": "hash",
1008
- "type": "bytes32"
796
+ "type": "bytes32",
797
+ "internalType": "bytes32"
1009
798
  },
1010
799
  {
1011
- "internalType": "uint256",
1012
800
  "name": "maxWallets",
1013
- "type": "uint256"
801
+ "type": "uint256",
802
+ "internalType": "uint256"
1014
803
  },
1015
804
  {
1016
- "internalType": "uint256",
1017
805
  "name": "walletCount",
1018
- "type": "uint256"
806
+ "type": "uint256",
807
+ "internalType": "uint256"
1019
808
  },
1020
809
  {
1021
- "internalType": "bool",
1022
810
  "name": "isProtected",
1023
- "type": "bool"
811
+ "type": "bool",
812
+ "internalType": "bool"
1024
813
  }
1025
814
  ],
1026
- "stateMutability": "view",
1027
- "type": "function"
815
+ "stateMutability": "view"
1028
816
  },
1029
817
  {
818
+ "type": "function",
819
+ "name": "getSignerNonce",
1030
820
  "inputs": [
1031
821
  {
1032
- "internalType": "bytes32",
1033
- "name": "roleHash",
1034
- "type": "bytes32"
1035
- },
1036
- {
1037
- "internalType": "address",
1038
- "name": "wallet",
1039
- "type": "address"
822
+ "name": "signer",
823
+ "type": "address",
824
+ "internalType": "address"
1040
825
  }
1041
826
  ],
1042
- "name": "hasRole",
1043
827
  "outputs": [
1044
828
  {
1045
- "internalType": "bool",
1046
829
  "name": "",
1047
- "type": "bool"
830
+ "type": "uint256",
831
+ "internalType": "uint256"
1048
832
  }
1049
833
  ],
1050
- "stateMutability": "view",
1051
- "type": "function"
834
+ "stateMutability": "view"
1052
835
  },
1053
836
  {
1054
- "inputs": [
837
+ "type": "function",
838
+ "name": "getSupportedFunctions",
839
+ "inputs": [],
840
+ "outputs": [
1055
841
  {
1056
- "internalType": "address",
1057
- "name": "wallet",
1058
- "type": "address"
842
+ "name": "",
843
+ "type": "bytes4[]",
844
+ "internalType": "bytes4[]"
1059
845
  }
1060
846
  ],
1061
- "name": "getWalletRoles",
847
+ "stateMutability": "view"
848
+ },
849
+ {
850
+ "type": "function",
851
+ "name": "getSupportedOperationTypes",
852
+ "inputs": [],
1062
853
  "outputs": [
1063
854
  {
1064
- "internalType": "bytes32[]",
1065
855
  "name": "",
1066
- "type": "bytes32[]"
856
+ "type": "bytes32[]",
857
+ "internalType": "bytes32[]"
1067
858
  }
1068
859
  ],
1069
- "stateMutability": "view",
1070
- "type": "function"
860
+ "stateMutability": "view"
1071
861
  },
1072
862
  {
1073
- "inputs": [
863
+ "type": "function",
864
+ "name": "getSupportedRoles",
865
+ "inputs": [],
866
+ "outputs": [
1074
867
  {
1075
- "internalType": "bytes32",
1076
- "name": "roleHash",
1077
- "type": "bytes32"
868
+ "name": "",
869
+ "type": "bytes32[]",
870
+ "internalType": "bytes32[]"
1078
871
  }
1079
872
  ],
1080
- "name": "getAuthorizedWallets",
873
+ "stateMutability": "view"
874
+ },
875
+ {
876
+ "type": "function",
877
+ "name": "getTimeLockPeriodSec",
878
+ "inputs": [],
1081
879
  "outputs": [
1082
880
  {
1083
- "internalType": "address[]",
1084
881
  "name": "",
1085
- "type": "address[]"
882
+ "type": "uint256",
883
+ "internalType": "uint256"
1086
884
  }
1087
885
  ],
1088
- "stateMutability": "view",
1089
- "type": "function"
886
+ "stateMutability": "view"
1090
887
  },
1091
888
  {
889
+ "type": "function",
890
+ "name": "getTransaction",
1092
891
  "inputs": [
1093
892
  {
1094
- "internalType": "bytes4",
1095
- "name": "functionSelector",
1096
- "type": "bytes4"
893
+ "name": "txId",
894
+ "type": "uint256",
895
+ "internalType": "uint256"
1097
896
  }
1098
897
  ],
1099
- "name": "getFunctionSchema",
1100
898
  "outputs": [
1101
899
  {
900
+ "name": "",
901
+ "type": "tuple",
902
+ "internalType": "struct EngineBlox.TxRecord",
1102
903
  "components": [
1103
904
  {
1104
- "internalType": "string",
1105
- "name": "functionSignature",
1106
- "type": "string"
1107
- },
1108
- {
1109
- "internalType": "bytes4",
1110
- "name": "functionSelector",
1111
- "type": "bytes4"
905
+ "name": "txId",
906
+ "type": "uint256",
907
+ "internalType": "uint256"
1112
908
  },
1113
909
  {
1114
- "internalType": "bytes32",
1115
- "name": "operationType",
1116
- "type": "bytes32"
910
+ "name": "releaseTime",
911
+ "type": "uint256",
912
+ "internalType": "uint256"
1117
913
  },
1118
914
  {
1119
- "internalType": "string",
1120
- "name": "operationName",
1121
- "type": "string"
915
+ "name": "status",
916
+ "type": "uint8",
917
+ "internalType": "enum EngineBlox.TxStatus"
1122
918
  },
1123
919
  {
1124
- "internalType": "uint16",
1125
- "name": "supportedActionsBitmap",
1126
- "type": "uint16"
920
+ "name": "params",
921
+ "type": "tuple",
922
+ "internalType": "struct EngineBlox.TxParams",
923
+ "components": [
924
+ {
925
+ "name": "requester",
926
+ "type": "address",
927
+ "internalType": "address"
928
+ },
929
+ {
930
+ "name": "target",
931
+ "type": "address",
932
+ "internalType": "address"
933
+ },
934
+ {
935
+ "name": "value",
936
+ "type": "uint256",
937
+ "internalType": "uint256"
938
+ },
939
+ {
940
+ "name": "gasLimit",
941
+ "type": "uint256",
942
+ "internalType": "uint256"
943
+ },
944
+ {
945
+ "name": "operationType",
946
+ "type": "bytes32",
947
+ "internalType": "bytes32"
948
+ },
949
+ {
950
+ "name": "executionSelector",
951
+ "type": "bytes4",
952
+ "internalType": "bytes4"
953
+ },
954
+ {
955
+ "name": "executionParams",
956
+ "type": "bytes",
957
+ "internalType": "bytes"
958
+ }
959
+ ]
1127
960
  },
1128
961
  {
1129
- "internalType": "bool",
1130
- "name": "enforceHandlerRelations",
1131
- "type": "bool"
962
+ "name": "message",
963
+ "type": "bytes32",
964
+ "internalType": "bytes32"
1132
965
  },
1133
966
  {
1134
- "internalType": "bool",
1135
- "name": "isProtected",
1136
- "type": "bool"
967
+ "name": "resultHash",
968
+ "type": "bytes32",
969
+ "internalType": "bytes32"
1137
970
  },
1138
971
  {
1139
- "internalType": "bytes4[]",
1140
- "name": "handlerForSelectors",
1141
- "type": "bytes4[]"
972
+ "name": "payment",
973
+ "type": "tuple",
974
+ "internalType": "struct EngineBlox.PaymentDetails",
975
+ "components": [
976
+ {
977
+ "name": "recipient",
978
+ "type": "address",
979
+ "internalType": "address"
980
+ },
981
+ {
982
+ "name": "nativeTokenAmount",
983
+ "type": "uint256",
984
+ "internalType": "uint256"
985
+ },
986
+ {
987
+ "name": "erc20TokenAddress",
988
+ "type": "address",
989
+ "internalType": "address"
990
+ },
991
+ {
992
+ "name": "erc20TokenAmount",
993
+ "type": "uint256",
994
+ "internalType": "uint256"
995
+ }
996
+ ]
1142
997
  }
1143
- ],
1144
- "internalType": "struct EngineBlox.FunctionSchema",
1145
- "name": "",
1146
- "type": "tuple"
998
+ ]
1147
999
  }
1148
1000
  ],
1149
- "stateMutability": "view",
1150
- "type": "function"
1001
+ "stateMutability": "view"
1151
1002
  },
1152
1003
  {
1004
+ "type": "function",
1005
+ "name": "getTransactionHistory",
1153
1006
  "inputs": [
1154
1007
  {
1155
- "internalType": "bytes32",
1156
- "name": "roleHash",
1157
- "type": "bytes32"
1008
+ "name": "fromTxId",
1009
+ "type": "uint256",
1010
+ "internalType": "uint256"
1011
+ },
1012
+ {
1013
+ "name": "toTxId",
1014
+ "type": "uint256",
1015
+ "internalType": "uint256"
1158
1016
  }
1159
1017
  ],
1160
- "name": "getActiveRolePermissions",
1161
1018
  "outputs": [
1162
1019
  {
1020
+ "name": "",
1021
+ "type": "tuple[]",
1022
+ "internalType": "struct EngineBlox.TxRecord[]",
1163
1023
  "components": [
1164
1024
  {
1165
- "internalType": "bytes4",
1166
- "name": "functionSelector",
1167
- "type": "bytes4"
1025
+ "name": "txId",
1026
+ "type": "uint256",
1027
+ "internalType": "uint256"
1168
1028
  },
1169
1029
  {
1170
- "internalType": "uint16",
1171
- "name": "grantedActionsBitmap",
1172
- "type": "uint16"
1030
+ "name": "releaseTime",
1031
+ "type": "uint256",
1032
+ "internalType": "uint256"
1173
1033
  },
1174
1034
  {
1175
- "internalType": "bytes4[]",
1176
- "name": "handlerForSelectors",
1177
- "type": "bytes4[]"
1035
+ "name": "status",
1036
+ "type": "uint8",
1037
+ "internalType": "enum EngineBlox.TxStatus"
1038
+ },
1039
+ {
1040
+ "name": "params",
1041
+ "type": "tuple",
1042
+ "internalType": "struct EngineBlox.TxParams",
1043
+ "components": [
1044
+ {
1045
+ "name": "requester",
1046
+ "type": "address",
1047
+ "internalType": "address"
1048
+ },
1049
+ {
1050
+ "name": "target",
1051
+ "type": "address",
1052
+ "internalType": "address"
1053
+ },
1054
+ {
1055
+ "name": "value",
1056
+ "type": "uint256",
1057
+ "internalType": "uint256"
1058
+ },
1059
+ {
1060
+ "name": "gasLimit",
1061
+ "type": "uint256",
1062
+ "internalType": "uint256"
1063
+ },
1064
+ {
1065
+ "name": "operationType",
1066
+ "type": "bytes32",
1067
+ "internalType": "bytes32"
1068
+ },
1069
+ {
1070
+ "name": "executionSelector",
1071
+ "type": "bytes4",
1072
+ "internalType": "bytes4"
1073
+ },
1074
+ {
1075
+ "name": "executionParams",
1076
+ "type": "bytes",
1077
+ "internalType": "bytes"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "name": "message",
1083
+ "type": "bytes32",
1084
+ "internalType": "bytes32"
1085
+ },
1086
+ {
1087
+ "name": "resultHash",
1088
+ "type": "bytes32",
1089
+ "internalType": "bytes32"
1090
+ },
1091
+ {
1092
+ "name": "payment",
1093
+ "type": "tuple",
1094
+ "internalType": "struct EngineBlox.PaymentDetails",
1095
+ "components": [
1096
+ {
1097
+ "name": "recipient",
1098
+ "type": "address",
1099
+ "internalType": "address"
1100
+ },
1101
+ {
1102
+ "name": "nativeTokenAmount",
1103
+ "type": "uint256",
1104
+ "internalType": "uint256"
1105
+ },
1106
+ {
1107
+ "name": "erc20TokenAddress",
1108
+ "type": "address",
1109
+ "internalType": "address"
1110
+ },
1111
+ {
1112
+ "name": "erc20TokenAmount",
1113
+ "type": "uint256",
1114
+ "internalType": "uint256"
1115
+ }
1116
+ ]
1178
1117
  }
1179
- ],
1180
- "internalType": "struct EngineBlox.FunctionPermission[]",
1181
- "name": "",
1182
- "type": "tuple[]"
1118
+ ]
1183
1119
  }
1184
1120
  ],
1185
- "stateMutability": "view",
1186
- "type": "function"
1121
+ "stateMutability": "view"
1187
1122
  },
1188
1123
  {
1124
+ "type": "function",
1125
+ "name": "getWalletRoles",
1189
1126
  "inputs": [
1190
1127
  {
1191
- "internalType": "address",
1192
- "name": "signer",
1193
- "type": "address"
1128
+ "name": "wallet",
1129
+ "type": "address",
1130
+ "internalType": "address"
1194
1131
  }
1195
1132
  ],
1196
- "name": "getSignerNonce",
1197
1133
  "outputs": [
1198
1134
  {
1199
- "internalType": "uint256",
1200
1135
  "name": "",
1201
- "type": "uint256"
1136
+ "type": "bytes32[]",
1137
+ "internalType": "bytes32[]"
1202
1138
  }
1203
1139
  ],
1204
- "stateMutability": "view",
1205
- "type": "function"
1140
+ "stateMutability": "view"
1206
1141
  },
1207
1142
  {
1208
- "inputs": [],
1209
- "name": "getSupportedOperationTypes",
1210
- "outputs": [
1143
+ "type": "function",
1144
+ "name": "hasRole",
1145
+ "inputs": [
1211
1146
  {
1212
- "internalType": "bytes32[]",
1213
- "name": "",
1214
- "type": "bytes32[]"
1147
+ "name": "roleHash",
1148
+ "type": "bytes32",
1149
+ "internalType": "bytes32"
1150
+ },
1151
+ {
1152
+ "name": "wallet",
1153
+ "type": "address",
1154
+ "internalType": "address"
1215
1155
  }
1216
1156
  ],
1217
- "stateMutability": "view",
1218
- "type": "function"
1219
- },
1220
- {
1221
- "inputs": [],
1222
- "name": "getSupportedRoles",
1223
1157
  "outputs": [
1224
1158
  {
1225
- "internalType": "bytes32[]",
1226
1159
  "name": "",
1227
- "type": "bytes32[]"
1160
+ "type": "bool",
1161
+ "internalType": "bool"
1228
1162
  }
1229
1163
  ],
1230
- "stateMutability": "view",
1231
- "type": "function"
1164
+ "stateMutability": "view"
1232
1165
  },
1233
1166
  {
1167
+ "type": "function",
1168
+ "name": "initialized",
1234
1169
  "inputs": [],
1235
- "name": "getSupportedFunctions",
1236
1170
  "outputs": [
1237
1171
  {
1238
- "internalType": "bytes4[]",
1239
1172
  "name": "",
1240
- "type": "bytes4[]"
1173
+ "type": "bool",
1174
+ "internalType": "bool"
1241
1175
  }
1242
1176
  ],
1243
- "stateMutability": "view",
1244
- "type": "function"
1177
+ "stateMutability": "view"
1245
1178
  },
1246
1179
  {
1180
+ "type": "function",
1181
+ "name": "owner",
1247
1182
  "inputs": [],
1248
- "name": "getTimeLockPeriodSec",
1249
1183
  "outputs": [
1250
1184
  {
1251
- "internalType": "uint256",
1252
1185
  "name": "",
1253
- "type": "uint256"
1186
+ "type": "address",
1187
+ "internalType": "address"
1254
1188
  }
1255
1189
  ],
1256
- "stateMutability": "view",
1257
- "type": "function"
1190
+ "stateMutability": "view"
1258
1191
  },
1259
1192
  {
1260
- "inputs": [],
1261
- "name": "initialized",
1193
+ "type": "function",
1194
+ "name": "supportsInterface",
1195
+ "inputs": [
1196
+ {
1197
+ "name": "interfaceId",
1198
+ "type": "bytes4",
1199
+ "internalType": "bytes4"
1200
+ }
1201
+ ],
1262
1202
  "outputs": [
1263
1203
  {
1264
- "internalType": "bool",
1265
1204
  "name": "",
1266
- "type": "bool"
1205
+ "type": "bool",
1206
+ "internalType": "bool"
1267
1207
  }
1268
1208
  ],
1269
- "stateMutability": "view",
1270
- "type": "function"
1209
+ "stateMutability": "view"
1271
1210
  },
1272
1211
  {
1212
+ "type": "event",
1213
+ "name": "ComponentEvent",
1273
1214
  "inputs": [
1274
1215
  {
1275
- "internalType": "bytes4",
1276
1216
  "name": "functionSelector",
1277
- "type": "bytes4"
1217
+ "type": "bytes4",
1218
+ "indexed": true,
1219
+ "internalType": "bytes4"
1220
+ },
1221
+ {
1222
+ "name": "data",
1223
+ "type": "bytes",
1224
+ "indexed": false,
1225
+ "internalType": "bytes"
1278
1226
  }
1279
1227
  ],
1280
- "name": "getFunctionWhitelistTargets",
1281
- "outputs": [
1228
+ "anonymous": false
1229
+ },
1230
+ {
1231
+ "type": "event",
1232
+ "name": "Initialized",
1233
+ "inputs": [
1282
1234
  {
1283
- "internalType": "address[]",
1284
- "name": "",
1285
- "type": "address[]"
1235
+ "name": "version",
1236
+ "type": "uint64",
1237
+ "indexed": false,
1238
+ "internalType": "uint64"
1286
1239
  }
1287
1240
  ],
1288
- "stateMutability": "view",
1289
- "type": "function"
1241
+ "anonymous": false
1242
+ },
1243
+ {
1244
+ "type": "error",
1245
+ "name": "InvalidInitialization",
1246
+ "inputs": []
1247
+ },
1248
+ {
1249
+ "type": "error",
1250
+ "name": "NoPermission",
1251
+ "inputs": [
1252
+ {
1253
+ "name": "caller",
1254
+ "type": "address",
1255
+ "internalType": "address"
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "type": "error",
1261
+ "name": "NotInitializing",
1262
+ "inputs": []
1263
+ },
1264
+ {
1265
+ "type": "error",
1266
+ "name": "RangeSizeExceeded",
1267
+ "inputs": [
1268
+ {
1269
+ "name": "rangeSize",
1270
+ "type": "uint256",
1271
+ "internalType": "uint256"
1272
+ },
1273
+ {
1274
+ "name": "maxRangeSize",
1275
+ "type": "uint256",
1276
+ "internalType": "uint256"
1277
+ }
1278
+ ]
1279
+ },
1280
+ {
1281
+ "type": "error",
1282
+ "name": "ReentrancyGuardReentrantCall",
1283
+ "inputs": []
1284
+ },
1285
+ {
1286
+ "type": "error",
1287
+ "name": "ResourceNotFound",
1288
+ "inputs": [
1289
+ {
1290
+ "name": "resourceId",
1291
+ "type": "bytes32",
1292
+ "internalType": "bytes32"
1293
+ }
1294
+ ]
1290
1295
  }
1291
1296
  ]