@bloxchain/contracts 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 (42) hide show
  1. package/README.md +7 -7
  2. package/abi/BaseStateMachine.abi.json +85 -45
  3. package/abi/EngineBlox.abi.json +73 -90
  4. package/abi/GuardController.abi.json +252 -806
  5. package/abi/{SimpleVaultDefinitions.abi.json → GuardControllerDefinitions.abi.json} +170 -28
  6. package/abi/IDefinition.abi.json +5 -0
  7. package/abi/RuntimeRBAC.abi.json +155 -218
  8. package/abi/RuntimeRBACDefinitions.abi.json +179 -0
  9. package/abi/SecureOwnable.abi.json +524 -1621
  10. package/abi/SecureOwnableDefinitions.abi.json +5 -0
  11. package/components/README.md +8 -0
  12. package/core/access/RuntimeRBAC.sol +255 -270
  13. package/core/access/interface/IRuntimeRBAC.sol +55 -84
  14. package/core/access/lib/definitions/RuntimeRBACDefinitions.sol +93 -2
  15. package/core/base/BaseStateMachine.sol +193 -107
  16. package/core/base/interface/IBaseStateMachine.sol +153 -153
  17. package/core/execution/GuardController.sol +155 -131
  18. package/core/execution/interface/IGuardController.sol +146 -120
  19. package/core/execution/lib/definitions/GuardControllerDefinitions.sol +193 -43
  20. package/core/lib/EngineBlox.sol +2683 -2322
  21. package/{interfaces → core/lib/interfaces}/IDefinition.sol +49 -49
  22. package/{interfaces → core/lib/interfaces}/IEventForwarder.sol +33 -33
  23. package/{utils → core/lib/utils}/SharedValidation.sol +61 -8
  24. package/core/pattern/Account.sol +84 -0
  25. package/core/security/SecureOwnable.sol +456 -412
  26. package/core/security/interface/ISecureOwnable.sol +105 -104
  27. package/core/security/lib/definitions/SecureOwnableDefinitions.sol +22 -6
  28. package/package.json +5 -5
  29. package/standards/README.md +12 -0
  30. package/standards/behavior/ICopyable.sol +34 -0
  31. package/standards/hooks/IOnActionHook.sol +21 -0
  32. package/abi/AccountBlox.abi.json +0 -5799
  33. package/abi/BareBlox.abi.json +0 -1284
  34. package/abi/RoleBlox.abi.json +0 -4209
  35. package/abi/SecureBlox.abi.json +0 -3828
  36. package/abi/SimpleRWA20.abi.json +0 -5288
  37. package/abi/SimpleRWA20Definitions.abi.json +0 -191
  38. package/abi/SimpleVault.abi.json +0 -4951
  39. package/core/research/BloxchainWallet.sol +0 -306
  40. package/core/research/erc20-blox/ERC20Blox.sol +0 -140
  41. package/core/research/erc20-blox/lib/definitions/ERC20BloxDefinitions.sol +0 -185
  42. package/interfaces/IOnActionHook.sol +0 -79
