@latticexyz/world-modules 2.0.0-main-071aadb9 → 2.0.0-main-88b1a5a1

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 (112) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +215 -215
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2599 -2599
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
  5. package/out/DelegationControl.sol/DelegationControl.json +94 -94
  6. package/out/EncodeArray.sol/EncodeArray.json +3345 -3345
  7. package/out/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  8. package/out/FieldLayout.sol/FieldLayoutLib.json +47 -47
  9. package/out/Hook.sol/HookInstance.json +13 -13
  10. package/out/Hook.sol/HookLib.json +13 -13
  11. package/out/Hooks.sol/Hooks.json +3393 -3393
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +58 -58
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +54 -54
  14. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +52 -52
  16. package/out/ICoreSystem.sol/ICoreSystem.json +7 -7
  17. package/out/IDelegationControl.sol/IDelegationControl.json +62 -62
  18. package/out/IModule.sol/IModule.json +78 -78
  19. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +28 -28
  20. package/out/ISystemHook.sol/ISystemHook.json +86 -86
  21. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  22. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
  23. package/out/IWorldErrors.sol/IWorldErrors.json +152 -152
  24. package/out/IWorldKernel.sol/IWorldCall.json +154 -154
  25. package/out/IWorldKernel.sol/IWorldKernel.json +154 -154
  26. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
  27. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +190 -190
  28. package/out/KeysInTable.sol/KeysInTable.json +10672 -10672
  29. package/out/KeysInTableHook.sol/KeysInTableHook.json +867 -867
  30. package/out/KeysInTableModule.sol/KeysInTableModule.json +538 -538
  31. package/out/KeysWithValue.sol/KeysWithValue.json +3832 -3832
  32. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +993 -993
  33. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +426 -426
  34. package/out/Memory.sol/Memory.json +4 -4
  35. package/out/Module.sol/Module.json +84 -84
  36. package/out/ResourceIds.sol/ResourceIds.json +1363 -1363
  37. package/out/Schema.sol/SchemaInstance.json +72 -72
  38. package/out/Schema.sol/SchemaLib.json +72 -72
  39. package/out/SchemaType.sol/SchemaType.json +276 -276
  40. package/out/Slice.sol/SliceInstance.json +4 -4
  41. package/out/Slice.sol/SliceLib.json +4 -4
  42. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +303 -303
  43. package/out/Storage.sol/Storage.json +7 -7
  44. package/out/StoreCore.sol/StoreCore.json +708 -737
  45. package/out/StoreCore.sol/StoreCoreInternal.json +710 -739
  46. package/out/StoreHook.sol/StoreHook.json +368 -368
  47. package/out/StoreHooks.sol/StoreHooks.json +3232 -3232
  48. package/out/StoreSwitch.sol/StoreSwitch.json +1885 -1885
  49. package/out/System.sol/System.json +31 -31
  50. package/out/Tables.sol/Tables.json +5585 -5585
  51. package/out/TightCoder.sol/TightCoder.json +124 -124
  52. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +119 -119
  53. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1990 -1990
  54. package/out/UniqueEntity.sol/UniqueEntity.json +1406 -1406
  55. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +327 -327
  56. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +93 -93
  57. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2727 -2727
  58. package/out/WorldContext.sol/WorldContextConsumer.json +1380 -988
  59. package/out/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1381 -989
  60. package/out/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  61. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  62. package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  63. package/out/constants.sol/LayoutOffsets.json +79 -79
  64. package/out/constants.sol/constants.json +115 -115
  65. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  66. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  67. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  68. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  69. package/out/hasKey.sol/hasKey.json +130 -130
  70. package/out/index.sol/index.json +53 -53
  71. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +131 -131
  72. package/out/leftMask.sol/leftMask.json +31 -31
  73. package/out/query.sol/query.json +1154 -1154
  74. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  75. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  76. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  77. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  78. package/out/src/IStore.sol/IStore.json +53 -53
  79. package/out/src/IWorldKernel.sol/IWorldCall.json +153 -153
  80. package/out/src/IWorldKernel.sol/IWorldKernel.json +153 -153
  81. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +153 -153
  82. package/out/src/Memory.sol/Memory.json +91 -91
  83. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  84. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  85. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  86. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  87. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  88. package/out/src/Schema.sol/SchemaLib.json +790 -790
  89. package/out/src/Slice.sol/SliceInstance.json +430 -430
  90. package/out/src/Slice.sol/SliceLib.json +430 -430
  91. package/out/src/StoreCore.sol/StoreCore.json +4695 -4724
  92. package/out/src/StoreCore.sol/StoreCoreInternal.json +4697 -4726
  93. package/out/src/StoreSwitch.sol/StoreSwitch.json +2487 -2487
  94. package/out/src/WorldContext.sol/WorldContextConsumer.json +1291 -899
  95. package/out/src/WorldContext.sol/WorldContextConsumerLib.abi.json +1 -0
  96. package/out/src/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1292 -900
  97. package/out/src/WorldContext.sol/WorldContextProviderLib.abi.json +1 -0
  98. package/out/src/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  99. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  100. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  101. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  102. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  103. package/out/tables/ResourceIds.sol/ResourceIds.json +1751 -1751
  104. package/out/tables/Tables.sol/Tables.json +7292 -7292
  105. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  106. package/out/types.sol/types.json +41 -41
  107. package/out/version.sol/version.json +7 -7
  108. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  109. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  110. package/package.json +8 -8
  111. /package/out/WorldContext.sol/{WorldContextProvider.abi.json → WorldContextConsumerLib.abi.json} +0 -0
  112. /package/out/{src/WorldContext.sol/WorldContextProvider.abi.json → WorldContext.sol/WorldContextProviderLib.abi.json} +0 -0
