@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,94 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "getFunctionSchemas",
5
+ "outputs": [
6
+ {
7
+ "components": [
8
+ {
9
+ "internalType": "string",
10
+ "name": "functionSignature",
11
+ "type": "string"
12
+ },
13
+ {
14
+ "internalType": "bytes4",
15
+ "name": "functionSelector",
16
+ "type": "bytes4"
17
+ },
18
+ {
19
+ "internalType": "bytes32",
20
+ "name": "operationType",
21
+ "type": "bytes32"
22
+ },
23
+ {
24
+ "internalType": "string",
25
+ "name": "operationName",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "internalType": "uint16",
30
+ "name": "supportedActionsBitmap",
31
+ "type": "uint16"
32
+ },
33
+ {
34
+ "internalType": "bool",
35
+ "name": "isProtected",
36
+ "type": "bool"
37
+ },
38
+ {
39
+ "internalType": "bytes4[]",
40
+ "name": "handlerForSelectors",
41
+ "type": "bytes4[]"
42
+ }
43
+ ],
44
+ "internalType": "struct EngineBlox.FunctionSchema[]",
45
+ "name": "",
46
+ "type": "tuple[]"
47
+ }
48
+ ],
49
+ "stateMutability": "pure",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "getRolePermissions",
55
+ "outputs": [
56
+ {
57
+ "components": [
58
+ {
59
+ "internalType": "bytes32[]",
60
+ "name": "roleHashes",
61
+ "type": "bytes32[]"
62
+ },
63
+ {
64
+ "components": [
65
+ {
66
+ "internalType": "bytes4",
67
+ "name": "functionSelector",
68
+ "type": "bytes4"
69
+ },
70
+ {
71
+ "internalType": "uint16",
72
+ "name": "grantedActionsBitmap",
73
+ "type": "uint16"
74
+ },
75
+ {
76
+ "internalType": "bytes4[]",
77
+ "name": "handlerForSelectors",
78
+ "type": "bytes4[]"
79
+ }
80
+ ],
81
+ "internalType": "struct EngineBlox.FunctionPermission[]",
82
+ "name": "functionPermissions",
83
+ "type": "tuple[]"
84
+ }
85
+ ],
86
+ "internalType": "struct IDefinition.RolePermission",
87
+ "name": "",
88
+ "type": "tuple"
89
+ }
90
+ ],
91
+ "stateMutability": "pure",
92
+ "type": "function"
93
+ }
94
+ ]