@latticexyz/store 3.0.0-main-3440a86b5 → 3.0.0-main-69eb63b59

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.
Files changed (65) hide show
  1. package/dist/chunk-3PAPLPW2.js +2 -0
  2. package/dist/chunk-3PAPLPW2.js.map +1 -0
  3. package/dist/codegen.d.ts +28 -14
  4. package/dist/codegen.js +177 -177
  5. package/dist/codegen.js.map +1 -1
  6. package/dist/config/v2.d.ts +3 -3
  7. package/dist/config/v2.js +1 -1
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/{output-12804d29.d.ts → input-e69ffb2f.d.ts} +93 -94
  12. package/dist/mud.config.d.ts +238 -110
  13. package/dist/mud.config.js +1 -1
  14. package/dist/mud.config.js.map +1 -1
  15. package/dist/namespacedTables-264f21b1.d.ts +147 -0
  16. package/dist/store-3b37a8c0.d.ts +72 -0
  17. package/out/Callbacks.sol/Callbacks.json +1 -1
  18. package/out/Callbacks.t.sol/CallbacksTest.json +1 -1
  19. package/out/Gas.t.sol/GasTest.json +1 -1
  20. package/out/Gas.t.sol/SolidityStorage.json +1 -1
  21. package/out/Gas.t.sol/SomeContract.json +1 -1
  22. package/out/GasStorageLoad.t.sol/GasStorageLoadTest.json +1 -1
  23. package/out/Hook.sol/HookInstance.json +1 -1
  24. package/out/Hook.sol/HookLib.json +1 -1
  25. package/out/Hook.t.sol/HookTest.json +1 -1
  26. package/out/Hooks.sol/Hooks.json +1 -1
  27. package/out/KeyEncoding.sol/KeyEncoding.json +1 -1
  28. package/out/KeyEncoding.t.sol/KeyEncodingTest.json +1 -1
  29. package/out/MirrorSubscriber.sol/MirrorSubscriber.json +1 -1
  30. package/out/Mixed.sol/Mixed.json +1 -1
  31. package/out/Mixed.t.sol/MixedTest.json +1 -1
  32. package/out/ResourceIds.sol/ResourceIds.json +1 -1
  33. package/out/Store.sol/Store.json +1 -1
  34. package/out/StoreCore.sol/StoreCore.json +1 -1
  35. package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
  36. package/out/StoreCore.t.sol/StoreCoreTest.json +1 -1
  37. package/out/StoreCoreDynamic.t.sol/StoreCoreDynamicTest.json +1 -1
  38. package/out/StoreCoreGas.t.sol/StoreCoreGasTest.json +1 -1
  39. package/out/StoreHook.t.sol/StoreHookTest.json +1 -1
  40. package/out/StoreHooks.sol/StoreHooks.json +1 -1
  41. package/out/StoreHooks.t.sol/StoreHooksTest.json +1 -1
  42. package/out/StoreHooksColdLoad.t.sol/StoreHooksColdLoadTest.json +1 -1
  43. package/out/StoreKernel.sol/StoreKernel.json +1 -1
  44. package/out/StoreMock.sol/StoreMock.json +1 -1
  45. package/out/StoreMock.t.sol/StoreMockTest.json +1 -1
  46. package/out/StoreRead.sol/StoreRead.json +1 -1
  47. package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
  48. package/out/StoreSwitch.t.sol/MockSystem.json +1 -1
  49. package/out/StoreSwitch.t.sol/StoreSwitchTest.json +1 -1
  50. package/out/StoreSwitch.t.sol/StoreSwitchTestStore.json +1 -1
  51. package/out/Tables.sol/Tables.json +1 -1
  52. package/out/Vector2.sol/Vector2.json +1 -1
  53. package/out/Vector2.t.sol/Vector2Test.json +1 -1
  54. package/out/build-info/{ab717ad6a3f348702f22d62ec82363af.json → 946dc2faf2e29137d1fd87e41e62942e.json} +1 -1
  55. package/package.json +7 -7
  56. package/src/codegen/tables/Hooks.sol +1 -1
  57. package/src/codegen/tables/ResourceIds.sol +1 -1
  58. package/src/codegen/tables/StoreHooks.sol +1 -1
  59. package/src/codegen/tables/Tables.sol +3 -3
  60. package/dist/chunk-ACZGBP2R.js +0 -2
  61. package/dist/chunk-ACZGBP2R.js.map +0 -1
  62. package/dist/chunk-AHN74BAP.js +0 -2
  63. package/dist/chunk-AHN74BAP.js.map +0 -1
  64. package/dist/generics-627f4c31.d.ts +0 -29
  65. package/dist/storeWithShorthands-fc46d9a7.d.ts +0 -219
