Skip to content

Commit

Permalink
move metadata module into its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Aug 14, 2024
1 parent 1f85850 commit 9866564
Show file tree
Hide file tree
Showing 28 changed files with 612 additions and 588 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@latticexyz/store": "workspace:*",
"@latticexyz/utils": "workspace:*",
"@latticexyz/world": "workspace:*",
"@latticexyz/world-modules": "workspace:*",
"@latticexyz/world-module-metadata": "workspace:*",
"abitype": "1.0.0",
"asn1.js": "^5.4.1",
"chalk": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/deploy/configToModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { World } from "@latticexyz/world";
import { getContractArtifact } from "../utils/getContractArtifact";
import { importContractArtifact } from "../utils/importContractArtifact";
import { resolveWithContext } from "@latticexyz/world/internal";
import metadataModule from "@latticexyz/world-modules/out/MetadataModule.sol/MetadataModule.json" assert { type: "json" };
import metadataModule from "@latticexyz/world-module-metadata/out/MetadataModule.sol/MetadataModule.json" assert { type: "json" };

/** Please don't add to this list! These are kept for backwards compatibility and assumes the downstream project has this module installed as a dependency. */
const knownModuleArtifacts = {
Expand Down
10 changes: 10 additions & 0 deletions packages/world-module-metadata/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cache
out
docs
_docs
DOCS.md
artifacts
yarn-error.log
API

src/codegen
8 changes: 8 additions & 0 deletions packages/world-module-metadata/.solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", ">=0.8.0"],
"avoid-low-level-calls": "off",
"func-visibility": ["warn", { "ignoreConstructors": true }]
}
}
1 change: 1 addition & 0 deletions packages/world-module-metadata/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Metadata world module
15 changes: 15 additions & 0 deletions packages/world-module-metadata/foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[profile.default]
solc = "0.8.24"
ffi = false
fuzz_runs = 256
optimizer = true
optimizer_runs = 3000
verbosity = 2
allow_paths = ["../../node_modules", "../"]
src = "src"
out = "out"
bytecode_hash = "none"
extra_output_files = [
"abi",
"evm.bytecode"
]
Loading

0 comments on commit 9866564

Please sign in to comment.