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

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