@lazy-sol/access-control-upgradeable 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
// Import functions from each module
|
2
|
+
|
3
|
+
// RBAC features and roles
|
4
|
+
const {
|
5
|
+
ROLE_ACCESS_MANAGER,
|
6
|
+
ROLE_UPGRADE_MANAGER,
|
7
|
+
FULL_PRIVILEGES_MASK,
|
8
|
+
or,
|
9
|
+
not,
|
10
|
+
} = require("./scripts/include/features_roles");
|
11
|
+
|
12
|
+
// Re-export the functions
|
13
|
+
module.exports = {
|
14
|
+
ROLE_ACCESS_MANAGER,
|
15
|
+
ROLE_UPGRADE_MANAGER,
|
16
|
+
FULL_PRIVILEGES_MASK,
|
17
|
+
or,
|
18
|
+
not,
|
19
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lazy-sol/access-control-upgradeable",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.5",
|
4
4
|
"description": "Enable the modular plug and play (PnP) architecture for your dapp by incorporating the role-based access control (RBAC) into the smart contracts",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -22,19 +22,19 @@
|
|
22
22
|
"author": "Basil Gorin",
|
23
23
|
"license": "MIT",
|
24
24
|
"dependencies": {
|
25
|
-
"@lazy-sol/a-missing-gem": "^1.0.
|
25
|
+
"@lazy-sol/a-missing-gem": "^1.0.4",
|
26
26
|
"@nomiclabs/hardhat-truffle5": "^2.0.7",
|
27
27
|
"@openzeppelin/contracts-upgradeable": "^4.9.6",
|
28
28
|
"audit": "^0.0.6",
|
29
|
-
"hardhat": "^2.
|
29
|
+
"hardhat": "^2.22.4",
|
30
30
|
"hardhat-deploy": "^0.11.45"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"@lazy-sol/zeppelin-test-helpers": "^1.0.0",
|
34
34
|
"@openzeppelin/contracts": "^4.9.6",
|
35
|
-
"hardhat-dependency-injector": "^1.0.
|
35
|
+
"hardhat-dependency-injector": "^1.0.1",
|
36
36
|
"hardhat-gas-reporter": "^1.0.10",
|
37
|
-
"solidity-coverage": "^0.8.
|
37
|
+
"solidity-coverage": "^0.8.12"
|
38
38
|
},
|
39
39
|
"overrides": {
|
40
40
|
"tough-cookie": "^4.1.3",
|
@@ -19,13 +19,13 @@ const {
|
|
19
19
|
const {
|
20
20
|
random_bn255,
|
21
21
|
random_bn256,
|
22
|
-
} = require("@lazy-sol/a-missing-gem
|
22
|
+
} = require("@lazy-sol/a-missing-gem");
|
23
23
|
|
24
24
|
// RBAC core features and roles
|
25
25
|
const {
|
26
26
|
not,
|
27
27
|
ROLE_ACCESS_MANAGER, FULL_PRIVILEGES_MASK,
|
28
|
-
} = require("
|
28
|
+
} = require("../../scripts/include/features_roles");
|
29
29
|
|
30
30
|
/**
|
31
31
|
* RBAC core behaviour
|
package/test/rbac_upgradeable.js
CHANGED
File without changes
|