@ocap/tx-protocols 1.17.11 → 1.17.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.
- package/lib/protocols/asset/create.js +3 -1
- package/package.json +13 -13
|
@@ -4,6 +4,7 @@ const isEmpty = require('lodash/isEmpty');
|
|
|
4
4
|
const cloneDeep = require('lodash/cloneDeep');
|
|
5
5
|
const { Runner, pipes } = require('@ocap/tx-pipeline');
|
|
6
6
|
const { account, asset } = require('@ocap/state');
|
|
7
|
+
const { formatMessage } = require('@ocap/message');
|
|
7
8
|
const { toAssetAddress } = require('@arcblock/did-util');
|
|
8
9
|
|
|
9
10
|
// eslint-disable-next-line global-require
|
|
@@ -15,7 +16,8 @@ const ensureServiceFee = require('../rollup/pipes/ensure-service-fee');
|
|
|
15
16
|
const runner = new Runner();
|
|
16
17
|
|
|
17
18
|
// Verify itx
|
|
18
|
-
runner.use((
|
|
19
|
+
runner.use((context, next) => {
|
|
20
|
+
const itx = formatMessage('CreateAssetTx', context.itx);
|
|
19
21
|
const { error } = asset.schema.validate(itx);
|
|
20
22
|
if (error) {
|
|
21
23
|
return next(new Error('INVALID_TX', `Invalid itx: ${error.message}`));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.
|
|
6
|
+
"version": "1.17.14",
|
|
7
7
|
"description": "Predefined tx pipeline sets to execute certain type of transactions",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@arcblock/did": "1.17.
|
|
25
|
-
"@arcblock/did-util": "1.17.
|
|
26
|
-
"@arcblock/validator": "1.17.
|
|
27
|
-
"@ocap/asset": "1.17.
|
|
28
|
-
"@ocap/mcrypto": "1.17.
|
|
29
|
-
"@ocap/merkle-tree": "1.17.
|
|
30
|
-
"@ocap/message": "1.17.
|
|
31
|
-
"@ocap/state": "1.17.
|
|
32
|
-
"@ocap/tx-pipeline": "1.17.
|
|
33
|
-
"@ocap/util": "1.17.
|
|
34
|
-
"@ocap/wallet": "1.17.
|
|
24
|
+
"@arcblock/did": "1.17.14",
|
|
25
|
+
"@arcblock/did-util": "1.17.14",
|
|
26
|
+
"@arcblock/validator": "1.17.14",
|
|
27
|
+
"@ocap/asset": "1.17.14",
|
|
28
|
+
"@ocap/mcrypto": "1.17.14",
|
|
29
|
+
"@ocap/merkle-tree": "1.17.14",
|
|
30
|
+
"@ocap/message": "1.17.14",
|
|
31
|
+
"@ocap/state": "1.17.14",
|
|
32
|
+
"@ocap/tx-pipeline": "1.17.14",
|
|
33
|
+
"@ocap/util": "1.17.14",
|
|
34
|
+
"@ocap/wallet": "1.17.14",
|
|
35
35
|
"debug": "^4.3.4",
|
|
36
36
|
"deep-diff": "^1.0.2",
|
|
37
37
|
"empty-value": "^1.0.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"jest": "^27.5.1",
|
|
47
47
|
"start-server-and-test": "^1.14.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "3e0c14fb2ca3f56639599aec7929c3de54ee61c7"
|
|
50
50
|
}
|