@bloxchain/sdk 1.0.0-alpha.20 → 1.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +17 -16
  2. package/abi/AccountBlox.abi.json +1886 -1837
  3. package/abi/BaseStateMachine.abi.json +780 -775
  4. package/abi/CopyBlox.abi.json +825 -809
  5. package/abi/EngineBlox.abi.json +545 -538
  6. package/abi/GuardController.abi.json +1590 -1585
  7. package/abi/GuardControllerDefinitions.abi.json +231 -226
  8. package/abi/IDefinition.abi.json +54 -49
  9. package/abi/RoleBlox.abi.json +2993 -2993
  10. package/abi/RuntimeRBAC.abi.json +832 -827
  11. package/abi/RuntimeRBACDefinitions.abi.json +212 -207
  12. package/abi/SecureBlox.abi.json +2752 -2752
  13. package/abi/SecureOwnable.abi.json +1359 -1321
  14. package/abi/SecureOwnableDefinitions.abi.json +171 -166
  15. package/dist/abi/AccountBlox.abi.json +1886 -1837
  16. package/dist/abi/BaseStateMachine.abi.json +780 -775
  17. package/dist/abi/CopyBlox.abi.json +825 -809
  18. package/dist/abi/EngineBlox.abi.json +545 -538
  19. package/dist/abi/GuardController.abi.json +1590 -1585
  20. package/dist/abi/GuardControllerDefinitions.abi.json +231 -226
  21. package/dist/abi/IDefinition.abi.json +54 -49
  22. package/dist/abi/RoleBlox.abi.json +2993 -2993
  23. package/dist/abi/RuntimeRBAC.abi.json +832 -827
  24. package/dist/abi/RuntimeRBACDefinitions.abi.json +212 -207
  25. package/dist/abi/SecureBlox.abi.json +2752 -2752
  26. package/dist/abi/SecureOwnable.abi.json +1359 -1321
  27. package/dist/abi/SecureOwnableDefinitions.abi.json +171 -166
  28. package/dist/contracts/core/SecureOwnable.d.ts +1 -1
  29. package/dist/contracts/core/SecureOwnable.d.ts.map +1 -1
  30. package/dist/contracts/core/SecureOwnable.js +2 -2
  31. package/dist/contracts/core/SecureOwnable.js.map +1 -1
  32. package/dist/interfaces/core.security.index.d.ts +1 -1
  33. package/dist/interfaces/core.security.index.d.ts.map +1 -1
  34. package/dist/interfaces/lib.index.d.ts +1 -1
  35. package/dist/interfaces/lib.index.d.ts.map +1 -1
  36. package/dist/lib/Definition.d.ts.map +1 -1
  37. package/dist/lib/Definition.js +1 -0
  38. package/dist/lib/Definition.js.map +1 -1
  39. package/dist/lib/EngineBlox.d.ts +4 -5
  40. package/dist/lib/EngineBlox.d.ts.map +1 -1
  41. package/dist/lib/EngineBlox.js +9 -5
  42. package/dist/lib/EngineBlox.js.map +1 -1
  43. package/dist/types/core.security.index.js +2 -2
  44. package/dist/types/definition.index.d.ts +5 -0
  45. package/dist/types/definition.index.d.ts.map +1 -1
  46. package/dist/types/definition.index.js.map +1 -1
  47. package/dist/types/lib.index.d.ts +0 -1
  48. package/dist/types/lib.index.d.ts.map +1 -1
  49. package/dist/types/lib.index.js +1 -2
  50. package/dist/types/lib.index.js.map +1 -1
  51. package/dist/utils/contract-errors.d.ts +1 -8
  52. package/dist/utils/contract-errors.d.ts.map +1 -1
  53. package/dist/utils/contract-errors.js +0 -5
  54. package/dist/utils/contract-errors.js.map +1 -1
  55. package/dist/utils/interface-ids.js +1 -1
  56. package/dist/utils/validations.d.ts.map +1 -1
  57. package/dist/utils/validations.js +10 -11
  58. package/dist/utils/validations.js.map +1 -1
  59. package/package.json +2 -2
  60. package/abi/SimpleRWA20.abi.json +0 -4010
  61. package/abi/SimpleRWA20Definitions.abi.json +0 -196
  62. package/abi/SimpleVault.abi.json +0 -3385
  63. package/abi/SimpleVaultDefinitions.abi.json +0 -274
@@ -1,855 +1,862 @@
1
1
  [
2
2
  {
3
+ "type": "function",
4
+ "name": "ATTACHED_PAYMENT_RECIPIENT_SELECTOR",
3
5
  "inputs": [],
4
- "name": "AlreadyInitialized",
5
- "type": "error"
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "bytes4",
10
+ "internalType": "bytes4"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "ERC20_TRANSFER_SELECTOR",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "bytes4",
23
+ "internalType": "bytes4"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "MAX_BATCH_SIZE",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "MAX_FUNCTIONS",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "MAX_HOOKS_PER_SELECTOR",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "uint256",
62
+ "internalType": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "MAX_ROLES",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "NATIVE_TRANSFER_SELECTOR",
83
+ "inputs": [],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "bytes4",
88
+ "internalType": "bytes4"
89
+ }
90
+ ],
91
+ "stateMutability": "view"
6
92
  },
