@ocap/tx-protocols 1.27.12 → 1.27.14

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.
@@ -93,7 +93,7 @@ runner.use(
93
93
  pipes.verifyTokenAccess({
94
94
  statesKey: 'tokenStates',
95
95
  listFieldKey: 'spenders',
96
- accountKeys: ['signerStates'],
96
+ accountKeys: ['senderState'],
97
97
  errorMessage: 'Account {address} is not allowed to stake token {tokenAddress}',
98
98
  })
99
99
  );
@@ -27,7 +27,7 @@ const schema = Joi.object({
27
27
  description: Joi.string().min(16).max(128).required(),
28
28
  symbol: Joi.string().min(2).max(6).uppercase().required(),
29
29
  unit: Joi.string().min(1).max(6).lowercase().required(),
30
- decimal: Joi.number().min(6).max(18).required(),
30
+ decimal: Joi.number().min(2).max(18).required(),
31
31
  icon: Joi.string().optional().allow(null).valid(''),
32
32
  totalSupply: Joi.BN().greater(0).max(MAX_TOTAL_SUPPLY).required(),
33
33
  initialSupply: Joi.BN().greater(0).max(Joi.ref('totalSupply')).required(),
@@ -40,7 +40,7 @@ const schema = Joi.object({
40
40
  description: Joi.string().min(16).max(128).required(),
41
41
  symbol: Joi.string().min(2).max(6).uppercase().required(),
42
42
  unit: Joi.string().min(1).max(6).lowercase().required(),
43
- decimal: Joi.number().min(6).max(18).required(),
43
+ decimal: Joi.number().min(2).max(18).required(),
44
44
  icon: Joi.string().optional().allow(null, ''),
45
45
  maxTotalSupply: Joi.alternatives().try(Joi.BN().greater(0), Joi.string().valid('')).optional().allow(null),
46
46
  website: Joi.string()
@@ -126,7 +126,7 @@ runner.use(
126
126
  pipes.verifyTokenAccess({
127
127
  statesKey: 'tokenStates',
128
128
  listFieldKey: 'spenders',
129
- accountKeys: ['senderState', 'receiverState'],
129
+ accountKeys: ['senderState'],
130
130
  errorMessage: 'Account {address} is not allowed to exchange token {tokenAddress}',
131
131
  })
132
132
  );
@@ -146,7 +146,7 @@ runner.use(
146
146
  pipes.verifyTokenAccess({
147
147
  statesKey: 'tokenStates',
148
148
  listFieldKey: 'spenders',
149
- accountKeys: ['senderState', 'receiverState', 'itx.to'],
149
+ accountKeys: ['senderState'],
150
150
  errorMessage: 'Account {address} is not allowed to transfer token {tokenAddress}',
151
151
  })
152
152
  );
@@ -158,7 +158,7 @@ runner.use(
158
158
  pipes.verifyTokenAccess({
159
159
  statesKey: 'tokenStates',
160
160
  listFieldKey: 'spenders',
161
- accountKeys: ['signerStates', 'receiverStates'],
161
+ accountKeys: ['senderState'],
162
162
  errorMessage: 'Account {address} is not allowed to transfer token {tokenAddress}',
163
163
  })
164
164
  );
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.27.12",
6
+ "version": "1.27.14",
7
7
  "description": "Predefined tx pipeline sets to execute certain type of transactions",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,20 +19,20 @@
19
19
  "empty-value": "^1.0.1",
20
20
  "lodash": "^4.17.21",
21
21
  "url-join": "^4.0.1",
22
- "@arcblock/did": "1.27.12",
23
- "@arcblock/did-util": "1.27.12",
24
- "@arcblock/jwt": "1.27.12",
25
- "@arcblock/validator": "1.27.12",
26
- "@arcblock/vc": "1.27.12",
27
- "@ocap/asset": "1.27.12",
28
- "@ocap/client": "1.27.12",
29
- "@ocap/mcrypto": "1.27.12",
30
- "@ocap/merkle-tree": "1.27.12",
31
- "@ocap/message": "1.27.12",
32
- "@ocap/state": "1.27.12",
33
- "@ocap/tx-pipeline": "1.27.12",
34
- "@ocap/util": "1.27.12",
35
- "@ocap/wallet": "1.27.12"
22
+ "@arcblock/did-util": "1.27.14",
23
+ "@arcblock/jwt": "1.27.14",
24
+ "@arcblock/validator": "1.27.14",
25
+ "@arcblock/vc": "1.27.14",
26
+ "@ocap/asset": "1.27.14",
27
+ "@ocap/client": "1.27.14",
28
+ "@ocap/mcrypto": "1.27.14",
29
+ "@ocap/merkle-tree": "1.27.14",
30
+ "@ocap/message": "1.27.14",
31
+ "@ocap/state": "1.27.14",
32
+ "@ocap/tx-pipeline": "1.27.14",
33
+ "@ocap/util": "1.27.14",
34
+ "@ocap/wallet": "1.27.14",
35
+ "@arcblock/did": "1.27.14"
36
36
  },
37
37
  "resolutions": {
38
38
  "bn.js": "5.2.2",
@@ -41,8 +41,8 @@
41
41
  "devDependencies": {
42
42
  "jest": "^29.7.0",
43
43
  "start-server-and-test": "^1.14.0",
44
- "@ocap/e2e-test": "1.27.12",
45
- "@ocap/statedb-memory": "1.27.12"
44
+ "@ocap/e2e-test": "1.27.14",
45
+ "@ocap/statedb-memory": "1.27.14"
46
46
  },
47
47
  "scripts": {
48
48
  "lint": "eslint tests lib",