@latticexyz/cli 2.0.0-next.1 → 2.0.0-next.11

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 (52) hide show
  1. package/dist/chunk-TW3YGZ4D.js +11 -0
  2. package/dist/chunk-TW3YGZ4D.js.map +1 -0
  3. package/dist/index.js +1 -1
  4. package/dist/mud.js +11 -7
  5. package/dist/mud.js.map +1 -1
  6. package/package.json +17 -15
  7. package/src/commands/deploy.ts +1 -1
  8. package/src/commands/dev-contracts.ts +17 -16
  9. package/src/commands/index.ts +2 -2
  10. package/src/commands/set-version.ts +19 -60
  11. package/src/commands/tablegen.ts +3 -2
  12. package/src/commands/test.ts +3 -2
  13. package/src/commands/trace.ts +17 -9
  14. package/src/commands/worldgen.ts +1 -1
  15. package/src/common.ts +1 -0
  16. package/src/index.ts +0 -1
  17. package/src/mud.ts +5 -2
  18. package/src/mudPackages.ts +24 -0
  19. package/src/utils/deploy.ts +189 -554
  20. package/src/utils/deployHandler.ts +9 -3
  21. package/src/utils/modules/constants.ts +23 -0
  22. package/src/utils/modules/getInstallModuleCallData.ts +27 -0
  23. package/src/utils/modules/getUserModules.ts +5 -0
  24. package/src/utils/modules/types.ts +14 -0
  25. package/src/utils/systems/getGrantAccessCallData.ts +29 -0
  26. package/src/utils/systems/getRegisterFunctionSelectorsCallData.ts +57 -0
  27. package/src/utils/systems/getRegisterSystemCallData.ts +17 -0
  28. package/src/utils/systems/types.ts +9 -0
  29. package/src/utils/systems/utils.ts +42 -0
  30. package/src/utils/tables/getRegisterTableCallData.ts +49 -0
  31. package/src/utils/tables/getTableIds.ts +18 -0
  32. package/src/utils/tables/types.ts +12 -0
  33. package/src/utils/utils/confirmNonce.ts +24 -0
  34. package/src/utils/utils/deployContract.ts +33 -0
  35. package/src/utils/utils/fastTxExecute.ts +56 -0
  36. package/src/utils/utils/getContractData.ts +29 -0
  37. package/src/utils/utils/postDeploy.ts +25 -0
  38. package/src/utils/utils/setInternalFeePerGas.ts +49 -0
  39. package/src/utils/utils/types.ts +21 -0
  40. package/src/utils/world.ts +28 -0
  41. package/dist/chunk-P7JIR52V.js +0 -32
  42. package/dist/chunk-P7JIR52V.js.map +0 -1
  43. package/src/commands/tsgen.ts +0 -34
  44. package/src/render-ts/index.ts +0 -5
  45. package/src/render-ts/recsV1TableOptions.ts +0 -57
  46. package/src/render-ts/renderRecsV1Tables.ts +0 -35
  47. package/src/render-ts/schemaTypesToRecsTypeStrings.ts +0 -202
  48. package/src/render-ts/tsgen.ts +0 -12
  49. package/src/render-ts/types.ts +0 -17
  50. package/src/utils/index.ts +0 -7
  51. package/src/utils/worldtypes.ts +0 -21
  52. /package/src/utils/{getChainId.ts → utils/getChainId.ts} +0 -0
@@ -1,21 +0,0 @@
1
- import { getOutDirectory } from "@latticexyz/common/foundry";
2
- import path from "path";
3
- import { runTypeChain } from "typechain";
4
-
5
- /**
6
- * Generate IWorld typescript bindings
7
- */
8
- export async function worldtypes() {
9
- const cwd = process.cwd();
10
- const forgeOurDir = await getOutDirectory();
11
- const IWorldPath = path.join(process.cwd(), forgeOurDir, "IWorld.sol/IWorld.json");
12
-
13
- await runTypeChain({
14
- cwd,
15
- filesToProcess: [IWorldPath],
16
- allFiles: [IWorldPath],
17
- target: "ethers-v5",
18
- });
19
-
20
- console.log("Typechain generated IWorld interface");
21
- }