7
93
  {
94
+ "type": "function",
95
+ "name": "PROTOCOL_NAME_HASH",
96
+ "inputs": [],
97
+ "outputs": [
98
+ {
99
+ "name": "",
100
+ "type": "bytes32",
101
+ "internalType": "bytes32"
102
+ }
103
+ ],
104
+ "stateMutability": "view"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "VERSION",
109
+ "inputs": [],
110
+ "outputs": [
111
+ {
112
+ "name": "",
113
+ "type": "string",
114
+ "internalType": "string"
115
+ }
116
+ ],
117
+ "stateMutability": "view"
118
+ },
119
+ {
120
+ "type": "function",
121
+ "name": "createMetaTxParams",
8
122
  "inputs": [
9
123
  {
10
- "internalType": "uint256",
11
- "name": "releaseTime",
12
- "type": "uint256"
124
+ "name": "handlerContract",
125
+ "type": "address",
126
+ "internalType": "address"
13
127
  },
14
128
  {
15
- "internalType": "uint256",
16
- "name": "currentTime",
17
- "type": "uint256"
129
+ "name": "handlerSelector",
130
+ "type": "bytes4",
131
+ "internalType": "bytes4"
132
+ },
133
+ {
134
+ "name": "action",
135
+ "type": "EngineBlox.TxAction",
136
+ "internalType": "enum EngineBlox.TxAction"
137
+ },
138
+ {
139
+ "name": "deadline",
140
+ "type": "uint256",
141
+ "internalType": "uint256"
142
+ },
143
+ {
144
+ "name": "maxGasPrice",
145
+ "type": "uint256",
146
+ "internalType": "uint256"
147
+ },
148
+ {
149
+ "name": "signer",
150
+ "type": "address",
151
+ "internalType": "address"
18
152
  }
19
153
  ],
20
- "name": "BeforeReleaseTime",
21
- "type": "error"
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "tuple",
158
+ "internalType": "struct EngineBlox.MetaTxParams",
159
+ "components": [
160
+ {
161
+ "name": "chainId",
162
+ "type": "uint256",
163
+ "internalType": "uint256"
164
+ },
165
+ {
166
+ "name": "nonce",
167
+ "type": "uint256",
168
+ "internalType": "uint256"
169
+ },
170
+ {
171
+ "name": "handlerContract",
172
+ "type": "address",
173
+ "internalType": "address"
174
+ },
175
+ {
176
+ "name": "handlerSelector",
177
+ "type": "bytes4",
178
+ "internalType": "bytes4"
179
+ },
180
+ {
181
+ "name": "action",
182
+ "type": "EngineBlox.TxAction",
183
+ "internalType": "enum EngineBlox.TxAction"
184
+ },
185
+ {
186
+ "name": "deadline",
187
+ "type": "uint256",
188
+ "internalType": "uint256"
189
+ },
190
+ {
191
+ "name": "maxGasPrice",
192
+ "type": "uint256",
193
+ "internalType": "uint256"
194
+ },
195
+ {
196
+ "name": "signer",
197
+ "type": "address",
198
+ "internalType": "address"
199
+ }
200
+ ]
201
+ }
202
+ ],
203
+ "stateMutability": "view"
22
204
  },
23
205
  {
206
+ "type": "function",
207
+ "name": "recoverSigner",
24
208
  "inputs": [
25
209
  {
26
- "internalType": "bytes32",
27
- "name": "resourceId",
28
- "type": "bytes32"
210
+ "name": "messageHash",
211
+ "type": "bytes32",
212
+ "internalType": "bytes32"
213
+ },
214
+ {
215
+ "name": "signature",
216
+ "type": "bytes",
217
+ "internalType": "bytes"
29
218
  }
30
219
  ],
31
- "name": "CannotModifyProtected",
32
- "type": "error"
220
+ "outputs": [
221
+ {
222
+ "name": "",
223
+ "type": "address",
224
+ "internalType": "address"
225
+ }
226
+ ],
227
+ "stateMutability": "pure"
33
228
  },
34
229
  {
230
+ "type": "event",
231
+ "name": "TransactionEvent",
35
232
  "inputs": [
36
233
  {
37
- "internalType": "uint256",
38
- "name": "providedChainId",
39
- "type": "uint256"
234
+ "name": "txId",
235
+ "type": "uint256",
236
+ "indexed": true,
237
+ "internalType": "uint256"
40
238
  },
41
239
  {
42
- "internalType": "uint256",
43
- "name": "expectedChainId",
44
- "type": "uint256"
240
+ "name": "functionHash",
241
+ "type": "bytes4",
242
+ "indexed": true,
243
+ "internalType": "bytes4"
244
+ },
245
+ {
246
+ "name": "status",
247
+ "type": "uint8",
248
+ "indexed": false,
249
+ "internalType": "enum EngineBlox.TxStatus"
250
+ },
251
+ {
252
+ "name": "requester",
253
+ "type": "address",
254
+ "indexed": true,
255
+ "internalType": "address"
256
+ },
257
+ {
258
+ "name": "target",
259
+ "type": "address",
260
+ "indexed": false,
261
+ "internalType": "address"
262
+ },
263
+ {
264
+ "name": "operationType",
265
+ "type": "bytes32",
266
+ "indexed": false,
267
+ "internalType": "bytes32"
268
+ },
269
+ {
270
+ "name": "resultHash",
271
+ "type": "bytes32",
272
+ "indexed": false,
273
+ "internalType": "bytes32"
45
274
  }
46
275
  ],
47
- "name": "ChainIdMismatch",
48
- "type": "error"
276
+ "anonymous": false
49
277
  },
