@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
@@ -118,22 +118,22 @@
118
118
  },
119
119
  "ast": {
120
120
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/IERC165.sol",
121
- "id": 33320,
121
+ "id": 33433,
122
122
  "exportedSymbols": {
123
123
  "ERC165_INTERFACE_ID": [
124
- 33310
124
+ 33423
125
125
  ],
126
126
  "IERC165": [
127
- 33319
127
+ 33432
128
128
  ]
129
129
  },
130
130
  "nodeType": "SourceUnit",
131
- "src": "32:615:41",
131
+ "src": "32:615:43",
132
132
  "nodes": [
133
133
  {
134
- "id": 33305,
134
+ "id": 33418,
135
135
  "nodeType": "PragmaDirective",
136
- "src": "32:25:41",
136
+ "src": "32:25:43",
137
137
  "nodes": [],
138
138
  "literals": [
139
139
  "solidity",
@@ -143,15 +143,15 @@
143
143
  ]
144
144
  },
145
145
  {
146
- "id": 33310,
146
+ "id": 33423,
147
147
  "nodeType": "VariableDeclaration",
148
- "src": "59:72:41",
148
+ "src": "59:72:43",
149
149
  "nodes": [],
150
150
  "constant": true,
151
151
  "mutability": "constant",
152
152
  "name": "ERC165_INTERFACE_ID",
153
- "nameLocation": "75:19:41",
154
- "scope": 33320,
153
+ "nameLocation": "75:19:43",
154
+ "scope": 33433,
155
155
  "stateVariable": false,
156
156
  "storageLocation": "default",
157
157
  "typeDescriptions": {
@@ -159,10 +159,10 @@
159
159
  "typeString": "bytes4"
160
160
  },
161
161
  "typeName": {
162
- "id": 33306,
162
+ "id": 33419,
163
163
  "name": "bytes4",
164
164
  "nodeType": "ElementaryTypeName",
165
- "src": "59:6:41",
165
+ "src": "59:6:43",
166
166
  "typeDescriptions": {
167
167
  "typeIdentifier": "t_bytes4",
168
168
  "typeString": "bytes4"
@@ -171,41 +171,41 @@
171
171
  "value": {
172
172
  "expression": {
173
173
  "expression": {
174
- "id": 33307,
174
+ "id": 33420,
175
175
  "name": "IERC165",
176
176
  "nodeType": "Identifier",
177
177
  "overloadedDeclarations": [],
178
- "referencedDeclaration": 33319,
179
- "src": "97:7:41",
178
+ "referencedDeclaration": 33432,
179
+ "src": "97:7:43",
180
180
  "typeDescriptions": {
181
- "typeIdentifier": "t_type$_t_contract$_IERC165_$33319_$",
181
+ "typeIdentifier": "t_type$_t_contract$_IERC165_$33432_$",
182
182
  "typeString": "type(contract IERC165)"
183
183
  }
184
184
  },
185
- "id": 33308,
185
+ "id": 33421,
186
186
  "isConstant": false,
187
187
  "isLValue": false,
188
188
  "isPure": true,
189
189
  "lValueRequested": false,
190
- "memberLocation": "105:17:41",
190
+ "memberLocation": "105:17:43",
191
191
  "memberName": "supportsInterface",
192
192
  "nodeType": "MemberAccess",
193
- "referencedDeclaration": 33318,
194
- "src": "97:25:41",
193
+ "referencedDeclaration": 33431,
194
+ "src": "97:25:43",
195
195
  "typeDescriptions": {
196
196
  "typeIdentifier": "t_function_declaration_view$_t_bytes4_$returns$_t_bool_$",
197
197
  "typeString": "function IERC165.supportsInterface(bytes4) view returns (bool)"
198
198
  }
199
199
  },
200
- "id": 33309,
200
+ "id": 33422,
201
201
  "isConstant": false,
202
202
  "isLValue": false,
203
203
  "isPure": true,
204
204
  "lValueRequested": false,
205
- "memberLocation": "123:8:41",
205
+ "memberLocation": "123:8:43",
206
206
  "memberName": "selector",
207
207
  "nodeType": "MemberAccess",
208
- "src": "97:34:41",
208
+ "src": "97:34:43",
209
209
  "typeDescriptions": {
210
210
  "typeIdentifier": "t_bytes4",
211
211
  "typeString": "bytes4"
@@ -214,19 +214,19 @@
214
214
  "visibility": "internal"
215
215
  },
216
216
  {
217
- "id": 33319,
217
+ "id": 33432,
218
218
  "nodeType": "ContractDefinition",
219
- "src": "180:466:41",
219
+ "src": "180:466:43",
220
220
  "nodes": [
221
221
  {
222
- "id": 33318,
222
+ "id": 33431,
223
223
  "nodeType": "FunctionDefinition",
224
- "src": "568:76:41",
224
+ "src": "568:76:43",
225
225
  "nodes": [],
226
226
  "documentation": {
227
- "id": 33311,
227
+ "id": 33424,
228
228
  "nodeType": "StructuredDocumentation",
229
- "src": "202:363:41",
229
+ "src": "202:363:43",
230
230
  "text": "@notice Query if a contract implements an interface\n @param interfaceID The interface identifier, as specified in ERC-165\n @dev Interface identification is specified in ERC-165. This function\n uses less than 30,000 gas.\n @return `true` if the contract implements `interfaceID` and\n `interfaceID` is not 0xffffffff, `false` otherwise"
231
231
  },
232
232
  "functionSelector": "01ffc9a7",
@@ -234,20 +234,20 @@
234
234
  "kind": "function",
235
235
  "modifiers": [],
236
236
  "name": "supportsInterface",
237
- "nameLocation": "577:17:41",
237
+ "nameLocation": "577:17:43",
238
238
  "parameters": {
239
- "id": 33314,
239
+ "id": 33427,
240
240
  "nodeType": "ParameterList",
241
241
  "parameters": [
242
242
  {
243
243
  "constant": false,
244
- "id": 33313,
244
+ "id": 33426,
245
245
  "mutability": "mutable",
246
246
  "name": "interfaceID",
247
- "nameLocation": "602:11:41",
247
+ "nameLocation": "602:11:43",
248
248
  "nodeType": "VariableDeclaration",
249
- "scope": 33318,
250
- "src": "595:18:41",
249
+ "scope": 33431,
250
+ "src": "595:18:43",
251
251
  "stateVariable": false,
252
252
  "storageLocation": "default",
253
253
  "typeDescriptions": {
@@ -255,10 +255,10 @@
255
255
  "typeString": "bytes4"
256
256
  },
257
257
  "typeName": {
258
- "id": 33312,
258
+ "id": 33425,
259
259
  "name": "bytes4",
260
260
  "nodeType": "ElementaryTypeName",
261
- "src": "595:6:41",
261
+ "src": "595:6:43",
262
262
  "typeDescriptions": {
263
263
  "typeIdentifier": "t_bytes4",
264
264
  "typeString": "bytes4"
@@ -267,21 +267,21 @@
267
267
  "visibility": "internal"
268
268
  }
269
269
  ],
270
- "src": "594:20:41"
270
+ "src": "594:20:43"
271
271
  },
272
272
  "returnParameters": {
273
- "id": 33317,
273
+ "id": 33430,
274
274
  "nodeType": "ParameterList",
275
275
  "parameters": [
276
276
  {
277
277
  "constant": false,
278
- "id": 33316,
278
+ "id": 33429,
279
279
  "mutability": "mutable",
280
280
  "name": "",
281
281
  "nameLocation": "-1:-1:-1",
282
282
  "nodeType": "VariableDeclaration",
283
- "scope": 33318,
284
- "src": "638:4:41",
283
+ "scope": 33431,
284
+ "src": "638:4:43",
285
285
  "stateVariable": false,
286
286
  "storageLocation": "default",
287
287
  "typeDescriptions": {
@@ -289,10 +289,10 @@
289
289
  "typeString": "bool"
290
290
  },
291
291
  "typeName": {
292
- "id": 33315,
292
+ "id": 33428,
293
293
  "name": "bool",
294
294
  "nodeType": "ElementaryTypeName",
295
- "src": "638:4:41",
295
+ "src": "638:4:43",
296
296
  "typeDescriptions": {
297
297
  "typeIdentifier": "t_bool",
298
298
  "typeString": "bool"
@@ -301,9 +301,9 @@
301
301
  "visibility": "internal"
302
302
  }
303
303
  ],
304
- "src": "637:6:41"
304
+ "src": "637:6:43"
305
305
  },
306
- "scope": 33319,
306
+ "scope": 33432,
307
307
  "stateMutability": "view",
308
308
  "virtual": false,
309
309
  "visibility": "external"
@@ -316,16 +316,16 @@
316
316
  "contractKind": "interface",
317
317
  "fullyImplemented": false,
318
318
  "linearizedBaseContracts": [
319
- 33319
319
+ 33432
320
320
  ],
321
321
  "name": "IERC165",
322
- "nameLocation": "190:7:41",
323
- "scope": 33320,
322
+ "nameLocation": "190:7:43",
323
+ "scope": 33433,
324
324
  "usedErrors": [],
325
325
  "usedEvents": []
326
326
  }
327
327
  ],
328
328
  "license": "MIT"
329
329
  },
330
- "id": 41
330
+ "id": 43
331
331
  }