@lazy-sol/access-control 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",
|
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": {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"deploy": "hardhat deploy"
|
12
12
|
},
|
13
13
|
"engines": {
|
14
|
-
"node": ">=
|
14
|
+
"node": ">=18.0.0"
|
15
15
|
},
|
16
16
|
"keywords": [
|
17
17
|
"RBAC",
|
@@ -22,15 +22,15 @@
|
|
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
|
-
"hardhat": "^2.
|
27
|
+
"hardhat": "^2.22.4",
|
28
28
|
"hardhat-deploy": "^0.11.45"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@lazy-sol/zeppelin-test-helpers": "^1.0.0",
|
32
32
|
"hardhat-gas-reporter": "^1.0.10",
|
33
|
-
"solidity-coverage": "^0.8.
|
33
|
+
"solidity-coverage": "^0.8.12"
|
34
34
|
},
|
35
35
|
"overrides": {
|
36
36
|
"tough-cookie": "^4.1.3",
|
File without changes
|