@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,133 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "ROLE_CONFIG_BATCH",
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": "ROLE_CONFIG_BATCH_EXECUTE_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": "ROLE_CONFIG_BATCH_META_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": "getFunctionSchemas",
44
+ "outputs": [
45
+ {
46
+ "components": [
47
+ {
48
+ "internalType": "string",
49
+ "name": "functionSignature",
50
+ "type": "string"
51
+ },
52
+ {
53
+ "internalType": "bytes4",
54
+ "name": "functionSelector",
55
+ "type": "bytes4"
56
+ },
57
+ {
58
+ "internalType": "bytes32",
59
+ "name": "operationType",
60
+ "type": "bytes32"
61
+ },
62
+ {
63
+ "internalType": "string",
64
+ "name": "operationName",
65
+ "type": "string"
66
+ },
67
+ {
68
+ "internalType": "uint16",
69
+ "name": "supportedActionsBitmap",
70
+ "type": "uint16"
71
+ },
72
+ {
73
+ "internalType": "bool",
74
+ "name": "isProtected",
75
+ "type": "bool"
76
+ },
77
+ {
78
+ "internalType": "bytes4[]",
79
+ "name": "handlerForSelectors",
80
+ "type": "bytes4[]"
81
+ }
82
+ ],
83
+ "internalType": "struct EngineBlox.FunctionSchema[]",
84
+ "name": "",
85
+ "type": "tuple[]"
86
+ }
87
+ ],
88
+ "stateMutability": "pure",
89
+ "type": "function"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "getRolePermissions",
94
+ "outputs": [
95
+ {
96
+ "components": [
97
+ {
98
+ "internalType": "bytes32[]",
99
+ "name": "roleHashes",
100
+ "type": "bytes32[]"
101
+ },
102
+ {
103
+ "components": [
104
+ {
105
+ "internalType": "bytes4",
106
+ "name": "functionSelector",
107
+ "type": "bytes4"
108
+ },
109
+ {
110
+ "internalType": "uint16",
111
+ "name": "grantedActionsBitmap",
112
+ "type": "uint16"
113
+ },
114
+ {
115
+ "internalType": "bytes4[]",
116
+ "name": "handlerForSelectors",
117
+ "type": "bytes4[]"
118
+ }
119
+ ],
120
+ "internalType": "struct EngineBlox.FunctionPermission[]",
121
+ "name": "functionPermissions",
122
+ "type": "tuple[]"
123
+ }
124
+ ],
125
+ "internalType": "struct IDefinition.RolePermission",
126
+ "name": "",
127
+ "type": "tuple"
128
+ }
129
+ ],
130
+ "stateMutability": "pure",
131
+ "type": "function"
132
+ }
133
+ ]