@@ -1,8 +1,96 @@
1
- import { Dict, show } from '@arktype/util';
2
- import { AbiType, Table as Table$1 } from '@latticexyz/config';
3
1
  import { Hex } from 'viem';
2
+ import { show, Dict } from '@arktype/util';
3
+ import { AbiType, Table as Table$1 } from '@latticexyz/config';
4
4
  import { StaticAbiType } from '@latticexyz/schema-type/internal';
5
5
 
6
+ type UserTypes = {
7
+ readonly [userTypeName: string]: {
8
+ readonly type: AbiType;
9
+ readonly filePath: string;
10
+ };
11
+ };
12
+ type Enums = EnumsInput;
13
+ type EnumValues = {
14
+ readonly [enumName: string]: {
15
+ readonly [enumElement: string]: number;
16
+ };
17
+ };
18
+ type TableCodegen = {
19
+ /**
20
+ * Directory to output codegenerated files relative to config's `codegen.outputDirectory`.
21
+ *
22
+ * Defaults to `tables`.
23
+ */
24
+ readonly outputDirectory: string;
25
+ readonly tableIdArgument: boolean;
26
+ readonly storeArgument: boolean;
27
+ readonly dataStruct: boolean;
28
+ };
29
+ type TableDeploy = {
30
+ readonly disabled: boolean;
31
+ };
32
+ type Table = show<Table$1 & {
33
+ readonly codegen: TableCodegen;
34
+ readonly deploy: TableDeploy;
35
+ }>;
36
+ type Tables = {
37
+ readonly [label: string]: Table;
38
+ };
39
+ type Codegen = {
40
+ /**
41
+ * @internal
42
+ * Absolute import path for a package import or starting with `.` for an import relative to project root dir.
43
+ *
44
+ * Defaults to `@latticexyz/store/src` if not set.
45
+ */
46
+ readonly storeImportPath: string;
47
+ readonly userTypesFilename: string;
48
+ /**
49
+ * Directory to output codegenerated files relative to config's `sourceDirectory`.
50
+ *
51
+ * Defaults to `codegen`.
52
+ */
53
+ readonly outputDirectory: string;
54
+ /**
55
+ * Whether or not to organize codegen output (table libraries, etc.) into directories by namespace.
56
+ *
57
+ * For example, a `Counter` table in the `app` namespace will have codegen at `codegen/app/tables/Counter.sol`.
58
+ *
59
+ * Defaults to `true` when using top-level `namespaces` key, `false` otherwise.
60
+ */
61
+ readonly namespaceDirectories: boolean;
62
+ readonly indexFilename: string;
63
+ };
64
+ type Namespace = {
65
+ /**
66
+ * Human-readable namespace label. Used as config keys and directory names.
67
+ * Labels are not length constrained like namespaces within resource IDs, but special characters should be avoided to be compatible with the filesystem, Solidity compiler, etc.
68
+ */
69
+ readonly label: string;
70
+ /**
71
+ * Namespace used in resource ID.
72
+ */
73
+ readonly namespace: string;
74
+ readonly tables: Tables;
75
+ };
76
+ type Namespaces = {
77
+ readonly [label: string]: Namespace;
78
+ };
79
+ type Store = Omit<Namespace, "label"> & {
80
+ /**
81
+ * Directory of Solidity source relative to the MUD config.
82
+ * This is used to resolve other paths in the config, like codegen and user types.
83
+ *
84
+ * Defaults to `src` to match `foundry.toml`'s default. If you change this from the default, you may also need to configure foundry with the same source directory.
85
+ */
86
+ readonly sourceDirectory: string;
87
+ readonly userTypes: UserTypes;
88
+ readonly enums: Enums;
89
+ readonly enumValues: EnumValues;
90
+ readonly codegen: Codegen;
91
+ readonly namespaces: Namespaces;
92
+ };
93
+
6
94
  declare const Scope: {
7
95
  readonly types: {};
8
96
  };
@@ -59,8 +147,9 @@ type TableInput = {
59
147
  readonly codegen?: TableCodegenInput;
60
148
  readonly deploy?: TableDeployInput;
61
149
  };
150
+ type TableShorthandInput = SchemaInput | string;
62
151
  type TablesInput = {
63
- readonly [label: string]: Omit<TableInput, "label" | "namespace">;
152
+ readonly [label: string]: Omit<TableInput, "label" | "namespace"> | TableShorthandInput;
64
153
  };
65
154
  type CodegenInput = Partial<Codegen>;
