@latticexyz/world-modules 2.0.0-main-e4e7d774 → 2.0.0-main-430e6b29

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 (99) hide show
  1. package/out/AccessControl.sol/AccessControl.json +200 -200
  2. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  3. package/out/Balances.sol/Balances.json +1713 -1713
  4. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +207 -207
  5. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  6. package/out/DelegationControl.sol/DelegationControl.json +89 -89
  7. package/out/FunctionSelectors.sol/FunctionSelectors.json +2335 -2335
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  11. package/out/IBaseWorld.sol/IBaseWorld.json +68 -68
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  13. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  14. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  15. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  16. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  17. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  18. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  19. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  20. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  21. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  22. package/out/KeysInTableHook.sol/KeysInTableHook.json +861 -861
  23. package/out/KeysInTableModule.sol/KeysInTableModule.json +527 -527
  24. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  25. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +989 -989
  26. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +416 -416
  27. package/out/Module.sol/Module.json +75 -75
  28. package/out/NamespaceOwner.sol/NamespaceOwner.json +464 -464
  29. package/out/ResourceAccess.sol/ResourceAccess.json +471 -471
  30. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  31. package/out/Schema.sol/SchemaInstance.json +30 -30
  32. package/out/Schema.sol/SchemaLib.json +30 -30
  33. package/out/SchemaType.sol/SchemaType.json +276 -276
  34. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +293 -293
  35. package/out/StoreHook.sol/StoreHook.json +368 -368
  36. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  37. package/out/System.sol/System.json +19 -19
  38. package/out/SystemHooks.sol/SystemHooks.json +4091 -4091
  39. package/out/SystemSwitch.sol/SystemSwitch.json +356 -356
  40. package/out/Systems.sol/Systems.json +2459 -2459
  41. package/out/Tables.sol/Tables.json +73 -73
  42. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +111 -111
  43. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  44. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  45. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +317 -317
  46. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +85 -85
  47. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2723 -2723
  48. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  49. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  50. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  51. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +101 -101
  52. package/out/WorldResourceId.sol/WorldResourceIdLib.json +101 -101
  53. package/out/constants.sol/constants.json +403 -120
  54. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  55. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  56. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  57. package/out/getUniqueEntity.sol/getUniqueEntity.json +105 -105
  58. package/out/hasKey.sol/hasKey.json +130 -130
  59. package/out/index.sol/index.json +53 -53
  60. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +128 -128
  61. package/out/query.sol/query.json +1154 -1154
  62. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  63. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  64. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  65. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  66. package/out/src/Hook.sol/HookInstance.json +331 -331
  67. package/out/src/Hook.sol/HookLib.json +331 -331
  68. package/out/src/IStore.sol/IStore.json +53 -53
  69. package/out/src/ISystemHook.sol/ISystemHook.json +90 -90
  70. package/out/src/IWorldErrors.sol/IWorldErrors.json +151 -151
  71. package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
  72. package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
  73. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
  74. package/out/src/Memory.sol/Memory.json +91 -91
  75. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  76. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  77. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  78. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  79. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  80. package/out/src/Schema.sol/SchemaLib.json +790 -790
  81. package/out/src/Slice.sol/SliceInstance.json +430 -430
  82. package/out/src/Slice.sol/SliceLib.json +430 -430
  83. package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
  84. package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
  85. package/out/src/StoreSwitch.sol/StoreSwitch.json +2483 -2483
  86. package/out/src/WorldContext.sol/WorldContextConsumer.json +418 -418
  87. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +418 -418
  88. package/out/src/WorldContext.sol/WorldContextProviderLib.json +418 -418
  89. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  90. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  91. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  92. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  93. package/out/systemHookTypes.sol/systemHookTypes.json +25 -25
  94. package/out/tables/ResourceIds.sol/ResourceIds.json +1747 -1747
  95. package/out/tables/Tables.sol/Tables.json +7288 -7288
  96. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  97. package/out/types.sol/types.json +41 -41
  98. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  99. package/package.json +8 -8
@@ -661,32 +661,32 @@
661
661
  },