50
278
  {
279
+ "type": "event",
280
+ "name": "TxExecutionResult",
51
281
  "inputs": [
52
282
  {
53
- "internalType": "bytes4",
54
- "name": "functionSelector",
55
- "type": "bytes4"
283
+ "name": "txId",
284
+ "type": "uint256",
285
+ "indexed": true,
286
+ "internalType": "uint256"
287
+ },
288
+ {
289
+ "name": "result",
290
+ "type": "bytes",
291
+ "indexed": false,
292
+ "internalType": "bytes"
56
293
  }
57
294
  ],
58
- "name": "ConflictingMetaTxPermissions",
59
- "type": "error"
295
+ "anonymous": false
296
+ },
297
+ {
298
+ "type": "error",
299
+ "name": "AlreadyInitialized",
300
+ "inputs": []
60
301
  },
61
302
  {
303
+ "type": "error",
304
+ "name": "BeforeReleaseTime",
62
305
  "inputs": [
63
306
  {
64
- "internalType": "uint256",
65
- "name": "deadline",
66
- "type": "uint256"
307
+ "name": "releaseTime",
308
+ "type": "uint256",
309
+ "internalType": "uint256"
67
310
  },
68
311
  {
69
- "internalType": "uint256",
70
312
  "name": "currentTime",
71
- "type": "uint256"
313
+ "type": "uint256",
314
+ "internalType": "uint256"
72
315
  }
73
- ],
74
- "name": "DeadlineInPast",
75
- "type": "error"
316
+ ]
76
317
  },
77
318
  {
319
+ "type": "error",
320
+ "name": "CannotModifyProtected",
78
321
  "inputs": [
79
322
  {
80
- "internalType": "address",
81
- "name": "recoveredSigner",
82
- "type": "address"
323
+ "name": "resourceId",
324
+ "type": "bytes32",
325
+ "internalType": "bytes32"
83
326
  }
84
- ],
327
+ ]
328
+ },
329
+ {
330
+ "type": "error",
331
+ "name": "ChainIdMismatch",
332
+ "inputs": [
333
+ {
334
+ "name": "providedChainId",
335
+ "type": "uint256",
336
+ "internalType": "uint256"
337
+ },
338
+ {
339
+ "name": "expectedChainId",
340
+ "type": "uint256",
341
+ "internalType": "uint256"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "type": "error",
347
+ "name": "ConflictingMetaTxPermissions",
348
+ "inputs": [
349
+ {
350
+ "name": "functionSelector",
351
+ "type": "bytes4",
352
+ "internalType": "bytes4"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "type": "error",
85
358
  "name": "ECDSAInvalidSignature",
86
- "type": "error"
359
+ "inputs": [
360
+ {
361
+ "name": "recoveredSigner",
362
+ "type": "address",
363
+ "internalType": "address"
364
+ }
365
+ ]
87
366
  },
88
367
  {
368
+ "type": "error",
369
+ "name": "FunctionSelectorMismatch",
89
370
  "inputs": [
90
371
  {
91
- "internalType": "bytes4",
92
372
  "name": "providedSelector",
93
- "type": "bytes4"
373
+ "type": "bytes4",
374
+ "internalType": "bytes4"
94
375
  },
95
376
  {
96
- "internalType": "bytes4",
97
377
  "name": "derivedSelector",
98
- "type": "bytes4"
378
+ "type": "bytes4",
379
+ "internalType": "bytes4"
99
380
  }
100
- ],
101
- "name": "FunctionSelectorMismatch",
102
- "type": "error"
381
+ ]
103
382
  },
104
383
  {
384
+ "type": "error",
385
+ "name": "GasPriceExceedsMax",
105
386
  "inputs": [
106
387
  {
107
- "internalType": "uint256",
108
388
  "name": "currentGasPrice",
109
- "type": "uint256"
389
+ "type": "uint256",
390
+ "internalType": "uint256"
110
391
  },
111
392
  {
112
- "internalType": "uint256",
113
393
  "name": "maxGasPrice",
114
- "type": "uint256"
394
+ "type": "uint256",
395
+ "internalType": "uint256"
115
396
  }
116
- ],
117
- "name": "GasPriceExceedsMax",
118
- "type": "error"
397
+ ]
398
+ },
399
+ {
400
+ "type": "error",
401
+ "name": "GrantNotRevocable",
402
+ "inputs": [
403
+ {
404
+ "name": "functionSelector",
405
+ "type": "bytes4",
406
+ "internalType": "bytes4"
407
+ }
408
+ ]
119
409
  },
120
410
  {
411
+ "type": "error",
412
+ "name": "HandlerForSelectorMismatch",
121
413
  "inputs": [
122
414
  {
123
- "internalType": "bytes4",
124
415
  "name": "schemaHandlerForSelector",
125
- "type": "bytes4"
416
+ "type": "bytes4",
417
+ "internalType": "bytes4"
126
418
  },
127
419
  {
128
- "internalType": "bytes4",
129
420
  "name": "permissionHandlerForSelector",
130
- "type": "bytes4"
421
+ "type": "bytes4",
422
+ "internalType": "bytes4"
131
423
  }
132
- ],
133
- "name": "HandlerForSelectorMismatch",
134
- "type": "error"
424
+ ]
135
425
  },
136
426
  {
427
+ "type": "error",
428
+ "name": "IndexOutOfBounds",
137
429
  "inputs": [
138
430
  {
139
- "internalType": "uint256",
140
431
  "name": "index",
141
- "type": "uint256"
432
+ "type": "uint256",
433
+ "internalType": "uint256"
142
434
  },
143
435
  {
144
- "internalType": "uint256",
145
436
  "name": "arrayLength",
146
- "type": "uint256"
437
+ "type": "uint256",
438
+ "internalType": "uint256"
147
439
  }
148
- ],
149
- "name": "IndexOutOfBounds",
150
- "type": "error"
440
+ ]
151
441
  },
