@bloxchain/contracts 1.0.0-alpha.7 → 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.
- package/CHANGELOG.md +19 -0
- package/README.md +8 -9
- package/abi/BaseStateMachine.abi.json +773 -822
- package/abi/EngineBlox.abi.json +562 -552
- package/abi/GuardController.abi.json +1597 -1609
- package/abi/GuardControllerDefinitions.abi.json +235 -199
- package/abi/IDefinition.abi.json +57 -47
- package/abi/RuntimeRBAC.abi.json +841 -842
- package/abi/RuntimeRBACDefinitions.abi.json +212 -202
- package/abi/SecureOwnable.abi.json +1365 -1349
- package/abi/SecureOwnableDefinitions.abi.json +174 -164
- package/core/AUDIT.md +45 -0
- package/core/access/RuntimeRBAC.sol +130 -61
- package/core/access/interface/IRuntimeRBAC.sol +3 -3
- package/core/access/lib/definitions/RuntimeRBACDefinitions.sol +7 -3
- package/core/base/BaseStateMachine.sol +971 -967
- package/core/base/interface/IBaseStateMachine.sol +153 -160
- package/core/execution/GuardController.sol +89 -75
- package/core/execution/interface/IGuardController.sol +146 -160
- package/core/execution/lib/definitions/GuardControllerDefinitions.sol +136 -25
- package/core/lib/EngineBlox.sol +577 -327
- package/core/lib/interfaces/IDefinition.sol +49 -49
- package/core/lib/interfaces/IEventForwarder.sol +4 -2
- package/core/lib/utils/SharedValidation.sol +534 -490
- package/core/pattern/Account.sol +84 -75
- package/core/security/SecureOwnable.sol +446 -390
- package/core/security/interface/ISecureOwnable.sol +105 -105
- package/core/security/lib/definitions/SecureOwnableDefinitions.sol +49 -17
- package/package.json +51 -49
- package/standards/behavior/ICopyable.sol +3 -11
- package/standards/hooks/IOnActionHook.sol +1 -1
- package/abi/AccountBlox.abi.json +0 -3935
- package/abi/BareBlox.abi.json +0 -1378
- package/abi/RoleBlox.abi.json +0 -2983
- package/abi/SecureBlox.abi.json +0 -2753
- package/abi/SimpleRWA20.abi.json +0 -4032
- package/abi/SimpleRWA20Definitions.abi.json +0 -191
- package/abi/SimpleVault.abi.json +0 -3407
- package/abi/SimpleVaultDefinitions.abi.json +0 -269
- package/core/research/BloxchainWallet.sol +0 -133
- package/core/research/FactoryBlox/FactoryBlox.sol +0 -343
- package/core/research/FactoryBlox/FactoryBloxDefinitions.sol +0 -143
- package/core/research/erc1155-blox/ERC1155Blox.sol +0 -169
- package/core/research/erc1155-blox/lib/definitions/ERC1155BloxDefinitions.sol +0 -203
- package/core/research/erc20-blox/ERC20Blox.sol +0 -167
- package/core/research/erc20-blox/lib/definitions/ERC20BloxDefinitions.sol +0 -185
- package/core/research/erc721-blox/ERC721Blox.sol +0 -131
- package/core/research/erc721-blox/lib/definitions/ERC721BloxDefinitions.sol +0 -172
- package/core/research/lending-blox/.gitkeep +0 -1
- package/core/research/p2p-blox/P2PBlox.sol +0 -266
- package/core/research/p2p-blox/README.md +0 -85
- 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
|
-
]
|