@latticexyz/world-modules 2.0.0 → 2.0.1-main-4a6b4598
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.d.ts +106 -95
- package/package.json +8 -8
package/dist/mud.config.d.ts
CHANGED
@@ -20,14 +20,14 @@ declare const _default: {
|
|
20
20
|
};
|
21
21
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
22
22
|
codegen: {
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
outputDirectory: string;
|
24
|
+
tableIdArgument: true;
|
25
|
+
storeArgument: true;
|
26
26
|
};
|
27
27
|
namespace: undefined;
|
28
28
|
schema: {
|
29
|
-
|
30
|
-
|
29
|
+
valueHash: "bytes32";
|
30
|
+
keysWithValue: "bytes32[]";
|
31
31
|
};
|
32
32
|
key: ["valueHash"];
|
33
33
|
name: "KeysWithValue";
|
@@ -70,17 +70,17 @@ declare const _default: {
|
|
70
70
|
};
|
71
71
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
72
72
|
codegen: {
|
73
|
-
|
74
|
-
|
73
|
+
outputDirectory: string;
|
74
|
+
storeArgument: true;
|
75
75
|
};
|
76
76
|
namespace: undefined;
|
77
77
|
schema: {
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
sourceTableId: "ResourceId";
|
79
|
+
keys0: "bytes32[]";
|
80
|
+
keys1: "bytes32[]";
|
81
|
+
keys2: "bytes32[]";
|
82
|
+
keys3: "bytes32[]";
|
83
|
+
keys4: "bytes32[]";
|
84
84
|
};
|
85
85
|
key: ["sourceTableId"];
|
86
86
|
name: "KeysInTable";
|
@@ -115,16 +115,16 @@ declare const _default: {
|
|
115
115
|
};
|
116
116
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
117
117
|
codegen: {
|
118
|
-
|
119
|
-
|
120
|
-
|
118
|
+
outputDirectory: string;
|
119
|
+
dataStruct: false;
|
120
|
+
storeArgument: true;
|
121
121
|
};
|
122
122
|
namespace: undefined;
|
123
123
|
schema: {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
124
|
+
sourceTableId: "ResourceId";
|
125
|
+
keysHash: "bytes32";
|
126
|
+
has: "bool";
|
127
|
+
index: "uint40";
|
128
128
|
};
|
129
129
|
key: ["sourceTableId", "keysHash"];
|
130
130
|
name: "UsedKeysIndex";
|
@@ -147,13 +147,13 @@ declare const _default: {
|
|
147
147
|
};
|
148
148
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
149
149
|
codegen: {
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
outputDirectory: string;
|
151
|
+
tableIdArgument: true;
|
152
|
+
storeArgument: true;
|
153
153
|
};
|
154
154
|
namespace: undefined;
|
155
155
|
schema: {
|
156
|
-
|
156
|
+
value: "uint256";
|
157
157
|
};
|
158
158
|
key: [];
|
159
159
|
name: "UniqueEntity";
|
@@ -192,15 +192,15 @@ declare const _default: {
|
|
192
192
|
};
|
193
193
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
194
194
|
codegen: {
|
195
|
-
|
195
|
+
outputDirectory: string;
|
196
196
|
};
|
197
197
|
namespace: undefined;
|
198
198
|
schema: {
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
199
|
+
delegator: "address";
|
200
|
+
delegatee: "address";
|
201
|
+
systemId: "ResourceId";
|
202
|
+
callDataHash: "bytes32";
|
203
|
+
availableCalls: "uint256";
|
204
204
|
};
|
205
205
|
key: ["delegator", "delegatee", "systemId", "callDataHash"];
|
206
206
|
name: "CallboundDelegations";
|
@@ -235,14 +235,14 @@ declare const _default: {
|
|
235
235
|
};
|
236
236
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
237
237
|
codegen: {
|
238
|
-
|
238
|
+
outputDirectory: string;
|
239
239
|
};
|
240
240
|
namespace: undefined;
|
241
241
|
schema: {
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
242
|
+
delegator: "address";
|
243
|
+
delegatee: "address";
|
244
|
+
systemId: "ResourceId";
|
245
|
+
availableCalls: "uint256";
|
246
246
|
};
|
247
247
|
key: ["delegator", "delegatee", "systemId"];
|
248
248
|
name: "SystemboundDelegations";
|
@@ -273,13 +273,13 @@ declare const _default: {
|
|
273
273
|
};
|
274
274
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
275
275
|
codegen: {
|
276
|
-
|
276
|
+
outputDirectory: string;
|
277
277
|
};
|
278
278
|
namespace: undefined;
|
279
279
|
schema: {
|
280
|
-
|
281
|
-
|
282
|
-
|
280
|
+
delegator: "address";
|
281
|
+
delegatee: "address";
|
282
|
+
maxTimestamp: "uint256";
|
283
283
|
};
|
284
284
|
key: ["delegator", "delegatee"];
|
285
285
|
name: "TimeboundDelegations";
|
@@ -306,13 +306,13 @@ declare const _default: {
|
|
306
306
|
};
|
307
307
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
308
308
|
codegen: {
|
309
|
-
|
310
|
-
|
309
|
+
outputDirectory: string;
|
310
|
+
tableIdArgument: true;
|
311
311
|
};
|
312
312
|
namespace: undefined;
|
313
313
|
schema: {
|
314
|
-
|
315
|
-
|
314
|
+
systemId: "ResourceId";
|
315
|
+
puppet: "address";
|
316
316
|
};
|
317
317
|
key: ["systemId"];
|
318
318
|
name: "PuppetRegistry";
|
@@ -339,13 +339,13 @@ declare const _default: {
|
|
339
339
|
};
|
340
340
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
341
341
|
codegen: {
|
342
|
-
|
343
|
-
|
342
|
+
outputDirectory: string;
|
343
|
+
tableIdArgument: true;
|
344
344
|
};
|
345
345
|
namespace: undefined;
|
346
346
|
schema: {
|
347
|
-
|
348
|
-
|
347
|
+
account: "address";
|
348
|
+
value: "uint256";
|
349
349
|
};
|
350
350
|
key: ["account"];
|
351
351
|
name: "Balances";
|
@@ -376,14 +376,14 @@ declare const _default: {
|
|
376
376
|
};
|
377
377
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
378
378
|
codegen: {
|
379
|
-
|
380
|
-
|
379
|
+
outputDirectory: string;
|
380
|
+
tableIdArgument: true;
|
381
381
|
};
|
382
382
|
namespace: undefined;
|
383
383
|
schema: {
|
384
|
-
|
385
|
-
|
386
|
-
|
384
|
+
decimals: "uint8";
|
385
|
+
name: "string";
|
386
|
+
symbol: "string";
|
387
387
|
};
|
388
388
|
key: [];
|
389
389
|
name: "ERC20Metadata";
|
@@ -414,14 +414,14 @@ declare const _default: {
|
|
414
414
|
};
|
415
415
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
416
416
|
codegen: {
|
417
|
-
|
418
|
-
|
417
|
+
outputDirectory: string;
|
418
|
+
tableIdArgument: true;
|
419
419
|
};
|
420
420
|
namespace: undefined;
|
421
421
|
schema: {
|
422
|
-
|
423
|
-
|
424
|
-
|
422
|
+
account: "address";
|
423
|
+
spender: "address";
|
424
|
+
value: "uint256";
|
425
425
|
};
|
426
426
|
key: ["account", "spender"];
|
427
427
|
name: "Allowances";
|
@@ -444,12 +444,12 @@ declare const _default: {
|
|
444
444
|
};
|
445
445
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
446
446
|
codegen: {
|
447
|
-
|
448
|
-
|
447
|
+
outputDirectory: string;
|
448
|
+
tableIdArgument: true;
|
449
449
|
};
|
450
450
|
namespace: undefined;
|
451
451
|
schema: {
|
452
|
-
|
452
|
+
totalSupply: "uint256";
|
453
453
|
};
|
454
454
|
key: [];
|
455
455
|
name: "TotalSupply";
|
@@ -476,13 +476,13 @@ declare const _default: {
|
|
476
476
|
};
|
477
477
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
478
478
|
codegen: {
|
479
|
-
|
480
|
-
|
479
|
+
outputDirectory: string;
|
480
|
+
tableIdArgument: true;
|
481
481
|
};
|
482
482
|
namespace: undefined;
|
483
483
|
schema: {
|
484
|
-
|
485
|
-
|
484
|
+
namespaceId: "ResourceId";
|
485
|
+
tokenAddress: "address";
|
486
486
|
};
|
487
487
|
key: ["namespaceId"];
|
488
488
|
name: "ERC20Registry";
|
@@ -513,14 +513,14 @@ declare const _default: {
|
|
513
513
|
};
|
514
514
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
515
515
|
codegen: {
|
516
|
-
|
517
|
-
|
516
|
+
outputDirectory: string;
|
517
|
+
tableIdArgument: true;
|
518
518
|
};
|
519
519
|
namespace: undefined;
|
520
520
|
schema: {
|
521
|
-
|
522
|
-
|
523
|
-
|
521
|
+
name: "string";
|
522
|
+
symbol: "string";
|
523
|
+
baseURI: "string";
|
524
524
|
};
|
525
525
|
key: [];
|
526
526
|
name: "ERC721Metadata";
|
@@ -547,13 +547,13 @@ declare const _default: {
|
|
547
547
|
};
|
548
548
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
549
549
|
codegen: {
|
550
|
-
|
551
|
-
|
550
|
+
outputDirectory: string;
|
551
|
+
tableIdArgument: true;
|
552
552
|
};
|
553
553
|
namespace: undefined;
|
554
554
|
schema: {
|
555
|
-
|
556
|
-
|
555
|
+
tokenId: "uint256";
|
556
|
+
tokenURI: "string";
|
557
557
|
};
|
558
558
|
key: ["tokenId"];
|
559
559
|
name: "TokenURI";
|
@@ -580,13 +580,13 @@ declare const _default: {
|
|
580
580
|
};
|
581
581
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
582
582
|
codegen: {
|
583
|
-
|
584
|
-
|
583
|
+
outputDirectory: string;
|
584
|
+
tableIdArgument: true;
|
585
585
|
};
|
586
586
|
namespace: undefined;
|
587
587
|
schema: {
|
588
|
-
|
589
|
-
|
588
|
+
tokenId: "uint256";
|
589
|
+
owner: "address";
|
590
590
|
};
|
591
591
|
key: ["tokenId"];
|
592
592
|
name: "Owners";
|
@@ -613,13 +613,13 @@ declare const _default: {
|
|
613
613
|
};
|
614
614
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
615
615
|
codegen: {
|
616
|
-
|
617
|
-
|
616
|
+
outputDirectory: string;
|
617
|
+
tableIdArgument: true;
|
618
618
|
};
|
619
619
|
namespace: undefined;
|
620
620
|
schema: {
|
621
|
-
|
622
|
-
|
621
|
+
tokenId: "uint256";
|
622
|
+
account: "address";
|
623
623
|
};
|
624
624
|
key: ["tokenId"];
|
625
625
|
name: "TokenApproval";
|
@@ -650,14 +650,14 @@ declare const _default: {
|
|
650
650
|
};
|
651
651
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
652
652
|
codegen: {
|
653
|
-
|
654
|
-
|
653
|
+
outputDirectory: string;
|
654
|
+
tableIdArgument: true;
|
655
655
|
};
|
656
656
|
namespace: undefined;
|
657
657
|
schema: {
|
658
|
-
|
659
|
-
|
660
|
-
|
658
|
+
owner: "address";
|
659
|
+
operator: "address";
|
660
|
+
approved: "bool";
|
661
661
|
};
|
662
662
|
key: ["owner", "operator"];
|
663
663
|
name: "OperatorApproval";
|
@@ -684,13 +684,13 @@ declare const _default: {
|
|
684
684
|
};
|
685
685
|
readonly codegen: _latticexyz_store_config_v2.resolveTableCodegen<{
|
686
686
|
codegen: {
|
687
|
-
|
688
|
-
|
687
|
+
outputDirectory: string;
|
688
|
+
tableIdArgument: true;
|
689
689
|
};
|
690
690
|
namespace: undefined;
|
691
691
|
schema: {
|
692
|
-
|
693
|
-
|
692
|
+
namespaceId: "ResourceId";
|
693
|
+
tokenAddress: "address";
|
694
694
|
};
|
695
695
|
key: ["namespaceId"];
|
696
696
|
name: "ERC721Registry";
|
@@ -701,16 +701,27 @@ declare const _default: {
|
|
701
701
|
};
|
702
702
|
};
|
703
703
|
readonly userTypes: {
|
704
|
-
|
705
|
-
|
706
|
-
|
704
|
+
ResourceId: {
|
705
|
+
filePath: string;
|
706
|
+
type: "bytes32";
|
707
707
|
};
|
708
708
|
};
|
709
709
|
readonly enums: {};
|
710
710
|
readonly namespace: "";
|
711
|
-
readonly codegen:
|
711
|
+
readonly codegen: {
|
712
|
+
worldgenDirectory: string;
|
713
|
+
worldInterfaceName: string;
|
714
|
+
readonly storeImportPath: "@latticexyz/store/src/";
|
715
|
+
readonly userTypesFilename: "common.sol";
|
716
|
+
readonly outputDirectory: string;
|
717
|
+
readonly indexFilename: "index.sol";
|
718
|
+
} & {
|
719
|
+
readonly worldInterfaceName: "IWorld";
|
720
|
+
readonly worldgenDirectory: "world";
|
721
|
+
readonly worldImportPath: "@latticexyz/world/src/";
|
722
|
+
};
|
712
723
|
readonly systems: {};
|
713
|
-
readonly excludeSystems: [
|
724
|
+
readonly excludeSystems: string[];
|
714
725
|
readonly modules: readonly [];
|
715
726
|
readonly deploy: {
|
716
727
|
readonly customWorldContract: undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@latticexyz/world-modules",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.1-main-4a6b4598",
|
4
4
|
"description": "World modules",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -15,11 +15,11 @@
|
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
17
|
"zod": "^3.21.4",
|
18
|
-
"@latticexyz/common": "2.0.
|
19
|
-
"@latticexyz/config": "2.0.
|
20
|
-
"@latticexyz/
|
21
|
-
"@latticexyz/
|
22
|
-
"@latticexyz/
|
18
|
+
"@latticexyz/common": "2.0.1-main-4a6b4598",
|
19
|
+
"@latticexyz/config": "2.0.1-main-4a6b4598",
|
20
|
+
"@latticexyz/schema-type": "2.0.1-main-4a6b4598",
|
21
|
+
"@latticexyz/store": "2.0.1-main-4a6b4598",
|
22
|
+
"@latticexyz/world": "2.0.1-main-4a6b4598"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@types/ejs": "^3.1.1",
|
@@ -34,8 +34,8 @@
|
|
34
34
|
"tsup": "^6.7.0",
|
35
35
|
"tsx": "^3.12.6",
|
36
36
|
"vitest": "0.34.6",
|
37
|
-
"@latticexyz/
|
38
|
-
"@latticexyz/
|
37
|
+
"@latticexyz/abi-ts": "2.0.1-main-4a6b4598",
|
38
|
+
"@latticexyz/gas-report": "2.0.1-main-4a6b4598"
|
39
39
|
},
|
40
40
|
"publishConfig": {
|
41
41
|
"access": "public"
|