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