@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
@@ -693,13 +693,13 @@
693
693
  "id": 39706,
694
694
  "exportedSymbols": {
695
695
  "ERC165_INTERFACE_ID": [
696
- 70716
696
+ 70704
697
697
  ],
698
698
  "FieldLayout": [
699
699
  34805
700
700
  ],
701
701
  "IStoreHook": [
702
- 67842
702
+ 67830
703
703
  ],
704
704
  "PackedCounter": [
705
705
  35744
@@ -708,7 +708,7 @@
708
708
  36365
709
709
  ],
710
710
  "STORE_HOOK_INTERFACE_ID": [
711
- 67709
711
+ 67697
712
712
  ],
713
713
  "StoreHook": [
714
714
  39705
@@ -738,7 +738,7 @@
738
738
  "file": "./IStoreHook.sol",
739
739
  "nameLocation": "-1:-1:-1",
740
740
  "scope": 39706,
741
- "sourceUnit": 67843,
741
+ "sourceUnit": 67831,
742
742
  "symbolAliases": [
743
743
  {
744
744
  "foreign": {
@@ -746,7 +746,7 @@
746
746
  "name": "IStoreHook",
747
747
  "nodeType": "Identifier",
748
748
  "overloadedDeclarations": [],
749
- "referencedDeclaration": 67842,
749
+ "referencedDeclaration": 67830,
750
750
  "src": "68:10:67",
751
751
  "typeDescriptions": {}
752
752
  },
@@ -758,7 +758,7 @@
758
758
  "name": "STORE_HOOK_INTERFACE_ID",
759
759
  "nodeType": "Identifier",
760
760
  "overloadedDeclarations": [],
761
- "referencedDeclaration": 67709,
761
+ "referencedDeclaration": 67697,
762
762
  "src": "80:23:67",
763
763
  "typeDescriptions": {}
764
764
  },
@@ -776,7 +776,7 @@
776
776
  "file": "./IERC165.sol",
777
777
  "nameLocation": "-1:-1:-1",
778
778
  "scope": 39706,
779
- "sourceUnit": 70726,
779
+ "sourceUnit": 70714,
780
780
  "symbolAliases": [
781
781
  {
782
782
  "foreign": {
@@ -784,7 +784,7 @@
784
784
  "name": "ERC165_INTERFACE_ID",
785
785
  "nodeType": "Identifier",
786
786
  "overloadedDeclarations": [],
787
- "referencedDeclaration": 70716,
787
+ "referencedDeclaration": 70704,
788
788
  "src": "140:19:67",
789
789
  "typeDescriptions": {}
790
790
  },
@@ -927,7 +927,7 @@
927
927
  "name": "STORE_HOOK_INTERFACE_ID",
928
928
  "nodeType": "Identifier",
929
929
  "overloadedDeclarations": [],
930
- "referencedDeclaration": 67709,
930
+ "referencedDeclaration": 67697,
931
931
  "src": "566:23:67",
932
932
  "typeDescriptions": {
933
933
  "typeIdentifier": "t_bytes4",
@@ -971,7 +971,7 @@
971
971
  "name": "ERC165_INTERFACE_ID",
972
972
  "nodeType": "Identifier",
973
973
  "overloadedDeclarations": [],
974
- "referencedDeclaration": 70716,
974
+ "referencedDeclaration": 70704,
975
975
  "src": "608:19:67",
976
976
  "typeDescriptions": {
977
977
  "typeIdentifier": "t_bytes4",
@@ -998,7 +998,7 @@
998
998
  ]
999
999
  },
1000
1000
  "baseFunctions": [
1001
- 70724
1001
+ 70712
1002
1002
  ],
1003
1003
  "functionSelector": "01ffc9a7",
1004
1004
  "implemented": true,
@@ -1099,7 +1099,7 @@
1099
1099
  "name": "StoreHook_NotImplemented",
1100
1100
  "nodeType": "Identifier",
1101
1101
  "overloadedDeclarations": [],
1102
- "referencedDeclaration": 67713,
1102
+ "referencedDeclaration": 67701,
1103
1103
  "src": "805:24:67",
1104
1104
  "typeDescriptions": {
1105
1105
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -1129,7 +1129,7 @@
1129
1129
  ]
1130
1130
  },
1131
1131
  "baseFunctions": [
1132
- 67732
1132
+ 67720
1133
1133
  ],
1134
1134
  "functionSelector": "57066c9c",
1135
1135
  "implemented": true,
@@ -1376,7 +1376,7 @@
1376
1376
  "name": "StoreHook_NotImplemented",
1377
1377
  "nodeType": "Identifier",
1378
1378
  "overloadedDeclarations": [],
1379
- "referencedDeclaration": 67713,
1379
+ "referencedDeclaration": 67701,
1380
1380
  "src": "1008:24:67",
1381
1381
  "typeDescriptions": {
1382
1382
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -1406,7 +1406,7 @@
1406
1406
  ]
1407
1407
  },
1408
1408
  "baseFunctions": [
1409
- 67751
1409
+ 67739
1410
1410
  ],
1411
1411
  "functionSelector": "5b28cdaf",
1412
1412
  "implemented": true,
@@ -1653,7 +1653,7 @@
1653
1653
  "name": "StoreHook_NotImplemented",
1654
1654
  "nodeType": "Identifier",
1655
1655
  "overloadedDeclarations": [],
1656
- "referencedDeclaration": 67713,
1656
+ "referencedDeclaration": 67701,
1657
1657
  "src": "1157:24:67",
1658
1658
  "typeDescriptions": {
1659
1659
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -1683,7 +1683,7 @@
1683
1683
  ]
1684
1684
  },
1685
1685
  "baseFunctions": [
1686
- 67764
1686
+ 67752
1687
1687
  ],
1688
1688
  "functionSelector": "964f667d",
1689
1689
  "implemented": true,
@@ -1856,7 +1856,7 @@
1856
1856
  "name": "StoreHook_NotImplemented",
1857
1857
  "nodeType": "Identifier",
1858
1858
  "overloadedDeclarations": [],
1859
- "referencedDeclaration": 67713,
1859
+ "referencedDeclaration": 67701,
1860
1860
  "src": "1305:24:67",
1861
1861
  "typeDescriptions": {
1862
1862
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -1886,7 +1886,7 @@
1886
1886
  ]
1887
1887
  },
1888
1888
  "baseFunctions": [
1889
- 67777
1889
+ 67765
1890
1890
  ],
1891
1891
  "functionSelector": "a8ba8721",
1892
1892
  "implemented": true,
@@ -2059,7 +2059,7 @@
2059
2059
  "name": "StoreHook_NotImplemented",
2060
2060
  "nodeType": "Identifier",
2061
2061
  "overloadedDeclarations": [],
2062
- "referencedDeclaration": 67713,
2062
+ "referencedDeclaration": 67701,
2063
2063
  "src": "1517:24:67",
2064
2064
  "typeDescriptions": {
2065
2065
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -2089,7 +2089,7 @@
2089
2089
  ]
2090
2090
  },
