@latticexyz/world-modules 2.0.0-main-251170e1 → 2.0.0-main-c07fa021

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 (91) 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/CallboundDelegationControl.sol/CallboundDelegationControl.json +314 -314
  5. package/out/CallboundDelegations.sol/CallboundDelegations.json +4012 -4012
  6. package/out/DelegationControl.sol/DelegationControl.json +22 -22
  7. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +97 -97
  8. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +81 -81
  9. package/out/IBaseWorld.sol/IBaseWorld.abi.json +0 -13
  10. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +0 -13
  11. package/out/IBaseWorld.sol/IBaseWorld.json +63 -143
  12. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +51 -51
  13. package/out/ICoreSystem.sol/ICoreSystem.json +15 -15
  14. package/out/IDelegationControl.sol/IDelegationControl.json +93 -93
  15. package/out/IModule.sol/IModule.json +139 -139
  16. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +58 -58
  17. package/out/ISystemHook.sol/ISystemHook.json +129 -129
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +2 -2
  19. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +2 -2
  20. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +37 -37
  21. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +118 -118
  22. package/out/IWorldErrors.sol/IWorldErrors.json +238 -238
  23. package/out/IWorldKernel.sol/IWorldCall.json +241 -241
  24. package/out/IWorldKernel.sol/IWorldKernel.json +241 -241
  25. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +241 -241
  26. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +282 -282
  27. package/out/KeysInTable.sol/KeysInTable.json +15792 -15792
  28. package/out/KeysInTableHook.sol/KeysInTableHook.json +1253 -1253
  29. package/out/KeysInTableModule.sol/KeysInTableModule.json +798 -798
  30. package/out/KeysWithValue.sol/KeysWithValue.json +5879 -5879
  31. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1335 -1335
  32. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +619 -619
  33. package/out/Module.sol/Module.json +20 -20
  34. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +467 -467
  35. package/out/StoreHook.sol/StoreHook.json +31 -31
  36. package/out/System.sol/System.json +3 -3
  37. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +166 -166
  38. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3149 -3149
  39. package/out/UniqueEntity.sol/UniqueEntity.json +1976 -1976
  40. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
  41. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
  42. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +3954 -3954
  43. package/out/WorldContext.sol/WorldContextConsumer.json +17 -17
  44. package/out/WorldContext.sol/WorldContextProvider.json +17 -17
  45. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +7 -7
  46. package/out/WorldResourceId.sol/WorldResourceIdLib.json +7 -7
  47. package/out/constants.sol/constants.json +116 -116
  48. package/out/getKeysInTable.sol/getKeysInTable.json +819 -819
  49. package/out/getKeysWithValue.sol/getKeysWithValue.json +374 -374
  50. package/out/getTargetTableId.sol/getTargetTableId.json +232 -232
  51. package/out/getUniqueEntity.sol/getUniqueEntity.json +143 -143
  52. package/out/hasKey.sol/hasKey.json +189 -189
  53. package/out/index.sol/index.json +73 -73
  54. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +197 -197
  55. package/out/interfaces/IERC165.sol/IERC165.json +50 -50
  56. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +137 -137
  57. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +137 -137
  58. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +137 -137
  59. package/out/query.sol/query.json +1791 -1791
  60. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  61. package/out/src/FieldLayout.sol/FieldLayoutLib.json +47 -47
  62. package/out/src/IStore.sol/IStore.json +21 -21
  63. package/out/src/IStore.sol/IStoreData.json +21 -21
  64. package/out/src/IStore.sol/IStoreRead.json +21 -21
  65. package/out/src/IStore.sol/IStoreRegistration.json +21 -21
  66. package/out/src/IStore.sol/IStoreWrite.json +21 -21
  67. package/out/src/Memory.sol/Memory.json +4 -4
  68. package/out/src/Schema.sol/SchemaInstance.json +42 -42
  69. package/out/src/Schema.sol/SchemaLib.json +42 -42
  70. package/out/src/Slice.sol/SliceInstance.json +4 -4
  71. package/out/src/Slice.sol/SliceLib.json +4 -4
  72. package/out/src/StoreCore.sol/StoreCore.json +294 -294
  73. package/out/src/StoreCore.sol/StoreCoreInternal.json +294 -294
  74. package/out/src/StoreSwitch.sol/StoreSwitch.json +23 -23
  75. package/out/src/WorldContext.sol/WorldContextConsumer.json +22 -22
  76. package/out/src/WorldContext.sol/WorldContextProvider.json +22 -22
  77. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +14 -14
  78. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +14 -14
  79. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +297 -297
  80. package/package.json +8 -8
  81. package/src/interfaces/IBaseWorld.sol +1 -3
  82. package/src/interfaces/IUniqueEntitySystem.sol +2 -3
  83. package/src/modules/keysintable/KeysInTableModule.sol +1 -1
  84. package/src/modules/keyswithvalue/KeysWithValueHook.sol +1 -1
  85. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  86. package/src/modules/std-delegations/StandardDelegationsModule.sol +1 -1
  87. package/src/modules/uniqueentity/UniqueEntityModule.sol +1 -1
  88. package/src/modules/uniqueentity/getUniqueEntity.sol +2 -2
  89. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  90. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -16
  91. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -197
