@bloxchain/contracts 1.0.0-alpha.6 → 1.0.0

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 (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +8 -9
  3. package/abi/BaseStateMachine.abi.json +773 -822
  4. package/abi/EngineBlox.abi.json +562 -552
  5. package/abi/GuardController.abi.json +1597 -1609
  6. package/abi/GuardControllerDefinitions.abi.json +257 -120
  7. package/abi/IDefinition.abi.json +57 -47
  8. package/abi/RuntimeRBAC.abi.json +841 -842
  9. package/abi/RuntimeRBACDefinitions.abi.json +265 -99
  10. package/abi/SecureOwnable.abi.json +1365 -1349
  11. package/abi/SecureOwnableDefinitions.abi.json +174 -164
  12. package/components/README.md +8 -0
  13. package/core/AUDIT.md +45 -0
  14. package/core/access/RuntimeRBAC.sol +130 -61
  15. package/core/access/interface/IRuntimeRBAC.sol +3 -3
  16. package/core/access/lib/definitions/RuntimeRBACDefinitions.sol +67 -3
  17. package/core/base/BaseStateMachine.sol +971 -967
  18. package/core/base/interface/IBaseStateMachine.sol +153 -160
  19. package/core/execution/GuardController.sol +89 -75
  20. package/core/execution/interface/IGuardController.sol +146 -160
  21. package/core/execution/lib/definitions/GuardControllerDefinitions.sol +180 -24
  22. package/core/lib/EngineBlox.sol +577 -327
  23. package/core/lib/interfaces/IDefinition.sol +49 -49
  24. package/core/lib/interfaces/IEventForwarder.sol +4 -2
  25. package/core/lib/utils/SharedValidation.sol +534 -487
  26. package/core/pattern/Account.sol +84 -65
  27. package/core/security/SecureOwnable.sol +446 -390
  28. package/core/security/interface/ISecureOwnable.sol +105 -105
  29. package/core/security/lib/definitions/SecureOwnableDefinitions.sol +49 -17
  30. package/package.json +11 -7
  31. package/standards/README.md +12 -0
  32. package/{core/research → standards/behavior}/ICopyable.sol +3 -11
  33. package/standards/hooks/IOnActionHook.sol +21 -0
  34. package/abi/AccountBlox.abi.json +0 -3916
  35. package/abi/BareBlox.abi.json +0 -1378
  36. package/abi/RoleBlox.abi.json +0 -2983
  37. package/abi/SecureBlox.abi.json +0 -2753
  38. package/abi/SimpleRWA20.abi.json +0 -4032
  39. package/abi/SimpleRWA20Definitions.abi.json +0 -191
  40. package/abi/SimpleVault.abi.json +0 -3407
  41. package/abi/SimpleVaultDefinitions.abi.json +0 -269
  42. package/core/research/BloxchainWallet.sol +0 -292
  43. package/core/research/FactoryBlox/FactoryBlox.sol +0 -346
  44. package/core/research/FactoryBlox/FactoryBloxDefinitions.sol +0 -143
  45. package/core/research/erc1155-blox/ERC1155Blox.sol +0 -169
  46. package/core/research/erc1155-blox/lib/definitions/ERC1155BloxDefinitions.sol +0 -203
  47. package/core/research/erc20-blox/ERC20Blox.sol +0 -167
  48. package/core/research/erc20-blox/lib/definitions/ERC20BloxDefinitions.sol +0 -185
  49. package/core/research/erc721-blox/ERC721Blox.sol +0 -131
  50. package/core/research/erc721-blox/lib/definitions/ERC721BloxDefinitions.sol +0 -172
  51. package/core/research/lending-blox/.gitkeep +0 -1
  52. package/core/research/p2p-blox/P2PBlox.sol +0 -266
  53. package/core/research/p2p-blox/README.md +0 -85
  54. package/core/research/p2p-blox/lib/definitions/P2PBloxDefinitions.sol +0 -19
@@ -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
- ]