@latticexyz/world 3.0.0-main-69eb63b59 → 3.0.0-main-570086e7b

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.
Files changed (50) hide show
  1. package/dist/chunk-3GDI67QT.js +2 -0
  2. package/dist/chunk-3GDI67QT.js.map +1 -0
  3. package/dist/chunk-TKEDEBQZ.js +2 -0
  4. package/dist/chunk-TKEDEBQZ.js.map +1 -0
  5. package/dist/{chunk-3EELS6P3.js → chunk-TKS7AYPJ.js} +2 -2
  6. package/dist/config/v2.d.ts +2 -2
  7. package/dist/config/v2.js +1 -1
  8. package/dist/{dynamicResolution-34391fca.d.ts → dynamicResolution-26462ea5.d.ts} +3 -1
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.js +1 -1
  11. package/dist/internal.d.ts +1 -1
  12. package/dist/internal.js +1 -1
  13. package/dist/mud.config.js +1 -1
  14. package/dist/node.d.ts +17 -16
  15. package/dist/node.js +13 -15
  16. package/dist/node.js.map +1 -1
  17. package/dist/{world-ae07544a.d.ts → world-5ea87cd7.d.ts} +4 -11
  18. package/out/BatchCall.t.sol/BatchCallTest.json +1 -1
  19. package/out/BatchCall.t.sol/TestSystem.json +1 -1
  20. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  21. package/out/Factories.t.sol/FactoriesTest.json +1 -1
  22. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  23. package/out/InitModule.sol/InitModule.json +1 -1
  24. package/out/InitModule.t.sol/InitModuleTest.json +1 -1
  25. package/out/InitModule.t.sol/WorldMock.json +1 -1
  26. package/out/InitSystems.t.sol/LimitedCallContextTest.json +1 -1
  27. package/out/Utils.t.sol/UtilsTest.json +1 -1
  28. package/out/Utils.t.sol/UtilsTestSystem.json +1 -1
  29. package/out/World.t.sol/EchoSystemHook.json +1 -1
  30. package/out/World.t.sol/IWorldTestSystem.json +1 -1
  31. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  32. package/out/World.t.sol/RevertSystemHook.json +1 -1
  33. package/out/World.t.sol/WorldTest.json +1 -1
  34. package/out/World.t.sol/WorldTestSystem.json +1 -1
  35. package/out/WorldBalance.t.sol/WorldBalanceTest.json +1 -1
  36. package/out/WorldBalance.t.sol/WorldBalanceTestSystem.json +1 -1
  37. package/out/WorldDynamicUpdate.t.sol/UpdateInDynamicFieldTest.json +1 -1
  38. package/out/WorldFactory.sol/WorldFactory.json +1 -1
  39. package/out/WorldProxy.sol/WorldProxy.json +1 -1
  40. package/out/WorldProxy.t.sol/WorldProxyTest.json +1 -1
  41. package/out/WorldProxyFactory.sol/WorldProxyFactory.json +1 -1
  42. package/out/WorldProxyFactory.t.sol/WorldProxyFactoryTest.json +1 -1
  43. package/out/build-info/{7d027d3c2c4234c547896a757e5b3269.json → 9140863eb5fa14e70284daf8950dfe77.json} +1 -1
  44. package/package.json +8 -8
  45. package/src/codegen/interfaces/IBaseWorld.sol +0 -1
  46. package/dist/chunk-2DPDMM6H.js +0 -2
  47. package/dist/chunk-2DPDMM6H.js.map +0 -1
  48. package/dist/chunk-DK3XOTC2.js +0 -2
  49. package/dist/chunk-DK3XOTC2.js.map +0 -1
  50. /package/dist/{chunk-3EELS6P3.js.map → chunk-TKS7AYPJ.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { show, ErrorMessage, narrow, requiredKeyOf, conform, withJsDoc } from '@arktype/util';
2
2
  import { StoreInput, resolveTable, mergeIfUndefined, expandTableShorthand, getPath, extendedScope, validateTables, UserTypes, resolveStore, Store } from '@latticexyz/store/config/v2';
3
- import { V as ValueWithType, c as DynamicResolution, W as World } from './dynamicResolution-34391fca.js';
3
+ import { V as ValueWithType, c as DynamicResolution, C as Codegen, W as World } from './dynamicResolution-26462ea5.js';
4
4
  import { Hex } from 'viem';
5
5
 
6
6
  type SystemInput = {
@@ -77,14 +77,7 @@ type DeployInput = {
77
77
  /** Deploy the World as an upgradeable proxy */
78
78
  readonly upgradeableWorldImplementation?: boolean;
79
79
  };
80
- type CodegenInput = {
81
- /** The name of the World interface to generate. (Default `IWorld`) */
82
- readonly worldInterfaceName?: string;
83
- /** Directory to output system and world interfaces of `worldgen` (Default "world") */
84
- readonly worldgenDirectory?: string;
85
- /** Path for world package imports. Default is "@latticexyz/world/src/" */
86
- readonly worldImportPath?: string;
87
- };
80
+ type CodegenInput = Partial<Codegen>;
88
81
  type WorldInput = show<StoreInput & {
89
82
  readonly namespaces?: NamespacesInput;
90
83
  /**
@@ -119,7 +112,7 @@ type SYSTEM_DEFAULTS = typeof SYSTEM_DEFAULTS;
119
112
  declare const CODEGEN_DEFAULTS: {
120
113
  readonly worldInterfaceName: "IWorld";
121
114
  readonly worldgenDirectory: "world";
122
- readonly worldImportPath: "@latticexyz/world/src/";
115
+ readonly worldImportPath: "@latticexyz/world/src";
123
116
  };
124
117
  type CODEGEN_DEFAULTS = typeof CODEGEN_DEFAULTS;
125
118
  declare const DEPLOY_DEFAULTS: {
@@ -138,7 +131,7 @@ declare const CONFIG_DEFAULTS: {
138
131
  readonly codegen: {
139
132
  readonly worldInterfaceName: "IWorld";
140
133
  readonly worldgenDirectory: "world";
141
- readonly worldImportPath: "@latticexyz/world/src/";
134
+ readonly worldImportPath: "@latticexyz/world/src";
142
135
  };
143
136
  readonly deploy: {
144
137
  readonly customWorldContract: undefined;