@@ -487,16 +487,16 @@
487
487
  32669
488
488
  ],
489
489
  "ERC165_INTERFACE_ID": [
490
- 33310
490
+ 33412
491
491
  ],
492
492
  "IWorldContextConsumer": [
493
- 33456
493
+ 33545
494
494
  ],
495
495
  "StoreSwitch": [
496
496
  41001
497
497
  ],
498
498
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
499
- 33438
499
+ 33527
500
500
  ],
501
501
  "WorldContextConsumer": [
502
502
  32724
@@ -584,7 +584,7 @@
584
584
  "file": "./interfaces/IERC165.sol",
585
585
  "nameLocation": "-1:-1:-1",
586
586
  "scope": 32874,
587
- "sourceUnit": 33320,
587
+ "sourceUnit": 33422,
588
588
  "symbolAliases": [
589
589
  {
590
590
  "foreign": {
@@ -592,7 +592,7 @@
592
592
  "name": "ERC165_INTERFACE_ID",
593
593
  "nodeType": "Identifier",
594
594
  "overloadedDeclarations": [],
595
- "referencedDeclaration": 33310,
595
+ "referencedDeclaration": 33412,
596
596
  "src": "194:19:33",
597
597
  "typeDescriptions": {}
598
598
  },
@@ -610,7 +610,7 @@
610
610
  "file": "./interfaces/IWorldContextConsumer.sol",
611
611
  "nameLocation": "-1:-1:-1",
612
612
  "scope": 32874,
613
- "sourceUnit": 33457,
613
+ "sourceUnit": 33546,
614
614
  "symbolAliases": [
615
615
  {
616
616
  "foreign": {
@@ -618,7 +618,7 @@
618
618
  "name": "IWorldContextConsumer",
619
619
  "nodeType": "Identifier",
620
620
  "overloadedDeclarations": [],
621
- "referencedDeclaration": 33456,
621
+ "referencedDeclaration": 33545,
622
622
  "src": "258:21:33",
623
623
  "typeDescriptions": {}
624
624
  },
@@ -630,7 +630,7 @@
630
630
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
631
631
  "nodeType": "Identifier",
632
632
  "overloadedDeclarations": [],
633
- "referencedDeclaration": 33438,
633
+ "referencedDeclaration": 33527,
634
634
  "src": "281:35:33",
635
635
  "typeDescriptions": {}
636
636
  },
@@ -997,7 +997,7 @@
997
997
  ]
998
998
  },
999
999
  "baseFunctions": [
1000
- 33445
1000
+ 33534
1001
1001
  ],
1002
1002
  "functionSelector": "119df25f",
1003
1003
  "implemented": true,
@@ -1146,7 +1146,7 @@
1146
1146
  ]
1147
1147
  },
1148
1148
  "baseFunctions": [
1149
- 33450
1149
+ 33539
1150
1150
  ],
1151
1151
  "functionSelector": "45ec9354",
1152
1152
  "implemented": true,