@@ -1,191 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "BURN_TOKENS",
5
- "outputs": [
6
- {
7
- "internalType": "bytes32",
8
- "name": "",
9
- "type": "bytes32"
10
- }
11
- ],
12
- "stateMutability": "view",
13
- "type": "function"
14
- },
15
- {
16
- "inputs": [],
17
- "name": "BURN_TOKENS_META_SELECTOR",
18
- "outputs": [
19
- {
20
- "internalType": "bytes4",
21
- "name": "",
22
- "type": "bytes4"
23
- }
24
- ],
25
- "stateMutability": "view",
26
- "type": "function"
27
- },
28
- {
29
- "inputs": [],
30
- "name": "BURN_TOKENS_SELECTOR",
31
- "outputs": [
32
- {
33
- "internalType": "bytes4",
34
- "name": "",
35
- "type": "bytes4"
36
- }
37
- ],
38
- "stateMutability": "view",
39
- "type": "function"
40
- },
41
- {
42
- "inputs": [],
43
- "name": "MINT_TOKENS",
44
- "outputs": [
45
- {
46
- "internalType": "bytes32",
47
- "name": "",
48
- "type": "bytes32"
49
- }
50
- ],
51
- "stateMutability": "view",
52
- "type": "function"
53
- },
54
- {
55
- "inputs": [],
56
- "name": "MINT_TOKENS_META_SELECTOR",
57
- "outputs": [
58
- {
59
- "internalType": "bytes4",
60
- "name": "",
61
- "type": "bytes4"
62
- }
63
- ],
64
- "stateMutability": "view",
65
- "type": "function"
66
- },
67
- {
68
- "inputs": [],
69
- "name": "MINT_TOKENS_SELECTOR",
70
- "outputs": [
71
- {
72
- "internalType": "bytes4",
73
- "name": "",
74
- "type": "bytes4"
75
- }
76
- ],
77
- "stateMutability": "view",
78
- "type": "function"
79
- },
80
- {
81
- "inputs": [],
82
- "name": "getFunctionSchemas",
83
- "outputs": [
84
- {
85
- "components": [
86
- {
87
- "internalType": "string",
88
- "name": "functionSignature",
89
- "type": "string"
90
- },
91
- {
92
- "internalType": "bytes4",
93
- "name": "functionSelector",
94
- "type": "bytes4"
95
- },
96
- {
97
- "internalType": "bytes32",
98
- "name": "operationType",
99
- "type": "bytes32"
100
- },
101
- {
102
- "internalType": "string",
103
- "name": "operationName",
104
- "type": "string"
105
- },
106
- {
107
- "internalType": "uint16",
108
- "name": "supportedActionsBitmap",
109
- "type": "uint16"
110
- },
111
- {
112
- "internalType": "bool",
113
- "name": "isProtected",
114
- "type": "bool"
115
- },
116
- {
117
- "internalType": "bytes4[]",
118
- "name": "handlerForSelectors",
119
- "type": "bytes4[]"
120
- }
121
- ],
122
- "internalType": "struct EngineBlox.FunctionSchema[]",
123
- "name": "",
124
- "type": "tuple[]"
125
- }
126
- ],
127
- "stateMutability": "pure",
128
- "type": "function"
129
- },
130
- {
131
- "inputs": [],
132
- "name": "getRolePermissions",
133
- "outputs": [
134
- {
135
- "components": [
136
- {
137
- "internalType": "bytes32[]",
138
- "name": "roleHashes",
139
- "type": "bytes32[]"
140
- },
141
- {
142
- "components": [
143
- {
144
- "internalType": "bytes4",
145
- "name": "functionSelector",
146
- "type": "bytes4"
147
- },
148
- {
149
- "internalType": "uint16",
150
- "name": "grantedActionsBitmap",
151
- "type": "uint16"
152
- },
153
- {
154
- "internalType": "bytes4[]",
155
- "name": "handlerForSelectors",
156
- "type": "bytes4[]"
157
- }
158
- ],
159
- "internalType": "struct EngineBlox.FunctionPermission[]",
160
- "name": "functionPermissions",
161
- "type": "tuple[]"
162
- }
163
- ],
164
- "internalType": "struct IDefinition.RolePermission",
165
- "name": "",
166
- "type": "tuple"
167
- }
168
- ],
169
- "stateMutability": "pure",
170
- "type": "function"
171
- },
172
- {
173
- "inputs": [
174
- {
175
- "internalType": "bytes4",
176
- "name": "interfaceId",
177
- "type": "bytes4"
178
- }
179
- ],
180
- "name": "supportsInterface",
181
- "outputs": [
182
- {
183
- "internalType": "bool",
184
- "name": "",
185
- "type": "bool"
186
- }
187
- ],
188
- "stateMutability": "pure",
189
- "type": "function"
190
- }
191
- ]