@bloxchain/sdk 1.0.0-alpha.7 → 1.0.0

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