@@ -217,23 +217,23 @@
217
217
  },
218
218
  "ast": {
219
219
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/codegen/interfaces/IBatchCallSystem.sol",
220
- "id": 24150,
220
+ "id": 24182,
221
221
  "exportedSymbols": {
222
222
  "IBatchCallSystem": [
223
- 24149
223
+ 24181
224
224
  ],
225
225
  "SystemCallData": [
226
- 24334
226
+ 24366
227
227
  ],
228
228
  "SystemCallFromData": [
229
- 24346
229
+ 24378
230
230
  ]
231
231
  },
232
232
  "nodeType": "SourceUnit",
233
233
  "src": "32:563:44",
234
234
  "nodes": [
235
235
  {
236
- "id": 24124,
236
+ "id": 24156,
237
237
  "nodeType": "PragmaDirective",
238
238
  "src": "32:25:44",
239
239
  "nodes": [],
@@ -245,23 +245,23 @@
245
245
  ]
246
246
  },
247
247
  {
248
- "id": 24127,
248
+ "id": 24159,
249
249
  "nodeType": "ImportDirective",
250
250
  "src": "108:84:44",
251
251
  "nodes": [],
252
252
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol",
253
253
  "file": "./../../modules/core/types.sol",
254
254
  "nameLocation": "-1:-1:-1",
255
- "scope": 24150,
256
- "sourceUnit": 24347,
255
+ "scope": 24182,
256
+ "sourceUnit": 24379,
257
257
  "symbolAliases": [
258
258
  {
259
259
  "foreign": {
260
- "id": 24125,
260
+ "id": 24157,
261
261
  "name": "SystemCallData",
262
262
  "nodeType": "Identifier",
263
263
  "overloadedDeclarations": [],
264
- "referencedDeclaration": 24334,
264
+ "referencedDeclaration": 24366,
265
265
  "src": "117:14:44",
266
266
  "typeDescriptions": {}
267
267
  },
@@ -269,11 +269,11 @@
269
269
  },
270
270
  {
271
271
  "foreign": {
272
- "id": 24126,
272
+ "id": 24158,
273
273
  "name": "SystemCallFromData",
274
274
  "nodeType": "Identifier",
275
275
  "overloadedDeclarations": [],
276
- "referencedDeclaration": 24346,
276
+ "referencedDeclaration": 24378,
277
277
  "src": "133:18:44",
278
278
  "typeDescriptions": {}
279
279
  },
@@ -283,12 +283,12 @@
283
283
  "unitAlias": ""
284
284
  },
285
285
  {
286
- "id": 24149,
286
+ "id": 24181,
287
287
  "nodeType": "ContractDefinition",
288
288
  "src": "341:253:44",
289
289
  "nodes": [
290
290
  {
291
- "id": 24138,
291
+ "id": 24170,
292
292
  "nodeType": "FunctionDefinition",
293
293
  "src": "372:104:44",
294
294
  "nodes": [],
@@ -299,50 +299,50 @@
299
299
  "name": "batchCall",
300
300
  "nameLocation": "381:9:44",
301
301
  "parameters": {
302
- "id": 24133,
302
+ "id": 24165,
303
303
  "nodeType": "ParameterList",
304
304
  "parameters": [
305
305
  {
306
306
  "constant": false,
307
- "id": 24132,
307
+ "id": 24164,
308
308
  "mutability": "mutable",
309
309
  "name": "systemCalls",
310
310
  "nameLocation": "417:11:44",
311
311
  "nodeType": "VariableDeclaration",
312
- "scope": 24138,
312
+ "scope": 24170,
313
313
  "src": "391:37:44",
314
314
  "stateVariable": false,
315
315
  "storageLocation": "calldata",
316
316
  "typeDescriptions": {
317
- "typeIdentifier": "t_array$_t_struct$_SystemCallData_$24334_calldata_ptr_$dyn_calldata_ptr",
317
+ "typeIdentifier": "t_array$_t_struct$_SystemCallData_$24366_calldata_ptr_$dyn_calldata_ptr",
318
318
  "typeString": "struct SystemCallData[]"
319
319
  },
320
320
  "typeName": {
321
321
  "baseType": {
322
- "id": 24130,
322
+ "id": 24162,
323
323
  "nodeType": "UserDefinedTypeName",
324
324
  "pathNode": {
325
- "id": 24129,
325
+ "id": 24161,
326
326
  "name": "SystemCallData",
327
327
  "nameLocations": [
328
328
  "391:14:44"
329
329
  ],
330
330
  "nodeType": "IdentifierPath",
331
- "referencedDeclaration": 24334,
331
+ "referencedDeclaration": 24366,
332
332
  "src": "391:14:44"
333
333
  },
334
- "referencedDeclaration": 24334,
334
+ "referencedDeclaration": 24366,
335
335
  "src": "391:14:44",
336
336
  "typeDescriptions": {
337
- "typeIdentifier": "t_struct$_SystemCallData_$24334_storage_ptr",
337
+ "typeIdentifier": "t_struct$_SystemCallData_$24366_storage_ptr",
338
338
  "typeString": "struct SystemCallData"
339
339
  }
340
340
  },
341
- "id": 24131,
341
+ "id": 24163,
342
342
  "nodeType": "ArrayTypeName",
343
343
  "src": "391:16:44",
344
344
  "typeDescriptions": {
345
- "typeIdentifier": "t_array$_t_struct$_SystemCallData_$24334_storage_$dyn_storage_ptr",
345
+ "typeIdentifier": "t_array$_t_struct$_SystemCallData_$24366_storage_$dyn_storage_ptr",
346
346
  "typeString": "struct SystemCallData[]"
347
347
  }
348
348
  },
@@ -352,17 +352,17 @@
352
352
  "src": "390:39:44"
353
353
  },
354
354
  "returnParameters": {
355
- "id": 24137,
355
+ "id": 24169,
356
356
  "nodeType": "ParameterList",
357
357
  "parameters": [
358
358
  {
359
359
  "constant": false,
360
- "id": 24136,
360
+ "id": 24168,
361
361
  "mutability": "mutable",
362
362
  "name": "returnDatas",
363
363
  "nameLocation": "463:11:44",
364
364
  "nodeType": "VariableDeclaration",
365
- "scope": 24138,
365
+ "scope": 24170,
366
366
  "src": "448:26:44",
367
367
  "stateVariable": false,
368
368
  "storageLocation": "memory",
@@ -372,7 +372,7 @@
372
372
  },
373
373
  "typeName": {
374
374
  "baseType": {
375
- "id": 24134,
375
+ "id": 24166,
376
376
  "name": "bytes",
377
377
  "nodeType": "ElementaryTypeName",
378
378
  "src": "448:5:44",
@@ -381,7 +381,7 @@
381
381
  "typeString": "bytes"
382
382
  }
383
383
  },
384
- "id": 24135,
384
+ "id": 24167,
385
385
  "nodeType": "ArrayTypeName",
386
386
  "src": "448:7:44",
387
387
  "typeDescriptions": {
@@ -394,13 +394,13 @@
394
394
  ],
395
395
  "src": "447:28:44"
396
396
  },
397
- "scope": 24149,
397
+ "scope": 24181,
398
398
  "stateMutability": "nonpayable",
399
399
  "virtual": false,
400
400
  "visibility": "external"
401
401
  },
402
402
  {
403
- "id": 24148,
403
+ "id": 24180,
404
404
  "nodeType": "FunctionDefinition",
405
405
  "src": "480:112:44",
406
406
  "nodes": [],
@@ -411,50 +411,50 @@
411
411
  "name": "batchCallFrom",
412
412
  "nameLocation": "489:13:44",
413
413
  "parameters": {
414
- "id": 24143,
414
+ "id": 24175,
415
415
  "nodeType": "ParameterList",
416
416
  "parameters": [
417
417
  {
418
418
  "constant": false,
419
- "id": 24142,
419
+ "id": 24174,
420
420
  "mutability": "mutable",
421
421
  "name": "systemCalls",
422
422
  "nameLocation": "533:11:44",
423
423
  "nodeType": "VariableDeclaration",
424
- "scope": 24148,
424
+ "scope": 24180,
425
425
  "src": "503:41:44",
426
426
  "stateVariable": false,
427
427
  "storageLocation": "calldata",
428
428
  "typeDescriptions": {
429
- "typeIdentifier": "t_array$_t_struct$_SystemCallFromData_$24346_calldata_ptr_$dyn_calldata_ptr",
429
+ "typeIdentifier": "t_array$_t_struct$_SystemCallFromData_$24378_calldata_ptr_$dyn_calldata_ptr",
430
430
  "typeString": "struct SystemCallFromData[]"
431
431
  },
432
432
  "typeName": {
433
433
  "baseType": {
434
- "id": 24140,
434
+ "id": 24172,
435
435
  "nodeType": "UserDefinedTypeName",
436
436
  "pathNode": {
437
- "id": 24139,
437
+ "id": 24171,
438
438
  "name": "SystemCallFromData",
439
439
  "nameLocations": [
440
440
  "503:18:44"
441
441
  ],
442
442
  "nodeType": "IdentifierPath",
443
- "referencedDeclaration": 24346,
443
+ "referencedDeclaration": 24378,
444
444
  "src": "503:18:44"
445
445
  },
446
- "referencedDeclaration": 24346,
446
+ "referencedDeclaration": 24378,
447
447
  "src": "503:18:44",
448
448
  "typeDescriptions": {
449
- "typeIdentifier": "t_struct$_SystemCallFromData_$24346_storage_ptr",
449
+ "typeIdentifier": "t_struct$_SystemCallFromData_$24378_storage_ptr",
450
450
  "typeString": "struct SystemCallFromData"
451
451
  }
452
452
  },
453
- "id": 24141,
453
+ "id": 24173,
454
454
  "nodeType": "ArrayTypeName",
455
455
  "src": "503:20:44",
456
456
  "typeDescriptions": {
457
- "typeIdentifier": "t_array$_t_struct$_SystemCallFromData_$24346_storage_$dyn_storage_ptr",
457
+ "typeIdentifier": "t_array$_t_struct$_SystemCallFromData_$24378_storage_$dyn_storage_ptr",
458
458
  "typeString": "struct SystemCallFromData[]"
459
459
  }
460
460
  },
@@ -464,17 +464,17 @@
464
464
  "src": "502:43:44"
465
465
  },
466
466
  "returnParameters": {
467
- "id": 24147,
467
+ "id": 24179,
468
468
  "nodeType": "ParameterList",
469
469
  "parameters": [
470
470
  {
471
471
  "constant": false,
472
- "id": 24146,
472
+ "id": 24178,
473
473
  "mutability": "mutable",
474
474
  "name": "returnDatas",
475
475
  "nameLocation": "579:11:44",
476
476
  "nodeType": "VariableDeclaration",
477
- "scope": 24148,
477
+ "scope": 24180,
478
478
  "src": "564:26:44",
479
479
  "stateVariable": false,
480
480
  "storageLocation": "memory",
@@ -484,7 +484,7 @@
484
484
  },
485
485
  "typeName": {
486
486
  "baseType": {
487
- "id": 24144,
487
+ "id": 24176,
488
488
  "name": "bytes",
489
489
  "nodeType": "ElementaryTypeName",
490
490
  "src": "564:5:44",
@@ -493,7 +493,7 @@
493
493
  "typeString": "bytes"
494
494
  }
495
495
  },
496
- "id": 24145,
496
+ "id": 24177,
497
497
  "nodeType": "ArrayTypeName",
498
498
  "src": "564:7:44",
499
499
  "typeDescriptions": {
@@ -506,7 +506,7 @@
506
506
  ],
507
507
  "src": "563:28:44"
508
508
  },
509
- "scope": 24149,
509
+ "scope": 24181,
510
510
  "stateMutability": "nonpayable",
511
511
  "virtual": false,
512
512
  "visibility": "external"
@@ -518,18 +518,18 @@
518
518
  "contractDependencies": [],
519
519
  "contractKind": "interface",
520
520
  "documentation": {
521
- "id": 24128,
521
+ "id": 24160,
522
522
  "nodeType": "StructuredDocumentation",
523
523
  "src": "194:146:44",
524
524
  "text": " @title IBatchCallSystem\n @dev This interface is automatically generated from the corresponding system contract. Do not edit manually."
525
525
  },
526
526
  "fullyImplemented": false,
527
527
  "linearizedBaseContracts": [
528
- 24149
528
+ 24181
529
529
  ],
530
530
  "name": "IBatchCallSystem",
531
531
  "nameLocation": "351:16:44",
532
- "scope": 24150,
532
+ "scope": 24182,
533
533
  "usedErrors": [],
534
534
  "usedEvents": []
535
535
  }
@@ -62,17 +62,17 @@
62
62
  },
63
63
  "ast": {
64
64
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/codegen/interfaces/ICoreSystem.sol",
65
- "id": 24154,
65
+ "id": 24186,
66
66
  "exportedSymbols": {
67
67
  "ICoreSystem": [
68
- 24153
68
+ 24185
69
69
  ]
70
70
  },
71
71
  "nodeType": "SourceUnit",
72
72
  "src": "32:245:45",
73
73
  "nodes": [
74
74
  {
75
- "id": 24151,
75
+ "id": 24183,
76
76
  "nodeType": "PragmaDirective",
77
77
  "src": "32:25:45",
78
78
  "nodes": [],
@@ -84,7 +84,7 @@
84
84
  ]
85
85
  },
86
86
  {
87
- "id": 24153,
87
+ "id": 24185,
88
88
  "nodeType": "ContractDefinition",
89
89
  "src": "250:26:45",
90
90
  "nodes": [],
@@ -94,18 +94,18 @@
94
94
  "contractDependencies": [],
95
95
  "contractKind": "interface",
96
96
  "documentation": {
97
- "id": 24152,
97
+ "id": 24184,
98
98
  "nodeType": "StructuredDocumentation",
99
99
  "src": "108:141:45",
100
100
  "text": " @title ICoreSystem\n @dev This interface is automatically generated from the corresponding system contract. Do not edit manually."
101
101
  },
102
102
  "fullyImplemented": true,
103
103
  "linearizedBaseContracts": [
104
- 24153
104
+ 24185
105
105
  ],
106
106
  "name": "ICoreSystem",
107
107
  "nameLocation": "260:11:45",
108
- "scope": 24154,
108
+ "scope": 24186,
109
109
  "usedErrors": [],
110
110
  "usedEvents": []
111
111
  }