@latticexyz/cli 2.0.0-alpha.63 → 2.0.0-alpha.65
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/{chunk-34G7YV6W.js → chunk-CWMHAFSV.js} +14 -13
- package/dist/{chunk-CYLVBDRW.js → chunk-VQQZJE3V.js} +844 -696
- package/dist/mud.js +2 -2
- package/dist/mud2.js +2 -2
- package/dist/render-solidity/index.d.ts +1 -0
- package/dist/utils/index.js +1 -1
- package/package.json +7 -7
- package/src/render-solidity/renderSystemInterface.ts +4 -4
- package/src/render-solidity/types.ts +1 -0
- package/src/utils/contractToInterface.ts +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deploy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQQZJE3V.js";
|
|
4
4
|
import {
|
|
5
5
|
MUDError,
|
|
6
6
|
loadStoreConfig,
|
|
@@ -3234,7 +3234,7 @@ function contractToInterface(data, contractName) {
|
|
|
3234
3234
|
withContract = true;
|
|
3235
3235
|
}
|
|
3236
3236
|
},
|
|
3237
|
-
FunctionDefinition({ name, visibility, parameters, returnParameters, isConstructor, isFallback, isReceiveEther }, parent) {
|
|
3237
|
+
FunctionDefinition({ name, visibility, parameters, stateMutability, returnParameters, isConstructor, isFallback, isReceiveEther }, parent) {
|
|
3238
3238
|
if (parent !== void 0 && parent.type === "ContractDefinition" && parent.name === contractName) {
|
|
3239
3239
|
try {
|
|
3240
3240
|
if (isConstructor || isFallback || isReceiveEther)
|
|
@@ -3245,6 +3245,7 @@ function contractToInterface(data, contractName) {
|
|
|
3245
3245
|
functions.push({
|
|
3246
3246
|
name: name === null ? "" : name,
|
|
3247
3247
|
parameters: parameters.map(parseParameter),
|
|
3248
|
+
stateMutability: stateMutability || "",
|
|
3248
3249
|
returnParameters: returnParameters === null ? [] : returnParameters.map(parseParameter)
|
|
3249
3250
|
});
|
|
3250
3251
|
for (const { typeName } of parameters.concat(returnParameters ?? [])) {
|
|
@@ -3332,10 +3333,10 @@ ${renderImports(imports)}
|
|
|
3332
3333
|
interface ${name} {
|
|
3333
3334
|
${renderList(
|
|
3334
3335
|
functions,
|
|
3335
|
-
({ name: name2, parameters, returnParameters }) => `
|
|
3336
|
-
function ${functionPrefix}${name2}(
|
|
3337
|
-
|
|
3338
|
-
)};
|
|
3336
|
+
({ name: name2, parameters, stateMutability, returnParameters }) => `
|
|
3337
|
+
function ${functionPrefix}${name2}(
|
|
3338
|
+
${renderArguments(parameters)}
|
|
3339
|
+
) external ${stateMutability} ${renderReturnParameters(returnParameters)};
|
|
3339
3340
|
`
|
|
3340
3341
|
)}
|
|
3341
3342
|
}
|
|
@@ -3451,7 +3452,7 @@ import path5 from "path";
|
|
|
3451
3452
|
// package.json
|
|
3452
3453
|
var package_default = {
|
|
3453
3454
|
name: "@latticexyz/cli",
|
|
3454
|
-
version: "2.0.0-alpha.
|
|
3455
|
+
version: "2.0.0-alpha.65+cbef50d0",
|
|
3455
3456
|
description: "Command line interface for mud",
|
|
3456
3457
|
main: "dist/index.js",
|
|
3457
3458
|
types: "dist/index.d.ts",
|
|
@@ -3479,7 +3480,7 @@ var package_default = {
|
|
|
3479
3480
|
release: "npm publish --access=public"
|
|
3480
3481
|
},
|
|
3481
3482
|
devDependencies: {
|
|
3482
|
-
"@latticexyz/store": "^2.0.0-alpha.
|
|
3483
|
+
"@latticexyz/store": "^2.0.0-alpha.65+cbef50d0",
|
|
3483
3484
|
"@types/ejs": "^3.1.1",
|
|
3484
3485
|
"@types/glob": "^7.2.0",
|
|
3485
3486
|
"@types/node": "^17.0.34",
|
|
@@ -3492,10 +3493,10 @@ var package_default = {
|
|
|
3492
3493
|
dependencies: {
|
|
3493
3494
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
3494
3495
|
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
|
|
3495
|
-
"@latticexyz/schema-type": "^2.0.0-alpha.
|
|
3496
|
-
"@latticexyz/services": "^2.0.0-alpha.
|
|
3497
|
-
"@latticexyz/solecs": "^2.0.0-alpha.
|
|
3498
|
-
"@latticexyz/std-contracts": "^2.0.0-alpha.
|
|
3496
|
+
"@latticexyz/schema-type": "^2.0.0-alpha.65+cbef50d0",
|
|
3497
|
+
"@latticexyz/services": "^2.0.0-alpha.65+cbef50d0",
|
|
3498
|
+
"@latticexyz/solecs": "^2.0.0-alpha.65+cbef50d0",
|
|
3499
|
+
"@latticexyz/std-contracts": "^2.0.0-alpha.65+cbef50d0",
|
|
3499
3500
|
"@solidity-parser/parser": "^0.16.0",
|
|
3500
3501
|
"@typechain/ethers-v5": "^10.1.1",
|
|
3501
3502
|
chalk: "^5.0.1",
|
|
@@ -3523,7 +3524,7 @@ var package_default = {
|
|
|
3523
3524
|
zod: "^3.21.4",
|
|
3524
3525
|
"zod-validation-error": "^1.0.1"
|
|
3525
3526
|
},
|
|
3526
|
-
gitHead: "
|
|
3527
|
+
gitHead: "cbef50d07e65802dc49baeb26065d9a61ae59228"
|
|
3527
3528
|
};
|
|
3528
3529
|
|
|
3529
3530
|
// src/commands/set-version.ts
|