@settlemint/sdk-cli 1.1.11-pr3fd97300 → 1.1.11-pr84754a00
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/dist/cli.js +28 -35
- package/dist/cli.js.map +5 -5
- package/package.json +4 -4
package/dist/cli.js
CHANGED
@@ -266630,7 +266630,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
266630
266630
|
var package_default = {
|
266631
266631
|
name: "@settlemint/sdk-cli",
|
266632
266632
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
266633
|
-
version: "1.1.11-
|
266633
|
+
version: "1.1.11-pr84754a00",
|
266634
266634
|
type: "module",
|
266635
266635
|
private: false,
|
266636
266636
|
license: "FSL-1.1-MIT",
|
@@ -266678,9 +266678,9 @@ var package_default = {
|
|
266678
266678
|
"@inquirer/input": "4.1.6",
|
266679
266679
|
"@inquirer/password": "4.0.9",
|
266680
266680
|
"@inquirer/select": "4.0.9",
|
266681
|
-
"@settlemint/sdk-js": "1.1.11-
|
266682
|
-
"@settlemint/sdk-utils": "1.1.11-
|
266683
|
-
"@types/node": "22.13.
|
266681
|
+
"@settlemint/sdk-js": "1.1.11-pr84754a00",
|
266682
|
+
"@settlemint/sdk-utils": "1.1.11-pr84754a00",
|
266683
|
+
"@types/node": "22.13.7",
|
266684
266684
|
"@types/semver": "7.5.8",
|
266685
266685
|
"@types/which": "3.0.4",
|
266686
266686
|
"get-tsconfig": "4.10.0",
|
@@ -279501,9 +279501,9 @@ async function selectTargetNode({
|
|
279501
279501
|
cancel2("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
|
279502
279502
|
}
|
279503
279503
|
const nodesWithPrivateKey = await Promise.all(nodes.map((node2) => settlemint.blockchainNode.read(node2.uniqueName)));
|
279504
|
-
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0
|
279504
|
+
const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
|
279505
279505
|
if (nodesWithActivePrivateKey.length === 0) {
|
279506
|
-
cancel2("No blockchain nodes with
|
279506
|
+
cancel2("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
279507
279507
|
}
|
279508
279508
|
const blockchainNode = await blockchainNodePrompt({
|
279509
279509
|
env: env2,
|
@@ -279541,11 +279541,14 @@ async function addressPrompt({
|
|
279541
279541
|
const possiblePrivateKeys = node.privateKeys?.filter((privateKey) => privateKey.privateKeyType !== "HD_ECDSA_P256") ?? [];
|
279542
279542
|
const defaultAddress = hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
|
279543
279543
|
const defaultPossible = accept && defaultAddress;
|
279544
|
+
if (!node.privateKeys || node.privateKeys.length === 0) {
|
279545
|
+
cancel2(`No ECDSA P256 or HSM ECDSA P256 private key is activated on the node '${node.uniqueName}'. Please activate a private key on this node or specify a different node.`);
|
279546
|
+
}
|
279544
279547
|
if (defaultPossible) {
|
279545
279548
|
if (possiblePrivateKeys.some((privateKey) => privateKey.address?.toLowerCase() === defaultAddress?.toLowerCase())) {
|
279546
279549
|
return defaultAddress;
|
279547
279550
|
}
|
279548
|
-
note(`Private key with address '${defaultAddress}'
|
279551
|
+
note(`Private key with address '${defaultAddress}' not activated on the node '${node.uniqueName}'.
|
279549
279552
|
Please select another key or activate this key on the node and try again.`, "warn");
|
279550
279553
|
}
|
279551
279554
|
const address = await esm_default2({
|
@@ -279654,33 +279657,23 @@ function hardhatDeployRemoteCommand() {
|
|
279654
279657
|
return nothingSelectedError("private key");
|
279655
279658
|
}
|
279656
279659
|
const { command, args } = await getPackageManagerExecutable();
|
279657
|
-
|
279658
|
-
|
279659
|
-
|
279660
|
-
|
279661
|
-
|
279662
|
-
|
279663
|
-
|
279664
|
-
|
279665
|
-
|
279666
|
-
|
279667
|
-
|
279668
|
-
|
279669
|
-
|
279670
|
-
|
279671
|
-
|
279672
|
-
|
279673
|
-
|
279674
|
-
const outputStr = output.join(`
|
279675
|
-
`);
|
279676
|
-
if (!outputStr.includes("Deploy cancelled")) {
|
279677
|
-
outro("Smart contracts deployed successfully to remote network");
|
279678
|
-
} else {
|
279679
|
-
note("Smart contract deployment was cancelled");
|
279680
|
-
}
|
279681
|
-
} catch (error5) {
|
279682
|
-
cancel2("The smart contract deployment was unsuccessful. Please check the error details above and try again. You may need to review your contract code or deployment configuration.");
|
279683
|
-
}
|
279660
|
+
await executeCommand(command, [
|
279661
|
+
...args,
|
279662
|
+
"hardhat",
|
279663
|
+
"ignition",
|
279664
|
+
"deploy",
|
279665
|
+
...reset2 ? ["--reset"] : [],
|
279666
|
+
...verify ? ["--verify"] : [],
|
279667
|
+
...deploymentId ? ["--deployment-id", deploymentId] : [],
|
279668
|
+
...parameters ? ["--parameters", parameters] : [],
|
279669
|
+
...strategy ? ["--strategy", strategy] : [],
|
279670
|
+
"--network",
|
279671
|
+
"btp",
|
279672
|
+
"--default-sender",
|
279673
|
+
address,
|
279674
|
+
module ?? "ignition/modules/main.ts"
|
279675
|
+
].filter(Boolean), { env: envConfig });
|
279676
|
+
outro("Smart contracts deployed successfully to remote network");
|
279684
279677
|
});
|
279685
279678
|
return cmd2;
|
279686
279679
|
}
|
@@ -280311,4 +280304,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
280311
280304
|
// src/cli.ts
|
280312
280305
|
sdkCliCommand();
|
280313
280306
|
|
280314
|
-
//# debugId=
|
280307
|
+
//# debugId=F6D0578CD611E17364756E2164756E21
|