662
662
  "ast": {
663
663
  "absolutePath": "node_modules/@latticexyz/world/src/Module.sol",
664
- "id": 41937,
664
+ "id": 41955,
665
665
  "exportedSymbols": {
666
666
  "ERC165_INTERFACE_ID": [
667
- 75587
667
+ 75623
668
668
  ],
669
669
  "IERC165": [
670
- 75597
670
+ 75633
671
671
  ],
672
672
  "IModule": [
673
- 75688
673
+ 75724
674
674
  ],
675
675
  "MODULE_INTERFACE_ID": [
676
- 75661
676
+ 75697
677
677
  ],
678
678
  "Module": [
679
- 41936
679
+ 41954
680
680
  ],
681
681
  "WorldContextConsumer": [
682
- 42014
682
+ 42032
683
683
  ]
684
684
  },
685
685
  "nodeType": "SourceUnit",
686
686
  "src": "32:945:98",
687
687
  "nodes": [
688
688
  {
689
- "id": 41902,
689
+ "id": 41920,
690
690
  "nodeType": "PragmaDirective",
691
691
  "src": "32:25:98",
692
692
  "nodes": [],
@@ -698,23 +698,23 @@
698
698
  ]
699
699
  },
700
700
  {
701
- "id": 41904,
701
+ "id": 41922,
702
702
  "nodeType": "ImportDirective",
703
703
  "src": "59:58:98",
704
704
  "nodes": [],
705
705
  "absolutePath": "node_modules/@latticexyz/world/src/WorldContext.sol",
706
706
  "file": "./WorldContext.sol",
707
707
  "nameLocation": "-1:-1:-1",
708
- "scope": 41937,
709
- "sourceUnit": 42209,
708
+ "scope": 41955,
709
+ "sourceUnit": 42227,
710
710
  "symbolAliases": [
711
711
  {
712
712
  "foreign": {
713
- "id": 41903,
713
+ "id": 41921,
714
714
  "name": "WorldContextConsumer",
715
715
  "nodeType": "Identifier",
716
716
  "overloadedDeclarations": [],
717
- "referencedDeclaration": 42014,
717
+ "referencedDeclaration": 42032,
718
718
  "src": "68:20:98",
719
719
  "typeDescriptions": {}
720
720
  },
@@ -724,23 +724,23 @@
724
724
  "unitAlias": ""
725
725
  },
726
726
  {
727
- "id": 41907,
727
+ "id": 41925,
728
728
  "nodeType": "ImportDirective",
729
729
  "src": "118:61:98",
730
730
  "nodes": [],
731
731
  "absolutePath": "node_modules/@latticexyz/world/src/IModule.sol",
732
732
  "file": "./IModule.sol",
733
733
  "nameLocation": "-1:-1:-1",
734
- "scope": 41937,
735
- "sourceUnit": 75689,
734
+ "scope": 41955,
735
+ "sourceUnit": 75725,
736
736
  "symbolAliases": [
737
737
  {
738
738
  "foreign": {
739
- "id": 41905,
739
+ "id": 41923,
740
740
  "name": "IModule",
741
741
  "nodeType": "Identifier",
742
742
  "overloadedDeclarations": [],
743
- "referencedDeclaration": 75688,
743
+ "referencedDeclaration": 75724,
744
744
  "src": "127:7:98",
745
745
  "typeDescriptions": {}
746
746
  },
@@ -748,11 +748,11 @@
748
748
  },
749
749
  {
750
750
  "foreign": {
751
- "id": 41906,
751
+ "id": 41924,
752
752
  "name": "MODULE_INTERFACE_ID",
753
753
  "nodeType": "Identifier",
754
754
  "overloadedDeclarations": [],
755
- "referencedDeclaration": 75661,
755
+ "referencedDeclaration": 75697,
756
756
  "src": "136:19:98",
757
757
  "typeDescriptions": {}
758
758
  },
@@ -762,23 +762,23 @@
762
762
  "unitAlias": ""
763
763
  },
764
764
  {
765
- "id": 41910,
765
+ "id": 41928,
766
766
  "nodeType": "ImportDirective",
767
767
  "src": "180:61:98",
768
768
  "nodes": [],
769
769
  "absolutePath": "node_modules/@latticexyz/world/src/IERC165.sol",
770
770
  "file": "./IERC165.sol",
771
771
  "nameLocation": "-1:-1:-1",
772
- "scope": 41937,
773
- "sourceUnit": 75598,
772
+ "scope": 41955,
773
+ "sourceUnit": 75634,
774
774
  "symbolAliases": [
775
775
  {
776
776
  "foreign": {
777
- "id": 41908,
777
+ "id": 41926,
778
778
  "name": "IERC165",
779
779
  "nodeType": "Identifier",
780
780
  "overloadedDeclarations": [],
781
- "referencedDeclaration": 75597,
781
+ "referencedDeclaration": 75633,
782
782
  "src": "189:7:98",
783
783
  "typeDescriptions": {}
784
784
  },
@@ -786,11 +786,11 @@
786
786
  },
787
787
  {
788
788
  "foreign": {
789
- "id": 41909,
789
+ "id": 41927,
790
790
  "name": "ERC165_INTERFACE_ID",
791
791
  "nodeType": "Identifier",
792
792
  "overloadedDeclarations": [],
793
- "referencedDeclaration": 75587,
793
+ "referencedDeclaration": 75623,
794
794
  "src": "198:19:98",
795
795
  "typeDescriptions": {}
796
796
  },
@@ -800,17 +800,17 @@
800
800
  "unitAlias": ""
801
801
  },
802
802
  {
803
- "id": 41936,
803
+ "id": 41954,
804
804
  "nodeType": "ContractDefinition",
805
805
  "src": "362:614:98",
806
806
  "nodes": [
807
807
  {
808
- "id": 41935,
808
+ "id": 41953,
809
809
  "nodeType": "FunctionDefinition",
810
810
  "src": "754:220:98",
811
811
  "nodes": [],
812
812
  "body": {
813
- "id": 41934,
813
+ "id": 41952,
814
814
  "nodeType": "Block",
815
815
  "src": "884:90:98",
816
816
  "nodes": [],
@@ -821,7 +821,7 @@
821
821
  "typeIdentifier": "t_bool",
822
822
  "typeString": "bool"
823
823
  },
824
- "id": 41932,
824
+ "id": 41950,
825
825
  "isConstant": false,
826
826
  "isLValue": false,
827
827
  "isPure": false,
@@ -831,17 +831,17 @@
831
831
  "typeIdentifier": "t_bytes4",
832
832
  "typeString": "bytes4"
833
833
  },
834
- "id": 41928,
834
+ "id": 41946,
835
835
  "isConstant": false,
836
836
  "isLValue": false,
837
837
  "isPure": false,
838
838
  "lValueRequested": false,
839
839
  "leftExpression": {
840
- "id": 41926,
840
+ "id": 41944,
841
841
  "name": "interfaceId",
842
842
  "nodeType": "Identifier",
843
843
  "overloadedDeclarations": [],
844
- "referencedDeclaration": 41918,
844
+ "referencedDeclaration": 41936,
845
845
  "src": "897:11:98",
846
846
  "typeDescriptions": {
847
847
  "typeIdentifier": "t_bytes4",
@@ -851,11 +851,11 @@
851
851
  "nodeType": "BinaryOperation",
852
852
  "operator": "==",
853
853
  "rightExpression": {
854
- "id": 41927,
854
+ "id": 41945,
855
855
  "name": "MODULE_INTERFACE_ID",
856
856
  "nodeType": "Identifier",
857
857
  "overloadedDeclarations": [],
858
- "referencedDeclaration": 75661,
858
+ "referencedDeclaration": 75697,
859
859
  "src": "912:19:98",
860
860
  "typeDescriptions": {
861
861
  "typeIdentifier": "t_bytes4",
@@ -875,17 +875,17 @@
875
875
  "typeIdentifier": "t_bytes4",
876
876
  "typeString": "bytes4"
877
877
  },
878
- "id": 41931,
878
+ "id": 41949,
879
879
  "isConstant": false,
880
880
  "isLValue": false,
881
881
  "isPure": false,
882
882
  "lValueRequested": false,
883
883
  "leftExpression": {
884
- "id": 41929,
884
+ "id": 41947,
885
885
  "name": "interfaceId",
886
886
  "nodeType": "Identifier",
887
887
  "overloadedDeclarations": [],
888
- "referencedDeclaration": 41918,
888
+ "referencedDeclaration": 41936,
889
889
  "src": "935:11:98",
890
890
  "typeDescriptions": {
891
891
  "typeIdentifier": "t_bytes4",
@@ -895,11 +895,11 @@
895
895
  "nodeType": "BinaryOperation",
896
896
  "operator": "==",
897
897
  "rightExpression": {
898
- "id": 41930,
898
+ "id": 41948,
899
899
  "name": "ERC165_INTERFACE_ID",
900
900
  "nodeType": "Identifier",
901
901
  "overloadedDeclarations": [],
902
- "referencedDeclaration": 75587,
902
+ "referencedDeclaration": 75623,
903
903
  "src": "950:19:98",
904
904
  "typeDescriptions": {
905
905
  "typeIdentifier": "t_bytes4",
@@ -918,19 +918,19 @@
918
918
  "typeString": "bool"
919
919
  }
920
920
  },
921
- "functionReturnParameters": 41925,
922
- "id": 41933,
921
+ "functionReturnParameters": 41943,
922
+ "id": 41951,
923
923
  "nodeType": "Return",
924
924
  "src": "890:79:98"
925
925
  }
926
926
  ]
927
927
  },
928
928
  "baseFunctions": [
929
- 42013,
930
- 75596
929
+ 42031,
930
+ 75632
931
931
  ],
932
932
  "documentation": {
933
- "id": 41916,
933
+ "id": 41934,
934
934
  "nodeType": "StructuredDocumentation",
935
935
  "src": "424:327:98",
936
936
  "text": " @notice Checks if the given interfaceId is supported by this contract.\n @dev Overrides the functionality from IERC165 and WorldContextConsumer to check for supported interfaces.\n @param interfaceId The bytes4 identifier for the interface.\n @return true if the interface is supported, false otherwise."
@@ -942,44 +942,44 @@
942
942
  "name": "supportsInterface",
943
943
  "nameLocation": "763:17:98",
944
944
  "overrides": {
945
- "id": 41922,
945
+ "id": 41940,
946
946
  "nodeType": "OverrideSpecifier",
947
947
  "overrides": [
948
948
  {
949
- "id": 41920,
949
+ "id": 41938,
950
950
  "name": "IERC165",
951
951
  "nameLocations": [
952
952
  "838:7:98"
953
953
  ],
954
954
  "nodeType": "IdentifierPath",
955
- "referencedDeclaration": 75597,
955
+ "referencedDeclaration": 75633,
956
956
  "src": "838:7:98"
957
957
  },
958
958
  {
959
- "id": 41921,
959
+ "id": 41939,
960
960
  "name": "WorldContextConsumer",
961
961
  "nameLocations": [
962
962
  "847:20:98"
963
963
  ],
964
964
  "nodeType": "IdentifierPath",
965
- "referencedDeclaration": 42014,
965
+ "referencedDeclaration": 42032,
966
966
  "src": "847:20:98"
967
967
  }
968
968
  ],
969
969
  "src": "829:39:98"
970
970
  },
971
971
  "parameters": {
972
- "id": 41919,
972
+ "id": 41937,
973
973
  "nodeType": "ParameterList",
974
974
  "parameters": [
975
975
  {
976
976
  "constant": false,
977
- "id": 41918,
977
+ "id": 41936,
978
978
  "mutability": "mutable",
979
979
  "name": "interfaceId",
980
980
  "nameLocation": "793:11:98",
981
981
  "nodeType": "VariableDeclaration",
982
- "scope": 41935,
982
+ "scope": 41953,
983
983
  "src": "786:18:98",
984
984
  "stateVariable": false,
985
985
  "storageLocation": "default",
@@ -988,7 +988,7 @@
988
988
  "typeString": "bytes4"
989
989
  },
990
990
  "typeName": {
991
- "id": 41917,
991
+ "id": 41935,
992
992
  "name": "bytes4",
993
993
  "nodeType": "ElementaryTypeName",
994
994
  "src": "786:6:98",
@@ -1003,17 +1003,17 @@
1003
1003
  "src": "780:28:98"
1004
1004
  },
1005
1005
  "returnParameters": {
1006
- "id": 41925,
1006
+ "id": 41943,
1007
1007
  "nodeType": "ParameterList",
1008
1008
  "parameters": [
1009
1009
  {
1010
1010
  "constant": false,
1011
- "id": 41924,
1011
+ "id": 41942,
1012
1012
  "mutability": "mutable",
1013
1013
  "name": "",
1014
1014
  "nameLocation": "-1:-1:-1",
1015
1015
  "nodeType": "VariableDeclaration",
1016
- "scope": 41935,
1016
+ "scope": 41953,
1017
1017
  "src": "878:4:98",
1018
1018
  "stateVariable": false,
1019
1019
  "storageLocation": "default",
@@ -1022,7 +1022,7 @@
1022
1022
  "typeString": "bool"
1023
1023
  },
1024
1024
  "typeName": {
1025
- "id": 41923,
1025
+ "id": 41941,
1026
1026
  "name": "bool",
1027
1027
  "nodeType": "ElementaryTypeName",
1028
1028
  "src": "878:4:98",
@@ -1036,7 +1036,7 @@
1036
1036
  ],
1037
1037
  "src": "877:6:98"
1038
1038
  },
1039
- "scope": 41936,
1039
+ "scope": 41954,
1040
1040
  "stateMutability": "pure",
1041
1041
  "virtual": true,
1042
1042
  "visibility": "public"
@@ -1046,31 +1046,31 @@
1046
1046
  "baseContracts": [
1047
1047
  {
1048
1048
  "baseName": {
1049
- "id": 41912,
1049
+ "id": 41930,
1050
1050
  "name": "IModule",
1051
1051
  "nameLocations": [
1052
1052
  "390:7:98"
1053
1053
  ],
1054
1054
  "nodeType": "IdentifierPath",
1055
- "referencedDeclaration": 75688,
1055
+ "referencedDeclaration": 75724,
1056
1056
  "src": "390:7:98"
1057
1057
  },
1058
- "id": 41913,
1058
+ "id": 41931,
1059
1059
  "nodeType": "InheritanceSpecifier",
1060
1060
  "src": "390:7:98"
1061
1061
  },
1062
1062
  {
1063
1063
  "baseName": {
1064
- "id": 41914,
1064
+ "id": 41932,
1065
1065
  "name": "WorldContextConsumer",
1066
1066
  "nameLocations": [
1067
1067
  "399:20:98"
1068
1068
  ],
1069
1069
  "nodeType": "IdentifierPath",
1070
- "referencedDeclaration": 42014,
1070
+ "referencedDeclaration": 42032,
1071
1071
  "src": "399:20:98"
1072
1072
  },
1073
- "id": 41915,
1073
+ "id": 41933,
1074
1074
  "nodeType": "InheritanceSpecifier",
1075
1075
  "src": "399:20:98"
1076
1076
  }
@@ -1079,25 +1079,25 @@
1079
1079
  "contractDependencies": [],
1080
1080
  "contractKind": "contract",
1081
1081
  "documentation": {
1082
- "id": 41911,
1082
+ "id": 41929,
1083
1083
  "nodeType": "StructuredDocumentation",
1084
1084
  "src": "243:118:98",
1085
1085
  "text": " @title Module\n @dev Abstract contract that implements the ERC-165 supportsInterface function for IModule."
1086
1086
  },
1087
1087
  "fullyImplemented": false,
1088
1088
  "linearizedBaseContracts": [
1089
- 41936,
1090
- 42014,
1091
- 75640,
1092
- 75688,
1093
- 75597
1089
+ 41954,
1090
+ 42032,
1091
+ 75676,
1092
+ 75724,
1093
+ 75633
1094
1094
  ],
1095
1095
  "name": "Module",
1096
1096
  "nameLocation": "380:6:98",
1097
- "scope": 41937,
1097
+ "scope": 41955,
1098
1098
  "usedErrors": [
1099
- 75667,
1100
- 75669
1099
+ 75703,
1100
+ 75705
1101
1101
  ],
1102
1102
  "usedEvents": []
1103
1103
  }