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

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 (129) hide show
  1. package/README.md +376 -376
  2. package/abi/AccountBlox.abi.json +609 -2479
  3. package/abi/BareBlox.abi.json +94 -0
  4. package/abi/BaseStateMachine.abi.json +85 -45
  5. package/abi/CopyBlox.abi.json +1593 -0
  6. package/abi/EngineBlox.abi.json +73 -90
  7. package/abi/GuardController.abi.json +252 -806
  8. package/abi/GuardControllerDefinitions.abi.json +411 -0
  9. package/abi/IDefinition.abi.json +5 -0
  10. package/abi/RoleBlox.abi.json +375 -1590
  11. package/abi/RuntimeRBAC.abi.json +155 -218
  12. package/abi/RuntimeRBACDefinitions.abi.json +179 -0
  13. package/abi/SecureBlox.abi.json +436 -1511
  14. package/abi/SecureOwnable.abi.json +524 -1621
  15. package/abi/SecureOwnableDefinitions.abi.json +5 -0
  16. package/abi/SimpleRWA20.abi.json +478 -1756
  17. package/abi/SimpleRWA20Definitions.abi.json +5 -0
  18. package/abi/SimpleVault.abi.json +648 -2214
  19. package/abi/SimpleVaultDefinitions.abi.json +5 -0
  20. package/dist/abi/AccountBlox.abi.json +3929 -0
  21. package/dist/abi/BareBlox.abi.json +1378 -0
  22. package/dist/abi/BaseStateMachine.abi.json +1213 -1173
  23. package/dist/abi/CopyBlox.abi.json +1593 -0
  24. package/dist/abi/EngineBlox.abi.json +855 -0
  25. package/dist/abi/GuardController.abi.json +2222 -2776
  26. package/dist/abi/GuardControllerDefinitions.abi.json +411 -0
  27. package/dist/abi/IDefinition.abi.json +113 -108
  28. package/dist/abi/RoleBlox.abi.json +2994 -0
  29. package/dist/abi/RuntimeRBAC.abi.json +1540 -1603
  30. package/dist/abi/RuntimeRBACDefinitions.abi.json +381 -0
  31. package/dist/abi/SecureBlox.abi.json +2753 -0
  32. package/dist/abi/SecureOwnable.abi.json +2585 -3682
  33. package/dist/abi/SecureOwnableDefinitions.abi.json +416 -0
  34. package/dist/abi/SimpleRWA20.abi.json +4010 -0
  35. package/dist/abi/SimpleRWA20Definitions.abi.json +196 -0
  36. package/dist/abi/SimpleVault.abi.json +3385 -0
  37. package/dist/abi/SimpleVaultDefinitions.abi.json +274 -0
  38. package/dist/abi.d.ts +11 -0
  39. package/dist/abi.d.ts.map +1 -0
  40. package/dist/abi.js +10 -0
  41. package/dist/abi.js.map +1 -0
  42. package/dist/contracts/{BaseStateMachine.d.ts → core/BaseStateMachine.d.ts} +20 -6
  43. package/dist/contracts/core/BaseStateMachine.d.ts.map +1 -0
  44. package/dist/contracts/{BaseStateMachine.js → core/BaseStateMachine.js} +88 -38
  45. package/dist/contracts/core/BaseStateMachine.js.map +1 -0
  46. package/dist/contracts/{GuardController.d.ts → core/GuardController.d.ts} +22 -15
  47. package/dist/contracts/core/GuardController.d.ts.map +1 -0
  48. package/dist/contracts/{GuardController.js → core/GuardController.js} +19 -21
  49. package/dist/contracts/core/GuardController.js.map +1 -0
  50. package/dist/contracts/core/RuntimeRBAC.d.ts +27 -0
  51. package/dist/contracts/core/RuntimeRBAC.d.ts.map +1 -0
  52. package/dist/contracts/core/RuntimeRBAC.js +33 -0
  53. package/dist/contracts/core/RuntimeRBAC.js.map +1 -0
  54. package/dist/contracts/{SecureOwnable.d.ts → core/SecureOwnable.d.ts} +5 -15
  55. package/dist/contracts/core/SecureOwnable.d.ts.map +1 -0
  56. package/dist/contracts/{SecureOwnable.js → core/SecureOwnable.js} +4 -23
  57. package/dist/contracts/core/SecureOwnable.js.map +1 -0
  58. package/dist/index.d.ts +8 -7
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +6 -6
  61. package/dist/index.js.map +1 -1
  62. package/dist/interfaces/base.index.d.ts +10 -2
  63. package/dist/interfaces/base.index.d.ts.map +1 -1
  64. package/dist/interfaces/base.state.machine.index.d.ts +3 -2
  65. package/dist/interfaces/base.state.machine.index.d.ts.map +1 -1
  66. package/dist/interfaces/core.access.index.d.ts +2 -16
  67. package/dist/interfaces/core.access.index.d.ts.map +1 -1
  68. package/dist/interfaces/core.execution.index.d.ts +8 -11
  69. package/dist/interfaces/core.execution.index.d.ts.map +1 -1
  70. package/dist/interfaces/core.security.index.d.ts +1 -4
  71. package/dist/interfaces/core.security.index.d.ts.map +1 -1
  72. package/dist/lib/Definition.d.ts.map +1 -1
  73. package/dist/lib/Definition.js +1 -0
  74. package/dist/lib/Definition.js.map +1 -1
  75. package/dist/lib/EngineBlox.d.ts +16 -49
  76. package/dist/lib/EngineBlox.d.ts.map +1 -1
  77. package/dist/lib/EngineBlox.js +20 -108
  78. package/dist/lib/EngineBlox.js.map +1 -1
  79. package/dist/lib/definitions/GuardControllerDefinitions.d.ts +34 -7
  80. package/dist/lib/definitions/GuardControllerDefinitions.d.ts.map +1 -1
  81. package/dist/lib/definitions/GuardControllerDefinitions.js +62 -10
  82. package/dist/lib/definitions/GuardControllerDefinitions.js.map +1 -1
  83. package/dist/lib/definitions/RuntimeRBACDefinitions.d.ts +48 -7
  84. package/dist/lib/definitions/RuntimeRBACDefinitions.d.ts.map +1 -1
  85. package/dist/lib/definitions/RuntimeRBACDefinitions.js +73 -10
  86. package/dist/lib/definitions/RuntimeRBACDefinitions.js.map +1 -1
  87. package/dist/lib/definitions/SecureOwnableDefinitions.d.ts +12 -7
  88. package/dist/lib/definitions/SecureOwnableDefinitions.d.ts.map +1 -1
  89. package/dist/lib/definitions/SecureOwnableDefinitions.js +25 -9
  90. package/dist/lib/definitions/SecureOwnableDefinitions.js.map +1 -1
  91. package/dist/lib/definitions/index.d.ts +6 -4
  92. package/dist/lib/definitions/index.d.ts.map +1 -1
  93. package/dist/lib/definitions/index.js +5 -4
  94. package/dist/lib/definitions/index.js.map +1 -1
  95. package/dist/types/base.state.machine.index.d.ts +0 -2
  96. package/dist/types/base.state.machine.index.d.ts.map +1 -1
  97. package/dist/types/base.state.machine.index.js +1 -3
  98. package/dist/types/base.state.machine.index.js.map +1 -1
  99. package/dist/types/core.execution.index.d.ts +1 -0
  100. package/dist/types/core.execution.index.d.ts.map +1 -1
  101. package/dist/types/core.execution.index.js +1 -0
  102. package/dist/types/core.execution.index.js.map +1 -1
  103. package/dist/types/core.security.index.d.ts.map +1 -1
  104. package/dist/types/core.security.index.js +2 -2
  105. package/dist/types/core.security.index.js.map +1 -1
  106. package/dist/types/definition.index.d.ts +2 -0
  107. package/dist/types/definition.index.d.ts.map +1 -1
  108. package/dist/types/definition.index.js.map +1 -1
  109. package/dist/utils/contract-errors.d.ts +125 -6
  110. package/dist/utils/contract-errors.d.ts.map +1 -1
  111. package/dist/utils/contract-errors.js +375 -107
  112. package/dist/utils/contract-errors.js.map +1 -1
  113. package/dist/utils/interface-ids.js +8 -8
  114. package/dist/utils/interface-ids.js.map +1 -1
  115. package/dist/utils/metaTx/metaTransaction.d.ts +103 -7
  116. package/dist/utils/metaTx/metaTransaction.d.ts.map +1 -1
  117. package/dist/utils/metaTx/metaTransaction.js +136 -25
  118. package/dist/utils/metaTx/metaTransaction.js.map +1 -1
  119. package/package.json +10 -6
  120. package/dist/contracts/BaseStateMachine.d.ts.map +0 -1
  121. package/dist/contracts/BaseStateMachine.js.map +0 -1
  122. package/dist/contracts/GuardController.d.ts.map +0 -1
  123. package/dist/contracts/GuardController.js.map +0 -1
  124. package/dist/contracts/RuntimeRBAC.d.ts +0 -54
  125. package/dist/contracts/RuntimeRBAC.d.ts.map +0 -1
  126. package/dist/contracts/RuntimeRBAC.js +0 -58
  127. package/dist/contracts/RuntimeRBAC.js.map +0 -1
  128. package/dist/contracts/SecureOwnable.d.ts.map +0 -1
  129. package/dist/contracts/SecureOwnable.js.map +0 -1
