-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(world): config uses readonly arrays (#2805)
- Loading branch information
Showing
9 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@latticexyz/world": patch | ||
--- | ||
|
||
Updated World config types to use readonly arrays. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
export const SYSTEM_DEFAULTS = { | ||
registerFunctionSelector: true, | ||
openAccess: true, | ||
accessList: [] as string[], | ||
accessList: [], | ||
} as const; | ||
|
||
export type SYSTEM_DEFAULTS = typeof SYSTEM_DEFAULTS; | ||
|
||
export const WORLD_DEFAULTS = { | ||
worldContractName: undefined, | ||
worldInterfaceName: "IWorld", | ||
systems: {} as Record<string, never>, | ||
excludeSystems: [] as string[], | ||
systems: {}, | ||
excludeSystems: [], | ||
postDeployScript: "PostDeploy", | ||
deploysDirectory: "./deploys", | ||
worldsFile: "./worlds.json", | ||
worldgenDirectory: "world", | ||
worldImportPath: "@latticexyz/world/src/", | ||
modules: [] as [], | ||
modules: [], | ||
} as const; | ||
|
||
export type WORLD_DEFAULTS = typeof WORLD_DEFAULTS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters