@latticexyz/world 2.0.0-alpha.1.21 → 2.0.0-alpha.1.22

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 (133) hide show
  1. package/abi/AccessControl.sol/AccessControl.json +241 -241
  2. package/abi/AccessManagementSystem.sol/AccessManagementSystem.json +157 -157
  3. package/abi/AddressArray.sol/AddressArray.json +1124 -1124
  4. package/abi/ArrayLib.sol/ArrayLib.json +139 -139
  5. package/abi/Bool.sol/Bool.json +704 -704
  6. package/abi/Bytes.sol/Bytes.json +6 -6
  7. package/abi/Call.sol/Call.json +112 -112
  8. package/abi/Callbacks.sol/Callbacks.json +1100 -1100
  9. package/abi/CoreModule.sol/CoreModule.json +542 -542
  10. package/abi/CoreSystem.sol/CoreSystem.json +92 -92
  11. package/abi/DecodeSlice.sol/DecodeSlice.json +3891 -3891
  12. package/abi/EncodeArray.sol/EncodeArray.json +3344 -3344
  13. package/abi/FunctionSelectors.sol/FunctionSelectors.json +1678 -1678
  14. package/abi/Hooks.sol/Hooks.json +1100 -1100
  15. package/abi/IAccessManagementSystem.sol/IAccessManagementSystem.json +32 -32
  16. package/abi/IBaseWorld.sol/IBaseWorld.json +224 -99
  17. package/abi/ICoreSystem.sol/ICoreSystem.json +6 -6
  18. package/abi/IModule.sol/IModule.json +28 -28
  19. package/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +40 -40
  20. package/abi/IStore.sol/IStore.json +551 -349
  21. package/abi/IStore.sol/IStoreData.json +551 -349
  22. package/abi/IStore.sol/IStoreHook.json +495 -349
  23. package/abi/IStore.sol/IStoreRead.json +495 -349
  24. package/abi/IStore.sol/IStoreRegistration.json +495 -349
  25. package/abi/IStore.sol/IStoreWrite.json +551 -349
  26. package/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +80 -80
  27. package/abi/ISystemHook.sol/ISystemHook.json +19 -19
  28. package/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  29. package/abi/IWorldKernel.sol/IWorldCall.json +455 -276
  30. package/abi/IWorldKernel.sol/IWorldData.json +524 -276
  31. package/abi/IWorldKernel.sol/IWorldKernel.json +524 -276
  32. package/abi/IWorldKernel.sol/IWorldModuleInstallation.json +455 -276
  33. package/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +198 -198
  34. package/abi/InstalledModules.sol/InstalledModules.json +1351 -1351
  35. package/abi/KeysWithValue.sol/KeysWithValue.json +1124 -1124
  36. package/abi/KeysWithValueHook.sol/KeysWithValueHook.json +416 -416
  37. package/abi/KeysWithValueModule.sol/KeysWithValueModule.json +293 -293
  38. package/abi/Memory.sol/Memory.json +131 -131
  39. package/abi/Mixed.sol/Mixed.json +2781 -2781
  40. package/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +138 -138
  41. package/abi/NamespaceOwner.sol/NamespaceOwner.json +782 -782
  42. package/abi/PackedCounter.sol/PackedCounterLib.json +665 -665
  43. package/abi/ResourceAccess.sol/ResourceAccess.json +926 -926
  44. package/abi/ResourceSelector.sol/ResourceSelector.json +253 -253
  45. package/abi/ResourceType.sol/ResourceType.json +831 -831
  46. package/abi/Schema.sol/SchemaLib.json +1469 -1469
  47. package/abi/SchemaType.sol/SchemaType.json +315 -315
  48. package/abi/Slice.sol/SliceInstance.json +429 -429
  49. package/abi/Slice.sol/SliceLib.json +429 -429
  50. package/abi/Storage.sol/Storage.json +1024 -1061
  51. package/abi/StoreCore.sol/StoreCore.json +10434 -7652
  52. package/abi/StoreCore.sol/StoreCoreExtended.json +10434 -7652
  53. package/abi/StoreCore.sol/StoreCoreInternal.json +10434 -7652
  54. package/abi/StoreMetadata.sol/StoreMetadata.json +2116 -2116
  55. package/abi/StoreRead.sol/StoreRead.json +247 -247
  56. package/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +339 -339
  57. package/abi/StoreSwitch.sol/StoreSwitch.json +1814 -1359
  58. package/abi/System.sol/System.json +31 -31
  59. package/abi/SystemRegistry.sol/SystemRegistry.json +794 -794
  60. package/abi/Systems.sol/Systems.json +1412 -1412
  61. package/abi/TableId.sol/TableId.json +27 -27
  62. package/abi/Tables.sol/Tables.json +92 -92
  63. package/abi/TightCoder.sol/TightCoder.json +275 -275
  64. package/abi/Types.sol/Types.json +8 -8
  65. package/abi/UniqueEntity.sol/UniqueEntity.json +683 -683
  66. package/abi/UniqueEntityModule.sol/UniqueEntityModule.json +232 -232
  67. package/abi/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
  68. package/abi/Utils.sol/Utils.json +67 -67
  69. package/abi/Vector2.sol/Vector2.json +1473 -1473
  70. package/abi/World.sol/World.json +2426 -1491
  71. package/abi/WorldContext.sol/WorldContext.json +65 -65
  72. package/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1140 -1140
  73. package/abi/console.sol/console.json +11417 -11417
  74. package/abi/constants.sol/constants.json +34 -34
  75. package/abi/getKeysWithValue.sol/getKeysWithValue.json +129 -129
  76. package/abi/getTargetTableSelector.sol/getTargetTableSelector.json +75 -75
  77. package/abi/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  78. package/abi/interfaces/IErrors.sol/IErrors.json +57 -57
  79. package/abi/src/Bytes.sol/Bytes.json +1225 -1225
  80. package/abi/src/IStore.sol/IStore.json +727 -525
  81. package/abi/src/IStore.sol/IStoreData.json +727 -525
  82. package/abi/src/IStore.sol/IStoreHook.json +671 -525
  83. package/abi/src/IStore.sol/IStoreRead.json +671 -525
  84. package/abi/src/IStore.sol/IStoreRegistration.json +671 -525
  85. package/abi/src/IStore.sol/IStoreWrite.json +727 -525
  86. package/abi/src/Memory.sol/Memory.json +131 -131
  87. package/abi/src/PackedCounter.sol/PackedCounterLib.json +683 -683
  88. package/abi/src/Schema.sol/SchemaLib.json +1493 -1493
  89. package/abi/src/Slice.sol/SliceInstance.json +429 -429
  90. package/abi/src/Slice.sol/SliceLib.json +429 -429
  91. package/abi/src/StoreCore.sol/StoreCore.json +12500 -9718
  92. package/abi/src/StoreCore.sol/StoreCoreExtended.json +12500 -9718
  93. package/abi/src/StoreCore.sol/StoreCoreInternal.json +12500 -9718
  94. package/abi/src/StoreSwitch.sol/StoreSwitch.json +1822 -1367
  95. package/abi/tightcoder/EncodeArray.sol/EncodeArray.json +3344 -3344
  96. package/package.json +6 -6
  97. package/src/World.sol +32 -0
  98. package/src/interfaces/IWorldKernel.sol +12 -0
  99. package/types/ethers-contracts/IBaseWorld.ts +116 -0
  100. package/types/ethers-contracts/IStore.sol/IStore.ts +55 -0
  101. package/types/ethers-contracts/IStore.sol/IStoreData.ts +55 -0
  102. package/types/ethers-contracts/IStore.sol/IStoreWrite.ts +55 -0
  103. package/types/ethers-contracts/IWorldKernel.sol/IWorldData.ts +61 -0
  104. package/types/ethers-contracts/IWorldKernel.sol/IWorldKernel.ts +61 -0
  105. package/types/ethers-contracts/World.ts +116 -0
  106. package/types/ethers-contracts/factories/AccessManagementSystem__factory.ts +1 -1
  107. package/types/ethers-contracts/factories/CoreModule__factory.ts +1 -1
  108. package/types/ethers-contracts/factories/CoreSystem__factory.ts +1 -1
  109. package/types/ethers-contracts/factories/IBaseWorld__factory.ts +61 -0
  110. package/types/ethers-contracts/factories/IStore.sol/IStoreData__factory.ts +28 -0
  111. package/types/ethers-contracts/factories/IStore.sol/IStoreWrite__factory.ts +28 -0
  112. package/types/ethers-contracts/factories/IStore.sol/IStore__factory.ts +28 -0
  113. package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldData__factory.ts +33 -0
  114. package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldKernel__factory.ts +33 -0
  115. package/types/ethers-contracts/factories/KeysWithValueHook__factory.ts +1 -1
  116. package/types/ethers-contracts/factories/KeysWithValueModule__factory.ts +1 -1
  117. package/types/ethers-contracts/factories/ModuleInstallationSystem__factory.ts +1 -1
  118. package/types/ethers-contracts/factories/StoreCore__factory.ts +1 -1
  119. package/types/ethers-contracts/factories/StoreRead__factory.ts +1 -1
  120. package/types/ethers-contracts/factories/StoreRegistrationSystem__factory.ts +1 -1
  121. package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
  122. package/types/ethers-contracts/factories/UniqueEntityModule__factory.ts +1 -1
  123. package/types/ethers-contracts/factories/UniqueEntitySystem__factory.ts +1 -1
  124. package/types/ethers-contracts/factories/WorldRegistrationSystem__factory.ts +1 -1
  125. package/types/ethers-contracts/factories/World__factory.ts +62 -1
  126. package/types/ethers-contracts/factories/src/IStore.sol/IStoreData__factory.ts +28 -0
  127. package/types/ethers-contracts/factories/src/IStore.sol/IStoreWrite__factory.ts +28 -0
  128. package/types/ethers-contracts/factories/src/IStore.sol/IStore__factory.ts +28 -0
  129. package/types/ethers-contracts/factories/src/StoreCore__factory.ts +1 -1
  130. package/types/ethers-contracts/factories/src/StoreSwitch__factory.ts +1 -1
  131. package/types/ethers-contracts/src/IStore.sol/IStore.ts +55 -0
  132. package/types/ethers-contracts/src/IStore.sol/IStoreData.ts +55 -0
  133. package/types/ethers-contracts/src/IStore.sol/IStoreWrite.ts +55 -0
