@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
- {
3
- "inputs": [],
4
- "name": "InvalidInitialization",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [
9
- {
10
- "internalType": "uint256",
11
- "name": "from",
12
- "type": "uint256"
13
- },
14
- {
15
- "internalType": "uint256",
16
- "name": "to",
17
- "type": "uint256"
18
- }
19
- ],
20
- "name": "InvalidRange",
21
- "type": "error"
22
- },
23
- {
24
- "inputs": [
25
- {
26
- "internalType": "address",
27
- "name": "caller",
28
- "type": "address"
29
- }
30
- ],
31
- "name": "NoPermission",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [],
36
- "name": "NotInitializing",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "internalType": "uint256",
43
- "name": "rangeSize",
44
- "type": "uint256"
45
- },
46
- {
47
- "internalType": "uint256",
48
- "name": "maxRangeSize",
49
- "type": "uint256"
50
- }
51
- ],
52
- "name": "RangeSizeExceeded",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "ReentrancyGuardReentrantCall",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "bytes32",
64
- "name": "resourceId",
65
- "type": "bytes32"
66
- }
67
- ],
68
- "name": "ResourceNotFound",
69
- "type": "error"
70
- },
71
- {
72
- "anonymous": false,
73
- "inputs": [
74
- {
75
- "indexed": true,
76
- "internalType": "bytes4",
77
- "name": "functionSelector",
78
- "type": "bytes4"
79
- },
80
- {
81
- "indexed": false,
82
- "internalType": "bytes",
83
- "name": "data",
84
- "type": "bytes"
85
- }
86
- ],
87
- "name": "ComponentEvent",
88
- "type": "event"
89
- },
90
- {
91
- "anonymous": false,
92
- "inputs": [
93
- {
94
- "indexed": false,
95
- "internalType": "uint64",
96
- "name": "version",
97
- "type": "uint64"
98
- }
99
- ],
100
- "name": "Initialized",
101
- "type": "event"
102
- },
103
- {
104
- "inputs": [],
105
- "name": "owner",
106
- "outputs": [
107
- {
108
- "internalType": "address",
109
- "name": "",
110
- "type": "address"
111
- }
112
- ],
113
- "stateMutability": "view",
114
- "type": "function"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "getBroadcasters",
119
- "outputs": [
120
- {
121
- "internalType": "address[]",
122
- "name": "",
123
- "type": "address[]"
124
- }
125
- ],
126
- "stateMutability": "view",
127
- "type": "function"
128
- },
129
- {
130
- "inputs": [],
131
- "name": "getRecovery",
132
- "outputs": [
133
- {
134
- "internalType": "address",
135
- "name": "",
136
- "type": "address"
137
- }
138
- ],
139
- "stateMutability": "view",
140
- "type": "function"
141
- },
142
- {
143
- "inputs": [
144
- {
145
- "internalType": "bytes4",
146
- "name": "interfaceId",
147
- "type": "bytes4"
148
- }
149
- ],
150
- "name": "supportsInterface",
151
- "outputs": [
152
- {
153
- "internalType": "bool",
154
- "name": "",
155
- "type": "bool"
156
- }
157
- ],
158
- "stateMutability": "view",
159
- "type": "function"
160
- },
161
- {
162
- "inputs": [
163
- {
164
- "internalType": "address",
2
+ {
3
+ "type": "function",
4
+ "name": "createMetaTxParams",
5
+ "inputs": [
6
+ {
7
+ "name": "handlerContract",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ },
11
+ {
12
+ "name": "handlerSelector",
13
+ "type": "bytes4",
14
+ "internalType": "bytes4"
15
+ },
16
+ {
17
+ "name": "action",
18
+ "type": "uint8",
19
+ "internalType": "enum EngineBlox.TxAction"
20
+ },
21
+ {
22
+ "name": "deadline",
23
+ "type": "uint256",
24
+ "internalType": "uint256"
25
+ },
26
+ {
27
+ "name": "maxGasPrice",
28
+ "type": "uint256",
29
+ "internalType": "uint256"
30
+ },
31
+ {
32
+ "name": "signer",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ }
36
+ ],
37
+ "outputs": [
38
+ {
39
+ "name": "",
40
+ "type": "tuple",
41
+ "internalType": "struct EngineBlox.MetaTxParams",
42
+ "components": [
43
+ {
44
+ "name": "chainId",
45
+ "type": "uint256",
46
+ "internalType": "uint256"
47
+ },
48
+ {
49
+ "name": "nonce",
50
+ "type": "uint256",
51
+ "internalType": "uint256"
52
+ },
53
+ {
54
+ "name": "handlerContract",
55
+ "type": "address",
56
+ "internalType": "address"
57
+ },
58
+ {
59
+ "name": "handlerSelector",
60
+ "type": "bytes4",
61
+ "internalType": "bytes4"
62
+ },
63
+ {
64
+ "name": "action",
65
+ "type": "uint8",
66
+ "internalType": "enum EngineBlox.TxAction"
67
+ },
68
+ {
69
+ "name": "deadline",
70
+ "type": "uint256",
71
+ "internalType": "uint256"
72
+ },
73
+ {
74
+ "name": "maxGasPrice",
75
+ "type": "uint256",
76
+ "internalType": "uint256"
77
+ },
78
+ {
79
+ "name": "signer",
80
+ "type": "address",
81
+ "internalType": "address"
82
+ }
83
+ ]
84
+ }
85
+ ],
86
+ "stateMutability": "view"
87
+ },
88
+ {
89
+ "type": "function",
90
+ "name": "generateUnsignedMetaTransactionForExisting",
91
+ "inputs": [
92
+ {
93
+ "name": "txId",
94
+ "type": "uint256",
95
+ "internalType": "uint256"
96
+ },
97
+ {
98
+ "name": "metaTxParams",
99
+ "type": "tuple",
100
+ "internalType": "struct EngineBlox.MetaTxParams",
101
+ "components": [
102
+ {
103
+ "name": "chainId",
104
+ "type": "uint256",
105
+ "internalType": "uint256"
106
+ },
107
+ {
108
+ "name": "nonce",
109
+ "type": "uint256",
110
+ "internalType": "uint256"
111
+ },
112
+ {
113
+ "name": "handlerContract",
114
+ "type": "address",
115
+ "internalType": "address"
116
+ },
117
+ {
118
+ "name": "handlerSelector",
119
+ "type": "bytes4",
120
+ "internalType": "bytes4"
121
+ },
122
+ {
123
+ "name": "action",
124
+ "type": "uint8",
125
+ "internalType": "enum EngineBlox.TxAction"
126
+ },
127
+ {
128
+ "name": "deadline",
129
+ "type": "uint256",
130
+ "internalType": "uint256"
131
+ },
132
+ {
133
+ "name": "maxGasPrice",
134
+ "type": "uint256",
135
+ "internalType": "uint256"
136
+ },
137
+ {
138
+ "name": "signer",
139
+ "type": "address",
140
+ "internalType": "address"
141
+ }
142
+ ]
143
+ }
144
+ ],
145
+ "outputs": [
146
+ {
147
+ "name": "",
148
+ "type": "tuple",
149
+ "internalType": "struct EngineBlox.MetaTransaction",
150
+ "components": [
151
+ {
152
+ "name": "txRecord",
153
+ "type": "tuple",
154
+ "internalType": "struct EngineBlox.TxRecord",
155
+ "components": [
156
+ {
157
+ "name": "txId",
158
+ "type": "uint256",
159
+ "internalType": "uint256"
160
+ },
161
+ {
162
+ "name": "releaseTime",
163
+ "type": "uint256",
164
+ "internalType": "uint256"
165
+ },
166
+ {
167
+ "name": "status",
168
+ "type": "uint8",
169
+ "internalType": "enum EngineBlox.TxStatus"
170
+ },
171
+ {
172
+ "name": "params",
173
+ "type": "tuple",
174
+ "internalType": "struct EngineBlox.TxParams",
175
+ "components": [
176
+ {
177
+ "name": "requester",
178
+ "type": "address",
179
+ "internalType": "address"
180
+ },
181
+ {
182
+ "name": "target",
183
+ "type": "address",
184
+ "internalType": "address"
185
+ },
186
+ {
187
+ "name": "value",
188
+ "type": "uint256",
189
+ "internalType": "uint256"
190
+ },
191
+ {
192
+ "name": "gasLimit",
193
+ "type": "uint256",
194
+ "internalType": "uint256"
195
+ },
196
+ {
197
+ "name": "operationType",
198
+ "type": "bytes32",
199
+ "internalType": "bytes32"
200
+ },
201
+ {
202
+ "name": "executionSelector",
203
+ "type": "bytes4",
204
+ "internalType": "bytes4"
205
+ },
206
+ {
207
+ "name": "executionParams",
208
+ "type": "bytes",
209
+ "internalType": "bytes"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "name": "message",
215
+ "type": "bytes32",
216
+ "internalType": "bytes32"
217
+ },
218
+ {
219
+ "name": "resultHash",
220
+ "type": "bytes32",
221
+ "internalType": "bytes32"
222
+ },
223
+ {
224
+ "name": "payment",
225
+ "type": "tuple",
226
+ "internalType": "struct EngineBlox.PaymentDetails",
227
+ "components": [
228
+ {
229
+ "name": "recipient",
230
+ "type": "address",
231
+ "internalType": "address"
232
+ },
233
+ {
234
+ "name": "nativeTokenAmount",
235
+ "type": "uint256",
236
+ "internalType": "uint256"
237
+ },
238
+ {
239
+ "name": "erc20TokenAddress",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ },
243
+ {
244
+ "name": "erc20TokenAmount",
245
+ "type": "uint256",
246
+ "internalType": "uint256"
247
+ }
248
+ ]
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "params",
254
+ "type": "tuple",
255
+ "internalType": "struct EngineBlox.MetaTxParams",
256
+ "components": [
257
+ {
258
+ "name": "chainId",
259
+ "type": "uint256",
260
+ "internalType": "uint256"
261
+ },
262
+ {
263
+ "name": "nonce",
264
+ "type": "uint256",
265
+ "internalType": "uint256"
266
+ },
267
+ {
165
268
  "name": "handlerContract",
166
- "type": "address"
167
- },
168
- {
169
- "internalType": "bytes4",
269
+ "type": "address",
270
+ "internalType": "address"
271
+ },
272
+ {
170
273
  "name": "handlerSelector",
171
- "type": "bytes4"
172
- },
173
- {
174
- "internalType": "enum EngineBlox.TxAction",
274
+ "type": "bytes4",
275
+ "internalType": "bytes4"
276
+ },
277
+ {
175
278
  "name": "action",
176
- "type": "uint8"
177
- },
178
- {
179
- "internalType": "uint256",
279
+ "type": "uint8",
280
+ "internalType": "enum EngineBlox.TxAction"
281
+ },
282
+ {
180
283
  "name": "deadline",
181
- "type": "uint256"
182
- },
183
- {
184
- "internalType": "uint256",
284
+ "type": "uint256",
285
+ "internalType": "uint256"
286
+ },
287
+ {
185
288
  "name": "maxGasPrice",
186
- "type": "uint256"
187
- },
188
- {
189
- "internalType": "address",
289
+ "type": "uint256",
290
+ "internalType": "uint256"
291
+ },
292
+ {
190
293
  "name": "signer",
191
- "type": "address"
192
- }
193
- ],
194
- "name": "createMetaTxParams",
195
- "outputs": [
196
- {
294
+ "type": "address",
295
+ "internalType": "address"
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "name": "message",
301
+ "type": "bytes32",
302
+ "internalType": "bytes32"
303
+ },
304
+ {
305
+ "name": "signature",
306
+ "type": "bytes",
307
+ "internalType": "bytes"
308
+ },
309
+ {
310
+ "name": "data",
311
+ "type": "bytes",
312
+ "internalType": "bytes"
313
+ }
314
+ ]
315
+ }
316
+ ],
317
+ "stateMutability": "view"
318
+ },
319
+ {
320
+ "type": "function",
321
+ "name": "generateUnsignedMetaTransactionForNew",
322
+ "inputs": [
323
+ {
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"
347
+ },
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",
362
+ "components": [
363
+ {
364
+ "name": "chainId",
365
+ "type": "uint256",
366
+ "internalType": "uint256"
367
+ },
368
+ {
369
+ "name": "nonce",
370
+ "type": "uint256",
371
+ "internalType": "uint256"
372
+ },
373
+ {
374
+ "name": "handlerContract",
375
+ "type": "address",
376
+ "internalType": "address"
377
+ },
378
+ {
379
+ "name": "handlerSelector",
380
+ "type": "bytes4",
381
+ "internalType": "bytes4"
382
+ },
383
+ {
384
+ "name": "action",
385
+ "type": "uint8",
386
+ "internalType": "enum EngineBlox.TxAction"
387
+ },
388
+ {
389
+ "name": "deadline",
390
+ "type": "uint256",
391
+ "internalType": "uint256"
392
+ },
393
+ {
394
+ "name": "maxGasPrice",
395
+ "type": "uint256",
396
+ "internalType": "uint256"
397
+ },
398
+ {
399
+ "name": "signer",
400
+ "type": "address",
401
+ "internalType": "address"
402
+ }
403
+ ]
404
+ }
405
+ ],
406
+ "outputs": [
407
+ {
408
+ "name": "",
409
+ "type": "tuple",
410
+ "internalType": "struct EngineBlox.MetaTransaction",
411
+ "components": [
412
+ {
413
+ "name": "txRecord",
414
+ "type": "tuple",
415
+ "internalType": "struct EngineBlox.TxRecord",
416
+ "components": [
417
+ {
418
+ "name": "txId",
419
+ "type": "uint256",
420
+ "internalType": "uint256"
421
+ },
422
+ {
423
+ "name": "releaseTime",
424
+ "type": "uint256",
425
+ "internalType": "uint256"
426
+ },
427
+ {
428
+ "name": "status",
429
+ "type": "uint8",
430
+ "internalType": "enum EngineBlox.TxStatus"
431
+ },
432
+ {
433
+ "name": "params",
434
+ "type": "tuple",
435
+ "internalType": "struct EngineBlox.TxParams",
197
436
  "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
- }
243
- ],
244
- "stateMutability": "view",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- {
250
- "internalType": "address",
437
+ {
438
+ "name": "requester",
439
+ "type": "address",
440
+ "internalType": "address"
441
+ },
442
+ {
443
+ "name": "target",
444
+ "type": "address",
445
+ "internalType": "address"
446
+ },
447
+ {
448
+ "name": "value",
449
+ "type": "uint256",
450
+ "internalType": "uint256"
451
+ },
452
+ {
453
+ "name": "gasLimit",
454
+ "type": "uint256",
455
+ "internalType": "uint256"
456
+ },
457
+ {
458
+ "name": "operationType",
459
+ "type": "bytes32",
460
+ "internalType": "bytes32"
461
+ },
462
+ {
463
+ "name": "executionSelector",
464
+ "type": "bytes4",
465
+ "internalType": "bytes4"
466
+ },
467
+ {
468
+ "name": "executionParams",
469
+ "type": "bytes",
470
+ "internalType": "bytes"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "name": "message",
476
+ "type": "bytes32",
477
+ "internalType": "bytes32"
478
+ },
479
+ {
480
+ "name": "resultHash",
481
+ "type": "bytes32",
482
+ "internalType": "bytes32"
483
+ },
484
+ {
485
+ "name": "payment",
486
+ "type": "tuple",
487
+ "internalType": "struct EngineBlox.PaymentDetails",
488
+ "components": [
489
+ {
490
+ "name": "recipient",
491
+ "type": "address",
492
+ "internalType": "address"
493
+ },
494
+ {
495
+ "name": "nativeTokenAmount",
496
+ "type": "uint256",
497
+ "internalType": "uint256"
498
+ },
499
+ {
500
+ "name": "erc20TokenAddress",
501
+ "type": "address",
502
+ "internalType": "address"
503
+ },
504
+ {
505
+ "name": "erc20TokenAmount",
506
+ "type": "uint256",
507
+ "internalType": "uint256"
508
+ }
509
+ ]
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "name": "params",
515
+ "type": "tuple",
516
+ "internalType": "struct EngineBlox.MetaTxParams",
517
+ "components": [
518
+ {
519
+ "name": "chainId",
520
+ "type": "uint256",
521
+ "internalType": "uint256"
522
+ },
523
+ {
524
+ "name": "nonce",
525
+ "type": "uint256",
526
+ "internalType": "uint256"
527
+ },
528
+ {
529
+ "name": "handlerContract",
530
+ "type": "address",
531
+ "internalType": "address"
532
+ },
533
+ {
534
+ "name": "handlerSelector",
535
+ "type": "bytes4",
536
+ "internalType": "bytes4"
537
+ },
538
+ {
539
+ "name": "action",
540
+ "type": "uint8",
541
+ "internalType": "enum EngineBlox.TxAction"
542
+ },
543
+ {
544
+ "name": "deadline",
545
+ "type": "uint256",
546
+ "internalType": "uint256"
547
+ },
548
+ {
549
+ "name": "maxGasPrice",
550
+ "type": "uint256",
551
+ "internalType": "uint256"
552
+ },
553
+ {
554
+ "name": "signer",
555
+ "type": "address",
556
+ "internalType": "address"
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "name": "message",
562
+ "type": "bytes32",
563
+ "internalType": "bytes32"
564
+ },
565
+ {
566
+ "name": "signature",
567
+ "type": "bytes",
568
+ "internalType": "bytes"
569
+ },
570
+ {
571
+ "name": "data",
572
+ "type": "bytes",
573
+ "internalType": "bytes"
574
+ }
575
+ ]
576
+ }
577
+ ],
578
+ "stateMutability": "view"
579
+ },
580
+ {
581
+ "type": "function",
582
+ "name": "getActiveRolePermissions",
583
+ "inputs": [
584
+ {
585
+ "name": "roleHash",
586
+ "type": "bytes32",
587
+ "internalType": "bytes32"
588
+ }
589
+ ],
590
+ "outputs": [
591
+ {
592
+ "name": "",
593
+ "type": "tuple[]",
594
+ "internalType": "struct EngineBlox.FunctionPermission[]",
595
+ "components": [
596
+ {
597
+ "name": "functionSelector",
598
+ "type": "bytes4",
599
+ "internalType": "bytes4"
600
+ },
601
+ {
602
+ "name": "grantedActionsBitmap",
603
+ "type": "uint16",
604
+ "internalType": "uint16"
605
+ },
606
+ {
607
+ "name": "handlerForSelectors",
608
+ "type": "bytes4[]",
609
+ "internalType": "bytes4[]"
610
+ }
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
+ {
641
+ "name": "",
642
+ "type": "address[]",
643
+ "internalType": "address[]"
644
+ }
645
+ ],
646
+ "stateMutability": "view"
647
+ },
648
+ {
649
+ "type": "function",
650
+ "name": "getFunctionSchema",
651
+ "inputs": [
652
+ {
653
+ "name": "functionSelector",
654
+ "type": "bytes4",
655
+ "internalType": "bytes4"
656
+ }
657
+ ],
658
+ "outputs": [
659
+ {
660
+ "name": "",
661
+ "type": "tuple",
662
+ "internalType": "struct EngineBlox.FunctionSchema",
663
+ "components": [
664
+ {
665
+ "name": "functionSignature",
666
+ "type": "string",
667
+ "internalType": "string"
668
+ },
669
+ {
670
+ "name": "functionSelector",
671
+ "type": "bytes4",
672
+ "internalType": "bytes4"
673
+ },
674
+ {
675
+ "name": "operationType",
676
+ "type": "bytes32",
677
+ "internalType": "bytes32"
678
+ },
679
+ {
680
+ "name": "operationName",
681
+ "type": "string",
682
+ "internalType": "string"
683
+ },
684
+ {
685
+ "name": "supportedActionsBitmap",
686
+ "type": "uint16",
687
+ "internalType": "uint16"
688
+ },
689
+ {
690
+ "name": "enforceHandlerRelations",
691
+ "type": "bool",
692
+ "internalType": "bool"
693
+ },
694
+ {
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[]"
708
+ }
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
+ {
726
+ "name": "",
727
+ "type": "address[]",
728
+ "internalType": "address[]"
729
+ }
730
+ ],
731
+ "stateMutability": "view"
732
+ },
733
+ {
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",
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": [],
769
+ "outputs": [
770
+ {
771
+ "name": "",
772
+ "type": "address",
773
+ "internalType": "address"
774
+ }
775
+ ],
776
+ "stateMutability": "view"
777
+ },
778
+ {
779
+ "type": "function",
780
+ "name": "getRole",
781
+ "inputs": [
782
+ {
783
+ "name": "roleHash",
784
+ "type": "bytes32",
785
+ "internalType": "bytes32"
786
+ }
787
+ ],
788
+ "outputs": [
789
+ {
790
+ "name": "roleName",
791
+ "type": "string",
792
+ "internalType": "string"
793
+ },
794
+ {
795
+ "name": "hash",
796
+ "type": "bytes32",
797
+ "internalType": "bytes32"
798
+ },
799
+ {
800
+ "name": "maxWallets",
801
+ "type": "uint256",
802
+ "internalType": "uint256"
803
+ },
804
+ {
805
+ "name": "walletCount",
806
+ "type": "uint256",
807
+ "internalType": "uint256"
808
+ },
809
+ {
810
+ "name": "isProtected",
811
+ "type": "bool",
812
+ "internalType": "bool"
813
+ }
814
+ ],
815
+ "stateMutability": "view"
816
+ },
817
+ {
818
+ "type": "function",
819
+ "name": "getSignerNonce",
820
+ "inputs": [
821
+ {
822
+ "name": "signer",
823
+ "type": "address",
824
+ "internalType": "address"
825
+ }
826
+ ],
827
+ "outputs": [
828
+ {
829
+ "name": "",
830
+ "type": "uint256",
831
+ "internalType": "uint256"
832
+ }
833
+ ],
834
+ "stateMutability": "view"
835
+ },
836
+ {
837
+ "type": "function",
838
+ "name": "getSupportedFunctions",
839
+ "inputs": [],
840
+ "outputs": [
841
+ {
842
+ "name": "",
843
+ "type": "bytes4[]",
844
+ "internalType": "bytes4[]"
845
+ }
846
+ ],
847
+ "stateMutability": "view"
848
+ },
849
+ {
850
+ "type": "function",
851
+ "name": "getSupportedOperationTypes",
852
+ "inputs": [],
853
+ "outputs": [
854
+ {
855
+ "name": "",
856
+ "type": "bytes32[]",
857
+ "internalType": "bytes32[]"
858
+ }
859
+ ],
860
+ "stateMutability": "view"
861
+ },
862
+ {
863
+ "type": "function",
864
+ "name": "getSupportedRoles",
865
+ "inputs": [],
866
+ "outputs": [
867
+ {
868
+ "name": "",
869
+ "type": "bytes32[]",
870
+ "internalType": "bytes32[]"
871
+ }
872
+ ],
873
+ "stateMutability": "view"
874
+ },
875
+ {
876
+ "type": "function",
877
+ "name": "getTimeLockPeriodSec",
878
+ "inputs": [],
879
+ "outputs": [
880
+ {
881
+ "name": "",
882
+ "type": "uint256",
883
+ "internalType": "uint256"
884
+ }
885
+ ],
886
+ "stateMutability": "view"
887
+ },
888
+ {
889
+ "type": "function",
890
+ "name": "getTransaction",
891
+ "inputs": [
892
+ {
893
+ "name": "txId",
894
+ "type": "uint256",
895
+ "internalType": "uint256"
896
+ }
897
+ ],
898
+ "outputs": [
899
+ {
900
+ "name": "",
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
+ {
251
925
  "name": "requester",
252
- "type": "address"
253
- },
254
- {
255
- "internalType": "address",
926
+ "type": "address",
927
+ "internalType": "address"
928
+ },
929
+ {
256
930
  "name": "target",
257
- "type": "address"
258
- },
259
- {
260
- "internalType": "uint256",
931
+ "type": "address",
932
+ "internalType": "address"
933
+ },
934
+ {
261
935
  "name": "value",
262
- "type": "uint256"
263
- },
264
- {
265
- "internalType": "uint256",
936
+ "type": "uint256",
937
+ "internalType": "uint256"
938
+ },
939
+ {
266
940
  "name": "gasLimit",
267
- "type": "uint256"
268
- },
269
- {
270
- "internalType": "bytes32",
941
+ "type": "uint256",
942
+ "internalType": "uint256"
943
+ },
944
+ {
271
945
  "name": "operationType",
272
- "type": "bytes32"
273
- },
274
- {
275
- "internalType": "bytes4",
946
+ "type": "bytes32",
947
+ "internalType": "bytes32"
948
+ },
949
+ {
276
950
  "name": "executionSelector",
277
- "type": "bytes4"
278
- },
279
- {
280
- "internalType": "bytes",
951
+ "type": "bytes4",
952
+ "internalType": "bytes4"
953
+ },
954
+ {
281
955
  "name": "executionParams",
282
- "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
- {
1008
- "internalType": "uint256",
1009
- "name": "maxWallets",
1010
- "type": "uint256"
1011
- },
1012
- {
1013
- "internalType": "uint256",
1014
- "name": "walletCount",
1015
- "type": "uint256"
1016
- },
1017
- {
1018
- "internalType": "bool",
1019
- "name": "isProtected",
1020
- "type": "bool"
1021
- }
1022
- ],
1023
- "stateMutability": "view",
1024
- "type": "function"
1025
- },
1026
- {
1027
- "inputs": [
1028
- {
1029
- "internalType": "bytes32",
1030
- "name": "roleHash",
1031
- "type": "bytes32"
1032
- },
1033
- {
1034
- "internalType": "address",
1035
- "name": "wallet",
1036
- "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
- {
1053
- "internalType": "address",
1054
- "name": "wallet",
1055
- "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
- {
1072
- "internalType": "bytes32",
1073
- "name": "roleHash",
1074
- "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
- {
1110
- "internalType": "bytes4",
1111
- "name": "functionSelector",
1112
- "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
- {
1170
- "internalType": "address",
1171
- "name": "signer",
1172
- "type": "address"
1173
- }
1174
- ],
1175
- "name": "getSignerNonce",
1176
- "outputs": [
1177
- {
1178
- "internalType": "uint256",
1179
- "name": "",
1180
- "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
- {
1230
- "internalType": "uint256",
1231
- "name": "",
1232
- "type": "uint256"
1233
- }
1234
- ],
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
- }
1247
- ],
1248
- "stateMutability": "view",
1249
- "type": "function"
1250
- }
1251
- ]
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
+ ]
999
+ }
1000
+ ],
1001
+ "stateMutability": "view"
1002
+ },
1003
+ {
1004
+ "type": "function",
1005
+ "name": "getTransactionHistory",
1006
+ "inputs": [
1007
+ {
1008
+ "name": "fromTxId",
1009
+ "type": "uint256",
1010
+ "internalType": "uint256"
1011
+ },
1012
+ {
1013
+ "name": "toTxId",
1014
+ "type": "uint256",
1015
+ "internalType": "uint256"
1016
+ }
1017
+ ],
1018
+ "outputs": [
1019
+ {
1020
+ "name": "",
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
+ ]
1119
+ }
1120
+ ],
1121
+ "stateMutability": "view"
1122
+ },
1123
+ {
1124
+ "type": "function",
1125
+ "name": "getWalletRoles",
1126
+ "inputs": [
1127
+ {
1128
+ "name": "wallet",
1129
+ "type": "address",
1130
+ "internalType": "address"
1131
+ }
1132
+ ],
1133
+ "outputs": [
1134
+ {
1135
+ "name": "",
1136
+ "type": "bytes32[]",
1137
+ "internalType": "bytes32[]"
1138
+ }
1139
+ ],
1140
+ "stateMutability": "view"
1141
+ },
1142
+ {
1143
+ "type": "function",
1144
+ "name": "hasRole",
1145
+ "inputs": [
1146
+ {
1147
+ "name": "roleHash",
1148
+ "type": "bytes32",
1149
+ "internalType": "bytes32"
1150
+ },
1151
+ {
1152
+ "name": "wallet",
1153
+ "type": "address",
1154
+ "internalType": "address"
1155
+ }
1156
+ ],
1157
+ "outputs": [
1158
+ {
1159
+ "name": "",
1160
+ "type": "bool",
1161
+ "internalType": "bool"
1162
+ }
1163
+ ],
1164
+ "stateMutability": "view"
1165
+ },
1166
+ {
1167
+ "type": "function",
1168
+ "name": "initialized",
1169
+ "inputs": [],
1170
+ "outputs": [
1171
+ {
1172
+ "name": "",
1173
+ "type": "bool",
1174
+ "internalType": "bool"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view"
1178
+ },
1179
+ {
1180
+ "type": "function",
1181
+ "name": "owner",
1182
+ "inputs": [],
1183
+ "outputs": [
1184
+ {
1185
+ "name": "",
1186
+ "type": "address",
1187
+ "internalType": "address"
1188
+ }
1189
+ ],
1190
+ "stateMutability": "view"
1191
+ },
1192
+ {
1193
+ "type": "function",
1194
+ "name": "supportsInterface",
1195
+ "inputs": [
1196
+ {
1197
+ "name": "interfaceId",
1198
+ "type": "bytes4",
1199
+ "internalType": "bytes4"
1200
+ }
1201
+ ],
1202
+ "outputs": [
1203
+ {
1204
+ "name": "",
1205
+ "type": "bool",
1206
+ "internalType": "bool"
1207
+ }
1208
+ ],
1209
+ "stateMutability": "view"
1210
+ },
1211
+ {
1212
+ "type": "event",
1213
+ "name": "ComponentEvent",
1214
+ "inputs": [
1215
+ {
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"
1226
+ }
1227
+ ],
1228
+ "anonymous": false
1229
+ },
1230
+ {
1231
+ "type": "event",
1232
+ "name": "Initialized",
1233
+ "inputs": [
1234
+ {
1235
+ "name": "version",
1236
+ "type": "uint64",
1237
+ "indexed": false,
1238
+ "internalType": "uint64"
1239
+ }
1240
+ ],
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
+ ]
1295
+ }
1296
+ ]