@settlemint/sdk-cli 2.3.14-pr9ea16ef8 → 2.3.14-praeeb9d7e

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
@@ -263764,7 +263764,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263764
263764
  var package_default = {
263765
263765
  name: "@settlemint/sdk-cli",
263766
263766
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263767
- version: "2.3.14-pr9ea16ef8",
263767
+ version: "2.3.14-praeeb9d7e",
263768
263768
  type: "module",
263769
263769
  private: false,
263770
263770
  license: "FSL-1.1-MIT",
@@ -263813,9 +263813,9 @@ var package_default = {
263813
263813
  "@inquirer/input": "4.1.12",
263814
263814
  "@inquirer/password": "4.0.15",
263815
263815
  "@inquirer/select": "4.2.3",
263816
- "@settlemint/sdk-js": "2.3.14-pr9ea16ef8",
263817
- "@settlemint/sdk-utils": "2.3.14-pr9ea16ef8",
263818
- "@settlemint/sdk-viem": "2.3.14-pr9ea16ef8",
263816
+ "@settlemint/sdk-js": "2.3.14-praeeb9d7e",
263817
+ "@settlemint/sdk-utils": "2.3.14-praeeb9d7e",
263818
+ "@settlemint/sdk-viem": "2.3.14-praeeb9d7e",
263819
263819
  "@types/node": "24.0.1",
263820
263820
  "@types/semver": "7.7.0",
263821
263821
  "@types/which": "3.0.4",
@@ -329413,7 +329413,7 @@ function subgraphAddCommand() {
329413
329413
  command: "scs subgraph add --abi=./abis/bond.json --contract-name=bond"
329414
329414
  }
329415
329415
  ])).requiredOption("--abi <abi>", "Path to the contract ABI.").requiredOption("--contract-name <contract-name>", "Name of the contract.").option("--address <contract-address>", `Address of the contract (defaults to ${DEFAULT_ADDRESS}).`).option("--start-block <start-block>", "Start block of the contract (defaults to 0).").option("--network <network>", "Network name (defaults to settlemint).").action(async ({ abi: abi2, contractName, address, startBlock, network }) => {
329416
- intro(`Adding subgraph config for contract ${contractName}`);
329416
+ intro("Adding subgraph");
329417
329417
  const abiPath = isAbsolute2(abi2) ? abi2 : join11(process.cwd(), abi2);
329418
329418
  if (!await exists3(abiPath)) {
329419
329419
  throw new Error("ABI file not found");
@@ -329431,8 +329431,8 @@ function subgraphAddCommand() {
329431
329431
  await copyFile(abiPath, localAbiPath);
329432
329432
  try {
329433
329433
  const root = await projectRoot3();
329434
- await fixPackageJson(root);
329435
329434
  const monoRepoRoot = await findMonoRepoRoot2(root);
329435
+ await fixPackageJson(root);
329436
329436
  if (monoRepoRoot) {
329437
329437
  await fixPackageJson(monoRepoRoot, false);
329438
329438
  }
@@ -329449,7 +329449,7 @@ function subgraphAddCommand() {
329449
329449
  address ?? DEFAULT_ADDRESS,
329450
329450
  subgraphYamlFile
329451
329451
  ]);
329452
- const subgraphYamlConfig = await getSubgraphYamlConfig();
329452
+ const subgraphYamlConfig = await getSubgraphYamlConfig(subgraphYamlFile);
329453
329453
  if (subgraphYamlConfig) {
329454
329454
  const updatedDataSources = subgraphYamlConfig?.dataSources.map((dataSource) => {
329455
329455
  if (dataSource.name === contractName) {
@@ -329471,14 +329471,10 @@ function subgraphAddCommand() {
329471
329471
  } finally {
329472
329472
  await unlink2(localAbiPath);
329473
329473
  }
329474
- outro(`Subgraph config for contract ${contractName} added successfully`);
329474
+ outro("Subgraph added successfully");
329475
329475
  });
329476
329476
  }
329477
- async function fixPackageJson(packageJsonDir, requiresCodegenScript = true) {
329478
- const packageJsonPath = join11(packageJsonDir, "package.json");
329479
- if (!await exists3(packageJsonPath)) {
329480
- return;
329481
- }
329477
+ async function fixPackageJson(packageJsonPath, requiresCodegenScript = true) {
329482
329478
  let hasPackageJsonChanged = false;
329483
329479
  const subgraphPackageJson = await readFile10(packageJsonPath);
329484
329480
  const subgraphPackageJsonData = JSON.parse(subgraphPackageJson.toString());
@@ -330019,4 +330015,4 @@ async function sdkCliCommand(argv = process.argv) {
330019
330015
  // src/cli.ts
330020
330016
  sdkCliCommand();
330021
330017
 
330022
- //# debugId=F9C985A5F49A150064756E2164756E21
330018
+ //# debugId=9B420F7A4A327FD064756E2164756E21