152
442
  {
443
+ "type": "error",
444
+ "name": "InsufficientBalance",
153
445
  "inputs": [
154
446
  {
155
- "internalType": "uint256",
156
447
  "name": "currentBalance",
157
- "type": "uint256"
448
+ "type": "uint256",
449
+ "internalType": "uint256"
158
450
  },
159
451
  {
160
- "internalType": "uint256",
161
452
  "name": "requiredAmount",
162
- "type": "uint256"
453
+ "type": "uint256",
454
+ "internalType": "uint256"
163
455
  }
164
- ],
165
- "name": "InsufficientBalance",
166
- "type": "error"
456
+ ]
167
457
  },
168
458
  {
459
+ "type": "error",
460
+ "name": "InvalidAddress",
169
461
  "inputs": [
170
462
  {
171
- "internalType": "address",
172
463
  "name": "provided",
173
- "type": "address"
464
+ "type": "address",
465
+ "internalType": "address"
174
466
  }
175
- ],
176
- "name": "InvalidAddress",
177
- "type": "error"
467
+ ]
178
468
  },
179
469
  {
470
+ "type": "error",
471
+ "name": "InvalidHandlerSelector",
180
472
  "inputs": [
181
473
  {
182
- "internalType": "bytes4",
183
474
  "name": "selector",
184
- "type": "bytes4"
475
+ "type": "bytes4",
476
+ "internalType": "bytes4"
185
477
  }
186
- ],
187
- "name": "InvalidHandlerSelector",
188
- "type": "error"
478
+ ]
189
479
  },
190
480
  {
481
+ "type": "error",
482
+ "name": "InvalidNonce",
191
483
  "inputs": [
192
484
  {
193
- "internalType": "uint256",
194
485
  "name": "providedNonce",
195
- "type": "uint256"
486
+ "type": "uint256",
487
+ "internalType": "uint256"
196
488
  },
197
489
  {
198
- "internalType": "uint256",
199
490
  "name": "expectedNonce",
200
- "type": "uint256"
491
+ "type": "uint256",
492
+ "internalType": "uint256"
201
493
  }
202
- ],
203
- "name": "InvalidNonce",
204
- "type": "error"
494
+ ]
205
495
  },
206
496
  {
497
+ "type": "error",
498
+ "name": "InvalidSValue",
207
499
  "inputs": [
208
500
  {
209
- "internalType": "bytes32",
210
501
  "name": "s",
211
- "type": "bytes32"
502
+ "type": "bytes32",
503
+ "internalType": "bytes32"
212
504
  }
213
- ],
214
- "name": "InvalidSValue",
215
- "type": "error"
505
+ ]
216
506
  },
217
507
  {
508
+ "type": "error",
509
+ "name": "InvalidSignature",
218
510
  "inputs": [
219
511
  {
220
- "internalType": "bytes",
221
512
  "name": "signature",
222
- "type": "bytes"
513
+ "type": "bytes",
514
+ "internalType": "bytes"
223
515
  }
224
- ],
225
- "name": "InvalidSignature",
226
- "type": "error"
516
+ ]
227
517
  },
228
518
  {
519
+ "type": "error",
520
+ "name": "InvalidSignatureLength",
229
521
  "inputs": [
230
522
  {
231
- "internalType": "uint256",
232
523
  "name": "providedLength",
233
- "type": "uint256"
524
+ "type": "uint256",
525
+ "internalType": "uint256"
234
526
  },
235
527
  {
236
- "internalType": "uint256",
237
528
  "name": "expectedLength",
238
- "type": "uint256"
529
+ "type": "uint256",
530
+ "internalType": "uint256"
239
531
  }
240
- ],
241
- "name": "InvalidSignatureLength",
242
- "type": "error"
532
+ ]
243
533
  },
