@bloxchain/contracts 1.0.0-alpha.20 → 1.0.0-alpha.22

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