@@ -1,1708 +1,1645 @@
1
1
  [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "uint256",
6
- "name": "array1Length",
7
- "type": "uint256"
8
- },
9
- {
10
- "internalType": "uint256",
11
- "name": "array2Length",
12
- "type": "uint256"
13
- }
2
+ {
3
+ "inputs": [
4
+ {
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": "bytes32",
38
+ "name": "resourceId",
39
+ "type": "bytes32"
40
+ }
41
+ ],
42
+ "name": "CannotModifyProtected",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "bytes4",
49
+ "name": "functionSelector",
50
+ "type": "bytes4"
51
+ }
52
+ ],
53
+ "name": "ContractFunctionMustBeProtected",
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"
230
+ }
231
+ ],
232
+ "name": "createMetaTxParams",
233
+ "outputs": [
234
+ {
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
+ }
14
276
  ],
15
- "name": "ArrayLengthMismatch",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
277
+ "internalType": "struct EngineBlox.MetaTxParams",
278
+ "name": "",
279
+ "type": "tuple"
280
+ }
281
+ ],
282
+ "stateMutability": "view",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [
287
+ {
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
+ {
343
+ "components": [
344
+ {
345
+ "components": [
346
+ {
21
347
  "internalType": "uint256",
22
- "name": "currentSize",
348
+ "name": "txId",
23
349
  "type": "uint256"
24
- },
25
- {
350
+ },
351
+ {
26
352
  "internalType": "uint256",
27
- "name": "maxSize",
353
+ "name": "releaseTime",
28
354
  "type": "uint256"
29
- }
30
- ],
31
- "name": "BatchSizeExceeded",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [
36
- {
355
+ },
356
+ {
357
+ "internalType": "enum EngineBlox.TxStatus",
358
+ "name": "status",
359
+ "type": "uint8"
360
+ },
361
+ {
362
+ "components": [
363
+ {
364
+ "internalType": "address",
365
+ "name": "requester",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "address",
370
+ "name": "target",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "value",
376
+ "type": "uint256"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "gasLimit",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "bytes32",
385
+ "name": "operationType",
386
+ "type": "bytes32"
387
+ },
388
+ {
389
+ "internalType": "bytes4",
390
+ "name": "executionSelector",
391
+ "type": "bytes4"
392
+ },
393
+ {
394
+ "internalType": "bytes",
395
+ "name": "executionParams",
396
+ "type": "bytes"
397
+ }
398
+ ],
399
+ "internalType": "struct EngineBlox.TxParams",
400
+ "name": "params",
401
+ "type": "tuple"
402
+ },
403
+ {
37
404
  "internalType": "bytes32",
38
- "name": "resourceId",
405
+ "name": "message",
39
406
  "type": "bytes32"
40
- }
41
- ],
42
- "name": "CannotModifyProtected",
43
- "type": "error"
44
- },
45
- {
46
- "inputs": [],
47
- "name": "InvalidInitialization",
48
- "type": "error"
49
- },
50
- {
51
- "inputs": [
52
- {
407
+ },
408
+ {
409
+ "internalType": "bytes",
410
+ "name": "result",
411
+ "type": "bytes"
412
+ },
413
+ {
414
+ "components": [
415
+ {
416
+ "internalType": "address",
417
+ "name": "recipient",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "nativeTokenAmount",
423
+ "type": "uint256"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "erc20TokenAddress",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "erc20TokenAmount",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "internalType": "struct EngineBlox.PaymentDetails",
437
+ "name": "payment",
438
+ "type": "tuple"
439
+ }
440
+ ],
441
+ "internalType": "struct EngineBlox.TxRecord",
442
+ "name": "txRecord",
443
+ "type": "tuple"
444
+ },
445
+ {
446
+ "components": [
447
+ {
53
448
  "internalType": "uint256",
54
- "name": "from",
449
+ "name": "chainId",
55
450
  "type": "uint256"
56
- },
57
- {
451
+ },
452
+ {
58
453
  "internalType": "uint256",
59
- "name": "to",
454
+ "name": "nonce",
60
455
  "type": "uint256"
61
- }
62
- ],
63
- "name": "InvalidRange",
64
- "type": "error"
65
- },
66
- {
67
- "inputs": [
68
- {
456
+ },
457
+ {
458
+ "internalType": "address",
459
+ "name": "handlerContract",
460
+ "type": "address"
461
+ },
462
+ {
463
+ "internalType": "bytes4",
464
+ "name": "handlerSelector",
465
+ "type": "bytes4"
466
+ },
467
+ {
468
+ "internalType": "enum EngineBlox.TxAction",
469
+ "name": "action",
470
+ "type": "uint8"
471
+ },
472
+ {
69
473
  "internalType": "uint256",
70
- "name": "provided",
474
+ "name": "deadline",
71
475
  "type": "uint256"
72
- }
73
- ],
74
- "name": "MaxWalletsZero",
75
- "type": "error"
76
- },
77
- {
78
- "inputs": [
79
- {
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "maxGasPrice",
480
+ "type": "uint256"
481
+ },
482
+ {
80
483
  "internalType": "address",
81
- "name": "caller",
484
+ "name": "signer",
82
485
  "type": "address"
83
- }
486
+ }
487
+ ],
488
+ "internalType": "struct EngineBlox.MetaTxParams",
489
+ "name": "params",
490
+ "type": "tuple"
491
+ },
492
+ {
493
+ "internalType": "bytes32",
494
+ "name": "message",
495
+ "type": "bytes32"
496
+ },
497
+ {
498
+ "internalType": "bytes",
499
+ "name": "signature",
500
+ "type": "bytes"
501
+ },
502
+ {
503
+ "internalType": "bytes",
504
+ "name": "data",
505
+ "type": "bytes"
506
+ }
84
507
  ],
85
- "name": "NoPermission",
86
- "type": "error"
87
- },
88
- {
89
- "inputs": [],
90
- "name": "NotInitializing",
91
- "type": "error"
92
- },
93
- {
94
- "inputs": [],
95
- "name": "NotSupported",
96
- "type": "error"
97
- },
98
- {
99
- "inputs": [
100
- {
101
- "internalType": "address",
102
- "name": "caller",
103
- "type": "address"
104
- },
105
- {
106
- "internalType": "address",
107
- "name": "contractAddress",
108
- "type": "address"
109
- }
508
+ "internalType": "struct EngineBlox.MetaTransaction",
509
+ "name": "",
510
+ "type": "tuple"
511
+ }
512
+ ],
513
+ "stateMutability": "view",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [
518
+ {
519
+ "internalType": "address",
520
+ "name": "requester",
521
+ "type": "address"
522
+ },
523
+ {
524
+ "internalType": "address",
525
+ "name": "target",
526
+ "type": "address"
527
+ },
528
+ {
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
+ }
110
595
  ],
111
- "name": "OnlyCallableByContract",
112
- "type": "error"
113
- },
114
- {
115
- "inputs": [
116
- {
596
+ "internalType": "struct EngineBlox.MetaTxParams",
597
+ "name": "metaTxParams",
598
+ "type": "tuple"
599
+ }
600
+ ],
601
+ "name": "generateUnsignedMetaTransactionForNew",
602
+ "outputs": [
603
+ {
604
+ "components": [
605
+ {
606
+ "components": [
607
+ {
117
608
  "internalType": "uint256",
118
- "name": "rangeSize",
609
+ "name": "txId",
119
610
  "type": "uint256"
120
- },
121
- {
611
+ },
612
+ {
122
613
  "internalType": "uint256",
123
- "name": "maxRangeSize",
614
+ "name": "releaseTime",
124
615
  "type": "uint256"
125
- }
126
- ],
127
- "name": "RangeSizeExceeded",
128
- "type": "error"
129
- },
130
- {
131
- "inputs": [],
132
- "name": "ReentrancyGuardReentrantCall",
133
- "type": "error"
134
- },
135
- {
136
- "inputs": [
137
- {
616
+ },
617
+ {
618
+ "internalType": "enum EngineBlox.TxStatus",
619
+ "name": "status",
620
+ "type": "uint8"
621
+ },
622
+ {
623
+ "components": [
624
+ {
625
+ "internalType": "address",
626
+ "name": "requester",
627
+ "type": "address"
628
+ },
629
+ {
630
+ "internalType": "address",
631
+ "name": "target",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "internalType": "uint256",
636
+ "name": "value",
637
+ "type": "uint256"
638
+ },
639
+ {
640
+ "internalType": "uint256",
641
+ "name": "gasLimit",
642
+ "type": "uint256"
643
+ },
644
+ {
645
+ "internalType": "bytes32",
646
+ "name": "operationType",
647
+ "type": "bytes32"
648
+ },
649
+ {
650
+ "internalType": "bytes4",
651
+ "name": "executionSelector",
652
+ "type": "bytes4"
653
+ },
654
+ {
655
+ "internalType": "bytes",
656
+ "name": "executionParams",
657
+ "type": "bytes"
658
+ }
659
+ ],
660
+ "internalType": "struct EngineBlox.TxParams",
661
+ "name": "params",
662
+ "type": "tuple"
663
+ },
664
+ {
138
665
  "internalType": "bytes32",
139
- "name": "resourceId",
666
+ "name": "message",
140
667
  "type": "bytes32"
141
- }
142
- ],
143
- "name": "ResourceNotFound",
144
- "type": "error"
145
- },
146
- {
147
- "anonymous": false,
148
- "inputs": [
149
- {
150
- "indexed": true,
151
- "internalType": "bytes4",
152
- "name": "functionSelector",
153
- "type": "bytes4"
154
- },
155
- {
156
- "indexed": false,
668
+ },
669
+ {
157
670
  "internalType": "bytes",
158
- "name": "data",
671
+ "name": "result",
159
672
  "type": "bytes"
160
- }
161
- ],
162
- "name": "ComponentEvent",
163
- "type": "event"
164
- },
165
- {
166
- "anonymous": false,
167
- "inputs": [
168
- {
169
- "indexed": false,
170
- "internalType": "uint64",
171
- "name": "version",
172
- "type": "uint64"
173
- }
174
- ],
175
- "name": "Initialized",
176
- "type": "event"
177
- },
178
- {
179
- "inputs": [
180
- {
673
+ },
674
+ {
675
+ "components": [
676
+ {
677
+ "internalType": "address",
678
+ "name": "recipient",
679
+ "type": "address"
680
+ },
681
+ {
682
+ "internalType": "uint256",
683
+ "name": "nativeTokenAmount",
684
+ "type": "uint256"
685
+ },
686
+ {
687
+ "internalType": "address",
688
+ "name": "erc20TokenAddress",
689
+ "type": "address"
690
+ },
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "erc20TokenAmount",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "internalType": "struct EngineBlox.PaymentDetails",
698
+ "name": "payment",
699
+ "type": "tuple"
700
+ }
701
+ ],
702
+ "internalType": "struct EngineBlox.TxRecord",
703
+ "name": "txRecord",
704
+ "type": "tuple"
705
+ },
706
+ {
707
+ "components": [
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "chainId",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "nonce",
716
+ "type": "uint256"
717
+ },
718
+ {
181
719
  "internalType": "address",
182
720
  "name": "handlerContract",
183
721
  "type": "address"
184
- },
185
- {
722
+ },
723
+ {
186
724
  "internalType": "bytes4",
187
725
  "name": "handlerSelector",
188
726
  "type": "bytes4"
189
- },
190
- {
727
+ },
728
+ {
191
729
  "internalType": "enum EngineBlox.TxAction",
192
730
  "name": "action",
193
731
  "type": "uint8"
194
- },
195
- {
732
+ },
733
+ {
196
734
  "internalType": "uint256",
197
735
  "name": "deadline",
198
736
  "type": "uint256"
199
- },
200
- {
737
+ },
738
+ {
201
739
  "internalType": "uint256",
202
740
  "name": "maxGasPrice",
203
741
  "type": "uint256"
204
- },
205
- {
742
+ },
743
+ {
206
744
  "internalType": "address",
207
745
  "name": "signer",
208
746
  "type": "address"
209
- }
747
+ }
748
+ ],
749
+ "internalType": "struct EngineBlox.MetaTxParams",
750
+ "name": "params",
751
+ "type": "tuple"
752
+ },
753
+ {
754
+ "internalType": "bytes32",
755
+ "name": "message",
756
+ "type": "bytes32"
757
+ },
758
+ {
759
+ "internalType": "bytes",
760
+ "name": "signature",
761
+ "type": "bytes"
762
+ },
763
+ {
764
+ "internalType": "bytes",
765
+ "name": "data",
766
+ "type": "bytes"
767
+ }
210
768
  ],
211
- "name": "createMetaTxParams",
212
- "outputs": [
213
- {
214
- "components": [
215
- {
216
- "internalType": "uint256",
217
- "name": "chainId",
218
- "type": "uint256"
219
- },
220
- {
221
- "internalType": "uint256",
222
- "name": "nonce",
223
- "type": "uint256"
224
- },
225
- {
226
- "internalType": "address",
227
- "name": "handlerContract",
228
- "type": "address"
229
- },
230
- {
231
- "internalType": "bytes4",
232
- "name": "handlerSelector",
233
- "type": "bytes4"
234
- },
235
- {
236
- "internalType": "enum EngineBlox.TxAction",
237
- "name": "action",
238
- "type": "uint8"
239
- },
240
- {
241
- "internalType": "uint256",
242
- "name": "deadline",
243
- "type": "uint256"
244
- },
245
- {
246
- "internalType": "uint256",
247
- "name": "maxGasPrice",
248
- "type": "uint256"
249
- },
250
- {
251
- "internalType": "address",
252
- "name": "signer",
253
- "type": "address"
254
- }
255
- ],
256
- "internalType": "struct EngineBlox.MetaTxParams",
257
- "name": "",
258
- "type": "tuple"
259
- }
260
- ],
261
- "stateMutability": "view",
262
- "type": "function"
263
- },
264
- {
265
- "inputs": [
266
- {
267
- "internalType": "bytes4",
268
- "name": "functionSelector",
269
- "type": "bytes4"
270
- }
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"
783
+ }
784
+ ],
785
+ "name": "getActiveRolePermissions",
786
+ "outputs": [
787
+ {
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
+ }
271
804
  ],
272
- "name": "functionSchemaExists",
273
- "outputs": [
274
- {
275
- "internalType": "bool",
276
- "name": "",
277
- "type": "bool"
278
- }
805
+ "internalType": "struct EngineBlox.FunctionPermission[]",
806
+ "name": "",
807
+ "type": "tuple[]"
808
+ }
809
+ ],
810
+ "stateMutability": "view",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [
815
+ {
816
+ "internalType": "bytes32",
817
+ "name": "roleHash",
818
+ "type": "bytes32"
819
+ }
820
+ ],
821
+ "name": "getAuthorizedWallets",
822
+ "outputs": [
823
+ {
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": [
836
+ {
837
+ "internalType": "address[]",
838
+ "name": "",
839
+ "type": "address[]"
840
+ }
841
+ ],
842
+ "stateMutability": "view",
843
+ "type": "function"
844
+ },
845
+ {
846
+ "inputs": [
847
+ {
848
+ "internalType": "bytes4",
849
+ "name": "functionSelector",
850
+ "type": "bytes4"
851
+ }
852
+ ],
853
+ "name": "getFunctionSchema",
854
+ "outputs": [
855
+ {
856
+ "components": [
857
+ {
858
+ "internalType": "string",
859
+ "name": "functionSignature",
860
+ "type": "string"
861
+ },
862
+ {
863
+ "internalType": "bytes4",
864
+ "name": "functionSelector",
865
+ "type": "bytes4"
866
+ },
867
+ {
868
+ "internalType": "bytes32",
869
+ "name": "operationType",
870
+ "type": "bytes32"
871
+ },
872
+ {
873
+ "internalType": "string",
874
+ "name": "operationName",
875
+ "type": "string"
876
+ },
877
+ {
878
+ "internalType": "uint16",
879
+ "name": "supportedActionsBitmap",
880
+ "type": "uint16"
881
+ },
882
+ {
883
+ "internalType": "bool",
884
+ "name": "enforceHandlerRelations",
885
+ "type": "bool"
886
+ },
887
+ {
888
+ "internalType": "bool",
889
+ "name": "isProtected",
890
+ "type": "bool"
891
+ },
892
+ {
893
+ "internalType": "bytes4[]",
894
+ "name": "handlerForSelectors",
895
+ "type": "bytes4[]"
896
+ }
279
897
  ],
280
- "stateMutability": "view",
281
- "type": "function"
282
- },
283
- {
284
- "inputs": [
285
- {
286
- "internalType": "uint256",
287
- "name": "txId",
288
- "type": "uint256"
289
- },
290
- {
291
- "components": [
292
- {
293
- "internalType": "uint256",
294
- "name": "chainId",
295
- "type": "uint256"
296
- },
297
- {
298
- "internalType": "uint256",
299
- "name": "nonce",
300
- "type": "uint256"
301
- },
302
- {
303
- "internalType": "address",
304
- "name": "handlerContract",
305
- "type": "address"
306
- },
307
- {
308
- "internalType": "bytes4",
309
- "name": "handlerSelector",
310
- "type": "bytes4"
311
- },
312
- {
313
- "internalType": "enum EngineBlox.TxAction",
314
- "name": "action",
315
- "type": "uint8"
316
- },
317
- {
318
- "internalType": "uint256",
319
- "name": "deadline",
320
- "type": "uint256"
321
- },
322
- {
323
- "internalType": "uint256",
324
- "name": "maxGasPrice",
325
- "type": "uint256"
326
- },
327
- {
328
- "internalType": "address",
329
- "name": "signer",
330
- "type": "address"
331
- }
332
- ],
333
- "internalType": "struct EngineBlox.MetaTxParams",
334
- "name": "metaTxParams",
335
- "type": "tuple"
336
- }
337
- ],
338
- "name": "generateUnsignedMetaTransactionForExisting",
339
- "outputs": [
340
- {
341
- "components": [
342
- {
343
- "components": [
344
- {
345
- "internalType": "uint256",
346
- "name": "txId",
347
- "type": "uint256"
348
- },
349
- {
350
- "internalType": "uint256",
351
- "name": "releaseTime",
352
- "type": "uint256"
353
- },
354
- {
355
- "internalType": "enum EngineBlox.TxStatus",
356
- "name": "status",
357
- "type": "uint8"
358
- },
359
- {
360
- "components": [
361
- {
362
- "internalType": "address",
363
- "name": "requester",
364
- "type": "address"
365
- },
366
- {
367
- "internalType": "address",
368
- "name": "target",
369
- "type": "address"
370
- },
371
- {
372
- "internalType": "uint256",
373
- "name": "value",
374
- "type": "uint256"
375
- },
376
- {
377
- "internalType": "uint256",
378
- "name": "gasLimit",
379
- "type": "uint256"
380
- },
381
- {
382
- "internalType": "bytes32",
383
- "name": "operationType",
384
- "type": "bytes32"
385
- },
386
- {
387
- "internalType": "bytes4",
388
- "name": "executionSelector",
389
- "type": "bytes4"
390
- },
391
- {
392
- "internalType": "bytes",
393
- "name": "executionParams",
394
- "type": "bytes"
395
- }
396
- ],
397
- "internalType": "struct EngineBlox.TxParams",
398
- "name": "params",
399
- "type": "tuple"
400
- },
401
- {
402
- "internalType": "bytes32",
403
- "name": "message",
404
- "type": "bytes32"
405
- },
406
- {
407
- "internalType": "bytes",
408
- "name": "result",
409
- "type": "bytes"
410
- },
411
- {
412
- "components": [
413
- {
414
- "internalType": "address",
415
- "name": "recipient",
416
- "type": "address"
417
- },
418
- {
419
- "internalType": "uint256",
420
- "name": "nativeTokenAmount",
421
- "type": "uint256"
422
- },
423
- {
424
- "internalType": "address",
425
- "name": "erc20TokenAddress",
426
- "type": "address"
427
- },
428
- {
429
- "internalType": "uint256",
430
- "name": "erc20TokenAmount",
431
- "type": "uint256"
432
- }
433
- ],
434
- "internalType": "struct EngineBlox.PaymentDetails",
435
- "name": "payment",
436
- "type": "tuple"
437
- }
438
- ],
439
- "internalType": "struct EngineBlox.TxRecord",
440
- "name": "txRecord",
441
- "type": "tuple"
442
- },
443
- {
444
- "components": [
445
- {
446
- "internalType": "uint256",
447
- "name": "chainId",
448
- "type": "uint256"
449
- },
450
- {
451
- "internalType": "uint256",
452
- "name": "nonce",
453
- "type": "uint256"
454
- },
455
- {
456
- "internalType": "address",
457
- "name": "handlerContract",
458
- "type": "address"
459
- },
460
- {
461
- "internalType": "bytes4",
462
- "name": "handlerSelector",
463
- "type": "bytes4"
464
- },
465
- {
466
- "internalType": "enum EngineBlox.TxAction",
467
- "name": "action",
468
- "type": "uint8"
469
- },
470
- {
471
- "internalType": "uint256",
472
- "name": "deadline",
473
- "type": "uint256"
474
- },
475
- {
476
- "internalType": "uint256",
477
- "name": "maxGasPrice",
478
- "type": "uint256"
479
- },
480
- {
481
- "internalType": "address",
482
- "name": "signer",
483
- "type": "address"
484
- }
485
- ],
486
- "internalType": "struct EngineBlox.MetaTxParams",
487
- "name": "params",
488
- "type": "tuple"
489
- },
490
- {
491
- "internalType": "bytes32",
492
- "name": "message",
493
- "type": "bytes32"
494
- },
495
- {
496
- "internalType": "bytes",
497
- "name": "signature",
498
- "type": "bytes"
499
- },
500
- {
501
- "internalType": "bytes",
502
- "name": "data",
503
- "type": "bytes"
504
- }
505
- ],
506
- "internalType": "struct EngineBlox.MetaTransaction",
507
- "name": "",
508
- "type": "tuple"
509
- }
510
- ],
511
- "stateMutability": "view",
512
- "type": "function"
513
- },
514
- {
515
- "inputs": [
516
- {
898
+ "internalType": "struct EngineBlox.FunctionSchema",
899
+ "name": "",
900
+ "type": "tuple"
901
+ }
902
+ ],
903
+ "stateMutability": "view",
904
+ "type": "function"
905
+ },
906
+ {
907
+ "inputs": [
908
+ {
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[]"
920
+ }
921
+ ],
922
+ "stateMutability": "view",
923
+ "type": "function"
924
+ },
925
+ {
926
+ "inputs": [
927
+ {
928
+ "internalType": "bytes4",
929
+ "name": "functionSelector",
930
+ "type": "bytes4"
931
+ }
932
+ ],
933
+ "name": "getHooks",
934
+ "outputs": [
935
+ {
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": [
948
+ {
949
+ "internalType": "uint256[]",
950
+ "name": "",
951
+ "type": "uint256[]"
952
+ }
953
+ ],
954
+ "stateMutability": "view",
955
+ "type": "function"
956
+ },
957
+ {
958
+ "inputs": [],
959
+ "name": "getRecovery",
960
+ "outputs": [
961
+ {
962
+ "internalType": "address",
963
+ "name": "",
964
+ "type": "address"
965
+ }
966
+ ],
967
+ "stateMutability": "view",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [
972
+ {
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"
984
+ },
985
+ {
986
+ "internalType": "bytes32",
987
+ "name": "hash",
988
+ "type": "bytes32"
989
+ },
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "maxWallets",
993
+ "type": "uint256"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "walletCount",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "internalType": "bool",
1002
+ "name": "isProtected",
1003
+ "type": "bool"
1004
+ }
1005
+ ],
1006
+ "stateMutability": "view",
1007
+ "type": "function"
1008
+ },
1009
+ {
1010
+ "inputs": [
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "signer",
1014
+ "type": "address"
1015
+ }
1016
+ ],
1017
+ "name": "getSignerNonce",
1018
+ "outputs": [
1019
+ {
1020
+ "internalType": "uint256",
1021
+ "name": "",
1022
+ "type": "uint256"
1023
+ }
1024
+ ],
1025
+ "stateMutability": "view",
1026
+ "type": "function"
1027
+ },
1028
+ {
1029
+ "inputs": [],
1030
+ "name": "getSupportedFunctions",
1031
+ "outputs": [
1032
+ {
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": [
1090
+ {
1091
+ "components": [
1092
+ {
1093
+ "internalType": "uint256",
1094
+ "name": "txId",
1095
+ "type": "uint256"
1096
+ },
1097
+ {
1098
+ "internalType": "uint256",
1099
+ "name": "releaseTime",
1100
+ "type": "uint256"
1101
+ },
1102
+ {
1103
+ "internalType": "enum EngineBlox.TxStatus",
1104
+ "name": "status",
1105
+ "type": "uint8"
1106
+ },
1107
+ {
1108
+ "components": [
1109
+ {
517
1110
  "internalType": "address",
518
1111
  "name": "requester",
519
1112
  "type": "address"
520
- },
521
- {
1113
+ },
1114
+ {
522
1115
  "internalType": "address",
523
1116
  "name": "target",
524
1117
  "type": "address"
525
- },
526
- {
1118
+ },
1119
+ {
527
1120
  "internalType": "uint256",
528
1121
  "name": "value",
529
1122
  "type": "uint256"
530
- },
531
- {
1123
+ },
1124
+ {
532
1125
  "internalType": "uint256",
533
1126
  "name": "gasLimit",
534
1127
  "type": "uint256"
535
- },
536
- {
1128
+ },
1129
+ {
537
1130
  "internalType": "bytes32",
538
1131
  "name": "operationType",
539
1132
  "type": "bytes32"
540
- },
541
- {
1133
+ },
1134
+ {
542
1135
  "internalType": "bytes4",
543
1136
  "name": "executionSelector",
544
1137
  "type": "bytes4"
545
- },
546
- {
1138
+ },
1139
+ {
547
1140
  "internalType": "bytes",
548
1141
  "name": "executionParams",
549
1142
  "type": "bytes"
550
- },
551
- {
552
- "components": [
553
- {
554
- "internalType": "uint256",
555
- "name": "chainId",
556
- "type": "uint256"
557
- },
558
- {
559
- "internalType": "uint256",
560
- "name": "nonce",
561
- "type": "uint256"
562
- },
563
- {
564
- "internalType": "address",
565
- "name": "handlerContract",
566
- "type": "address"
567
- },
568
- {
569
- "internalType": "bytes4",
570
- "name": "handlerSelector",
571
- "type": "bytes4"
572
- },
573
- {
574
- "internalType": "enum EngineBlox.TxAction",
575
- "name": "action",
576
- "type": "uint8"
577
- },
578
- {
579
- "internalType": "uint256",
580
- "name": "deadline",
581
- "type": "uint256"
582
- },
583
- {
584
- "internalType": "uint256",
585
- "name": "maxGasPrice",
586
- "type": "uint256"
587
- },
588
- {
589
- "internalType": "address",
590
- "name": "signer",
591
- "type": "address"
592
- }
593
- ],
594
- "internalType": "struct EngineBlox.MetaTxParams",
595
- "name": "metaTxParams",
596
- "type": "tuple"
597
- }
598
- ],
599
- "name": "generateUnsignedMetaTransactionForNew",
600
- "outputs": [
601
- {
602
- "components": [
603
- {
604
- "components": [
605
- {
606
- "internalType": "uint256",
607
- "name": "txId",
608
- "type": "uint256"
609
- },
610
- {
611
- "internalType": "uint256",
612
- "name": "releaseTime",
613
- "type": "uint256"
614
- },
615
- {
616
- "internalType": "enum EngineBlox.TxStatus",
617
- "name": "status",
618
- "type": "uint8"
619
- },
620
- {
621
- "components": [
622
- {
623
- "internalType": "address",
624
- "name": "requester",
625
- "type": "address"
626
- },
627
- {
628
- "internalType": "address",
629
- "name": "target",
630
- "type": "address"
631
- },
632
- {
633
- "internalType": "uint256",
634
- "name": "value",
635
- "type": "uint256"
636
- },
637
- {
638
- "internalType": "uint256",
639
- "name": "gasLimit",
640
- "type": "uint256"
641
- },
642
- {
643
- "internalType": "bytes32",
644
- "name": "operationType",
645
- "type": "bytes32"
646
- },
647
- {
648
- "internalType": "bytes4",
649
- "name": "executionSelector",
650
- "type": "bytes4"
651
- },
652
- {
653
- "internalType": "bytes",
654
- "name": "executionParams",
655
- "type": "bytes"
656
- }
657
- ],
658
- "internalType": "struct EngineBlox.TxParams",
659
- "name": "params",
660
- "type": "tuple"
661
- },
662
- {
663
- "internalType": "bytes32",
664
- "name": "message",
665
- "type": "bytes32"
666
- },
667
- {
668
- "internalType": "bytes",
669
- "name": "result",
670
- "type": "bytes"
671
- },
672
- {
673
- "components": [
674
- {
675
- "internalType": "address",
676
- "name": "recipient",
677
- "type": "address"
678
- },
679
- {
680
- "internalType": "uint256",
681
- "name": "nativeTokenAmount",
682
- "type": "uint256"
683
- },
684
- {
685
- "internalType": "address",
686
- "name": "erc20TokenAddress",
687
- "type": "address"
688
- },
689
- {
690
- "internalType": "uint256",
691
- "name": "erc20TokenAmount",
692
- "type": "uint256"
693
- }
694
- ],
695
- "internalType": "struct EngineBlox.PaymentDetails",
696
- "name": "payment",
697
- "type": "tuple"
698
- }
699
- ],
700
- "internalType": "struct EngineBlox.TxRecord",
701
- "name": "txRecord",
702
- "type": "tuple"
703
- },
704
- {
705
- "components": [
706
- {
707
- "internalType": "uint256",
708
- "name": "chainId",
709
- "type": "uint256"
710
- },
711
- {
712
- "internalType": "uint256",
713
- "name": "nonce",
714
- "type": "uint256"
715
- },
716
- {
717
- "internalType": "address",
718
- "name": "handlerContract",
719
- "type": "address"
720
- },
721
- {
722
- "internalType": "bytes4",
723
- "name": "handlerSelector",
724
- "type": "bytes4"
725
- },
726
- {
727
- "internalType": "enum EngineBlox.TxAction",
728
- "name": "action",
729
- "type": "uint8"
730
- },
731
- {
732
- "internalType": "uint256",
733
- "name": "deadline",
734
- "type": "uint256"
735
- },
736
- {
737
- "internalType": "uint256",
738
- "name": "maxGasPrice",
739
- "type": "uint256"
740
- },
741
- {
742
- "internalType": "address",
743
- "name": "signer",
744
- "type": "address"
745
- }
746
- ],
747
- "internalType": "struct EngineBlox.MetaTxParams",
748
- "name": "params",
749
- "type": "tuple"
750
- },
751
- {
752
- "internalType": "bytes32",
753
- "name": "message",
754
- "type": "bytes32"
755
- },
756
- {
757
- "internalType": "bytes",
758
- "name": "signature",
759
- "type": "bytes"
760
- },
761
- {
762
- "internalType": "bytes",
763
- "name": "data",
764
- "type": "bytes"
765
- }
766
- ],
767
- "internalType": "struct EngineBlox.MetaTransaction",
768
- "name": "",
769
- "type": "tuple"
770
- }
771
- ],
772
- "stateMutability": "view",
773
- "type": "function"
774
- },
775
- {
776
- "inputs": [
777
- {
778
- "internalType": "bytes32",
779
- "name": "roleHash",
780
- "type": "bytes32"
781
- }
782
- ],
783
- "name": "getActiveRolePermissions",
784
- "outputs": [
785
- {
786
- "components": [
787
- {
788
- "internalType": "bytes4",
789
- "name": "functionSelector",
790
- "type": "bytes4"
791
- },
792
- {
793
- "internalType": "uint16",
794
- "name": "grantedActionsBitmap",
795
- "type": "uint16"
796
- },
797
- {
798
- "internalType": "bytes4[]",
799
- "name": "handlerForSelectors",
800
- "type": "bytes4[]"
801
- }
802
- ],
803
- "internalType": "struct EngineBlox.FunctionPermission[]",
804
- "name": "",
805
- "type": "tuple[]"
806
- }
807
- ],
808
- "stateMutability": "view",
809
- "type": "function"
810
- },
811
- {
812
- "inputs": [],
813
- "name": "getBroadcasters",
814
- "outputs": [
815
- {
816
- "internalType": "address[]",
817
- "name": "",
818
- "type": "address[]"
819
- }
820
- ],
821
- "stateMutability": "view",
822
- "type": "function"
823
- },
824
- {
825
- "inputs": [],
826
- "name": "getPendingTransactions",
827
- "outputs": [
828
- {
829
- "internalType": "uint256[]",
830
- "name": "",
831
- "type": "uint256[]"
832
- }
833
- ],
834
- "stateMutability": "view",
835
- "type": "function"
836
- },
837
- {
838
- "inputs": [],
839
- "name": "getRecovery",
840
- "outputs": [
841
- {
1143
+ }
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"
1158
+ },
1159
+ {
1160
+ "components": [
1161
+ {
842
1162
  "internalType": "address",
843
- "name": "",
1163
+ "name": "recipient",
844
1164
  "type": "address"
845
- }
846
- ],
847
- "stateMutability": "view",
848
- "type": "function"
849
- },
850
- {
851
- "inputs": [
852
- {
853
- "internalType": "bytes32",
854
- "name": "roleHash",
855
- "type": "bytes32"
856
- }
857
- ],
858
- "name": "getRole",
859
- "outputs": [
860
- {
861
- "internalType": "string",
862
- "name": "roleName",
863
- "type": "string"
864
- },
865
- {
866
- "internalType": "bytes32",
867
- "name": "roleHashReturn",
868
- "type": "bytes32"
869
- },
870
- {
1165
+ },
1166
+ {
871
1167
  "internalType": "uint256",
872
- "name": "maxWallets",
1168
+ "name": "nativeTokenAmount",
873
1169
  "type": "uint256"
874
- },
875
- {
1170
+ },
1171
+ {
1172
+ "internalType": "address",
1173
+ "name": "erc20TokenAddress",
1174
+ "type": "address"
1175
+ },
1176
+ {
876
1177
  "internalType": "uint256",
877
- "name": "walletCount",
1178
+ "name": "erc20TokenAmount",
878
1179
  "type": "uint256"
879
- },
880
- {
881
- "internalType": "bool",
882
- "name": "isProtected",
883
- "type": "bool"
884
- }
1180
+ }
1181
+ ],
1182
+ "internalType": "struct EngineBlox.PaymentDetails",
1183
+ "name": "payment",
1184
+ "type": "tuple"
1185
+ }
885
1186
  ],
886
- "stateMutability": "view",
887
- "type": "function"
888
- },
889
- {
890
- "inputs": [
891
- {
1187
+ "internalType": "struct EngineBlox.TxRecord",
1188
+ "name": "",
1189
+ "type": "tuple"
1190
+ }
1191
+ ],
1192
+ "stateMutability": "view",
1193
+ "type": "function"
1194
+ },
1195
+ {
1196
+ "inputs": [
1197
+ {
1198
+ "internalType": "uint256",
1199
+ "name": "fromTxId",
1200
+ "type": "uint256"
1201
+ },
1202
+ {
1203
+ "internalType": "uint256",
1204
+ "name": "toTxId",
1205
+ "type": "uint256"
1206
+ }
1207
+ ],
1208
+ "name": "getTransactionHistory",
1209
+ "outputs": [
1210
+ {
1211
+ "components": [
1212
+ {
1213
+ "internalType": "uint256",
1214
+ "name": "txId",
1215
+ "type": "uint256"
1216
+ },
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "releaseTime",
1220
+ "type": "uint256"
1221
+ },
1222
+ {
1223
+ "internalType": "enum EngineBlox.TxStatus",
1224
+ "name": "status",
1225
+ "type": "uint8"
1226
+ },
1227
+ {
1228
+ "components": [
1229
+ {
892
1230
  "internalType": "address",
893
- "name": "signer",
1231
+ "name": "requester",
894
1232
  "type": "address"
895
- }
896
- ],
897
- "name": "getSignerNonce",
898
- "outputs": [
899
- {
1233
+ },
1234
+ {
1235
+ "internalType": "address",
1236
+ "name": "target",
1237
+ "type": "address"
1238
+ },
1239
+ {
900
1240
  "internalType": "uint256",
901
- "name": "",
1241
+ "name": "value",
902
1242
  "type": "uint256"
903
- }
904
- ],
905
- "stateMutability": "view",
906
- "type": "function"
907
- },
908
- {
909
- "inputs": [],
910
- "name": "getSupportedFunctions",
911
- "outputs": [
912
- {
913
- "internalType": "bytes4[]",
914
- "name": "",
915
- "type": "bytes4[]"
916
- }
917
- ],
918
- "stateMutability": "view",
919
- "type": "function"
920
- },
921
- {
922
- "inputs": [],
923
- "name": "getSupportedOperationTypes",
924
- "outputs": [
925
- {
926
- "internalType": "bytes32[]",
927
- "name": "",
928
- "type": "bytes32[]"
929
- }
930
- ],
931
- "stateMutability": "view",
932
- "type": "function"
933
- },
934
- {
935
- "inputs": [],
936
- "name": "getSupportedRoles",
937
- "outputs": [
938
- {
939
- "internalType": "bytes32[]",
940
- "name": "",
941
- "type": "bytes32[]"
942
- }
943
- ],
944
- "stateMutability": "view",
945
- "type": "function"
946
- },
947
- {
948
- "inputs": [],
949
- "name": "getTimeLockPeriodSec",
950
- "outputs": [
951
- {
1243
+ },
1244
+ {
952
1245
  "internalType": "uint256",
953
- "name": "",
1246
+ "name": "gasLimit",
954
1247
  "type": "uint256"
955
- }
956
- ],
957
- "stateMutability": "view",
958
- "type": "function"
959
- },
960
- {
961
- "inputs": [
962
- {
1248
+ },
1249
+ {
1250
+ "internalType": "bytes32",
1251
+ "name": "operationType",
1252
+ "type": "bytes32"
1253
+ },
1254
+ {
1255
+ "internalType": "bytes4",
1256
+ "name": "executionSelector",
1257
+ "type": "bytes4"
1258
+ },
1259
+ {
1260
+ "internalType": "bytes",
1261
+ "name": "executionParams",
1262
+ "type": "bytes"
1263
+ }
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"
1278
+ },
1279
+ {
1280
+ "components": [
1281
+ {
1282
+ "internalType": "address",
1283
+ "name": "recipient",
1284
+ "type": "address"
1285
+ },
1286
+ {
963
1287
  "internalType": "uint256",
964
- "name": "txId",
1288
+ "name": "nativeTokenAmount",
965
1289
  "type": "uint256"
966
- }
967
- ],
968
- "name": "getTransaction",
969
- "outputs": [
970
- {
971
- "components": [
972
- {
973
- "internalType": "uint256",
974
- "name": "txId",
975
- "type": "uint256"
976
- },
977
- {
978
- "internalType": "uint256",
979
- "name": "releaseTime",
980
- "type": "uint256"
981
- },
982
- {
983
- "internalType": "enum EngineBlox.TxStatus",
984
- "name": "status",
985
- "type": "uint8"
986
- },
987
- {
988
- "components": [
989
- {
990
- "internalType": "address",
991
- "name": "requester",
992
- "type": "address"
993
- },
994
- {
995
- "internalType": "address",
996
- "name": "target",
997
- "type": "address"
998
- },
999
- {
1000
- "internalType": "uint256",
1001
- "name": "value",
1002
- "type": "uint256"
1003
- },
1004
- {
1005
- "internalType": "uint256",
1006
- "name": "gasLimit",
1007
- "type": "uint256"
1008
- },
1009
- {
1010
- "internalType": "bytes32",
1011
- "name": "operationType",
1012
- "type": "bytes32"
1013
- },
1014
- {
1015
- "internalType": "bytes4",
1016
- "name": "executionSelector",
1017
- "type": "bytes4"
1018
- },
1019
- {
1020
- "internalType": "bytes",
1021
- "name": "executionParams",
1022
- "type": "bytes"
1023
- }
1024
- ],
1025
- "internalType": "struct EngineBlox.TxParams",
1026
- "name": "params",
1027
- "type": "tuple"
1028
- },
1029
- {
1030
- "internalType": "bytes32",
1031
- "name": "message",
1032
- "type": "bytes32"
1033
- },
1034
- {
1035
- "internalType": "bytes",
1036
- "name": "result",
1037
- "type": "bytes"
1038
- },
1039
- {
1040
- "components": [
1041
- {
1042
- "internalType": "address",
1043
- "name": "recipient",
1044
- "type": "address"
1045
- },
1046
- {
1047
- "internalType": "uint256",
1048
- "name": "nativeTokenAmount",
1049
- "type": "uint256"
1050
- },
1051
- {
1052
- "internalType": "address",
1053
- "name": "erc20TokenAddress",
1054
- "type": "address"
1055
- },
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "erc20TokenAmount",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "internalType": "struct EngineBlox.PaymentDetails",
1063
- "name": "payment",
1064
- "type": "tuple"
1065
- }
1066
- ],
1067
- "internalType": "struct EngineBlox.TxRecord",
1068
- "name": "",
1069
- "type": "tuple"
1070
- }
1290
+ },
1291
+ {
1292
+ "internalType": "address",
1293
+ "name": "erc20TokenAddress",
1294
+ "type": "address"
1295
+ },
1296
+ {
1297
+ "internalType": "uint256",
1298
+ "name": "erc20TokenAmount",
1299
+ "type": "uint256"
1300
+ }
1301
+ ],
1302
+ "internalType": "struct EngineBlox.PaymentDetails",
1303
+ "name": "payment",
1304
+ "type": "tuple"
1305
+ }
1071
1306
  ],
1072
- "stateMutability": "view",
1073
- "type": "function"
1074
- },
1075
- {
1076
- "inputs": [
1077
- {
1307
+ "internalType": "struct EngineBlox.TxRecord[]",
1308
+ "name": "",
1309
+ "type": "tuple[]"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "view",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [
1317
+ {
1318
+ "internalType": "address",
1319
+ "name": "wallet",
1320
+ "type": "address"
1321
+ }
1322
+ ],
1323
+ "name": "getWalletRoles",
1324
+ "outputs": [
1325
+ {
1326
+ "internalType": "bytes32[]",
1327
+ "name": "",
1328
+ "type": "bytes32[]"
1329
+ }
1330
+ ],
1331
+ "stateMutability": "view",
1332
+ "type": "function"
1333
+ },
1334
+ {
1335
+ "inputs": [
1336
+ {
1337
+ "internalType": "bytes32",
1338
+ "name": "roleHash",
1339
+ "type": "bytes32"
1340
+ },
1341
+ {
1342
+ "internalType": "address",
1343
+ "name": "wallet",
1344
+ "type": "address"
1345
+ }
1346
+ ],
1347
+ "name": "hasRole",
1348
+ "outputs": [
1349
+ {
1350
+ "internalType": "bool",
1351
+ "name": "",
1352
+ "type": "bool"
1353
+ }
1354
+ ],
1355
+ "stateMutability": "view",
1356
+ "type": "function"
1357
+ },
1358
+ {
1359
+ "inputs": [],
1360
+ "name": "initialized",
1361
+ "outputs": [
1362
+ {
1363
+ "internalType": "bool",
1364
+ "name": "",
1365
+ "type": "bool"
1366
+ }
1367
+ ],
1368
+ "stateMutability": "view",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [],
1373
+ "name": "owner",
1374
+ "outputs": [
1375
+ {
1376
+ "internalType": "address",
1377
+ "name": "",
1378
+ "type": "address"
1379
+ }
1380
+ ],
1381
+ "stateMutability": "view",
1382
+ "type": "function"
1383
+ },
1384
+ {
1385
+ "inputs": [
1386
+ {
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
+ },
1406
+ {
1407
+ "internalType": "address",
1408
+ "name": "eventForwarder",
1409
+ "type": "address"
1410
+ }
1411
+ ],
1412
+ "name": "initialize",
1413
+ "outputs": [],
1414
+ "stateMutability": "nonpayable",
1415
+ "type": "function"
1416
+ },
1417
+ {
1418
+ "inputs": [
1419
+ {
1420
+ "internalType": "bytes4",
1421
+ "name": "interfaceId",
1422
+ "type": "bytes4"
1423
+ }
1424
+ ],
1425
+ "name": "supportsInterface",
1426
+ "outputs": [
1427
+ {
1428
+ "internalType": "bool",
1429
+ "name": "",
1430
+ "type": "bool"
1431
+ }
1432
+ ],
1433
+ "stateMutability": "view",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [
1438
+ {
1439
+ "components": [
1440
+ {
1441
+ "components": [
1442
+ {
1078
1443
  "internalType": "uint256",
1079
- "name": "fromTxId",
1444
+ "name": "txId",
1080
1445
  "type": "uint256"
1081
- },
1082
- {
1446
+ },
1447
+ {
1083
1448
  "internalType": "uint256",
1084
- "name": "toTxId",
1449
+ "name": "releaseTime",
1085
1450
  "type": "uint256"
1086
- }
1087
- ],
1088
- "name": "getTransactionHistory",
1089
- "outputs": [
1090
- {
1451
+ },
1452
+ {
1453
+ "internalType": "enum EngineBlox.TxStatus",
1454
+ "name": "status",
1455
+ "type": "uint8"
1456
+ },
1457
+ {
1091
1458
  "components": [
1092
- {
1093
- "internalType": "uint256",
1094
- "name": "txId",
1095
- "type": "uint256"
1096
- },
1097
- {
1098
- "internalType": "uint256",
1099
- "name": "releaseTime",
1100
- "type": "uint256"
1101
- },
1102
- {
1103
- "internalType": "enum EngineBlox.TxStatus",
1104
- "name": "status",
1105
- "type": "uint8"
1106
- },
1107
- {
1108
- "components": [
1109
- {
1110
- "internalType": "address",
1111
- "name": "requester",
1112
- "type": "address"
1113
- },
1114
- {
1115
- "internalType": "address",
1116
- "name": "target",
1117
- "type": "address"
1118
- },
1119
- {
1120
- "internalType": "uint256",
1121
- "name": "value",
1122
- "type": "uint256"
1123
- },
1124
- {
1125
- "internalType": "uint256",
1126
- "name": "gasLimit",
1127
- "type": "uint256"
1128
- },
1129
- {
1130
- "internalType": "bytes32",
1131
- "name": "operationType",
1132
- "type": "bytes32"
1133
- },
1134
- {
1135
- "internalType": "bytes4",
1136
- "name": "executionSelector",
1137
- "type": "bytes4"
1138
- },
1139
- {
1140
- "internalType": "bytes",
1141
- "name": "executionParams",
1142
- "type": "bytes"
1143
- }
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"
1158
- },
1159
- {
1160
- "components": [
1161
- {
1162
- "internalType": "address",
1163
- "name": "recipient",
1164
- "type": "address"
1165
- },
1166
- {
1167
- "internalType": "uint256",
1168
- "name": "nativeTokenAmount",
1169
- "type": "uint256"
1170
- },
1171
- {
1172
- "internalType": "address",
1173
- "name": "erc20TokenAddress",
1174
- "type": "address"
1175
- },
1176
- {
1177
- "internalType": "uint256",
1178
- "name": "erc20TokenAmount",
1179
- "type": "uint256"
1180
- }
1181
- ],
1182
- "internalType": "struct EngineBlox.PaymentDetails",
1183
- "name": "payment",
1184
- "type": "tuple"
1185
- }
1459
+ {
1460
+ "internalType": "address",
1461
+ "name": "requester",
1462
+ "type": "address"
1463
+ },
1464
+ {
1465
+ "internalType": "address",
1466
+ "name": "target",
1467
+ "type": "address"
1468
+ },
1469
+ {
1470
+ "internalType": "uint256",
1471
+ "name": "value",
1472
+ "type": "uint256"
1473
+ },
1474
+ {
1475
+ "internalType": "uint256",
1476
+ "name": "gasLimit",
1477
+ "type": "uint256"
1478
+ },
1479
+ {
1480
+ "internalType": "bytes32",
1481
+ "name": "operationType",
1482
+ "type": "bytes32"
1483
+ },
1484
+ {
1485
+ "internalType": "bytes4",
1486
+ "name": "executionSelector",
1487
+ "type": "bytes4"
1488
+ },
1489
+ {
1490
+ "internalType": "bytes",
1491
+ "name": "executionParams",
1492
+ "type": "bytes"
1493
+ }
1186
1494
  ],
1187
- "internalType": "struct EngineBlox.TxRecord[]",
1188
- "name": "",
1189
- "type": "tuple[]"
1190
- }
1191
- ],
1192
- "stateMutability": "view",
1193
- "type": "function"
1194
- },
1195
- {
1196
- "inputs": [
1197
- {
1198
- "internalType": "address",
1199
- "name": "wallet",
1200
- "type": "address"
1201
- }
1202
- ],
1203
- "name": "getWalletRoles",
1204
- "outputs": [
1205
- {
1206
- "internalType": "bytes32[]",
1207
- "name": "",
1208
- "type": "bytes32[]"
1209
- }
1210
- ],
1211
- "stateMutability": "view",
1212
- "type": "function"
1213
- },
1214
- {
1215
- "inputs": [
1216
- {
1217
- "internalType": "bytes32",
1218
- "name": "roleHash",
1219
- "type": "bytes32"
1220
- }
1221
- ],
1222
- "name": "getWalletsInRole",
1223
- "outputs": [
1224
- {
1225
- "internalType": "address[]",
1226
- "name": "",
1227
- "type": "address[]"
1228
- }
1229
- ],
1230
- "stateMutability": "view",
1231
- "type": "function"
1232
- },
1233
- {
1234
- "inputs": [
1235
- {
1495
+ "internalType": "struct EngineBlox.TxParams",
1496
+ "name": "params",
1497
+ "type": "tuple"
1498
+ },
1499
+ {
1236
1500
  "internalType": "bytes32",
1237
- "name": "roleHash",
1501
+ "name": "message",
1238
1502
  "type": "bytes32"
1239
- },
1240
- {
1503
+ },
1504
+ {
1505
+ "internalType": "bytes",
1506
+ "name": "result",
1507
+ "type": "bytes"
1508
+ },
1509
+ {
1510
+ "components": [
1511
+ {
1512
+ "internalType": "address",
1513
+ "name": "recipient",
1514
+ "type": "address"
1515
+ },
1516
+ {
1517
+ "internalType": "uint256",
1518
+ "name": "nativeTokenAmount",
1519
+ "type": "uint256"
1520
+ },
1521
+ {
1522
+ "internalType": "address",
1523
+ "name": "erc20TokenAddress",
1524
+ "type": "address"
1525
+ },
1526
+ {
1527
+ "internalType": "uint256",
1528
+ "name": "erc20TokenAmount",
1529
+ "type": "uint256"
1530
+ }
1531
+ ],
1532
+ "internalType": "struct EngineBlox.PaymentDetails",
1533
+ "name": "payment",
1534
+ "type": "tuple"
1535
+ }
1536
+ ],
1537
+ "internalType": "struct EngineBlox.TxRecord",
1538
+ "name": "txRecord",
1539
+ "type": "tuple"
1540
+ },
1541
+ {
1542
+ "components": [
1543
+ {
1544
+ "internalType": "uint256",
1545
+ "name": "chainId",
1546
+ "type": "uint256"
1547
+ },
1548
+ {
1549
+ "internalType": "uint256",
1550
+ "name": "nonce",
1551
+ "type": "uint256"
1552
+ },
1553
+ {
1241
1554
  "internalType": "address",
1242
- "name": "wallet",
1555
+ "name": "handlerContract",
1243
1556
  "type": "address"
1244
- }
1245
- ],
1246
- "name": "hasRole",
1247
- "outputs": [
1248
- {
1249
- "internalType": "bool",
1250
- "name": "",
1251
- "type": "bool"
1252
- }
1253
- ],
1254
- "stateMutability": "view",
1255
- "type": "function"
1256
- },
1257
- {
1258
- "inputs": [],
1259
- "name": "initialized",
1260
- "outputs": [
1261
- {
1262
- "internalType": "bool",
1263
- "name": "",
1264
- "type": "bool"
1265
- }
1266
- ],
1267
- "stateMutability": "view",
1268
- "type": "function"
1269
- },
1270
- {
1271
- "inputs": [
1272
- {
1557
+ },
1558
+ {
1273
1559
  "internalType": "bytes4",
1274
- "name": "functionSelector",
1560
+ "name": "handlerSelector",
1275
1561
  "type": "bytes4"
1276
- },
1277
- {
1562
+ },
1563
+ {
1278
1564
  "internalType": "enum EngineBlox.TxAction",
1279
1565
  "name": "action",
1280
1566
  "type": "uint8"
1281
- }
1282
- ],
1283
- "name": "isActionSupportedByFunction",
1284
- "outputs": [
1285
- {
1286
- "internalType": "bool",
1287
- "name": "",
1288
- "type": "bool"
1289
- }
1290
- ],
1291
- "stateMutability": "view",
1292
- "type": "function"
1293
- },
1294
- {
1295
- "inputs": [],
1296
- "name": "owner",
1297
- "outputs": [
1298
- {
1299
- "internalType": "address",
1300
- "name": "",
1301
- "type": "address"
1302
- }
1303
- ],
1304
- "stateMutability": "view",
1305
- "type": "function"
1306
- },
1307
- {
1308
- "inputs": [
1309
- {
1310
- "internalType": "address",
1311
- "name": "initialOwner",
1312
- "type": "address"
1313
- },
1314
- {
1315
- "internalType": "address",
1316
- "name": "broadcaster",
1317
- "type": "address"
1318
- },
1319
- {
1320
- "internalType": "address",
1321
- "name": "recovery",
1322
- "type": "address"
1323
- },
1324
- {
1567
+ },
1568
+ {
1569
+ "internalType": "uint256",
1570
+ "name": "deadline",
1571
+ "type": "uint256"
1572
+ },
1573
+ {
1325
1574
  "internalType": "uint256",
1326
- "name": "timeLockPeriodSec",
1575
+ "name": "maxGasPrice",
1327
1576
  "type": "uint256"
1328
- },
1329
- {
1577
+ },
1578
+ {
1330
1579
  "internalType": "address",
1331
- "name": "eventForwarder",
1580
+ "name": "signer",
1332
1581
  "type": "address"
1333
- }
1334
- ],
1335
- "name": "initialize",
1336
- "outputs": [],
1337
- "stateMutability": "nonpayable",
1338
- "type": "function"
1339
- },
1340
- {
1341
- "inputs": [
1342
- {
1343
- "internalType": "bytes4",
1344
- "name": "interfaceId",
1345
- "type": "bytes4"
1346
- }
1347
- ],
1348
- "name": "supportsInterface",
1349
- "outputs": [
1350
- {
1351
- "internalType": "bool",
1352
- "name": "",
1353
- "type": "bool"
1354
- }
1355
- ],
1356
- "stateMutability": "view",
1357
- "type": "function"
1358
- },
1359
- {
1360
- "inputs": [
1361
- {
1362
- "components": [
1363
- {
1364
- "components": [
1365
- {
1366
- "internalType": "uint256",
1367
- "name": "txId",
1368
- "type": "uint256"
1369
- },
1370
- {
1371
- "internalType": "uint256",
1372
- "name": "releaseTime",
1373
- "type": "uint256"
1374
- },
1375
- {
1376
- "internalType": "enum EngineBlox.TxStatus",
1377
- "name": "status",
1378
- "type": "uint8"
1379
- },
1380
- {
1381
- "components": [
1382
- {
1383
- "internalType": "address",
1384
- "name": "requester",
1385
- "type": "address"
1386
- },
1387
- {
1388
- "internalType": "address",
1389
- "name": "target",
1390
- "type": "address"
1391
- },
1392
- {
1393
- "internalType": "uint256",
1394
- "name": "value",
1395
- "type": "uint256"
1396
- },
1397
- {
1398
- "internalType": "uint256",
1399
- "name": "gasLimit",
1400
- "type": "uint256"
1401
- },
1402
- {
1403
- "internalType": "bytes32",
1404
- "name": "operationType",
1405
- "type": "bytes32"
1406
- },
1407
- {
1408
- "internalType": "bytes4",
1409
- "name": "executionSelector",
1410
- "type": "bytes4"
1411
- },
1412
- {
1413
- "internalType": "bytes",
1414
- "name": "executionParams",
1415
- "type": "bytes"
1416
- }
1417
- ],
1418
- "internalType": "struct EngineBlox.TxParams",
1419
- "name": "params",
1420
- "type": "tuple"
1421
- },
1422
- {
1423
- "internalType": "bytes32",
1424
- "name": "message",
1425
- "type": "bytes32"
1426
- },
1427
- {
1428
- "internalType": "bytes",
1429
- "name": "result",
1430
- "type": "bytes"
1431
- },
1432
- {
1433
- "components": [
1434
- {
1435
- "internalType": "address",
1436
- "name": "recipient",
1437
- "type": "address"
1438
- },
1439
- {
1440
- "internalType": "uint256",
1441
- "name": "nativeTokenAmount",
1442
- "type": "uint256"
1443
- },
1444
- {
1445
- "internalType": "address",
1446
- "name": "erc20TokenAddress",
1447
- "type": "address"
1448
- },
1449
- {
1450
- "internalType": "uint256",
1451
- "name": "erc20TokenAmount",
1452
- "type": "uint256"
1453
- }
1454
- ],
1455
- "internalType": "struct EngineBlox.PaymentDetails",
1456
- "name": "payment",
1457
- "type": "tuple"
1458
- }
1459
- ],
1460
- "internalType": "struct EngineBlox.TxRecord",
1461
- "name": "txRecord",
1462
- "type": "tuple"
1463
- },
1464
- {
1465
- "components": [
1466
- {
1467
- "internalType": "uint256",
1468
- "name": "chainId",
1469
- "type": "uint256"
1470
- },
1471
- {
1472
- "internalType": "uint256",
1473
- "name": "nonce",
1474
- "type": "uint256"
1475
- },
1476
- {
1477
- "internalType": "address",
1478
- "name": "handlerContract",
1479
- "type": "address"
1480
- },
1481
- {
1482
- "internalType": "bytes4",
1483
- "name": "handlerSelector",
1484
- "type": "bytes4"
1485
- },
1486
- {
1487
- "internalType": "enum EngineBlox.TxAction",
1488
- "name": "action",
1489
- "type": "uint8"
1490
- },
1491
- {
1492
- "internalType": "uint256",
1493
- "name": "deadline",
1494
- "type": "uint256"
1495
- },
1496
- {
1497
- "internalType": "uint256",
1498
- "name": "maxGasPrice",
1499
- "type": "uint256"
1500
- },
1501
- {
1502
- "internalType": "address",
1503
- "name": "signer",
1504
- "type": "address"
1505
- }
1506
- ],
1507
- "internalType": "struct EngineBlox.MetaTxParams",
1508
- "name": "params",
1509
- "type": "tuple"
1510
- },
1511
- {
1512
- "internalType": "bytes32",
1513
- "name": "message",
1514
- "type": "bytes32"
1515
- },
1516
- {
1517
- "internalType": "bytes",
1518
- "name": "signature",
1519
- "type": "bytes"
1520
- },
1521
- {
1522
- "internalType": "bytes",
1523
- "name": "data",
1524
- "type": "bytes"
1525
- }
1526
- ],
1527
- "internalType": "struct EngineBlox.MetaTransaction",
1528
- "name": "metaTx",
1529
- "type": "tuple"
1530
- }
1531
- ],
1532
- "name": "roleConfigBatchRequestAndApprove",
1533
- "outputs": [
1534
- {
1535
- "components": [
1536
- {
1537
- "internalType": "uint256",
1538
- "name": "txId",
1539
- "type": "uint256"
1540
- },
1541
- {
1542
- "internalType": "uint256",
1543
- "name": "releaseTime",
1544
- "type": "uint256"
1545
- },
1546
- {
1547
- "internalType": "enum EngineBlox.TxStatus",
1548
- "name": "status",
1549
- "type": "uint8"
1550
- },
1551
- {
1552
- "components": [
1553
- {
1554
- "internalType": "address",
1555
- "name": "requester",
1556
- "type": "address"
1557
- },
1558
- {
1559
- "internalType": "address",
1560
- "name": "target",
1561
- "type": "address"
1562
- },
1563
- {
1564
- "internalType": "uint256",
1565
- "name": "value",
1566
- "type": "uint256"
1567
- },
1568
- {
1569
- "internalType": "uint256",
1570
- "name": "gasLimit",
1571
- "type": "uint256"
1572
- },
1573
- {
1574
- "internalType": "bytes32",
1575
- "name": "operationType",
1576
- "type": "bytes32"
1577
- },
1578
- {
1579
- "internalType": "bytes4",
1580
- "name": "executionSelector",
1581
- "type": "bytes4"
1582
- },
1583
- {
1584
- "internalType": "bytes",
1585
- "name": "executionParams",
1586
- "type": "bytes"
1587
- }
1588
- ],
1589
- "internalType": "struct EngineBlox.TxParams",
1590
- "name": "params",
1591
- "type": "tuple"
1592
- },
1593
- {
1594
- "internalType": "bytes32",
1595
- "name": "message",
1596
- "type": "bytes32"
1597
- },
1598
- {
1599
- "internalType": "bytes",
1600
- "name": "result",
1601
- "type": "bytes"
1602
- },
1603
- {
1604
- "components": [
1605
- {
1606
- "internalType": "address",
1607
- "name": "recipient",
1608
- "type": "address"
1609
- },
1610
- {
1611
- "internalType": "uint256",
1612
- "name": "nativeTokenAmount",
1613
- "type": "uint256"
1614
- },
1615
- {
1616
- "internalType": "address",
1617
- "name": "erc20TokenAddress",
1618
- "type": "address"
1619
- },
1620
- {
1621
- "internalType": "uint256",
1622
- "name": "erc20TokenAmount",
1623
- "type": "uint256"
1624
- }
1625
- ],
1626
- "internalType": "struct EngineBlox.PaymentDetails",
1627
- "name": "payment",
1628
- "type": "tuple"
1629
- }
1630
- ],
1631
- "internalType": "struct EngineBlox.TxRecord",
1632
- "name": "",
1633
- "type": "tuple"
1634
- }
1635
- ],
1636
- "stateMutability": "nonpayable",
1637
- "type": "function"
1638
- },
1639
- {
1640
- "inputs": [
1641
- {
1642
- "components": [
1643
- {
1644
- "internalType": "enum RuntimeRBAC.RoleConfigActionType",
1645
- "name": "actionType",
1646
- "type": "uint8"
1647
- },
1648
- {
1649
- "internalType": "bytes",
1650
- "name": "data",
1651
- "type": "bytes"
1652
- }
1653
- ],
1654
- "internalType": "struct RuntimeRBAC.RoleConfigAction[]",
1655
- "name": "actions",
1656
- "type": "tuple[]"
1657
- }
1658
- ],
1659
- "name": "executeRoleConfigBatch",
1660
- "outputs": [],
1661
- "stateMutability": "nonpayable",
1662
- "type": "function"
1663
- },
1664
- {
1665
- "inputs": [
1666
- {
1667
- "internalType": "bytes4",
1668
- "name": "functionSelector",
1669
- "type": "bytes4"
1670
- }
1582
+ }
1583
+ ],
1584
+ "internalType": "struct EngineBlox.MetaTxParams",
1585
+ "name": "params",
1586
+ "type": "tuple"
1587
+ },
1588
+ {
1589
+ "internalType": "bytes32",
1590
+ "name": "message",
1591
+ "type": "bytes32"
1592
+ },
1593
+ {
1594
+ "internalType": "bytes",
1595
+ "name": "signature",
1596
+ "type": "bytes"
1597
+ },
1598
+ {
1599
+ "internalType": "bytes",
1600
+ "name": "data",
1601
+ "type": "bytes"
1602
+ }
1671
1603
  ],
1672
- "name": "getFunctionSchema",
1673
- "outputs": [
1674
- {
1675
- "internalType": "string",
1676
- "name": "functionSignature",
1677
- "type": "string"
1678
- },
1679
- {
1680
- "internalType": "bytes4",
1681
- "name": "functionSelectorReturn",
1682
- "type": "bytes4"
1683
- },
1684
- {
1685
- "internalType": "bytes32",
1686
- "name": "operationType",
1687
- "type": "bytes32"
1688
- },
1689
- {
1690
- "internalType": "string",
1691
- "name": "operationName",
1692
- "type": "string"
1693
- },
1694
- {
1695
- "internalType": "enum EngineBlox.TxAction[]",
1696
- "name": "supportedActions",
1697
- "type": "uint8[]"
1698
- },
1699
- {
1700
- "internalType": "bool",
1701
- "name": "isProtected",
1702
- "type": "bool"
1703
- }
1604
+ "internalType": "struct EngineBlox.MetaTransaction",
1605
+ "name": "metaTx",
1606
+ "type": "tuple"
1607
+ }
1608
+ ],
1609
+ "name": "roleConfigBatchRequestAndApprove",
1610
+ "outputs": [
1611
+ {
1612
+ "internalType": "uint256",
1613
+ "name": "",
1614
+ "type": "uint256"
1615
+ }
1616
+ ],
1617
+ "stateMutability": "nonpayable",
1618
+ "type": "function"
1619
+ },
1620
+ {
1621
+ "inputs": [
1622
+ {
1623
+ "components": [
1624
+ {
1625
+ "internalType": "enum IRuntimeRBAC.RoleConfigActionType",
1626
+ "name": "actionType",
1627
+ "type": "uint8"
1628
+ },
1629
+ {
1630
+ "internalType": "bytes",
1631
+ "name": "data",
1632
+ "type": "bytes"
1633
+ }
1704
1634
  ],
1705
- "stateMutability": "view",
1706
- "type": "function"
1707
- }
1708
- ]
1635
+ "internalType": "struct IRuntimeRBAC.RoleConfigAction[]",
1636
+ "name": "actions",
1637
+ "type": "tuple[]"
1638
+ }
1639
+ ],
1640
+ "name": "executeRoleConfigBatch",
1641
+ "outputs": [],
1642
+ "stateMutability": "nonpayable",
1643
+ "type": "function"
1644
+ }
1645
+ ]