@bloxchain/sdk 1.0.0-alpha.19 → 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 (42) hide show
  1. package/abi/AccountBlox.abi.json +28 -7
  2. package/abi/BaseStateMachine.abi.json +0 -16
  3. package/abi/CopyBlox.abi.json +0 -16
  4. package/abi/EngineBlox.abi.json +46 -4
  5. package/abi/GuardController.abi.json +28 -7
  6. package/abi/GuardControllerDefinitions.abi.json +1 -1
  7. package/abi/RuntimeRBAC.abi.json +28 -7
  8. package/abi/SecureOwnable.abi.json +23 -7
  9. package/abi/SimpleRWA20.abi.json +23 -7
  10. package/abi/SimpleVault.abi.json +25 -9
  11. package/dist/abi/AccountBlox.abi.json +28 -7
  12. package/dist/abi/BaseStateMachine.abi.json +0 -16
  13. package/dist/abi/CopyBlox.abi.json +0 -16
  14. package/dist/abi/EngineBlox.abi.json +46 -4
  15. package/dist/abi/GuardController.abi.json +28 -7
  16. package/dist/abi/GuardControllerDefinitions.abi.json +1 -1
  17. package/dist/abi/RuntimeRBAC.abi.json +28 -7
  18. package/dist/abi/SecureOwnable.abi.json +23 -7
  19. package/dist/abi/SimpleRWA20.abi.json +23 -7
  20. package/dist/abi/SimpleVault.abi.json +25 -9
  21. package/dist/contracts/core/BaseStateMachine.d.ts +1 -0
  22. package/dist/contracts/core/BaseStateMachine.d.ts.map +1 -1
  23. package/dist/contracts/core/BaseStateMachine.js +1 -0
  24. package/dist/contracts/core/BaseStateMachine.js.map +1 -1
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/lib/EngineBlox.d.ts +14 -0
  30. package/dist/lib/EngineBlox.d.ts.map +1 -1
  31. package/dist/lib/EngineBlox.js +14 -0
  32. package/dist/lib/EngineBlox.js.map +1 -1
  33. package/dist/types/core.execution.index.d.ts +1 -1
  34. package/dist/types/core.execution.index.js +1 -1
  35. package/dist/types/core.execution.index.js.map +1 -1
  36. package/dist/utils/contract-errors.d.ts +15 -1
  37. package/dist/utils/contract-errors.d.ts.map +1 -1
  38. package/dist/utils/contract-errors.js +12 -0
  39. package/dist/utils/contract-errors.js.map +1 -1
  40. package/dist/utils/metaTx/metaTransaction.d.ts +2 -2
  41. package/dist/utils/metaTx/metaTransaction.js +2 -2
  42. package/package.json +5 -5
@@ -69,20 +69,41 @@
69
69
  "name": "InvalidInitialization",
70
70
  "type": "error"
71
71
  },
72
+ {
73
+ "inputs": [],
74
+ "name": "InvalidPayment",
75
+ "type": "error"
76
+ },
72
77
  {
73
78
  "inputs": [
74
79
  {
75
- "internalType": "uint256",
76
- "name": "from",
77
- "type": "uint256"
80
+ "internalType": "address",
81
+ "name": "signedContract",
82
+ "type": "address"
78
83
  },
79
84
  {
80
- "internalType": "uint256",
81
- "name": "to",
82
- "type": "uint256"
85
+ "internalType": "address",
86
+ "name": "entryContract",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "MetaTxHandlerContractMismatch",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "bytes4",
97
+ "name": "signedSelector",
98
+ "type": "bytes4"
99
+ },
100
+ {
101
+ "internalType": "bytes4",
102
+ "name": "entrySelector",
103
+ "type": "bytes4"
83
104
  }
84
105
  ],
85
- "name": "InvalidRange",
106
+ "name": "MetaTxHandlerSelectorMismatch",
86
107
  "type": "error"
87
108
  },