@@ -63,17 +63,17 @@
63
63
  },
64
64
  "ast": {
65
65
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/TableId.sol",
66
- "id": 5562,
66
+ "id": 5823,
67
67
  "exportedSymbols": {
68
68
  "TableId": [
69
- 5561
69
+ 5822
70
70
  ]
71
71
  },
72
72
  "nodeType": "SourceUnit",
73
73
  "src": "32:173:10",
74
74
  "nodes": [
75
75
  {
76
- "id": 5544,
76
+ "id": 5805,
77
77
  "nodeType": "PragmaDirective",
78
78
  "src": "32:24:10",
79
79
  "nodes": [],
@@ -85,17 +85,17 @@
85
85
  ]
86
86
  },
87
87
  {
88
- "id": 5561,
88
+ "id": 5822,
89
89
  "nodeType": "ContractDefinition",
90
90
  "src": "58:146:10",
91
91
  "nodes": [
92
92
  {
93
- "id": 5560,
93
+ "id": 5821,
94
94
  "nodeType": "FunctionDefinition",
95
95
  "src": "78:124:10",
96
96
  "nodes": [],
97
97
  "body": {
98
- "id": 5559,
98
+ "id": 5820,
99
99
  "nodeType": "Block",
100
100
  "src": "151:51:10",
101
101
  "nodes": [],
@@ -106,11 +106,11 @@
106
106
  {
107
107
  "arguments": [
108
108
  {
109
- "id": 5555,
109
+ "id": 5816,
110
110
  "name": "tableId",
111
111
  "nodeType": "Identifier",
112
112
  "overloadedDeclarations": [],
113
- "referencedDeclaration": 5546,
113
+ "referencedDeclaration": 5807,
114
114
  "src": "188:7:10",
115
115
  "typeDescriptions": {
116
116
  "typeIdentifier": "t_bytes32",
@@ -126,7 +126,7 @@
126
126
  }
127
127
  ],
128
128
  "expression": {
129
- "id": 5553,
129
+ "id": 5814,
130
130
  "name": "abi",
131
131
  "nodeType": "Identifier",
132
132
  "overloadedDeclarations": [],
@@ -137,7 +137,7 @@
137
137
  "typeString": "abi"
138
138
  }
139
139
  },
140
- "id": 5554,
140
+ "id": 5815,
141
141
  "isConstant": false,
142
142
  "isLValue": false,
143
143
  "isPure": true,
@@ -150,7 +150,7 @@
150
150
  "typeString": "function () pure returns (bytes memory)"
151
151
  }
152
152
  },
153
- "id": 5556,
153
+ "id": 5817,
154
154
  "isConstant": false,
155
155
  "isLValue": false,
156
156
  "isPure": false,
@@ -173,7 +173,7 @@
173
173
  "typeString": "bytes memory"
174
174
  }
175
175
  ],
176
- "id": 5552,
176
+ "id": 5813,
177
177
  "isConstant": false,
178
178
  "isLValue": false,
179
179
  "isPure": true,
@@ -185,14 +185,14 @@
185
185
  "typeString": "type(string storage pointer)"
186
186
  },
187
187
  "typeName": {
188
- "id": 5551,
188
+ "id": 5812,
189
189
  "name": "string",
190
190
  "nodeType": "ElementaryTypeName",
191
191
  "src": "164:6:10",
192
192
  "typeDescriptions": {}
193
193
  }
194
194
  },
