@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,380 +1,416 @@
1
1
  [
2
2
  {
3
- "inputs": [],
3
+ "type": "function",
4
4
  "name": "APPROVE_TIMELOCK_EXECUTION_META_SELECTOR",
5
+ "inputs": [],
5
6
  "outputs": [
6
7
  {
7
- "internalType": "bytes4",
8
8
  "name": "",
9
- "type": "bytes4"
9
+ "type": "bytes4",
10
+ "internalType": "bytes4"
10
11
  }
11
12
  ],
12
- "stateMutability": "view",
13
- "type": "function"
13
+ "stateMutability": "view"
14
14
  },
15
15
  {
16
- "inputs": [],
16
+ "type": "function",
17
17
  "name": "APPROVE_TIMELOCK_EXECUTION_SELECTOR",
18
+ "inputs": [],
18
19
  "outputs": [
19
20
  {
20
- "internalType": "bytes4",
21
21
  "name": "",
22
- "type": "bytes4"
22
+ "type": "bytes4",
23
+ "internalType": "bytes4"
23
24
  }
24
25
  ],
25
- "stateMutability": "view",
26
- "type": "function"
26
+ "stateMutability": "view"
27
27
  },
28
28
  {
29
- "inputs": [],
29
+ "type": "function",
30
30
  "name": "CANCEL_TIMELOCK_EXECUTION_META_SELECTOR",
31
+ "inputs": [],
31
32
  "outputs": [
32
33
  {
33
- "internalType": "bytes4",
34
34
  "name": "",
35
- "type": "bytes4"
35
+ "type": "bytes4",
36
+ "internalType": "bytes4"
36
37
  }
37
38
  ],
38
- "stateMutability": "view",
39
- "type": "function"
39
+ "stateMutability": "view"
40
40
  },
41
41
  {
42
- "inputs": [],
42
+ "type": "function",
43
43
  "name": "CANCEL_TIMELOCK_EXECUTION_SELECTOR",
44
+ "inputs": [],
44
45
  "outputs": [
45
46
  {
46
- "internalType": "bytes4",
47
47
  "name": "",
48
- "type": "bytes4"
48
+ "type": "bytes4",
49
+ "internalType": "bytes4"
49
50
  }
50
51
  ],
51
- "stateMutability": "view",
52
- "type": "function"
52
+ "stateMutability": "view"
53
53
  },
54
54
  {
55
+ "type": "function",
56
+ "name": "CONTROLLER_CONFIG_BATCH",
55
57
  "inputs": [],
56
- "name": "CONTROLLER_OPERATION",
57
58
  "outputs": [
58
59
  {
59
- "internalType": "bytes32",
60
60
  "name": "",
61
- "type": "bytes32"
61
+ "type": "bytes32",
62
+ "internalType": "bytes32"
62
63
  }
63
64
  ],
64
- "stateMutability": "view",
65
- "type": "function"
65
+ "stateMutability": "view"
66
66
  },
67
67
  {
68
+ "type": "function",
69
+ "name": "CONTROLLER_OPERATION",
68
70
  "inputs": [],
69
- "name": "EXECUTE_WITH_TIMELOCK_SELECTOR",
70
71
  "outputs": [
71
72
  {
72
- "internalType": "bytes4",
73
73
  "name": "",
74
- "type": "bytes4"
74
+ "type": "bytes32",
75
+ "internalType": "bytes32"
75
76
  }
76
77
  ],
77
- "stateMutability": "view",
78
- "type": "function"
78
+ "stateMutability": "view"
79
79
  },
80
80
  {
81
+ "type": "function",
82
+ "name": "EXECUTE_WITH_PAYMENT_SELECTOR",
81
83
  "inputs": [],
82
- "name": "GUARD_CONFIG_BATCH_EXECUTE_SELECTOR",
83
84
  "outputs": [
84
85
  {
85
- "internalType": "bytes4",
86
86
  "name": "",
87
- "type": "bytes4"
87
+ "type": "bytes4",
88
+ "internalType": "bytes4"
88
89
  }
89
90
  ],
90
- "stateMutability": "view",
91
- "type": "function"
91
+ "stateMutability": "view"
92
92
  },
93
93
  {
94
+ "type": "function",
95
+ "name": "EXECUTE_WITH_TIMELOCK_SELECTOR",
94
96
  "inputs": [],
95
- "name": "GUARD_CONFIG_BATCH_META_SELECTOR",
96
97
  "outputs": [
97
98
  {
98
- "internalType": "bytes4",
99
99
  "name": "",
100
- "type": "bytes4"
100
+ "type": "bytes4",
101
+ "internalType": "bytes4"
101
102
  }
102
103
  ],
103
- "stateMutability": "view",
104
- "type": "function"
104
+ "stateMutability": "view"
105
105
  },
106
106
  {
107
+ "type": "function",
108
+ "name": "GUARD_CONFIG_BATCH_EXECUTE_SELECTOR",
107
109
  "inputs": [],
108
- "name": "REQUEST_AND_APPROVE_EXECUTION_SELECTOR",
109
110
  "outputs": [
110
111
  {
111
- "internalType": "bytes4",
112
112
  "name": "",
113
- "type": "bytes4"
113
+ "type": "bytes4",
114
+ "internalType": "bytes4"
114
115
  }
115
116
  ],
116
- "stateMutability": "view",
117
- "type": "function"
117
+ "stateMutability": "view"
118
118
  },
119
119
  {
120
+ "type": "function",
121
+ "name": "GUARD_CONFIG_BATCH_META_SELECTOR",
120
122
  "inputs": [],
121
- "name": "getFunctionSchemas",
122
123
  "outputs": [
123
124
  {
124
- "components": [
125
- {
126
- "internalType": "string",
127
- "name": "functionSignature",
128
- "type": "string"
129
- },
130
- {
131
- "internalType": "bytes4",
132
- "name": "functionSelector",
133
- "type": "bytes4"
134
- },
135
- {
136
- "internalType": "bytes32",
137
- "name": "operationType",
138
- "type": "bytes32"
139
- },
140
- {
141
- "internalType": "string",
142
- "name": "operationName",
143
- "type": "string"
144
- },
145
- {
146
- "internalType": "uint16",
147
- "name": "supportedActionsBitmap",
148
- "type": "uint16"
149
- },
150
- {
151
- "internalType": "bool",
152
- "name": "isProtected",
153
- "type": "bool"
154
- },
155
- {
156
- "internalType": "bytes4[]",
157
- "name": "handlerForSelectors",
158
- "type": "bytes4[]"
159
- }
160
- ],
161
- "internalType": "struct EngineBlox.FunctionSchema[]",
162
125
  "name": "",
163
- "type": "tuple[]"
126
+ "type": "bytes4",
127
+ "internalType": "bytes4"
164
128
  }
165
129
  ],
166
- "stateMutability": "pure",
167
- "type": "function"
130
+ "stateMutability": "view"
168
131
  },
169
132
  {
133
+ "type": "function",
134
+ "name": "REQUEST_AND_APPROVE_EXECUTION_SELECTOR",
170
135
  "inputs": [],
171
- "name": "getRolePermissions",
172
136
  "outputs": [
173
137
  {
174
- "components": [
175
- {
176
- "internalType": "bytes32[]",
177
- "name": "roleHashes",
178
- "type": "bytes32[]"
179
- },
180
- {
181
- "components": [
182
- {
183
- "internalType": "bytes4",
184
- "name": "functionSelector",
185
- "type": "bytes4"
186
- },
187
- {
188
- "internalType": "uint16",
189
- "name": "grantedActionsBitmap",
190
- "type": "uint16"
191
- },
192
- {
193
- "internalType": "bytes4[]",
194
- "name": "handlerForSelectors",
195
- "type": "bytes4[]"
196
- }
197
- ],
198
- "internalType": "struct EngineBlox.FunctionPermission[]",
199
- "name": "functionPermissions",
200
- "type": "tuple[]"
201
- }
202
- ],
203
- "internalType": "struct IDefinition.RolePermission",
204
138
  "name": "",
205
- "type": "tuple"
139
+ "type": "bytes4",
140
+ "internalType": "bytes4"
206
141
  }
207
142
  ],
208
- "stateMutability": "pure",
209
- "type": "function"
143
+ "stateMutability": "view"
210
144
  },
211
145
  {
212
- "inputs": [],
213
- "name": "getGuardConfigActionSpecs",
214
- "outputs": [
146
+ "type": "function",
147
+ "name": "encodeAddTargetToWhitelist",
148
+ "inputs": [
215
149
  {
216
- "internalType": "string[]",
217
- "name": "actionNames",
218
- "type": "string[]"
150
+ "name": "functionSelector",
151
+ "type": "bytes4",
152
+ "internalType": "bytes4"
219
153
  },
220
154
  {
221
- "internalType": "string[]",
222
- "name": "formats",
223
- "type": "string[]"
155
+ "name": "target",
156
+ "type": "address",
157
+ "internalType": "address"
224
158
  }
225
159
  ],
226
- "stateMutability": "pure",
227
- "type": "function"
160
+ "outputs": [
161
+ {
162
+ "name": "",
163
+ "type": "bytes",
164
+ "internalType": "bytes"
165
+ }
166
+ ],
167
+ "stateMutability": "pure"
228
168
  },
229
169
  {
170
+ "type": "function",
171
+ "name": "encodeRegisterFunction",
230
172
  "inputs": [
231
173
  {
232
- "internalType": "bytes4",
233
- "name": "functionSelector",
234
- "type": "bytes4"
174
+ "name": "functionSignature",
175
+ "type": "string",
176
+ "internalType": "string"
235
177
  },
236
178
  {
237
- "internalType": "address",
238
- "name": "target",
239
- "type": "address"
179
+ "name": "operationName",
180
+ "type": "string",
181
+ "internalType": "string"
182
+ },
183
+ {
184
+ "name": "supportedActions",
185
+ "type": "EngineBlox.TxAction[]",
186
+ "internalType": "enum EngineBlox.TxAction[]"
240
187
  }
241
188
  ],
242
- "name": "encodeAddTargetToWhitelist",
243
189
  "outputs": [
244
190
  {
245
- "internalType": "bytes",
246
191
  "name": "",
247
- "type": "bytes"
192
+ "type": "bytes",
193
+ "internalType": "bytes"
248
194
  }
249
195
  ],
250
- "stateMutability": "pure",
251
- "type": "function"
196
+ "stateMutability": "pure"
252
197
  },
253
198
  {
199
+ "type": "function",
200
+ "name": "encodeRemoveTargetFromWhitelist",
254
201
  "inputs": [
255
202
  {
256
- "internalType": "bytes4",
257
203
  "name": "functionSelector",
258
- "type": "bytes4"
204
+ "type": "bytes4",
205
+ "internalType": "bytes4"
259
206
  },
260
207
  {
261
- "internalType": "address",
262
208
  "name": "target",
263
- "type": "address"
209
+ "type": "address",
210
+ "internalType": "address"
264
211
  }
265
212
  ],
266
- "name": "encodeRemoveTargetFromWhitelist",
267
213
  "outputs": [
268
214
  {
269
- "internalType": "bytes",
270
215
  "name": "",
271
- "type": "bytes"
216
+ "type": "bytes",
217
+ "internalType": "bytes"
272
218
  }
273
219
  ],
274
- "stateMutability": "pure",
275
- "type": "function"
220
+ "stateMutability": "pure"
276
221
  },
277
222
  {
223
+ "type": "function",
224
+ "name": "encodeUnregisterFunction",
278
225
  "inputs": [
279
226
  {
280
- "internalType": "string",
281
- "name": "functionSignature",
282
- "type": "string"
227
+ "name": "functionSelector",
228
+ "type": "bytes4",
229
+ "internalType": "bytes4"
283
230
  },
284
231
  {
285
- "internalType": "string",
286
- "name": "operationName",
287
- "type": "string"
288
- },
232
+ "name": "safeRemoval",
233
+ "type": "bool",
234
+ "internalType": "bool"
235
+ }
236
+ ],
237
+ "outputs": [
289
238
  {
290
- "internalType": "enum EngineBlox.TxAction[]",
291
- "name": "supportedActions",
292
- "type": "EngineBlox.TxAction[]"
239
+ "name": "",
240
+ "type": "bytes",
241
+ "internalType": "bytes"
293
242
  }
294
243
  ],
295
- "name": "encodeRegisterFunction",
244
+ "stateMutability": "pure"
245
+ },
246
+ {
247
+ "type": "function",
248
+ "name": "getFunctionSchemas",
249
+ "inputs": [],
296
250
  "outputs": [
297
251
  {
298
- "internalType": "bytes",
299
252
  "name": "",
300
- "type": "bytes"
253
+ "type": "tuple[]",
254
+ "internalType": "struct EngineBlox.FunctionSchema[]",
255
+ "components": [
256
+ {
257
+ "name": "functionSignature",
258
+ "type": "string",
259
+ "internalType": "string"
260
+ },
261
+ {
262
+ "name": "functionSelector",
263
+ "type": "bytes4",
264
+ "internalType": "bytes4"
265
+ },
266
+ {
267
+ "name": "operationType",
268
+ "type": "bytes32",
269
+ "internalType": "bytes32"
270
+ },
271
+ {
272
+ "name": "operationName",
273
+ "type": "string",
274
+ "internalType": "string"
275
+ },
276
+ {
277
+ "name": "supportedActionsBitmap",
278
+ "type": "uint16",
279
+ "internalType": "uint16"
280
+ },
281
+ {
282
+ "name": "enforceHandlerRelations",
283
+ "type": "bool",
284
+ "internalType": "bool"
285
+ },
286
+ {
287
+ "name": "isProtected",
288
+ "type": "bool",
289
+ "internalType": "bool"
290
+ },
291
+ {
292
+ "name": "isGrantRevocable",
293
+ "type": "bool",
294
+ "internalType": "bool"
295
+ },
296
+ {
297
+ "name": "handlerForSelectors",
298
+ "type": "bytes4[]",
299
+ "internalType": "bytes4[]"
300
+ }
301
+ ]
301
302
  }
302
303
  ],
303
- "stateMutability": "pure",
304
- "type": "function"
304
+ "stateMutability": "pure"
305
305
  },
306
306
  {
307
- "inputs": [
307
+ "type": "function",
308
+ "name": "getGuardConfigActionSpecs",
309
+ "inputs": [],
310
+ "outputs": [
308
311
  {
309
- "internalType": "bytes4",
310
- "name": "functionSelector",
311
- "type": "bytes4"
312
+ "name": "actionNames",
313
+ "type": "string[]",
314
+ "internalType": "string[]"
312
315
  },
313
316
  {
314
- "internalType": "bool",
315
- "name": "safeRemoval",
316
- "type": "bool"
317
+ "name": "formats",
318
+ "type": "string[]",
319
+ "internalType": "string[]"
317
320
  }
318
321
  ],
319
- "name": "encodeUnregisterFunction",
322
+ "stateMutability": "pure"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "getRolePermissions",
327
+ "inputs": [],
320
328
  "outputs": [
321
329
  {
322
- "internalType": "bytes",
323
330
  "name": "",
324
- "type": "bytes"
331
+ "type": "tuple",
332
+ "internalType": "struct IDefinition.RolePermission",
333
+ "components": [
334
+ {
335
+ "name": "roleHashes",
336
+ "type": "bytes32[]",
337
+ "internalType": "bytes32[]"
338
+ },
339
+ {
340
+ "name": "functionPermissions",
341
+ "type": "tuple[]",
342
+ "internalType": "struct EngineBlox.FunctionPermission[]",
343
+ "components": [
344
+ {
345
+ "name": "functionSelector",
346
+ "type": "bytes4",
347
+ "internalType": "bytes4"
348
+ },
349
+ {
350
+ "name": "grantedActionsBitmap",
351
+ "type": "uint16",
352
+ "internalType": "uint16"
353
+ },
354
+ {
355
+ "name": "handlerForSelectors",
356
+ "type": "bytes4[]",
357
+ "internalType": "bytes4[]"
358
+ }
359
+ ]
360
+ }
361
+ ]
325
362
  }
326
363
  ],
327
- "stateMutability": "pure",
328
- "type": "function"
364
+ "stateMutability": "pure"
329
365
  },
330
366
  {
367
+ "type": "function",
368
+ "name": "guardConfigBatchExecutionParams",
331
369
  "inputs": [
332
370
  {
371
+ "name": "actions",
372
+ "type": "tuple[]",
373
+ "internalType": "struct IGuardController.GuardConfigAction[]",
333
374
  "components": [
334
375
  {
335
- "internalType": "enum IGuardController.GuardConfigActionType",
336
376
  "name": "actionType",
337
- "type": "IGuardController.GuardConfigActionType"
377
+ "type": "IGuardController.GuardConfigActionType",
378
+ "internalType": "enum IGuardController.GuardConfigActionType"
338
379
  },
339
380
  {
340
- "internalType": "bytes",
341
381
  "name": "data",
342
- "type": "bytes"
382
+ "type": "bytes",
383
+ "internalType": "bytes"
343
384
  }
344
- ],
345
- "internalType": "struct IGuardController.GuardConfigAction[]",
346
- "name": "actions",
347
- "type": "tuple[]"
385
+ ]
348
386
  }
349
387
  ],
350
- "name": "guardConfigBatchExecutionParams",
351
388
  "outputs": [
352
389
  {
353
- "internalType": "bytes",
354
390
  "name": "",
355
- "type": "bytes"
391
+ "type": "bytes",
392
+ "internalType": "bytes"
356
393
  }
357
394
  ],
358
- "stateMutability": "pure",
359
- "type": "function"
395
+ "stateMutability": "pure"
360
396
  },
361
397
  {
398
+ "type": "function",
399
+ "name": "supportsInterface",
362
400
  "inputs": [
363
401
  {
364
- "internalType": "bytes4",
365
402
  "name": "interfaceId",
366
- "type": "bytes4"
403
+ "type": "bytes4",
404
+ "internalType": "bytes4"
367
405
  }
368
406
  ],
369
- "name": "supportsInterface",
370
407
  "outputs": [
371
408
  {
372
- "internalType": "bool",
373
409
  "name": "",
374
- "type": "bool"
410
+ "type": "bool",
411
+ "internalType": "bool"
375
412
  }
376
413
  ],
377
- "stateMutability": "pure",
378
- "type": "function"
414
+ "stateMutability": "pure"
379
415
  }
380
416
  ]