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