2091
2091
  "baseFunctions": [
2092
- 67797
2092
+ 67785
2093
2093
  ],
2094
2094
  "functionSelector": "55eb5a28",
2095
2095
  "implemented": true,
@@ -2353,7 +2353,7 @@
2353
2353
  "name": "StoreHook_NotImplemented",
2354
2354
  "nodeType": "Identifier",
2355
2355
  "overloadedDeclarations": [],
2356
- "referencedDeclaration": 67713,
2356
+ "referencedDeclaration": 67701,
2357
2357
  "src": "1728:24:67",
2358
2358
  "typeDescriptions": {
2359
2359
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -2383,7 +2383,7 @@
2383
2383
  ]
2384
2384
  },
2385
2385
  "baseFunctions": [
2386
- 67817
2386
+ 67805
2387
2387
  ],
2388
2388
  "functionSelector": "63584533",
2389
2389
  "implemented": true,
@@ -2647,7 +2647,7 @@
2647
2647
  "name": "StoreHook_NotImplemented",
2648
2648
  "nodeType": "Identifier",
2649
2649
  "overloadedDeclarations": [],
2650
- "referencedDeclaration": 67713,
2650
+ "referencedDeclaration": 67701,
2651
2651
  "src": "1864:24:67",
2652
2652
  "typeDescriptions": {
2653
2653
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -2677,7 +2677,7 @@
2677
2677
  ]
2678
2678
  },
2679
2679
  "baseFunctions": [
2680
- 67829
2680
+ 67817
2681
2681
  ],
2682
2682
  "functionSelector": "9faeaf45",
2683
2683
  "implemented": true,
@@ -2833,7 +2833,7 @@
2833
2833
  "name": "StoreHook_NotImplemented",
2834
2834
  "nodeType": "Identifier",
2835
2835
  "overloadedDeclarations": [],
2836
- "referencedDeclaration": 67713,
2836
+ "referencedDeclaration": 67701,
2837
2837
  "src": "1999:24:67",
2838
2838
  "typeDescriptions": {
2839
2839
  "typeIdentifier": "t_function_error_pure$__$returns$__$",
@@ -2863,7 +2863,7 @@
2863
2863
  ]
2864
2864
  },
2865
2865
  "baseFunctions": [
2866
- 67841
2866
+ 67829
2867
2867
  ],
2868
2868
  "functionSelector": "83b5c95b",
2869
2869
  "implemented": true,
@@ -3010,7 +3010,7 @@
3010
3010
  "365:10:67"
3011
3011
  ],
