@latticexyz/cli 2.2.22-fdb727e847024560315c10ebf32c1f924755ffe9 → 2.2.23-122945eb02d5d8b6475aec2e88f72340ea81f2d6
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.
|
135
|
+
version: "2.2.22",
|
136
136
|
description: "Command line interface for mud",
|
137
137
|
repository: {
|
138
138
|
type: "git",
|
@@ -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.
|
205
|
+
viem: "2.30.6",
|
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
|
-
"
|
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
|
|
@@ -226,17 +225,17 @@ import { stringToHex as stringToHex2 } from "viem";
|
|
226
225
|
import { waitForTransactionReceipt } from "viem/actions";
|
227
226
|
|
228
227
|
// src/deploy/getWorldFactoryContracts.ts
|
229
|
-
import worldFactoryBuild from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.json"
|
230
|
-
import worldFactoryAbi from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.abi.json"
|
228
|
+
import worldFactoryBuild from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.json" with { type: "json" };
|
229
|
+
import worldFactoryAbi from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.abi.json" with { type: "json" };
|
231
230
|
import { encodeDeployData as encodeDeployData2, size as size2 } from "viem";
|
232
231
|
|
233
232
|
// src/deploy/getWorldContracts.ts
|
234
|
-
import accessManagementSystemBuild from "@latticexyz/world/out/AccessManagementSystem.sol/AccessManagementSystem.json"
|
235
|
-
import balanceTransferSystemBuild from "@latticexyz/world/out/BalanceTransferSystem.sol/BalanceTransferSystem.json"
|
236
|
-
import batchCallSystemBuild from "@latticexyz/world/out/BatchCallSystem.sol/BatchCallSystem.json"
|
237
|
-
import registrationSystemBuild from "@latticexyz/world/out/RegistrationSystem.sol/RegistrationSystem.json"
|
238
|
-
import initModuleBuild from "@latticexyz/world/out/InitModule.sol/InitModule.json"
|
239
|
-
import initModuleAbi from "@latticexyz/world/out/InitModule.sol/InitModule.abi.json"
|
233
|
+
import accessManagementSystemBuild from "@latticexyz/world/out/AccessManagementSystem.sol/AccessManagementSystem.json" with { type: "json" };
|
234
|
+
import balanceTransferSystemBuild from "@latticexyz/world/out/BalanceTransferSystem.sol/BalanceTransferSystem.json" with { type: "json" };
|
235
|
+
import batchCallSystemBuild from "@latticexyz/world/out/BatchCallSystem.sol/BatchCallSystem.json" with { type: "json" };
|
236
|
+
import registrationSystemBuild from "@latticexyz/world/out/RegistrationSystem.sol/RegistrationSystem.json" with { type: "json" };
|
237
|
+
import initModuleBuild from "@latticexyz/world/out/InitModule.sol/InitModule.json" with { type: "json" };
|
238
|
+
import initModuleAbi from "@latticexyz/world/out/InitModule.sol/InitModule.abi.json" with { type: "json" };
|
240
239
|
import { encodeDeployData, size } from "viem";
|
241
240
|
import { getContractAddress } from "@latticexyz/common/internal";
|
242
241
|
function getWorldContracts(deployerAddress) {
|
@@ -325,8 +324,8 @@ function getWorldFactoryContracts(deployerAddress) {
|
|
325
324
|
}
|
326
325
|
|
327
326
|
// src/deploy/getWorldProxyFactoryContracts.ts
|
328
|
-
import worldProxyFactoryBuild from "@latticexyz/world/out/WorldProxyFactory.sol/WorldProxyFactory.json"
|
329
|
-
import worldProxyFactoryAbi from "@latticexyz/world/out/WorldProxyFactory.sol/WorldProxyFactory.abi.json"
|
327
|
+
import worldProxyFactoryBuild from "@latticexyz/world/out/WorldProxyFactory.sol/WorldProxyFactory.json" with { type: "json" };
|
328
|
+
import worldProxyFactoryAbi from "@latticexyz/world/out/WorldProxyFactory.sol/WorldProxyFactory.abi.json" with { type: "json" };
|
330
329
|
import { encodeDeployData as encodeDeployData3, size as size3 } from "viem";
|
331
330
|
import { getContractAddress as getContractAddress3 } from "@latticexyz/common/internal";
|
332
331
|
function getWorldProxyFactoryContracts(deployerAddress) {
|
@@ -371,7 +370,7 @@ async function ensureWorldFactory(client, deployerAddress, withWorldProxy) {
|
|
371
370
|
}
|
372
371
|
|
373
372
|
// src/deploy/deployWorld.ts
|
374
|
-
import WorldFactoryAbi from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.abi.json"
|
373
|
+
import WorldFactoryAbi from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.abi.json" with { type: "json" };
|
375
374
|
import { writeContract } from "@latticexyz/common";
|
376
375
|
|
377
376
|
// src/debug.ts
|
@@ -391,7 +390,7 @@ error2.log = console.error.bind(console);
|
|
391
390
|
import { AbiEventSignatureNotFoundError, decodeEventLog, hexToString, parseAbi, getAddress } from "viem";
|
392
391
|
|
393
392
|
// src/deploy/common.ts
|
394
|
-
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json"
|
393
|
+
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json" with { type: "json" };
|
395
394
|
import { helloStoreEvent } from "@latticexyz/store";
|
396
395
|
import { helloWorldEvent } from "@latticexyz/world";
|
397
396
|
var worldDeployEvents = [helloStoreEvent, helloWorldEvent];
|
@@ -1203,8 +1202,8 @@ import { stringToHex, BaseError as BaseError2, concatHex } from "viem";
|
|
1203
1202
|
import { hexToResource as hexToResource5, writeContract as writeContract7 } from "@latticexyz/common";
|
1204
1203
|
import { identity, isDefined as isDefined4 } from "@latticexyz/common/utils";
|
1205
1204
|
import metadataConfig from "@latticexyz/world-module-metadata/mud.config";
|
1206
|
-
import metadataAbi from "@latticexyz/world-module-metadata/out/IMetadataSystem.sol/IMetadataSystem.abi.json"
|
1207
|
-
import metadataModule from "@latticexyz/world-module-metadata/out/MetadataModule.sol/MetadataModule.json"
|
1205
|
+
import metadataAbi from "@latticexyz/world-module-metadata/out/IMetadataSystem.sol/IMetadataSystem.abi.json" with { type: "json" };
|
1206
|
+
import metadataModule from "@latticexyz/world-module-metadata/out/MetadataModule.sol/MetadataModule.json" with { type: "json" };
|
1208
1207
|
|
1209
1208
|
// src/utils/getContractArtifact.ts
|
1210
1209
|
import { isHex, size as size4 } from "viem";
|
@@ -1868,7 +1867,7 @@ async function importContractArtifact({
|
|
1868
1867
|
|
1869
1868
|
// src/deploy/configToModules.ts
|
1870
1869
|
import { resolveWithContext } from "@latticexyz/world/internal";
|
1871
|
-
import callWithSignatureModule from "@latticexyz/world-module-callwithsignature/out/CallWithSignatureModule.sol/CallWithSignatureModule.json"
|
1870
|
+
import callWithSignatureModule from "@latticexyz/world-module-callwithsignature/out/CallWithSignatureModule.sol/CallWithSignatureModule.json" with { type: "json" };
|
1872
1871
|
|
1873
1872
|
// src/deploy/compat/moduleArtifactPathFromName.ts
|
1874
1873
|
import path7 from "node:path";
|
@@ -1986,8 +1985,8 @@ async function getBlockTime(client) {
|
|
1986
1985
|
}
|
1987
1986
|
|
1988
1987
|
// src/defaultChains.ts
|
1989
|
-
import { redstone, garnet,
|
1990
|
-
var defaultChains = [redstone, garnet,
|
1988
|
+
import { redstone, garnet, pyrope } from "@latticexyz/common/chains";
|
1989
|
+
var defaultChains = [redstone, garnet, pyrope];
|
1991
1990
|
|
1992
1991
|
// src/runDeploy.ts
|
1993
1992
|
var deployOptions = {
|
@@ -2216,6 +2215,97 @@ import chalk3 from "chalk";
|
|
2216
2215
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync2 } from "fs";
|
2217
2216
|
import path11 from "path";
|
2218
2217
|
import { MUDError as MUDError3 } from "@latticexyz/common/errors";
|
2218
|
+
|
2219
|
+
// package.json with { type: 'json' }
|
2220
|
+
var package_default2 = {
|
2221
|
+
name: "@latticexyz/cli",
|
2222
|
+
version: "2.2.22",
|
2223
|
+
description: "Command line interface for mud",
|
2224
|
+
repository: {
|
2225
|
+
type: "git",
|
2226
|
+
url: "https://github.com/latticexyz/mud.git",
|
2227
|
+
directory: "packages/cli"
|
2228
|
+
},
|
2229
|
+
license: "MIT",
|
2230
|
+
type: "module",
|
2231
|
+
exports: {
|
2232
|
+
".": "./dist/index.js"
|
2233
|
+
},
|
2234
|
+
typesVersions: {
|
2235
|
+
"*": {
|
2236
|
+
index: [
|
2237
|
+
"./dist/index.d.ts"
|
2238
|
+
]
|
2239
|
+
}
|
2240
|
+
},
|
2241
|
+
bin: {
|
2242
|
+
mud: "./bin/mud.js"
|
2243
|
+
},
|
2244
|
+
files: [
|
2245
|
+
"bin",
|
2246
|
+
"dist"
|
2247
|
+
],
|
2248
|
+
scripts: {
|
2249
|
+
build: "pnpm run build:js && pnpm run build:test-tables",
|
2250
|
+
"build:js": "tsup && chmod +x ./dist/mud.js",
|
2251
|
+
"build:test-tables": "tsx ./scripts/generate-test-tables.ts",
|
2252
|
+
clean: "pnpm run clean:js && pnpm run clean:test-tables",
|
2253
|
+
"clean:js": "shx rm -rf dist",
|
2254
|
+
"clean:test-tables": "shx rm -rf src/**/codegen",
|
2255
|
+
dev: "tsup --watch",
|
2256
|
+
lint: "eslint . --ext .ts",
|
2257
|
+
test: "tsc --noEmit && forge test",
|
2258
|
+
"test:ci": "pnpm run test"
|
2259
|
+
},
|
2260
|
+
dependencies: {
|
2261
|
+
"@ark/util": "0.2.2",
|
2262
|
+
"@aws-sdk/client-kms": "^3.556.0",
|
2263
|
+
"@latticexyz/abi-ts": "workspace:*",
|
2264
|
+
"@latticexyz/block-logs-stream": "workspace:*",
|
2265
|
+
"@latticexyz/common": "workspace:*",
|
2266
|
+
"@latticexyz/config": "workspace:*",
|
2267
|
+
"@latticexyz/gas-report": "workspace:*",
|
2268
|
+
"@latticexyz/protocol-parser": "workspace:*",
|
2269
|
+
"@latticexyz/schema-type": "workspace:*",
|
2270
|
+
"@latticexyz/store": "workspace:*",
|
2271
|
+
"@latticexyz/store-sync": "workspace:*",
|
2272
|
+
"@latticexyz/utils": "workspace:*",
|
2273
|
+
"@latticexyz/world": "workspace:*",
|
2274
|
+
"@latticexyz/world-module-callwithsignature": "workspace:*",
|
2275
|
+
"@latticexyz/world-module-metadata": "workspace:*",
|
2276
|
+
abitype: "1.0.6",
|
2277
|
+
"asn1.js": "^5.4.1",
|
2278
|
+
chalk: "^5.0.1",
|
2279
|
+
chokidar: "^3.5.3",
|
2280
|
+
debug: "^4.3.4",
|
2281
|
+
dotenv: "^16.0.3",
|
2282
|
+
execa: "^9.5.2",
|
2283
|
+
"find-up": "^6.3.0",
|
2284
|
+
glob: "^10.4.2",
|
2285
|
+
openurl: "^1.1.1",
|
2286
|
+
"p-queue": "^7.4.1",
|
2287
|
+
"p-retry": "^5.1.2",
|
2288
|
+
path: "^0.12.7",
|
2289
|
+
rxjs: "7.5.5",
|
2290
|
+
"throttle-debounce": "^5.0.0",
|
2291
|
+
toposort: "^2.0.2",
|
2292
|
+
viem: "2.30.6",
|
2293
|
+
yargs: "^17.7.1",
|
2294
|
+
zod: "3.23.8",
|
2295
|
+
"zod-validation-error": "^1.3.0"
|
2296
|
+
},
|
2297
|
+
devDependencies: {
|
2298
|
+
"@types/debug": "^4.1.7",
|
2299
|
+
"@types/ejs": "^3.1.1",
|
2300
|
+
"@types/openurl": "^1.0.0",
|
2301
|
+
"@types/throttle-debounce": "^5.0.0",
|
2302
|
+
"@types/toposort": "^2.0.6",
|
2303
|
+
"@types/yargs": "^17.0.10",
|
2304
|
+
"forge-std": "https://github.com/foundry-rs/forge-std.git#60acb7aaadcce2d68e52986a0a66fe79f07d138f"
|
2305
|
+
}
|
2306
|
+
};
|
2307
|
+
|
2308
|
+
// src/commands/set-version.ts
|
2219
2309
|
import { globSync as globSync2 } from "glob";
|
2220
2310
|
|
2221
2311
|
// src/mudPackages.ts
|
@@ -2296,7 +2386,7 @@ async function resolveVersion(options2) {
|
|
2296
2386
|
let npmResult;
|
2297
2387
|
try {
|
2298
2388
|
console.log(chalk3.blue(`Fetching available versions`));
|
2299
|
-
npmResult = await (await fetch(`https://registry.npmjs.org/${
|
2389
|
+
npmResult = await (await fetch(`https://registry.npmjs.org/${package_default2.name}`)).json();
|
2300
2390
|
} catch (e) {
|
2301
2391
|
throw new MUDError3(`Could not fetch available MUD versions`);
|
2302
2392
|
}
|
@@ -3159,4 +3249,4 @@ var commands = [
|
|
3159
3249
|
export {
|
3160
3250
|
commands
|
3161
3251
|
};
|
3162
|
-
//# sourceMappingURL=commands-
|
3252
|
+
//# sourceMappingURL=commands-DNIXZPWR.js.map
|