@latticexyz/world-module-metadata 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2 → 2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940
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/mud.config.js +1 -21
- package/dist/mud.config.js.map +1 -1
- package/package.json +9 -17
- package/dist/mud.config.cjs +0 -43
- package/dist/mud.config.cjs.map +0 -1
- package/dist/mud.config.d.cts +0 -111
package/dist/mud.config.js
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
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};
|
|
22
2
|
//# sourceMappingURL=mud.config.js.map
|
package/dist/mud.config.js.map
CHANGED
|
@@ -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":"
|
|
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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/world-module-metadata",
|
|
3
|
-
"version": "2.2.18-
|
|
3
|
+
"version": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
4
4
|
"description": "Metadata world module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,16 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
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
|
-
},
|
|
13
|
+
"./mud.config": "./dist/mud.config.js",
|
|
23
14
|
"./out/*": "./out/*"
|
|
24
15
|
},
|
|
25
16
|
"typesVersions": {
|
|
@@ -35,16 +26,17 @@
|
|
|
35
26
|
"src"
|
|
36
27
|
],
|
|
37
28
|
"dependencies": {
|
|
38
|
-
"@latticexyz/
|
|
39
|
-
"@latticexyz/
|
|
40
|
-
"@latticexyz/
|
|
29
|
+
"@latticexyz/store": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
30
|
+
"@latticexyz/world": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
31
|
+
"@latticexyz/schema-type": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940"
|
|
41
32
|
},
|
|
42
33
|
"devDependencies": {
|
|
43
34
|
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
|
|
44
35
|
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
|
|
45
36
|
"solhint": "^3.3.7",
|
|
46
|
-
"
|
|
47
|
-
"@latticexyz/
|
|
37
|
+
"vitest": "0.34.6",
|
|
38
|
+
"@latticexyz/abi-ts": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
39
|
+
"@latticexyz/gas-report": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940"
|
|
48
40
|
},
|
|
49
41
|
"publishConfig": {
|
|
50
42
|
"access": "public"
|
|
@@ -62,7 +54,7 @@
|
|
|
62
54
|
"dev": "tsup --watch",
|
|
63
55
|
"gas-report": "gas-report --save gas-report.json",
|
|
64
56
|
"lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
|
|
65
|
-
"test": "
|
|
57
|
+
"test": "forge test",
|
|
66
58
|
"test:ci": "pnpm run test"
|
|
67
59
|
}
|
|
68
60
|
}
|
package/dist/mud.config.cjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
package/dist/mud.config.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/mud.config.d.cts
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
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 };
|