@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.
- package/dist/commands-RZOPG5RM.js +27 -0
- package/dist/commands-RZOPG5RM.js.map +1 -0
- package/dist/mud.js +1 -1
- package/dist/mud.js.map +1 -1
- package/package.json +15 -17
- package/src/commands/deploy.ts +1 -1
- package/src/commands/dev-contracts.ts +1 -4
- package/src/commands/set-version.ts +1 -1
- package/src/commands/trace.ts +1 -1
- package/src/deploy/assertNamespaceOwner.ts +42 -0
- package/src/deploy/common.ts +2 -44
- package/src/deploy/configToTables.ts +3 -5
- package/src/deploy/create2/README.md +0 -4
- package/src/deploy/create2/deployment.json +1 -2
- package/src/deploy/deploy.ts +18 -43
- package/src/deploy/deployWorld.ts +4 -9
- package/src/deploy/ensureContract.ts +7 -12
- package/src/deploy/ensureContractsDeployed.ts +1 -9
- package/src/deploy/ensureDeployer.ts +22 -61
- package/src/deploy/ensureFunctions.ts +5 -5
- package/src/deploy/ensureModules.ts +10 -16
- package/src/deploy/ensureSystems.ts +83 -108
- package/src/deploy/ensureTables.ts +8 -7
- package/src/deploy/ensureWorldFactory.ts +37 -95
- package/src/deploy/getFunctions.ts +4 -4
- package/src/deploy/getResourceAccess.ts +2 -2
- package/src/deploy/getSystems.ts +7 -6
- package/src/deploy/getTables.ts +1 -1
- package/src/deploy/logsToWorldDeploy.ts +1 -1
- package/src/deploy/resolveConfig.ts +55 -52
- package/src/deploy/resourceLabel.ts +3 -0
- package/src/mud.ts +1 -1
- package/src/mudPackages.ts +1 -1
- package/src/runDeploy.ts +7 -34
- package/src/utils/{defaultModuleContracts.ts → modules/constants.ts} +0 -4
- package/src/utils/printMUD.ts +1 -1
- package/src/utils/{getContractData.ts → utils/getContractData.ts} +5 -11
- package/src/utils/{postDeploy.ts → utils/postDeploy.ts} +2 -2
- package/dist/commands-22M65L4E.js +0 -36
- package/dist/commands-22M65L4E.js.map +0 -1
- package/src/deploy/createPrepareDeploy.ts +0 -28
- package/src/deploy/ensureNamespaceOwner.ts +0 -71
- package/src/deploy/findLibraries.ts +0 -36
- package/src/deploy/orderByDependencies.ts +0 -12
- 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
|
-
}
|