244
534
  {
535
+ "type": "error",
536
+ "name": "InvalidVValue",
245
537
  "inputs": [
246
538
  {
247
- "internalType": "uint8",
248
539
  "name": "v",
249
- "type": "uint8"
540
+ "type": "uint8",
541
+ "internalType": "uint8"
250
542
  }
251
- ],
252
- "name": "InvalidVValue",
253
- "type": "error"
543
+ ]
254
544
  },
255
545
  {
546
+ "type": "error",
547
+ "name": "ItemAlreadyExists",
256
548
  "inputs": [
257
549
  {
258
- "internalType": "address",
259
550
  "name": "item",
260
- "type": "address"
551
+ "type": "address",
552
+ "internalType": "address"
261
553
  }
262
- ],
263
- "name": "ItemAlreadyExists",
264
- "type": "error"
554
+ ]
265
555
  },
266
556
  {
557
+ "type": "error",
558
+ "name": "ItemNotFound",
267
559
  "inputs": [
268
560
  {
269
- "internalType": "address",
270
561
  "name": "item",
271
- "type": "address"
562
+ "type": "address",
563
+ "internalType": "address"
272
564
  }
273
- ],
274
- "name": "ItemNotFound",
275
- "type": "error"
565
+ ]
276
566
  },
277
567
  {
568
+ "type": "error",
569
+ "name": "MaxFunctionsExceeded",
278
570
  "inputs": [
279
571
  {
280
- "internalType": "uint256",
281
572
  "name": "currentCount",
282
- "type": "uint256"
573
+ "type": "uint256",
574
+ "internalType": "uint256"
283
575
  },
284
576
  {
285
- "internalType": "uint256",
286
577
  "name": "maxFunctions",
287
- "type": "uint256"
578
+ "type": "uint256",
579
+ "internalType": "uint256"
288
580
  }
289
- ],
290
- "name": "MaxFunctionsExceeded",
291
- "type": "error"
581
+ ]
292
582
  },
293
583
  {
584
+ "type": "error",
585
+ "name": "MaxHooksExceeded",
294
586
  "inputs": [
295
587
  {
296
- "internalType": "uint256",
297
588
  "name": "currentCount",
298
- "type": "uint256"
589
+ "type": "uint256",
590
+ "internalType": "uint256"
299
591
  },
300
592
  {
301
- "internalType": "uint256",
302
593
  "name": "maxHooks",
303
- "type": "uint256"
594
+ "type": "uint256",
595
+ "internalType": "uint256"
304
596
  }
305
- ],
306
- "name": "MaxHooksExceeded",
307
- "type": "error"
597
+ ]
308
598
  },
309
599
  {
600
+ "type": "error",
601
+ "name": "MaxRolesExceeded",
310
602
  "inputs": [
311
603
  {
312
- "internalType": "uint256",
313
604
  "name": "currentCount",
314
- "type": "uint256"
605
+ "type": "uint256",
606
+ "internalType": "uint256"
315
607
  },
316
608
  {
317
- "internalType": "uint256",
318
609
  "name": "maxRoles",
319
- "type": "uint256"
610
+ "type": "uint256",
611
+ "internalType": "uint256"
320
612
  }
321
- ],
322
- "name": "MaxRolesExceeded",
323
- "type": "error"
613
+ ]
324
614
  },
325
615
  {
616
+ "type": "error",
617
+ "name": "MaxWalletsZero",
326
618
  "inputs": [
327
619
  {
328
- "internalType": "uint256",
329
620
  "name": "provided",
330
- "type": "uint256"
621
+ "type": "uint256",
622
+ "internalType": "uint256"
331
623
  }
332
- ],
333
- "name": "MaxWalletsZero",
334
- "type": "error"
624
+ ]
335
625
  },
336
626
  {
627
+ "type": "error",
628
+ "name": "MetaTxExpired",
337
629
  "inputs": [
338
630
  {
339
- "internalType": "uint256",
340
631
  "name": "deadline",
341
- "type": "uint256"
632
+ "type": "uint256",
633
+ "internalType": "uint256"
342
634
  },
343
635
  {
344
- "internalType": "uint256",
345
636
  "name": "currentTime",
346
- "type": "uint256"
637
+ "type": "uint256",
638
+ "internalType": "uint256"
347
639
  }
348
- ],
349
- "name": "MetaTxExpired",
350
- "type": "error"
640
+ ]
351
641
  },
352
642
  {
643
+ "type": "error",
644
+ "name": "MetaTxHandlerContractMismatch",
353
645
  "inputs": [
354
646
  {
355
- "internalType": "address",
356
647
  "name": "signedContract",
357
- "type": "address"
648
+ "type": "address",
649
+ "internalType": "address"
358
650
  },
359
651
  {
360
- "internalType": "address",
361
652
  "name": "entryContract",
362
- "type": "address"
653
+ "type": "address",
654
+ "internalType": "address"
363
655
  }
364
- ],
365
- "name": "MetaTxHandlerContractMismatch",
366
- "type": "error"
656
+ ]
367
657
  },