@@ -1266,7 +1266,7 @@
1266
1266
  ]
1267
1267
  },
1268
1268
  "baseFunctions": [
1269
- 33455
1269
+ 33544
1270
1270
  ],
1271
1271
  "functionSelector": "e1af802c",
1272
1272
  "implemented": true,
@@ -1371,7 +1371,7 @@
1371
1371
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
1372
1372
  "nodeType": "Identifier",
1373
1373
  "overloadedDeclarations": [],
1374
- "referencedDeclaration": 33438,
1374
+ "referencedDeclaration": 33527,
1375
1375
  "src": "1749:35:33",
1376
1376
  "typeDescriptions": {
1377
1377
  "typeIdentifier": "t_bytes4",
@@ -1415,7 +1415,7 @@
1415
1415
  "name": "ERC165_INTERFACE_ID",
1416
1416
  "nodeType": "Identifier",
1417
1417
  "overloadedDeclarations": [],
1418
- "referencedDeclaration": 33310,
1418
+ "referencedDeclaration": 33412,
1419
1419
  "src": "1803:19:33",
1420
1420
  "typeDescriptions": {
1421
1421
  "typeIdentifier": "t_bytes4",
@@ -1442,7 +1442,7 @@
1442
1442
  ]
1443
1443
  },
1444
1444
  "baseFunctions": [
1445
- 33318
1445
+ 33420
1446
1446
  ],
1447
1447
  "functionSelector": "01ffc9a7",
1448
1448
  "implemented": true,
@@ -1534,7 +1534,7 @@
1534
1534
  "706:21:33"
1535
1535
  ],
1536
1536
  "nodeType": "IdentifierPath",
1537
- "referencedDeclaration": 33456,
1537
+ "referencedDeclaration": 33545,
1538
1538
  "src": "706:21:33"
1539
1539
  },
1540
1540
  "id": 32671,
@@ -1548,8 +1548,8 @@
1548
1548
  "fullyImplemented": true,
1549
1549
  "linearizedBaseContracts": [
1550
1550
  32724,
1551
- 33456,
1552
- 33319
1551
+ 33545,
1552
+ 33421
1553
1553
  ],
1554
1554
  "name": "WorldContextConsumer",
1555
1555
  "nameLocation": "682:20:33",
@@ -364,16 +364,16 @@
364
364
  32669
365
365
  ],
366
366
  "ERC165_INTERFACE_ID": [
367
- 33310
367
+ 33412
368
368
  ],
369
369
  "IWorldContextConsumer": [
370
- 33456
370
+ 33545
371
371
  ],
372
372
  "StoreSwitch": [
373
373
  41001
374
374
  ],
375
375
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
376
- 33438
376
+ 33527
377
377
  ],
378
378
  "WorldContextConsumer": [
379
379
  32724
@@ -461,7 +461,7 @@
461
461
  "file": "./interfaces/IERC165.sol",
462
462
  "nameLocation": "-1:-1:-1",
463
463
  "scope": 32874,
464
- "sourceUnit": 33320,
464
+ "sourceUnit": 33422,
465
465
  "symbolAliases": [
466
466
  {
467
467
  "foreign": {
@@ -469,7 +469,7 @@
469
469
  "name": "ERC165_INTERFACE_ID",
470
470
  "nodeType": "Identifier",
471
471
  "overloadedDeclarations": [],
472
- "referencedDeclaration": 33310,
472
+ "referencedDeclaration": 33412,
473
473
  "src": "194:19:33",
474
474
  "typeDescriptions": {}
475
475
  },
@@ -487,7 +487,7 @@
487
487
  "file": "./interfaces/IWorldContextConsumer.sol",
488
488
  "nameLocation": "-1:-1:-1",
489
489
  "scope": 32874,
490
- "sourceUnit": 33457,
490
+ "sourceUnit": 33546,
491
491
  "symbolAliases": [
492
492
  {
493
493
  "foreign": {
@@ -495,7 +495,7 @@
495
495
  "name": "IWorldContextConsumer",
496
496
  "nodeType": "Identifier",
497
497
  "overloadedDeclarations": [],
498
- "referencedDeclaration": 33456,
498
+ "referencedDeclaration": 33545,
499
499
  "src": "258:21:33",
500
500
  "typeDescriptions": {}
501
501
  },
@@ -507,7 +507,7 @@
507
507
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
508
508
  "nodeType": "Identifier",
509
509
  "overloadedDeclarations": [],
510
- "referencedDeclaration": 33438,
510
+ "referencedDeclaration": 33527,
511
511
  "src": "281:35:33",
512
512
  "typeDescriptions": {}
513
513
  },
@@ -874,7 +874,7 @@
874
874
  ]
875
875
  },
876
876
  "baseFunctions": [
877
- 33445
877
+ 33534
878
878
  ],
879
879
  "functionSelector": "119df25f",
880
880
  "implemented": true,
@@ -1023,7 +1023,7 @@
1023
1023
  ]
1024
1024
  },
