@settlemint/sdk-cli 1.0.9-pr5f0bc595 → 1.0.9-pr89b422a8

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 CHANGED
@@ -268710,9 +268710,7 @@ var DotEnvSchema = z.object({
268710
268710
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema.optional(),
268711
268711
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema.optional(),
268712
268712
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
268713
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
268714
- SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
268715
- SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
268713
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
268716
268714
  });
268717
268715
  var DotEnvSchemaPartial = DotEnvSchema.partial();
268718
268716
  var IdSchema = z.union([
@@ -269057,7 +269055,7 @@ function table(title, data) {
269057
269055
  var package_default = {
269058
269056
  name: "@settlemint/sdk-cli",
269059
269057
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
269060
- version: "1.0.9-pr5f0bc595",
269058
+ version: "1.0.9-pr89b422a8",
269061
269059
  type: "module",
269062
269060
  private: false,
269063
269061
  license: "FSL-1.1-MIT",
@@ -269106,13 +269104,13 @@ var package_default = {
269106
269104
  semver: "7.6.3",
269107
269105
  slugify: "1.6.6",
269108
269106
  yoctocolors: "2.1.1",
269109
- "@commander-js/extra-typings": "13.0.0",
269107
+ "@commander-js/extra-typings": "13.1.0",
269110
269108
  "@inquirer/confirm": "5.1.3",
269111
269109
  "@inquirer/input": "4.1.3",
269112
269110
  "@inquirer/password": "4.0.6",
269113
269111
  "@inquirer/select": "4.0.6",
269114
- "@settlemint/sdk-js": "1.0.9-pr5f0bc595",
269115
- "@settlemint/sdk-utils": "1.0.9-pr5f0bc595",
269112
+ "@settlemint/sdk-js": "1.0.9-pr89b422a8",
269113
+ "@settlemint/sdk-utils": "1.0.9-pr89b422a8",
269116
269114
  "get-tsconfig": "4.10.0",
269117
269115
  giget: "1.2.3",
269118
269116
  yaml: "2.7.0"
@@ -272390,9 +272388,7 @@ var DotEnvSchema2 = z.object({
272390
272388
  SETTLEMINT_BLOCKSCOUT: UniqueNameSchema2.optional(),
272391
272389
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
272392
272390
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
272393
- SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
272394
- SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
272395
- SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
272391
+ SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
272396
272392
  });
272397
272393
  var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
272398
272394
  var IdSchema2 = z.union([
@@ -272981,9 +272977,7 @@ async function writeEnvSpinner(prod, env2) {
272981
272977
  SETTLEMINT_BLOCKSCOUT: env2.SETTLEMINT_BLOCKSCOUT,
272982
272978
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
272983
272979
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
272984
- SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME,
272985
- SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
272986
- SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
272980
+ SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME
272987
272981
  };
272988
272982
  await writeEnv({
272989
272983
  prod,
@@ -278728,13 +278722,13 @@ async function addressPrompt({
278728
278722
  hardhatConfig
278729
278723
  }) {
278730
278724
  const possiblePrivateKeys = node.privateKeys?.filter((privateKey) => privateKey.privateKeyType !== "HD_ECDSA_P256") ?? [];
278731
- const defaultAddress = env2.SETTLEMINT_SMART_CONTRACT_ADDRESS ?? hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
278725
+ const defaultAddress = hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
278732
278726
  const defaultPossible = accept && defaultAddress;
278733
278727
  if (!node.privateKeys || node.privateKeys.length === 0) {
278734
278728
  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.`);
278735
278729
  }
278736
278730
  if (defaultPossible) {
278737
- if (node.privateKeys.some((privateKey) => privateKey.address?.toLowerCase() === defaultAddress?.toLowerCase())) {
278731
+ if (possiblePrivateKeys.some((privateKey) => privateKey.address?.toLowerCase() === defaultAddress?.toLowerCase())) {
278738
278732
  return defaultAddress;
278739
278733
  }
278740
278734
  note(`Private key with address '${defaultAddress}' not activated on the node '${node.uniqueName}'.
@@ -278748,12 +278742,6 @@ Please select another key or activate this key on the node and try again.`, "war
278748
278742
  })),
278749
278743
  default: defaultAddress ?? possiblePrivateKeys[0]?.address
278750
278744
  });
278751
- if (address && address !== env2.SETTLEMINT_SMART_CONTRACT_ADDRESS) {
278752
- await writeEnvSpinner(!!prod, {
278753
- ...env2,
278754
- SETTLEMINT_SMART_CONTRACT_ADDRESS: address
278755
- });
278756
- }
278757
278745
  return address;
278758
278746
  }
278759
278747
 
@@ -278842,7 +278830,10 @@ function hardhatDeployRemoteCommand() {
278842
278830
  if (verify && !hardhatConfig?.etherscan?.apiKey) {
278843
278831
  cancel2("It is not possible to verify the deployment on this network unless you supply an Etherscan API key in the hardhat.config.ts file");
278844
278832
  }
278845
- const address = await addressPrompt({ env: env2, accept: autoAccept, prod, node, hardhatConfig });
278833
+ let address = defaultSender ?? null;
278834
+ if (!defaultSender) {
278835
+ address = await addressPrompt({ env: env2, accept: autoAccept, prod, node, hardhatConfig });
278836
+ }
278846
278837
  if (!address) {
278847
278838
  return nothingSelectedError("private key");
278848
278839
  }
@@ -278855,11 +278846,12 @@ function hardhatDeployRemoteCommand() {
278855
278846
  ...reset2 ? ["--reset"] : [],
278856
278847
  ...verify ? ["--verify"] : [],
278857
278848
  ...deploymentId ? ["--deployment-id", deploymentId] : [],
278858
- ...defaultSender ? ["--default-sender", defaultSender] : [],
278859
278849
  ...parameters ? ["--parameters", parameters] : [],
278860
278850
  ...strategy ? ["--strategy", strategy] : [],
278861
278851
  "--network",
278862
278852
  "btp",
278853
+ "--default-sender",
278854
+ address,
278863
278855
  module ?? "ignition/modules/main.ts"
278864
278856
  ].filter(Boolean), { env: envConfig });
278865
278857
  });
@@ -279396,4 +279388,4 @@ async function sdkCliCommand(argv = process.argv) {
279396
279388
  // src/cli.ts
279397
279389
  sdkCliCommand();
279398
279390
 
279399
- //# debugId=37BA8CCF411BF49D64756E2164756E21
279391
+ //# debugId=CFBEB4B88A72C49864756E2164756E21