66
155
  type NamespaceInput = {
@@ -88,95 +177,5 @@ type StoreInput = Omit<NamespaceInput, "label"> & {
88
177
  readonly enums?: EnumsInput;
89
178
  readonly codegen?: CodegenInput;
90
179
  };
91
- /******** Variations with shorthands ********/
92
- type TableShorthandInput = SchemaInput | string;
93
- type TablesWithShorthandsInput = {
94
- readonly [label: string]: TablesInput[string] | TableShorthandInput;
95
- };
96
- type StoreWithShorthandsInput = show<Omit<StoreInput, "tables"> & {
97
- readonly tables?: TablesWithShorthandsInput;
98
- }>;
99
-
100
- type UserTypes = {
101
- readonly [userTypeName: string]: {
102
- readonly type: AbiType;
103
- readonly filePath: string;
104
- };
105
- };
106
- type EnumValues = {
107
- readonly [enumName: string]: {
108
- readonly [enumElement: string]: number;
109
- };
110
- };
111
- type TableCodegen = {
112
- /**
113
- * Directory to output codegenerated files relative to config's `codegen.outputDirectory`.
114
- *
115
- * Defaults to `tables`.
116
- */
117
- readonly outputDirectory: string;
118
- readonly tableIdArgument: boolean;
119
- readonly storeArgument: boolean;
120
- readonly dataStruct: boolean;
121
- };
122
- type TableDeploy = {
123
- readonly disabled: boolean;
124
- };
125
- type Table = show<Table$1 & {
126
- readonly codegen: TableCodegen;
127
- readonly deploy: TableDeploy;
128
- }>;
129
- type Tables = {
130
- readonly [label: string]: Table;
131
- };
132
- type Codegen = {
133
- /** @internal */
134
- readonly storeImportPath: string;
135
- readonly userTypesFilename: string;
136
- /**
137
- * Directory to output codegenerated files relative to config's `sourceDirectory`.
138
- *
139
- * Defaults to `codegen`.
140
- */
141
- readonly outputDirectory: string;
142
- /**
143
- * Whether or not to organize codegen output (table libraries, etc.) into directories by namespace.
144
- *
145
- * For example, a `Counter` table in the `app` namespace will have codegen at `codegen/app/tables/Counter.sol`.
146
- *
147
- * Defaults to `true` when using top-level `namespaces` key, `false` otherwise.
148
- */
149
- readonly namespaceDirectories: boolean;
150
- readonly indexFilename: string;
151
- };
152
- type Namespace = {
153
- /**
154
- * Human-readable namespace label. Used as config keys and directory names.
155
- * Labels are not length constrained like namespaces within resource IDs, but special characters should be avoided to be compatible with the filesystem, Solidity compiler, etc.
156
- */
157
- readonly label: string;
158
- /**
159
- * Namespace used in resource ID.
160
- */
161
- readonly namespace: string;
162
- readonly tables: Tables;
163
- };
164
- type Namespaces = {
165
- readonly [label: string]: Namespace;
166
- };
167
- type Store = Omit<Namespace, "label"> & {
168
- /**
169
- * Directory of Solidity source relative to the MUD config.
170
- * This is used to resolve other paths in the config, like codegen and user types.
171
- *
172
- * Defaults to `src` to match `foundry.toml`'s default. If you change this from the default, you may also need to configure foundry with the same source directory.
173
- */
174
- readonly sourceDirectory: string;
175
- readonly userTypes: UserTypes;
176
- readonly enums: EnumsInput;
177
- readonly enumValues: EnumValues;
178
- readonly codegen: Codegen;
179
- readonly namespaces: Namespaces;
180
- };
181
180
 
182
- export { AbiTypeScope as A, CodegenInput as C, EnumsInput as E, NamespaceInput as N, Store as S, TableCodegenInput as T, UserTypes as U, Scope as a, ScopeOptions as b, SchemaInput as c, ScopedSchemaInput as d, extendScope as e, TableDeployInput as f, getStaticAbiTypeKeys as g, TableInput as h, TablesInput as i, StoreInput as j, TableShorthandInput as k, TablesWithShorthandsInput as l, StoreWithShorthandsInput as m, EnumValues as n, TableCodegen as o, TableDeploy as p, Table as q, Tables as r, Codegen as s, Namespace as t, Namespaces as u };
181
+ export { AbiTypeScope as A, CodegenInput as C, EnumsInput as E, NamespaceInput as N, Store as S, Table as T, UserTypes as U, Scope as a, ScopeOptions as b, SchemaInput as c, ScopedSchemaInput as d, extendScope as e, TableCodegenInput as f, getStaticAbiTypeKeys as g, TableDeployInput as h, TableInput as i, TableShorthandInput as j, TablesInput as k, StoreInput as l, Enums as m, EnumValues as n, TableCodegen as o, TableDeploy as p, Tables as q, Codegen as r, Namespace as s, Namespaces as t };
@@ -1,4 +1,9 @@
1
- import { r as resolveNamespacedTables, m as mergeIfUndefined } from './generics-627f4c31.js';
1
+ import { r as resolveNamespacedTables, m as mergeIfUndefined, a as resolveTables } from './namespacedTables-264f21b1.js';
2
+ import '@arktype/util';
3
+ import './input-e69ffb2f.js';
4
+ import 'viem';
5
+ import '@latticexyz/config';
6
+ import '@latticexyz/schema-type/internal';
2
7
 
3
8
  declare const _default: {
4
9
  readonly namespace: string;
@@ -146,9 +151,9 @@ declare const _default: {
146
151
  readonly enums: {};
147
152
  readonly enumValues: {};
148
153
  readonly codegen: mergeIfUndefined<{
149
- readonly storeImportPath: "../../";
154
+ readonly storeImportPath: "./src";
150
155
  }, {
151
- readonly storeImportPath: "@latticexyz/store/src/";
156
+ readonly storeImportPath: "@latticexyz/store/src";
152
157
  readonly userTypesFilename: "common.sol";
153
158
  readonly outputDirectory: "codegen";
154
159
  readonly namespaceDirectories: false;
@@ -158,132 +163,255 @@ declare const _default: {
158
163
  readonly store: {
159
164
  readonly label: "store";
160
165
  readonly namespace: string;
161
- readonly tables: {
162
- readonly StoreHooks: {
163
- readonly label: "StoreHooks";
164
- readonly type: "table";
165
- readonly namespace: string;
166
- readonly name: string;
167
- readonly tableId: `0x${string}`;
166
+ readonly tables: resolveTables<{
167
+ readonly StoreHooks: mergeIfUndefined<{
168
168
  readonly schema: {
169
- readonly tableId: {
170
- readonly type: "bytes32";
171
- readonly internalType: "ResourceId";
172
- };
173
- readonly hooks: {
174
- readonly type: "bytes21[]";
175
- readonly internalType: "bytes21[]";
176
- };
169
+ readonly tableId: "ResourceId";
170
+ readonly hooks: "bytes21[]";
177
171
  };
178
172
  readonly key: readonly ["tableId"];
179
- readonly codegen: {
180
- readonly outputDirectory: string;
181
- readonly tableIdArgument: false;
182
- readonly storeArgument: false;
183
- readonly dataStruct: boolean;
184
- };
185
- readonly deploy: mergeIfUndefined<{}, {
186
- readonly disabled: false;
187
- }>;
188
- };
189
- readonly Tables: {
190
- readonly label: "Tables";
191
- readonly type: "table";
173
+ }, {
192
174
  readonly namespace: string;
193
- readonly name: string;
194
- readonly tableId: `0x${string}`;
175
+ }>;
176
+ readonly Tables: mergeIfUndefined<{
195
177
  readonly schema: {
196
- readonly tableId: {
197
- readonly type: "bytes32";
198
- readonly internalType: "ResourceId";
199
- };
200
- readonly fieldLayout: {
201
- readonly type: "bytes32";
202
- readonly internalType: "FieldLayout";
203
- };
204
- readonly keySchema: {
205
- readonly type: "bytes32";
206
- readonly internalType: "Schema";
207
- };
208
- readonly valueSchema: {
209
- readonly type: "bytes32";
210
- readonly internalType: "Schema";
211
- };
212
- readonly abiEncodedKeyNames: {
213
- readonly type: "bytes";
214
- readonly internalType: "bytes";
215
- };
216
- readonly abiEncodedFieldNames: {
217
- readonly type: "bytes";
218
- readonly internalType: "bytes";
219
- };
178
+ readonly tableId: "ResourceId";
179
+ readonly fieldLayout: "FieldLayout";
180
+ readonly keySchema: "Schema";
181
+ readonly valueSchema: "Schema";
182
+ readonly abiEncodedKeyNames: "bytes";
183
+ readonly abiEncodedFieldNames: "bytes";
220
184
  };
221
185
  readonly key: readonly ["tableId"];
222
- readonly codegen: {
223
- readonly outputDirectory: string;
224
- readonly tableIdArgument: false;
225
- readonly storeArgument: false;
226
- readonly dataStruct: boolean;
227
- };
228
- readonly deploy: mergeIfUndefined<{}, {
229
- readonly disabled: false;
230
- }>;
231
- };
232
- readonly ResourceIds: {
233
- readonly label: "ResourceIds";
234
- readonly type: "table";
186
+ }, {
235
187
  readonly namespace: string;
236
- readonly name: string;
237
- readonly tableId: `0x${string}`;
188
+ }>;
189
+ readonly ResourceIds: mergeIfUndefined<{
238
190
  readonly schema: {
239
- readonly resourceId: {
240
- readonly type: "bytes32";
241
- readonly internalType: "ResourceId";
242
- };
243
- readonly exists: {
244
- readonly type: "bool";
245
- readonly internalType: "bool";
246
- };
191
+ readonly resourceId: "ResourceId";
192
+ readonly exists: "bool";
247
193
  };
248
194
  readonly key: readonly ["resourceId"];
249
- readonly codegen: {
250
- readonly outputDirectory: string;
251
- readonly tableIdArgument: false;
252
- readonly storeArgument: false;
253
- readonly dataStruct: boolean;
254
- };
255
- readonly deploy: mergeIfUndefined<{}, {
256
- readonly disabled: false;
257
- }>;
258
- };
259
- readonly Hooks: {
260
- readonly label: "Hooks";
261
- readonly type: "table";
195
+ }, {
262
196
  readonly namespace: string;
263
- readonly name: string;
264
- readonly tableId: `0x${string}`;
197
+ }>;
198
+ readonly Hooks: mergeIfUndefined<{
265
199
  readonly schema: {
266
- readonly resourceId: {
267
- readonly type: "bytes32";
268
- readonly internalType: "ResourceId";
269
- };
270
- readonly hooks: {
271
- readonly type: "bytes21[]";
272
- readonly internalType: "bytes21[]";
273
- };
200
+ readonly resourceId: "ResourceId";
201
+ readonly hooks: "bytes21[]";
274
202
  };
275
203
  readonly key: readonly ["resourceId"];
276
204
  readonly codegen: {
277
- readonly outputDirectory: string;
278
205
  readonly tableIdArgument: true;
279
- readonly storeArgument: false;
280
- readonly dataStruct: boolean;
281
206
  };
282
- readonly deploy: mergeIfUndefined<{}, {
283
- readonly disabled: false;
284
- }>;
207
+ }, {
208
+ readonly namespace: string;
209
+ }>;
210
+ }, {
211
+ types: {
212
+ string: "string";
213
+ bytes32: "bytes32";
214
+ uint8: "uint8";
215
+ uint16: "uint16";
216
+ uint24: "uint24";
217
+ uint32: "uint32";
218
+ uint40: "uint40";
219
+ uint48: "uint48";
220
+ uint56: "uint56";
221
+ uint64: "uint64";
222
+ uint72: "uint72";
223
+ uint80: "uint80";
224
+ uint88: "uint88";
225
+ uint96: "uint96";
226
+ uint104: "uint104";
227
+ uint112: "uint112";
228
+ uint120: "uint120";
229
+ uint128: "uint128";
230
+ uint136: "uint136";
231
+ uint144: "uint144";
232
+ uint152: "uint152";
233
+ uint160: "uint160";
234
+ uint168: "uint168";
235
+ uint176: "uint176";
236
+ uint184: "uint184";
237
+ uint192: "uint192";
238
+ uint200: "uint200";
239
+ uint208: "uint208";
240
+ uint216: "uint216";
241
+ uint224: "uint224";
242
+ uint232: "uint232";
243
+ uint240: "uint240";
244
+ uint248: "uint248";
245
+ uint256: "uint256";
246
+ int8: "int8";
247
+ int16: "int16";
248
+ int24: "int24";
249
+ int32: "int32";
250
+ int40: "int40";
251
+ int48: "int48";
252
+ int56: "int56";
253
+ int64: "int64";
254
+ int72: "int72";
255
+ int80: "int80";
256
+ int88: "int88";
257
+ int96: "int96";
258
+ int104: "int104";
259
+ int112: "int112";
260
+ int120: "int120";
261
+ int128: "int128";
262
+ int136: "int136";
263
+ int144: "int144";
264
+ int152: "int152";
265
+ int160: "int160";
266
+ int168: "int168";
267
+ int176: "int176";
268
+ int184: "int184";
269
+ int192: "int192";
270
+ int200: "int200";
271
+ int208: "int208";
272
+ int216: "int216";
273
+ int224: "int224";
274
+ int232: "int232";
275
+ int240: "int240";
276
+ int248: "int248";
277
+ int256: "int256";
278
+ bytes1: "bytes1";
279
+ bytes2: "bytes2";
280
+ bytes3: "bytes3";
281
+ bytes4: "bytes4";
282
+ bytes5: "bytes5";
283
+ bytes6: "bytes6";
284
+ bytes7: "bytes7";
285
+ bytes8: "bytes8";
286
+ bytes9: "bytes9";
287
+ bytes10: "bytes10";
288
+ bytes11: "bytes11";
289
+ bytes12: "bytes12";
290
+ bytes13: "bytes13";
291
+ bytes14: "bytes14";
292
+ bytes15: "bytes15";
293
+ bytes16: "bytes16";
294
+ bytes17: "bytes17";
295
+ bytes18: "bytes18";
296
+ bytes19: "bytes19";
297
+ bytes20: "bytes20";
298
+ bytes21: "bytes21";
299
+ bytes22: "bytes22";
300
+ bytes23: "bytes23";
301
+ bytes24: "bytes24";
302
+ bytes25: "bytes25";
303
+ bytes26: "bytes26";
304
+ bytes27: "bytes27";
305
+ bytes28: "bytes28";
306
+ bytes29: "bytes29";
307
+ bytes30: "bytes30";
308
+ bytes31: "bytes31";
309
+ bool: "bool";
310
+ address: "address";
311
+ "uint8[]": "uint8[]";
312
+ "uint16[]": "uint16[]";
313
+ "uint24[]": "uint24[]";
314
+ "uint32[]": "uint32[]";
315
+ "uint40[]": "uint40[]";
316
+ "uint48[]": "uint48[]";
317
+ "uint56[]": "uint56[]";
318
+ "uint64[]": "uint64[]";
319
+ "uint72[]": "uint72[]";
320
+ "uint80[]": "uint80[]";
321
+ "uint88[]": "uint88[]";
322
+ "uint96[]": "uint96[]";
323
+ "uint104[]": "uint104[]";
324
+ "uint112[]": "uint112[]";
325
+ "uint120[]": "uint120[]";
326
+ "uint128[]": "uint128[]";
327
+ "uint136[]": "uint136[]";
328
+ "uint144[]": "uint144[]";
329
+ "uint152[]": "uint152[]";
330
+ "uint160[]": "uint160[]";
331
+ "uint168[]": "uint168[]";
332
+ "uint176[]": "uint176[]";
333
+ "uint184[]": "uint184[]";
334
+ "uint192[]": "uint192[]";
335
+ "uint200[]": "uint200[]";
336
+ "uint208[]": "uint208[]";
337
+ "uint216[]": "uint216[]";
338
+ "uint224[]": "uint224[]";
339
+ "uint232[]": "uint232[]";
340
+ "uint240[]": "uint240[]";
341
+ "uint248[]": "uint248[]";
342
+ "uint256[]": "uint256[]";
343
+ "int8[]": "int8[]";
344
+ "int16[]": "int16[]";
345
+ "int24[]": "int24[]";
346
+ "int32[]": "int32[]";
347
+ "int40[]": "int40[]";
348
+ "int48[]": "int48[]";
349
+ "int56[]": "int56[]";
350
+ "int64[]": "int64[]";
351
+ "int72[]": "int72[]";
352
+ "int80[]": "int80[]";
353
+ "int88[]": "int88[]";
354
+ "int96[]": "int96[]";
355
+ "int104[]": "int104[]";
356
+ "int112[]": "int112[]";
357
+ "int120[]": "int120[]";
358
+ "int128[]": "int128[]";
359
+ "int136[]": "int136[]";
360
+ "int144[]": "int144[]";
361
+ "int152[]": "int152[]";
362
+ "int160[]": "int160[]";
363
+ "int168[]": "int168[]";
364
+ "int176[]": "int176[]";
365
+ "int184[]": "int184[]";
366
+ "int192[]": "int192[]";
367
+ "int200[]": "int200[]";
368
+ "int208[]": "int208[]";
369
+ "int216[]": "int216[]";
370
+ "int224[]": "int224[]";
371
+ "int232[]": "int232[]";
372
+ "int240[]": "int240[]";
373
+ "int248[]": "int248[]";
374
+ "int256[]": "int256[]";
375
+ "bytes1[]": "bytes1[]";
376
+ "bytes2[]": "bytes2[]";
377
+ "bytes3[]": "bytes3[]";
378
+ "bytes4[]": "bytes4[]";
379
+ "bytes5[]": "bytes5[]";
380
+ "bytes6[]": "bytes6[]";
381
+ "bytes7[]": "bytes7[]";
382
+ "bytes8[]": "bytes8[]";
383
+ "bytes9[]": "bytes9[]";
384
+ "bytes10[]": "bytes10[]";
385
+ "bytes11[]": "bytes11[]";
386
+ "bytes12[]": "bytes12[]";
387
+ "bytes13[]": "bytes13[]";
388
+ "bytes14[]": "bytes14[]";
389
+ "bytes15[]": "bytes15[]";
390
+ "bytes16[]": "bytes16[]";
391
+ "bytes17[]": "bytes17[]";
392
+ "bytes18[]": "bytes18[]";
393
+ "bytes19[]": "bytes19[]";
394
+ "bytes20[]": "bytes20[]";
395
+ "bytes21[]": "bytes21[]";
396
+ "bytes22[]": "bytes22[]";
397
+ "bytes23[]": "bytes23[]";
398
+ "bytes24[]": "bytes24[]";
399
+ "bytes25[]": "bytes25[]";
400
+ "bytes26[]": "bytes26[]";
401
+ "bytes27[]": "bytes27[]";
402
+ "bytes28[]": "bytes28[]";
403
+ "bytes29[]": "bytes29[]";
404
+ "bytes30[]": "bytes30[]";
405
+ "bytes31[]": "bytes31[]";
406
+ "bytes32[]": "bytes32[]";
407
+ "bool[]": "bool[]";
408
+ "address[]": "address[]";
409
+ bytes: "bytes";
410
+ readonly ResourceId: "bytes32";
411
+ readonly FieldLayout: "bytes32";
412
+ readonly Schema: "bytes32";
285
413
  };
286
- };
414
+ }>;
287
415
  };
288
416
  };
289
417
  };
@@ -1,2 +1,2 @@
1
- import{K as e}from"./chunk-ACZGBP2R.js";var o=e({codegen:{storeImportPath:"../../"},namespace:"store",userTypes:{ResourceId:{filePath:"./src/ResourceId.sol",type:"bytes32"},FieldLayout:{filePath:"./src/FieldLayout.sol",type:"bytes32"},Schema:{filePath:"./src/Schema.sol",type:"bytes32"}},tables:{StoreHooks:{schema:{tableId:"ResourceId",hooks:"bytes21[]"},key:["tableId"]},Tables:{schema:{tableId:"ResourceId",fieldLayout:"FieldLayout",keySchema:"Schema",valueSchema:"Schema",abiEncodedKeyNames:"bytes",abiEncodedFieldNames:"bytes"},key:["tableId"]},ResourceIds:{schema:{resourceId:"ResourceId",exists:"bool"},key:["resourceId"]},Hooks:{schema:{resourceId:"ResourceId",hooks:"bytes21[]"},key:["resourceId"],codegen:{tableIdArgument:!0}}}});export{o as default};
1
+ import{Q as e}from"./chunk-3PAPLPW2.js";var o=e({codegen:{storeImportPath:"./src"},namespace:"store",userTypes:{ResourceId:{filePath:"./src/ResourceId.sol",type:"bytes32"},FieldLayout:{filePath:"./src/FieldLayout.sol",type:"bytes32"},Schema:{filePath:"./src/Schema.sol",type:"bytes32"}},tables:{StoreHooks:{schema:{tableId:"ResourceId",hooks:"bytes21[]"},key:["tableId"]},Tables:{schema:{tableId:"ResourceId",fieldLayout:"FieldLayout",keySchema:"Schema",valueSchema:"Schema",abiEncodedKeyNames:"bytes",abiEncodedFieldNames:"bytes"},key:["tableId"]},ResourceIds:{schema:{resourceId:"ResourceId",exists:"bool"},key:["resourceId"]},Hooks:{schema:{resourceId:"ResourceId",hooks:"bytes21[]"},key:["resourceId"],codegen:{tableIdArgument:!0}}}});export{o as default};
2
2
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineStore } from \"./ts/config/v2/store\";\n\nexport default defineStore({\n codegen: {\n storeImportPath: \"../../\",\n },\n namespace: \"store\",\n userTypes: {\n ResourceId: { filePath: \"./src/ResourceId.sol\", type: \"bytes32\" },\n FieldLayout: { filePath: \"./src/FieldLayout.sol\", type: \"bytes32\" },\n Schema: { filePath: \"./src/Schema.sol\", type: \"bytes32\" },\n },\n tables: {\n StoreHooks: {\n schema: {\n tableId: \"ResourceId\",\n hooks: \"bytes21[]\",\n },\n key: [\"tableId\"],\n },\n Tables: {\n schema: {\n tableId: \"ResourceId\",\n fieldLayout: \"FieldLayout\",\n keySchema: \"Schema\",\n valueSchema: \"Schema\",\n abiEncodedKeyNames: \"bytes\",\n abiEncodedFieldNames: \"bytes\",\n },\n key: [\"tableId\"],\n },\n ResourceIds: {\n schema: {\n resourceId: \"ResourceId\",\n exists: \"bool\",\n },\n key: [\"resourceId\"],\n },\n // The Hooks table is a generic table used by the `filterFromList` util in `Hook.sol`\n Hooks: {\n schema: {\n resourceId: \"ResourceId\",\n hooks: \"bytes21[]\",\n },\n key: [\"resourceId\"],\n codegen: {\n tableIdArgument: true,\n },\n },\n },\n});\n"],"mappings":"wCAEA,IAAOA,EAAQC,EAAY,CACzB,QAAS,CACP,gBAAiB,QACnB,EACA,UAAW,QACX,UAAW,CACT,WAAY,CAAE,SAAU,uBAAwB,KAAM,SAAU,EAChE,YAAa,CAAE,SAAU,wBAAyB,KAAM,SAAU,EAClE,OAAQ,CAAE,SAAU,mBAAoB,KAAM,SAAU,CAC1D,EACA,OAAQ,CACN,WAAY,CACV,OAAQ,CACN,QAAS,aACT,MAAO,WACT,EACA,IAAK,CAAC,SAAS,CACjB,EACA,OAAQ,CACN,OAAQ,CACN,QAAS,aACT,YAAa,cACb,UAAW,SACX,YAAa,SACb,mBAAoB,QACpB,qBAAsB,OACxB,EACA,IAAK,CAAC,SAAS,CACjB,EACA,YAAa,CACX,OAAQ,CACN,WAAY,aACZ,OAAQ,MACV,EACA,IAAK,CAAC,YAAY,CACpB,EAEA,MAAO,CACL,OAAQ,CACN,WAAY,aACZ,MAAO,WACT,EACA,IAAK,CAAC,YAAY,EAClB,QAAS,CACP,gBAAiB,EACnB,CACF,CACF,CACF,CAAC","names":["mud_config_default","defineStore"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineStore } from \"./ts/config/v2/store\";\n\nexport default defineStore({\n codegen: {\n storeImportPath: \"./src\",\n },\n namespace: \"store\",\n userTypes: {\n ResourceId: { filePath: \"./src/ResourceId.sol\", type: \"bytes32\" },\n FieldLayout: { filePath: \"./src/FieldLayout.sol\", type: \"bytes32\" },\n Schema: { filePath: \"./src/Schema.sol\", type: \"bytes32\" },\n },\n tables: {\n StoreHooks: {\n schema: {\n tableId: \"ResourceId\",\n hooks: \"bytes21[]\",\n },\n key: [\"tableId\"],\n },\n Tables: {\n schema: {\n tableId: \"ResourceId\",\n fieldLayout: \"FieldLayout\",\n keySchema: \"Schema\",\n valueSchema: \"Schema\",\n abiEncodedKeyNames: \"bytes\",\n abiEncodedFieldNames: \"bytes\",\n },\n key: [\"tableId\"],\n },\n ResourceIds: {\n schema: {\n resourceId: \"ResourceId\",\n exists: \"bool\",\n },\n key: [\"resourceId\"],\n },\n // The Hooks table is a generic table used by the `filterFromList` util in `Hook.sol`\n Hooks: {\n schema: {\n resourceId: \"ResourceId\",\n hooks: \"bytes21[]\",\n },\n key: [\"resourceId\"],\n codegen: {\n tableIdArgument: true,\n },\n },\n },\n});\n"],"mappings":"wCAEA,IAAOA,EAAQC,EAAY,CACzB,QAAS,CACP,gBAAiB,OACnB,EACA,UAAW,QACX,UAAW,CACT,WAAY,CAAE,SAAU,uBAAwB,KAAM,SAAU,EAChE,YAAa,CAAE,SAAU,wBAAyB,KAAM,SAAU,EAClE,OAAQ,CAAE,SAAU,mBAAoB,KAAM,SAAU,CAC1D,EACA,OAAQ,CACN,WAAY,CACV,OAAQ,CACN,QAAS,aACT,MAAO,WACT,EACA,IAAK,CAAC,SAAS,CACjB,EACA,OAAQ,CACN,OAAQ,CACN,QAAS,aACT,YAAa,cACb,UAAW,SACX,YAAa,SACb,mBAAoB,QACpB,qBAAsB,OACxB,EACA,IAAK,CAAC,SAAS,CACjB,EACA,YAAa,CACX,OAAQ,CACN,WAAY,aACZ,OAAQ,MACV,EACA,IAAK,CAAC,YAAY,CACpB,EAEA,MAAO,CACL,OAAQ,CACN,WAAY,aACZ,MAAO,WACT,EACA,IAAK,CAAC,YAAY,EAClB,QAAS,CACP,gBAAiB,EACnB,CACF,CACF,CACF,CAAC","names":["mud_config_default","defineStore"]}