@ocap/tx-protocols 1.18.97 → 1.18.99

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.
@@ -25,8 +25,8 @@ const rateLimit = Joi.object({
25
25
  });
26
26
 
27
27
  const tokenLimit = Joi.object({
28
- address: Joi.DID().role('ROLE_TOKEN').required(),
29
- toList: Joi.array().items(Joi.DID()).max(32).unique().optional().default([]),
28
+ address: Joi.DID().prefix().role('ROLE_TOKEN').required(),
29
+ toList: Joi.array().items(Joi.DID().prefix()).max(32).unique().optional().default([]),
30
30
  txCount: Joi.number().integer().min(0).empty('').optional().default(0),
31
31
  txAllowance: Joi.BN().optional().default('0'),
32
32
  totalAllowance: Joi.BN().optional().default('0'),
@@ -35,8 +35,8 @@ const tokenLimit = Joi.object({
35
35
  });
36
36
 
37
37
  const assetLimit = Joi.object({
38
- address: Joi.array().items(Joi.DID().role('ROLE_ASSET')).unique().max(1024).optional().default([]),
39
- toList: Joi.array().items(Joi.DID()).unique().max(32).optional().default([]),
38
+ address: Joi.array().items(Joi.DID().prefix().role('ROLE_ASSET')).unique().max(1024).optional().default([]),
39
+ toList: Joi.array().items(Joi.DID().prefix()).unique().max(32).optional().default([]),
40
40
  txCount: Joi.number().integer().min(0).empty('').optional().default(0),
41
41
  validUntil: Joi.number().integer().min(0).empty('').optional().default(0),
42
42
  rate: rateLimit.optional(),
@@ -184,7 +184,7 @@ runner.use(
184
184
  : statedb.account.create(receiver, account.create({ address: receiver }, context), context),
185
185
 
186
186
  delegationState
187
- ? statedb.delegation.update(itx.address, delegation.update(delegationState, { ...itx, ops: merged }, context), context) // prettier-ignore
187
+ ? statedb.delegation.update(itx.address, delegation.update(delegationState, { ...itx, from: tx.from, ops: merged }, context), context) // prettier-ignore
188
188
  : statedb.delegation.create(itx.address, delegation.create({ ...itx, from: tx.from, ops: merged }, context), context), // prettier-ignore
189
189
 
190
190
  updateVaults(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.97",
6
+ "version": "1.18.99",
7
7
  "description": "Predefined tx pipeline sets to execute certain type of transactions",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -21,18 +21,18 @@
21
21
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@arcblock/did": "1.18.97",
25
- "@arcblock/did-util": "1.18.97",
26
- "@arcblock/jwt": "1.18.97",
27
- "@arcblock/validator": "1.18.97",
28
- "@ocap/asset": "1.18.97",
29
- "@ocap/mcrypto": "1.18.97",
30
- "@ocap/merkle-tree": "1.18.97",
31
- "@ocap/message": "1.18.97",
32
- "@ocap/state": "1.18.97",
33
- "@ocap/tx-pipeline": "1.18.97",
34
- "@ocap/util": "1.18.97",
35
- "@ocap/wallet": "1.18.97",
24
+ "@arcblock/did": "1.18.99",
25
+ "@arcblock/did-util": "1.18.99",
26
+ "@arcblock/jwt": "1.18.99",
27
+ "@arcblock/validator": "1.18.99",
28
+ "@ocap/asset": "1.18.99",
29
+ "@ocap/mcrypto": "1.18.99",
30
+ "@ocap/merkle-tree": "1.18.99",
31
+ "@ocap/message": "1.18.99",
32
+ "@ocap/state": "1.18.99",
33
+ "@ocap/tx-pipeline": "1.18.99",
34
+ "@ocap/util": "1.18.99",
35
+ "@ocap/wallet": "1.18.99",
36
36
  "debug": "^4.3.4",
37
37
  "deep-diff": "^1.0.2",
38
38
  "empty-value": "^1.0.1",
@@ -47,5 +47,5 @@
47
47
  "jest": "^27.5.1",
48
48
  "start-server-and-test": "^1.14.0"
49
49
  },
50
- "gitHead": "691aabefd37f53b6fbcf771ce130f09197f0b268"
50
+ "gitHead": "1018f219618a13decf778998529c83befcab6887"
51
51
  }