88
109
  {
@@ -4,22 +4,6 @@
4
4
  "name": "InvalidInitialization",
5
5
  "type": "error"
6
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
7
  {
24
8
  "inputs": [
25
9
  {
@@ -47,22 +47,6 @@
47
47
  "name": "InvalidOperation",
48
48
  "type": "error"
49
49
  },
50
- {
51
- "inputs": [
52
- {
53
- "internalType": "uint256",
54
- "name": "from",
55
- "type": "uint256"
56
- },
57
- {
58
- "internalType": "uint256",
59
- "name": "to",
60
- "type": "uint256"
61
- }
62
- ],
63
- "name": "InvalidRange",
64
- "type": "error"
65
- },
66
50
  {
67
51
  "inputs": [
68
52
  {
@@ -349,6 +349,22 @@
349
349
  "name": "MetaTxExpired",
350
350
  "type": "error"
351
351
  },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "address",
356
+ "name": "signedContract",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "internalType": "address",
361
+ "name": "entryContract",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "name": "MetaTxHandlerContractMismatch",
366
+ "type": "error"
367
+ },
352
368
  {
353
369
  "inputs": [
354
370
  {
@@ -596,6 +612,32 @@
596
612
  "name": "TransactionEvent",
597
613
  "type": "event"
598
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
+ },
599
641
  {
600
642
  "inputs": [],
601
643
  "name": "MAX_BATCH_SIZE",
@@ -637,7 +679,7 @@
637
679
  },
638
680
  {
639
681
  "inputs": [],
640
- "name": "MAX_ROLES",
682
+ "name": "MAX_RESULT_PREVIEW_BYTES",
641
683
  "outputs": [
642
684
  {
643
685
  "internalType": "uint256",
@@ -650,12 +692,12 @@
650
692
  },
651
693
  {
652
694
  "inputs": [],
653
- "name": "NATIVE_TRANSFER_OPERATION",
695
+ "name": "MAX_ROLES",
654
696
  "outputs": [
655
697
  {
656
- "internalType": "bytes32",
698
+ "internalType": "uint256",
657
699
  "name": "",
658
- "type": "bytes32"
700
+ "type": "uint256"
659
701
  }
660
702
  ],
661
703
  "stateMutability": "view",
@@ -58,20 +58,41 @@
58
58
  "name": "InvalidInitialization",
59
59
  "type": "error"
60
60
  },
61
+ {
62
+ "inputs": [],
63
+ "name": "InvalidPayment",
64
+ "type": "error"
65
+ },
61
66
  {
62
67
  "inputs": [
63
68
  {
64
- "internalType": "uint256",
65
- "name": "from",
66
- "type": "uint256"
69
+ "internalType": "address",
70
+ "name": "signedContract",
71
+ "type": "address"
67
72
  },
68
73
  {
69
- "internalType": "uint256",
70
- "name": "to",
71
- "type": "uint256"
74
+ "internalType": "address",
75
+ "name": "entryContract",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "MetaTxHandlerContractMismatch",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "bytes4",
86
+ "name": "signedSelector",
87
+ "type": "bytes4"
88
+ },
89
+ {
90
+ "internalType": "bytes4",
91
+ "name": "entrySelector",
92
+ "type": "bytes4"
72
93
  }
73
94
  ],
74
- "name": "InvalidRange",
95
+ "name": "MetaTxHandlerSelectorMismatch",
75
96
  "type": "error"
76
97
  },
77
98
  {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  {
55
55
  "inputs": [],
56
- "name": "CONTROLLER_CONFIG_OPERATION",
56
+ "name": "CONTROLLER_CONFIG_BATCH",
57
57
  "outputs": [
58
58
  {
59
59
  "internalType": "bytes32",
@@ -58,20 +58,41 @@
58
58
  "name": "InvalidInitialization",
59
59
  "type": "error"
60
60
  },
61
+ {
62
+ "inputs": [],
63
+ "name": "InvalidPayment",
64
+ "type": "error"
65
+ },
61
66
  {
62
67
  "inputs": [
63
68
  {
64
- "internalType": "uint256",
65
- "name": "from",
66
- "type": "uint256"
69
+ "internalType": "address",
70
+ "name": "signedContract",
71
+ "type": "address"
67
72
  },
68
73
  {
69
- "internalType": "uint256",
70
- "name": "to",
71
- "type": "uint256"
74
+ "internalType": "address",
75
+ "name": "entryContract",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "MetaTxHandlerContractMismatch",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "bytes4",
86
+ "name": "signedSelector",
87
+ "type": "bytes4"
88
+ },
89
+ {
90
+ "internalType": "bytes4",
91
+ "name": "entrySelector",
92
+ "type": "bytes4"
72
93
  }
73
94
  ],
74
- "name": "InvalidRange",
95
+ "name": "MetaTxHandlerSelectorMismatch",
75
96
  "type": "error"
76
97
  },
77
98
  {
@@ -34,17 +34,33 @@
34
34
  {
35
35
  "inputs": [
36
36
  {
37
- "internalType": "uint256",
38
- "name": "from",
39
- "type": "uint256"
37
+ "internalType": "address",
38
+ "name": "signedContract",
39
+ "type": "address"
40
40
  },
41
41
  {
42
- "internalType": "uint256",
43
- "name": "to",
44
- "type": "uint256"
42
+ "internalType": "address",
43
+ "name": "entryContract",
44
+ "type": "address"
45
+ }
46
+ ],
47
+ "name": "MetaTxHandlerContractMismatch",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "bytes4",
54
+ "name": "signedSelector",
55
+ "type": "bytes4"
56
+ },
57
+ {
58
+ "internalType": "bytes4",
59
+ "name": "entrySelector",
60
+ "type": "bytes4"
45
61
  }
46
62
  ],
47
- "name": "InvalidRange",
63
+ "name": "MetaTxHandlerSelectorMismatch",
48
64
  "type": "error"
49
65
  },
50
66
  {
@@ -158,17 +158,33 @@
158
158
  {
159
159
  "inputs": [
160
160
  {
161
- "internalType": "uint256",
162
- "name": "from",
163
- "type": "uint256"
161
+ "internalType": "address",
162
+ "name": "signedContract",
163
+ "type": "address"
164
164
  },
165
165
  {
166
- "internalType": "uint256",
167
- "name": "to",
168
- "type": "uint256"
166
+ "internalType": "address",
167
+ "name": "entryContract",
168
+ "type": "address"
169
+ }
170
+ ],
171
+ "name": "MetaTxHandlerContractMismatch",
172
+ "type": "error"
173
+ },
174
+ {
175
+ "inputs": [
176
+ {
177
+ "internalType": "bytes4",
178
+ "name": "signedSelector",
179
+ "type": "bytes4"
180
+ },
181
+ {
182
+ "internalType": "bytes4",
183
+ "name": "entrySelector",
184
+ "type": "bytes4"
169
185
  }
170
186
  ],
171
- "name": "InvalidRange",
187
+ "name": "MetaTxHandlerSelectorMismatch",
172
188
  "type": "error"
173
189
  },
174
190
  {
@@ -46,27 +46,43 @@
46
46
  "inputs": [
47
47
  {
48
48
  "internalType": "uint256",
49
- "name": "from",
49
+ "name": "provided",
50
50
  "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "InvalidTimeLockPeriod",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "address",
60
+ "name": "signedContract",
61
+ "type": "address"
51
62
  },
52
63
  {
53
- "internalType": "uint256",
54
- "name": "to",
55
- "type": "uint256"
64
+ "internalType": "address",
65
+ "name": "entryContract",
66
+ "type": "address"
56
67
  }
57
68
  ],
58
- "name": "InvalidRange",
69
+ "name": "MetaTxHandlerContractMismatch",
59
70
  "type": "error"
60
71
  },
61
72
  {
62
73
  "inputs": [
63
74
  {
64
- "internalType": "uint256",
65
- "name": "provided",
66
- "type": "uint256"
75
+ "internalType": "bytes4",
76
+ "name": "signedSelector",
77
+ "type": "bytes4"
78
+ },
79
+ {
80
+ "internalType": "bytes4",
81
+ "name": "entrySelector",
82
+ "type": "bytes4"
67
83
  }
68
84
  ],
69
- "name": "InvalidTimeLockPeriod",
85
+ "name": "MetaTxHandlerSelectorMismatch",
70
86
  "type": "error"
71
87
  },
72
88
  {
@@ -69,20 +69,41 @@
69
69
  "name": "InvalidInitialization",
70
70
  "type": "error"
71
71
  },
72
+ {
73
+ "inputs": [],
74
+ "name": "InvalidPayment",
75
+ "type": "error"
76
+ },
72
77
  {
73
78
  "inputs": [
74
79
  {
75
- "internalType": "uint256",
76
- "name": "from",
77
- "type": "uint256"
80
+ "internalType": "address",
81
+ "name": "signedContract",
82
+ "type": "address"
78
83
  },
79
84
  {
80
- "internalType": "uint256",
81
- "name": "to",
82
- "type": "uint256"
85
+ "internalType": "address",
86
+ "name": "entryContract",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "MetaTxHandlerContractMismatch",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "bytes4",
97
+ "name": "signedSelector",
98
+ "type": "bytes4"
99
+ },
100
+ {
101
+ "internalType": "bytes4",
102
+ "name": "entrySelector",
103
+ "type": "bytes4"
83
104
  }
84
105
  ],
85
- "name": "InvalidRange",
106
+ "name": "MetaTxHandlerSelectorMismatch",
86
107
  "type": "error"
87
108
  },
88
109
  {
@@ -4,22 +4,6 @@
4
4
  "name": "InvalidInitialization",
5
5
  "type": "error"
6
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
7
  {
24
8
  "inputs": [
25
9
  {
@@ -47,22 +47,6 @@
47
47
  "name": "InvalidOperation",
48
48
  "type": "error"
49
49
  },
50
- {
51
- "inputs": [
52
- {
53
- "internalType": "uint256",
54
- "name": "from",
55
- "type": "uint256"
56
- },
57
- {
58
- "internalType": "uint256",
59
- "name": "to",
60
- "type": "uint256"
61
- }
62
- ],
63
- "name": "InvalidRange",
64
- "type": "error"
65
- },
66
50
  {
67
51
  "inputs": [
68
52
  {
@@ -349,6 +349,22 @@
349
349
  "name": "MetaTxExpired",
350
350
  "type": "error"
351
351
  },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "address",
356
+ "name": "signedContract",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "internalType": "address",
361
+ "name": "entryContract",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "name": "MetaTxHandlerContractMismatch",
366
+ "type": "error"
367
+ },
352
368
  {
353
369
  "inputs": [
354
370
  {
@@ -596,6 +612,32 @@
596
612
  "name": "TransactionEvent",
597
613
  "type": "event"
598
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
+ },
599
641
  {
600
642
  "inputs": [],
601
643
  "name": "MAX_BATCH_SIZE",
@@ -637,7 +679,7 @@
637
679
  },
638
680
  {
639
681
  "inputs": [],
640
- "name": "MAX_ROLES",
682
+ "name": "MAX_RESULT_PREVIEW_BYTES",
641
683
  "outputs": [
642
684
  {
643
685
  "internalType": "uint256",
@@ -650,12 +692,12 @@
650
692
  },
651
693
  {
652
694
  "inputs": [],
653
- "name": "NATIVE_TRANSFER_OPERATION",
695
+ "name": "MAX_ROLES",
654
696
  "outputs": [
655
697
  {
656
- "internalType": "bytes32",
698
+ "internalType": "uint256",
657
699
  "name": "",
658
- "type": "bytes32"
700
+ "type": "uint256"
659
701
  }
660
702
  ],
661
703
  "stateMutability": "view",
@@ -58,20 +58,41 @@
58
58
  "name": "InvalidInitialization",
59
59
  "type": "error"
60
60
  },
61
+ {
62
+ "inputs": [],
63
+ "name": "InvalidPayment",
64
+ "type": "error"
65
+ },
61
66
  {
62
67
  "inputs": [
63
68
  {
64
- "internalType": "uint256",
65
- "name": "from",
66
- "type": "uint256"
69
+ "internalType": "address",
70
+ "name": "signedContract",
71
+ "type": "address"
67
72
  },
68
73
  {
69
- "internalType": "uint256",
70
- "name": "to",
71
- "type": "uint256"
74
+ "internalType": "address",
75
+ "name": "entryContract",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "MetaTxHandlerContractMismatch",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "bytes4",
86
+ "name": "signedSelector",
87
+ "type": "bytes4"
88
+ },
89
+ {
90
+ "internalType": "bytes4",
91
+ "name": "entrySelector",
92
+ "type": "bytes4"
72
93
  }
73
94
  ],
74
- "name": "InvalidRange",
95
+ "name": "MetaTxHandlerSelectorMismatch",
75
96
  "type": "error"
76
97
  },
77
98
  {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  {
55
55
  "inputs": [],
56
- "name": "CONTROLLER_CONFIG_OPERATION",
56
+ "name": "CONTROLLER_CONFIG_BATCH",
57
57
  "outputs": [
58
58
  {
59
59
  "internalType": "bytes32",