@latticexyz/world-modules 2.0.0-main-251170e1 → 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 (121) hide show
  1. package/dist/mud.config.js +1 -1
  2. package/dist/mud.config.js.map +1 -1
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Callbacks.sol/Callbacks.json +45 -45
  5. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +350 -350
  6. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  7. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +111 -111
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +96 -96
  11. package/out/IBaseWorld.sol/IBaseWorld.abi.json +0 -13
  12. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +0 -13
  13. package/out/IBaseWorld.sol/IBaseWorld.json +81 -161
  14. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  16. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  17. package/out/ICoreSystem.sol/ICoreSystem.json +15 -15
  18. package/out/IDelegationControl.sol/IDelegationControl.json +100 -100
  19. package/out/IModule.sol/IModule.json +139 -139
  20. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +58 -58
  21. package/out/ISystemHook.sol/ISystemHook.json +141 -141
  22. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +2 -2
  23. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +2 -2
  24. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +37 -37
  25. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +118 -118
  26. package/out/IWorldErrors.sol/IWorldErrors.json +257 -257
  27. package/out/IWorldKernel.sol/IWorldCall.json +251 -251
  28. package/out/IWorldKernel.sol/IWorldKernel.json +251 -251
  29. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +251 -251
  30. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +321 -321
  31. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  32. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  33. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  34. package/out/KeysInTableModule.sol/KeysInTableModule.json +885 -885
  35. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  36. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1604 -1604
  37. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +700 -700
  38. package/out/Mixed.sol/Mixed.json +66 -66
  39. package/out/Module.sol/Module.json +73 -73
  40. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  41. package/out/Schema.sol/SchemaInstance.json +30 -30
  42. package/out/Schema.sol/SchemaLib.json +30 -30
  43. package/out/SchemaType.sol/SchemaType.json +276 -276
  44. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +495 -495
  45. package/out/StoreHook.sol/StoreHook.json +358 -358
  46. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  47. package/out/System.sol/System.json +19 -19
  48. package/out/Tables.sol/Tables.json +73 -73
  49. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +183 -183
  50. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  51. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  52. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +529 -529
  53. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
  54. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4588 -4588
  55. package/out/Vector2.sol/Vector2.json +52 -52
  56. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  57. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  58. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  59. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  60. package/out/constants.sol/constants.json +142 -142
  61. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  62. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  63. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  64. package/out/getUniqueEntity.sol/getUniqueEntity.json +149 -149
  65. package/out/hasKey.sol/hasKey.json +215 -215
  66. package/out/index.sol/index.json +73 -73
  67. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  69. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +326 -253
  70. package/out/interfaces/IERC165.sol/IERC165.json +50 -50
  71. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +149 -149
  72. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +149 -149
  73. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  74. package/out/query.sol/query.json +1892 -1892
  75. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  76. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  77. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  78. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  79. package/out/src/IStore.sol/IStore.json +885 -885
  80. package/out/src/IStore.sol/IStoreData.json +885 -885
  81. package/out/src/IStore.sol/IStoreRead.json +885 -885
  82. package/out/src/IStore.sol/IStoreRegistration.json +885 -885
  83. package/out/src/IStore.sol/IStoreWrite.json +885 -885
  84. package/out/src/Memory.sol/Memory.json +89 -89
  85. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  86. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  87. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  88. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  89. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  90. package/out/src/Schema.sol/SchemaLib.json +787 -787
  91. package/out/src/Slice.sol/SliceInstance.json +429 -429
  92. package/out/src/Slice.sol/SliceLib.json +429 -429
  93. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  94. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  95. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  96. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  97. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  98. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  99. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  100. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  101. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  102. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  103. package/out/tables/Tables.sol/Tables.json +7288 -7288
  104. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  105. package/out/types.sol/types.json +131 -23
  106. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  107. package/package.json +8 -8
  108. package/src/interfaces/IBaseWorld.sol +1 -3
  109. package/src/interfaces/IUniqueEntitySystem.sol +2 -3
  110. package/src/modules/keysintable/KeysInTableModule.sol +1 -1
  111. package/src/modules/keyswithvalue/KeysWithValueHook.sol +1 -1
  112. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  113. package/src/modules/std-delegations/StandardDelegationsModule.sol +1 -1
  114. package/src/modules/uniqueentity/UniqueEntityModule.sol +1 -1
  115. package/src/modules/uniqueentity/getUniqueEntity.sol +2 -2
  116. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  117. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  118. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
  119. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  120. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -16
  121. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -197
@@ -136,7 +136,7 @@
136
136
  3053
137
137
  ],
138
138
  "SchemaType": [
139
- 33955
139
+ 33974
140
140
  ],
