@latticexyz/world 2.0.13-main-609de113f → 3.0.0-main-e85dc5349

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.
@@ -1,12 +1,14 @@
1
+ import * as _latticexyz_store_config_v2 from '@latticexyz/store/config/v2';
2
+
1
3
  declare const _default: {
2
4
  readonly sourceDirectory: "src";
3
- readonly tables: {
4
- readonly world__NamespaceOwner: {
5
- readonly tableId: `0x${string}`;
6
- readonly name: "NamespaceOwner";
7
- readonly namespace: "world";
5
+ readonly tables: _latticexyz_store_config_v2.resolveNamespacedTables<{
6
+ readonly NamespaceOwner: {
7
+ readonly label: "NamespaceOwner";
8
8
  readonly type: "table";
9
- readonly key: readonly ["namespaceId"];
9
+ readonly namespace: "world";
10
+ readonly name: string;
11
+ readonly tableId: `0x${string}`;
10
12
  readonly schema: {
11
13
  readonly namespaceId: {
12
14
  readonly type: "bytes32";
@@ -17,6 +19,7 @@ declare const _default: {
17
19
  readonly internalType: "address";
18
20
  };
19
21
  };
22
+ readonly key: readonly ["namespaceId"];
20
23
  readonly codegen: {
21
24
  readonly outputDirectory: string;
22
25
  readonly tableIdArgument: false;
@@ -27,12 +30,12 @@ declare const _default: {
27
30
  readonly disabled: false;
28
31
  };
29
32
  };
30
- readonly world__ResourceAccess: {
31
- readonly tableId: `0x${string}`;
32
- readonly name: "ResourceAccess";
33
- readonly namespace: "world";
33
+ readonly ResourceAccess: {
34
+ readonly label: "ResourceAccess";
34
35
  readonly type: "table";
35
- readonly key: readonly ["resourceId", "caller"];
36
+ readonly namespace: "world";
37
+ readonly name: string;
38
+ readonly tableId: `0x${string}`;
36
39
  readonly schema: {
37
40
  readonly resourceId: {
38
41
  readonly type: "bytes32";
@@ -47,6 +50,7 @@ declare const _default: {
47
50
  readonly internalType: "bool";
48
51
  };
49
52
  };
53
+ readonly key: readonly ["resourceId", "caller"];
50
54
  readonly codegen: {
51
55
  readonly outputDirectory: string;
52
56
  readonly tableIdArgument: false;
@@ -57,12 +61,12 @@ declare const _default: {
57
61
  readonly disabled: false;
58
62
  };
59
63
  };
60
- readonly world__InstalledModules: {
61
- readonly tableId: `0x${string}`;
62
- readonly name: "InstalledModules";
63
- readonly namespace: "world";
64
+ readonly InstalledModules: {
65
+ readonly label: "InstalledModules";
64
66
  readonly type: "table";
65
- readonly key: readonly ["moduleAddress", "argumentsHash"];
67
+ readonly namespace: "world";
68
+ readonly name: string;
69
+ readonly tableId: `0x${string}`;
66
70
  readonly schema: {
67
71
  readonly moduleAddress: {
68
72
  readonly type: "address";
@@ -77,6 +81,7 @@ declare const _default: {
77
81
  readonly internalType: "bool";
78
82
  };
79
83
  };
84
+ readonly key: readonly ["moduleAddress", "argumentsHash"];
80
85
  readonly codegen: {
81
86
  readonly outputDirectory: string;
82
87
  readonly tableIdArgument: false;
@@ -87,12 +92,12 @@ declare const _default: {
87
92
  readonly disabled: false;
88
93
  };
89
94
  };
90
- readonly world__UserDelegationControl: {
91
- readonly tableId: `0x${string}`;
92
- readonly name: "UserDelegationControl";
93
- readonly namespace: "world";
95
+ readonly UserDelegationControl: {
96
+ readonly label: "UserDelegationControl";
94
97
  readonly type: "table";
95
- readonly key: readonly ["delegator", "delegatee"];
98
+ readonly namespace: "world";
99
+ readonly name: string;
100
+ readonly tableId: `0x${string}`;
96
101
  readonly schema: {
97
102
  readonly delegator: {
98
103
  readonly type: "address";
@@ -107,6 +112,7 @@ declare const _default: {
107
112
  readonly internalType: "ResourceId";
108
113
  };
109
114
  };
115
+ readonly key: readonly ["delegator", "delegatee"];
110
116
  readonly codegen: {
111
117
  readonly outputDirectory: string;
112
118
  readonly tableIdArgument: false;
@@ -117,12 +123,12 @@ declare const _default: {
117
123
  readonly disabled: false;
118
124
  };
119
125
  };
120
- readonly world__NamespaceDelegationControl: {
121
- readonly tableId: `0x${string}`;
122
- readonly name: "NamespaceDelegationControl";
123
- readonly namespace: "world";
126
+ readonly NamespaceDelegationControl: {
127
+ readonly label: "NamespaceDelegationControl";
124
128
  readonly type: "table";
125
- readonly key: readonly ["namespaceId"];
129
+ readonly namespace: "world";
130
+ readonly name: string;
131
+ readonly tableId: `0x${string}`;
126
132
  readonly schema: {
127
133
  readonly namespaceId: {
128
134
  readonly type: "bytes32";
@@ -133,6 +139,7 @@ declare const _default: {
133
139
  readonly internalType: "ResourceId";
134
140
  };
135
141
  };
142
+ readonly key: readonly ["namespaceId"];
136
143
  readonly codegen: {
137
144
  readonly outputDirectory: string;
138
145
  readonly tableIdArgument: false;
@@ -143,12 +150,12 @@ declare const _default: {
143
150
  readonly disabled: false;
144
151
  };
145
152
  };
146
- readonly world__Balances: {
147
- readonly tableId: `0x${string}`;
148
- readonly name: "Balances";
149
- readonly namespace: "world";
153
+ readonly Balances: {
154
+ readonly label: "Balances";
150
155
  readonly type: "table";
151
- readonly key: readonly ["namespaceId"];
156
+ readonly namespace: "world";
157
+ readonly name: string;
158
+ readonly tableId: `0x${string}`;
152
159
  readonly schema: {
153
160
  readonly namespaceId: {
154
161
  readonly type: "bytes32";
@@ -159,6 +166,7 @@ declare const _default: {
159
166
  readonly internalType: "uint256";
160
167
  };
161
168
  };
169
+ readonly key: readonly ["namespaceId"];
162
170
  readonly codegen: {
163
171
  readonly outputDirectory: string;
164
172
  readonly tableIdArgument: false;
@@ -169,12 +177,12 @@ declare const _default: {
169
177
  readonly disabled: false;
170
178
  };
171
179
  };
172
- readonly world__Systems: {
173
- readonly tableId: `0x${string}`;
174
- readonly name: "Systems";
175
- readonly namespace: "world";
180
+ readonly Systems: {
181
+ readonly label: "Systems";
176
182
  readonly type: "table";
177
- readonly key: readonly ["systemId"];
183
+ readonly namespace: "world";
184
+ readonly name: string;
185
+ readonly tableId: `0x${string}`;
178
186
  readonly schema: {
179
187
  readonly systemId: {
180
188
  readonly type: "bytes32";
@@ -189,6 +197,7 @@ declare const _default: {
189
197
  readonly internalType: "bool";
190
198
  };
191
199
  };
200
+ readonly key: readonly ["systemId"];
192
201
  readonly codegen: {
193
202
  readonly outputDirectory: string;
194
203
  readonly tableIdArgument: false;
@@ -199,12 +208,12 @@ declare const _default: {
199
208
  readonly disabled: false;
200
209
  };
201
210
  };
202
- readonly world__SystemRegistry: {
203
- readonly tableId: `0x${string}`;
204
- readonly name: "SystemRegistry";
205
- readonly namespace: "world";
211
+ readonly SystemRegistry: {
212
+ readonly label: "SystemRegistry";
206
213
  readonly type: "table";
207
- readonly key: readonly ["system"];
214
+ readonly namespace: "world";
215
+ readonly name: string;
216
+ readonly tableId: `0x${string}`;
208
217
  readonly schema: {
209
218
  readonly system: {
210
219
  readonly type: "address";
@@ -215,6 +224,7 @@ declare const _default: {
215
224
  readonly internalType: "ResourceId";
216
225
  };
217
226
  };
227
+ readonly key: readonly ["system"];
218
228
  readonly codegen: {
219
229
  readonly outputDirectory: string;
220
230
  readonly tableIdArgument: false;
@@ -225,12 +235,12 @@ declare const _default: {
225
235
  readonly disabled: false;
226
236
  };
227
237
  };
228
- readonly world__SystemHooks: {
229
- readonly tableId: `0x${string}`;
230
- readonly name: "SystemHooks";
231
- readonly namespace: "world";
238
+ readonly SystemHooks: {
239
+ readonly label: "SystemHooks";
232
240
  readonly type: "table";
233
- readonly key: readonly ["systemId"];
241
+ readonly namespace: "world";
242
+ readonly name: string;
243
+ readonly tableId: `0x${string}`;
234
244
  readonly schema: {
235
245
  readonly systemId: {
236
246
  readonly type: "bytes32";
@@ -241,6 +251,7 @@ declare const _default: {
241
251
  readonly internalType: "bytes21[]";
242
252
  };
243
253
  };
254
+ readonly key: readonly ["systemId"];
244
255
  readonly codegen: {
245
256
  readonly outputDirectory: string;
246
257
  readonly tableIdArgument: false;
@@ -251,12 +262,12 @@ declare const _default: {
251
262
  readonly disabled: false;
252
263
  };
253
264
  };
254
- readonly world__FunctionSelectors: {
255
- readonly tableId: `0x${string}`;
256
- readonly name: "FunctionSelectors";
257
- readonly namespace: "world";
265
+ readonly FunctionSelectors: {
266
+ readonly label: "FunctionSelectors";
258
267
  readonly type: "table";
259
- readonly key: readonly ["worldFunctionSelector"];
268
+ readonly namespace: "world";
269
+ readonly name: string;
270
+ readonly tableId: `0x${string}`;
260
271
  readonly schema: {
261
272
  readonly worldFunctionSelector: {
262
273
  readonly type: "bytes4";
@@ -271,6 +282,7 @@ declare const _default: {
271
282
  readonly internalType: "bytes4";
272
283
  };
273
284
  };
285
+ readonly key: readonly ["worldFunctionSelector"];
274
286
  readonly codegen: {
275
287
  readonly outputDirectory: string;
276
288
  readonly tableIdArgument: false;
@@ -281,12 +293,12 @@ declare const _default: {
281
293
  readonly disabled: false;
282
294
  };
283
295
  };
284
- readonly world__FunctionSignatures: {
285
- readonly tableId: `0x${string}`;
286
- readonly name: "FunctionSignatures";
287
- readonly namespace: "world";
296
+ readonly FunctionSignatures: {
297
+ readonly label: "FunctionSignatures";
288
298
  readonly type: "offchainTable";
289
- readonly key: readonly ["functionSelector"];
299
+ readonly namespace: "world";
300
+ readonly name: string;
301
+ readonly tableId: `0x${string}`;
290
302
  readonly schema: {
291
303
  readonly functionSelector: {
292
304
  readonly type: "bytes4";
@@ -297,6 +309,7 @@ declare const _default: {
297
309
  readonly internalType: "string";
298
310
  };
299
311
  };
312
+ readonly key: readonly ["functionSelector"];
300
313
  readonly codegen: {
301
314
  readonly outputDirectory: string;
302
315
  readonly tableIdArgument: false;
@@ -307,18 +320,19 @@ declare const _default: {
307
320
  readonly disabled: false;
308
321
  };
309
322
  };
310
- readonly world__InitModuleAddress: {
311
- readonly tableId: `0x${string}`;
312
- readonly name: "InitModuleAddress";
313
- readonly namespace: "world";
323
+ readonly InitModuleAddress: {
324
+ readonly label: "InitModuleAddress";
314
325
  readonly type: "table";
315
- readonly key: readonly [];
326
+ readonly namespace: "world";
327
+ readonly name: string;
328
+ readonly tableId: `0x${string}`;
316
329
  readonly schema: {
317
330
  readonly value: {
318
331
  readonly type: "address";
319
332
  readonly internalType: "address";
320
333
  };
321
334
  };
335
+ readonly key: readonly [];
322
336
  readonly codegen: {
323
337
  readonly outputDirectory: string;
324
338
  readonly tableIdArgument: false;
@@ -329,7 +343,7 @@ declare const _default: {
329
343
  readonly disabled: false;
330
344
  };
331
345
  };
332
- };
346
+ }, "world">;
333
347
  readonly userTypes: {
334
348
  readonly ResourceId: {
335
349
  readonly filePath: "@latticexyz/store/src/ResourceId.sol";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/world",
3
- "version": "2.0.13-main-609de113f",
3
+ "version": "3.0.0-main-e85dc5349",
4
4
  "description": "World framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,11 +52,11 @@
52
52
  "arktype": "1.0.29-alpha",
53
53
  "viem": "2.9.20",
54
54
  "zod": "^3.22.2",
55
- "@latticexyz/config": "2.0.13-main-609de113f",
56
- "@latticexyz/common": "2.0.13-main-609de113f",
57
- "@latticexyz/protocol-parser": "2.0.13-main-609de113f",
58
- "@latticexyz/schema-type": "2.0.13-main-609de113f",
59
- "@latticexyz/store": "2.0.13-main-609de113f"
55
+ "@latticexyz/common": "3.0.0-main-e85dc5349",
56
+ "@latticexyz/config": "3.0.0-main-e85dc5349",
57
+ "@latticexyz/protocol-parser": "3.0.0-main-e85dc5349",
58
+ "@latticexyz/schema-type": "3.0.0-main-e85dc5349",
59
+ "@latticexyz/store": "3.0.0-main-e85dc5349"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@arktype/attest": "0.7.5",
@@ -71,8 +71,8 @@
71
71
  "tsup": "^6.7.0",
72
72
  "tsx": "^3.12.6",
73
73
  "vitest": "0.34.6",
74
- "@latticexyz/abi-ts": "2.0.13-main-609de113f",
75
- "@latticexyz/gas-report": "2.0.13-main-609de113f"
74
+ "@latticexyz/abi-ts": "3.0.0-main-e85dc5349",
75
+ "@latticexyz/gas-report": "3.0.0-main-e85dc5349"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "pnpm run build:mud && pnpm run build:abi && pnpm run build:abi-ts && pnpm run build:js",