@latticexyz/world-modules 2.0.0-main-c07fa021 → 2.0.0-main-5741d53d

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 (104) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/Callbacks.sol/Callbacks.json +45 -45
  3. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +203 -203
  4. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  5. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  6. package/out/Hooks.sol/Hooks.json +45 -45
  7. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
  8. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  9. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  10. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  11. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  13. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  14. package/out/IDelegationControl.sol/IDelegationControl.json +60 -60
  15. package/out/IModule.sol/IModule.json +76 -76
  16. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  17. package/out/ISystemHook.sol/ISystemHook.json +82 -82
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  19. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +67 -67
  20. package/out/IWorldErrors.sol/IWorldErrors.json +136 -136
  21. package/out/IWorldKernel.sol/IWorldCall.json +149 -149
  22. package/out/IWorldKernel.sol/IWorldKernel.json +149 -149
  23. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  24. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +175 -175
  25. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  26. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  27. package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
  28. package/out/KeysInTableModule.sol/KeysInTableModule.json +534 -534
  29. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  30. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +996 -996
  31. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +423 -423
  32. package/out/Mixed.sol/Mixed.json +66 -66
  33. package/out/Module.sol/Module.json +73 -73
  34. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  35. package/out/Schema.sol/SchemaInstance.json +30 -30
  36. package/out/Schema.sol/SchemaLib.json +30 -30
  37. package/out/SchemaType.sol/SchemaType.json +276 -276
  38. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +300 -300
  39. package/out/StoreHook.sol/StoreHook.json +358 -358
  40. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  41. package/out/System.sol/System.json +18 -18
  42. package/out/Tables.sol/Tables.json +73 -73
  43. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +107 -107
  44. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  45. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  46. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +324 -324
  47. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +81 -81
  48. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
  49. package/out/Vector2.sol/Vector2.json +52 -52
  50. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  51. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  52. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  53. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  54. package/out/constants.sol/constants.json +85 -85
  55. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  56. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  57. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  58. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  59. package/out/hasKey.sol/hasKey.json +130 -130
  60. package/out/index.sol/index.json +53 -53
  61. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  62. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  63. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +244 -171
  64. package/out/interfaces/IERC165.sol/IERC165.json +27 -27
  65. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +151 -151
  66. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +151 -151
  67. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +151 -151
  68. package/out/query.sol/query.json +1154 -1154
  69. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  70. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  71. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  72. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  73. package/out/src/IStore.sol/IStore.json +886 -886
  74. package/out/src/IStore.sol/IStoreData.json +886 -886
  75. package/out/src/IStore.sol/IStoreRead.json +886 -886
  76. package/out/src/IStore.sol/IStoreRegistration.json +886 -886
  77. package/out/src/IStore.sol/IStoreWrite.json +886 -886
  78. package/out/src/Memory.sol/Memory.json +89 -89
  79. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  80. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  81. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  82. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  83. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  84. package/out/src/Schema.sol/SchemaLib.json +787 -787
  85. package/out/src/Slice.sol/SliceInstance.json +429 -429
  86. package/out/src/Slice.sol/SliceLib.json +429 -429
  87. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  88. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  89. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  90. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  91. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  92. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  93. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  94. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  95. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  96. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  97. package/out/tables/Tables.sol/Tables.json +7288 -7288
  98. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  99. package/out/types.sol/types.json +131 -23
  100. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  101. package/package.json +8 -8
  102. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  103. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  104. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
@@ -606,32 +606,32 @@
606
606
  },
