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