@latticexyz/world-module-metadata 2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30 → 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2

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.
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // mud.config.ts
21
+ var mud_config_exports = {};
22
+ __export(mud_config_exports, {
23
+ default: () => mud_config_default
24
+ });
25
+ module.exports = __toCommonJS(mud_config_exports);
26
+ var import_world = require("@latticexyz/world");
27
+ var mud_config_default = (0, import_world.defineWorld)({
28
+ namespace: "metadata",
29
+ userTypes: {
30
+ ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
31
+ },
32
+ tables: {
33
+ ResourceTag: {
34
+ schema: {
35
+ resource: "ResourceId",
36
+ tag: "bytes32",
37
+ value: "bytes"
38
+ },
39
+ key: ["resource", "tag"]
40
+ }
41
+ }
42
+ });
43
+ //# sourceMappingURL=mud.config.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"@latticexyz/world\";\n\nexport default defineWorld({\n namespace: \"metadata\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n ResourceTag: {\n schema: {\n resource: \"ResourceId\",\n tag: \"bytes32\",\n value: \"bytes\",\n },\n key: [\"resource\", \"tag\"],\n },\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA4B;AAE5B,IAAO,yBAAQ,0BAAY;AAAA,EACzB,WAAW;AAAA,EACX,WAAW;AAAA,IACT,YAAY,EAAE,UAAU,wCAAwC,MAAM,UAAU;AAAA,EAClF;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,MACX,QAAQ;AAAA,QACN,UAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAO;AAAA,MACT;AAAA,MACA,KAAK,CAAC,YAAY,KAAK;AAAA,IACzB;AAAA,EACF;AACF,CAAC;","names":[]}
@@ -0,0 +1,111 @@
1
+ declare const _default: {
2
+ readonly namespace: string;
3
+ readonly codegen: {
4
+ readonly outputDirectory: "codegen";
5
+ readonly storeImportPath: "@latticexyz/store/src";
6
+ readonly userTypesFilename: "common.sol";
7
+ readonly indexFilename: "index.sol";
8
+ } & {
9
+ readonly worldInterfaceName: "IWorld";
10
+ readonly worldgenDirectory: "world";
11
+ readonly systemLibrariesDirectory: "systems";
12
+ readonly generateSystemLibraries: false;
13
+ readonly worldImportPath: "@latticexyz/world/src";
14
+ };
15
+ readonly tables: {
16
+ readonly metadata__ResourceTag: {
17
+ readonly label: "ResourceTag";
18
+ readonly namespaceLabel: "metadata";
19
+ readonly type: "table";
20
+ readonly namespace: string;
21
+ readonly name: string;
22
+ readonly tableId: `0x${string}`;
23
+ readonly schema: {
24
+ readonly resource: {
25
+ readonly type: "bytes32";
26
+ readonly internalType: "ResourceId";
27
+ };
28
+ readonly tag: {
29
+ readonly type: "bytes32";
30
+ readonly internalType: "bytes32";
31
+ };
32
+ readonly value: {
33
+ readonly type: "bytes";
34
+ readonly internalType: "bytes";
35
+ };
36
+ };
37
+ readonly key: readonly ["resource", "tag"];
38
+ readonly codegen: {
39
+ readonly outputDirectory: string;
40
+ readonly tableIdArgument: false;
41
+ readonly storeArgument: false;
42
+ readonly dataStruct: boolean;
43
+ };
44
+ readonly deploy: {
45
+ readonly disabled: false;
46
+ };
47
+ };
48
+ };
49
+ readonly sourceDirectory: "src";
50
+ readonly userTypes: {
51
+ readonly ResourceId: {
52
+ readonly filePath: "@latticexyz/store/src/ResourceId.sol";
53
+ readonly type: "bytes32";
54
+ };
55
+ };
56
+ readonly enums: {};
57
+ readonly multipleNamespaces: false;
58
+ readonly enumValues: {};
59
+ readonly namespaces: {
60
+ readonly metadata: {
61
+ readonly label: "metadata";
62
+ readonly namespace: string;
63
+ readonly tables: {
64
+ readonly ResourceTag: {
65
+ readonly label: "ResourceTag";
66
+ readonly namespaceLabel: "metadata";
67
+ readonly type: "table";
68
+ readonly namespace: string;
69
+ readonly name: string;
70
+ readonly tableId: `0x${string}`;
71
+ readonly schema: {
72
+ readonly resource: {
73
+ readonly type: "bytes32";
74
+ readonly internalType: "ResourceId";
75
+ };
76
+ readonly tag: {
77
+ readonly type: "bytes32";
78
+ readonly internalType: "bytes32";
79
+ };
80
+ readonly value: {
81
+ readonly type: "bytes";
82
+ readonly internalType: "bytes";
83
+ };
84
+ };
85
+ readonly key: readonly ["resource", "tag"];
86
+ readonly codegen: {
87
+ readonly outputDirectory: string;
88
+ readonly tableIdArgument: false;
89
+ readonly storeArgument: false;
90
+ readonly dataStruct: boolean;
91
+ };
92
+ readonly deploy: {
93
+ readonly disabled: false;
94
+ };
95
+ };
96
+ };
97
+ readonly systems: {};
98
+ };
99
+ };
100
+ readonly systems: {};
101
+ readonly excludeSystems: readonly [];
102
+ readonly modules: readonly [];
103
+ readonly deploy: {
104
+ readonly postDeployScript: "PostDeploy";
105
+ readonly deploysDirectory: "./deploys";
106
+ readonly worldsFile: "./worlds.json";
107
+ readonly upgradeableWorldImplementation: false;
108
+ };
109
+ };
110
+
111
+ export { _default as default };
@@ -1,2 +1,22 @@
1
- import{defineWorld as e}from"@latticexyz/world";var t=e({namespace:"metadata",userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",type:"bytes32"}},tables:{ResourceTag:{schema:{resource:"ResourceId",tag:"bytes32",value:"bytes"},key:["resource","tag"]}}});export{t as default};
1
+ // mud.config.ts
2
+ import { defineWorld } from "@latticexyz/world";
3
+ var mud_config_default = defineWorld({
4
+ namespace: "metadata",
5
+ userTypes: {
6
+ ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
7
+ },
8
+ tables: {
9
+ ResourceTag: {
10
+ schema: {
11
+ resource: "ResourceId",
12
+ tag: "bytes32",
13
+ value: "bytes"
14
+ },
15
+ key: ["resource", "tag"]
16
+ }
17
+ }
18
+ });
19
+ export {
20
+ mud_config_default as default
21
+ };
2
22
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"@latticexyz/world\";\n\nexport default defineWorld({\n namespace: \"metadata\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n ResourceTag: {\n schema: {\n resource: \"ResourceId\",\n tag: \"bytes32\",\n value: \"bytes\",\n },\n key: [\"resource\", \"tag\"],\n },\n },\n});\n"],"mappings":"AAAA,OAAS,eAAAA,MAAmB,oBAE5B,IAAOC,EAAQD,EAAY,CACzB,UAAW,WACX,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,KAAM,SAAU,CAClF,EACA,OAAQ,CACN,YAAa,CACX,OAAQ,CACN,SAAU,aACV,IAAK,UACL,MAAO,OACT,EACA,IAAK,CAAC,WAAY,KAAK,CACzB,CACF,CACF,CAAC","names":["defineWorld","mud_config_default"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"@latticexyz/world\";\n\nexport default defineWorld({\n namespace: \"metadata\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n ResourceTag: {\n schema: {\n resource: \"ResourceId\",\n tag: \"bytes32\",\n value: \"bytes\",\n },\n key: [\"resource\", \"tag\"],\n },\n },\n});\n"],"mappings":";AAAA,SAAS,mBAAmB;AAE5B,IAAO,qBAAQ,YAAY;AAAA,EACzB,WAAW;AAAA,EACX,WAAW;AAAA,IACT,YAAY,EAAE,UAAU,wCAAwC,MAAM,UAAU;AAAA,EAClF;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,MACX,QAAQ;AAAA,QACN,UAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAO;AAAA,MACT;AAAA,MACA,KAAK,CAAC,YAAY,KAAK;AAAA,IACzB;AAAA,EACF;AACF,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/world-module-metadata",
3
- "version": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30",
3
+ "version": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
4
4
  "description": "Metadata world module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,16 @@
10
10
  "license": "MIT",
11
11
  "type": "module",
12
12
  "exports": {
13
- "./mud.config": "./dist/mud.config.js",
13
+ "./mud.config": {
14
+ "import": {
15
+ "import": "./dist/mud.config.js",
16
+ "types": "./dist/mud.config.d.ts"
17
+ },
18
+ "require": {
19
+ "require": "./dist/mud.config.cjs",
20
+ "types": "./dist/mud.config.d.cts"
21
+ }
22
+ },
14
23
  "./out/*": "./out/*"
15
24
  },
16
25
  "typesVersions": {
@@ -26,16 +35,16 @@
26
35
  "src"
27
36
  ],
28
37
  "dependencies": {
29
- "@latticexyz/schema-type": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30",
30
- "@latticexyz/store": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30",
31
- "@latticexyz/world": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30"
38
+ "@latticexyz/schema-type": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
39
+ "@latticexyz/store": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
40
+ "@latticexyz/world": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2"
32
41
  },
33
42
  "devDependencies": {
34
43
  "ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
35
44
  "forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
36
45
  "solhint": "^3.3.7",
37
- "@latticexyz/abi-ts": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30",
38
- "@latticexyz/gas-report": "2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30"
46
+ "@latticexyz/abi-ts": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
47
+ "@latticexyz/gas-report": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2"
39
48
  },
40
49
  "publishConfig": {
41
50
  "access": "public"