@latticexyz/cli 1.40.0 → 1.41.1-alpha.0
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/LICENSE +21 -0
- package/dist/chunk-ATAWDHWC.js +67 -0
- package/dist/{chunk-6AQ6LFVZ.js → chunk-J4DJQNIC.js} +743 -103
- package/dist/chunk-KD354QKC.js +23039 -0
- package/dist/{chunk-S3V3XX7N.js → chunk-SLIMIO4Z.js} +1 -1
- package/dist/config/index.d.ts +746 -8
- package/dist/config/index.js +63 -17
- package/dist/index.d.ts +1 -2
- package/dist/index.js +14 -10
- package/dist/mud.js +1055 -49
- package/dist/utils/deprecated/index.js +2 -2
- package/dist/utils/index.d.ts +56 -7
- package/dist/utils/index.js +17 -3
- package/package.json +16 -11
- package/src/commands/deploy-v2.ts +96 -0
- package/src/commands/deprecated/call-system.ts +1 -1
- package/src/commands/deprecated/deploy-contracts.ts +1 -1
- package/src/commands/deprecated/test.ts +9 -6
- package/src/commands/deprecated/trace.ts +1 -1
- package/src/commands/gas-report.ts +1 -1
- package/src/commands/index.ts +4 -0
- package/src/commands/tablegen.ts +4 -18
- package/src/commands/worldgen.ts +55 -0
- package/src/config/commonSchemas.ts +19 -5
- package/src/config/dynamicResolution.ts +49 -0
- package/src/config/index.ts +20 -0
- package/src/config/loadStoreConfig.ts +3 -89
- package/src/config/parseStoreConfig.test-d.ts +40 -0
- package/src/config/parseStoreConfig.ts +314 -0
- package/src/config/validation.ts +71 -0
- package/src/config/world/index.ts +4 -0
- package/src/config/world/loadWorldConfig.test-d.ts +11 -0
- package/src/config/world/loadWorldConfig.ts +26 -0
- package/src/config/world/parseWorldConfig.ts +55 -0
- package/src/config/world/resolveWorldConfig.ts +80 -0
- package/src/config/world/userTypes.ts +72 -0
- package/src/index.ts +13 -5
- package/src/mud.ts +4 -0
- package/src/render-solidity/common.ts +138 -0
- package/src/render-solidity/field.ts +137 -0
- package/src/render-solidity/index.ts +10 -0
- package/src/render-solidity/record.ts +154 -0
- package/src/render-solidity/renderSystemInterface.ts +31 -0
- package/src/render-solidity/renderTable.ts +164 -0
- package/src/render-solidity/renderTypeHelpers.ts +99 -0
- package/src/render-solidity/renderTypes.ts +19 -0
- package/src/render-solidity/renderTypesFromConfig.ts +13 -0
- package/src/render-solidity/renderWorld.ts +24 -0
- package/src/{render-table/renderTablesFromConfig.ts → render-solidity/tableOptions.ts} +45 -37
- package/src/render-solidity/tablegen.ts +33 -0
- package/src/render-solidity/types.ts +110 -0
- package/src/render-solidity/userType.ts +132 -0
- package/src/render-solidity/worldgen.ts +60 -0
- package/src/utils/contractToInterface.ts +130 -0
- package/src/utils/deploy-v2.ts +512 -0
- package/src/utils/deprecated/build.ts +1 -1
- package/src/utils/deprecated/typegen.ts +1 -1
- package/src/utils/errors.ts +12 -2
- package/src/utils/execLog.ts +22 -0
- package/src/utils/formatAndWrite.ts +12 -0
- package/src/utils/foundry.ts +94 -0
- package/src/utils/getChainId.ts +10 -0
- package/src/utils/index.ts +2 -1
- package/src/utils/typeUtils.ts +17 -0
- package/dist/chunk-B6VWCGHZ.js +0 -199
- package/dist/chunk-JKAA3WMC.js +0 -55
- package/dist/chunk-JNGSW4AP.js +0 -493
- package/dist/chunk-PJ6GS2R4.js +0 -22
- package/dist/chunk-UC3QPOON.js +0 -35
- package/dist/loadStoreConfig-37f99136.d.ts +0 -164
- package/dist/render-table/index.d.ts +0 -29
- package/dist/render-table/index.js +0 -24
- package/dist/renderTable-9e6410c5.d.ts +0 -72
- package/src/config/loadStoreConfig.test-d.ts +0 -11
- package/src/render-table/common.ts +0 -67
- package/src/render-table/field.ts +0 -132
- package/src/render-table/index.ts +0 -6
- package/src/render-table/record.ts +0 -176
- package/src/render-table/renderTable.ts +0 -109
- package/src/render-table/types.ts +0 -51
- package/src/utils/forgeConfig.ts +0 -45
package/dist/config/index.js
CHANGED
|
@@ -1,37 +1,83 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
SingleLevelRoute,
|
|
6
|
-
StoreConfig,
|
|
7
|
-
ValueName,
|
|
2
|
+
DynamicResolutionType,
|
|
3
|
+
getDuplicates,
|
|
4
|
+
isDynamicResolution,
|
|
8
5
|
loadConfig,
|
|
9
6
|
loadStoreConfig,
|
|
7
|
+
loadWorldConfig,
|
|
8
|
+
mudConfig,
|
|
9
|
+
parseStaticArray,
|
|
10
10
|
parseStoreConfig,
|
|
11
|
+
parseWorldConfig,
|
|
12
|
+
resolveSystemConfig,
|
|
13
|
+
resolveTableId,
|
|
14
|
+
resolveWithContext,
|
|
15
|
+
resolveWorldConfig,
|
|
16
|
+
storeConfig,
|
|
11
17
|
validateBaseRoute,
|
|
12
18
|
validateCapitalizedName,
|
|
19
|
+
validateEnum,
|
|
20
|
+
validateEthereumAddress,
|
|
13
21
|
validateName,
|
|
14
22
|
validateRoute,
|
|
23
|
+
validateSelector,
|
|
15
24
|
validateSingleLevelRoute,
|
|
16
|
-
validateUncapitalizedName
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
validateUncapitalizedName,
|
|
26
|
+
zAnyCaseName,
|
|
27
|
+
zBaseRoute,
|
|
28
|
+
zEnumsConfig,
|
|
29
|
+
zEthereumAddress,
|
|
30
|
+
zObjectName,
|
|
31
|
+
zOrdinaryRoute,
|
|
32
|
+
zSchemaConfig,
|
|
33
|
+
zSelector,
|
|
34
|
+
zSingleLevelRoute,
|
|
35
|
+
zStoreConfig,
|
|
36
|
+
zTableConfig,
|
|
37
|
+
zTablesConfig,
|
|
38
|
+
zUserEnum,
|
|
39
|
+
zValueName,
|
|
40
|
+
zWorldConfig
|
|
41
|
+
} from "../chunk-J4DJQNIC.js";
|
|
20
42
|
import "../chunk-O6HOO6WA.js";
|
|
21
43
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
SingleLevelRoute,
|
|
26
|
-
StoreConfig,
|
|
27
|
-
ValueName,
|
|
44
|
+
DynamicResolutionType,
|
|
45
|
+
getDuplicates,
|
|
46
|
+
isDynamicResolution,
|
|
28
47
|
loadConfig,
|
|
29
48
|
loadStoreConfig,
|
|
49
|
+
loadWorldConfig,
|
|
50
|
+
mudConfig,
|
|
51
|
+
parseStaticArray,
|
|
30
52
|
parseStoreConfig,
|
|
53
|
+
parseWorldConfig,
|
|
54
|
+
resolveSystemConfig,
|
|
55
|
+
resolveTableId,
|
|
56
|
+
resolveWithContext,
|
|
57
|
+
resolveWorldConfig,
|
|
58
|
+
storeConfig,
|
|
31
59
|
validateBaseRoute,
|
|
32
60
|
validateCapitalizedName,
|
|
61
|
+
validateEnum,
|
|
62
|
+
validateEthereumAddress,
|
|
33
63
|
validateName,
|
|
34
64
|
validateRoute,
|
|
65
|
+
validateSelector,
|
|
35
66
|
validateSingleLevelRoute,
|
|
36
|
-
validateUncapitalizedName
|
|
67
|
+
validateUncapitalizedName,
|
|
68
|
+
zAnyCaseName,
|
|
69
|
+
zBaseRoute,
|
|
70
|
+
zEnumsConfig,
|
|
71
|
+
zEthereumAddress,
|
|
72
|
+
zObjectName,
|
|
73
|
+
zOrdinaryRoute,
|
|
74
|
+
zSchemaConfig,
|
|
75
|
+
zSelector,
|
|
76
|
+
zSingleLevelRoute,
|
|
77
|
+
zStoreConfig,
|
|
78
|
+
zTableConfig,
|
|
79
|
+
zTablesConfig,
|
|
80
|
+
zUserEnum,
|
|
81
|
+
zValueName,
|
|
82
|
+
zWorldConfig
|
|
37
83
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { a as renderTable, r as renderTablesFromConfig } from './renderTable-9e6410c5.js';
|
|
1
|
+
export { MUDConfig, MUDUserConfig, ResolvedWorldConfig, StoreConfig, StoreUserConfig, WorldUserConfig, loadStoreConfig, loadWorldConfig, mudConfig, parseStoreConfig, parseWorldConfig, resolveTableId, resolveWorldConfig, storeConfig } from './config/index.js';
|
|
3
2
|
import '@latticexyz/schema-type';
|
|
4
3
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadStoreConfig,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
loadWorldConfig,
|
|
4
|
+
mudConfig,
|
|
5
|
+
parseStoreConfig,
|
|
6
|
+
parseWorldConfig,
|
|
7
|
+
resolveTableId,
|
|
8
|
+
resolveWorldConfig,
|
|
9
|
+
storeConfig
|
|
10
|
+
} from "./chunk-J4DJQNIC.js";
|
|
11
11
|
import "./chunk-O6HOO6WA.js";
|
|
12
12
|
export {
|
|
13
13
|
loadStoreConfig,
|
|
14
|
+
loadWorldConfig,
|
|
15
|
+
mudConfig,
|
|
14
16
|
parseStoreConfig,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
parseWorldConfig,
|
|
18
|
+
resolveTableId,
|
|
19
|
+
resolveWorldConfig,
|
|
20
|
+
storeConfig
|
|
17
21
|
};
|