1025
1025
  "baseFunctions": [
1026
- 33450
1026
+ 33539
1027
1027
  ],
1028
1028
  "functionSelector": "45ec9354",
1029
1029
  "implemented": true,
@@ -1143,7 +1143,7 @@
1143
1143
  ]
1144
1144
  },
1145
1145
  "baseFunctions": [
1146
- 33455
1146
+ 33544
1147
1147
  ],
1148
1148
  "functionSelector": "e1af802c",
1149
1149
  "implemented": true,
@@ -1248,7 +1248,7 @@
1248
1248
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
1249
1249
  "nodeType": "Identifier",
1250
1250
  "overloadedDeclarations": [],
1251
- "referencedDeclaration": 33438,
1251
+ "referencedDeclaration": 33527,
1252
1252
  "src": "1749:35:33",
1253
1253
  "typeDescriptions": {
1254
1254
  "typeIdentifier": "t_bytes4",
@@ -1292,7 +1292,7 @@
1292
1292
  "name": "ERC165_INTERFACE_ID",
1293
1293
  "nodeType": "Identifier",
1294
1294
  "overloadedDeclarations": [],
1295
- "referencedDeclaration": 33310,
1295
+ "referencedDeclaration": 33412,
1296
1296
  "src": "1803:19:33",
1297
1297
  "typeDescriptions": {
1298
1298
  "typeIdentifier": "t_bytes4",
@@ -1319,7 +1319,7 @@
1319
1319
  ]
1320
1320
  },
1321
1321
  "baseFunctions": [
1322
- 33318
1322
+ 33420
1323
1323
  ],
1324
1324
  "functionSelector": "01ffc9a7",
1325
1325
  "implemented": true,
@@ -1411,7 +1411,7 @@
1411
1411
  "706:21:33"
1412
1412
  ],
1413
1413
  "nodeType": "IdentifierPath",
1414
- "referencedDeclaration": 33456,
1414
+ "referencedDeclaration": 33545,
1415
1415
  "src": "706:21:33"
1416
1416
  },
1417
1417
  "id": 32671,
@@ -1425,8 +1425,8 @@
1425
1425
  "fullyImplemented": true,
1426
1426
  "linearizedBaseContracts": [
1427
1427
  32724,
1428
- 33456,
1429
- 33319
1428
+ 33545,
1429
+ 33421
1430
1430
  ],
1431
1431
  "name": "WorldContextConsumer",
1432
1432
  "nameLocation": "682:20:33",
@@ -123,10 +123,10 @@
123
123
  33726
124
124
  ],
125
125
  "ROOT_NAME": [
126
- 33168
126
+ 33343
127
127
  ],
128
128
  "ROOT_NAMESPACE": [
129
- 33165
129
+ 33340
130
130
  ],
