@latticexyz/world 3.0.0-main-560fd6a0c → 3.0.0-main-69e23a36b

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,11 @@
1
1
  import * as _latticexyz_store_config_v2 from '@latticexyz/store/config/v2';
2
2
 
3
3
  declare const _default: {
4
- readonly sourceDirectory: "src";
5
4
  readonly tables: _latticexyz_store_config_v2.resolveNamespacedTables<{
6
5
  readonly NamespaceOwner: {
7
6
  readonly label: "NamespaceOwner";
8
7
  readonly type: "table";
9
- readonly namespace: "world";
8
+ readonly namespace: string;
10
9
  readonly name: string;
11
10
  readonly tableId: `0x${string}`;
12
11
  readonly schema: {
@@ -26,14 +25,14 @@ declare const _default: {
26
25
  readonly storeArgument: false;
27
26
  readonly dataStruct: boolean;
28
27
  };
29
- readonly deploy: {
28
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
30
29
  readonly disabled: false;
31
- };
30
+ }>;
32
31
  };
33
32
  readonly ResourceAccess: {
34
33
  readonly label: "ResourceAccess";
35
34
  readonly type: "table";
36
- readonly namespace: "world";
35
+ readonly namespace: string;
37
36
  readonly name: string;
38
37
  readonly tableId: `0x${string}`;
39
38
  readonly schema: {
@@ -57,14 +56,14 @@ declare const _default: {
57
56
  readonly storeArgument: false;
58
57
  readonly dataStruct: boolean;
59
58
  };
60
- readonly deploy: {
59
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
61
60
  readonly disabled: false;
62
- };
61
+ }>;
63
62
  };
64
63
  readonly InstalledModules: {
65
64
  readonly label: "InstalledModules";
66
65
  readonly type: "table";
67
- readonly namespace: "world";
66
+ readonly namespace: string;
68
67
  readonly name: string;
69
68
  readonly tableId: `0x${string}`;
70
69
  readonly schema: {
@@ -88,14 +87,14 @@ declare const _default: {
88
87
  readonly storeArgument: false;
89
88
  readonly dataStruct: boolean;
90
89
  };
91
- readonly deploy: {
90
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
92
91
  readonly disabled: false;
93
- };
92
+ }>;
94
93
  };
95
94
  readonly UserDelegationControl: {
96
95
  readonly label: "UserDelegationControl";
97
96
  readonly type: "table";
98
- readonly namespace: "world";
97
+ readonly namespace: string;
99
98
  readonly name: string;
100
99
  readonly tableId: `0x${string}`;
101
100
  readonly schema: {
@@ -119,14 +118,14 @@ declare const _default: {
119
118
  readonly storeArgument: false;
120
119
  readonly dataStruct: boolean;
121
120
  };
122
- readonly deploy: {
121
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
123
122
  readonly disabled: false;
124
- };
123
+ }>;
125
124
  };
126
125
  readonly NamespaceDelegationControl: {
127
126
  readonly label: "NamespaceDelegationControl";
128
127
  readonly type: "table";
129
- readonly namespace: "world";
128
+ readonly namespace: string;
130
129
  readonly name: string;
131
130
  readonly tableId: `0x${string}`;
132
131
  readonly schema: {
@@ -146,14 +145,14 @@ declare const _default: {
146
145
  readonly storeArgument: false;
147
146
  readonly dataStruct: boolean;
148
147
  };
149
- readonly deploy: {
148
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
150
149
  readonly disabled: false;
151
- };
150
+ }>;
152
151
  };
153
152
  readonly Balances: {
154
153
  readonly label: "Balances";
155
154
  readonly type: "table";
156
- readonly namespace: "world";
155
+ readonly namespace: string;
157
156
  readonly name: string;
158
157
  readonly tableId: `0x${string}`;
159
158
  readonly schema: {
@@ -173,14 +172,14 @@ declare const _default: {
173
172
  readonly storeArgument: false;
174
173
  readonly dataStruct: boolean;
175
174
  };
176
- readonly deploy: {
175
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
177
176
  readonly disabled: false;
178
- };
177
+ }>;
179
178
  };
180
179
  readonly Systems: {
181
180
  readonly label: "Systems";
182
181
  readonly type: "table";
183
- readonly namespace: "world";
182
+ readonly namespace: string;
184
183
  readonly name: string;
185
184
  readonly tableId: `0x${string}`;
186
185
  readonly schema: {
@@ -204,14 +203,14 @@ declare const _default: {
204
203
  readonly storeArgument: false;
205
204
  readonly dataStruct: false;
206
205
  };
207
- readonly deploy: {
206
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
208
207
  readonly disabled: false;
209
- };
208
+ }>;
210
209
  };
211
210
  readonly SystemRegistry: {
212
211
  readonly label: "SystemRegistry";
213
212
  readonly type: "table";
214
- readonly namespace: "world";
213
+ readonly namespace: string;
215
214
  readonly name: string;
216
215
  readonly tableId: `0x${string}`;
217
216
  readonly schema: {
@@ -231,14 +230,14 @@ declare const _default: {
231
230
  readonly storeArgument: false;
232
231
  readonly dataStruct: boolean;
233
232
  };
234
- readonly deploy: {
233
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
235
234
  readonly disabled: false;
236
- };
235
+ }>;
237
236
  };
238
237
  readonly SystemHooks: {
239
238
  readonly label: "SystemHooks";
240
239
  readonly type: "table";
241
- readonly namespace: "world";
240
+ readonly namespace: string;
242
241
  readonly name: string;
243
242
  readonly tableId: `0x${string}`;
244
243
  readonly schema: {
@@ -258,14 +257,14 @@ declare const _default: {
258
257
  readonly storeArgument: false;
259
258
  readonly dataStruct: boolean;
260
259
  };
261
- readonly deploy: {
260
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
262
261
  readonly disabled: false;
263
- };
262
+ }>;
264
263
  };
265
264
  readonly FunctionSelectors: {
266
265
  readonly label: "FunctionSelectors";
267
266
  readonly type: "table";
268
- readonly namespace: "world";
267
+ readonly namespace: string;
269
268
  readonly name: string;
270
269
  readonly tableId: `0x${string}`;
271
270
  readonly schema: {
@@ -289,14 +288,14 @@ declare const _default: {
289
288
  readonly storeArgument: false;
290
289
  readonly dataStruct: false;
291
290
  };
292
- readonly deploy: {
291
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
293
292
  readonly disabled: false;
294
- };
293
+ }>;
295
294
  };
296
295
  readonly FunctionSignatures: {
297
296
  readonly label: "FunctionSignatures";
298
297
  readonly type: "offchainTable";
299
- readonly namespace: "world";
298
+ readonly namespace: string;
300
299
  readonly name: string;
301
300
  readonly tableId: `0x${string}`;
302
301
  readonly schema: {
@@ -316,14 +315,14 @@ declare const _default: {
316
315
  readonly storeArgument: false;
317
316
  readonly dataStruct: boolean;
318
317
  };
319
- readonly deploy: {
318
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
320
319
  readonly disabled: false;
321
- };
320
+ }>;
322
321
  };
323
322
  readonly InitModuleAddress: {
324
323
  readonly label: "InitModuleAddress";
325
324
  readonly type: "table";
326
- readonly namespace: "world";
325
+ readonly namespace: string;
327
326
  readonly name: string;
328
327
  readonly tableId: `0x${string}`;
329
328
  readonly schema: {
@@ -339,11 +338,13 @@ declare const _default: {
339
338
  readonly storeArgument: false;
340
339
  readonly dataStruct: boolean;
341
340
  };
342
- readonly deploy: {
341
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
343
342
  readonly disabled: false;
344
- };
343
+ }>;
345
344
  };
346
345
  }, "world">;
346
+ readonly namespace: string;
347
+ readonly sourceDirectory: "src";
347
348
  readonly userTypes: {
348
349
  readonly ResourceId: {
349
350
  readonly filePath: "@latticexyz/store/src/ResourceId.sol";
@@ -352,8 +353,355 @@ declare const _default: {
352
353
  };
353
354
  readonly enums: {};
354
355
  readonly enumValues: {};
355
- readonly namespace: "world";
356
356
  readonly codegen: never;
357
+ readonly namespaces: {
358
+ readonly world: {
359
+ readonly label: "world";
360
+ readonly namespace: string;
361
+ readonly tables: {
362
+ readonly NamespaceOwner: {
363
+ readonly label: "NamespaceOwner";
364
+ readonly type: "table";
365
+ readonly namespace: string;
366
+ readonly name: string;
367
+ readonly tableId: `0x${string}`;
368
+ readonly schema: {
369
+ readonly namespaceId: {
370
+ readonly type: "bytes32";
371
+ readonly internalType: "ResourceId";
372
+ };
373
+ readonly owner: {
374
+ readonly type: "address";
375
+ readonly internalType: "address";
376
+ };
377
+ };
378
+ readonly key: readonly ["namespaceId"];
379
+ readonly codegen: {
380
+ readonly outputDirectory: string;
381
+ readonly tableIdArgument: false;
382
+ readonly storeArgument: false;
383
+ readonly dataStruct: boolean;
384
+ };
385
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
386
+ readonly disabled: false;
387
+ }>;
388
+ };
389
+ readonly ResourceAccess: {
390
+ readonly label: "ResourceAccess";
391
+ readonly type: "table";
392
+ readonly namespace: string;
393
+ readonly name: string;
394
+ readonly tableId: `0x${string}`;
395
+ readonly schema: {
396
+ readonly resourceId: {
397
+ readonly type: "bytes32";
398
+ readonly internalType: "ResourceId";
399
+ };
400
+ readonly caller: {
401
+ readonly type: "address";
402
+ readonly internalType: "address";
403
+ };
404
+ readonly access: {
405
+ readonly type: "bool";
406
+ readonly internalType: "bool";
407
+ };
408
+ };
409
+ readonly key: readonly ["resourceId", "caller"];
410
+ readonly codegen: {
411
+ readonly outputDirectory: string;
412
+ readonly tableIdArgument: false;
413
+ readonly storeArgument: false;
414
+ readonly dataStruct: boolean;
415
+ };
416
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
417
+ readonly disabled: false;
418
+ }>;
419
+ };
420
+ readonly InstalledModules: {
421
+ readonly label: "InstalledModules";
422
+ readonly type: "table";
423
+ readonly namespace: string;
424
+ readonly name: string;
425
+ readonly tableId: `0x${string}`;
426
+ readonly schema: {
427
+ readonly moduleAddress: {
428
+ readonly type: "address";
429
+ readonly internalType: "address";
430
+ };
431
+ readonly argumentsHash: {
432
+ readonly type: "bytes32";
433
+ readonly internalType: "bytes32";
434
+ };
435
+ readonly isInstalled: {
436
+ readonly type: "bool";
437
+ readonly internalType: "bool";
438
+ };
439
+ };
440
+ readonly key: readonly ["moduleAddress", "argumentsHash"];
441
+ readonly codegen: {
442
+ readonly outputDirectory: string;
443
+ readonly tableIdArgument: false;
444
+ readonly storeArgument: false;
445
+ readonly dataStruct: boolean;
446
+ };
447
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
448
+ readonly disabled: false;
449
+ }>;
450
+ };
451
+ readonly UserDelegationControl: {
452
+ readonly label: "UserDelegationControl";
453
+ readonly type: "table";
454
+ readonly namespace: string;
455
+ readonly name: string;
456
+ readonly tableId: `0x${string}`;
457
+ readonly schema: {
458
+ readonly delegator: {
459
+ readonly type: "address";
460
+ readonly internalType: "address";
461
+ };
462
+ readonly delegatee: {
463
+ readonly type: "address";
464
+ readonly internalType: "address";
465
+ };
466
+ readonly delegationControlId: {
467
+ readonly type: "bytes32";
468
+ readonly internalType: "ResourceId";
469
+ };
470
+ };
471
+ readonly key: readonly ["delegator", "delegatee"];
472
+ readonly codegen: {
473
+ readonly outputDirectory: string;
474
+ readonly tableIdArgument: false;
475
+ readonly storeArgument: false;
476
+ readonly dataStruct: boolean;
477
+ };
478
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
479
+ readonly disabled: false;
480
+ }>;
481
+ };
482
+ readonly NamespaceDelegationControl: {
483
+ readonly label: "NamespaceDelegationControl";
484
+ readonly type: "table";
485
+ readonly namespace: string;
486
+ readonly name: string;
487
+ readonly tableId: `0x${string}`;
488
+ readonly schema: {
489
+ readonly namespaceId: {
490
+ readonly type: "bytes32";
491
+ readonly internalType: "ResourceId";
492
+ };
493
+ readonly delegationControlId: {
494
+ readonly type: "bytes32";
495
+ readonly internalType: "ResourceId";
496
+ };
497
+ };
498
+ readonly key: readonly ["namespaceId"];
499
+ readonly codegen: {
500
+ readonly outputDirectory: string;
501
+ readonly tableIdArgument: false;
502
+ readonly storeArgument: false;
503
+ readonly dataStruct: boolean;
504
+ };
505
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
506
+ readonly disabled: false;
507
+ }>;
508
+ };
509
+ readonly Balances: {
510
+ readonly label: "Balances";
511
+ readonly type: "table";
512
+ readonly namespace: string;
513
+ readonly name: string;
514
+ readonly tableId: `0x${string}`;
515
+ readonly schema: {
516
+ readonly namespaceId: {
517
+ readonly type: "bytes32";
518
+ readonly internalType: "ResourceId";
519
+ };
520
+ readonly balance: {
521
+ readonly type: "uint256";
522
+ readonly internalType: "uint256";
523
+ };
524
+ };
525
+ readonly key: readonly ["namespaceId"];
526
+ readonly codegen: {
527
+ readonly outputDirectory: string;
528
+ readonly tableIdArgument: false;
529
+ readonly storeArgument: false;
530
+ readonly dataStruct: boolean;
531
+ };
532
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
533
+ readonly disabled: false;
534
+ }>;
535
+ };
536
+ readonly Systems: {
537
+ readonly label: "Systems";
538
+ readonly type: "table";
539
+ readonly namespace: string;
540
+ readonly name: string;
541
+ readonly tableId: `0x${string}`;
542
+ readonly schema: {
543
+ readonly systemId: {
544
+ readonly type: "bytes32";
545
+ readonly internalType: "ResourceId";
546
+ };
547
+ readonly system: {
548
+ readonly type: "address";
549
+ readonly internalType: "address";
550
+ };
551
+ readonly publicAccess: {
552
+ readonly type: "bool";
553
+ readonly internalType: "bool";
554
+ };
555
+ };
556
+ readonly key: readonly ["systemId"];
557
+ readonly codegen: {
558
+ readonly outputDirectory: string;
559
+ readonly tableIdArgument: false;
560
+ readonly storeArgument: false;
561
+ readonly dataStruct: false;
562
+ };
563
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
564
+ readonly disabled: false;
565
+ }>;
566
+ };
567
+ readonly SystemRegistry: {
568
+ readonly label: "SystemRegistry";
569
+ readonly type: "table";
570
+ readonly namespace: string;
571
+ readonly name: string;
572
+ readonly tableId: `0x${string}`;
573
+ readonly schema: {
574
+ readonly system: {
575
+ readonly type: "address";
576
+ readonly internalType: "address";
577
+ };
578
+ readonly systemId: {
579
+ readonly type: "bytes32";
580
+ readonly internalType: "ResourceId";
581
+ };
582
+ };
583
+ readonly key: readonly ["system"];
584
+ readonly codegen: {
585
+ readonly outputDirectory: string;
586
+ readonly tableIdArgument: false;
587
+ readonly storeArgument: false;
588
+ readonly dataStruct: boolean;
589
+ };
590
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
591
+ readonly disabled: false;
592
+ }>;
593
+ };
594
+ readonly SystemHooks: {
595
+ readonly label: "SystemHooks";
596
+ readonly type: "table";
597
+ readonly namespace: string;
598
+ readonly name: string;
599
+ readonly tableId: `0x${string}`;
600
+ readonly schema: {
601
+ readonly systemId: {
602
+ readonly type: "bytes32";
603
+ readonly internalType: "ResourceId";
604
+ };
605
+ readonly value: {
606
+ readonly type: "bytes21[]";
607
+ readonly internalType: "bytes21[]";
608
+ };
609
+ };
610
+ readonly key: readonly ["systemId"];
611
+ readonly codegen: {
612
+ readonly outputDirectory: string;
613
+ readonly tableIdArgument: false;
614
+ readonly storeArgument: false;
615
+ readonly dataStruct: boolean;
616
+ };
617
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
618
+ readonly disabled: false;
619
+ }>;
620
+ };
621
+ readonly FunctionSelectors: {
622
+ readonly label: "FunctionSelectors";
623
+ readonly type: "table";
624
+ readonly namespace: string;
625
+ readonly name: string;
626
+ readonly tableId: `0x${string}`;
627
+ readonly schema: {
628
+ readonly worldFunctionSelector: {
629
+ readonly type: "bytes4";
630
+ readonly internalType: "bytes4";
631
+ };
632
+ readonly systemId: {
633
+ readonly type: "bytes32";
634
+ readonly internalType: "ResourceId";
635
+ };
636
+ readonly systemFunctionSelector: {
637
+ readonly type: "bytes4";
638
+ readonly internalType: "bytes4";
639
+ };
640
+ };
641
+ readonly key: readonly ["worldFunctionSelector"];
642
+ readonly codegen: {
643
+ readonly outputDirectory: string;
644
+ readonly tableIdArgument: false;
645
+ readonly storeArgument: false;
646
+ readonly dataStruct: false;
647
+ };
648
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
649
+ readonly disabled: false;
650
+ }>;
651
+ };
652
+ readonly FunctionSignatures: {
653
+ readonly label: "FunctionSignatures";
654
+ readonly type: "offchainTable";
655
+ readonly namespace: string;
656
+ readonly name: string;
657
+ readonly tableId: `0x${string}`;
658
+ readonly schema: {
659
+ readonly functionSelector: {
660
+ readonly type: "bytes4";
661
+ readonly internalType: "bytes4";
662
+ };
663
+ readonly functionSignature: {
664
+ readonly type: "string";
665
+ readonly internalType: "string";
666
+ };
667
+ };
668
+ readonly key: readonly ["functionSelector"];
669
+ readonly codegen: {
670
+ readonly outputDirectory: string;
671
+ readonly tableIdArgument: false;
672
+ readonly storeArgument: false;
673
+ readonly dataStruct: boolean;
674
+ };
675
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
676
+ readonly disabled: false;
677
+ }>;
678
+ };
679
+ readonly InitModuleAddress: {
680
+ readonly label: "InitModuleAddress";
681
+ readonly type: "table";
682
+ readonly namespace: string;
683
+ readonly name: string;
684
+ readonly tableId: `0x${string}`;
685
+ readonly schema: {
686
+ readonly value: {
687
+ readonly type: "address";
688
+ readonly internalType: "address";
689
+ };
690
+ };
691
+ readonly key: readonly [];
692
+ readonly codegen: {
693
+ readonly outputDirectory: string;
694
+ readonly tableIdArgument: false;
695
+ readonly storeArgument: false;
696
+ readonly dataStruct: boolean;
697
+ };
698
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
699
+ readonly disabled: false;
700
+ }>;
701
+ };
702
+ };
703
+ };
704
+ };
357
705
  readonly systems: {};
