@ocap/config 1.18.0 → 1.18.2

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/lib/default.js CHANGED
@@ -46,6 +46,9 @@ module.exports = {
46
46
  createState: 1000000, // per op
47
47
  updateState: 10000, // per op
48
48
  dataStorage: 100, // per bytes
49
+ minStake: 1, // in ABT
50
+ maxStake: 10000, // in ABT
51
+ stakeLockPeriod: 365 * 24 * 60 * 60, // 1 year
49
52
  },
50
53
  delegate: {
51
54
  deltaInterval: 18000,
package/lib/schema.js CHANGED
@@ -33,6 +33,9 @@ const configSchema = Joi.object({
33
33
  createState: Joi.number().integer().min(1).required(),
34
34
  updateState: Joi.number().integer().min(1).required(),
35
35
  dataStorage: Joi.number().integer().min(1).required(),
36
+ minStake: Joi.number().integer().min(1).required(),
37
+ maxStake: Joi.number().integer().min(1).required(),
38
+ stakeLockPeriod: Joi.number().integer().min(1).required(),
36
39
  }).optional(),
37
40
  })
38
41
  .optional()
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.0",
6
+ "version": "1.18.2",
7
7
  "description": "OCAP config parsing/validation and default",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -25,11 +25,11 @@
25
25
  "jest": "^27.5.1"
26
26
  },
27
27
  "dependencies": {
28
- "@arcblock/did": "1.18.0",
29
- "@arcblock/did-util": "1.18.0",
30
- "@arcblock/validator": "1.18.0",
31
- "@ocap/util": "1.18.0",
28
+ "@arcblock/did": "1.18.2",
29
+ "@arcblock/did-util": "1.18.2",
30
+ "@arcblock/validator": "1.18.2",
31
+ "@ocap/util": "1.18.2",
32
32
  "lodash": "^4.17.21"
33
33
  },
34
- "gitHead": "c48f928ee4f0deddf0f5e4bcb82fd6ffd7f2bc99"
34
+ "gitHead": "7bd3abefcf732fcf5d4521622ca06db67671d853"
35
35
  }