131
131
  "ROOT_NAMESPACE_STRING": [
132
132
  32903
@@ -250,7 +250,7 @@
250
250
  "file": "./constants.sol",
251
251
  "nameLocation": "-1:-1:-1",
252
252
  "scope": 33156,
253
- "sourceUnit": 33202,
253
+ "sourceUnit": 33377,
254
254
  "symbolAliases": [
255
255
  {
256
256
  "foreign": {
@@ -258,7 +258,7 @@
258
258
  "name": "ROOT_NAMESPACE",
259
259
  "nodeType": "Identifier",
260
260
  "overloadedDeclarations": [],
261
- "referencedDeclaration": 33165,
261
+ "referencedDeclaration": 33340,
262
262
  "src": "224:14:34",
263
263
  "typeDescriptions": {}
264
264
  },
@@ -270,7 +270,7 @@
270
270
  "name": "ROOT_NAME",
271
271
  "nodeType": "Identifier",
272
272
  "overloadedDeclarations": [],
273
- "referencedDeclaration": 33168,
273
+ "referencedDeclaration": 33343,
274
274
  "src": "240:9:34",
275
275
  "typeDescriptions": {}
276
276
  },
@@ -3599,7 +3599,7 @@
3599
3599
  "name": "ROOT_NAMESPACE",
3600
3600
  "nodeType": "Identifier",
3601
3601
  "overloadedDeclarations": [],
3602
- "referencedDeclaration": 33165,
3602
+ "referencedDeclaration": 33340,
3603
3603
  "src": "3094:14:34",
3604
3604
  "typeDescriptions": {
3605
3605
  "typeIdentifier": "t_bytes14",
@@ -3694,7 +3694,7 @@
3694
3694
  "name": "ROOT_NAME",
3695
3695
  "nodeType": "Identifier",
3696
3696
  "overloadedDeclarations": [],
3697
- "referencedDeclaration": 33168,
3697
+ "referencedDeclaration": 33343,
3698
3698
  "src": "3195:9:34",
3699
3699
  "typeDescriptions": {
3700
3700
  "typeIdentifier": "t_bytes16",
@@ -123,10 +123,10 @@
123
123
  33726
124
124
  ],
125
125
  "ROOT_NAME": [
126
- 33168
126
+ 33343
127
127
  ],
128
128
  "ROOT_NAMESPACE": [
129
- 33165
129
+ 33340
130
130
  ],
131
131
  "ROOT_NAMESPACE_STRING": [
132
132
  32903
@@ -250,7 +250,7 @@
250
250
  "file": "./constants.sol",
251
251
  "nameLocation": "-1:-1:-1",
252
252
  "scope": 33156,
253
- "sourceUnit": 33202,
253
+ "sourceUnit": 33377,
254
254
  "symbolAliases": [
255
255
  {
256
256
  "foreign": {
@@ -258,7 +258,7 @@
258
258
  "name": "ROOT_NAMESPACE",
259
259
  "nodeType": "Identifier",
260
260
  "overloadedDeclarations": [],
261
- "referencedDeclaration": 33165,
261
+ "referencedDeclaration": 33340,
262
262
  "src": "224:14:34",
263
263
  "typeDescriptions": {}
264
264
  },
@@ -270,7 +270,7 @@
270
270
  "name": "ROOT_NAME",
271
271
  "nodeType": "Identifier",
272
272
  "overloadedDeclarations": [],
273
- "referencedDeclaration": 33168,
273
+ "referencedDeclaration": 33343,
274
274
  "src": "240:9:34",
275
275
  "typeDescriptions": {}
276
276
  },
@@ -3599,7 +3599,7 @@
3599
3599
  "name": "ROOT_NAMESPACE",
3600
3600
  "nodeType": "Identifier",
3601
3601
  "overloadedDeclarations": [],
3602
- "referencedDeclaration": 33165,
3602
+ "referencedDeclaration": 33340,
3603
3603
  "src": "3094:14:34",
3604
3604
  "typeDescriptions": {
3605
3605
  "typeIdentifier": "t_bytes14",
@@ -3694,7 +3694,7 @@
3694
3694
  "name": "ROOT_NAME",
3695
3695
  "nodeType": "Identifier",
3696
3696
  "overloadedDeclarations": [],
3697
- "referencedDeclaration": 33168,
3697
+ "referencedDeclaration": 33343,
3698
3698
  "src": "3195:9:34",
3699
3699
  "typeDescriptions": {
3700
3700
  "typeIdentifier": "t_bytes16",