@latticexyz/cli 2.0.0-main-257a0afc → 2.0.0-march-19-skystrife-playtest-f0a343b1

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 (45) hide show
  1. package/dist/commands-RZOPG5RM.js +27 -0
  2. package/dist/commands-RZOPG5RM.js.map +1 -0
  3. package/dist/mud.js +1 -1
  4. package/dist/mud.js.map +1 -1
  5. package/package.json +15 -17
  6. package/src/commands/deploy.ts +1 -1
  7. package/src/commands/dev-contracts.ts +1 -4
  8. package/src/commands/set-version.ts +1 -1
  9. package/src/commands/trace.ts +1 -1
  10. package/src/deploy/assertNamespaceOwner.ts +42 -0
  11. package/src/deploy/common.ts +2 -44
  12. package/src/deploy/configToTables.ts +3 -5
  13. package/src/deploy/create2/README.md +0 -4
  14. package/src/deploy/create2/deployment.json +1 -2
  15. package/src/deploy/deploy.ts +18 -43
  16. package/src/deploy/deployWorld.ts +4 -9
  17. package/src/deploy/ensureContract.ts +7 -12
  18. package/src/deploy/ensureContractsDeployed.ts +1 -9
  19. package/src/deploy/ensureDeployer.ts +22 -61
  20. package/src/deploy/ensureFunctions.ts +5 -5
  21. package/src/deploy/ensureModules.ts +10 -16
  22. package/src/deploy/ensureSystems.ts +83 -108
  23. package/src/deploy/ensureTables.ts +8 -7
  24. package/src/deploy/ensureWorldFactory.ts +37 -95
  25. package/src/deploy/getFunctions.ts +4 -4
  26. package/src/deploy/getResourceAccess.ts +2 -2
  27. package/src/deploy/getSystems.ts +7 -6
  28. package/src/deploy/getTables.ts +1 -1
  29. package/src/deploy/logsToWorldDeploy.ts +1 -1
  30. package/src/deploy/resolveConfig.ts +55 -52
  31. package/src/deploy/resourceLabel.ts +3 -0
  32. package/src/mud.ts +1 -1
  33. package/src/mudPackages.ts +1 -1
  34. package/src/runDeploy.ts +7 -34
  35. package/src/utils/{defaultModuleContracts.ts → modules/constants.ts} +0 -4
  36. package/src/utils/printMUD.ts +1 -1
  37. package/src/utils/{getContractData.ts → utils/getContractData.ts} +5 -11
  38. package/src/utils/{postDeploy.ts → utils/postDeploy.ts} +2 -2
  39. package/dist/commands-22M65L4E.js +0 -36
  40. package/dist/commands-22M65L4E.js.map +0 -1
  41. package/src/deploy/createPrepareDeploy.ts +0 -28
  42. package/src/deploy/ensureNamespaceOwner.ts +0 -71
  43. package/src/deploy/findLibraries.ts +0 -36
  44. package/src/deploy/orderByDependencies.ts +0 -12
  45. package/src/utils/findPlaceholders.ts +0 -27
@@ -1,27 +0,0 @@
1
- import { LibraryPlaceholder } from "../deploy/common";
2
-
3
- // TODO: move this to a broader solc artifact type
4
- /** From `artifact.bytecode.linkReferences` where `artifact` is the solc JSON output of a compiled Solidity contract */
5
- export type LinkReferences = {
6
- [filename: string]: {
7
- [name: string]: {
8
- start: number;
9
- length: number;
10
- }[];
11
- };
12
- };
13
-
14
- export function findPlaceholders(linkReferences: LinkReferences): readonly LibraryPlaceholder[] {
15
- return Object.entries(linkReferences).flatMap(([path, contracts]) =>
16
- Object.entries(contracts).flatMap(([contractName, locations]) =>
17
- locations.map(
18
- (location): LibraryPlaceholder => ({
19
- path,
20
- name: contractName,
21
- start: location.start,
22
- length: location.length,
23
- }),
24
- ),
25
- ),
26
- );
27
- }