@ledgerhq/vault-cli 0.59.0 → 0.61.2
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/bin/cliOptions.d.ts +7 -2
- package/bin/cliOptions.js +6 -0
- package/bin/cliOptions.js.map +1 -1
- package/bin/commands/bake.d.ts +2 -21
- package/bin/commands/bake.js +1 -1
- package/bin/commands/bake.js.map +1 -1
- package/bin/commands/create.d.ts +1 -9
- package/bin/commands/drain.d.ts +1 -9
- package/bin/commands/fetch.d.ts +1 -9
- package/bin/commands/get.d.ts +7 -9
- package/bin/commands/get.js +1 -1
- package/bin/commands/get.js.map +1 -1
- package/bin/commands/getAuthToken.d.ts +1 -10
- package/bin/commands/getUserID.d.ts +0 -9
- package/bin/commands/index.d.ts +34 -124
- package/bin/commands/index.js +2 -0
- package/bin/commands/index.js.map +1 -1
- package/bin/commands/listen.d.ts +0 -9
- package/bin/commands/migrate.d.ts +0 -9
- package/bin/commands/onboard.d.ts +1 -9
- package/bin/commands/receive.d.ts +1 -9
- package/bin/commands/recipe.d.ts +1 -9
- package/bin/commands/registerMigratedUsers.d.ts +0 -10
- package/bin/commands/reject.d.ts +1 -9
- package/bin/commands/send.d.ts +0 -9
- package/bin/commands/setQuorum.d.ts +31 -0
- package/bin/commands/setQuorum.js +41 -0
- package/bin/commands/setQuorum.js.map +1 -0
- package/bin/commands/stats.d.ts +7 -8
- package/bin/gateOptions.d.ts +8 -7
- package/bin/gateOptions.js +11 -9
- package/bin/gateOptions.js.map +1 -1
- package/bin/presets/sci.json +26 -0
- package/package.json +3 -3
package/bin/cliOptions.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
defaultValue: boolean;
|
|
6
|
+
} | {
|
|
2
7
|
name: string;
|
|
3
8
|
description: string;
|
|
4
9
|
type: NumberConstructor;
|
|
5
10
|
defaultValue: number;
|
|
6
|
-
}[];
|
|
11
|
+
})[];
|
|
7
12
|
export default _default;
|
package/bin/cliOptions.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
name: "noisechannel",
|
|
6
|
+
description: "Use new secure channel implementation (noise protocol)",
|
|
7
|
+
type: Boolean,
|
|
8
|
+
defaultValue: false,
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
name: "networkDelay",
|
|
6
12
|
description: "Allows to delay (ms) between each request",
|
package/bin/cliOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliOptions.js","sourceRoot":"","sources":["../src/cliOptions.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb;QACE,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,MAAM;QACZ,YAAY,EAAE,CAAC;KAChB;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"cliOptions.js","sourceRoot":"","sources":["../src/cliOptions.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb;QACE,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,OAAO;QACb,YAAY,EAAE,KAAK;KACpB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,MAAM;QACZ,YAAY,EAAE,CAAC;KAChB;CACF,CAAC"}
|
package/bin/commands/bake.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface BakeOptions extends GateOptions {
|
|
|
3
3
|
positionals: string[];
|
|
4
4
|
preset?: string;
|
|
5
5
|
stdin: boolean;
|
|
6
|
+
noisechannel?: boolean;
|
|
6
7
|
wipe: boolean;
|
|
7
8
|
compartment: number;
|
|
8
9
|
hsm: string;
|
|
@@ -18,12 +19,6 @@ declare const _default: {
|
|
|
18
19
|
allowNoPositional: boolean;
|
|
19
20
|
positionals: boolean;
|
|
20
21
|
options: ({
|
|
21
|
-
name: string;
|
|
22
|
-
alias: string;
|
|
23
|
-
defaultValue: string;
|
|
24
|
-
description: string;
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
} | {
|
|
27
22
|
name: string;
|
|
28
23
|
type: BooleanConstructor;
|
|
29
24
|
description: string;
|
|
@@ -33,12 +28,6 @@ declare const _default: {
|
|
|
33
28
|
type: NumberConstructor;
|
|
34
29
|
description: string;
|
|
35
30
|
defaultValue: string | undefined;
|
|
36
|
-
} | {
|
|
37
|
-
name: string;
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
description: string;
|
|
40
|
-
defaultValue: string | undefined;
|
|
41
|
-
alias?: undefined;
|
|
42
31
|
} | {
|
|
43
32
|
name: string;
|
|
44
33
|
description: string;
|
|
@@ -46,22 +35,14 @@ declare const _default: {
|
|
|
46
35
|
defaultValue: number;
|
|
47
36
|
} | {
|
|
48
37
|
name: string;
|
|
49
|
-
description: string;
|
|
50
38
|
type: StringConstructor;
|
|
51
|
-
|
|
52
|
-
defaultValue?: undefined;
|
|
39
|
+
description: string;
|
|
53
40
|
} | {
|
|
54
41
|
name: string;
|
|
55
42
|
alias: string;
|
|
56
43
|
description: string;
|
|
57
44
|
type: StringConstructor;
|
|
58
45
|
defaultValue?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
name: string;
|
|
61
|
-
description: string;
|
|
62
|
-
type: BooleanConstructor;
|
|
63
|
-
defaultValue: boolean;
|
|
64
|
-
alias?: undefined;
|
|
65
46
|
} | {
|
|
66
47
|
name: string;
|
|
67
48
|
alias: string;
|
package/bin/commands/bake.js
CHANGED
|
@@ -117,7 +117,7 @@ exports.default = {
|
|
|
117
117
|
manifest = JSON.parse(fs_1.default.readFileSync(fileName, "utf-8"));
|
|
118
118
|
}
|
|
119
119
|
vault_common_1.validateManifest(manifest);
|
|
120
|
-
yield vault_common_1.bakeManifest(manifest, vault_common_1.createDevicesPool(Object.assign(Object.assign({}, options), { lamURL: options.lam, networkDelay: options.networkDelay })), { logger: logger_1.default });
|
|
120
|
+
yield vault_common_1.bakeManifest(manifest, vault_common_1.createDevicesPool(Object.assign(Object.assign({}, options), { lamURL: options.lam, networkDelay: options.networkDelay, noisechannel: options.noisechannel })), { logger: logger_1.default });
|
|
121
121
|
}),
|
|
122
122
|
};
|
|
123
123
|
const readSTDIN = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
package/bin/commands/bake.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bake.js","sourceRoot":"","sources":["../../src/commands/bake.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,wDAAgC;AAEhC,yDAIgC;AAGhC,uDAA+B;AAC/B,iEAAyC;AACzC,+DAAuC;AACvC,+DAAuC;AAGvC,uEAAiD;AACjD,2EAAqD;AACrD,yFAAmE;AACnE,mEAA6C;AAC7C,uEAAiD;AAEjD,sGAA2E;AAC3E,wHAA4F;AAC5F,sGAA2E;AAC3E,sHAA0F;AAC1F,sGAA2E;AAC3E,4GAAkF;AAElF,iCAA2C;AAE3C,MAAM,OAAO,GAA6B;IACxC,KAAK,EAAE,oBAAY;IAEnB,OAAO,EAAE,sBAAc;IAEvB,gBAAgB,EAAE,6BAAqB;IAEvC,GAAG,EAAE,kBAAU;IAEf,KAAK,EAAE,oBAAY;IAEnB,sBAAsB,EAAE,oCAAuB;IAE/C,+BAA+B,EAAE,6CAA+B;IAEhE,sBAAsB,EAAE,oCAAuB;IAE/C,8BAA8B,EAAE,4CAA8B;IAE9D,sBAAsB,EAAE,oCAAuB;IAE/C,yBAAyB,EAAE,uCAA2B;CACvD,CAAC;
|
|
1
|
+
{"version":3,"file":"bake.js","sourceRoot":"","sources":["../../src/commands/bake.ts"],"names":[],"mappings":";;;;;;;;;;;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AAC,YAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;SAC3D;QAED,+BAAgB,CAAC,QAAQ,CAAC,CAAC;QAC3B,MAAM,2BAAY,CAChB,QAAQ,EACR,gCAAiB,iCACZ,OAAO,KACV,MAAM,EAAE,OAAO,CAAC,GAAG,EACnB,YAAY,EAAE,OAAO,CAAC,YAAY,EAClC,YAAY,EAAE,OAAO,CAAC,YAAY,IAClC,EACF,EAAE,MAAM,EAAN,gBAAM,EAAE,CACX,CAAC;IACJ,CAAC,CAAA;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAO,OAAoB,EAAE,EAAE;;IAC/C,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;QAClB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9B;IACD,MAAM,EAAE,GAAG,kBAAQ,CAAC,eAAe,CAAC;QAClC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,EAAE,CAAC;;QAItB,KAAyB,IAAA,OAAA,cAAA,EAAE,CAAA,QAAA;YAAhB,MAAM,IAAI,eAAA,CAAA;YACnB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACvB;;;;;;;;;IACD,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAA,CAAC"}
|
package/bin/commands/create.d.ts
CHANGED
|
@@ -35,12 +35,6 @@ declare const _default: {
|
|
|
35
35
|
command: string;
|
|
36
36
|
description: string;
|
|
37
37
|
options: ({
|
|
38
|
-
name: string;
|
|
39
|
-
alias: string;
|
|
40
|
-
defaultValue: string;
|
|
41
|
-
description: string;
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
} | {
|
|
44
38
|
name: string;
|
|
45
39
|
type: BooleanConstructor;
|
|
46
40
|
description: string;
|
|
@@ -51,10 +45,8 @@ declare const _default: {
|
|
|
51
45
|
defaultValue: number;
|
|
52
46
|
} | {
|
|
53
47
|
name: string;
|
|
54
|
-
description: string;
|
|
55
48
|
type: StringConstructor;
|
|
56
|
-
|
|
57
|
-
defaultValue?: undefined;
|
|
49
|
+
description: string;
|
|
58
50
|
})[];
|
|
59
51
|
subCommands: ({
|
|
60
52
|
command: string;
|
package/bin/commands/drain.d.ts
CHANGED
|
@@ -6,21 +6,13 @@ declare const _default: {
|
|
|
6
6
|
command: string;
|
|
7
7
|
description: string;
|
|
8
8
|
options: ({
|
|
9
|
-
name: string;
|
|
10
|
-
alias: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
description: string;
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
} | {
|
|
15
9
|
name: string;
|
|
16
10
|
type: BooleanConstructor;
|
|
17
11
|
description: string;
|
|
18
12
|
} | {
|
|
19
13
|
name: string;
|
|
20
|
-
description: string;
|
|
21
14
|
type: StringConstructor;
|
|
22
|
-
|
|
23
|
-
defaultValue?: undefined;
|
|
15
|
+
description: string;
|
|
24
16
|
} | {
|
|
25
17
|
name: string;
|
|
26
18
|
alias: string;
|
package/bin/commands/fetch.d.ts
CHANGED
|
@@ -12,12 +12,6 @@ declare const _default: {
|
|
|
12
12
|
content: string[];
|
|
13
13
|
}[];
|
|
14
14
|
options: ({
|
|
15
|
-
name: string;
|
|
16
|
-
alias: string;
|
|
17
|
-
defaultValue: string;
|
|
18
|
-
description: string;
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
} | {
|
|
21
15
|
name: string;
|
|
22
16
|
type: BooleanConstructor;
|
|
23
17
|
description: string;
|
|
@@ -28,10 +22,8 @@ declare const _default: {
|
|
|
28
22
|
defaultValue: number;
|
|
29
23
|
} | {
|
|
30
24
|
name: string;
|
|
31
|
-
description: string;
|
|
32
25
|
type: StringConstructor;
|
|
33
|
-
|
|
34
|
-
defaultValue?: undefined;
|
|
26
|
+
description: string;
|
|
35
27
|
})[];
|
|
36
28
|
run: (options: FetchOptions) => Promise<void>;
|
|
37
29
|
};
|
package/bin/commands/get.d.ts
CHANGED
|
@@ -4,12 +4,6 @@ declare const _default: {
|
|
|
4
4
|
command: string;
|
|
5
5
|
description: string;
|
|
6
6
|
options: ({
|
|
7
|
-
name: string;
|
|
8
|
-
alias: string;
|
|
9
|
-
defaultValue: string;
|
|
10
|
-
description: string;
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
} | {
|
|
13
7
|
name: string;
|
|
14
8
|
type: BooleanConstructor;
|
|
15
9
|
description: string;
|
|
@@ -22,9 +16,13 @@ declare const _default: {
|
|
|
22
16
|
name: string;
|
|
23
17
|
type: StringConstructor;
|
|
24
18
|
description: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
alias: string;
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
typeLabel: string;
|
|
24
|
+
description: string;
|
|
25
|
+
defaultValue: string;
|
|
28
26
|
})[];
|
|
29
27
|
subCommands: ({
|
|
30
28
|
command: string;
|
package/bin/commands/get.js
CHANGED
|
@@ -191,7 +191,7 @@ const queryEntityWithPoolByName = ({ gate, salt, format, device, lam, networkDel
|
|
|
191
191
|
if (entityType === "ACCOUNT") {
|
|
192
192
|
tokens = yield vault_common_1.fetchTokens(admin, { logger: logger_1.default });
|
|
193
193
|
}
|
|
194
|
-
utils_1.displayTable(data, entityType, tokens);
|
|
194
|
+
utils_1.displayTable(data, entityType, { tokens });
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
exports.queryEntityWithPoolByName = queryEntityWithPoolByName;
|
package/bin/commands/get.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../src/commands/get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,yDAAwE;AAUxE,iEAAyC;AACzC,mEAA2C;AAC3C,+DAAuC;AAEvC,oCAAwC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,KAAK,SAAS,EAAE;YAC5B,MAAM,GAAG,MAAM,0BAAW,CAAC,KAAK,EAAE,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;SAC/C;QACD,oBAAY,CAAC,IAA8B,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;KACtE;AACH,CAAC,CAAA,CAAC;AA9BW,QAAA,yBAAyB,6BA8BpC;AACK,MAAM,mBAAmB,GAAG,CACjC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAA8B,EAC7E,EAAU,EACV,UAAsB,EACP,EAAE;IACjB,MAAM,IAAI,GAAG;QACX,IAAI;QACJ,IAAI;QACJ,GAAG;KACJ,CAAC;IACF,MAAM,IAAI,GAAG,gCAAiB,iCAAM,IAAI,KAAE,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,YAAY,IAAG,CAAC;IAC5E,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;IAEpD,MAAM,GAAG,GAAG,GAAG,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7C,IAAI,MAAM,KAAK,MAAM,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;KACnC;SAAM;QAEL,oBAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;KAChC;AACH,CAAC,CAAA,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GateOptions } from "../types";
|
|
2
|
-
interface GetAuthTokenOptions extends GateOptions {
|
|
2
|
+
export interface GetAuthTokenOptions extends GateOptions {
|
|
3
3
|
device: number;
|
|
4
4
|
}
|
|
5
5
|
declare function getAuthToken(options: GetAuthTokenOptions): Promise<void>;
|
|
@@ -7,12 +7,6 @@ declare const _default: {
|
|
|
7
7
|
command: string;
|
|
8
8
|
description: string;
|
|
9
9
|
options: ({
|
|
10
|
-
name: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
description: string;
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
} | {
|
|
16
10
|
name: string;
|
|
17
11
|
type: BooleanConstructor;
|
|
18
12
|
description: string;
|
|
@@ -20,9 +14,6 @@ declare const _default: {
|
|
|
20
14
|
name: string;
|
|
21
15
|
type: StringConstructor;
|
|
22
16
|
description: string;
|
|
23
|
-
alias?: undefined;
|
|
24
|
-
typeLabel?: undefined;
|
|
25
|
-
defaultValue?: undefined;
|
|
26
17
|
} | {
|
|
27
18
|
name: string;
|
|
28
19
|
alias: string;
|
|
@@ -7,12 +7,6 @@ declare const _default: {
|
|
|
7
7
|
command: string;
|
|
8
8
|
description: string;
|
|
9
9
|
options: ({
|
|
10
|
-
name: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
description: string;
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
} | {
|
|
16
10
|
name: string;
|
|
17
11
|
type: BooleanConstructor;
|
|
18
12
|
description: string;
|
|
@@ -20,9 +14,6 @@ declare const _default: {
|
|
|
20
14
|
name: string;
|
|
21
15
|
type: StringConstructor;
|
|
22
16
|
description: string;
|
|
23
|
-
alias?: undefined;
|
|
24
|
-
typeLabel?: undefined;
|
|
25
|
-
defaultValue?: undefined;
|
|
26
17
|
} | {
|
|
27
18
|
name: string;
|
|
28
19
|
alias: string;
|
package/bin/commands/index.d.ts
CHANGED
|
@@ -23,12 +23,6 @@ declare const _default: {
|
|
|
23
23
|
allowNoPositional: boolean;
|
|
24
24
|
positionals: boolean;
|
|
25
25
|
options: ({
|
|
26
|
-
name: string;
|
|
27
|
-
alias: string;
|
|
28
|
-
defaultValue: string;
|
|
29
|
-
description: string;
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
} | {
|
|
32
26
|
name: string;
|
|
33
27
|
type: BooleanConstructor;
|
|
34
28
|
description: string;
|
|
@@ -38,12 +32,6 @@ declare const _default: {
|
|
|
38
32
|
type: NumberConstructor;
|
|
39
33
|
description: string;
|
|
40
34
|
defaultValue: string | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
name: string;
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
description: string;
|
|
45
|
-
defaultValue: string | undefined;
|
|
46
|
-
alias?: undefined;
|
|
47
35
|
} | {
|
|
48
36
|
name: string;
|
|
49
37
|
description: string;
|
|
@@ -51,22 +39,14 @@ declare const _default: {
|
|
|
51
39
|
defaultValue: number;
|
|
52
40
|
} | {
|
|
53
41
|
name: string;
|
|
54
|
-
description: string;
|
|
55
42
|
type: StringConstructor;
|
|
56
|
-
|
|
57
|
-
defaultValue?: undefined;
|
|
43
|
+
description: string;
|
|
58
44
|
} | {
|
|
59
45
|
name: string;
|
|
60
46
|
alias: string;
|
|
61
47
|
description: string;
|
|
62
48
|
type: StringConstructor;
|
|
63
49
|
defaultValue?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
name: string;
|
|
66
|
-
description: string;
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
defaultValue: boolean;
|
|
69
|
-
alias?: undefined;
|
|
70
50
|
} | {
|
|
71
51
|
name: string;
|
|
72
52
|
alias: string;
|
|
@@ -109,12 +89,6 @@ declare const _default: {
|
|
|
109
89
|
command: string;
|
|
110
90
|
description: string;
|
|
111
91
|
options: ({
|
|
112
|
-
name: string;
|
|
113
|
-
alias: string;
|
|
114
|
-
defaultValue: string;
|
|
115
|
-
description: string;
|
|
116
|
-
type: StringConstructor;
|
|
117
|
-
} | {
|
|
118
92
|
name: string;
|
|
119
93
|
type: BooleanConstructor;
|
|
120
94
|
description: string;
|
|
@@ -125,10 +99,8 @@ declare const _default: {
|
|
|
125
99
|
defaultValue: number;
|
|
126
100
|
} | {
|
|
127
101
|
name: string;
|
|
128
|
-
description: string;
|
|
129
102
|
type: StringConstructor;
|
|
130
|
-
|
|
131
|
-
defaultValue?: undefined;
|
|
103
|
+
description: string;
|
|
132
104
|
})[];
|
|
133
105
|
subCommands: ({
|
|
134
106
|
command: string;
|
|
@@ -289,12 +261,6 @@ declare const _default: {
|
|
|
289
261
|
command: string;
|
|
290
262
|
description: string;
|
|
291
263
|
options: ({
|
|
292
|
-
name: string;
|
|
293
|
-
alias: string;
|
|
294
|
-
defaultValue: string;
|
|
295
|
-
description: string;
|
|
296
|
-
type: StringConstructor;
|
|
297
|
-
} | {
|
|
298
264
|
name: string;
|
|
299
265
|
type: BooleanConstructor;
|
|
300
266
|
description: string;
|
|
@@ -307,9 +273,13 @@ declare const _default: {
|
|
|
307
273
|
name: string;
|
|
308
274
|
type: StringConstructor;
|
|
309
275
|
description: string;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
276
|
+
} | {
|
|
277
|
+
name: string;
|
|
278
|
+
alias: string;
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
typeLabel: string;
|
|
281
|
+
description: string;
|
|
282
|
+
defaultValue: string;
|
|
313
283
|
})[];
|
|
314
284
|
subCommands: ({
|
|
315
285
|
command: string;
|
|
@@ -339,12 +309,6 @@ declare const _default: {
|
|
|
339
309
|
content: string[];
|
|
340
310
|
}[];
|
|
341
311
|
options: ({
|
|
342
|
-
name: string;
|
|
343
|
-
alias: string;
|
|
344
|
-
defaultValue: string;
|
|
345
|
-
description: string;
|
|
346
|
-
type: StringConstructor;
|
|
347
|
-
} | {
|
|
348
312
|
name: string;
|
|
349
313
|
type: BooleanConstructor;
|
|
350
314
|
description: string;
|
|
@@ -355,10 +319,8 @@ declare const _default: {
|
|
|
355
319
|
defaultValue: number;
|
|
356
320
|
} | {
|
|
357
321
|
name: string;
|
|
358
|
-
description: string;
|
|
359
322
|
type: StringConstructor;
|
|
360
|
-
|
|
361
|
-
defaultValue?: undefined;
|
|
323
|
+
description: string;
|
|
362
324
|
})[];
|
|
363
325
|
run: (options: import("./fetch").FetchOptions) => Promise<void>;
|
|
364
326
|
} | {
|
|
@@ -393,11 +355,24 @@ declare const _default: {
|
|
|
393
355
|
description: string;
|
|
394
356
|
options: ({
|
|
395
357
|
name: string;
|
|
396
|
-
|
|
397
|
-
defaultValue: string;
|
|
358
|
+
type: BooleanConstructor;
|
|
398
359
|
description: string;
|
|
360
|
+
} | {
|
|
361
|
+
name: string;
|
|
399
362
|
type: StringConstructor;
|
|
363
|
+
description: string;
|
|
400
364
|
} | {
|
|
365
|
+
name: string;
|
|
366
|
+
alias: string;
|
|
367
|
+
type: NumberConstructor;
|
|
368
|
+
description: string;
|
|
369
|
+
defaultValue: number;
|
|
370
|
+
})[];
|
|
371
|
+
run: (options: import("./getAuthToken").GetAuthTokenOptions) => Promise<void>;
|
|
372
|
+
} | {
|
|
373
|
+
command: string;
|
|
374
|
+
description: string;
|
|
375
|
+
options: ({
|
|
401
376
|
name: string;
|
|
402
377
|
type: BooleanConstructor;
|
|
403
378
|
description: string;
|
|
@@ -405,9 +380,6 @@ declare const _default: {
|
|
|
405
380
|
name: string;
|
|
406
381
|
type: StringConstructor;
|
|
407
382
|
description: string;
|
|
408
|
-
alias?: undefined;
|
|
409
|
-
typeLabel?: undefined;
|
|
410
|
-
defaultValue?: undefined;
|
|
411
383
|
})[];
|
|
412
384
|
run: (options: {
|
|
413
385
|
salt: string;
|
|
@@ -427,12 +399,6 @@ declare const _default: {
|
|
|
427
399
|
content: string[];
|
|
428
400
|
}[];
|
|
429
401
|
options: ({
|
|
430
|
-
name: string;
|
|
431
|
-
alias: string;
|
|
432
|
-
defaultValue: string;
|
|
433
|
-
description: string;
|
|
434
|
-
type: StringConstructor;
|
|
435
|
-
} | {
|
|
436
402
|
name: string;
|
|
437
403
|
type: BooleanConstructor;
|
|
438
404
|
description: string;
|
|
@@ -443,10 +409,15 @@ declare const _default: {
|
|
|
443
409
|
defaultValue: number;
|
|
444
410
|
} | {
|
|
445
411
|
name: string;
|
|
412
|
+
type: StringConstructor;
|
|
446
413
|
description: string;
|
|
414
|
+
} | {
|
|
415
|
+
name: string;
|
|
416
|
+
alias: string;
|
|
447
417
|
type: StringConstructor;
|
|
448
|
-
|
|
449
|
-
|
|
418
|
+
typeLabel: string;
|
|
419
|
+
description: string;
|
|
420
|
+
defaultValue: string;
|
|
450
421
|
})[];
|
|
451
422
|
run: (options: import("./stats").StatsCommandOptions) => Promise<void>;
|
|
452
423
|
} | {
|
|
@@ -457,12 +428,6 @@ declare const _default: {
|
|
|
457
428
|
content: string[];
|
|
458
429
|
}[];
|
|
459
430
|
options: ({
|
|
460
|
-
name: string;
|
|
461
|
-
alias: string;
|
|
462
|
-
defaultValue: string;
|
|
463
|
-
description: string;
|
|
464
|
-
type: StringConstructor;
|
|
465
|
-
} | {
|
|
466
431
|
name: string;
|
|
467
432
|
type: BooleanConstructor;
|
|
468
433
|
description: string;
|
|
@@ -470,9 +435,6 @@ declare const _default: {
|
|
|
470
435
|
name: string;
|
|
471
436
|
type: StringConstructor;
|
|
472
437
|
description: string;
|
|
473
|
-
alias?: undefined;
|
|
474
|
-
typeLabel?: undefined;
|
|
475
|
-
defaultValue?: undefined;
|
|
476
438
|
} | {
|
|
477
439
|
name: string;
|
|
478
440
|
alias: string;
|
|
@@ -515,33 +477,6 @@ declare const _default: {
|
|
|
515
477
|
run: (options: {
|
|
516
478
|
salt: string;
|
|
517
479
|
}) => void;
|
|
518
|
-
} | {
|
|
519
|
-
command: string;
|
|
520
|
-
description: string;
|
|
521
|
-
options: ({
|
|
522
|
-
name: string;
|
|
523
|
-
alias: string;
|
|
524
|
-
defaultValue: string;
|
|
525
|
-
description: string;
|
|
526
|
-
type: StringConstructor;
|
|
527
|
-
} | {
|
|
528
|
-
name: string;
|
|
529
|
-
type: BooleanConstructor;
|
|
530
|
-
description: string;
|
|
531
|
-
} | {
|
|
532
|
-
name: string;
|
|
533
|
-
description: string;
|
|
534
|
-
type: StringConstructor;
|
|
535
|
-
alias?: undefined;
|
|
536
|
-
defaultValue?: undefined;
|
|
537
|
-
} | {
|
|
538
|
-
name: string;
|
|
539
|
-
alias: string;
|
|
540
|
-
type: NumberConstructor;
|
|
541
|
-
description: string;
|
|
542
|
-
defaultValue: number;
|
|
543
|
-
})[];
|
|
544
|
-
run: (opts: import("./drain").DrainOptions) => Promise<void>;
|
|
545
480
|
} | {
|
|
546
481
|
command: string;
|
|
547
482
|
description: string;
|
|
@@ -550,12 +485,6 @@ declare const _default: {
|
|
|
550
485
|
content: string[];
|
|
551
486
|
}[];
|
|
552
487
|
options: ({
|
|
553
|
-
name: string;
|
|
554
|
-
alias: string;
|
|
555
|
-
defaultValue: string;
|
|
556
|
-
description: string;
|
|
557
|
-
type: StringConstructor;
|
|
558
|
-
} | {
|
|
559
488
|
name: string;
|
|
560
489
|
type: BooleanConstructor;
|
|
561
490
|
description: string;
|
|
@@ -563,9 +492,6 @@ declare const _default: {
|
|
|
563
492
|
name: string;
|
|
564
493
|
type: StringConstructor;
|
|
565
494
|
description: string;
|
|
566
|
-
alias?: undefined;
|
|
567
|
-
typeLabel?: undefined;
|
|
568
|
-
defaultValue?: undefined;
|
|
569
495
|
} | {
|
|
570
496
|
name: string;
|
|
571
497
|
type: StringConstructor;
|
|
@@ -577,21 +503,13 @@ declare const _default: {
|
|
|
577
503
|
command: string;
|
|
578
504
|
description: string;
|
|
579
505
|
options: ({
|
|
580
|
-
name: string;
|
|
581
|
-
alias: string;
|
|
582
|
-
defaultValue: string;
|
|
583
|
-
description: string;
|
|
584
|
-
type: StringConstructor;
|
|
585
|
-
} | {
|
|
586
506
|
name: string;
|
|
587
507
|
type: BooleanConstructor;
|
|
588
508
|
description: string;
|
|
589
509
|
} | {
|
|
590
510
|
name: string;
|
|
591
|
-
description: string;
|
|
592
511
|
type: StringConstructor;
|
|
593
|
-
|
|
594
|
-
defaultValue?: undefined;
|
|
512
|
+
description: string;
|
|
595
513
|
} | {
|
|
596
514
|
name: string;
|
|
597
515
|
alias: string;
|
|
@@ -674,12 +592,6 @@ declare const _default: {
|
|
|
674
592
|
command: string;
|
|
675
593
|
description: string;
|
|
676
594
|
options: ({
|
|
677
|
-
name: string;
|
|
678
|
-
alias: string;
|
|
679
|
-
defaultValue: string;
|
|
680
|
-
description: string;
|
|
681
|
-
type: StringConstructor;
|
|
682
|
-
} | {
|
|
683
595
|
name: string;
|
|
684
596
|
type: BooleanConstructor;
|
|
685
597
|
description: string;
|
|
@@ -690,10 +602,8 @@ declare const _default: {
|
|
|
690
602
|
defaultValue: number;
|
|
691
603
|
} | {
|
|
692
604
|
name: string;
|
|
693
|
-
description: string;
|
|
694
605
|
type: StringConstructor;
|
|
695
|
-
|
|
696
|
-
defaultValue?: undefined;
|
|
606
|
+
description: string;
|
|
697
607
|
} | {
|
|
698
608
|
name: string;
|
|
699
609
|
description: string;
|
package/bin/commands/index.js
CHANGED
|
@@ -25,6 +25,7 @@ const receive_1 = __importDefault(require("./receive"));
|
|
|
25
25
|
const recipe_1 = __importDefault(require("./recipe"));
|
|
26
26
|
const registerMigratedUsers_1 = __importDefault(require("./registerMigratedUsers"));
|
|
27
27
|
const send_1 = __importDefault(require("./send"));
|
|
28
|
+
const setQuorum_1 = __importDefault(require("./setQuorum"));
|
|
28
29
|
const stats_1 = __importDefault(require("./stats"));
|
|
29
30
|
const wipe_1 = __importDefault(require("./wipe"));
|
|
30
31
|
const reject_1 = __importDefault(require("./reject"));
|
|
@@ -66,6 +67,7 @@ exports.default = {
|
|
|
66
67
|
recipe_1.default,
|
|
67
68
|
wipe_1.default,
|
|
68
69
|
create_1.default,
|
|
70
|
+
setQuorum_1.default,
|
|
69
71
|
get_1.default,
|
|
70
72
|
fetch_1.default,
|
|
71
73
|
faucet_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;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","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;AAAA,kDAAiC;AACjC,sDAAqC;AACrC,sDAAqC;AACrC,oDAAmC;AACnC,sDAAqC;AACrC,oDAAmC;AACnC,gEAA+C;AAC/C,wEAAuD;AACvD,gDAA+B;AAC/B,kEAAiD;AACjD,4DAA2C;AAC3C,gEAA+C;AAC/C,wDAAuC;AACvC,0DAAyC;AACzC,sDAAqC;AACrC,wDAAuC;AACvC,wDAAuC;AACvC,oDAAmC;AACnC,wDAAuC;AACvC,sDAAqC;AACrC,oFAAmE;AACnE,kDAAiC;AACjC,4DAA2C;AAC3C,oDAAmC;AACnC,kDAAiC;AACjC,sDAAqC;AAKrC,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,cAAc;QACtB,OAAO,EAAE;YACP,uDAAuD;YACvD,EAAE;YACF,yCAAyC;SAC1C;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAAG;IACd;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,sBAAsB;KACpC;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,cAAc;KAC5B;IACD;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,WAAW;KACzB;CACF,CAAC;AAEF,kBAAe;IACb,IAAI;IACJ,OAAO;IACP,WAAW,EAAE;QACX,iBAAc;QACd,cAAW;QACX,gBAAa;QACb,cAAW;QACX,gBAAa;QACb,mBAAgB;QAChB,aAAU;QACV,eAAY;QACZ,gBAAa;QACb,sBAAmB;QACnB,mBAAgB;QAChB,iBAAc;QACd,+BAA4B;QAC5B,eAAY;QACZ,gBAAa;QACb,iBAAc;QACd,kBAAe;QACf,eAAY;QACZ,cAAW;QACX,iBAAc;QACd,eAAY;QACZ,gBAAa;QACb,qBAAkB;QAClB,qBAAkB;QAClB,yBAAsB;QACtB,gBAAa;KACd;CACF,CAAC"}
|
package/bin/commands/listen.d.ts
CHANGED
|
@@ -11,12 +11,6 @@ declare const _default: {
|
|
|
11
11
|
content: string[];
|
|
12
12
|
}[];
|
|
13
13
|
options: ({
|
|
14
|
-
name: string;
|
|
15
|
-
alias: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
description: string;
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
} | {
|
|
20
14
|
name: string;
|
|
21
15
|
type: BooleanConstructor;
|
|
22
16
|
description: string;
|
|
@@ -24,9 +18,6 @@ declare const _default: {
|
|
|
24
18
|
name: string;
|
|
25
19
|
type: StringConstructor;
|
|
26
20
|
description: string;
|
|
27
|
-
alias?: undefined;
|
|
28
|
-
typeLabel?: undefined;
|
|
29
|
-
defaultValue?: undefined;
|
|
30
21
|
} | {
|
|
31
22
|
name: string;
|
|
32
23
|
alias: string;
|
|
@@ -6,12 +6,6 @@ declare const _default: {
|
|
|
6
6
|
command: string;
|
|
7
7
|
description: string;
|
|
8
8
|
options: ({
|
|
9
|
-
name: string;
|
|
10
|
-
alias: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
description: string;
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
} | {
|
|
15
9
|
name: string;
|
|
16
10
|
type: BooleanConstructor;
|
|
17
11
|
description: string;
|
|
@@ -19,9 +13,6 @@ declare const _default: {
|
|
|
19
13
|
name: string;
|
|
20
14
|
type: StringConstructor;
|
|
21
15
|
description: string;
|
|
22
|
-
alias?: undefined;
|
|
23
|
-
typeLabel?: undefined;
|
|
24
|
-
defaultValue?: undefined;
|
|
25
16
|
})[];
|
|
26
17
|
run: (options: MigrateOptions) => Promise<void>;
|
|
27
18
|
};
|
|
@@ -7,12 +7,6 @@ declare const _default: {
|
|
|
7
7
|
content: string;
|
|
8
8
|
}[];
|
|
9
9
|
options: ({
|
|
10
|
-
name: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
description: string;
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
} | {
|
|
16
10
|
name: string;
|
|
17
11
|
type: BooleanConstructor;
|
|
18
12
|
description: string;
|
|
@@ -23,10 +17,8 @@ declare const _default: {
|
|
|
23
17
|
defaultValue: number;
|
|
24
18
|
} | {
|
|
25
19
|
name: string;
|
|
26
|
-
description: string;
|
|
27
20
|
type: StringConstructor;
|
|
28
|
-
|
|
29
|
-
defaultValue?: undefined;
|
|
21
|
+
description: string;
|
|
30
22
|
})[];
|
|
31
23
|
run: (options: OnboardOptions) => Promise<void>;
|
|
32
24
|
};
|
|
@@ -7,21 +7,13 @@ declare const _default: {
|
|
|
7
7
|
command: string;
|
|
8
8
|
description: string;
|
|
9
9
|
options: ({
|
|
10
|
-
name: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
description: string;
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
} | {
|
|
16
10
|
name: string;
|
|
17
11
|
type: BooleanConstructor;
|
|
18
12
|
description: string;
|
|
19
13
|
} | {
|
|
20
14
|
name: string;
|
|
21
|
-
description: string;
|
|
22
15
|
type: StringConstructor;
|
|
23
|
-
|
|
24
|
-
defaultValue?: undefined;
|
|
16
|
+
description: string;
|
|
25
17
|
} | {
|
|
26
18
|
name: string;
|
|
27
19
|
alias: string;
|
package/bin/commands/recipe.d.ts
CHANGED
|
@@ -6,21 +6,13 @@ declare const _default: {
|
|
|
6
6
|
content: string;
|
|
7
7
|
}[];
|
|
8
8
|
options: ({
|
|
9
|
-
name: string;
|
|
10
|
-
alias: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
description: string;
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
} | {
|
|
15
9
|
name: string;
|
|
16
10
|
type: BooleanConstructor;
|
|
17
11
|
description: string;
|
|
18
12
|
} | {
|
|
19
13
|
name: string;
|
|
20
|
-
description: string;
|
|
21
14
|
type: StringConstructor;
|
|
22
|
-
|
|
23
|
-
defaultValue?: undefined;
|
|
15
|
+
description: string;
|
|
24
16
|
})[];
|
|
25
17
|
run: (options: GateOptions) => Promise<void>;
|
|
26
18
|
};
|
|
@@ -15,20 +15,10 @@ declare const _default: {
|
|
|
15
15
|
name: string;
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
description: string;
|
|
18
|
-
} | {
|
|
19
|
-
name: string;
|
|
20
|
-
alias: string;
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
typeLabel: string;
|
|
23
|
-
description: string;
|
|
24
|
-
defaultValue: string;
|
|
25
18
|
} | {
|
|
26
19
|
name: string;
|
|
27
20
|
type: StringConstructor;
|
|
28
21
|
description: string;
|
|
29
|
-
alias?: undefined;
|
|
30
|
-
typeLabel?: undefined;
|
|
31
|
-
defaultValue?: undefined;
|
|
32
22
|
})[];
|
|
33
23
|
run: (options: GateOptions) => Promise<void>;
|
|
34
24
|
};
|
package/bin/commands/reject.d.ts
CHANGED
|
@@ -8,12 +8,6 @@ declare const _default: {
|
|
|
8
8
|
command: string;
|
|
9
9
|
description: string;
|
|
10
10
|
options: ({
|
|
11
|
-
name: string;
|
|
12
|
-
alias: string;
|
|
13
|
-
defaultValue: string;
|
|
14
|
-
description: string;
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
} | {
|
|
17
11
|
name: string;
|
|
18
12
|
type: BooleanConstructor;
|
|
19
13
|
description: string;
|
|
@@ -24,10 +18,8 @@ declare const _default: {
|
|
|
24
18
|
defaultValue: number;
|
|
25
19
|
} | {
|
|
26
20
|
name: string;
|
|
27
|
-
description: string;
|
|
28
21
|
type: StringConstructor;
|
|
29
|
-
|
|
30
|
-
defaultValue?: undefined;
|
|
22
|
+
description: string;
|
|
31
23
|
} | {
|
|
32
24
|
name: string;
|
|
33
25
|
description: string;
|
package/bin/commands/send.d.ts
CHANGED
|
@@ -16,12 +16,6 @@ declare const _default: {
|
|
|
16
16
|
content: string[];
|
|
17
17
|
}[];
|
|
18
18
|
options: ({
|
|
19
|
-
name: string;
|
|
20
|
-
alias: string;
|
|
21
|
-
defaultValue: string;
|
|
22
|
-
description: string;
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
} | {
|
|
25
19
|
name: string;
|
|
26
20
|
type: BooleanConstructor;
|
|
27
21
|
description: string;
|
|
@@ -29,9 +23,6 @@ declare const _default: {
|
|
|
29
23
|
name: string;
|
|
30
24
|
type: StringConstructor;
|
|
31
25
|
description: string;
|
|
32
|
-
alias?: undefined;
|
|
33
|
-
typeLabel?: undefined;
|
|
34
|
-
defaultValue?: undefined;
|
|
35
26
|
} | {
|
|
36
27
|
name: string;
|
|
37
28
|
type: StringConstructor;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GateOptions } from "../types";
|
|
2
|
+
export interface SetQuorumOptions extends GateOptions {
|
|
3
|
+
positionals: string[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: {
|
|
6
|
+
command: string;
|
|
7
|
+
positionals: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
help: {
|
|
10
|
+
header: string;
|
|
11
|
+
content: string[];
|
|
12
|
+
}[];
|
|
13
|
+
options: ({
|
|
14
|
+
name: string;
|
|
15
|
+
alias: string;
|
|
16
|
+
defaultValue: string;
|
|
17
|
+
description: string;
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
description: string;
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
defaultValue: number;
|
|
28
|
+
})[];
|
|
29
|
+
run: (options: SetQuorumOptions) => Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const vault_common_1 = require("@ledgerhq/vault-common");
|
|
16
|
+
const gateOptions_1 = require("../gateOptions");
|
|
17
|
+
const cliOptions_1 = __importDefault(require("../cliOptions"));
|
|
18
|
+
const logger_1 = __importDefault(require("../logger"));
|
|
19
|
+
exports.default = {
|
|
20
|
+
command: "setQuorum",
|
|
21
|
+
positionals: true,
|
|
22
|
+
description: "Set the admin quorum",
|
|
23
|
+
help: [
|
|
24
|
+
{
|
|
25
|
+
header: "Examples",
|
|
26
|
+
content: ["$ ledger-vault setQuorum {bold 5}"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
options: [...gateOptions_1.minimalGateOptions, ...cliOptions_1.default],
|
|
30
|
+
run: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
+
const { gate, salt, positionals, networkDelay } = options;
|
|
32
|
+
const opts = {
|
|
33
|
+
gate,
|
|
34
|
+
salt,
|
|
35
|
+
};
|
|
36
|
+
const quorum = Number(positionals[0]);
|
|
37
|
+
const pool = vault_common_1.createDevicesPool(Object.assign(Object.assign({}, opts), { networkDelay }));
|
|
38
|
+
yield vault_common_1.bakeManifest({ quorum }, pool, { logger: logger_1.default });
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=setQuorum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setQuorum.js","sourceRoot":"","sources":["../../src/commands/setQuorum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAAyE;AAEzE,gDAAoD;AACpD,+DAAuC;AAEvC,uDAA+B;AAM/B,kBAAe;IACb,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE;QACJ;YACE,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,CAAC,mCAAmC,CAAC;SAC/C;KACF;IACD,OAAO,EAAE,CAAC,GAAG,gCAAkB,EAAE,GAAG,oBAAU,CAAC;IAC/C,GAAG,EAAE,CAAO,OAAyB,EAAiB,EAAE;QACtD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;QAE1D,MAAM,IAAI,GAAG;YACX,IAAI;YACJ,IAAI;SACL,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,gCAAiB,iCAAM,IAAI,KAAE,YAAY,IAAG,CAAC;QAE1D,MAAM,2BAAY,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;IACnD,CAAC,CAAA;CACF,CAAC"}
|
package/bin/commands/stats.d.ts
CHANGED
|
@@ -13,12 +13,6 @@ declare const _default: {
|
|
|
13
13
|
content: string[];
|
|
14
14
|
}[];
|
|
15
15
|
options: ({
|
|
16
|
-
name: string;
|
|
17
|
-
alias: string;
|
|
18
|
-
defaultValue: string;
|
|
19
|
-
description: string;
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
} | {
|
|
22
16
|
name: string;
|
|
23
17
|
type: BooleanConstructor;
|
|
24
18
|
description: string;
|
|
@@ -29,10 +23,15 @@ declare const _default: {
|
|
|
29
23
|
defaultValue: number;
|
|
30
24
|
} | {
|
|
31
25
|
name: string;
|
|
26
|
+
type: StringConstructor;
|
|
32
27
|
description: string;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
alias: string;
|
|
33
31
|
type: StringConstructor;
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
typeLabel: string;
|
|
33
|
+
description: string;
|
|
34
|
+
defaultValue: string;
|
|
36
35
|
})[];
|
|
37
36
|
run: (options: StatsCommandOptions) => Promise<void>;
|
|
38
37
|
};
|
package/bin/gateOptions.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const MINIVAULT_OPTION: {
|
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
description: string;
|
|
12
12
|
};
|
|
13
|
-
declare const
|
|
13
|
+
export declare const minimalGateOptions: ({
|
|
14
14
|
name: string;
|
|
15
15
|
alias: string;
|
|
16
16
|
defaultValue: string;
|
|
@@ -20,19 +20,20 @@ declare const _default: ({
|
|
|
20
20
|
name: string;
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
description: string;
|
|
23
|
-
}
|
|
23
|
+
})[];
|
|
24
|
+
declare const _default: ({
|
|
24
25
|
name: string;
|
|
25
26
|
alias: string;
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
description: string;
|
|
26
29
|
type: StringConstructor;
|
|
27
|
-
|
|
30
|
+
} | {
|
|
31
|
+
name: string;
|
|
32
|
+
type: BooleanConstructor;
|
|
28
33
|
description: string;
|
|
29
|
-
defaultValue: string;
|
|
30
34
|
} | {
|
|
31
35
|
name: string;
|
|
32
36
|
type: StringConstructor;
|
|
33
37
|
description: string;
|
|
34
|
-
alias?: undefined;
|
|
35
|
-
typeLabel?: undefined;
|
|
36
|
-
defaultValue?: undefined;
|
|
37
38
|
})[];
|
|
38
39
|
export default _default;
|
package/bin/gateOptions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MINIVAULT_OPTION = exports.GATE_OPTION = void 0;
|
|
3
|
+
exports.minimalGateOptions = exports.MINIVAULT_OPTION = exports.GATE_OPTION = void 0;
|
|
4
4
|
exports.GATE_OPTION = {
|
|
5
5
|
name: "gate",
|
|
6
6
|
alias: "g",
|
|
@@ -13,16 +13,18 @@ exports.MINIVAULT_OPTION = {
|
|
|
13
13
|
type: Boolean,
|
|
14
14
|
description: "If passed, use minivault defaults for gate & device-api",
|
|
15
15
|
};
|
|
16
|
+
const SALT_OPTION = {
|
|
17
|
+
name: "salt",
|
|
18
|
+
alias: "s",
|
|
19
|
+
type: String,
|
|
20
|
+
typeLabel: "<salt>",
|
|
21
|
+
description: "Salt used to generate devices seeds {blue $VAULT_SALT}",
|
|
22
|
+
defaultValue: "",
|
|
23
|
+
};
|
|
24
|
+
exports.minimalGateOptions = [exports.GATE_OPTION, SALT_OPTION, exports.MINIVAULT_OPTION];
|
|
16
25
|
exports.default = [
|
|
17
26
|
exports.GATE_OPTION,
|
|
18
|
-
|
|
19
|
-
name: "salt",
|
|
20
|
-
alias: "s",
|
|
21
|
-
type: String,
|
|
22
|
-
typeLabel: "<salt>",
|
|
23
|
-
description: "Salt used to generate devices seeds {blue $VAULT_SALT}",
|
|
24
|
-
defaultValue: "",
|
|
25
|
-
},
|
|
27
|
+
SALT_OPTION,
|
|
26
28
|
{
|
|
27
29
|
name: "readOnlyUser",
|
|
28
30
|
type: String,
|
package/bin/gateOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateOptions.js","sourceRoot":"","sources":["../src/gateOptions.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,+BAA+B;IAC3E,WAAW,EACT,oFAAoF;IACtF,IAAI,EAAE,MAAM;CACb,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yDAAyD;CACvE,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"gateOptions.js","sourceRoot":"","sources":["../src/gateOptions.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,+BAA+B;IAC3E,WAAW,EACT,oFAAoF;IACtF,IAAI,EAAE,MAAM;CACb,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yDAAyD;CACvE,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,QAAQ;IACnB,WAAW,EAAE,wDAAwD;IACrE,YAAY,EAAE,EAAE;CACjB,CAAC;AAEW,QAAA,kBAAkB,GAAG,CAAC,mBAAW,EAAE,WAAW,EAAE,wBAAgB,CAAC,CAAC;AAE/E,kBAAe;IACb,mBAAW;IACX,WAAW;IACX;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,yCAAyC;KACvD;IACD,wBAAgB;CACjB,CAAC"}
|
package/bin/presets/sci.json
CHANGED
|
@@ -10,6 +10,32 @@
|
|
|
10
10
|
},
|
|
11
11
|
"groups": [{ "name": "Beatles", "users": [10, 11, 12, 13] }],
|
|
12
12
|
"accounts": [
|
|
13
|
+
{
|
|
14
|
+
"name": "ETH 1",
|
|
15
|
+
"currency": "ethereum",
|
|
16
|
+
"rules": [
|
|
17
|
+
[
|
|
18
|
+
{
|
|
19
|
+
"type": "SMART_CONTRACT_INTERACTION",
|
|
20
|
+
"enabled": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "MULTI_AUTHORIZATIONS",
|
|
24
|
+
"steps": [{ "quorum": 1, "group": "Beatles" }]
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
{
|
|
29
|
+
"type": "SMART_CONTRACT_INTERACTION",
|
|
30
|
+
"enabled": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "MULTI_AUTHORIZATIONS",
|
|
34
|
+
"steps": [{ "quorum": 1, "group": "Beatles" }]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
]
|
|
38
|
+
},
|
|
13
39
|
{
|
|
14
40
|
"name": "ETH Ropsten 1",
|
|
15
41
|
"currency": "ethereum_ropsten",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/vault-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/LedgerHQ/vault-js",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@ledgerhq/cryptoassets": "^5.51.0",
|
|
24
24
|
"@ledgerhq/live-common": "^19.8.0",
|
|
25
|
-
"@ledgerhq/vault-common": "^0.
|
|
25
|
+
"@ledgerhq/vault-common": "^0.61.0",
|
|
26
26
|
"axios": "^0.21.0",
|
|
27
27
|
"bignumber.js": "^9.0.1",
|
|
28
28
|
"body-parser": "^1.19.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@types/node": "^15.0.2",
|
|
49
49
|
"@types/progress": "^2.0.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "b7f58e059364bc512a2e6af9b4f631c4e01875e2"
|
|
52
52
|
}
|