@latticexyz/cli 2.2.22-a397ec2827f0b55f9f5b685a660295467d32c0c5 → 2.2.22-a5fdfa8a665caabc57fedd4bf34a8199c6c1ad10
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.
@@ -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"
|
@@ -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" with { type: "json" };
|
230
|
+
import worldFactoryAbi from "@latticexyz/world/out/WorldFactory.sol/WorldFactory.abi.json" with { 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" with { type: "json" };
|
235
|
+
import balanceTransferSystemBuild from "@latticexyz/world/out/BalanceTransferSystem.sol/BalanceTransferSystem.json" with { type: "json" };
|
236
|
+
import batchCallSystemBuild from "@latticexyz/world/out/BatchCallSystem.sol/BatchCallSystem.json" with { type: "json" };
|
237
|
+
import registrationSystemBuild from "@latticexyz/world/out/RegistrationSystem.sol/RegistrationSystem.json" with { type: "json" };
|
238
|
+
import initModuleBuild from "@latticexyz/world/out/InitModule.sol/InitModule.json" with { type: "json" };
|
239
|
+
import initModuleAbi from "@latticexyz/world/out/InitModule.sol/InitModule.abi.json" with { 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" with { type: "json" };
|
329
|
+
import worldProxyFactoryAbi from "@latticexyz/world/out/WorldProxyFactory.sol/WorldProxyFactory.abi.json" with { 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" with { 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" with { 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" with { type: "json" };
|
1207
|
+
import metadataModule from "@latticexyz/world-module-metadata/out/MetadataModule.sol/MetadataModule.json" with { 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" with { type: "json" };
|
1872
1872
|
|
1873
1873
|
// src/deploy/compat/moduleArtifactPathFromName.ts
|
1874
1874
|
import path7 from "node:path";
|
@@ -2216,6 +2216,98 @@ 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
|
2219
2311
|
import { globSync as globSync2 } from "glob";
|
2220
2312
|
|
2221
2313
|
// src/mudPackages.ts
|
@@ -2296,7 +2388,7 @@ async function resolveVersion(options2) {
|
|
2296
2388
|
let npmResult;
|
2297
2389
|
try {
|
2298
2390
|
console.log(chalk3.blue(`Fetching available versions`));
|
2299
|
-
npmResult = await (await fetch(`https://registry.npmjs.org/${
|
2391
|
+
npmResult = await (await fetch(`https://registry.npmjs.org/${package_default2.name}`)).json();
|
2300
2392
|
} catch (e) {
|
2301
2393
|
throw new MUDError3(`Could not fetch available MUD versions`);
|
2302
2394
|
}
|
@@ -3159,4 +3251,4 @@ var commands = [
|
|
3159
3251
|
export {
|
3160
3252
|
commands
|
3161
3253
|
};
|
3162
|
-
//# sourceMappingURL=commands-
|
3254
|
+
//# sourceMappingURL=commands-PGHNOEML.js.map
|