@abtnode/core 1.16.9 → 1.16.10-beta-9dc61102
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.
|
@@ -2310,6 +2310,10 @@ class BlockletManager extends BaseBlockletManager {
|
|
|
2310
2310
|
if (blocklet?.controller?.nftId && process.env.NODE_ENV !== 'test') {
|
|
2311
2311
|
const nodeInfo = await states.node.read();
|
|
2312
2312
|
await consumeServerlessNFT({ nftId: blocklet.controller.nftId, nodeInfo, blocklet });
|
|
2313
|
+
await states.blockletExtras.updateByDid(did, {
|
|
2314
|
+
controller: { ...blocklet.controller, consumedAt: new Date().toISOString() },
|
|
2315
|
+
});
|
|
2316
|
+
|
|
2313
2317
|
this.emit(BlockletEvents.nftConsumed, { blocklet, context });
|
|
2314
2318
|
}
|
|
2315
2319
|
|
|
@@ -14,51 +14,6 @@ const { validateAddMeta, validateExpiredInfo } = require('../validators/blocklet
|
|
|
14
14
|
|
|
15
15
|
const noop = (k) => (v) => v[k];
|
|
16
16
|
|
|
17
|
-
// type Settings = {
|
|
18
|
-
// whoCanAccess: string;
|
|
19
|
-
// initialized: boolean;
|
|
20
|
-
// owner: {
|
|
21
|
-
// did: string;
|
|
22
|
-
// pk: string;
|
|
23
|
-
// };
|
|
24
|
-
// storeList: Array<getStoreMeta & {
|
|
25
|
-
// protected: boolean,
|
|
26
|
-
// url: string,
|
|
27
|
-
// }>; // 在 blocklet dashboard 添加组件时的商店列表
|
|
28
|
-
// navigations: any;
|
|
29
|
-
// trustedPassports: any;
|
|
30
|
-
// trustedFactories: any;
|
|
31
|
-
// enablePassportIssuance: boolean;
|
|
32
|
-
// children: Array<any>; // deleted children
|
|
33
|
-
// publicToStore: boolean;
|
|
34
|
-
// navigation: Array[{
|
|
35
|
-
// title: string;
|
|
36
|
-
// child: DID | Name;
|
|
37
|
-
// }]; // deprecated
|
|
38
|
-
// };
|
|
39
|
-
|
|
40
|
-
// type Configs = {
|
|
41
|
-
// [componentDid: string]: Config;
|
|
42
|
-
// };
|
|
43
|
-
|
|
44
|
-
// type Children = Array<{
|
|
45
|
-
// did: string, // application index
|
|
46
|
-
// configs: Configs,
|
|
47
|
-
// children: Children
|
|
48
|
-
// }>;
|
|
49
|
-
|
|
50
|
-
// type ExtraState = {
|
|
51
|
-
// did: string; // application index
|
|
52
|
-
// meta: {
|
|
53
|
-
// did: string; // application index
|
|
54
|
-
// name: string; // application index
|
|
55
|
-
// };
|
|
56
|
-
// controller: BlockletController;
|
|
57
|
-
// settings: Settings;
|
|
58
|
-
// configs: Configs;
|
|
59
|
-
// children: Children
|
|
60
|
-
// };
|
|
61
|
-
|
|
62
17
|
/**
|
|
63
18
|
* @extends BaseState<import('@abtnode/models').BlockletExtraState>
|
|
64
19
|
*/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.10-beta-9dc61102",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/auth": "1.16.
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.
|
|
24
|
-
"@abtnode/constant": "1.16.
|
|
25
|
-
"@abtnode/cron": "1.16.
|
|
26
|
-
"@abtnode/logger": "1.16.
|
|
27
|
-
"@abtnode/models": "1.16.
|
|
28
|
-
"@abtnode/queue": "1.16.
|
|
29
|
-
"@abtnode/rbac": "1.16.
|
|
30
|
-
"@abtnode/router-provider": "1.16.
|
|
31
|
-
"@abtnode/static-server": "1.16.
|
|
32
|
-
"@abtnode/timemachine": "1.16.
|
|
33
|
-
"@abtnode/util": "1.16.
|
|
22
|
+
"@abtnode/auth": "1.16.10-beta-9dc61102",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.10-beta-9dc61102",
|
|
24
|
+
"@abtnode/constant": "1.16.10-beta-9dc61102",
|
|
25
|
+
"@abtnode/cron": "1.16.10-beta-9dc61102",
|
|
26
|
+
"@abtnode/logger": "1.16.10-beta-9dc61102",
|
|
27
|
+
"@abtnode/models": "1.16.10-beta-9dc61102",
|
|
28
|
+
"@abtnode/queue": "1.16.10-beta-9dc61102",
|
|
29
|
+
"@abtnode/rbac": "1.16.10-beta-9dc61102",
|
|
30
|
+
"@abtnode/router-provider": "1.16.10-beta-9dc61102",
|
|
31
|
+
"@abtnode/static-server": "1.16.10-beta-9dc61102",
|
|
32
|
+
"@abtnode/timemachine": "1.16.10-beta-9dc61102",
|
|
33
|
+
"@abtnode/util": "1.16.10-beta-9dc61102",
|
|
34
34
|
"@arcblock/did": "1.18.80",
|
|
35
35
|
"@arcblock/did-auth": "1.18.80",
|
|
36
36
|
"@arcblock/did-ext": "^1.18.80",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
42
|
"@arcblock/validator": "^1.18.80",
|
|
43
43
|
"@arcblock/vc": "1.18.80",
|
|
44
|
-
"@blocklet/constant": "1.16.
|
|
45
|
-
"@blocklet/meta": "1.16.
|
|
46
|
-
"@blocklet/sdk": "1.16.
|
|
47
|
-
"@did-space/client": "^0.2.
|
|
44
|
+
"@blocklet/constant": "1.16.10-beta-9dc61102",
|
|
45
|
+
"@blocklet/meta": "1.16.10-beta-9dc61102",
|
|
46
|
+
"@blocklet/sdk": "1.16.10-beta-9dc61102",
|
|
47
|
+
"@did-space/client": "^0.2.99",
|
|
48
48
|
"@fidm/x509": "^1.2.1",
|
|
49
49
|
"@ocap/mcrypto": "1.18.80",
|
|
50
50
|
"@ocap/util": "1.18.80",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"express": "^4.18.2",
|
|
97
97
|
"jest": "^27.5.1"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "23942434de21a7638a81994f12655968f2a9a79c"
|
|
100
100
|
}
|