368
658
  {
659
+ "type": "error",
660
+ "name": "MetaTxPaymentMismatchStoredTx",
369
661
  "inputs": [
370
662
  {
371
- "internalType": "uint256",
372
663
  "name": "txId",
373
- "type": "uint256"
664
+ "type": "uint256",
665
+ "internalType": "uint256"
374
666
  }
375
- ],
376
- "name": "MetaTxPaymentMismatchStoredTx",
377
- "type": "error"
667
+ ]
378
668
  },
379
669
  {
670
+ "type": "error",
671
+ "name": "MetaTxRecordMismatchStoredTx",
380
672
  "inputs": [
381
673
  {
382
- "internalType": "uint256",
383
674
  "name": "txId",
384
- "type": "uint256"
675
+ "type": "uint256",
676
+ "internalType": "uint256"
385
677
  }
386
- ],
387
- "name": "MetaTxRecordMismatchStoredTx",
388
- "type": "error"
678
+ ]
389
679
  },
390
680
  {
681
+ "type": "error",
682
+ "name": "NoPermission",
391
683
  "inputs": [
392
684
  {
393
- "internalType": "address",
394
685
  "name": "caller",
395
- "type": "address"
686
+ "type": "address",
687
+ "internalType": "address"
396
688
  }
397
- ],
398
- "name": "NoPermission",
399
- "type": "error"
689
+ ]
400
690
  },
401
691
  {
692
+ "type": "error",
693
+ "name": "NotNewAddress",
402
694
  "inputs": [
403
695
  {
404
- "internalType": "address",
405
696
  "name": "newAddress",
406
- "type": "address"
697
+ "type": "address",
698
+ "internalType": "address"
407
699
  },
408
700
  {
409
- "internalType": "address",
410
701
  "name": "currentAddress",
411
- "type": "address"
702
+ "type": "address",
703
+ "internalType": "address"
412
704
  }
413
- ],
414
- "name": "NotNewAddress",
415
- "type": "error"
705
+ ]
416
706
  },
417
707
  {
418
- "inputs": [],
708
+ "type": "error",
419
709
  "name": "NotSupported",
420
- "type": "error"
710
+ "inputs": []
421
711
  },
422
712
  {
423
- "inputs": [],
713
+ "type": "error",
424
714
  "name": "OperationFailed",
425
- "type": "error"
715
+ "inputs": []
426
716
  },
427
717
  {
718
+ "type": "error",
719
+ "name": "PaymentFailed",
428
720
  "inputs": [
429
721
  {
430
- "internalType": "address",
431
722
  "name": "recipient",
432
- "type": "address"
723
+ "type": "address",
724
+ "internalType": "address"
433
725
  },
434
726
  {
435
- "internalType": "uint256",
436
727
  "name": "amount",
437
- "type": "uint256"
728
+ "type": "uint256",
729
+ "internalType": "uint256"
438
730
  },
439
731
  {
440
- "internalType": "bytes",
441
732
  "name": "reason",
442
- "type": "bytes"
733
+ "type": "bytes",
734
+ "internalType": "bytes"
443
735
  }
444
- ],
445
- "name": "PaymentFailed",
446
- "type": "error"
736
+ ]
447
737
  },
448
738
  {
739
+ "type": "error",
740
+ "name": "ResourceAlreadyExists",
449
741
  "inputs": [
450
742
  {
451
- "internalType": "bytes32",
452
743
  "name": "resourceId",
453
- "type": "bytes32"
744
+ "type": "bytes32",
745
+ "internalType": "bytes32"
454
746
  }
455
- ],
456
- "name": "ResourceAlreadyExists",
457
- "type": "error"
747
+ ]
458
748
  },
459
749
  {
750
+ "type": "error",
751
+ "name": "ResourceNotFound",
460
752
  "inputs": [
461
753
  {
462
- "internalType": "bytes32",
463
754
  "name": "resourceId",
464
- "type": "bytes32"
755
+ "type": "bytes32",
756
+ "internalType": "bytes32"
465
757
  }
466
- ],
467
- "name": "ResourceNotFound",
468
- "type": "error"
758
+ ]
469
759
  },
470
760
  {
761
+ "type": "error",
762
+ "name": "RoleWalletLimitReached",
471
763
  "inputs": [
472
764
  {
473
- "internalType": "uint256",
474
765
  "name": "currentCount",
475
- "type": "uint256"
766
+ "type": "uint256",
767
+ "internalType": "uint256"
476
768
  },
477
769
  {
478
- "internalType": "uint256",
479
770
  "name": "maxWallets",
480
- "type": "uint256"
771
+ "type": "uint256",
772
+ "internalType": "uint256"
481
773
  }
482
- ],
483
- "name": "RoleWalletLimitReached",
484
- "type": "error"
774
+ ]
485
775
  },
486
776
  {
777
+ "type": "error",
778
+ "name": "SafeERC20FailedOperation",
487
779
  "inputs": [
488
780
  {
489
- "internalType": "address",
490
781
  "name": "token",
491
- "type": "address"
782
+ "type": "address",
783
+ "internalType": "address"
492
784
  }
493
- ],
494
- "name": "SafeERC20FailedOperation",
495
- "type": "error"
785
+ ]
496
786
  },
