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