195
- "id": 5557,
195
+ "id": 5818,
196
196
  "isConstant": false,
197
197
  "isLValue": false,
198
198
  "isPure": false,
@@ -207,8 +207,8 @@
207
207
  "typeString": "string memory"
208
208
  }
209
209
  },
210
- "functionReturnParameters": 5550,
211
- "id": 5558,
210
+ "functionReturnParameters": 5811,
211
+ "id": 5819,
212
212
  "nodeType": "Return",
213
213
  "src": "157:40:10"
214
214
  }
@@ -220,17 +220,17 @@
220
220
  "name": "toString",
221
221
  "nameLocation": "87:8:10",
222
222
  "parameters": {
223
- "id": 5547,
223
+ "id": 5808,
224
224
  "nodeType": "ParameterList",
225
225
  "parameters": [
226
226
  {
227
227
  "constant": false,
228
- "id": 5546,
228
+ "id": 5807,
229
229
  "mutability": "mutable",
230
230
  "name": "tableId",
231
231
  "nameLocation": "104:7:10",
232
232
  "nodeType": "VariableDeclaration",
233
- "scope": 5560,
233
+ "scope": 5821,
234
234
  "src": "96:15:10",
235
235
  "stateVariable": false,
236
236
  "storageLocation": "default",
@@ -239,7 +239,7 @@
239
239
  "typeString": "bytes32"
240
240
  },
241
241
  "typeName": {
242
- "id": 5545,
242
+ "id": 5806,
243
243
  "name": "bytes32",
244
244
  "nodeType": "ElementaryTypeName",
245
245
  "src": "96:7:10",
@@ -254,17 +254,17 @@
254
254
  "src": "95:17:10"
255
255
  },
256
256
  "returnParameters": {
257
- "id": 5550,
257
+ "id": 5811,
258
258
  "nodeType": "ParameterList",
259
259
  "parameters": [
260
260
  {
261
261
  "constant": false,
262
- "id": 5549,
262
+ "id": 5810,
263
263
  "mutability": "mutable",
264
264
  "name": "",
265
265
  "nameLocation": "-1:-1:-1",
266
266
  "nodeType": "VariableDeclaration",
267
- "scope": 5560,
267
+ "scope": 5821,
268
268
  "src": "136:13:10",
269
269
  "stateVariable": false,
270
270
  "storageLocation": "memory",
@@ -273,7 +273,7 @@
273
273
  "typeString": "string"
274
274
  },
275
275
  "typeName": {
276
- "id": 5548,
276
+ "id": 5809,
277
277
  "name": "string",
278
278
  "nodeType": "ElementaryTypeName",
279
279
  "src": "136:6:10",
@@ -287,7 +287,7 @@
287
287
  ],
288
288
  "src": "135:15:10"
289
289
  },
290
- "scope": 5561,
290
+ "scope": 5822,
291
291
  "stateMutability": "pure",
292
292
  "virtual": false,
293
293
  "visibility": "internal"
@@ -300,11 +300,11 @@
300
300
  "contractKind": "library",
301
301
  "fullyImplemented": true,
302
302
  "linearizedBaseContracts": [
303
- 5561
303
+ 5822
304
304
  ],
305
305
  "name": "TableId",
306
306
  "nameLocation": "66:7:10",
307
- "scope": 5562,
307
+ "scope": 5823,
308
308
  "usedErrors": []
309
309
  }
310
310
  ],