141
141
  "WORD_LAST_INDEX": [
142
142
  27917
@@ -166,7 +166,7 @@
166
166
  "file": "@latticexyz/schema-type/src/solidity/SchemaType.sol",
167
167
  "nameLocation": "-1:-1:-1",
168
168
  "scope": 3366,
169
- "sourceUnit": 33997,
169
+ "sourceUnit": 34016,
170
170
  "symbolAliases": [
171
171
  {
172
172
  "foreign": {
@@ -174,7 +174,7 @@
174
174
  "name": "SchemaType",
175
175
  "nodeType": "Identifier",
176
176
  "overloadedDeclarations": [],
177
- "referencedDeclaration": 33955,
177
+ "referencedDeclaration": 33974,
178
178
  "src": "68:10:10",
179
179
  "typeDescriptions": {}
180
180
  },
@@ -407,7 +407,7 @@
407
407
  "referencedDeclaration": 2916,
408
408
  "src": "864:7:10",
409
409
  "typeDescriptions": {
410
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
410
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
411
411
  "typeString": "enum SchemaType[] memory"
412
412
  }
413
413
  },
@@ -460,7 +460,7 @@
460
460
  "referencedDeclaration": 2916,
461
461
  "src": "930:7:10",
462
462
  "typeDescriptions": {
463
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
463
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
464
464
  "typeString": "enum SchemaType[] memory"
465
465
  }
466
466
  },
@@ -682,7 +682,7 @@
682
682
  "referencedDeclaration": 2916,
683
683
  "src": "1229:7:10",
684
684
  "typeDescriptions": {
685
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
685
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
686
686
  "typeString": "enum SchemaType[] memory"
687
687
  }
688
688
  },
@@ -706,7 +706,7 @@
706
706
  "nodeType": "IndexAccess",
707
707
  "src": "1229:10:10",
708
708
  "typeDescriptions": {
709
- "typeIdentifier": "t_enum$_SchemaType_$33955",
709
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
710
710
  "typeString": "enum SchemaType"
711
711
  }
712
712
  },
@@ -718,10 +718,10 @@
718
718
  "memberLocation": "1240:19:10",
719
719
  "memberName": "getStaticByteLength",
720
720
  "nodeType": "MemberAccess",
721
- "referencedDeclaration": 33996,
721
+ "referencedDeclaration": 34015,
722
722
  "src": "1229:30:10",
723
723
  "typeDescriptions": {
724
- "typeIdentifier": "t_function_internal_pure$_t_enum$_SchemaType_$33955_$returns$_t_uint256_$attached_to$_t_enum$_SchemaType_$33955_$",
724
+ "typeIdentifier": "t_function_internal_pure$_t_enum$_SchemaType_$33974_$returns$_t_uint256_$attached_to$_t_enum$_SchemaType_$33974_$",
725
725
  "typeString": "function (enum SchemaType) pure returns (uint256)"
726
726
  }
727
727
  },
@@ -1025,7 +1025,7 @@
1025
1025
  "referencedDeclaration": 2916,
1026
1026
  "src": "2023:7:10",
1027
1027
  "typeDescriptions": {
1028
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
1028
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
1029
1029
  "typeString": "enum SchemaType[] memory"
1030
1030
  }
1031
1031
  },
@@ -1049,7 +1049,7 @@
1049
1049
  "nodeType": "IndexAccess",
1050
1050
  "src": "2023:10:10",
1051
1051
  "typeDescriptions": {
1052
- "typeIdentifier": "t_enum$_SchemaType_$33955",
1052
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
1053
1053
  "typeString": "enum SchemaType"
1054
1054
  }
1055
1055
  }
@@ -1057,7 +1057,7 @@
1057
1057
  "expression": {
1058
1058
  "argumentTypes": [
1059
1059
  {
1060
- "typeIdentifier": "t_enum$_SchemaType_$33955",
1060
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
1061
1061
  "typeString": "enum SchemaType"
1062
1062
  }
1063
1063
  ],
@@ -1321,7 +1321,7 @@
1321
1321
  "referencedDeclaration": 2916,
1322
1322
  "src": "1176:7:10",
1323
1323
  "typeDescriptions": {
1324
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
1324
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
1325
1325
  "typeString": "enum SchemaType[] memory"
1326
1326
  }
1327
1327
  },
@@ -1585,7 +1585,7 @@
1585
1585
  "referencedDeclaration": 2916,
1586
1586
  "src": "2333:7:10",
1587
1587
  "typeDescriptions": {
1588
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
1588
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
1589
1589
  "typeString": "enum SchemaType[] memory"
1590
1590
  }
1591
1591
  },
@@ -2046,7 +2046,7 @@
2046
2046
  "stateVariable": false,
2047
2047
  "storageLocation": "memory",
2048
2048
  "typeDescriptions": {
2049
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_memory_ptr",
2049
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_memory_ptr",
2050
2050
  "typeString": "enum SchemaType[]"
2051
2051
  },
2052
2052
  "typeName": {
@@ -2060,13 +2060,13 @@
2060
2060
  "794:10:10"
2061
2061
  ],
2062
2062
  "nodeType": "IdentifierPath",
2063
- "referencedDeclaration": 33955,
2063
+ "referencedDeclaration": 33974,
2064
2064
  "src": "794:10:10"
2065
2065
  },
2066
- "referencedDeclaration": 33955,
2066
+ "referencedDeclaration": 33974,
2067
2067
  "src": "794:10:10",
