@ledgerhq/vault-cli 1.73.2 → 2.0.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/.turbo/turbo-build.log +16 -2
- package/CHANGELOG.md +64 -0
- package/__mocks__/@ledgerhq/vault-common.ts +1 -0
- package/bin/index.js +5615 -15
- package/bin/index.js.map +1 -1
- package/bin/index.mjs +5621 -0
- package/bin/index.mjs.map +1 -0
- package/package.json +6 -7
- package/tsup.config.ts +10 -0
- package/bin/__patchGateOptionsWithEnvVariables.d.ts +0 -4
- package/bin/__patchGateOptionsWithEnvVariables.d.ts.map +0 -1
- package/bin/__patchGateOptionsWithEnvVariables.js +0 -38
- package/bin/__patchGateOptionsWithEnvVariables.js.map +0 -1
- package/bin/__tests__/apdu.test.d.ts +0 -2
- package/bin/__tests__/apdu.test.d.ts.map +0 -1
- package/bin/__tests__/apdu.test.js +0 -33
- package/bin/__tests__/apdu.test.js.map +0 -1
- package/bin/__tests__/approve.test.d.ts +0 -2
- package/bin/__tests__/approve.test.d.ts.map +0 -1
- package/bin/__tests__/approve.test.js +0 -159
- package/bin/__tests__/approve.test.js.map +0 -1
- package/bin/__tests__/backupCompartment.test.d.ts +0 -2
- package/bin/__tests__/backupCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/backupCompartment.test.js +0 -88
- package/bin/__tests__/backupCompartment.test.js.map +0 -1
- package/bin/__tests__/bake.test.d.ts +0 -2
- package/bin/__tests__/bake.test.d.ts.map +0 -1
- package/bin/__tests__/bake.test.js +0 -175
- package/bin/__tests__/bake.test.js.map +0 -1
- package/bin/__tests__/cli.test.d.ts +0 -2
- package/bin/__tests__/cli.test.d.ts.map +0 -1
- package/bin/__tests__/cli.test.js +0 -222
- package/bin/__tests__/cli.test.js.map +0 -1
- package/bin/__tests__/configcat.test.d.ts +0 -2
- package/bin/__tests__/configcat.test.d.ts.map +0 -1
- package/bin/__tests__/configcat.test.js +0 -100
- package/bin/__tests__/configcat.test.js.map +0 -1
- package/bin/__tests__/create.test.d.ts +0 -2
- package/bin/__tests__/create.test.d.ts.map +0 -1
- package/bin/__tests__/create.test.js +0 -264
- package/bin/__tests__/create.test.js.map +0 -1
- package/bin/__tests__/deploy.test.d.ts +0 -2
- package/bin/__tests__/deploy.test.d.ts.map +0 -1
- package/bin/__tests__/deploy.test.js +0 -95
- package/bin/__tests__/deploy.test.js.map +0 -1
- package/bin/__tests__/destroy.test.d.ts +0 -2
- package/bin/__tests__/destroy.test.d.ts.map +0 -1
- package/bin/__tests__/destroy.test.js +0 -44
- package/bin/__tests__/destroy.test.js.map +0 -1
- package/bin/__tests__/drain.test.d.ts +0 -2
- package/bin/__tests__/drain.test.d.ts.map +0 -1
- package/bin/__tests__/drain.test.js +0 -35
- package/bin/__tests__/drain.test.js.map +0 -1
- package/bin/__tests__/faucet.test.d.ts +0 -2
- package/bin/__tests__/faucet.test.d.ts.map +0 -1
- package/bin/__tests__/faucet.test.js +0 -31
- package/bin/__tests__/faucet.test.js.map +0 -1
- package/bin/__tests__/fetch.test.d.ts +0 -2
- package/bin/__tests__/fetch.test.d.ts.map +0 -1
- package/bin/__tests__/fetch.test.js +0 -54
- package/bin/__tests__/fetch.test.js.map +0 -1
- package/bin/__tests__/genKeys.test.d.ts +0 -2
- package/bin/__tests__/genKeys.test.d.ts.map +0 -1
- package/bin/__tests__/genKeys.test.js +0 -17
- package/bin/__tests__/genKeys.test.js.map +0 -1
- package/bin/__tests__/get.test.d.ts +0 -2
- package/bin/__tests__/get.test.d.ts.map +0 -1
- package/bin/__tests__/get.test.js +0 -133
- package/bin/__tests__/get.test.js.map +0 -1
- package/bin/__tests__/getAPIUserTokens.test.d.ts +0 -2
- package/bin/__tests__/getAPIUserTokens.test.d.ts.map +0 -1
- package/bin/__tests__/getAPIUserTokens.test.js +0 -69
- package/bin/__tests__/getAPIUserTokens.test.js.map +0 -1
- package/bin/__tests__/getAuthToken.test.d.ts +0 -2
- package/bin/__tests__/getAuthToken.test.d.ts.map +0 -1
- package/bin/__tests__/getAuthToken.test.js +0 -31
- package/bin/__tests__/getAuthToken.test.js.map +0 -1
- package/bin/__tests__/getCertFromPFX.test.d.ts +0 -2
- package/bin/__tests__/getCertFromPFX.test.d.ts.map +0 -1
- package/bin/__tests__/getCertFromPFX.test.js +0 -54
- package/bin/__tests__/getCertFromPFX.test.js.map +0 -1
- package/bin/__tests__/getMVInstances.test.d.ts +0 -2
- package/bin/__tests__/getMVInstances.test.d.ts.map +0 -1
- package/bin/__tests__/getMVInstances.test.js +0 -72
- package/bin/__tests__/getMVInstances.test.js.map +0 -1
- package/bin/__tests__/getSeeds.test.d.ts +0 -2
- package/bin/__tests__/getSeeds.test.d.ts.map +0 -1
- package/bin/__tests__/getSeeds.test.js +0 -20
- package/bin/__tests__/getSeeds.test.js.map +0 -1
- package/bin/__tests__/getUserID.test.d.ts +0 -2
- package/bin/__tests__/getUserID.test.d.ts.map +0 -1
- package/bin/__tests__/getUserID.test.js +0 -31
- package/bin/__tests__/getUserID.test.js.map +0 -1
- package/bin/__tests__/initCompartment.test.d.ts +0 -2
- package/bin/__tests__/initCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/initCompartment.test.js +0 -86
- package/bin/__tests__/initCompartment.test.js.map +0 -1
- package/bin/__tests__/onboard.test.d.ts +0 -2
- package/bin/__tests__/onboard.test.d.ts.map +0 -1
- package/bin/__tests__/onboard.test.js +0 -63
- package/bin/__tests__/onboard.test.js.map +0 -1
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.d.ts +0 -2
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.d.ts.map +0 -1
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.js +0 -34
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.js.map +0 -1
- package/bin/__tests__/pledge.test.d.ts +0 -2
- package/bin/__tests__/pledge.test.d.ts.map +0 -1
- package/bin/__tests__/pledge.test.js +0 -110
- package/bin/__tests__/pledge.test.js.map +0 -1
- package/bin/__tests__/proxy.test.d.ts +0 -2
- package/bin/__tests__/proxy.test.d.ts.map +0 -1
- package/bin/__tests__/proxy.test.js +0 -22
- package/bin/__tests__/proxy.test.js.map +0 -1
- package/bin/__tests__/receive.test.d.ts +0 -2
- package/bin/__tests__/receive.test.d.ts.map +0 -1
- package/bin/__tests__/receive.test.js +0 -85
- package/bin/__tests__/receive.test.js.map +0 -1
- package/bin/__tests__/recipe.test.d.ts +0 -2
- package/bin/__tests__/recipe.test.d.ts.map +0 -1
- package/bin/__tests__/recipe.test.js +0 -41
- package/bin/__tests__/recipe.test.js.map +0 -1
- package/bin/__tests__/reject.test.d.ts +0 -2
- package/bin/__tests__/reject.test.d.ts.map +0 -1
- package/bin/__tests__/reject.test.js +0 -214
- package/bin/__tests__/reject.test.js.map +0 -1
- package/bin/__tests__/resetCompartment.test.d.ts +0 -2
- package/bin/__tests__/resetCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/resetCompartment.test.js +0 -88
- package/bin/__tests__/resetCompartment.test.js.map +0 -1
- package/bin/__tests__/restoreCompartment.test.d.ts +0 -2
- package/bin/__tests__/restoreCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/restoreCompartment.test.js +0 -95
- package/bin/__tests__/restoreCompartment.test.js.map +0 -1
- package/bin/__tests__/revoke.test.d.ts +0 -2
- package/bin/__tests__/revoke.test.d.ts.map +0 -1
- package/bin/__tests__/revoke.test.js +0 -62
- package/bin/__tests__/revoke.test.js.map +0 -1
- package/bin/__tests__/send.test.d.ts +0 -2
- package/bin/__tests__/send.test.d.ts.map +0 -1
- package/bin/__tests__/send.test.js +0 -216
- package/bin/__tests__/send.test.js.map +0 -1
- package/bin/__tests__/setQuorum.test.d.ts +0 -2
- package/bin/__tests__/setQuorum.test.d.ts.map +0 -1
- package/bin/__tests__/setQuorum.test.js +0 -32
- package/bin/__tests__/setQuorum.test.js.map +0 -1
- package/bin/__tests__/settle.test.d.ts +0 -2
- package/bin/__tests__/settle.test.d.ts.map +0 -1
- package/bin/__tests__/settle.test.js +0 -123
- package/bin/__tests__/settle.test.js.map +0 -1
- package/bin/__tests__/test-utils.d.ts +0 -19
- package/bin/__tests__/test-utils.d.ts.map +0 -1
- package/bin/__tests__/test-utils.js +0 -39
- package/bin/__tests__/test-utils.js.map +0 -1
- package/bin/__tests__/upgrade.test.d.ts +0 -2
- package/bin/__tests__/upgrade.test.d.ts.map +0 -1
- package/bin/__tests__/upgrade.test.js +0 -57
- package/bin/__tests__/upgrade.test.js.map +0 -1
- package/bin/__tests__/utils.test.d.ts +0 -2
- package/bin/__tests__/utils.test.d.ts.map +0 -1
- package/bin/__tests__/utils.test.js +0 -40
- package/bin/__tests__/utils.test.js.map +0 -1
- package/bin/__tests__/wipe.test.d.ts +0 -2
- package/bin/__tests__/wipe.test.d.ts.map +0 -1
- package/bin/__tests__/wipe.test.js +0 -92
- package/bin/__tests__/wipe.test.js.map +0 -1
- package/bin/cli.d.ts +0 -4
- package/bin/cli.d.ts.map +0 -1
- package/bin/cli.js +0 -152
- package/bin/cli.js.map +0 -1
- package/bin/cliOptions.d.ts +0 -8
- package/bin/cliOptions.d.ts.map +0 -1
- package/bin/cliOptions.js +0 -11
- package/bin/cliOptions.js.map +0 -1
- package/bin/commands/apdu.d.ts +0 -14
- package/bin/commands/apdu.d.ts.map +0 -1
- package/bin/commands/apdu.js +0 -35
- package/bin/commands/apdu.js.map +0 -1
- package/bin/commands/approve.d.ts +0 -34
- package/bin/commands/approve.d.ts.map +0 -1
- package/bin/commands/approve.js +0 -150
- package/bin/commands/approve.js.map +0 -1
- package/bin/commands/backupCompartment.d.ts +0 -31
- package/bin/commands/backupCompartment.d.ts.map +0 -1
- package/bin/commands/backupCompartment.js +0 -70
- package/bin/commands/backupCompartment.js.map +0 -1
- package/bin/commands/bake.d.ts +0 -73
- package/bin/commands/bake.d.ts.map +0 -1
- package/bin/commands/bake.js +0 -232
- package/bin/commands/bake.js.map +0 -1
- package/bin/commands/bridge.d.ts +0 -22
- package/bin/commands/bridge.d.ts.map +0 -1
- package/bin/commands/bridge.js +0 -137
- package/bin/commands/bridge.js.map +0 -1
- package/bin/commands/configcat.d.ts +0 -78
- package/bin/commands/configcat.d.ts.map +0 -1
- package/bin/commands/configcat.js +0 -208
- package/bin/commands/configcat.js.map +0 -1
- package/bin/commands/create.d.ts +0 -207
- package/bin/commands/create.d.ts.map +0 -1
- package/bin/commands/create.js +0 -554
- package/bin/commands/create.js.map +0 -1
- package/bin/commands/deploy.d.ts +0 -60
- package/bin/commands/deploy.d.ts.map +0 -1
- package/bin/commands/deploy.js +0 -106
- package/bin/commands/deploy.js.map +0 -1
- package/bin/commands/destroy.d.ts +0 -36
- package/bin/commands/destroy.d.ts.map +0 -1
- package/bin/commands/destroy.js +0 -58
- package/bin/commands/destroy.js.map +0 -1
- package/bin/commands/drain.d.ts +0 -26
- package/bin/commands/drain.d.ts.map +0 -1
- package/bin/commands/drain.js +0 -64
- package/bin/commands/drain.js.map +0 -1
- package/bin/commands/faucet.d.ts +0 -31
- package/bin/commands/faucet.d.ts.map +0 -1
- package/bin/commands/faucet.js +0 -68
- package/bin/commands/faucet.js.map +0 -1
- package/bin/commands/fetch.d.ts +0 -35
- package/bin/commands/fetch.d.ts.map +0 -1
- package/bin/commands/fetch.js +0 -83
- package/bin/commands/fetch.js.map +0 -1
- package/bin/commands/genKeys.d.ts +0 -14
- package/bin/commands/genKeys.d.ts.map +0 -1
- package/bin/commands/genKeys.js +0 -19
- package/bin/commands/genKeys.js.map +0 -1
- package/bin/commands/get.d.ts +0 -56
- package/bin/commands/get.d.ts.map +0 -1
- package/bin/commands/get.js +0 -211
- package/bin/commands/get.js.map +0 -1
- package/bin/commands/getAPIUserTokens.d.ts +0 -39
- package/bin/commands/getAPIUserTokens.d.ts.map +0 -1
- package/bin/commands/getAPIUserTokens.js +0 -63
- package/bin/commands/getAPIUserTokens.js.map +0 -1
- package/bin/commands/getAuthToken.d.ts +0 -26
- package/bin/commands/getAuthToken.d.ts.map +0 -1
- package/bin/commands/getAuthToken.js +0 -42
- package/bin/commands/getAuthToken.js.map +0 -1
- package/bin/commands/getMVInstances.d.ts +0 -33
- package/bin/commands/getMVInstances.d.ts.map +0 -1
- package/bin/commands/getMVInstances.js +0 -71
- package/bin/commands/getMVInstances.js.map +0 -1
- package/bin/commands/getSeeds.d.ts +0 -19
- package/bin/commands/getSeeds.d.ts.map +0 -1
- package/bin/commands/getSeeds.js +0 -95
- package/bin/commands/getSeeds.js.map +0 -1
- package/bin/commands/getUserID.d.ts +0 -27
- package/bin/commands/getUserID.d.ts.map +0 -1
- package/bin/commands/getUserID.js +0 -32
- package/bin/commands/getUserID.js.map +0 -1
- package/bin/commands/index.d.ts +0 -892
- package/bin/commands/index.d.ts.map +0 -1
- package/bin/commands/index.js +0 -111
- package/bin/commands/index.js.map +0 -1
- package/bin/commands/initCompartment.d.ts +0 -22
- package/bin/commands/initCompartment.d.ts.map +0 -1
- package/bin/commands/initCompartment.js +0 -62
- package/bin/commands/initCompartment.js.map +0 -1
- package/bin/commands/listen.d.ts +0 -31
- package/bin/commands/listen.d.ts.map +0 -1
- package/bin/commands/listen.js +0 -56
- package/bin/commands/listen.js.map +0 -1
- package/bin/commands/onboard.d.ts +0 -30
- package/bin/commands/onboard.d.ts.map +0 -1
- package/bin/commands/onboard.js +0 -68
- package/bin/commands/onboard.js.map +0 -1
- package/bin/commands/pledge.d.ts +0 -38
- package/bin/commands/pledge.d.ts.map +0 -1
- package/bin/commands/pledge.js +0 -89
- package/bin/commands/pledge.js.map +0 -1
- package/bin/commands/proxy.d.ts +0 -17
- package/bin/commands/proxy.d.ts.map +0 -1
- package/bin/commands/proxy.js +0 -227
- package/bin/commands/proxy.js.map +0 -1
- package/bin/commands/receive.d.ts +0 -40
- package/bin/commands/receive.d.ts.map +0 -1
- package/bin/commands/receive.js +0 -60
- package/bin/commands/receive.js.map +0 -1
- package/bin/commands/recipe.d.ts +0 -29
- package/bin/commands/recipe.d.ts.map +0 -1
- package/bin/commands/recipe.js +0 -62
- package/bin/commands/recipe.js.map +0 -1
- package/bin/commands/reject.d.ts +0 -49
- package/bin/commands/reject.d.ts.map +0 -1
- package/bin/commands/reject.js +0 -176
- package/bin/commands/reject.js.map +0 -1
- package/bin/commands/resetCompartment.d.ts +0 -31
- package/bin/commands/resetCompartment.d.ts.map +0 -1
- package/bin/commands/resetCompartment.js +0 -71
- package/bin/commands/resetCompartment.js.map +0 -1
- package/bin/commands/restoreCompartment.d.ts +0 -39
- package/bin/commands/restoreCompartment.d.ts.map +0 -1
- package/bin/commands/restoreCompartment.js +0 -80
- package/bin/commands/restoreCompartment.js.map +0 -1
- package/bin/commands/revoke.d.ts +0 -40
- package/bin/commands/revoke.d.ts.map +0 -1
- package/bin/commands/revoke.js +0 -80
- package/bin/commands/revoke.js.map +0 -1
- package/bin/commands/send.d.ts +0 -54
- package/bin/commands/send.d.ts.map +0 -1
- package/bin/commands/send.js +0 -170
- package/bin/commands/send.js.map +0 -1
- package/bin/commands/setQuorum.d.ts +0 -30
- package/bin/commands/setQuorum.d.ts.map +0 -1
- package/bin/commands/setQuorum.js +0 -44
- package/bin/commands/setQuorum.js.map +0 -1
- package/bin/commands/settle.d.ts +0 -43
- package/bin/commands/settle.d.ts.map +0 -1
- package/bin/commands/settle.js +0 -92
- package/bin/commands/settle.js.map +0 -1
- package/bin/commands/upgrade.d.ts +0 -44
- package/bin/commands/upgrade.d.ts.map +0 -1
- package/bin/commands/upgrade.js +0 -68
- package/bin/commands/upgrade.js.map +0 -1
- package/bin/commands/wipe.d.ts +0 -77
- package/bin/commands/wipe.d.ts.map +0 -1
- package/bin/commands/wipe.js +0 -86
- package/bin/commands/wipe.js.map +0 -1
- package/bin/deviceOption.d.ts +0 -9
- package/bin/deviceOption.d.ts.map +0 -1
- package/bin/deviceOption.js +0 -10
- package/bin/deviceOption.js.map +0 -1
- package/bin/gateOptions.d.ts +0 -39
- package/bin/gateOptions.d.ts.map +0 -1
- package/bin/gateOptions.js +0 -73
- package/bin/gateOptions.js.map +0 -1
- package/bin/getCertFromPFX.d.ts +0 -7
- package/bin/getCertFromPFX.d.ts.map +0 -1
- package/bin/getCertFromPFX.js +0 -43
- package/bin/getCertFromPFX.js.map +0 -1
- package/bin/index.d.ts +0 -3
- package/bin/index.d.ts.map +0 -1
- package/bin/lamOptions.d.ts +0 -15
- package/bin/lamOptions.d.ts.map +0 -1
- package/bin/lamOptions.js +0 -17
- package/bin/lamOptions.js.map +0 -1
- package/bin/logger.d.ts +0 -3
- package/bin/logger.d.ts.map +0 -1
- package/bin/logger.js +0 -5
- package/bin/logger.js.map +0 -1
- package/bin/manifests/beatles.json +0 -46
- package/bin/manifests/empty.json +0 -1
- package/bin/manifests/erc20.json +0 -32
- package/bin/manifests/message-signing.json +0 -36
- package/bin/manifests/mobile.json +0 -43
- package/bin/manifests/polkadot-staking.json +0 -152
- package/bin/manifests/polkadot.json +0 -37
- package/bin/manifests/rawsigning.json +0 -39
- package/bin/manifests/ripple.json +0 -37
- package/bin/manifests/sci.json +0 -146
- package/bin/manifests/solana-dev.json +0 -99
- package/bin/manifests/solana-staking.json +0 -44
- package/bin/manifests/solana.json +0 -30
- package/bin/manifests/stellar.json +0 -37
- package/bin/manifests/tezos.json +0 -51
- package/bin/manifests/tradelink-hsm.json +0 -429
- package/bin/manifests/tradelink.json +0 -361
- package/bin/miscOptions.d.ts +0 -20
- package/bin/miscOptions.d.ts.map +0 -1
- package/bin/miscOptions.js +0 -17
- package/bin/miscOptions.js.map +0 -1
- package/bin/registerTransports.d.ts +0 -2
- package/bin/registerTransports.d.ts.map +0 -1
- package/bin/registerTransports.js +0 -18
- package/bin/registerTransports.js.map +0 -1
- package/bin/types.d.ts +0 -23
- package/bin/types.d.ts.map +0 -1
- package/bin/types.js +0 -3
- package/bin/types.js.map +0 -1
- package/bin/utils.d.ts +0 -22
- package/bin/utils.d.ts.map +0 -1
- package/bin/utils.js +0 -156
- package/bin/utils.js.map +0 -1
package/bin/commands/send.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
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 cliOptions_1 = __importDefault(require("../cliOptions"));
|
|
17
|
-
const gateOptions_1 = __importDefault(require("../gateOptions"));
|
|
18
|
-
const logger_1 = __importDefault(require("../logger"));
|
|
19
|
-
const utils_1 = require("../utils");
|
|
20
|
-
function sendTransaction(options) {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const { feesLevel, gasPrice, gasLimit } = options;
|
|
23
|
-
if (!vault_common_1.feesLevels.includes(feesLevel)) {
|
|
24
|
-
throw new Error(`Fees level should be one of the following ${vault_common_1.feesLevels
|
|
25
|
-
.map((feesLevel) => feesLevel)
|
|
26
|
-
.join(", ")}`);
|
|
27
|
-
}
|
|
28
|
-
if (feesLevel === "CUSTOM" && (!gasPrice || !gasLimit)) {
|
|
29
|
-
throw new Error("Gas price and gas limit are required when using custom fees");
|
|
30
|
-
}
|
|
31
|
-
const pool = (0, vault_common_1.createDevicesPool)(Object.assign(Object.assign({}, options), { deviceAPIURL: options.deviceAPI }));
|
|
32
|
-
const recipe = yield (0, vault_common_1.recipeManifest)(pool);
|
|
33
|
-
const { manifest, rawData } = recipe;
|
|
34
|
-
if (!manifest.accounts) {
|
|
35
|
-
throw new Error("No accounts found");
|
|
36
|
-
}
|
|
37
|
-
const account = manifest.accounts.find((a) => a.name === options.account);
|
|
38
|
-
if (!account) {
|
|
39
|
-
throw new Error(`Account '${options.account}' not found`);
|
|
40
|
-
}
|
|
41
|
-
const transaction = {
|
|
42
|
-
account: options.account,
|
|
43
|
-
recipient: options.recipient,
|
|
44
|
-
amount: options.amount,
|
|
45
|
-
transactionType: options.txType,
|
|
46
|
-
feesLevel: options.feesLevel,
|
|
47
|
-
gasLimit: options.gasLimit,
|
|
48
|
-
gasPrice: options.gasPrice,
|
|
49
|
-
title: options.title,
|
|
50
|
-
comment: options.comment,
|
|
51
|
-
};
|
|
52
|
-
if (options.strategy) {
|
|
53
|
-
Object.assign(transaction, {
|
|
54
|
-
utxosPickingStrategy: options.strategy,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
if (options.contractPayload) {
|
|
58
|
-
if (!contractPayloadSupported(account)) {
|
|
59
|
-
throw new Error("Option --contractPayload can only be used with ethereum accounts");
|
|
60
|
-
}
|
|
61
|
-
Object.assign(transaction, {
|
|
62
|
-
contractPayload: options.contractPayload,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const sendPayload = {
|
|
66
|
-
pool,
|
|
67
|
-
transaction,
|
|
68
|
-
account,
|
|
69
|
-
groups: manifest.groups,
|
|
70
|
-
accountsByName: rawData.accountsByName,
|
|
71
|
-
whitelistsByName: rawData.whitelistsByName,
|
|
72
|
-
noApproval: options.noApproval,
|
|
73
|
-
};
|
|
74
|
-
const tx = yield (0, vault_common_1.send)(sendPayload, { logger: logger_1.default });
|
|
75
|
-
(0, utils_1.displayTable)({
|
|
76
|
-
edges: [{ cursor: tx.id, node: tx }],
|
|
77
|
-
pageInfo: {
|
|
78
|
-
count: 1,
|
|
79
|
-
hasNextPage: false,
|
|
80
|
-
},
|
|
81
|
-
}, "TRANSACTION");
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
const contractPayloadSupported = (account) => {
|
|
85
|
-
return ("currency" in account &&
|
|
86
|
-
["ethereum", "ethereum_ropsten", "ethereum_goerli", "polygon", "bsc"].includes(account.currency));
|
|
87
|
-
};
|
|
88
|
-
exports.default = {
|
|
89
|
-
command: "send",
|
|
90
|
-
description: "Create a transaction",
|
|
91
|
-
help: [
|
|
92
|
-
{
|
|
93
|
-
header: "Examples",
|
|
94
|
-
content: [
|
|
95
|
-
"{grey $} ledger-vault send {bold --account} accountName {bold --recipient} address {bold --amount} 2",
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
options: [
|
|
100
|
-
{
|
|
101
|
-
name: "account",
|
|
102
|
-
type: String,
|
|
103
|
-
description: "Sender account name",
|
|
104
|
-
required: true,
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: "recipient",
|
|
108
|
-
description: "Address of the recipient",
|
|
109
|
-
type: String,
|
|
110
|
-
defaultValue: "",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "amount",
|
|
114
|
-
description: "Amount in default unit (e.g in BTC for Bitcoin)",
|
|
115
|
-
type: String,
|
|
116
|
-
defaultValue: "0",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "feesLevel",
|
|
120
|
-
description: "Fees level (SLOW|NORMAL|FAST|CUSTOM)",
|
|
121
|
-
type: String,
|
|
122
|
-
defaultValue: "NORMAL",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: "gasPrice",
|
|
126
|
-
description: "Gas price for your transaction. Only used with {blue --feesLevel} set to CUSTOM",
|
|
127
|
-
type: String,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: "gasLimit",
|
|
131
|
-
description: "Gas limit for your transaction. Only used with {blue --feesLevel} set to CUSTOM",
|
|
132
|
-
type: String,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "noApproval",
|
|
136
|
-
type: Boolean,
|
|
137
|
-
description: "Create the transaction without approving it",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: "strategy",
|
|
141
|
-
type: String,
|
|
142
|
-
description: "Strategy to use to pick utxo (MERGE_OUTPUTS|DEEP_OUTPUTS_FIRST|OPTIMIZE_SIZE)",
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: "contractPayload",
|
|
146
|
-
type: String,
|
|
147
|
-
description: "Raw hex smart-contract input (only for Ethereum account types)",
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: "txType",
|
|
151
|
-
type: String,
|
|
152
|
-
defaultValue: "SEND",
|
|
153
|
-
description: "Transaction type (SEND|RECEIVE|PREBURN|BURN|MINT|DELEGATE|UNDELEGATE)",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "title",
|
|
157
|
-
type: String,
|
|
158
|
-
description: "Transaction title",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: "comment",
|
|
162
|
-
type: String,
|
|
163
|
-
description: "Transaction note comment",
|
|
164
|
-
},
|
|
165
|
-
...gateOptions_1.default,
|
|
166
|
-
...cliOptions_1.default,
|
|
167
|
-
],
|
|
168
|
-
run: sendTransaction,
|
|
169
|
-
};
|
|
170
|
-
//# sourceMappingURL=send.js.map
|
package/bin/commands/send.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAQgC;AAEhC,+DAAuC;AACvC,iEAAyC;AACzC,uDAA+B;AAE/B,oCAAwC;AAiBxC,SAAe,eAAe,CAAC,OAAiB;;QAC9C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;QAClD,IAAI,CAAC,yB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EAAE,mBAAmB;SACjC;QACD;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,0BAA0B;SACxC;QACD,GAAG,qBAAW;QACd,GAAG,oBAAU;KACd;IACD,GAAG,EAAE,eAAe;CACrB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
type: BooleanConstructor;
|
|
16
|
-
description: string;
|
|
17
|
-
} | {
|
|
18
|
-
name: string;
|
|
19
|
-
description: string;
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
} | {
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
defaultValue: number;
|
|
26
|
-
})[];
|
|
27
|
-
run: (options: SetQuorumOptions) => Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
export default _default;
|
|
30
|
-
//# sourceMappingURL=setQuorum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setQuorum.d.ts","sourceRoot":"","sources":["../../src/commands/setQuorum.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;;;;;;;;;;;;;;;;;;;;;;;mBAasB,gBAAgB,KAAG,QAAQ,IAAI,CAAC;;AAXvD,wBA0BE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 cliOptions_1 = __importDefault(require("../cliOptions"));
|
|
17
|
-
const gateOptions_1 = __importDefault(require("../gateOptions"));
|
|
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: ["{grey $} ledger-vault setQuorum {bold 5}"],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
options: [...gateOptions_1.default, ...cliOptions_1.default],
|
|
30
|
-
run: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
-
const { gate, apiGateway, transport, salt, positionals, networkDelay } = options;
|
|
32
|
-
const quorum = Number(positionals[0]);
|
|
33
|
-
const pool = (0, vault_common_1.createDevicesPool)({
|
|
34
|
-
gate,
|
|
35
|
-
apiGateway,
|
|
36
|
-
salt,
|
|
37
|
-
transport,
|
|
38
|
-
networkDelay,
|
|
39
|
-
deviceAPIURL: options.deviceAPI,
|
|
40
|
-
});
|
|
41
|
-
yield (0, vault_common_1.bakeManifest)({ quorum }, pool, { logger: logger_1.default });
|
|
42
|
-
}),
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=setQuorum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setQuorum.js","sourceRoot":"","sources":["../../src/commands/setQuorum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAAyE;AAEzE,+DAAuC;AACvC,iEAAyC;AACzC,uDAA+B;AAO/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,0CAA0C,CAAC;SACtD;KACF;IACD,OAAO,EAAE,CAAC,GAAG,qBAAW,EAAE,GAAG,oBAAU,CAAC;IACxC,GAAG,EAAE,CAAO,OAAyB,EAAiB,EAAE;QACtD,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;QAEjF,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,IAAA,gCAAiB,EAAC;YAC7B,IAAI;YACJ,UAAU;YACV,IAAI;YACJ,SAAS;YACT,YAAY;YACZ,YAAY,EAAE,OAAO,CAAC,SAAS;SAChC,CAAC,CAAC;QAEH,MAAM,IAAA,2BAAY,EAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;IACnD,CAAC,CAAA;CACF,CAAC"}
|
package/bin/commands/settle.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { GateOptions } from "../types";
|
|
2
|
-
export interface SettlementOpts extends GateOptions {
|
|
3
|
-
account: string;
|
|
4
|
-
exchange: string;
|
|
5
|
-
percentage: number;
|
|
6
|
-
apiV2User: string;
|
|
7
|
-
}
|
|
8
|
-
declare function settle(options: SettlementOpts): Promise<void>;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
command: string;
|
|
11
|
-
description: string;
|
|
12
|
-
help: {
|
|
13
|
-
header: string;
|
|
14
|
-
content: string[];
|
|
15
|
-
}[];
|
|
16
|
-
options: ({
|
|
17
|
-
name: string;
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
description: string;
|
|
20
|
-
} | {
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
} | {
|
|
25
|
-
name: string;
|
|
26
|
-
description: string;
|
|
27
|
-
type: NumberConstructor;
|
|
28
|
-
defaultValue: number;
|
|
29
|
-
} | {
|
|
30
|
-
name: string;
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
description: string;
|
|
33
|
-
required: boolean;
|
|
34
|
-
} | {
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
type: NumberConstructor;
|
|
38
|
-
required: boolean;
|
|
39
|
-
})[];
|
|
40
|
-
run: typeof settle;
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
43
|
-
//# sourceMappingURL=settle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settle.d.ts","sourceRoot":"","sources":["../../src/commands/settle.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,iBAAe,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAuC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,wBAwCE"}
|
package/bin/commands/settle.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
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 cliOptions_1 = __importDefault(require("../cliOptions"));
|
|
17
|
-
const gateOptions_1 = __importDefault(require("../gateOptions"));
|
|
18
|
-
const logger_1 = __importDefault(require("../logger"));
|
|
19
|
-
function settle(options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const { exchange, percentage, apiV2User } = options;
|
|
23
|
-
if (percentage > 100) {
|
|
24
|
-
throw new Error(`Invalid percentage '${percentage}', please choose a value between 0 and 100'`);
|
|
25
|
-
}
|
|
26
|
-
const pool = (0, vault_common_1.createDevicesPool)(Object.assign(Object.assign({}, options), { deviceAPIURL: options.deviceAPI }));
|
|
27
|
-
const recipe = yield (0, vault_common_1.recipeManifest)(pool);
|
|
28
|
-
const { manifest, rawData } = recipe;
|
|
29
|
-
const account = (_a = manifest.accounts) === null || _a === void 0 ? void 0 : _a.find((a) => a.name === options.account);
|
|
30
|
-
if (!account) {
|
|
31
|
-
throw new Error(`Account '${options.account}' not found`);
|
|
32
|
-
}
|
|
33
|
-
const myApiUser = (_c = (_b = manifest.users) === null || _b === void 0 ? void 0 : _b.apiV2) === null || _c === void 0 ? void 0 : _c.find((user) => user.name.includes(apiV2User));
|
|
34
|
-
if (!myApiUser) {
|
|
35
|
-
throw new Error(`No API V2 user found for ${apiV2User}`);
|
|
36
|
-
}
|
|
37
|
-
const settlementData = {
|
|
38
|
-
pool,
|
|
39
|
-
account,
|
|
40
|
-
accountsByName: rawData.accountsByName,
|
|
41
|
-
exchange,
|
|
42
|
-
percentage,
|
|
43
|
-
apiUser: myApiUser,
|
|
44
|
-
gate: options.gate,
|
|
45
|
-
apiGateway: options.apiGateway,
|
|
46
|
-
};
|
|
47
|
-
const settleResp = yield (0, vault_common_1.createSettlement)(settlementData, { logger: logger_1.default });
|
|
48
|
-
logger_1.default.info(settleResp);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
exports.default = {
|
|
52
|
-
command: "settle",
|
|
53
|
-
description: "Create a settlement",
|
|
54
|
-
help: [
|
|
55
|
-
{
|
|
56
|
-
header: "Examples",
|
|
57
|
-
content: [
|
|
58
|
-
"{grey $} ledger-vault settle {bold --account} TL-0001-ETH-OOF-KOM {bold --exchange} Crypto.com {bold --percentage} 50 {bold --apiV2User} 10",
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
options: [
|
|
63
|
-
{
|
|
64
|
-
name: "account",
|
|
65
|
-
type: String,
|
|
66
|
-
description: "Sender account name",
|
|
67
|
-
required: true,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "exchange",
|
|
71
|
-
type: String,
|
|
72
|
-
description: "Pledge exchange name",
|
|
73
|
-
required: true,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: "percentage",
|
|
77
|
-
description: "Percentage amount to pledge (0-100)",
|
|
78
|
-
type: Number,
|
|
79
|
-
required: true,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "apiV2User",
|
|
83
|
-
description: "API V2 user name: will do a string search",
|
|
84
|
-
type: String,
|
|
85
|
-
required: true,
|
|
86
|
-
},
|
|
87
|
-
...gateOptions_1.default,
|
|
88
|
-
...cliOptions_1.default,
|
|
89
|
-
],
|
|
90
|
-
run: settle,
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=settle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settle.js","sourceRoot":"","sources":["../../src/commands/settle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAA6F;AAE7F,+DAAuC;AACvC,iEAAyC;AACzC,uDAA+B;AAU/B,SAAe,MAAM,CAAC,OAAuB;;;QAC3C,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QAEpD,IAAI,UAAU,GAAG,GAAG,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,UAAU,6CAA6C,CAAC,CAAC;SACjG;QACD,MAAM,IAAI,GAAG,IAAA,gCAAiB,kCACzB,OAAO,KACV,YAAY,EAAE,OAAO,CAAC,SAAS,IAC/B,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAGrC,MAAM,OAAO,GAAG,MAAA,QAAQ,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;QAE3E,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,CAAC,OAAO,aAAa,CAAC,CAA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E,MAAM;YACZ,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,qBAAW;QACd,GAAG,oBAAU;KACd;IACD,GAAG,EAAE,MAAM;CACZ,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
type UpgradeCommandOptions = {
|
|
2
|
-
name: string;
|
|
3
|
-
preset?: string;
|
|
4
|
-
values?: string;
|
|
5
|
-
watchTimeoutMinutes?: number;
|
|
6
|
-
remoteURL: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const upgradeCommand: (options: UpgradeCommandOptions) => Promise<void>;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
command: string;
|
|
11
|
-
description: string;
|
|
12
|
-
help: {
|
|
13
|
-
header: string;
|
|
14
|
-
content: string[];
|
|
15
|
-
}[];
|
|
16
|
-
options: ({
|
|
17
|
-
name: string;
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
description: string;
|
|
20
|
-
required: boolean;
|
|
21
|
-
defaultValue?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
required?: undefined;
|
|
27
|
-
defaultValue?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
name: string;
|
|
30
|
-
description: string;
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
defaultValue: string;
|
|
33
|
-
required?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
type: NumberConstructor;
|
|
38
|
-
defaultValue: number;
|
|
39
|
-
required?: undefined;
|
|
40
|
-
})[];
|
|
41
|
-
run: (options: UpgradeCommandOptions) => Promise<void>;
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
|
44
|
-
//# sourceMappingURL=upgrade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AASA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,YAAmB,qBAAqB,KAAG,QAAQ,IAAI,CAajF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAwCE"}
|
package/bin/commands/upgrade.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
exports.upgradeCommand = void 0;
|
|
16
|
-
const vault_common_1 = require("@ledgerhq/vault-common");
|
|
17
|
-
const logger_1 = __importDefault(require("../logger"));
|
|
18
|
-
const upgradeCommand = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
let values = null;
|
|
20
|
-
if (options.values) {
|
|
21
|
-
values = JSON.parse(options.values);
|
|
22
|
-
}
|
|
23
|
-
const upgradeOptions = Object.assign(Object.assign({ remoteURL: options.remoteURL, name: options.name, watchTimeoutMinutes: options.watchTimeoutMinutes }, (options.preset ? { preset: options.preset } : {})), (values ? { values } : {}));
|
|
24
|
-
yield (0, vault_common_1.upgrade)(upgradeOptions, { logger: logger_1.default });
|
|
25
|
-
});
|
|
26
|
-
exports.upgradeCommand = upgradeCommand;
|
|
27
|
-
exports.default = {
|
|
28
|
-
command: "upgrade",
|
|
29
|
-
description: "Upgrade a minivault instance deployed by vault-remote",
|
|
30
|
-
help: [
|
|
31
|
-
{
|
|
32
|
-
header: "Examples",
|
|
33
|
-
content: ["{grey $} ledger-vault upgrade --name foo --preset release-4.20"],
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
options: [
|
|
37
|
-
{
|
|
38
|
-
name: "name",
|
|
39
|
-
type: String,
|
|
40
|
-
description: "Name of the instance to target",
|
|
41
|
-
required: true,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: "preset",
|
|
45
|
-
description: "If passed, will upgrade to those preset values",
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: "values",
|
|
50
|
-
description: "JSON values to override Helm values",
|
|
51
|
-
type: String,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "remoteURL",
|
|
55
|
-
description: `vault-remote URL {grey (default: ${vault_common_1.DEFAULT_VAULT_REMOTE_URL})}`,
|
|
56
|
-
type: String,
|
|
57
|
-
defaultValue: vault_common_1.DEFAULT_VAULT_REMOTE_URL,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "watchTimeoutMinutes",
|
|
61
|
-
description: `Stop watching and throw after the given elapsed minutes {grey (default: 10)}`,
|
|
62
|
-
type: Number,
|
|
63
|
-
defaultValue: 10,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
run: exports.upgradeCommand,
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=upgrade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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C;YAClD,IAAI,EAAE,MAAM;SACb;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,oCAAoC,uCAAwB,IAAI;YAC7E,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,uCAAwB;SACvC;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,EAAE;SACjB;KACF;IACD,GAAG,EAAE,sBAAc;CACpB,CAAC"}
|
package/bin/commands/wipe.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export type WipeCommandOptions = {
|
|
2
|
-
gate: string;
|
|
3
|
-
lam?: string;
|
|
4
|
-
lamAPIKey?: string;
|
|
5
|
-
minivault?: boolean;
|
|
6
|
-
compartment: number;
|
|
7
|
-
hsm: string;
|
|
8
|
-
hsmCert: string;
|
|
9
|
-
hsmCertPassword: string;
|
|
10
|
-
monotonicCountersSize?: number;
|
|
11
|
-
fileSystemSize?: number;
|
|
12
|
-
};
|
|
13
|
-
export declare function wipe(options: WipeCommandOptions): Promise<void>;
|
|
14
|
-
export declare const wipeOptions: ({
|
|
15
|
-
name: string;
|
|
16
|
-
alias: string;
|
|
17
|
-
type: NumberConstructor;
|
|
18
|
-
description: string;
|
|
19
|
-
defaultValue: string | undefined;
|
|
20
|
-
} | {
|
|
21
|
-
name: string;
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
description: string;
|
|
24
|
-
defaultValue: string | undefined;
|
|
25
|
-
alias?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
name: string;
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
description: string;
|
|
30
|
-
alias?: undefined;
|
|
31
|
-
defaultValue?: undefined;
|
|
32
|
-
})[];
|
|
33
|
-
declare const _default: {
|
|
34
|
-
command: string;
|
|
35
|
-
description: string;
|
|
36
|
-
help: {
|
|
37
|
-
content: string;
|
|
38
|
-
}[];
|
|
39
|
-
options: ({
|
|
40
|
-
name: string;
|
|
41
|
-
alias: string;
|
|
42
|
-
defaultValue: string;
|
|
43
|
-
description: string;
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
} | {
|
|
46
|
-
name: string;
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
description: string;
|
|
49
|
-
} | {
|
|
50
|
-
name: string;
|
|
51
|
-
description: string;
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
alias?: undefined;
|
|
54
|
-
defaultValue?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
name: string;
|
|
57
|
-
alias: string;
|
|
58
|
-
type: NumberConstructor;
|
|
59
|
-
description: string;
|
|
60
|
-
defaultValue: string | undefined;
|
|
61
|
-
} | {
|
|
62
|
-
name: string;
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
description: string;
|
|
65
|
-
defaultValue: string | undefined;
|
|
66
|
-
alias?: undefined;
|
|
67
|
-
} | {
|
|
68
|
-
name: string;
|
|
69
|
-
type: NumberConstructor;
|
|
70
|
-
description: string;
|
|
71
|
-
alias?: undefined;
|
|
72
|
-
defaultValue?: undefined;
|
|
73
|
-
})[];
|
|
74
|
-
run: typeof wipe;
|
|
75
|
-
};
|
|
76
|
-
export default _default;
|
|
77
|
-
//# sourceMappingURL=wipe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wipe.d.ts","sourceRoot":"","sources":["../../src/commands/wipe.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAsB,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBrE;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;IAoCvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAME"}
|