@latticexyz/world-modules 3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7 → 3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a

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 (2) hide show
  1. package/dist/mud.config.d.ts +396 -309
  2. package/package.json +9 -9
@@ -1,7 +1,101 @@
1
+ import { show } from '@arktype/util';
1
2
  import * as _latticexyz_store_config_v2 from '@latticexyz/store/config/v2';
3
+ import { Scope, AbiTypeScope, mergeIfUndefined, resolveNamespace as resolveNamespace$1, NamespaceInput as NamespaceInput$1 } from '@latticexyz/store/config/v2';
4
+ import { Hex } from 'viem';
5
+
6
+ type SystemInput = {
7
+ /**
8
+ * Human-readable system label. Used as config keys, interface names, and filenames.
9
+ * Labels are not length constrained like resource names, but special characters should be avoided to be compatible with the filesystem, Solidity compiler, etc.
10
+ */
11
+ readonly label: string;
12
+ /**
13
+ * System namespace used in systems's resource ID and determines access control.
14
+ * Defaults to the nearest namespace in the config or root namespace if not set.
15
+ */
16
+ readonly namespace?: string;
17
+ /**
18
+ * System name used in systems's resource ID.
19
+ * Defaults to the first 16 characters of `label` if not set.
20
+ */
21
+ readonly name?: string;
22
+ /**
23
+ * Register function selectors for the system in the World.
24
+ * Defaults to true.
25
+ * Note:
26
+ * - For root systems all World function selectors will correspond to the system's function selectors.
27
+ * - For non-root systems, the World function selectors will be <namespace>__<function>.
28
+ */
29
+ readonly registerFunctionSelectors?: boolean;
30
+ /** If openAccess is true, any address can call the system */
31
+ readonly openAccess?: boolean;
32
+ /** An array of addresses or system names that can access the system */
33
+ readonly accessList?: readonly string[];
34
+ };
35
+ type SystemsInput = {
36
+ readonly [label: string]: Omit<SystemInput, "label" | "namespace">;
37
+ };
38
+ type NamespaceInput = NamespaceInput$1 & {
39
+ readonly systems?: SystemsInput;
40
+ };
41
+ type NamespacesInput = {
42
+ readonly [label: string]: Omit<NamespaceInput, "label">;
43
+ };
44
+
45
+ declare const SYSTEM_DEFAULTS: {
46
+ readonly namespace: "";
47
+ readonly registerFunctionSelectors: true;
48
+ readonly openAccess: true;
49
+ readonly accessList: readonly [];
50
+ };
51
+ type SYSTEM_DEFAULTS = typeof SYSTEM_DEFAULTS;
52
+ type resolveSystem<input> = input extends SystemInput ? {
53
+ readonly label: input["label"];
54
+ readonly namespace: undefined extends input["namespace"] ? SYSTEM_DEFAULTS["namespace"] : input["namespace"];
55
+ readonly name: string;
56
+ readonly systemId: Hex;
57
+ readonly registerFunctionSelectors: undefined extends input["registerFunctionSelectors"] ? SYSTEM_DEFAULTS["registerFunctionSelectors"] : input["registerFunctionSelectors"];
58
+ readonly openAccess: undefined extends input["openAccess"] ? SYSTEM_DEFAULTS["openAccess"] : input["openAccess"];
59
+ readonly accessList: undefined extends input["accessList"] ? SYSTEM_DEFAULTS["accessList"] : input["accessList"];
60
+ } : never;
61
+ declare function resolveSystem<input extends SystemInput>(input: input): resolveSystem<input>;
62
+ type resolveSystems<systems extends SystemsInput, namespace extends string> = {
63
+ [label in keyof systems]: resolveSystem<systems[label] & {
64
+ label: label;
65
+ namespace: namespace;
66
+ }>;
67
+ };
68
+ declare function resolveSystems<systems extends SystemsInput, namespace extends string>(systems: systems, namespace: namespace): resolveSystems<systems, namespace>;
69
+ type resolveNamespace<input, scope extends Scope = AbiTypeScope> = input extends NamespaceInput ? resolveNamespace$1<input, scope> & {
70
+ readonly systems: input["systems"] extends SystemsInput ? resolveSystems<input["systems"], resolveNamespace$1<input, scope>["namespace"]> : {};
71
+ } : never;
72
+ declare function resolveNamespace<const input extends NamespaceInput, scope extends Scope = AbiTypeScope>(input: input, scope?: scope): resolveNamespace<input, scope>;
73
+ type resolveNamespaces<namespaces, scope extends Scope = AbiTypeScope> = {
74
+ readonly [label in keyof namespaces]: resolveNamespace<mergeIfUndefined<namespaces[label], {
75
+ label: label;
76
+ }>, scope>;
77
+ };
78
+ declare function resolveNamespaces<input extends NamespacesInput, scope extends Scope = AbiTypeScope>(input: input, scope: scope): show<resolveNamespaces<input, scope>>;
2
79
 
