@bloxchain/contracts 1.0.0-alpha

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 (34) hide show
  1. package/README.md +49 -0
  2. package/abi/BareBlox.abi.json +1341 -0
  3. package/abi/BaseStateMachine.abi.json +1308 -0
  4. package/abi/ControlBlox.abi.json +6210 -0
  5. package/abi/EngineBlox.abi.json +872 -0
  6. package/abi/GuardController.abi.json +3045 -0
  7. package/abi/IDefinition.abi.json +94 -0
  8. package/abi/RoleBlox.abi.json +4569 -0
  9. package/abi/RuntimeRBAC.abi.json +1857 -0
  10. package/abi/RuntimeRBACDefinitions.abi.json +133 -0
  11. package/abi/SecureBlox.abi.json +4085 -0
  12. package/abi/SecureOwnable.abi.json +4085 -0
  13. package/abi/SecureOwnableDefinitions.abi.json +354 -0
  14. package/abi/SimpleRWA20.abi.json +5545 -0
  15. package/abi/SimpleRWA20Definitions.abi.json +172 -0
  16. package/abi/SimpleVault.abi.json +5208 -0
  17. package/abi/SimpleVaultDefinitions.abi.json +250 -0
  18. package/contracts/core/access/RuntimeRBAC.sol +344 -0
  19. package/contracts/core/access/interface/IRuntimeRBAC.sol +108 -0
  20. package/contracts/core/access/lib/definitions/RuntimeRBACDefinitions.sol +168 -0
  21. package/contracts/core/base/BaseStateMachine.sol +834 -0
  22. package/contracts/core/base/interface/IBaseStateMachine.sol +153 -0
  23. package/contracts/core/execution/GuardController.sol +507 -0
  24. package/contracts/core/execution/interface/IGuardController.sol +120 -0
  25. package/contracts/core/execution/lib/definitions/GuardControllerDefinitions.sol +401 -0
  26. package/contracts/core/lib/EngineBlox.sol +2283 -0
  27. package/contracts/core/security/SecureOwnable.sol +419 -0
  28. package/contracts/core/security/interface/ISecureOwnable.sol +118 -0
  29. package/contracts/core/security/lib/definitions/SecureOwnableDefinitions.sol +757 -0
  30. package/contracts/interfaces/IDefinition.sol +40 -0
  31. package/contracts/interfaces/IEventForwarder.sol +33 -0
  32. package/contracts/interfaces/IOnActionHook.sol +79 -0
  33. package/contracts/utils/SharedValidation.sol +486 -0
  34. package/package.json +47 -0
@@ -0,0 +1,172 @@
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
+ ]