@latticexyz/world-modules 2.0.0-main-5d19b125 → 2.0.0-main-fd10cff6

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 (89) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +228 -215
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  4. package/out/DelegationControl.sol/DelegationControl.json +157 -131
  5. package/out/Hooks.sol/Hooks.json +45 -45
  6. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +57 -57
  7. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
  8. package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
  9. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
  10. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  11. package/out/IDelegationControl.sol/IDelegationControl.json +105 -99
  12. package/out/IModule.sol/IModule.json +181 -151
  13. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +34 -34
  14. package/out/ISystemHook.sol/ISystemHook.json +91 -91
  15. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  16. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +75 -75
  17. package/out/IWorldErrors.sol/IWorldErrors.json +134 -134
  18. package/out/IWorldKernel.sol/IWorldCall.json +155 -155
  19. package/out/IWorldKernel.sol/IWorldKernel.json +155 -155
  20. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +155 -155
  21. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +186 -186
  22. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  23. package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
  24. package/out/KeysInTableModule.sol/KeysInTableModule.json +562 -537
  25. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  26. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +992 -992
  27. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +451 -426
  28. package/out/Module.sol/Module.json +162 -119
  29. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  30. package/out/Schema.sol/SchemaInstance.json +30 -30
  31. package/out/Schema.sol/SchemaLib.json +30 -30
  32. package/out/SchemaType.sol/SchemaType.json +276 -276
  33. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +327 -308
  34. package/out/StoreHook.sol/StoreHook.json +358 -358
  35. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  36. package/out/System.sol/System.json +23 -23
  37. package/out/Tables.sol/Tables.json +73 -73
  38. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +132 -119
  39. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  40. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  41. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +345 -326
  42. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +86 -86
  43. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
  44. package/out/WorldContext.sol/WorldContextConsumer.json +357 -357
  45. package/out/WorldContext.sol/WorldContextProvider.json +357 -357
  46. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  47. package/out/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  48. package/out/constants.sol/constants.json +115 -115
  49. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  50. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  51. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  52. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  53. package/out/hasKey.sol/hasKey.json +130 -130
  54. package/out/index.sol/index.json +53 -53
  55. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +130 -130
  56. package/out/query.sol/query.json +1154 -1154
  57. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  58. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  59. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  60. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  61. package/out/src/IStore.sol/IStore.json +53 -53
  62. package/out/src/IWorldKernel.sol/IWorldCall.json +156 -156
  63. package/out/src/IWorldKernel.sol/IWorldKernel.json +156 -156
  64. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
  65. package/out/src/Memory.sol/Memory.json +89 -89
  66. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  67. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  68. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  69. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  70. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  71. package/out/src/Schema.sol/SchemaLib.json +787 -787
  72. package/out/src/Slice.sol/SliceInstance.json +429 -429
  73. package/out/src/Slice.sol/SliceLib.json +429 -429
  74. package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
  75. package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
  76. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  77. package/out/src/WorldContext.sol/WorldContextConsumer.json +357 -357
  78. package/out/src/WorldContext.sol/WorldContextProvider.json +357 -357
  79. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  80. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  81. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  82. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  83. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  84. package/out/tables/Tables.sol/Tables.json +7288 -7288
  85. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  86. package/out/types.sol/types.json +39 -39
  87. package/out/world/src/IERC165.sol/IERC165.json +63 -57
  88. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  89. package/package.json +8 -8
@@ -10,38 +10,38 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/worldResourceTypes.sol",
13
- "id": 24023,
13
+ "id": 24030,
14
14
  "exportedSymbols": {
15
15
  "MASK_RESOURCE_MODULE": [
16
- 24016
16
+ 24023
17
17
  ],
18
18
  "MASK_RESOURCE_NAMESPACE": [
19
- 24010
19
+ 24017
20
20
  ],
21
21
  "MASK_RESOURCE_SYSTEM": [
22
- 24022
22
+ 24029
23
23
  ],
24
24
  "RESOURCE_MODULE": [
25
- 24001
25
+ 24008
26
26
  ],
27
27
  "RESOURCE_NAMESPACE": [
28
- 23998
28
+ 24005
29
29
  ],
30
30
  "RESOURCE_OFFCHAIN_TABLE": [
31
- 36187
31
+ 36194
32
32
  ],
33
33
  "RESOURCE_SYSTEM": [
34
- 24004
34
+ 24011
35
35
  ],
36
36
  "RESOURCE_TABLE": [
37
- 36184
37
+ 36191
38
38
  ]
39
39
  },
40
40
  "nodeType": "SourceUnit",
41
41
  "src": "32:460:51",
42
42
  "nodes": [
43
43
  {
44
- "id": 23992,
44
+ "id": 23999,
45
45
  "nodeType": "PragmaDirective",
46
46
  "src": "32:25:51",
47
47
  "nodes": [],
@@ -53,23 +53,23 @@
53
53
  ]
54
54
  },
