@bloxchain/contracts 1.0.0-alpha.13 → 1.0.0-alpha.14
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 +1 -1
- package/abi/BaseStateMachine.abi.json +2 -45
- package/abi/GuardController.abi.json +20 -63
- package/abi/RuntimeRBAC.abi.json +20 -63
- package/abi/SecureOwnable.abi.json +20 -63
- package/core/base/BaseStateMachine.sol +943 -967
- package/core/execution/GuardController.sol +447 -458
- package/core/lib/EngineBlox.sol +2317 -2314
- package/core/security/SecureOwnable.sol +394 -394
- package/package.json +1 -1
- package/abi/AccountBlox.abi.json +0 -3946
- package/abi/BareBlox.abi.json +0 -1378
- package/abi/RoleBlox.abi.json +0 -2994
- 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/README.md
CHANGED
|
@@ -50,7 +50,7 @@ import "@bloxchain/contracts/core/lib/interfaces/IDefinition.sol";
|
|
|
50
50
|
|
|
51
51
|
### Templates and examples
|
|
52
52
|
|
|
53
|
-
Templates (e.g.
|
|
53
|
+
Templates (e.g. AccountBlox, CopyBlox) and example applications (SimpleVault, SimpleRWA20) live in the main repository under `contracts/examples/`. They are not included in this npm package. See the [main repo](https://github.com/PracticalParticle/Bloxchain-Protocol) for full documentation and examples.
|
|
54
54
|
|
|
55
55
|
## Dependencies
|
|
56
56
|
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
1022
|
"internalType": "bytes32",
|
|
1023
|
-
"name": "
|
|
1023
|
+
"name": "hash",
|
|
1024
1024
|
"type": "bytes32"
|
|
1025
1025
|
},
|
|
1026
1026
|
{
|
|
@@ -1093,7 +1093,7 @@
|
|
|
1093
1093
|
"type": "bytes32"
|
|
1094
1094
|
}
|
|
1095
1095
|
],
|
|
1096
|
-
"name": "
|
|
1096
|
+
"name": "getAuthorizedWallets",
|
|
1097
1097
|
"outputs": [
|
|
1098
1098
|
{
|
|
1099
1099
|
"internalType": "address[]",
|
|
@@ -1104,49 +1104,6 @@
|
|
|
1104
1104
|
"stateMutability": "view",
|
|
1105
1105
|
"type": "function"
|
|
1106
1106
|
},
|
|
1107
|
-
{
|
|
1108
|
-
"inputs": [
|
|
1109
|
-
{
|
|
1110
|
-
"internalType": "bytes4",
|
|
1111
|
-
"name": "functionSelector",
|
|
1112
|
-
"type": "bytes4"
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"name": "functionSchemaExists",
|
|
1116
|
-
"outputs": [
|
|
1117
|
-
{
|
|
1118
|
-
"internalType": "bool",
|
|
1119
|
-
"name": "",
|
|
1120
|
-
"type": "bool"
|
|
1121
|
-
}
|
|
1122
|
-
],
|
|
1123
|
-
"stateMutability": "view",
|
|
1124
|
-
"type": "function"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"inputs": [
|
|
1128
|
-
{
|
|
1129
|
-
"internalType": "bytes4",
|
|
1130
|
-
"name": "functionSelector",
|
|
1131
|
-
"type": "bytes4"
|
|
1132
|
-
},
|
|
1133
|
-
{
|
|
1134
|
-
"internalType": "enum EngineBlox.TxAction",
|
|
1135
|
-
"name": "action",
|
|
1136
|
-
"type": "uint8"
|
|
1137
|
-
}
|
|
1138
|
-
],
|
|
1139
|
-
"name": "isActionSupportedByFunction",
|
|
1140
|
-
"outputs": [
|
|
1141
|
-
{
|
|
1142
|
-
"internalType": "bool",
|
|
1143
|
-
"name": "",
|
|
1144
|
-
"type": "bool"
|
|
1145
|
-
}
|
|
1146
|
-
],
|
|
1147
|
-
"stateMutability": "view",
|
|
1148
|
-
"type": "function"
|
|
1149
|
-
},
|
|
1150
1107
|
{
|
|
1151
1108
|
"inputs": [
|
|
1152
1109
|
{
|
|
@@ -261,25 +261,6 @@
|
|
|
261
261
|
"stateMutability": "view",
|
|
262
262
|
"type": "function"
|
|
263
263
|
},
|
|
264
|
-
{
|
|
265
|
-
"inputs": [
|
|
266
|
-
{
|
|
267
|
-
"internalType": "bytes4",
|
|
268
|
-
"name": "functionSelector",
|
|
269
|
-
"type": "bytes4"
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"name": "functionSchemaExists",
|
|
273
|
-
"outputs": [
|
|
274
|
-
{
|
|
275
|
-
"internalType": "bool",
|
|
276
|
-
"name": "",
|
|
277
|
-
"type": "bool"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"stateMutability": "view",
|
|
281
|
-
"type": "function"
|
|
282
|
-
},
|
|
283
264
|
{
|
|
284
265
|
"inputs": [
|
|
285
266
|
{
|
|
@@ -808,6 +789,25 @@
|
|
|
808
789
|
"stateMutability": "view",
|
|
809
790
|
"type": "function"
|
|
810
791
|
},
|
|
792
|
+
{
|
|
793
|
+
"inputs": [
|
|
794
|
+
{
|
|
795
|
+
"internalType": "bytes32",
|
|
796
|
+
"name": "roleHash",
|
|
797
|
+
"type": "bytes32"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"name": "getAuthorizedWallets",
|
|
801
|
+
"outputs": [
|
|
802
|
+
{
|
|
803
|
+
"internalType": "address[]",
|
|
804
|
+
"name": "",
|
|
805
|
+
"type": "address[]"
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"stateMutability": "view",
|
|
809
|
+
"type": "function"
|
|
810
|
+
},
|
|
811
811
|
{
|
|
812
812
|
"inputs": [],
|
|
813
813
|
"name": "getBroadcasters",
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
960
|
"internalType": "bytes32",
|
|
961
|
-
"name": "
|
|
961
|
+
"name": "hash",
|
|
962
962
|
"type": "bytes32"
|
|
963
963
|
},
|
|
964
964
|
{
|
|
@@ -1305,25 +1305,6 @@
|
|
|
1305
1305
|
"stateMutability": "view",
|
|
1306
1306
|
"type": "function"
|
|
1307
1307
|
},
|
|
1308
|
-
{
|
|
1309
|
-
"inputs": [
|
|
1310
|
-
{
|
|
1311
|
-
"internalType": "bytes32",
|
|
1312
|
-
"name": "roleHash",
|
|
1313
|
-
"type": "bytes32"
|
|
1314
|
-
}
|
|
1315
|
-
],
|
|
1316
|
-
"name": "getWalletsInRole",
|
|
1317
|
-
"outputs": [
|
|
1318
|
-
{
|
|
1319
|
-
"internalType": "address[]",
|
|
1320
|
-
"name": "",
|
|
1321
|
-
"type": "address[]"
|
|
1322
|
-
}
|
|
1323
|
-
],
|
|
1324
|
-
"stateMutability": "view",
|
|
1325
|
-
"type": "function"
|
|
1326
|
-
},
|
|
1327
1308
|
{
|
|
1328
1309
|
"inputs": [
|
|
1329
1310
|
{
|
|
@@ -1361,30 +1342,6 @@
|
|
|
1361
1342
|
"stateMutability": "view",
|
|
1362
1343
|
"type": "function"
|
|
1363
1344
|
},
|
|
1364
|
-
{
|
|
1365
|
-
"inputs": [
|
|
1366
|
-
{
|
|
1367
|
-
"internalType": "bytes4",
|
|
1368
|
-
"name": "functionSelector",
|
|
1369
|
-
"type": "bytes4"
|
|
1370
|
-
},
|
|
1371
|
-
{
|
|
1372
|
-
"internalType": "enum EngineBlox.TxAction",
|
|
1373
|
-
"name": "action",
|
|
1374
|
-
"type": "uint8"
|
|
1375
|
-
}
|
|
1376
|
-
],
|
|
1377
|
-
"name": "isActionSupportedByFunction",
|
|
1378
|
-
"outputs": [
|
|
1379
|
-
{
|
|
1380
|
-
"internalType": "bool",
|
|
1381
|
-
"name": "",
|
|
1382
|
-
"type": "bool"
|
|
1383
|
-
}
|
|
1384
|
-
],
|
|
1385
|
-
"stateMutability": "view",
|
|
1386
|
-
"type": "function"
|
|
1387
|
-
},
|
|
1388
1345
|
{
|
|
1389
1346
|
"inputs": [],
|
|
1390
1347
|
"name": "owner",
|
package/abi/RuntimeRBAC.abi.json
CHANGED
|
@@ -261,25 +261,6 @@
|
|
|
261
261
|
"stateMutability": "view",
|
|
262
262
|
"type": "function"
|
|
263
263
|
},
|
|
264
|
-
{
|
|
265
|
-
"inputs": [
|
|
266
|
-
{
|
|
267
|
-
"internalType": "bytes4",
|
|
268
|
-
"name": "functionSelector",
|
|
269
|
-
"type": "bytes4"
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"name": "functionSchemaExists",
|
|
273
|
-
"outputs": [
|
|
274
|
-
{
|
|
275
|
-
"internalType": "bool",
|
|
276
|
-
"name": "",
|
|
277
|
-
"type": "bool"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"stateMutability": "view",
|
|
281
|
-
"type": "function"
|
|
282
|
-
},
|
|
283
264
|
{
|
|
284
265
|
"inputs": [
|
|
285
266
|
{
|
|
@@ -808,6 +789,25 @@
|
|
|
808
789
|
"stateMutability": "view",
|
|
809
790
|
"type": "function"
|
|
810
791
|
},
|
|
792
|
+
{
|
|
793
|
+
"inputs": [
|
|
794
|
+
{
|
|
795
|
+
"internalType": "bytes32",
|
|
796
|
+
"name": "roleHash",
|
|
797
|
+
"type": "bytes32"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"name": "getAuthorizedWallets",
|
|
801
|
+
"outputs": [
|
|
802
|
+
{
|
|
803
|
+
"internalType": "address[]",
|
|
804
|
+
"name": "",
|
|
805
|
+
"type": "address[]"
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"stateMutability": "view",
|
|
809
|
+
"type": "function"
|
|
810
|
+
},
|
|
811
811
|
{
|
|
812
812
|
"inputs": [],
|
|
813
813
|
"name": "getBroadcasters",
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
960
|
"internalType": "bytes32",
|
|
961
|
-
"name": "
|
|
961
|
+
"name": "hash",
|
|
962
962
|
"type": "bytes32"
|
|
963
963
|
},
|
|
964
964
|
{
|
|
@@ -1305,25 +1305,6 @@
|
|
|
1305
1305
|
"stateMutability": "view",
|
|
1306
1306
|
"type": "function"
|
|
1307
1307
|
},
|
|
1308
|
-
{
|
|
1309
|
-
"inputs": [
|
|
1310
|
-
{
|
|
1311
|
-
"internalType": "bytes32",
|
|
1312
|
-
"name": "roleHash",
|
|
1313
|
-
"type": "bytes32"
|
|
1314
|
-
}
|
|
1315
|
-
],
|
|
1316
|
-
"name": "getWalletsInRole",
|
|
1317
|
-
"outputs": [
|
|
1318
|
-
{
|
|
1319
|
-
"internalType": "address[]",
|
|
1320
|
-
"name": "",
|
|
1321
|
-
"type": "address[]"
|
|
1322
|
-
}
|
|
1323
|
-
],
|
|
1324
|
-
"stateMutability": "view",
|
|
1325
|
-
"type": "function"
|
|
1326
|
-
},
|
|
1327
1308
|
{
|
|
1328
1309
|
"inputs": [
|
|
1329
1310
|
{
|
|
@@ -1361,30 +1342,6 @@
|
|
|
1361
1342
|
"stateMutability": "view",
|
|
1362
1343
|
"type": "function"
|
|
1363
1344
|
},
|
|
1364
|
-
{
|
|
1365
|
-
"inputs": [
|
|
1366
|
-
{
|
|
1367
|
-
"internalType": "bytes4",
|
|
1368
|
-
"name": "functionSelector",
|
|
1369
|
-
"type": "bytes4"
|
|
1370
|
-
},
|
|
1371
|
-
{
|
|
1372
|
-
"internalType": "enum EngineBlox.TxAction",
|
|
1373
|
-
"name": "action",
|
|
1374
|
-
"type": "uint8"
|
|
1375
|
-
}
|
|
1376
|
-
],
|
|
1377
|
-
"name": "isActionSupportedByFunction",
|
|
1378
|
-
"outputs": [
|
|
1379
|
-
{
|
|
1380
|
-
"internalType": "bool",
|
|
1381
|
-
"name": "",
|
|
1382
|
-
"type": "bool"
|
|
1383
|
-
}
|
|
1384
|
-
],
|
|
1385
|
-
"stateMutability": "view",
|
|
1386
|
-
"type": "function"
|
|
1387
|
-
},
|
|
1388
1345
|
{
|
|
1389
1346
|
"inputs": [],
|
|
1390
1347
|
"name": "owner",
|
|
@@ -287,25 +287,6 @@
|
|
|
287
287
|
"stateMutability": "view",
|
|
288
288
|
"type": "function"
|
|
289
289
|
},
|
|
290
|
-
{
|
|
291
|
-
"inputs": [
|
|
292
|
-
{
|
|
293
|
-
"internalType": "bytes4",
|
|
294
|
-
"name": "functionSelector",
|
|
295
|
-
"type": "bytes4"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"name": "functionSchemaExists",
|
|
299
|
-
"outputs": [
|
|
300
|
-
{
|
|
301
|
-
"internalType": "bool",
|
|
302
|
-
"name": "",
|
|
303
|
-
"type": "bool"
|
|
304
|
-
}
|
|
305
|
-
],
|
|
306
|
-
"stateMutability": "view",
|
|
307
|
-
"type": "function"
|
|
308
|
-
},
|
|
309
290
|
{
|
|
310
291
|
"inputs": [
|
|
311
292
|
{
|
|
@@ -834,6 +815,25 @@
|
|
|
834
815
|
"stateMutability": "view",
|
|
835
816
|
"type": "function"
|
|
836
817
|
},
|
|
818
|
+
{
|
|
819
|
+
"inputs": [
|
|
820
|
+
{
|
|
821
|
+
"internalType": "bytes32",
|
|
822
|
+
"name": "roleHash",
|
|
823
|
+
"type": "bytes32"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"name": "getAuthorizedWallets",
|
|
827
|
+
"outputs": [
|
|
828
|
+
{
|
|
829
|
+
"internalType": "address[]",
|
|
830
|
+
"name": "",
|
|
831
|
+
"type": "address[]"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"stateMutability": "view",
|
|
835
|
+
"type": "function"
|
|
836
|
+
},
|
|
837
837
|
{
|
|
838
838
|
"inputs": [],
|
|
839
839
|
"name": "getBroadcasters",
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
986
|
"internalType": "bytes32",
|
|
987
|
-
"name": "
|
|
987
|
+
"name": "hash",
|
|
988
988
|
"type": "bytes32"
|
|
989
989
|
},
|
|
990
990
|
{
|
|
@@ -1331,25 +1331,6 @@
|
|
|
1331
1331
|
"stateMutability": "view",
|
|
1332
1332
|
"type": "function"
|
|
1333
1333
|
},
|
|
1334
|
-
{
|
|
1335
|
-
"inputs": [
|
|
1336
|
-
{
|
|
1337
|
-
"internalType": "bytes32",
|
|
1338
|
-
"name": "roleHash",
|
|
1339
|
-
"type": "bytes32"
|
|
1340
|
-
}
|
|
1341
|
-
],
|
|
1342
|
-
"name": "getWalletsInRole",
|
|
1343
|
-
"outputs": [
|
|
1344
|
-
{
|
|
1345
|
-
"internalType": "address[]",
|
|
1346
|
-
"name": "",
|
|
1347
|
-
"type": "address[]"
|
|
1348
|
-
}
|
|
1349
|
-
],
|
|
1350
|
-
"stateMutability": "view",
|
|
1351
|
-
"type": "function"
|
|
1352
|
-
},
|
|
1353
1334
|
{
|
|
1354
1335
|
"inputs": [
|
|
1355
1336
|
{
|
|
@@ -1387,30 +1368,6 @@
|
|
|
1387
1368
|
"stateMutability": "view",
|
|
1388
1369
|
"type": "function"
|
|
1389
1370
|
},
|
|
1390
|
-
{
|
|
1391
|
-
"inputs": [
|
|
1392
|
-
{
|
|
1393
|
-
"internalType": "bytes4",
|
|
1394
|
-
"name": "functionSelector",
|
|
1395
|
-
"type": "bytes4"
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
"internalType": "enum EngineBlox.TxAction",
|
|
1399
|
-
"name": "action",
|
|
1400
|
-
"type": "uint8"
|
|
1401
|
-
}
|
|
1402
|
-
],
|
|
1403
|
-
"name": "isActionSupportedByFunction",
|
|
1404
|
-
"outputs": [
|
|
1405
|
-
{
|
|
1406
|
-
"internalType": "bool",
|
|
1407
|
-
"name": "",
|
|
1408
|
-
"type": "bool"
|
|
1409
|
-
}
|
|
1410
|
-
],
|
|
1411
|
-
"stateMutability": "view",
|
|
1412
|
-
"type": "function"
|
|
1413
|
-
},
|
|
1414
1371
|
{
|
|
1415
1372
|
"inputs": [],
|
|
1416
1373
|
"name": "owner",
|