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

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