@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.
- package/README.md +49 -0
- package/abi/BareBlox.abi.json +1341 -0
- package/abi/BaseStateMachine.abi.json +1308 -0
- package/abi/ControlBlox.abi.json +6210 -0
- package/abi/EngineBlox.abi.json +872 -0
- package/abi/GuardController.abi.json +3045 -0
- package/abi/IDefinition.abi.json +94 -0
- package/abi/RoleBlox.abi.json +4569 -0
- package/abi/RuntimeRBAC.abi.json +1857 -0
- package/abi/RuntimeRBACDefinitions.abi.json +133 -0
- package/abi/SecureBlox.abi.json +4085 -0
- package/abi/SecureOwnable.abi.json +4085 -0
- package/abi/SecureOwnableDefinitions.abi.json +354 -0
- package/abi/SimpleRWA20.abi.json +5545 -0
- package/abi/SimpleRWA20Definitions.abi.json +172 -0
- package/abi/SimpleVault.abi.json +5208 -0
- package/abi/SimpleVaultDefinitions.abi.json +250 -0
- package/contracts/core/access/RuntimeRBAC.sol +344 -0
- package/contracts/core/access/interface/IRuntimeRBAC.sol +108 -0
- package/contracts/core/access/lib/definitions/RuntimeRBACDefinitions.sol +168 -0
- package/contracts/core/base/BaseStateMachine.sol +834 -0
- package/contracts/core/base/interface/IBaseStateMachine.sol +153 -0
- package/contracts/core/execution/GuardController.sol +507 -0
- package/contracts/core/execution/interface/IGuardController.sol +120 -0
- package/contracts/core/execution/lib/definitions/GuardControllerDefinitions.sol +401 -0
- package/contracts/core/lib/EngineBlox.sol +2283 -0
- package/contracts/core/security/SecureOwnable.sol +419 -0
- package/contracts/core/security/interface/ISecureOwnable.sol +118 -0
- package/contracts/core/security/lib/definitions/SecureOwnableDefinitions.sol +757 -0
- package/contracts/interfaces/IDefinition.sol +40 -0
- package/contracts/interfaces/IEventForwarder.sol +33 -0
- package/contracts/interfaces/IOnActionHook.sol +79 -0
- package/contracts/utils/SharedValidation.sol +486 -0
- 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
|
+
]
|