607
607
  "ast": {
608
608
  "absolutePath": "node_modules/@latticexyz/world/src/Module.sol",
609
- "id": 48699,
609
+ "id": 48718,
610
610
  "exportedSymbols": {
611
611
  "ERC165_INTERFACE_ID": [
612
- 70832
612
+ 70851
613
613
  ],
614
614
  "IERC165": [
615
- 70841
615
+ 70860
616
616
  ],
617
617
  "IModule": [
618
- 70924
618
+ 70943
619
619
  ],
620
620
  "MODULE_INTERFACE_ID": [
621
- 70899
621
+ 70918
622
622
  ],
623
623
  "Module": [
624
- 48698
624
+ 48717
625
625
  ],
626
626
  "WorldContextConsumer": [
627
- 48776
627
+ 48795
628
628
  ]
629
629
  },
630
630
  "nodeType": "SourceUnit",
631
631
  "src": "32:594:88",
632
632
  "nodes": [
633
633
  {
634
- "id": 48666,
634
+ "id": 48685,
635
635
  "nodeType": "PragmaDirective",
636
636
  "src": "32:25:88",
637
637
  "nodes": [],
@@ -643,23 +643,23 @@
643
643
  ]
644
644
  },
645
645
  {
646
- "id": 48668,
646
+ "id": 48687,
647
647
  "nodeType": "ImportDirective",
648
648
  "src": "59:58:88",
649
649
  "nodes": [],
650
650
  "absolutePath": "node_modules/@latticexyz/world/src/WorldContext.sol",
651
651
  "file": "./WorldContext.sol",
652
652
  "nameLocation": "-1:-1:-1",
653
- "scope": 48699,
654
- "sourceUnit": 48926,
653
+ "scope": 48718,
654
+ "sourceUnit": 48945,
655
655
  "symbolAliases": [
656
656
  {
657
657
  "foreign": {
658
- "id": 48667,
658
+ "id": 48686,
659
659
  "name": "WorldContextConsumer",
660
660
  "nodeType": "Identifier",
661
661
  "overloadedDeclarations": [],
662
- "referencedDeclaration": 48776,
662
+ "referencedDeclaration": 48795,
663
663
  "src": "68:20:88",
664
664
  "typeDescriptions": {}
665
665
  },
@@ -669,23 +669,23 @@
669
669
  "unitAlias": ""
670
670
  },
671
671
  {
672
- "id": 48671,
672
+ "id": 48690,
673
673
  "nodeType": "ImportDirective",
674
674
  "src": "118:72:88",
675
675
  "nodes": [],
676
676
  "absolutePath": "node_modules/@latticexyz/world/src/interfaces/IModule.sol",
677
677
  "file": "./interfaces/IModule.sol",
678
678
  "nameLocation": "-1:-1:-1",
679
- "scope": 48699,
680
- "sourceUnit": 70925,
679
+ "scope": 48718,
680
+ "sourceUnit": 70944,
681
681
  "symbolAliases": [
682
682
  {
683
683
  "foreign": {
684
- "id": 48669,
684
+ "id": 48688,
685
685
  "name": "IModule",
686
686
  "nodeType": "Identifier",
687
687
  "overloadedDeclarations": [],
688
- "referencedDeclaration": 70924,
688
+ "referencedDeclaration": 70943,
689
689
  "src": "127:7:88",
690
690
  "typeDescriptions": {}
691
691
  },
@@ -693,11 +693,11 @@
693
693
  },
694
694
  {
695
695
  "foreign": {
696
- "id": 48670,
696
+ "id": 48689,
697
697
  "name": "MODULE_INTERFACE_ID",
698
698
  "nodeType": "Identifier",
699
699
  "overloadedDeclarations": [],
700
- "referencedDeclaration": 70899,
700
+ "referencedDeclaration": 70918,
701
701
  "src": "136:19:88",
702
702
  "typeDescriptions": {}
703
703
  },
@@ -707,23 +707,23 @@
707
707
  "unitAlias": ""
708
708
  },
709
709
  {
710
- "id": 48674,
710
+ "id": 48693,
711
711
  "nodeType": "ImportDirective",
712
712
  "src": "191:72:88",
713
713
  "nodes": [],
714
714
  "absolutePath": "node_modules/@latticexyz/world/src/interfaces/IERC165.sol",
715
715
  "file": "./interfaces/IERC165.sol",
716
716
  "nameLocation": "-1:-1:-1",
717
- "scope": 48699,
718
- "sourceUnit": 70842,
717
+ "scope": 48718,
718
+ "sourceUnit": 70861,
719
719
  "symbolAliases": [
720
720
  {
721
721
  "foreign": {
722
- "id": 48672,
722
+ "id": 48691,
723
723
  "name": "IERC165",
724
724
  "nodeType": "Identifier",
725
725
  "overloadedDeclarations": [],
726
- "referencedDeclaration": 70841,
726
+ "referencedDeclaration": 70860,
727
727
  "src": "200:7:88",
728
728
  "typeDescriptions": {}
729
729
  },
@@ -731,11 +731,11 @@
731
731
  },
732
732
  {
733
733
  "foreign": {
734
- "id": 48673,
734
+ "id": 48692,
735
735
  "name": "ERC165_INTERFACE_ID",
736
736
  "nodeType": "Identifier",
737
737
  "overloadedDeclarations": [],
738
- "referencedDeclaration": 70832,
738
+ "referencedDeclaration": 70851,
739
739
  "src": "209:19:88",
740
740
  "typeDescriptions": {}
741
741
  },
@@ -745,17 +745,17 @@
745
745
  "unitAlias": ""
746
746
  },
747
747
  {
748
- "id": 48698,
748
+ "id": 48717,
749
749
  "nodeType": "ContractDefinition",
750
750
  "src": "265:360:88",
751
751
  "nodes": [
752
752
  {
753
- "id": 48697,
753
+ "id": 48716,
754
754
  "nodeType": "FunctionDefinition",
755
755
  "src": "403:220:88",
756
756
  "nodes": [],
757
757
  "body": {
758
- "id": 48696,
758
+ "id": 48715,
759
759
  "nodeType": "Block",
760
760
  "src": "533:90:88",
761
761
  "nodes": [],
@@ -766,7 +766,7 @@
766
766
  "typeIdentifier": "t_bool",
767
767
  "typeString": "bool"
768
768
  },
769
- "id": 48694,
769
+ "id": 48713,
770
770
  "isConstant": false,
771
771
  "isLValue": false,
772
772
  "isPure": false,
@@ -776,17 +776,17 @@
776
776
  "typeIdentifier": "t_bytes4",
777
777
  "typeString": "bytes4"
778
778
  },
779
- "id": 48690,
779
+ "id": 48709,
780
780
  "isConstant": false,
781
781
  "isLValue": false,
782
782
  "isPure": false,
783
783
  "lValueRequested": false,
784
784
  "leftExpression": {
785
- "id": 48688,
785
+ "id": 48707,
786
786
  "name": "interfaceId",
787
787
  "nodeType": "Identifier",
788
788
  "overloadedDeclarations": [],
789
- "referencedDeclaration": 48680,
789
+ "referencedDeclaration": 48699,
790
790
  "src": "546:11:88",
791
791
  "typeDescriptions": {
792
792
  "typeIdentifier": "t_bytes4",
@@ -796,11 +796,11 @@
796
796
  "nodeType": "BinaryOperation",
797
797
  "operator": "==",
798
798
  "rightExpression": {
799
- "id": 48689,
799
+ "id": 48708,
800
800
  "name": "MODULE_INTERFACE_ID",
801
801
  "nodeType": "Identifier",
802
802
  "overloadedDeclarations": [],
803
- "referencedDeclaration": 70899,
803
+ "referencedDeclaration": 70918,
804
804
  "src": "561:19:88",
805
805
  "typeDescriptions": {
806
806
  "typeIdentifier": "t_bytes4",
@@ -820,17 +820,17 @@
820
820
  "typeIdentifier": "t_bytes4",
821
821
  "typeString": "bytes4"
822
822
  },
823
- "id": 48693,
823
+ "id": 48712,
824
824
  "isConstant": false,
825
825
  "isLValue": false,
826
826
  "isPure": false,
827
827
  "lValueRequested": false,
828
828
  "leftExpression": {
829
- "id": 48691,
829
+ "id": 48710,
830
830
  "name": "interfaceId",
831
831
  "nodeType": "Identifier",
832
832
  "overloadedDeclarations": [],
833
- "referencedDeclaration": 48680,
833
+ "referencedDeclaration": 48699,
834
834
  "src": "584:11:88",
835
835
  "typeDescriptions": {
836
836
  "typeIdentifier": "t_bytes4",
@@ -840,11 +840,11 @@
840
840
  "nodeType": "BinaryOperation",
841
841
  "operator": "==",
842
842
  "rightExpression": {
843
- "id": 48692,
843
+ "id": 48711,
844
844
  "name": "ERC165_INTERFACE_ID",
845
845
  "nodeType": "Identifier",
846
846
  "overloadedDeclarations": [],
847
- "referencedDeclaration": 70832,
847
+ "referencedDeclaration": 70851,
848
848
  "src": "599:19:88",
849
849
  "typeDescriptions": {
850
850
  "typeIdentifier": "t_bytes4",
@@ -863,16 +863,16 @@
863
863
  "typeString": "bool"
864
864
  }
865
865
  },
866
- "functionReturnParameters": 48687,
867
- "id": 48695,
866
+ "functionReturnParameters": 48706,
867
+ "id": 48714,
868
868
  "nodeType": "Return",
869
869
  "src": "539:79:88"
870
870
  }
871
871
  ]
872
872
  },
873
873
  "baseFunctions": [
874
- 48775,
875
- 70840
874
+ 48794,
875
+ 70859
876
876
  ],
877
877
  "functionSelector": "01ffc9a7",
878
878
  "implemented": true,
@@ -881,44 +881,44 @@
881
881
  "name": "supportsInterface",
882
882
  "nameLocation": "412:17:88",
883
883
  "overrides": {
884
- "id": 48684,
884
+ "id": 48703,
885
885
  "nodeType": "OverrideSpecifier",
886
886
  "overrides": [
887
887
  {
888
- "id": 48682,
888
+ "id": 48701,
889
889
  "name": "IERC165",
890
890
  "nameLocations": [
891
891
  "487:7:88"
892
892
  ],
893
893
  "nodeType": "IdentifierPath",
894
- "referencedDeclaration": 70841,
894
+ "referencedDeclaration": 70860,
895
895
  "src": "487:7:88"
896
896
  },
897
897
  {
898
- "id": 48683,
898
+ "id": 48702,
899
899
  "name": "WorldContextConsumer",
900
900
  "nameLocations": [
901
901
  "496:20:88"
902
902
  ],
903
903
  "nodeType": "IdentifierPath",
904
- "referencedDeclaration": 48776,
904
+ "referencedDeclaration": 48795,
905
905
  "src": "496:20:88"
906
906
  }
907
907
  ],
908
908
  "src": "478:39:88"
909
909
  },
910
910
  "parameters": {
911
- "id": 48681,
911
+ "id": 48700,
912
912
  "nodeType": "ParameterList",
913
913
  "parameters": [
914
914
  {
915
915
  "constant": false,
916
- "id": 48680,
916
+ "id": 48699,
917
917
  "mutability": "mutable",
918
918
  "name": "interfaceId",
919
919
  "nameLocation": "442:11:88",
920
920
  "nodeType": "VariableDeclaration",
921
- "scope": 48697,
921
+ "scope": 48716,
922
922
  "src": "435:18:88",
923
923
  "stateVariable": false,
924
924
  "storageLocation": "default",
@@ -927,7 +927,7 @@
927
927
  "typeString": "bytes4"
928
928
  },
929
929
  "typeName": {
930
- "id": 48679,
930
+ "id": 48698,
931
931
  "name": "bytes4",
932
932
  "nodeType": "ElementaryTypeName",
933
933
  "src": "435:6:88",
@@ -942,17 +942,17 @@
942
942
  "src": "429:28:88"
943
943
  },
944
944
  "returnParameters": {
945
- "id": 48687,
945
+ "id": 48706,
946
946
  "nodeType": "ParameterList",
947
947
  "parameters": [
948
948
  {
949
949
  "constant": false,
950
- "id": 48686,
950
+ "id": 48705,
951
951
  "mutability": "mutable",
952
952
  "name": "",
953
953
  "nameLocation": "-1:-1:-1",
954
954
  "nodeType": "VariableDeclaration",
955
- "scope": 48697,
955
+ "scope": 48716,
956
956
  "src": "527:4:88",
957
957
  "stateVariable": false,
958
958
  "storageLocation": "default",
@@ -961,7 +961,7 @@
961
961
  "typeString": "bool"
962
962
  },
963
963
  "typeName": {
964
- "id": 48685,
964
+ "id": 48704,
965
965
  "name": "bool",
966
966
  "nodeType": "ElementaryTypeName",
967
967
  "src": "527:4:88",
@@ -975,7 +975,7 @@
975
975
  ],
976
976
  "src": "526:6:88"
977
977
  },
978
- "scope": 48698,
978
+ "scope": 48717,
979
979
  "stateMutability": "pure",
980
980
  "virtual": true,
981
981
  "visibility": "public"
@@ -985,31 +985,31 @@
985
985
  "baseContracts": [
986
986
  {
987
987
  "baseName": {
988
- "id": 48675,
988
+ "id": 48694,
989
989
  "name": "IModule",
990
990
  "nameLocations": [
991
991
  "293:7:88"
992
992
  ],
993
993
  "nodeType": "IdentifierPath",
994
- "referencedDeclaration": 70924,
994
+ "referencedDeclaration": 70943,
995
995
  "src": "293:7:88"
996
996
  },
997
- "id": 48676,
997
+ "id": 48695,
998
998
  "nodeType": "InheritanceSpecifier",
999
999
  "src": "293:7:88"
1000
1000
  },
1001
1001
  {
1002
1002
  "baseName": {
1003
- "id": 48677,
1003
+ "id": 48696,
1004
1004
  "name": "WorldContextConsumer",
1005
1005
  "nameLocations": [
1006
1006
  "302:20:88"
1007
1007
  ],
1008
1008
  "nodeType": "IdentifierPath",
1009
- "referencedDeclaration": 48776,
1009
+ "referencedDeclaration": 48795,
1010
1010
  "src": "302:20:88"
1011
1011
  },
1012
- "id": 48678,
1012
+ "id": 48697,
1013
1013
  "nodeType": "InheritanceSpecifier",
1014
1014
  "src": "302:20:88"
1015
1015
  }
@@ -1019,18 +1019,18 @@
1019
1019
  "contractKind": "contract",
1020
1020
  "fullyImplemented": false,
1021
1021
  "linearizedBaseContracts": [
1022
- 48698,
1023
- 48776,
1024
- 70879,
1025
- 70924,
1026
- 70841
1022
+ 48717,
1023
+ 48795,
1024
+ 70898,
1025
+ 70943,
1026
+ 70860
1027
1027
  ],
1028
1028
  "name": "Module",
1029
1029
  "nameLocation": "283:6:88",
1030
- "scope": 48699,
1030
+ "scope": 48718,
1031
1031
  "usedErrors": [
1032
- 70903,
1033
- 70905
1032
+ 70922,
1033
+ 70924
1034
1034
  ],
1035
1035
  "usedEvents": []
1036
1036
  }