@arcblock/nft 1.18.166 → 1.19.0
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/factory.js +6 -6
- package/package.json +7 -7
package/lib/factory.js
CHANGED
|
@@ -92,7 +92,7 @@ class NFTFactory {
|
|
|
92
92
|
issuanceDate,
|
|
93
93
|
} = data;
|
|
94
94
|
|
|
95
|
-
const vc = create({
|
|
95
|
+
const vc = await create({
|
|
96
96
|
type: [type, 'NFTTicket', 'VerifiableCredential'].filter(Boolean),
|
|
97
97
|
issuer: {
|
|
98
98
|
wallet: this.wallet,
|
|
@@ -170,7 +170,7 @@ class NFTFactory {
|
|
|
170
170
|
endpointScope,
|
|
171
171
|
} = data;
|
|
172
172
|
|
|
173
|
-
const vc = create({
|
|
173
|
+
const vc = await create({
|
|
174
174
|
type: [type, 'NFTCoupon', 'VerifiableCredential'].filter(Boolean),
|
|
175
175
|
issuer: {
|
|
176
176
|
wallet: this.issuer.wallet,
|
|
@@ -212,7 +212,7 @@ class NFTFactory {
|
|
|
212
212
|
* @returns {Promise} - the `[asset, hash]` on resolved
|
|
213
213
|
* @memberof NFTFactory
|
|
214
214
|
*/
|
|
215
|
-
|
|
215
|
+
createCertificate({ display = '', data = {}, attributes = {} }) {
|
|
216
216
|
return this._createCert({ data, display, attributes });
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -232,7 +232,7 @@ class NFTFactory {
|
|
|
232
232
|
async createBadge({ display = '', data = {}, attributes = {} }) {
|
|
233
233
|
const { name, recipient, description, display: innerDisplay = '', type, endpoint, endpointScope } = data;
|
|
234
234
|
|
|
235
|
-
const vc = create({
|
|
235
|
+
const vc = await create({
|
|
236
236
|
type: [type, 'NFTBadge', 'VerifiableCredential'].filter(Boolean),
|
|
237
237
|
issuer: {
|
|
238
238
|
wallet: this.wallet,
|
|
@@ -270,7 +270,7 @@ class NFTFactory {
|
|
|
270
270
|
throw new Error('NFTPassport requires valid passport object: which must have a name and a title');
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
const vc = create({
|
|
273
|
+
const vc = await create({
|
|
274
274
|
type: [type, 'NFTPassport', 'VerifiableCredential'].filter(Boolean),
|
|
275
275
|
issuer: {
|
|
276
276
|
wallet: this.wallet,
|
|
@@ -356,7 +356,7 @@ class NFTFactory {
|
|
|
356
356
|
endpointScope,
|
|
357
357
|
} = data;
|
|
358
358
|
|
|
359
|
-
const vc = create({
|
|
359
|
+
const vc = await create({
|
|
360
360
|
type: [type, 'NFTCertificate', 'VerifiableCredential'].filter(Boolean),
|
|
361
361
|
issuer: {
|
|
362
362
|
wallet: this.wallet,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/nft",
|
|
3
3
|
"description": "Utility to create standard asset on forge powered blockchain",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.19.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-util": "1.
|
|
22
|
-
"@arcblock/vc": "1.
|
|
23
|
-
"@ocap/client": "1.
|
|
24
|
-
"@ocap/util": "1.
|
|
25
|
-
"@ocap/wallet": "1.
|
|
21
|
+
"@arcblock/did-util": "1.19.0",
|
|
22
|
+
"@arcblock/vc": "1.19.0",
|
|
23
|
+
"@ocap/client": "1.19.0",
|
|
24
|
+
"@ocap/util": "1.19.0",
|
|
25
|
+
"@ocap/wallet": "1.19.0",
|
|
26
26
|
"debug": "^4.3.6",
|
|
27
27
|
"json-stable-stringify": "^1.0.1",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"test": "jest --forceExit --detectOpenHandles",
|
|
71
71
|
"coverage": "npm run test -- --coverage"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "1b6fac03988fb18507c8ef4c21de282762005f87"
|
|
74
74
|
}
|