497
787
  {
788
+ "type": "error",
789
+ "name": "SignerNotAuthorized",
498
790
  "inputs": [
499
791
  {
500
- "internalType": "address",
501
792
  "name": "signer",
502
- "type": "address"
793
+ "type": "address",
794
+ "internalType": "address"
503
795
  }
504
- ],
505
- "name": "SignerNotAuthorized",
506
- "type": "error"
796
+ ]
507
797
  },
508
798
  {
799
+ "type": "error",
800
+ "name": "TargetNotWhitelisted",
509
801
  "inputs": [
510
802
  {
511
- "internalType": "address",
512
803
  "name": "target",
513
- "type": "address"
804
+ "type": "address",
805
+ "internalType": "address"
514
806
  },
515
807
  {
516
- "internalType": "bytes4",
517
808
  "name": "functionSelector",
518
- "type": "bytes4"
809
+ "type": "bytes4",
810
+ "internalType": "bytes4"
519
811
  }
520
- ],
521
- "name": "TargetNotWhitelisted",
522
- "type": "error"
812
+ ]
523
813
  },
524
814
  {
815
+ "type": "error",
816
+ "name": "TimeLockPeriodZero",
525
817
  "inputs": [
526
818
  {
527
- "internalType": "uint256",
528
819
  "name": "provided",
529
- "type": "uint256"
820
+ "type": "uint256",
821
+ "internalType": "uint256"
530
822
  }
531
- ],
532
- "name": "TimeLockPeriodZero",
533
- "type": "error"
823
+ ]
534
824
  },
535
825
  {
826
+ "type": "error",
827
+ "name": "TransactionIdMismatch",
536
828
  "inputs": [
537
829
  {
538
- "internalType": "uint256",
539
830
  "name": "expectedTxId",
540
- "type": "uint256"
831
+ "type": "uint256",
832
+ "internalType": "uint256"
541
833
  },
542
834
  {
543
- "internalType": "uint256",
544
835
  "name": "providedTxId",
545
- "type": "uint256"
836
+ "type": "uint256",
837
+ "internalType": "uint256"
546
838
  }
547
- ],
548
- "name": "TransactionIdMismatch",
549
- "type": "error"
839
+ ]
550
840
  },
551
841
  {
842
+ "type": "error",
843
+ "name": "TransactionStatusMismatch",
552
844
  "inputs": [
553
845
  {
554
- "internalType": "uint8",
555
846
  "name": "expectedStatus",
556
- "type": "uint8"
847
+ "type": "uint8",
848
+ "internalType": "uint8"
557
849
  },
558
850
  {
559
- "internalType": "uint8",
560
851
  "name": "currentStatus",
561
- "type": "uint8"
852
+ "type": "uint8",
853
+ "internalType": "uint8"
562
854
  }
563
- ],
564
- "name": "TransactionStatusMismatch",
565
- "type": "error"
855
+ ]
566
856
  },
