@ocap/asset 1.18.28 → 1.18.30
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.d.ts +3 -3
- package/lib/index.js +1 -1
- package/package.json +11 -11
package/lib/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export declare type TIssuerInput = {
|
|
14
14
|
};
|
15
15
|
export declare type THook = {
|
16
16
|
type: LiteralUnion<'contract' | 'url', string>;
|
17
|
-
name: LiteralUnion<'mint' | 'postMint', string>;
|
17
|
+
name: LiteralUnion<'mint' | 'postMint' | 'preMint', string>;
|
18
18
|
hook: string;
|
19
19
|
};
|
20
20
|
export declare type TInputMap = {
|
@@ -30,7 +30,7 @@ export declare type TPreMintResult = TMintResult & {
|
|
30
30
|
};
|
31
31
|
export declare const isValidNotation: (notation: string) => boolean;
|
32
32
|
export declare const isValidHook: (hook: THook, quota?: $TSFixMe, throwOnError?: boolean) => boolean;
|
33
|
-
export declare const isValidFactory: (props:
|
33
|
+
export declare const isValidFactory: (props: any) => boolean;
|
34
34
|
/**
|
35
35
|
* Find credentialSubject path in the object
|
36
36
|
* Because they need prerender
|
@@ -70,5 +70,5 @@ export declare const preMintFromFactory: ({ factory, inputs, owner, issuer, }: {
|
|
70
70
|
owner?: string;
|
71
71
|
issuer?: TIssuer;
|
72
72
|
}) => TPreMintResult;
|
73
|
-
export declare const formatFactoryState: (state:
|
73
|
+
export declare const formatFactoryState: (state: TAssetFactoryState) => TPickedFactoryState;
|
74
74
|
export {};
|
package/lib/index.js
CHANGED
@@ -23,7 +23,7 @@ const util_1 = require("@ocap/util");
|
|
23
23
|
const contract_1 = require("@ocap/contract");
|
24
24
|
const debug_1 = __importDefault(require("debug"));
|
25
25
|
const debug = (0, debug_1.default)('@ocap/asset');
|
26
|
-
const SUPPORTED_HOOK_NAMES = ['mint', 'postMint'];
|
26
|
+
const SUPPORTED_HOOK_NAMES = ['preMint', 'mint', 'postMint'];
|
27
27
|
const SUPPORTED_HOOK_TYPES = ['contract', 'url'];
|
28
28
|
const isValidNotation = (notation) => ['ctx', 'data', 'input'].includes(notation.split('.').shift());
|
29
29
|
exports.isValidNotation = isValidNotation;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ocap/asset",
|
3
3
|
"description": "Utility to work with asset and factory on ArcBlock blockchain",
|
4
|
-
"version": "1.18.
|
4
|
+
"version": "1.18.30",
|
5
5
|
"author": {
|
6
6
|
"name": "wangshijun",
|
7
7
|
"email": "shijun@arcblock.io",
|
@@ -18,15 +18,15 @@
|
|
18
18
|
"wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"
|
19
19
|
],
|
20
20
|
"dependencies": {
|
21
|
-
"@arcblock/did": "1.18.
|
22
|
-
"@arcblock/did-util": "1.18.
|
23
|
-
"@arcblock/validator": "1.18.
|
24
|
-
"@arcblock/vc": "1.18.
|
25
|
-
"@ocap/contract": "1.18.
|
26
|
-
"@ocap/mcrypto": "1.18.
|
27
|
-
"@ocap/types": "1.18.
|
28
|
-
"@ocap/util": "1.18.
|
29
|
-
"@ocap/wallet": "1.18.
|
21
|
+
"@arcblock/did": "1.18.30",
|
22
|
+
"@arcblock/did-util": "1.18.30",
|
23
|
+
"@arcblock/validator": "1.18.30",
|
24
|
+
"@arcblock/vc": "1.18.30",
|
25
|
+
"@ocap/contract": "1.18.30",
|
26
|
+
"@ocap/mcrypto": "1.18.30",
|
27
|
+
"@ocap/types": "1.18.30",
|
28
|
+
"@ocap/util": "1.18.30",
|
29
|
+
"@ocap/wallet": "1.18.30",
|
30
30
|
"debug": "^4.3.4",
|
31
31
|
"flat": "^5.0.2",
|
32
32
|
"is-absolute-url": "^3.0.3",
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"build": "tsc",
|
75
75
|
"build:watch": "npm run build -- -w"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "553b8b4151c97432b4c18ef0ef849cd65e2704cb"
|
78
78
|
}
|