@secondlayer/cli 0.3.2 → 0.3.3

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
@@ -7650,10 +7650,12 @@ class PluginManager {
7650
7650
  }
7651
7651
  }
7652
7652
  if (contract.abi) {
7653
+ const addressStr = typeof contract.address === "string" ? contract.address : "";
7654
+ const [contractAddress, originalContractName] = addressStr.split(".");
7653
7655
  const processed = {
7654
- name: contract.name || "unknown",
7655
- address: typeof contract.address === "string" ? contract.address.split(".")[0] : "unknown",
7656
- contractName: contract.name || "unknown",
7656
+ name: contract.name || originalContractName || "unknown",
7657
+ address: contractAddress || "unknown",
7658
+ contractName: originalContractName || contract.name || "unknown",
7657
7659
  abi: contract.abi,
7658
7660
  source: "api",
7659
7661
  metadata: contract.metadata
@@ -27921,7 +27923,8 @@ No .clar files or contract addresses matched the provided inputs`));
27921
27923
  address: contract.address,
27922
27924
  source: contract.source,
27923
27925
  abi: contract.abi,
27924
- _clarinetSource: contract._clarinetSource
27926
+ _clarinetSource: contract._clarinetSource,
27927
+ _directFile: contract._directFile
27925
27928
  }));
27926
27929
  const processedContracts = await pluginManager.transformContracts(contractConfigs, resolvedConfig);
27927
27930
  if (processedContracts.length === 0) {
@@ -28116,7 +28119,7 @@ var {
28116
28119
  // package.json
28117
28120
  var package_default = {
28118
28121
  name: "@secondlayer/cli",
28119
- version: "0.3.2",
28122
+ version: "0.3.3",
28120
28123
  description: "CLI for generating type-safe contract interfaces for the Stacks blockchain",
28121
28124
  type: "module",
28122
28125
  bin: {
@@ -28192,5 +28195,5 @@ program.command("init").description("Initialize a new stacks.config.ts file").ac
28192
28195
  });
28193
28196
  program.parse();
28194
28197
 
28195
- //# debugId=F68199263707862E64756E2164756E21
28198
+ //# debugId=148D9D3455E1AC6E64756E2164756E21
28196
28199
  //# sourceMappingURL=cli.js.map