567
857
  {
568
- "inputs": [],
858
+ "type": "error",
569
859
  "name": "ZeroOperationTypeNotAllowed",
570
- "type": "error"
571
- },
572
- {
573
- "anonymous": false,
574
- "inputs": [
575
- {
576
- "indexed": true,
577
- "internalType": "uint256",
578
- "name": "txId",
579
- "type": "uint256"
580
- },
581
- {
582
- "indexed": true,
583
- "internalType": "bytes4",
584
- "name": "functionHash",
585
- "type": "bytes4"
586
- },
587
- {
588
- "indexed": false,
589
- "internalType": "enum EngineBlox.TxStatus",
590
- "name": "status",
591
- "type": "uint8"
592
- },
593
- {
594
- "indexed": true,
595
- "internalType": "address",
596
- "name": "requester",
597
- "type": "address"
598
- },
599
- {
600
- "indexed": false,
601
- "internalType": "address",
602
- "name": "target",
603
- "type": "address"
604
- },
605
- {
606
- "indexed": false,
607
- "internalType": "bytes32",
608
- "name": "operationType",
609
- "type": "bytes32"
610
- }
611
- ],
612
- "name": "TransactionEvent",
613
- "type": "event"
614
- },
615
- {
616
- "inputs": [],
617
- "name": "ATTACHED_PAYMENT_RECIPIENT_SELECTOR",
618
- "outputs": [
619
- {
620
- "internalType": "bytes4",
621
- "name": "",
622
- "type": "bytes4"
623
- }
624
- ],
625
- "stateMutability": "view",
626
- "type": "function"
627
- },
628
- {
629
- "inputs": [],
630
- "name": "ERC20_TRANSFER_SELECTOR",
631
- "outputs": [
632
- {
633
- "internalType": "bytes4",
634
- "name": "",
635
- "type": "bytes4"
636
- }
637
- ],
638
- "stateMutability": "view",
639
- "type": "function"
640
- },
641
- {
642
- "inputs": [],
643
- "name": "MAX_BATCH_SIZE",
644
- "outputs": [
645
- {
646
- "internalType": "uint256",
647
- "name": "",
648
- "type": "uint256"
649
- }
650
- ],
651
- "stateMutability": "view",
652
- "type": "function"
653
- },
654
- {
655
- "inputs": [],
656
- "name": "MAX_FUNCTIONS",
657
- "outputs": [
658
- {
659
- "internalType": "uint256",
660
- "name": "",
661
- "type": "uint256"
662
- }
663
- ],
664
- "stateMutability": "view",
665
- "type": "function"
666
- },
667
- {
668
- "inputs": [],
669
- "name": "MAX_HOOKS_PER_SELECTOR",
670
- "outputs": [
671
- {
672
- "internalType": "uint256",
673
- "name": "",
674
- "type": "uint256"
675
- }
676
- ],
677
- "stateMutability": "view",
678
- "type": "function"
679
- },
680
- {
681
- "inputs": [],
682
- "name": "MAX_RESULT_PREVIEW_BYTES",
683
- "outputs": [
684
- {
685
- "internalType": "uint256",
686
- "name": "",
687
- "type": "uint256"
688
- }
689
- ],
690
- "stateMutability": "view",
691
- "type": "function"
692
- },
693
- {
694
- "inputs": [],
695
- "name": "MAX_ROLES",
696
- "outputs": [
697
- {
698
- "internalType": "uint256",
699
- "name": "",
700
- "type": "uint256"
701
- }
702
- ],
703
- "stateMutability": "view",
704
- "type": "function"
705
- },
706
- {
707
- "inputs": [],
708
- "name": "NATIVE_TRANSFER_SELECTOR",
709
- "outputs": [
710
- {
711
- "internalType": "bytes4",
712
- "name": "",
713
- "type": "bytes4"
714
- }
715
- ],
716
- "stateMutability": "view",
717
- "type": "function"
718
- },
719
- {
720
- "inputs": [],
721
- "name": "PROTOCOL_NAME_HASH",
722
- "outputs": [
723
- {
724
- "internalType": "bytes32",
725
- "name": "",
726
- "type": "bytes32"
727
- }
728
- ],
729
- "stateMutability": "view",
730
- "type": "function"
731
- },
732
- {
733
- "inputs": [],
734
- "name": "VERSION",
735
- "outputs": [
736
- {
737
- "internalType": "string",
738
- "name": "",
739
- "type": "string"
740
- }
741
- ],
742
- "stateMutability": "view",
743
- "type": "function"
744
- },
745
- {
746
- "inputs": [
747
- {
748
- "internalType": "bytes32",
749
- "name": "messageHash",
750
- "type": "bytes32"
751
- },
752
- {
753
- "internalType": "bytes",
754
- "name": "signature",
755
- "type": "bytes"
756
- }
757
- ],
758
- "name": "recoverSigner",
759
- "outputs": [
760
- {
761
- "internalType": "address",
762
- "name": "",
763
- "type": "address"
764
- }
765
- ],
766
- "stateMutability": "pure",
767
- "type": "function"
768
- },
769
- {
770
- "inputs": [
771
- {
772
- "internalType": "address",
773
- "name": "handlerContract",
774
- "type": "address"
775
- },
776
- {
777
- "internalType": "bytes4",
778
- "name": "handlerSelector",
779
- "type": "bytes4"
780
- },
781
- {
782
- "internalType": "enum EngineBlox.TxAction",
783
- "name": "action",
784
- "type": "EngineBlox.TxAction"
785
- },
786
- {
787
- "internalType": "uint256",
788
- "name": "deadline",
789
- "type": "uint256"
790
- },
791
- {
792
- "internalType": "uint256",
793
- "name": "maxGasPrice",
794
- "type": "uint256"
795
- },
796
- {
797
- "internalType": "address",
798
- "name": "signer",
799
- "type": "address"
800
- }
801
- ],
802
- "name": "createMetaTxParams",
803
- "outputs": [
804
- {
805
- "components": [
806
- {
807
- "internalType": "uint256",
808
- "name": "chainId",
809
- "type": "uint256"
810
- },
811
- {
812
- "internalType": "uint256",
813
- "name": "nonce",
814
- "type": "uint256"
815
- },
816
- {
817
- "internalType": "address",
818
- "name": "handlerContract",
819
- "type": "address"
820
- },
821
- {
822
- "internalType": "bytes4",
823
- "name": "handlerSelector",
824
- "type": "bytes4"
825
- },
826
- {
827
- "internalType": "enum EngineBlox.TxAction",
828
- "name": "action",
829
- "type": "EngineBlox.TxAction"
830
- },
831
- {
832
- "internalType": "uint256",
833
- "name": "deadline",
834
- "type": "uint256"
835
- },
836
- {
837
- "internalType": "uint256",
838
- "name": "maxGasPrice",
839
- "type": "uint256"
840
- },
841
- {
842
- "internalType": "address",
843
- "name": "signer",
844
- "type": "address"
845
- }
846
- ],
847
- "internalType": "struct EngineBlox.MetaTxParams",
848
- "name": "",
849
- "type": "tuple"
850
- }
851
- ],
852
- "stateMutability": "view",
853
- "type": "function"
860
+ "inputs": []
854
861
  }
855
862
  ]