358
706
  readonly excludeSystems: readonly ["StoreRegistrationSystem"];
359
707
  readonly modules: readonly [];
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-236CU3CY.js";import"./chunk-QWCOI4NR.js";import"./chunk-JEHHYC6A.js";export{a as default};
1
+ import{a}from"./chunk-OZBNK257.js";import"./chunk-BH75YTBY.js";import"./chunk-DK3XOTC2.js";export{a as default};
2
2
  //# sourceMappingURL=mud.config.js.map
package/dist/node.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ImportDatum, ContractInterfaceFunction, ContractInterfaceError, RelativeImportDatum } from '@latticexyz/common/codegen';
2
- import { W as World, S as System } from './dynamicResolution-b1bf86e3.js';
3
- import { Hex } from 'viem';
2
+ import { W as World, S as System } from './dynamicResolution-34391fca.js';
4
3
  import '@latticexyz/store';
4
+ import 'viem';
5
5
 
6
6
  interface RenderSystemInterfaceOptions {
7
7
  /** List of symbols to import, and their file paths */
@@ -51,9 +51,6 @@ type GetSystemContractsOptions = {
51
51
  declare function getSystemContracts({ rootDir, config, }: GetSystemContractsOptions): Promise<readonly SolidityContract[]>;
52
52
 
53
53
  type ResolvedSystem = System & {
54
- readonly label: string;
55
- readonly namespace: string;
56
- readonly systemId: Hex;
57
54
  readonly sourcePath: string;
58
55
  };
59
56
  declare function resolveSystems({ rootDir, config, }: {