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