@ledgerhq/vault-cli 0.60.0 → 0.61.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.
@@ -19,12 +19,6 @@ declare const _default: {
19
19
  allowNoPositional: boolean;
20
20
  positionals: boolean;
21
21
  options: ({
22
- name: string;
23
- alias: string;
24
- defaultValue: string;
25
- description: string;
26
- type: StringConstructor;
27
- } | {
28
22
  name: string;
29
23
  type: BooleanConstructor;
30
24
  description: string;
@@ -34,12 +28,6 @@ declare const _default: {
34
28
  type: NumberConstructor;
35
29
  description: string;
36
30
  defaultValue: string | undefined;
37
- } | {
38
- name: string;
39
- type: StringConstructor;
40
- description: string;
41
- defaultValue: string | undefined;
42
- alias?: undefined;
43
31
  } | {
44
32
  name: string;
45
33
  description: string;
@@ -47,10 +35,8 @@ declare const _default: {
47
35
  defaultValue: number;
48
36
  } | {
49
37
  name: string;
50
- description: string;
51
38
  type: StringConstructor;
52
- alias?: undefined;
53
- defaultValue?: undefined;
39
+ description: string;
54
40
  } | {
55
41
  name: string;
56
42
  alias: string;
@@ -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
- alias?: undefined;
57
- defaultValue?: undefined;
49
+ description: string;
58
50
  })[];
59
51
  subCommands: ({
60
52
  command: string;
@@ -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
- alias?: undefined;
23
- defaultValue?: undefined;
15
+ description: string;
24
16
  } | {
25
17
  name: string;
26
18
  alias: string;
@@ -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
- alias?: undefined;
34
- defaultValue?: undefined;
26
+ description: string;
35
27
  })[];
36
28
  run: (options: FetchOptions) => Promise<void>;
37
29
  };
@@ -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
- alias?: undefined;
26
- typeLabel?: undefined;
27
- defaultValue?: undefined;
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;
@@ -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;
@@ -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,10 +39,8 @@ declare const _default: {
51
39
  defaultValue: number;
52
40
  } | {
53
41
  name: string;
54
- description: string;
55
42
  type: StringConstructor;
56
- alias?: undefined;
57
- defaultValue?: undefined;
43
+ description: string;
58
44
  } | {
59
45
  name: string;
60
46
  alias: string;
@@ -103,12 +89,6 @@ declare const _default: {
103
89
  command: string;
104
90
  description: string;
105
91
  options: ({
106
- name: string;
107
- alias: string;
108
- defaultValue: string;
109
- description: string;
110
- type: StringConstructor;
111
- } | {
112
92
  name: string;
113
93
  type: BooleanConstructor;
114
94
  description: string;
@@ -119,10 +99,8 @@ declare const _default: {
119
99
  defaultValue: number;
120
100
  } | {
121
101
  name: string;
122
- description: string;
123
102
  type: StringConstructor;
124
- alias?: undefined;
125
- defaultValue?: undefined;
103
+ description: string;
126
104
  })[];
127
105
  subCommands: ({
128
106
  command: string;
@@ -283,12 +261,6 @@ declare const _default: {
283
261
  command: string;
284
262
  description: string;
285
263
  options: ({
286
- name: string;
287
- alias: string;
288
- defaultValue: string;
289
- description: string;
290
- type: StringConstructor;
291
- } | {
292
264
  name: string;
293
265
  type: BooleanConstructor;
294
266
  description: string;
@@ -301,9 +273,13 @@ declare const _default: {
301
273
  name: string;
302
274
  type: StringConstructor;
303
275
  description: string;
304
- alias?: undefined;
305
- typeLabel?: undefined;
306
- defaultValue?: undefined;
276
+ } | {
277
+ name: string;
278
+ alias: string;
279
+ type: StringConstructor;
280
+ typeLabel: string;
281
+ description: string;
282
+ defaultValue: string;
307
283
  })[];
308
284
  subCommands: ({
309
285
  command: string;
@@ -333,12 +309,6 @@ declare const _default: {
333
309
  content: string[];
334
310
  }[];
335
311
  options: ({
336
- name: string;
337
- alias: string;
338
- defaultValue: string;
339
- description: string;
340
- type: StringConstructor;
341
- } | {
342
312
  name: string;
343
313
  type: BooleanConstructor;
344
314
  description: string;
@@ -349,10 +319,8 @@ declare const _default: {
349
319
  defaultValue: number;
350
320
  } | {
351
321
  name: string;
352
- description: string;
353
322
  type: StringConstructor;
354
- alias?: undefined;
355
- defaultValue?: undefined;
323
+ description: string;
356
324
  })[];
357
325
  run: (options: import("./fetch").FetchOptions) => Promise<void>;
358
326
  } | {
@@ -387,11 +355,24 @@ declare const _default: {
387
355
  description: string;
388
356
  options: ({
389
357
  name: string;
390
- alias: string;
391
- defaultValue: string;
358
+ type: BooleanConstructor;
392
359
  description: string;
360
+ } | {
361
+ name: string;
393
362
  type: StringConstructor;
363
+ description: string;
394
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: ({
395
376
  name: string;
396
377
  type: BooleanConstructor;
397
378
  description: string;
@@ -399,9 +380,6 @@ declare const _default: {
399
380
  name: string;
400
381
  type: StringConstructor;
401
382
  description: string;
402
- alias?: undefined;
403
- typeLabel?: undefined;
404
- defaultValue?: undefined;
405
383
  })[];
406
384
  run: (options: {
407
385
  salt: string;
@@ -421,12 +399,6 @@ declare const _default: {
421
399
  content: string[];
422
400
  }[];
423
401
  options: ({
424
- name: string;
425
- alias: string;
426
- defaultValue: string;
427
- description: string;
428
- type: StringConstructor;
429
- } | {
430
402
  name: string;
431
403
  type: BooleanConstructor;
432
404
  description: string;
@@ -437,10 +409,15 @@ declare const _default: {
437
409
  defaultValue: number;
438
410
  } | {
439
411
  name: string;
412
+ type: StringConstructor;
440
413
  description: string;
414
+ } | {
415
+ name: string;
416
+ alias: string;
441
417
  type: StringConstructor;
442
- alias?: undefined;
443
- defaultValue?: undefined;
418
+ typeLabel: string;
419
+ description: string;
420
+ defaultValue: string;
444
421
  })[];
445
422
  run: (options: import("./stats").StatsCommandOptions) => Promise<void>;
446
423
  } | {
@@ -451,12 +428,6 @@ declare const _default: {
451
428
  content: string[];
452
429
  }[];
453
430
  options: ({
454
- name: string;
455
- alias: string;
456
- defaultValue: string;
457
- description: string;
458
- type: StringConstructor;
459
- } | {
460
431
  name: string;
461
432
  type: BooleanConstructor;
462
433
  description: string;
@@ -464,9 +435,6 @@ declare const _default: {
464
435
  name: string;
465
436
  type: StringConstructor;
466
437
  description: string;
467
- alias?: undefined;
468
- typeLabel?: undefined;
469
- defaultValue?: undefined;
470
438
  } | {
471
439
  name: string;
472
440
  alias: string;
@@ -509,33 +477,6 @@ declare const _default: {
509
477
  run: (options: {
510
478
  salt: string;
511
479
  }) => void;
512
- } | {
513
- command: string;
514
- description: string;
515
- options: ({
516
- name: string;
517
- alias: string;
518
- defaultValue: string;
519
- description: string;
520
- type: StringConstructor;
521
- } | {
522
- name: string;
523
- type: BooleanConstructor;
524
- description: string;
525
- } | {
526
- name: string;
527
- description: string;
528
- type: StringConstructor;
529
- alias?: undefined;
530
- defaultValue?: undefined;
531
- } | {
532
- name: string;
533
- alias: string;
534
- type: NumberConstructor;
535
- description: string;
536
- defaultValue: number;
537
- })[];
538
- run: (opts: import("./drain").DrainOptions) => Promise<void>;
539
480
  } | {
540
481
  command: string;
541
482
  description: string;
@@ -544,12 +485,6 @@ declare const _default: {
544
485
  content: string[];
545
486
  }[];
546
487
  options: ({
547
- name: string;
548
- alias: string;
549
- defaultValue: string;
550
- description: string;
551
- type: StringConstructor;
552
- } | {
553
488
  name: string;
554
489
  type: BooleanConstructor;
555
490
  description: string;
@@ -557,9 +492,6 @@ declare const _default: {
557
492
  name: string;
558
493
  type: StringConstructor;
559
494
  description: string;
560
- alias?: undefined;
561
- typeLabel?: undefined;
562
- defaultValue?: undefined;
563
495
  } | {
564
496
  name: string;
565
497
  type: StringConstructor;
@@ -571,21 +503,13 @@ declare const _default: {
571
503
  command: string;
572
504
  description: string;
573
505
  options: ({
574
- name: string;
575
- alias: string;
576
- defaultValue: string;
577
- description: string;
578
- type: StringConstructor;
579
- } | {
580
506
  name: string;
581
507
  type: BooleanConstructor;
582
508
  description: string;
583
509
  } | {
584
510
  name: string;
585
- description: string;
586
511
  type: StringConstructor;
587
- alias?: undefined;
588
- defaultValue?: undefined;
512
+ description: string;
589
513
  } | {
590
514
  name: string;
591
515
  alias: string;
@@ -668,12 +592,6 @@ declare const _default: {
668
592
  command: string;
669
593
  description: string;
670
594
  options: ({
671
- name: string;
672
- alias: string;
673
- defaultValue: string;
674
- description: string;
675
- type: StringConstructor;
676
- } | {
677
595
  name: string;
678
596
  type: BooleanConstructor;
679
597
  description: string;
@@ -684,10 +602,8 @@ declare const _default: {
684
602
  defaultValue: number;
685
603
  } | {
686
604
  name: string;
687
- description: string;
688
605
  type: StringConstructor;
689
- alias?: undefined;
690
- defaultValue?: undefined;
606
+ description: string;
691
607
  } | {
692
608
  name: string;
693
609
  description: string;
@@ -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":";;;;;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,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,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"}
1
+ {"version":3,"file":"index.js","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"}
@@ -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
- alias?: undefined;
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
- alias?: undefined;
24
- defaultValue?: undefined;
16
+ description: string;
25
17
  } | {
26
18
  name: string;
27
19
  alias: string;
@@ -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
- alias?: undefined;
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
  };
@@ -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
- alias?: undefined;
30
- defaultValue?: undefined;
22
+ description: string;
31
23
  } | {
32
24
  name: string;
33
25
  description: string;
@@ -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"}
@@ -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
- alias?: undefined;
35
- defaultValue?: undefined;
32
+ typeLabel: string;
33
+ description: string;
34
+ defaultValue: string;
36
35
  })[];
37
36
  run: (options: StatsCommandOptions) => Promise<void>;
38
37
  };
@@ -10,7 +10,7 @@ export declare const MINIVAULT_OPTION: {
10
10
  type: BooleanConstructor;
11
11
  description: string;
12
12
  };
13
- declare const _default: ({
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
- typeLabel: string;
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;
@@ -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,
@@ -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,kBAAe;IACb,mBAAW;IACX;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,wDAAwD;QACrE,YAAY,EAAE,EAAE;KACjB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,yCAAyC;KACvD;IACD,wBAAgB;CACjB,CAAC"}
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/vault-cli",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
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.60.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": "a7137557478ba46daf7380f34fcd4a1925729de5"
51
+ "gitHead": "04b43fd4f3dd7f7fb9e8eb33ce9f843c244a7b95"
52
52
  }