@bloxchain/sdk 1.0.0-alpha → 1.0.0-alpha.10

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