2068
2068
  "typeDescriptions": {
2069
- "typeIdentifier": "t_enum$_SchemaType_$33955",
2069
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
2070
2070
  "typeString": "enum SchemaType"
2071
2071
  }
2072
2072
  },
@@ -2074,7 +2074,7 @@
2074
2074
  "nodeType": "ArrayTypeName",
2075
2075
  "src": "794:12:10",
2076
2076
  "typeDescriptions": {
2077
- "typeIdentifier": "t_array$_t_enum$_SchemaType_$33955_$dyn_storage_ptr",
2077
+ "typeIdentifier": "t_array$_t_enum$_SchemaType_$33974_$dyn_storage_ptr",
2078
2078
  "typeString": "enum SchemaType[]"
2079
2079
  }
2080
2080
  },
@@ -2758,10 +2758,10 @@
2758
2758
  "name": "SchemaType",
2759
2759
  "nodeType": "Identifier",
2760
2760
  "overloadedDeclarations": [],
2761
- "referencedDeclaration": 33955,
2761
+ "referencedDeclaration": 33974,
2762
2762
  "src": "3331:10:10",
2763
2763
  "typeDescriptions": {
2764
- "typeIdentifier": "t_type$_t_enum$_SchemaType_$33955_$",
2764
+ "typeIdentifier": "t_type$_t_enum$_SchemaType_$33974_$",
2765
2765
  "typeString": "type(enum SchemaType)"
2766
2766
  }
2767
2767
  },
@@ -2777,7 +2777,7 @@
2777
2777
  "src": "3331:82:10",
2778
2778
  "tryCall": false,
2779
2779
  "typeDescriptions": {
2780
- "typeIdentifier": "t_enum$_SchemaType_$33955",
2780
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
2781
2781
  "typeString": "enum SchemaType"
2782
2782
  }
2783
2783
  },
@@ -2888,7 +2888,7 @@
2888
2888
  "stateVariable": false,
2889
2889
  "storageLocation": "default",
2890
2890
  "typeDescriptions": {
2891
- "typeIdentifier": "t_enum$_SchemaType_$33955",
2891
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
2892
2892
  "typeString": "enum SchemaType"
2893
2893
  },
2894
2894
  "typeName": {
@@ -2901,13 +2901,13 @@
2901
2901
  "3288:10:10"
2902
2902
  ],
2903
2903
  "nodeType": "IdentifierPath",
2904
- "referencedDeclaration": 33955,
2904
+ "referencedDeclaration": 33974,
2905
2905
  "src": "3288:10:10"
2906
2906
  },
2907
- "referencedDeclaration": 33955,
2907
+ "referencedDeclaration": 33974,
2908
2908
  "src": "3288:10:10",
2909
2909
  "typeDescriptions": {
2910
- "typeIdentifier": "t_enum$_SchemaType_$33955",
2910
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
2911
2911
  "typeString": "enum SchemaType"
2912
2912
  }
2913
2913
  },
@@ -5076,7 +5076,7 @@
5076
5076
  "referencedDeclaration": 3111,
5077
5077
  "src": "5274:14:10",
5078
5078
  "typeDescriptions": {
5079
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Schema_$2900_$_t_uint256_$returns$_t_enum$_SchemaType_$33955_$attached_to$_t_userDefinedValueType$_Schema_$2900_$",
5079
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Schema_$2900_$_t_uint256_$returns$_t_enum$_SchemaType_$33974_$attached_to$_t_userDefinedValueType$_Schema_$2900_$",
5080
5080
  "typeString": "function (Schema,uint256) pure returns (enum SchemaType)"
5081
5081
  }
5082
5082
  },
@@ -5092,7 +5092,7 @@
5092
5092
  "src": "5274:17:10",
5093
5093
  "tryCall": false,
5094
5094
  "typeDescriptions": {
5095
- "typeIdentifier": "t_enum$_SchemaType_$33955",
5095
+ "typeIdentifier": "t_enum$_SchemaType_$33974",
5096
5096
  "typeString": "enum SchemaType"
5097
5097
  }
5098
5098
  },
@@ -5104,10 +5104,10 @@
5104
5104
  "memberLocation": "5292:19:10",
5105
5105
  "memberName": "getStaticByteLength",
5106
5106
  "nodeType": "MemberAccess",
5107
- "referencedDeclaration": 33996,
5107
+ "referencedDeclaration": 34015,
5108
5108
  "src": "5274:37:10",
5109
5109
  "typeDescriptions": {
5110
- "typeIdentifier": "t_function_internal_pure$_t_enum$_SchemaType_$33955_$returns$_t_uint256_$attached_to$_t_enum$_SchemaType_$33955_$",
5110
+ "typeIdentifier": "t_function_internal_pure$_t_enum$_SchemaType_$33974_$returns$_t_uint256_$attached_to$_t_enum$_SchemaType_$33974_$",
5111
5111
  "typeString": "function (enum SchemaType) pure returns (uint256)"
5112
5112
  }
5113
5113
  },