3
80
  declare const _default: {
4
- readonly tables: _latticexyz_store_config_v2.resolveNamespacedTables<{
81
+ readonly userTypes: {
82
+ readonly ResourceId: {
83
+ readonly filePath: "@latticexyz/store/src/ResourceId.sol";
84
+ readonly type: "bytes32";
85
+ };
86
+ };
87
+ readonly codegen: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
88
+ readonly storeImportPath: "@latticexyz/store/src";
89
+ readonly userTypesFilename: "common.sol";
90
+ readonly outputDirectory: "codegen";
91
+ readonly indexFilename: "index.sol";
92
+ }> & _latticexyz_store_config_v2.mergeIfUndefined<{}, {
93
+ readonly worldInterfaceName: "IWorld";
94
+ readonly worldgenDirectory: "world";
95
+ readonly worldImportPath: "@latticexyz/world/src";
96
+ }>;
97
+ readonly namespace: string;
98
+ readonly tables: {
5
99
  readonly KeysWithValue: {
6
100
  readonly label: "KeysWithValue";
7
101
  readonly type: "table";
@@ -598,34 +692,26 @@ declare const _default: {
598
692
  readonly disabled: false;
599
693
  }>;
600
694
  };
601
- }, "">;
602
- readonly namespace: string;
603
- readonly sourceDirectory: "src";
604
- readonly userTypes: {
605
- readonly ResourceId: {
606
- readonly filePath: "@latticexyz/store/src/ResourceId.sol";
607
- readonly type: "bytes32";
608
- };
609
695
  };
696
+ readonly sourceDirectory: "src";
610
697
  readonly enums: {};
698
+ readonly multipleNamespaces: false;
611
699
  readonly enumValues: {};
612
- readonly codegen: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
613
- readonly storeImportPath: "@latticexyz/store/src";
614
- readonly userTypesFilename: "common.sol";
615
- readonly outputDirectory: "codegen";
616
- readonly namespaceDirectories: false;
617
- readonly indexFilename: "index.sol";
618
- }> & {
619
- readonly worldInterfaceName: "IWorld";
620
- readonly worldgenDirectory: "world";
621
- readonly worldImportPath: "@latticexyz/world/src";
622
- };
623
- readonly namespaces: {
700
+ readonly namespaces: resolveNamespaces<{
624
701
  readonly "": {
625
- readonly label: "";
626
- readonly namespace: string;
627
- readonly tables: _latticexyz_store_config_v2.resolveTables<{
628
- readonly KeysWithValue: _latticexyz_store_config_v2.mergeIfUndefined<{
702
+ userTypes: {
703
+ readonly ResourceId: {
704
+ readonly filePath: "@latticexyz/store/src/ResourceId.sol";
705
+ readonly type: "bytes32";
706
+ };
707
+ };
708
+ tables: {
709
+ /************************************************************************
710
+ *
711
+ * KEYS WITH VALUE MODULE
712
+ *
713
+ ************************************************************************/
714
+ readonly KeysWithValue: {
629
715
  readonly schema: {
630
716
  readonly valueHash: "bytes32";
631
717
  readonly keysWithValue: "bytes32[]";
@@ -636,10 +722,13 @@ declare const _default: {
636
722
  readonly tableIdArgument: true;
637
723
  readonly storeArgument: true;
638
724
  };
639
- }, {
640
- readonly namespace: string;
641
- }>;
642
- readonly KeysInTable: _latticexyz_store_config_v2.mergeIfUndefined<{
725
+ };
726
+ /************************************************************************
727
+ *
728
+ * KEYS IN TABLE MODULE
729
+ *
730
+ ************************************************************************/
731
+ readonly KeysInTable: {
643
732
  readonly schema: {
644
733
  readonly sourceTableId: "ResourceId";
645
734
  readonly keys0: "bytes32[]";
@@ -653,10 +742,8 @@ declare const _default: {
653
742
  readonly outputDirectory: "../modules/keysintable/tables";
654
743
  readonly storeArgument: true;
655
744
  };
656
- }, {
657
- readonly namespace: string;
658
- }>;
659
- readonly UsedKeysIndex: _latticexyz_store_config_v2.mergeIfUndefined<{
745
+ };
746
+ readonly UsedKeysIndex: {
660
747
  readonly schema: {
661
748
  readonly sourceTableId: "ResourceId";
662
749
  readonly keysHash: "bytes32";
@@ -669,10 +756,13 @@ declare const _default: {
669
756
  readonly dataStruct: false;
670
757
  readonly storeArgument: true;
671
758
  };
672
- }, {
673
- readonly namespace: string;
674
- }>;
675
- readonly UniqueEntity: _latticexyz_store_config_v2.mergeIfUndefined<{
759
+ };
760
+ /************************************************************************
761
+ *
762
+ * UNIQUE ENTITY MODULE
763
+ *
764
+ ************************************************************************/
765
+ readonly UniqueEntity: {
676
766
  readonly schema: {
677
767
  readonly value: "uint256";
678
768
  };
@@ -682,10 +772,13 @@ declare const _default: {
682
772
  readonly tableIdArgument: true;
683
773
  readonly storeArgument: true;
684
774
  };
685
- }, {
686
- readonly namespace: string;
687
- }>;
688
- readonly CallboundDelegations: _latticexyz_store_config_v2.mergeIfUndefined<{
775
+ };
776
+ /************************************************************************
777
+ *
778
+ * STD DELEGATIONS MODULE
779
+ *
780
+ ************************************************************************/
781
+ readonly CallboundDelegations: {
689
782
  readonly schema: {
690
783
  readonly delegator: "address";
691
784
  readonly delegatee: "address";
@@ -697,10 +790,8 @@ declare const _default: {
697
790
  readonly codegen: {
698
791
  readonly outputDirectory: "../modules/std-delegations/tables";
699
792
  };
700
- }, {
701
- readonly namespace: string;
702
- }>;
703
- readonly SystemboundDelegations: _latticexyz_store_config_v2.mergeIfUndefined<{
793
+ };
794
+ readonly SystemboundDelegations: {
704
795
  readonly schema: {
705
796
  readonly delegator: "address";
706
797
  readonly delegatee: "address";
@@ -711,10 +802,8 @@ declare const _default: {
711
802
  readonly codegen: {
712
803
  readonly outputDirectory: "../modules/std-delegations/tables";
713
804
  };
714
- }, {
715
- readonly namespace: string;
716
- }>;
717
- readonly TimeboundDelegations: _latticexyz_store_config_v2.mergeIfUndefined<{
805
+ };
806
+ readonly TimeboundDelegations: {
718
807
  readonly schema: {
719
808
  readonly delegator: "address";
720
809
  readonly delegatee: "address";
@@ -724,10 +813,13 @@ declare const _default: {
724
813
  readonly codegen: {
725
814
  readonly outputDirectory: "../modules/std-delegations/tables";
726
815
  };
727
- }, {
728
- readonly namespace: string;
729
- }>;
730
- readonly PuppetRegistry: _latticexyz_store_config_v2.mergeIfUndefined<{
816
+ };
817
+ /************************************************************************
818
+ *
819
+ * PUPPET MODULE
820
+ *
821
+ ************************************************************************/
822
+ readonly PuppetRegistry: {
731
823
  readonly schema: {
732
824
  readonly systemId: "ResourceId";
733
825
  readonly puppet: "address";
@@ -737,10 +829,13 @@ declare const _default: {
737
829
  readonly outputDirectory: "../modules/puppet/tables";
738
830
  readonly tableIdArgument: true;
739
831
  };
740
- }, {
741
- readonly namespace: string;
742
- }>;
743
- readonly Balances: _latticexyz_store_config_v2.mergeIfUndefined<{
832
+ };
833
+ /************************************************************************
834
+ *
835
+ * TOKEN TABLES (SHARED BY ERC20, ERC721)
836
+ *
837
+ ************************************************************************/
838
+ readonly Balances: {
744
839
  readonly schema: {
745
840
  readonly account: "address";
746
841
  readonly value: "uint256";
@@ -750,10 +845,13 @@ declare const _default: {
750
845
  readonly outputDirectory: "../modules/tokens/tables";
751
846
  readonly tableIdArgument: true;
752
847
  };
753
- }, {
754
- readonly namespace: string;
755
- }>;
756
- readonly ERC20Metadata: _latticexyz_store_config_v2.mergeIfUndefined<{
848
+ };
849
+ /************************************************************************
850
+ *
851
+ * ERC20 MODULE
852
+ *
853
+ ************************************************************************/
854
+ readonly ERC20Metadata: {
757
855
  readonly schema: {
758
856
  readonly decimals: "uint8";
759
857
  readonly name: "string";
@@ -764,10 +862,8 @@ declare const _default: {
764
862
  readonly outputDirectory: "../modules/erc20-puppet/tables";
765
863
  readonly tableIdArgument: true;
766
864
  };
767
- }, {
768
- readonly namespace: string;
769
- }>;
770
- readonly Allowances: _latticexyz_store_config_v2.mergeIfUndefined<{
865
+ };
866
+ readonly Allowances: {
771
867
  readonly schema: {
772
868
  readonly account: "address";
773
869
  readonly spender: "address";
@@ -778,10 +874,8 @@ declare const _default: {
778
874
  readonly outputDirectory: "../modules/erc20-puppet/tables";
779
875
  readonly tableIdArgument: true;
780
876
  };
781
- }, {
782
- readonly namespace: string;
783
- }>;
784
- readonly TotalSupply: _latticexyz_store_config_v2.mergeIfUndefined<{
877
+ };
878
+ readonly TotalSupply: {
785
879
  readonly schema: {
786
880
  readonly totalSupply: "uint256";
787
881
  };
@@ -790,10 +884,8 @@ declare const _default: {
790
884
  readonly outputDirectory: "../modules/erc20-puppet/tables";
791
885
  readonly tableIdArgument: true;
792
886
  };
793
- }, {
794
- readonly namespace: string;
795
- }>;
796
- readonly ERC20Registry: _latticexyz_store_config_v2.mergeIfUndefined<{
887
+ };
888
+ readonly ERC20Registry: {
797
889
  readonly schema: {
798
890
  readonly namespaceId: "ResourceId";
799
891
  readonly tokenAddress: "address";
@@ -803,10 +895,13 @@ declare const _default: {
803
895
  readonly outputDirectory: "../modules/erc20-puppet/tables";
804
896
  readonly tableIdArgument: true;
805
897
  };
806
- }, {
807
- readonly namespace: string;
808
- }>;
809
- readonly ERC721Metadata: _latticexyz_store_config_v2.mergeIfUndefined<{
898
+ };
899
+ /************************************************************************
900
+ *
901
+ * ERC721 MODULE
902
+ *
903
+ ************************************************************************/
904
+ readonly ERC721Metadata: {
810
905
  readonly schema: {
811
906
  readonly name: "string";
812
907
  readonly symbol: "string";
@@ -817,10 +912,8 @@ declare const _default: {
817
912
  readonly outputDirectory: "../modules/erc721-puppet/tables";
818
913
  readonly tableIdArgument: true;
819
914
  };
820
- }, {
821
- readonly namespace: string;
822
- }>;
823
- readonly TokenURI: _latticexyz_store_config_v2.mergeIfUndefined<{
915
+ };
916
+ readonly TokenURI: {
824
917
  readonly schema: {
825
918
  readonly tokenId: "uint256";
826
919
  readonly tokenURI: "string";
@@ -830,10 +923,8 @@ declare const _default: {
830
923
  readonly outputDirectory: "../modules/erc721-puppet/tables";
831
924
  readonly tableIdArgument: true;
832
925
  };
833
- }, {
834
- readonly namespace: string;
835
- }>;
836
- readonly Owners: _latticexyz_store_config_v2.mergeIfUndefined<{
926
+ };
927
+ readonly Owners: {
837
928
  readonly schema: {
838
929
  readonly tokenId: "uint256";
839
930
  readonly owner: "address";
@@ -843,10 +934,8 @@ declare const _default: {
843
934
  readonly outputDirectory: "../modules/erc721-puppet/tables";
844
935
  readonly tableIdArgument: true;
845
936
  };
846
- }, {
847
- readonly namespace: string;
848
- }>;
849
- readonly TokenApproval: _latticexyz_store_config_v2.mergeIfUndefined<{
937
+ };
938
+ readonly TokenApproval: {
850
939
  readonly schema: {
851
940
  readonly tokenId: "uint256";
852
941
  readonly account: "address";
@@ -856,10 +945,8 @@ declare const _default: {
856
945
  readonly outputDirectory: "../modules/erc721-puppet/tables";
857
946
  readonly tableIdArgument: true;
858
947
  };
859
- }, {
860
- readonly namespace: string;
861
- }>;
862
- readonly OperatorApproval: _latticexyz_store_config_v2.mergeIfUndefined<{
948
+ };
949
+ readonly OperatorApproval: {
863
950
  readonly schema: {
864
951
  readonly owner: "address";
865
952
  readonly operator: "address";
@@ -870,10 +957,8 @@ declare const _default: {
870
957
  readonly outputDirectory: "../modules/erc721-puppet/tables";
871
958
  readonly tableIdArgument: true;
872
959
  };
873
- }, {
874
- readonly namespace: string;
875
- }>;
876
- readonly ERC721Registry: _latticexyz_store_config_v2.mergeIfUndefined<{
960
+ };
961
+ readonly ERC721Registry: {
877
962
  readonly schema: {
878
963
  readonly namespaceId: "ResourceId";
879
964
  readonly tokenAddress: "address";
@@ -883,10 +968,13 @@ declare const _default: {
883
968
  readonly outputDirectory: "../modules/erc721-puppet/tables";
884
969
  readonly tableIdArgument: true;
885
970
  };
886
- }, {
887
- readonly namespace: string;
888
- }>;
889
- readonly CallWithSignatureNonces: _latticexyz_store_config_v2.mergeIfUndefined<{
971
+ };
972
+ /************************************************************************
973
+ *
974
+ * REGISTER DELEGATION WITH SIGNATURE MODULE
975
+ *
976
+ ************************************************************************/
977
+ readonly CallWithSignatureNonces: {
890
978
  readonly schema: {
891
979
  readonly signer: "address";
892
980
  readonly nonce: "uint256";
@@ -895,224 +983,223 @@ declare const _default: {
895
983
  readonly codegen: {
896
984
  readonly outputDirectory: "../modules/callwithsignature/tables";
897
985
  };
898
- }, {
899
- readonly namespace: string;
900
- }>;
901
- }, {
902
- types: {
903
- string: "string";
904
- bytes32: "bytes32";
905
- uint8: "uint8";
906
- uint16: "uint16";
907
- uint24: "uint24";
908
- uint32: "uint32";
909
- uint40: "uint40";
910
- uint48: "uint48";
911
- uint56: "uint56";
912
- uint64: "uint64";
913
- uint72: "uint72";
914
- uint80: "uint80";
915
- uint88: "uint88";
916
- uint96: "uint96";
917
- uint104: "uint104";
918
- uint112: "uint112";
919
- uint120: "uint120";
920
- uint128: "uint128";
921
- uint136: "uint136";
922
- uint144: "uint144";
923
- uint152: "uint152";
924
- uint160: "uint160";
925
- uint168: "uint168";
926
- uint176: "uint176";
927
- uint184: "uint184";
928
- uint192: "uint192";
929
- uint200: "uint200";
930
- uint208: "uint208";
931
- uint216: "uint216";
932
- uint224: "uint224";
933
- uint232: "uint232";
934
- uint240: "uint240";
935
- uint248: "uint248";
936
- uint256: "uint256";
937
- int8: "int8";
938
- int16: "int16";
939
- int24: "int24";
940
- int32: "int32";
941
- int40: "int40";
942
- int48: "int48";
943
- int56: "int56";
944
- int64: "int64";
945
- int72: "int72";
946
- int80: "int80";
947
- int88: "int88";
948
- int96: "int96";
949
- int104: "int104";
950
- int112: "int112";
951
- int120: "int120";
952
- int128: "int128";
953
- int136: "int136";
954
- int144: "int144";
955
- int152: "int152";
956
- int160: "int160";
957
- int168: "int168";
958
- int176: "int176";
959
- int184: "int184";
960
- int192: "int192";
961
- int200: "int200";
962
- int208: "int208";
963
- int216: "int216";
964
- int224: "int224";
965
- int232: "int232";
966
- int240: "int240";
967
- int248: "int248";
968
- int256: "int256";
969
- bytes1: "bytes1";
970
- bytes2: "bytes2";
971
- bytes3: "bytes3";
972
- bytes4: "bytes4";
973
- bytes5: "bytes5";
974
- bytes6: "bytes6";
975
- bytes7: "bytes7";
976
- bytes8: "bytes8";
977
- bytes9: "bytes9";
978
- bytes10: "bytes10";
979
- bytes11: "bytes11";
980
- bytes12: "bytes12";
981
- bytes13: "bytes13";
982
- bytes14: "bytes14";
983
- bytes15: "bytes15";
984
- bytes16: "bytes16";
985
- bytes17: "bytes17";
986
- bytes18: "bytes18";
987
- bytes19: "bytes19";
988
- bytes20: "bytes20";
989
- bytes21: "bytes21";
990
- bytes22: "bytes22";
991
- bytes23: "bytes23";
992
- bytes24: "bytes24";
993
- bytes25: "bytes25";
994
- bytes26: "bytes26";
995
- bytes27: "bytes27";
996
- bytes28: "bytes28";
997
- bytes29: "bytes29";
998
- bytes30: "bytes30";
999
- bytes31: "bytes31";
1000
- bool: "bool";
1001
- address: "address";
1002
- "uint8[]": "uint8[]";
1003
- "uint16[]": "uint16[]";
1004
- "uint24[]": "uint24[]";
1005
- "uint32[]": "uint32[]";
1006
- "uint40[]": "uint40[]";
1007
- "uint48[]": "uint48[]";
1008
- "uint56[]": "uint56[]";
1009
- "uint64[]": "uint64[]";
1010
- "uint72[]": "uint72[]";
1011
- "uint80[]": "uint80[]";
1012
- "uint88[]": "uint88[]";
1013
- "uint96[]": "uint96[]";
1014
- "uint104[]": "uint104[]";
1015
- "uint112[]": "uint112[]";
1016
- "uint120[]": "uint120[]";
1017
- "uint128[]": "uint128[]";
1018
- "uint136[]": "uint136[]";
1019
- "uint144[]": "uint144[]";
1020
- "uint152[]": "uint152[]";
1021
- "uint160[]": "uint160[]";
1022
- "uint168[]": "uint168[]";
1023
- "uint176[]": "uint176[]";
1024
- "uint184[]": "uint184[]";
1025
- "uint192[]": "uint192[]";
1026
- "uint200[]": "uint200[]";
1027
- "uint208[]": "uint208[]";
1028
- "uint216[]": "uint216[]";
1029
- "uint224[]": "uint224[]";
1030
- "uint232[]": "uint232[]";
1031
- "uint240[]": "uint240[]";
1032
- "uint248[]": "uint248[]";
1033
- "uint256[]": "uint256[]";
1034
- "int8[]": "int8[]";
1035
- "int16[]": "int16[]";
1036
- "int24[]": "int24[]";
1037
- "int32[]": "int32[]";
1038
- "int40[]": "int40[]";
1039
- "int48[]": "int48[]";
1040
- "int56[]": "int56[]";
1041
- "int64[]": "int64[]";
1042
- "int72[]": "int72[]";
1043
- "int80[]": "int80[]";
1044
- "int88[]": "int88[]";
1045
- "int96[]": "int96[]";
1046
- "int104[]": "int104[]";
1047
- "int112[]": "int112[]";
1048
- "int120[]": "int120[]";
1049
- "int128[]": "int128[]";
1050
- "int136[]": "int136[]";
1051
- "int144[]": "int144[]";
1052
- "int152[]": "int152[]";
1053
- "int160[]": "int160[]";
1054
- "int168[]": "int168[]";
1055
- "int176[]": "int176[]";
1056
- "int184[]": "int184[]";
1057
- "int192[]": "int192[]";
1058
- "int200[]": "int200[]";
1059
- "int208[]": "int208[]";
1060
- "int216[]": "int216[]";
1061
- "int224[]": "int224[]";
1062
- "int232[]": "int232[]";
1063
- "int240[]": "int240[]";
1064
- "int248[]": "int248[]";
1065
- "int256[]": "int256[]";
1066
- "bytes1[]": "bytes1[]";
1067
- "bytes2[]": "bytes2[]";
1068
- "bytes3[]": "bytes3[]";
1069
- "bytes4[]": "bytes4[]";
1070
- "bytes5[]": "bytes5[]";
1071
- "bytes6[]": "bytes6[]";
1072
- "bytes7[]": "bytes7[]";
1073
- "bytes8[]": "bytes8[]";
1074
- "bytes9[]": "bytes9[]";
1075
- "bytes10[]": "bytes10[]";
1076
- "bytes11[]": "bytes11[]";
1077
- "bytes12[]": "bytes12[]";
1078
- "bytes13[]": "bytes13[]";
1079
- "bytes14[]": "bytes14[]";
1080
- "bytes15[]": "bytes15[]";
1081
- "bytes16[]": "bytes16[]";
1082
- "bytes17[]": "bytes17[]";
1083
- "bytes18[]": "bytes18[]";
1084
- "bytes19[]": "bytes19[]";
1085
- "bytes20[]": "bytes20[]";
1086
- "bytes21[]": "bytes21[]";
1087
- "bytes22[]": "bytes22[]";
1088
- "bytes23[]": "bytes23[]";
1089
- "bytes24[]": "bytes24[]";
1090
- "bytes25[]": "bytes25[]";
1091
- "bytes26[]": "bytes26[]";
1092
- "bytes27[]": "bytes27[]";
1093
- "bytes28[]": "bytes28[]";
1094
- "bytes29[]": "bytes29[]";
1095
- "bytes30[]": "bytes30[]";
1096
- "bytes31[]": "bytes31[]";
1097
- "bytes32[]": "bytes32[]";
1098
- "bool[]": "bool[]";
1099
- "address[]": "address[]";
1100
- bytes: "bytes";
1101
- readonly ResourceId: "bytes32";
1102
986
  };
1103
- }>;
987
+ };
988
+ excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System", "Unstable_CallWithSignatureSystem"];
1104
989
  };
1105
- };
990
+ }, {
991
+ types: {
992
+ string: "string";
993
+ bytes32: "bytes32";
994
+ uint8: "uint8";
995
+ uint16: "uint16";
996
+ uint24: "uint24";
997
+ uint32: "uint32";
998
+ uint40: "uint40";
999
+ uint48: "uint48";
1000
+ uint56: "uint56";
1001
+ uint64: "uint64";
1002
+ uint72: "uint72";
1003
+ uint80: "uint80";
1004
+ uint88: "uint88";
1005
+ uint96: "uint96";
1006
+ uint104: "uint104";
1007
+ uint112: "uint112";
1008
+ uint120: "uint120";
1009
+ uint128: "uint128";
1010
+ uint136: "uint136";
1011
+ uint144: "uint144";
1012
+ uint152: "uint152";
1013
+ uint160: "uint160";
1014
+ uint168: "uint168";
1015
+ uint176: "uint176";
1016
+ uint184: "uint184";
1017
+ uint192: "uint192";
1018
+ uint200: "uint200";
1019
+ uint208: "uint208";
1020
+ uint216: "uint216";
1021
+ uint224: "uint224";
1022
+ uint232: "uint232";
1023
+ uint240: "uint240";
1024
+ uint248: "uint248";
1025
+ uint256: "uint256";
1026
+ int8: "int8";
1027
+ int16: "int16";
1028
+ int24: "int24";
1029
+ int32: "int32";
1030
+ int40: "int40";
1031
+ int48: "int48";
1032
+ int56: "int56";
1033
+ int64: "int64";
1034
+ int72: "int72";
1035
+ int80: "int80";
1036
+ int88: "int88";
1037
+ int96: "int96";
1038
+ int104: "int104";
1039
+ int112: "int112";
1040
+ int120: "int120";
1041
+ int128: "int128";
1042
+ int136: "int136";
1043
+ int144: "int144";
1044
+ int152: "int152";
1045
+ int160: "int160";
1046
+ int168: "int168";
1047
+ int176: "int176";
1048
+ int184: "int184";
1049
+ int192: "int192";
1050
+ int200: "int200";
1051
+ int208: "int208";
1052
+ int216: "int216";
1053
+ int224: "int224";
1054
+ int232: "int232";
1055
+ int240: "int240";
1056
+ int248: "int248";
1057
+ int256: "int256";
1058
+ bytes1: "bytes1";
1059
+ bytes2: "bytes2";
1060
+ bytes3: "bytes3";
1061
+ bytes4: "bytes4";
1062
+ bytes5: "bytes5";
1063
+ bytes6: "bytes6";
1064
+ bytes7: "bytes7";
1065
+ bytes8: "bytes8";
1066
+ bytes9: "bytes9";
1067
+ bytes10: "bytes10";
1068
+ bytes11: "bytes11";
1069
+ bytes12: "bytes12";
1070
+ bytes13: "bytes13";
1071
+ bytes14: "bytes14";
1072
+ bytes15: "bytes15";
1073
+ bytes16: "bytes16";
1074
+ bytes17: "bytes17";
1075
+ bytes18: "bytes18";
1076
+ bytes19: "bytes19";
1077
+ bytes20: "bytes20";
1078
+ bytes21: "bytes21";
1079
+ bytes22: "bytes22";
1080
+ bytes23: "bytes23";
1081
+ bytes24: "bytes24";
1082
+ bytes25: "bytes25";
1083
+ bytes26: "bytes26";
1084
+ bytes27: "bytes27";
1085
+ bytes28: "bytes28";
1086
+ bytes29: "bytes29";
1087
+ bytes30: "bytes30";
1088
+ bytes31: "bytes31";
1089
+ bool: "bool";
1090
+ address: "address";
1091
+ "uint8[]": "uint8[]";
1092
+ "uint16[]": "uint16[]";
1093
+ "uint24[]": "uint24[]";
1094
+ "uint32[]": "uint32[]";
1095
+ "uint40[]": "uint40[]";
1096
+ "uint48[]": "uint48[]";
1097
+ "uint56[]": "uint56[]";
1098
+ "uint64[]": "uint64[]";
1099
+ "uint72[]": "uint72[]";
1100
+ "uint80[]": "uint80[]";
1101
+ "uint88[]": "uint88[]";
1102
+ "uint96[]": "uint96[]";
1103
+ "uint104[]": "uint104[]";
1104
+ "uint112[]": "uint112[]";
1105
+ "uint120[]": "uint120[]";
1106
+ "uint128[]": "uint128[]";
1107
+ "uint136[]": "uint136[]";
1108
+ "uint144[]": "uint144[]";
1109
+ "uint152[]": "uint152[]";
1110
+ "uint160[]": "uint160[]";
1111
+ "uint168[]": "uint168[]";
1112
+ "uint176[]": "uint176[]";
1113
+ "uint184[]": "uint184[]";
1114
+ "uint192[]": "uint192[]";
1115
+ "uint200[]": "uint200[]";
1116
+ "uint208[]": "uint208[]";
1117
+ "uint216[]": "uint216[]";
1118
+ "uint224[]": "uint224[]";
1119
+ "uint232[]": "uint232[]";
1120
+ "uint240[]": "uint240[]";
1121
+ "uint248[]": "uint248[]";
1122
+ "uint256[]": "uint256[]";
1123
+ "int8[]": "int8[]";
1124
+ "int16[]": "int16[]";
1125
+ "int24[]": "int24[]";
1126
+ "int32[]": "int32[]";
1127
+ "int40[]": "int40[]";
1128
+ "int48[]": "int48[]";
1129
+ "int56[]": "int56[]";
1130
+ "int64[]": "int64[]";
1131
+ "int72[]": "int72[]";
1132
+ "int80[]": "int80[]";
1133
+ "int88[]": "int88[]";
1134
+ "int96[]": "int96[]";
1135
+ "int104[]": "int104[]";
1136
+ "int112[]": "int112[]";
1137
+ "int120[]": "int120[]";
1138
+ "int128[]": "int128[]";
1139
+ "int136[]": "int136[]";
1140
+ "int144[]": "int144[]";
1141
+ "int152[]": "int152[]";
1142
+ "int160[]": "int160[]";
1143
+ "int168[]": "int168[]";
1144
+ "int176[]": "int176[]";
1145
+ "int184[]": "int184[]";
1146
+ "int192[]": "int192[]";
1147
+ "int200[]": "int200[]";
1148
+ "int208[]": "int208[]";
1149
+ "int216[]": "int216[]";
1150
+ "int224[]": "int224[]";
1151
+ "int232[]": "int232[]";
1152
+ "int240[]": "int240[]";
1153
+ "int248[]": "int248[]";
1154
+ "int256[]": "int256[]";
1155
+ "bytes1[]": "bytes1[]";
1156
+ "bytes2[]": "bytes2[]";
1157
+ "bytes3[]": "bytes3[]";
1158
+ "bytes4[]": "bytes4[]";
1159
+ "bytes5[]": "bytes5[]";
1160
+ "bytes6[]": "bytes6[]";
1161
+ "bytes7[]": "bytes7[]";
1162
+ "bytes8[]": "bytes8[]";
1163
+ "bytes9[]": "bytes9[]";
1164
+ "bytes10[]": "bytes10[]";
1165
+ "bytes11[]": "bytes11[]";
1166
+ "bytes12[]": "bytes12[]";
1167
+ "bytes13[]": "bytes13[]";
1168
+ "bytes14[]": "bytes14[]";
1169
+ "bytes15[]": "bytes15[]";
1170
+ "bytes16[]": "bytes16[]";
1171
+ "bytes17[]": "bytes17[]";
1172
+ "bytes18[]": "bytes18[]";
1173
+ "bytes19[]": "bytes19[]";
1174
+ "bytes20[]": "bytes20[]";
1175
+ "bytes21[]": "bytes21[]";
1176
+ "bytes22[]": "bytes22[]";
1177
+ "bytes23[]": "bytes23[]";
1178
+ "bytes24[]": "bytes24[]";
1179
+ "bytes25[]": "bytes25[]";
1180
+ "bytes26[]": "bytes26[]";
1181
+ "bytes27[]": "bytes27[]";
1182
+ "bytes28[]": "bytes28[]";
1183
+ "bytes29[]": "bytes29[]";
1184
+ "bytes30[]": "bytes30[]";
1185
+ "bytes31[]": "bytes31[]";
1186
+ "bytes32[]": "bytes32[]";
1187
+ "bool[]": "bool[]";
1188
+ "address[]": "address[]";
1189
+ bytes: "bytes";
1190
+ readonly ResourceId: "bytes32";
1191
+ };
1192
+ }>;
1106
1193
  readonly systems: {};
1107
1194
  readonly excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System", "Unstable_CallWithSignatureSystem"];
1108
1195
  readonly modules: readonly [];
1109
- readonly deploy: {
1196
+ readonly deploy: _latticexyz_store_config_v2.mergeIfUndefined<{}, {
1110
1197
  readonly customWorldContract: undefined;
1111
1198
  readonly postDeployScript: "PostDeploy";
1112
1199
  readonly deploysDirectory: "./deploys";
1113
1200
  readonly worldsFile: "./worlds.json";
1114
1201
  readonly upgradeableWorldImplementation: false;
1115
- };
1202
+ }>;
1116
1203
  };
1117
1204
 
1118
1205
  export { _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/world-modules",
3
- "version": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
3
+ "version": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
4
4
  "description": "World modules",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,11 +27,11 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "zod": "^3.22.2",
30
- "@latticexyz/config": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
31
- "@latticexyz/common": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
32
- "@latticexyz/schema-type": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
33
- "@latticexyz/store": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
34
- "@latticexyz/world": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7"
30
+ "@latticexyz/common": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
31
+ "@latticexyz/config": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
32
+ "@latticexyz/schema-type": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
33
+ "@latticexyz/store": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
34
+ "@latticexyz/world": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/ejs": "^3.1.1",
@@ -44,9 +44,9 @@
44
44
  "tsup": "^6.7.0",
45
45
  "tsx": "^3.12.6",
46
46
  "vitest": "0.34.6",
47
- "@latticexyz/abi-ts": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
48
- "@latticexyz/gas-report": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7",
49
- "@latticexyz/cli": "3.0.0-main-c886d62b6208785bba1490161af476108b5b73f7"
47
+ "@latticexyz/abi-ts": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
48
+ "@latticexyz/cli": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a",
49
+ "@latticexyz/gas-report": "3.0.0-main-a10b453c620ea410dd835c0025a019c032107b9a"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"