55
55
  {
56
- "id": 23995,
56
+ "id": 24002,
57
57
  "nodeType": "ImportDirective",
58
58
  "src": "59:103:51",
59
59
  "nodes": [],
60
60
  "absolutePath": "node_modules/@latticexyz/store/src/storeResourceTypes.sol",
61
61
  "file": "@latticexyz/store/src/storeResourceTypes.sol",
62
62
  "nameLocation": "-1:-1:-1",
63
- "scope": 24023,
64
- "sourceUnit": 36188,
63
+ "scope": 24030,
64
+ "sourceUnit": 36195,
65
65
  "symbolAliases": [
66
66
  {
67
67
  "foreign": {
68
- "id": 23993,
68
+ "id": 24000,
69
69
  "name": "RESOURCE_TABLE",
70
70
  "nodeType": "Identifier",
71
71
  "overloadedDeclarations": [],
72
- "referencedDeclaration": 36184,
72
+ "referencedDeclaration": 36191,
73
73
  "src": "68:14:51",
74
74
  "typeDescriptions": {}
75
75
  },
@@ -77,11 +77,11 @@
77
77
  },
78
78
  {
79
79
  "foreign": {
80
- "id": 23994,
80
+ "id": 24001,
81
81
  "name": "RESOURCE_OFFCHAIN_TABLE",
82
82
  "nodeType": "Identifier",
83
83
  "overloadedDeclarations": [],
84
- "referencedDeclaration": 36187,
84
+ "referencedDeclaration": 36194,
85
85
  "src": "84:23:51",
86
86
  "typeDescriptions": {}
87
87
  },
@@ -91,7 +91,7 @@
91
91
  "unitAlias": ""
92
92
  },
93
93
  {
94
- "id": 23998,
94
+ "id": 24005,
95
95
  "nodeType": "VariableDeclaration",
96
96
  "src": "164:41:51",
97
97
  "nodes": [],
@@ -99,7 +99,7 @@
99
99
  "mutability": "constant",
100
100
  "name": "RESOURCE_NAMESPACE",
101
101
  "nameLocation": "180:18:51",
102
- "scope": 24023,
102
+ "scope": 24030,
103
103
  "stateVariable": false,
104
104
  "storageLocation": "default",
105
105
  "typeDescriptions": {
@@ -107,7 +107,7 @@
107
107
  "typeString": "bytes2"
108
108
  },
109
109
  "typeName": {
110
- "id": 23996,
110
+ "id": 24003,
111
111
  "name": "bytes2",
112
112
  "nodeType": "ElementaryTypeName",
113
113
  "src": "164:6:51",
@@ -118,7 +118,7 @@
118
118
  },
119
119
  "value": {
120
120
  "hexValue": "6e73",
121
- "id": 23997,
121
+ "id": 24004,
122
122
  "isConstant": false,
123
123
  "isLValue": false,
124
124
  "isPure": true,
@@ -135,7 +135,7 @@
135
135
  "visibility": "internal"
136
136
  },
137
137
  {
138
- "id": 24001,
138
+ "id": 24008,
139
139
  "nodeType": "VariableDeclaration",
140
140
  "src": "207:38:51",
141
141
  "nodes": [],
@@ -143,7 +143,7 @@
143
143
  "mutability": "constant",
144
144
  "name": "RESOURCE_MODULE",
145
145
  "nameLocation": "223:15:51",
146
- "scope": 24023,
146
+ "scope": 24030,
147
147
  "stateVariable": false,
148
148
  "storageLocation": "default",
149
149
  "typeDescriptions": {
@@ -151,7 +151,7 @@
151
151
  "typeString": "bytes2"
152
152
  },
153
153
  "typeName": {
154
- "id": 23999,
154
+ "id": 24006,
155
155
  "name": "bytes2",
156
156
  "nodeType": "ElementaryTypeName",
157
157
  "src": "207:6:51",
@@ -162,7 +162,7 @@
162
162
  },
163
163
  "value": {
164
164
  "hexValue": "6d64",
165
- "id": 24000,
165
+ "id": 24007,
166
166
  "isConstant": false,
167
167
  "isLValue": false,
168
168
  "isPure": true,
@@ -179,7 +179,7 @@
179
179
  "visibility": "internal"
180
180
  },
181
181
  {
182
- "id": 24004,
182
+ "id": 24011,
183
183
  "nodeType": "VariableDeclaration",
184
184
  "src": "247:38:51",
185
185
  "nodes": [],
@@ -187,7 +187,7 @@
187
187
  "mutability": "constant",
188
188
  "name": "RESOURCE_SYSTEM",
189
189
  "nameLocation": "263:15:51",
190
- "scope": 24023,
190
+ "scope": 24030,
191
191
  "stateVariable": false,
192
192
  "storageLocation": "default",
193
193
  "typeDescriptions": {
@@ -195,7 +195,7 @@
195
195
  "typeString": "bytes2"
196
196
  },
197
197
  "typeName": {
198
- "id": 24002,
198
+ "id": 24009,
199
199
  "name": "bytes2",
200
200
  "nodeType": "ElementaryTypeName",
201
201
  "src": "247:6:51",
@@ -206,7 +206,7 @@
206
206
  },
207
207
  "value": {
208
208
  "hexValue": "7379",
209
- "id": 24003,
209
+ "id": 24010,
210
210
  "isConstant": false,
211
211
  "isLValue": false,
212
212
  "isPure": true,
@@ -223,7 +223,7 @@
223
223
  "visibility": "internal"
224
224
  },
225
225
  {
226
- "id": 24010,
226
+ "id": 24017,
227
227
  "nodeType": "VariableDeclaration",
228
228
  "src": "288:70:51",
229
229
  "nodes": [],
@@ -231,7 +231,7 @@
231
231
  "mutability": "constant",
232
232
  "name": "MASK_RESOURCE_NAMESPACE",
233
233
  "nameLocation": "305:23:51",
234
- "scope": 24023,
234
+ "scope": 24030,
235
235
  "stateVariable": false,
236
236
  "storageLocation": "default",
237
237
  "typeDescriptions": {
@@ -239,7 +239,7 @@
239
239
  "typeString": "bytes32"
240
240
  },
241
241
  "typeName": {
242
- "id": 24005,
242
+ "id": 24012,
243
243
  "name": "bytes32",
244
244
  "nodeType": "ElementaryTypeName",
245
245
  "src": "288:7:51",
@@ -251,11 +251,11 @@
251
251
  "value": {
252
252
  "arguments": [
253
253
  {
254
- "id": 24008,
254
+ "id": 24015,
255
255
  "name": "RESOURCE_NAMESPACE",
256
256
  "nodeType": "Identifier",
257
257
  "overloadedDeclarations": [],
258
- "referencedDeclaration": 23998,
258
+ "referencedDeclaration": 24005,
259
259
  "src": "339:18:51",
260
260
  "typeDescriptions": {
261
261
  "typeIdentifier": "t_bytes2",
@@ -270,7 +270,7 @@
270
270
  "typeString": "bytes2"
271
271
  }
272
272
  ],
273
- "id": 24007,
273
+ "id": 24014,
274
274
  "isConstant": false,
275
275
  "isLValue": false,
276
276
  "isPure": true,
@@ -282,14 +282,14 @@
282
282
  "typeString": "type(bytes32)"
283
283
  },
284
284
  "typeName": {
285
- "id": 24006,
285
+ "id": 24013,
286
286
  "name": "bytes32",
287
287
  "nodeType": "ElementaryTypeName",
288
288
  "src": "331:7:51",
289
289
  "typeDescriptions": {}
290
290
  }
291
291
  },
292
- "id": 24009,
292
+ "id": 24016,
293
293
  "isConstant": false,
294
294
  "isLValue": false,
295
295
  "isPure": true,
@@ -308,7 +308,7 @@
308
308
  "visibility": "internal"
309
309
  },
310
310
  {
311
- "id": 24016,
311
+ "id": 24023,
312
312
  "nodeType": "VariableDeclaration",
313
313
  "src": "360:64:51",
314
314
  "nodes": [],
@@ -316,7 +316,7 @@
316
316
  "mutability": "constant",
317
317
  "name": "MASK_RESOURCE_MODULE",
318
318
  "nameLocation": "377:20:51",
319
- "scope": 24023,
319
+ "scope": 24030,
320
320
  "stateVariable": false,
321
321
  "storageLocation": "default",
322
322
  "typeDescriptions": {
@@ -324,7 +324,7 @@
324
324
  "typeString": "bytes32"
325
325
  },
326
326
  "typeName": {
327
- "id": 24011,
327
+ "id": 24018,
328
328
  "name": "bytes32",
329
329
  "nodeType": "ElementaryTypeName",
330
330
  "src": "360:7:51",
@@ -336,11 +336,11 @@
336
336
  "value": {
337
337
  "arguments": [
338
338
  {
339
- "id": 24014,
339
+ "id": 24021,
340
340
  "name": "RESOURCE_MODULE",
341
341
  "nodeType": "Identifier",
342
342
  "overloadedDeclarations": [],
343
- "referencedDeclaration": 24001,
343
+ "referencedDeclaration": 24008,
344
344
  "src": "408:15:51",
345
345
  "typeDescriptions": {
346
346
  "typeIdentifier": "t_bytes2",
@@ -355,7 +355,7 @@
355
355
  "typeString": "bytes2"
356
356
  }
357
357
  ],
358
- "id": 24013,
358
+ "id": 24020,
359
359
  "isConstant": false,
360
360
  "isLValue": false,
361
361
  "isPure": true,
@@ -367,14 +367,14 @@
367
367
  "typeString": "type(bytes32)"
368
368
  },
369
369
  "typeName": {
370
- "id": 24012,
370
+ "id": 24019,
371
371
  "name": "bytes32",
372
372
  "nodeType": "ElementaryTypeName",
373
373
  "src": "400:7:51",
374
374
  "typeDescriptions": {}
375
375
  }
376
376
  },
377
- "id": 24015,
377
+ "id": 24022,
378
378
  "isConstant": false,
379
379
  "isLValue": false,
380
380
  "isPure": true,
@@ -393,7 +393,7 @@
393
393
  "visibility": "internal"
394
394
  },
395
395
  {
396
- "id": 24022,
396
+ "id": 24029,
397
397
  "nodeType": "VariableDeclaration",
398
398
  "src": "426:64:51",
399
399
  "nodes": [],
@@ -401,7 +401,7 @@
401
401
  "mutability": "constant",
402
402
  "name": "MASK_RESOURCE_SYSTEM",
403
403
  "nameLocation": "443:20:51",
404
- "scope": 24023,
404
+ "scope": 24030,
405
405
  "stateVariable": false,
406
406
  "storageLocation": "default",
407
407
  "typeDescriptions": {
@@ -409,7 +409,7 @@
409
409
  "typeString": "bytes32"
410
410
  },
411
411
  "typeName": {
412
- "id": 24017,
412
+ "id": 24024,
413
413
  "name": "bytes32",
414
414
  "nodeType": "ElementaryTypeName",
415
415
  "src": "426:7:51",
@@ -421,11 +421,11 @@
421
421
  "value": {
422
422
  "arguments": [
423
423
  {
424
- "id": 24020,
424
+ "id": 24027,
425
425
  "name": "RESOURCE_SYSTEM",
426
426
  "nodeType": "Identifier",
427
427
  "overloadedDeclarations": [],
428
- "referencedDeclaration": 24004,
428
+ "referencedDeclaration": 24011,
429
429
  "src": "474:15:51",
430
430
  "typeDescriptions": {
431
431
  "typeIdentifier": "t_bytes2",
@@ -440,7 +440,7 @@
440
440
  "typeString": "bytes2"
441
441
  }
442
442
  ],
443
- "id": 24019,
443
+ "id": 24026,
444
444
  "isConstant": false,
445
445
  "isLValue": false,
446
446
  "isPure": true,
@@ -452,14 +452,14 @@
452
452
  "typeString": "type(bytes32)"
453
453
  },
454
454
  "typeName": {
455
- "id": 24018,
455
+ "id": 24025,
456
456
  "name": "bytes32",
457
457
  "nodeType": "ElementaryTypeName",
458
458
  "src": "466:7:51",
459
459
  "typeDescriptions": {}
460
460
  }
461
461
  },
462
- "id": 24021,
462
+ "id": 24028,
463
463
  "isConstant": false,
464
464
  "isLValue": false,
465
465
  "isPure": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/world-modules",
3
- "version": "2.0.0-main-5d19b125",
3
+ "version": "2.0.0-main-fd10cff6",
4
4
  "description": "World modules",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "zod": "^3.21.4",
18
- "@latticexyz/common": "2.0.0-main-5d19b125",
19
- "@latticexyz/config": "2.0.0-main-5d19b125",
20
- "@latticexyz/schema-type": "2.0.0-main-5d19b125",
21
- "@latticexyz/store": "2.0.0-main-5d19b125",
22
- "@latticexyz/world": "2.0.0-main-5d19b125"
18
+ "@latticexyz/common": "2.0.0-main-fd10cff6",
19
+ "@latticexyz/config": "2.0.0-main-fd10cff6",
20
+ "@latticexyz/schema-type": "2.0.0-main-fd10cff6",
21
+ "@latticexyz/store": "2.0.0-main-fd10cff6",
22
+ "@latticexyz/world": "2.0.0-main-fd10cff6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/ejs": "^3.1.1",
@@ -34,8 +34,8 @@
34
34
  "tsup": "^6.7.0",
35
35
  "tsx": "^3.12.6",
36
36
  "vitest": "0.31.4",
37
- "@latticexyz/abi-ts": "2.0.0-main-5d19b125",
38
- "@latticexyz/gas-report": "2.0.0-main-5d19b125"
37
+ "@latticexyz/abi-ts": "2.0.0-main-fd10cff6",
38
+ "@latticexyz/gas-report": "2.0.0-main-fd10cff6"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"