@latticexyz/cli 2.2.23-e9e21c9f1f7d164af1b19f327d798ed2f2d0fd95 → 2.2.24-0e49b51ba934438e49c7f098e78d6e3ddf7567fb

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.
@@ -132,7 +132,7 @@ import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync3, wr
132
132
  // package.json
133
133
  var package_default = {
134
134
  name: "@latticexyz/cli",
135
- version: "2.2.22",
135
+ version: "2.2.23",
136
136
  description: "Command line interface for mud",
137
137
  repository: {
138
138
  type: "git",
@@ -186,7 +186,7 @@ var package_default = {
186
186
  "@latticexyz/world": "workspace:*",
187
187
  "@latticexyz/world-module-callwithsignature": "workspace:*",
188
188
  "@latticexyz/world-module-metadata": "workspace:*",
189
- abitype: "1.0.6",
189
+ abitype: "1.0.9",
190
190
  "asn1.js": "^5.4.1",
191
191
  chalk: "^5.0.1",
192
192
  chokidar: "^3.5.3",
@@ -202,7 +202,7 @@ var package_default = {
202
202
  rxjs: "7.5.5",
203
203
  "throttle-debounce": "^5.0.0",
204
204
  toposort: "^2.0.2",
205
- viem: "2.30.6",
205
+ viem: "2.35.1",
206
206
  yargs: "^17.7.1",
207
207
  zod: "3.23.8",
208
208
  "zod-validation-error": "^1.3.0"
@@ -214,8 +214,7 @@ var package_default = {
214
214
  "@types/throttle-debounce": "^5.0.0",
215
215
  "@types/toposort": "^2.0.6",
216
216
  "@types/yargs": "^17.0.10",
217
- "ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
218
- "forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1"
217
+ "forge-std": "https://github.com/foundry-rs/forge-std.git#60acb7aaadcce2d68e52986a0a66fe79f07d138f"
219
218
  }
220
219
  };
221
220
 
@@ -1529,7 +1528,7 @@ async function deploy({
1529
1528
  throw new Error(`Unsupported World version: ${worldDeploy.worldVersion}`);
1530
1529
  }
1531
1530
  const libraryMap = getLibraryMap(libraries);
1532
- await ensureContractsDeployed5({
1531
+ const deployedContracts = await ensureContractsDeployed5({
1533
1532
  ...commonDeployOptions,
1534
1533
  deployerAddress,
1535
1534
  contracts: [
@@ -1608,7 +1607,13 @@ async function deploy({
1608
1607
  debugLabel: "remaining transactions"
1609
1608
  });
1610
1609
  debug2("deploy complete");
1611
- return worldDeploy;
1610
+ return {
1611
+ ...worldDeploy,
1612
+ contracts: deployedContracts.map(({ contract, deployedAddress }) => ({
1613
+ label: contract.debugLabel ?? "unknown",
1614
+ address: deployedAddress
1615
+ }))
1616
+ };
1612
1617
  }
1613
1618
 
1614
1619
  // src/runDeploy.ts
@@ -2096,7 +2101,7 @@ Using ${package_default.name}@${package_default.version}`));
2096
2101
  console.log("Deploying from", client.account.address);
2097
2102
  const automine = await enableAutomine(client);
2098
2103
  const startTime = Date.now();
2099
- const worldDeploy = await deploy({
2104
+ const deployResult = await deploy({
2100
2105
  config,
2101
2106
  deployerAddress: opts.deployerAddress,
2102
2107
  salt,
@@ -2114,7 +2119,7 @@ Using ${package_default.name}@${package_default.version}`));
2114
2119
  if (opts.worldAddress == null || opts.alwaysRunPostDeploy) {
2115
2120
  await postDeploy(
2116
2121
  config.deploy.postDeployScript,
2117
- worldDeploy.address,
2122
+ deployResult.address,
2118
2123
  rpc,
2119
2124
  profile,
2120
2125
  opts.forgeScriptOptions,
@@ -2124,8 +2129,9 @@ Using ${package_default.name}@${package_default.version}`));
2124
2129
  await automine?.reset();
2125
2130
  console.log(chalk2.green("Deployment completed in", (Date.now() - startTime) / 1e3, "seconds"));
2126
2131
  const deploymentInfo = {
2127
- worldAddress: worldDeploy.address,
2128
- blockNumber: Number(worldDeploy.deployBlock)
2132
+ worldAddress: deployResult.address,
2133
+ blockNumber: Number(deployResult.deployBlock),
2134
+ contracts: deployResult.contracts
2129
2135
  };
2130
2136
  if (opts.saveDeployment) {
2131
2137
  const deploysDir = path9.join(config.deploy.deploysDirectory, chainId.toString());
@@ -2149,8 +2155,8 @@ Using ${package_default.name}@${package_default.version}`));
2149
2155
  )
2150
2156
  );
2151
2157
  }
2152
- console.log(deploymentInfo);
2153
- return worldDeploy;
2158
+ console.log({ worldAddress: deploymentInfo.worldAddress, blockNumber: deploymentInfo.blockNumber });
2159
+ return deployResult;
2154
2160
  }
2155
2161
  function getWorldDeployBlock({
2156
2162
  chainId,
@@ -2220,7 +2226,7 @@ import { MUDError as MUDError3 } from "@latticexyz/common/errors";
2220
2226
  // package.json with { type: 'json' }
2221
2227
  var package_default2 = {
2222
2228
  name: "@latticexyz/cli",
2223
- version: "2.2.22",
2229
+ version: "2.2.23",
2224
2230
  description: "Command line interface for mud",
2225
2231
  repository: {
2226
2232
  type: "git",
@@ -2274,7 +2280,7 @@ var package_default2 = {
2274
2280
  "@latticexyz/world": "workspace:*",
2275
2281
  "@latticexyz/world-module-callwithsignature": "workspace:*",
2276
2282
  "@latticexyz/world-module-metadata": "workspace:*",
2277
- abitype: "1.0.6",
2283
+ abitype: "1.0.9",
2278
2284
  "asn1.js": "^5.4.1",
2279
2285
  chalk: "^5.0.1",
2280
2286
  chokidar: "^3.5.3",
@@ -2290,7 +2296,7 @@ var package_default2 = {
2290
2296
  rxjs: "7.5.5",
2291
2297
  "throttle-debounce": "^5.0.0",
2292
2298
  toposort: "^2.0.2",
2293
- viem: "2.30.6",
2299
+ viem: "2.35.1",
2294
2300
  yargs: "^17.7.1",
2295
2301
  zod: "3.23.8",
2296
2302
  "zod-validation-error": "^1.3.0"
@@ -2302,8 +2308,7 @@ var package_default2 = {
2302
2308
  "@types/throttle-debounce": "^5.0.0",
2303
2309
  "@types/toposort": "^2.0.6",
2304
2310
  "@types/yargs": "^17.0.10",
2305
- "ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
2306
- "forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1"
2311
+ "forge-std": "https://github.com/foundry-rs/forge-std.git#60acb7aaadcce2d68e52986a0a66fe79f07d138f"
2307
2312
  }
2308
2313
  };
2309
2314
 
@@ -2319,7 +2324,7 @@ function parseEnv() {
2319
2324
  try {
2320
2325
  return envSchema.parse({
2321
2326
  // tsup replaces the env vars with their values at compile time
2322
- MUD_PACKAGES: '{"@latticexyz/abi-ts":{"localPath":"packages/abi-ts"},"@latticexyz/block-logs-stream":{"localPath":"packages/block-logs-stream"},"@latticexyz/cli":{"localPath":"packages/cli"},"@latticexyz/common":{"localPath":"packages/common"},"@latticexyz/config":{"localPath":"packages/config"},"create-mud":{"localPath":"packages/create-mud"},"@latticexyz/dev-tools":{"localPath":"packages/dev-tools"},"@latticexyz/entrykit":{"localPath":"packages/entrykit"},"@latticexyz/explorer":{"localPath":"packages/explorer"},"@latticexyz/faucet":{"localPath":"packages/faucet"},"@latticexyz/gas-report":{"localPath":"packages/gas-report"},"@latticexyz/paymaster":{"localPath":"packages/paymaster"},"@latticexyz/protocol-parser":{"localPath":"packages/protocol-parser"},"@latticexyz/react":{"localPath":"packages/react"},"@latticexyz/recs":{"localPath":"packages/recs"},"@latticexyz/schema-type":{"localPath":"packages/schema-type"},"solhint-config-mud":{"localPath":"packages/solhint-config-mud"},"solhint-plugin-mud":{"localPath":"packages/solhint-plugin-mud"},"@latticexyz/stash":{"localPath":"packages/stash"},"@latticexyz/store-indexer":{"localPath":"packages/store-indexer"},"@latticexyz/store-sync":{"localPath":"packages/store-sync"},"@latticexyz/store":{"localPath":"packages/store"},"@latticexyz/utils":{"localPath":"packages/utils"},"vite-plugin-mud":{"localPath":"packages/vite-plugin-mud"},"@latticexyz/world-consumer":{"localPath":"packages/world-consumer"},"@latticexyz/world-module-callwithsignature":{"localPath":"packages/world-module-callwithsignature"},"@latticexyz/world-module-erc20":{"localPath":"packages/world-module-erc20"},"@latticexyz/world-module-metadata":{"localPath":"packages/world-module-metadata"},"@latticexyz/world-modules":{"localPath":"packages/world-modules"},"@latticexyz/world":{"localPath":"packages/world"}}'
2327
+ MUD_PACKAGES: '{"@latticexyz/abi-ts":{"localPath":"packages/abi-ts"},"@latticexyz/block-logs-stream":{"localPath":"packages/block-logs-stream"},"@latticexyz/cli":{"localPath":"packages/cli"},"@latticexyz/common":{"localPath":"packages/common"},"@latticexyz/config":{"localPath":"packages/config"},"create-mud":{"localPath":"packages/create-mud"},"@latticexyz/dev-tools":{"localPath":"packages/dev-tools"},"@latticexyz/entrykit":{"localPath":"packages/entrykit"},"@latticexyz/explorer":{"localPath":"packages/explorer"},"@latticexyz/faucet":{"localPath":"packages/faucet"},"@latticexyz/gas-report":{"localPath":"packages/gas-report"},"@latticexyz/id.place":{"localPath":"packages/id.place"},"@latticexyz/paymaster":{"localPath":"packages/paymaster"},"@latticexyz/protocol-parser":{"localPath":"packages/protocol-parser"},"@latticexyz/react":{"localPath":"packages/react"},"@latticexyz/recs":{"localPath":"packages/recs"},"@latticexyz/schema-type":{"localPath":"packages/schema-type"},"solhint-config-mud":{"localPath":"packages/solhint-config-mud"},"solhint-plugin-mud":{"localPath":"packages/solhint-plugin-mud"},"@latticexyz/stash":{"localPath":"packages/stash"},"@latticexyz/store-indexer":{"localPath":"packages/store-indexer"},"@latticexyz/store-sync":{"localPath":"packages/store-sync"},"@latticexyz/store":{"localPath":"packages/store"},"@latticexyz/utils":{"localPath":"packages/utils"},"vite-plugin-mud":{"localPath":"packages/vite-plugin-mud"},"@latticexyz/world-consumer":{"localPath":"packages/world-consumer"},"@latticexyz/world-module-callwithsignature":{"localPath":"packages/world-module-callwithsignature"},"@latticexyz/world-module-erc20":{"localPath":"packages/world-module-erc20"},"@latticexyz/world-module-metadata":{"localPath":"packages/world-module-metadata"},"@latticexyz/world-modules":{"localPath":"packages/world-modules"},"@latticexyz/world":{"localPath":"packages/world"}}'
2323
2328
  });
2324
2329
  } catch (error4) {
2325
2330
  if (error4 instanceof ZodError) {
@@ -2482,7 +2487,8 @@ var testOptions = {
2482
2487
  type: "string",
2483
2488
  description: "Address of an existing world contract. If provided, deployment is skipped and the RPC provided in the foundry.toml is used for fork testing."
2484
2489
  },
2485
- forgeOptions: { type: "string", description: "Options to pass to forge test" }
2490
+ forgeOptions: { type: "string", description: "Options to pass to forge test" },
2491
+ saveDeployment: { type: "boolean", desc: "Save the deployment info to a file", default: false }
2486
2492
  };
2487
2493
  var commandModule8 = {
2488
2494
  command: "test",
@@ -2502,7 +2508,6 @@ var commandModule8 = {
2502
2508
  const forkRpc = opts.worldAddress ? await getRpcUrl2(opts.profile) : `http://127.0.0.1:${opts.port}`;
2503
2509
  const worldAddress = opts.worldAddress ?? (await runDeploy({
2504
2510
  ...opts,
2505
- saveDeployment: false,
2506
2511
  rpc: forkRpc
2507
2512
  })).address;
2508
2513
  console.log(chalk4.blue("World address", worldAddress));
@@ -3251,4 +3256,4 @@ var commands = [
3251
3256
  export {
3252
3257
  commands
3253
3258
  };
3254
- //# sourceMappingURL=commands-U4P2MBFY.js.map
3259
+ //# sourceMappingURL=commands-45I2XHUC.js.map