3012
3012
  "nodeType": "IdentifierPath",
3013
- "referencedDeclaration": 67842,
3013
+ "referencedDeclaration": 67830,
3014
3014
  "src": "365:10:67"
3015
3015
  },
3016
3016
  "id": 39528,
@@ -3024,14 +3024,14 @@
3024
3024
  "fullyImplemented": true,
3025
3025
  "linearizedBaseContracts": [
3026
3026
  39705,
3027
- 67842,
3028
- 70725
3027
+ 67830,
3028
+ 70713
3029
3029
  ],
3030
3030
  "name": "StoreHook",
3031
3031
  "nameLocation": "352:9:67",
3032
3032
  "scope": 39706,
3033
3033
  "usedErrors": [
3034
- 67713
3034
+ 67701
3035
3035
  ],
3036
3036
  "usedEvents": []
3037
3037
  }
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "deployedBytecode": {
68
68
  "object": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063119df25f1461007957806345ec9354146100a6578063e1af802c146100d7575b600080fd5b61006461005f366004610205565b6100df565b60405190151581526020015b60405180910390f35b610081610178565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610070565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601358152602001610070565b6100816101aa565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fb421288000000000000000000000000000000000000000000000000000000000148061017257507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcc36013560601c806101a75750335b90565b60006101b46101b9565b905090565b7f629a4c26e296b22a8e0856e9f6ecb2d1008d7e00081111962cd175fa7488e1755460009073ffffffffffffffffffffffffffffffffffffffff1680610200573391505090565b919050565b60006020828403121561021757600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461024757600080fd5b939250505056fea164736f6c6343000815000a",
69
- "sourceMap": "244:44:89:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1639:188:90;;;;;;:::i;:::-;;:::i;:::-;;;516:14:140;;509:22;491:41;;479:2;464:18;1639:188:90;;;;;;;;799:379;;;:::i;:::-;;;719:42:140;707:55;;;689:74;;677:2;662:18;799:379:90;543:226:140;1248:212:90;;;1426:23;1430:14;1426:23;1413:37;920:25:140;;908:2;893:18;1248:212:90;774:177:140;1464:95:90;;;:::i;1639:188::-;1715:4;1734:50;;;245:152:104;1734:50:90;;:88;;-1:-1:-1;1788:34:90;;;97::99;1788::90;1734:88;1727:95;1639:188;-1:-1:-1;;1639:188:90:o;799:379::-;1081:34;1085:14;1081:34;1068:48;1064:2;1060:57;;1128:45;;-1:-1:-1;1163:10:90;1128:45;799:379;:::o;1464:95::-;1503:7;1525:29;:27;:29::i;:::-;1518:36;;1464:95;:::o;1091:227:68:-;622:42;1180:22;1141:7;;1180:22;;;1208:106;;1256:10;1249:17;;;1091:227;:::o;1208:106::-;1294:13;1091:227;-1:-1:-1;1091:227:68:o;14:332:140:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;199:117;335:5;14:332;-1:-1:-1;;;14:332:140:o",
69
+ "sourceMap": "244:44:89:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1639:188:90;;;;;;:::i;:::-;;:::i;:::-;;;516:14:139;;509:22;491:41;;479:2;464:18;1639:188:90;;;;;;;;799:379;;;:::i;:::-;;;719:42:139;707:55;;;689:74;;677:2;662:18;799:379:90;543:226:139;1248:212:90;;;1426:23;1430:14;1426:23;1413:37;920:25:139;;908:2;893:18;1248:212:90;774:177:139;1464:95:90;;;:::i;1639:188::-;1715:4;1734:50;;;245:152:104;1734:50:90;;:88;;-1:-1:-1;1788:34:90;;;97::101;1788::90;1734:88;1727:95;1639:188;-1:-1:-1;;1639:188:90:o;799:379::-;1081:34;1085:14;1081:34;1068:48;1064:2;1060:57;;1128:45;;-1:-1:-1;1163:10:90;1128:45;799:379;:::o;1464:95::-;1503:7;1525:29;:27;:29::i;:::-;1518:36;;1464:95;:::o;1091:227:68:-;622:42;1180:22;1141:7;;1180:22;;;1208:106;;1256:10;1249:17;;;1091:227;:::o;1208:106::-;1294:13;1091:227;-1:-1:-1;1091:227:68:o;14:332:139:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;199:117;335:5;14:332;-1:-1:-1;;;14:332:139:o",
70
70
  "linkReferences": {}
71
71
  },
72
72
  "methodIdentifiers": {
@@ -569,8 +569,8 @@
569
569
  "linearizedBaseContracts": [
570
570
  48705,
571
571
  48776,
572
- 70891,
573
- 70853
572
+ 70879,
573
+ 70841
574
574
  ],
575
575
  "name": "System",
576
576
  "nameLocation": "253:6:89",