@lazy-sol/access-control-upgradeable 1.0.3 → 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",
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,18 +22,19 @@
22
22
  "author": "Basil Gorin",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@lazy-sol/a-missing-gem": "^1.0.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
- "hardhat": "^2.16.0",
28
+ "audit": "^0.0.6",
29
+ "hardhat": "^2.22.4",
29
30
  "hardhat-deploy": "^0.11.45"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@lazy-sol/zeppelin-test-helpers": "^1.0.0",
33
34
  "@openzeppelin/contracts": "^4.9.6",
34
- "hardhat-dependency-injector": "^1.0.0",
35
+ "hardhat-dependency-injector": "^1.0.1",
35
36
  "hardhat-gas-reporter": "^1.0.10",
36
- "solidity-coverage": "^0.8.10"
37
+ "solidity-coverage": "^0.8.12"
37
38
  },
38
39
  "overrides": {
39
40
  "tough-cookie": "^4.1.3",
@@ -4,7 +4,7 @@ const {
4
4
  constants,
5
5
  expectEvent,
6
6
  expectRevert,
7
- } = require("@openzeppelin/test-helpers");
7
+ } = require("@lazy-sol/zeppelin-test-helpers");
8
8
  const {
9
9
  assert,
10
10
  expect,
@@ -19,13 +19,13 @@ const {
19
19
  const {
20
20
  random_bn255,
21
21
  random_bn256,
22
- } = require("@lazy-sol/a-missing-gem/bn_utils");
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("./features_roles");
28
+ } = require("../../scripts/include/features_roles");
29
29
 
30
30
  /**
31
31
  * RBAC core behaviour
package/test/rbac_core.js CHANGED
@@ -6,7 +6,7 @@ const {
6
6
  constants,
7
7
  expectEvent,
8
8
  expectRevert,
9
- } = require("@openzeppelin/test-helpers");
9
+ } = require("@lazy-sol/zeppelin-test-helpers");
10
10
  const {
11
11
  assert,
12
12
  expect,
@@ -6,7 +6,7 @@ const {
6
6
  constants,
7
7
  expectEvent,
8
8
  expectRevert,
9
- } = require("@openzeppelin/test-helpers");
9
+ } = require("@lazy-sol/zeppelin-test-helpers");
10
10
  const {
11
11
  assert,
12
12
  expect,
@@ -6,7 +6,7 @@ const {
6
6
  constants,
7
7
  expectEvent,
8
8
  expectRevert,
9
- } = require("@openzeppelin/test-helpers");
9
+ } = require("@lazy-sol/zeppelin-test-helpers");
10
10
  const {
11
11
  assert,
12
12
  expect,
@@ -21,7 +21,7 @@ const {
21
21
  const {
22
22
  not,
23
23
  ROLE_UPGRADE_MANAGER,
24
- } = require("./include/features_roles");
24
+ } = require("../scripts/include/features_roles");
25
25
 
26
26
  // deployment routines in use
27
27
  const {
File without changes