@latticexyz/cli 2.0.0-alpha.56 → 2.0.0-alpha.57
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/mud.js +9 -8
- package/package.json +7 -7
- package/src/utils/contractToInterface.ts +2 -1
package/dist/mud.js
CHANGED
|
@@ -11610,9 +11610,10 @@ function flattenTypeName(typeName) {
|
|
|
11610
11610
|
stateMutability: null
|
|
11611
11611
|
};
|
|
11612
11612
|
} else if (typeName.type === "ArrayTypeName") {
|
|
11613
|
+
const length = typeName.length?.type === "NumberLiteral" ? typeName.length.number : "";
|
|
11613
11614
|
const { name, stateMutability } = flattenTypeName(typeName.baseTypeName);
|
|
11614
11615
|
return {
|
|
11615
|
-
name: `${name}[]`,
|
|
11616
|
+
name: `${name}[${length}]`,
|
|
11616
11617
|
stateMutability
|
|
11617
11618
|
};
|
|
11618
11619
|
} else {
|
|
@@ -11759,7 +11760,7 @@ import path8 from "path";
|
|
|
11759
11760
|
// package.json
|
|
11760
11761
|
var package_default = {
|
|
11761
11762
|
name: "@latticexyz/cli",
|
|
11762
|
-
version: "2.0.0-alpha.
|
|
11763
|
+
version: "2.0.0-alpha.57+b6a09f22",
|
|
11763
11764
|
description: "Command line interface for mud",
|
|
11764
11765
|
main: "dist/index.js",
|
|
11765
11766
|
types: "dist/index.d.ts",
|
|
@@ -11786,7 +11787,7 @@ var package_default = {
|
|
|
11786
11787
|
release: "npm publish --access=public"
|
|
11787
11788
|
},
|
|
11788
11789
|
devDependencies: {
|
|
11789
|
-
"@latticexyz/store": "^2.0.0-alpha.
|
|
11790
|
+
"@latticexyz/store": "^2.0.0-alpha.57+b6a09f22",
|
|
11790
11791
|
"@types/ejs": "^3.1.1",
|
|
11791
11792
|
"@types/glob": "^7.2.0",
|
|
11792
11793
|
"@types/node": "^17.0.34",
|
|
@@ -11799,10 +11800,10 @@ var package_default = {
|
|
|
11799
11800
|
dependencies: {
|
|
11800
11801
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
11801
11802
|
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
|
|
11802
|
-
"@latticexyz/schema-type": "^2.0.0-alpha.
|
|
11803
|
-
"@latticexyz/services": "^2.0.0-alpha.
|
|
11804
|
-
"@latticexyz/solecs": "^2.0.0-alpha.
|
|
11805
|
-
"@latticexyz/std-contracts": "^2.0.0-alpha.
|
|
11803
|
+
"@latticexyz/schema-type": "^2.0.0-alpha.57+b6a09f22",
|
|
11804
|
+
"@latticexyz/services": "^2.0.0-alpha.57+b6a09f22",
|
|
11805
|
+
"@latticexyz/solecs": "^2.0.0-alpha.57+b6a09f22",
|
|
11806
|
+
"@latticexyz/std-contracts": "^2.0.0-alpha.57+b6a09f22",
|
|
11806
11807
|
"@solidity-parser/parser": "^0.16.0",
|
|
11807
11808
|
"@typechain/ethers-v5": "^10.1.1",
|
|
11808
11809
|
chalk: "^5.0.1",
|
|
@@ -11830,7 +11831,7 @@ var package_default = {
|
|
|
11830
11831
|
zod: "^3.21.4",
|
|
11831
11832
|
"zod-validation-error": "^1.0.1"
|
|
11832
11833
|
},
|
|
11833
|
-
gitHead: "
|
|
11834
|
+
gitHead: "b6a09f222db8fc6d32800671ba238bc1771eb917"
|
|
11834
11835
|
};
|
|
11835
11836
|
|
|
11836
11837
|
// src/commands/set-version.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.57+b6a09f22",
|
|
4
4
|
"description": "Command line interface for mud",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"release": "npm publish --access=public"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@latticexyz/store": "^2.0.0-alpha.
|
|
30
|
+
"@latticexyz/store": "^2.0.0-alpha.57+b6a09f22",
|
|
31
31
|
"@types/ejs": "^3.1.1",
|
|
32
32
|
"@types/glob": "^7.2.0",
|
|
33
33
|
"@types/node": "^17.0.34",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
42
42
|
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
|
|
43
|
-
"@latticexyz/schema-type": "^2.0.0-alpha.
|
|
44
|
-
"@latticexyz/services": "^2.0.0-alpha.
|
|
45
|
-
"@latticexyz/solecs": "^2.0.0-alpha.
|
|
46
|
-
"@latticexyz/std-contracts": "^2.0.0-alpha.
|
|
43
|
+
"@latticexyz/schema-type": "^2.0.0-alpha.57+b6a09f22",
|
|
44
|
+
"@latticexyz/services": "^2.0.0-alpha.57+b6a09f22",
|
|
45
|
+
"@latticexyz/solecs": "^2.0.0-alpha.57+b6a09f22",
|
|
46
|
+
"@latticexyz/std-contracts": "^2.0.0-alpha.57+b6a09f22",
|
|
47
47
|
"@solidity-parser/parser": "^0.16.0",
|
|
48
48
|
"@typechain/ethers-v5": "^10.1.1",
|
|
49
49
|
"chalk": "^5.0.1",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"zod": "^3.21.4",
|
|
72
72
|
"zod-validation-error": "^1.0.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b6a09f222db8fc6d32800671ba238bc1771eb917"
|
|
75
75
|
}
|
|
@@ -105,9 +105,10 @@ function flattenTypeName(typeName: TypeName | null): { name: string; stateMutabi
|
|
|
105
105
|
stateMutability: null,
|
|
106
106
|
};
|
|
107
107
|
} else if (typeName.type === "ArrayTypeName") {
|
|
108
|
+
const length = typeName.length?.type === "NumberLiteral" ? typeName.length.number : "";
|
|
108
109
|
const { name, stateMutability } = flattenTypeName(typeName.baseTypeName);
|
|
109
110
|
return {
|
|
110
|
-
name: `${name}[]`,
|
|
111
|
+
name: `${name}[${length}]`,
|
|
111
112
|
stateMutability,
|
|
112
113
|
};
|
|
113
114
|
} else {
|