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

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