@latticexyz/world-modules 2.0.0-main-e20633d4 → 2.0.0-main-071aadb9

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 (113) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +220 -220
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +4463 -4463
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
  5. package/out/DelegationControl.sol/DelegationControl.json +98 -98
  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 +3186 -3186
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +106 -100
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +98 -92
  14. package/out/IBaseWorld.sol/IBaseWorld.json +79 -79
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +92 -86
  16. package/out/ICoreSystem.sol/ICoreSystem.json +19 -13
  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 +52 -46
  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 +329 -323
  28. package/out/KeysInTable.sol/KeysInTable.json +18239 -18239
  29. package/out/KeysInTableHook.sol/KeysInTableHook.json +882 -882
  30. package/out/KeysInTableModule.sol/KeysInTableModule.json +564 -564
  31. package/out/KeysWithValue.sol/KeysWithValue.json +6661 -6661
  32. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1023 -1023
  33. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +450 -450
  34. package/out/Memory.sol/Memory.json +4 -4
  35. package/out/Module.sol/Module.json +88 -88
  36. package/out/ResourceIds.sol/ResourceIds.json +1237 -1231
  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 +330 -330
  43. package/out/Storage.sol/Storage.json +7 -7
  44. package/out/StoreCore.sol/StoreCore.json +101 -101
  45. package/out/StoreCore.sol/StoreCoreInternal.json +101 -101
  46. package/out/StoreHook.sol/StoreHook.json +368 -368
  47. package/out/StoreHooks.sol/StoreHooks.json +6042 -6042
  48. package/out/StoreSwitch.sol/StoreSwitch.json +13 -13
  49. package/out/System.sol/System.json +32 -32
  50. package/out/Tables.sol/Tables.json +10401 -10401
  51. package/out/TightCoder.sol/TightCoder.json +124 -124
  52. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +124 -124
  53. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3442 -3442
  54. package/out/UniqueEntity.sol/UniqueEntity.json +2344 -2344
  55. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +351 -351
  56. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +98 -98
  57. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4568 -4562
  58. package/out/WorldContext.sol/WorldContextConsumer.json +376 -376
  59. package/out/WorldContext.sol/WorldContextProvider.json +376 -376
  60. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  61. package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  62. package/out/constants.sol/LayoutOffsets.json +79 -79
  63. package/out/constants.sol/constants.json +115 -115
  64. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  65. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  66. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  67. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  68. package/out/hasKey.sol/hasKey.json +130 -130
  69. package/out/index.sol/index.json +53 -53
  70. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +186 -186
  71. package/out/leftMask.sol/leftMask.json +31 -31
  72. package/out/query.sol/query.json +1154 -1154
  73. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  74. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  75. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  76. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  77. package/out/src/IStore.sol/IStore.json +52 -52
  78. package/out/src/IWorldKernel.sol/IWorldCall.json +154 -154
  79. package/out/src/IWorldKernel.sol/IWorldKernel.json +154 -154
  80. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
  81. package/out/src/Memory.sol/Memory.json +91 -91
  82. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  83. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  84. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  85. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  86. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  87. package/out/src/Schema.sol/SchemaLib.json +790 -790
  88. package/out/src/Slice.sol/SliceInstance.json +430 -430
  89. package/out/src/Slice.sol/SliceLib.json +430 -430
  90. package/out/src/StoreCore.sol/StoreCore.json +4473 -4473
  91. package/out/src/StoreCore.sol/StoreCoreInternal.json +4473 -4473
  92. package/out/src/StoreSwitch.sol/StoreSwitch.json +2496 -2496
  93. package/out/src/WorldContext.sol/WorldContextConsumer.json +376 -376
  94. package/out/src/WorldContext.sol/WorldContextProvider.json +376 -376
  95. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  96. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  97. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  98. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  99. package/out/tables/ResourceIds.sol/ResourceIds.json +2889 -2883
  100. package/out/tables/Tables.sol/Tables.json +12187 -12187
  101. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  102. package/out/types.sol/types.json +41 -41
  103. package/out/version.sol/version.json +7 -7
  104. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  105. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  106. package/package.json +8 -8
  107. package/src/interfaces/IBaseWorld.sol +4 -2
  108. package/src/modules/keysintable/tables/KeysInTable.sol +357 -163
  109. package/src/modules/keysintable/tables/UsedKeysIndex.sol +116 -36
  110. package/src/modules/keyswithvalue/tables/KeysWithValue.sol +163 -69
  111. package/src/modules/std-delegations/tables/CallboundDelegations.sol +87 -26
  112. package/src/modules/std-delegations/tables/TimeboundDelegations.sol +87 -26
  113. package/src/modules/uniqueentity/tables/UniqueEntity.sol +87 -26
@@ -10,17 +10,17 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/leftMask.sol",
13
- "id": 18301,
13
+ "id": 18302,
14
14
  "exportedSymbols": {
15
15
  "leftMask": [
16
- 18300
16
+ 18301
17
17
  ]
18
18
  },
19
19
  "nodeType": "SourceUnit",
20
20
  "src": "32:1059:26",
21
21
  "nodes": [
22
22
  {
23
- "id": 18277,
23
+ "id": 18278,
24
24
  "nodeType": "PragmaDirective",
25
25
  "src": "32:25:26",
26
26
  "nodes": [],
@@ -32,24 +32,24 @@
32
32
  ]
33
33
  },
34
34
  {
35
- "id": 18300,
35
+ "id": 18301,
36
36
  "nodeType": "FunctionDefinition",
37
37
  "src": "950:140:26",
38
38
  "nodes": [],
39
39
  "body": {
40
- "id": 18299,
40
+ "id": 18300,
41
41
  "nodeType": "Block",
42
42
  "src": "1016:74:26",
43
43
  "nodes": [],
44
44
  "statements": [
45
45
  {
46
- "id": 18298,
46
+ "id": 18299,
47
47
  "nodeType": "UncheckedBlock",
48
48
  "src": "1020:68:26",
49
49
  "statements": [
50
50
  {
51
51
  "expression": {
52
- "id": 18296,
52
+ "id": 18297,
53
53
  "isConstant": false,
54
54
  "isLValue": false,
55
55
  "isPure": false,
@@ -65,7 +65,7 @@
65
65
  "typeIdentifier": "t_uint256",
66
66
  "typeString": "uint256"
67
67
  },
68
- "id": 18294,
68
+ "id": 18295,
69
69
  "isConstant": false,
70
70
  "isLValue": false,
71
71
  "isPure": false,
@@ -74,7 +74,7 @@
74
74
  "expression": {
75
75
  "arguments": [
76
76
  {
77
- "id": 18287,
77
+ "id": 18288,
78
78
  "isConstant": false,
79
79
  "isLValue": false,
80
80
  "isPure": true,
@@ -86,7 +86,7 @@
86
86
  "typeString": "type(uint256)"
87
87
  },
88
88
  "typeName": {
89
- "id": 18286,
89
+ "id": 18287,
90
90
  "name": "uint256",
91
91
  "nodeType": "ElementaryTypeName",
92
92
  "src": "1050:7:26",
@@ -101,7 +101,7 @@
101
101
  "typeString": "type(uint256)"
102
102
  }
103
103
  ],
104
- "id": 18285,
104
+ "id": 18286,
105
105
  "name": "type",
106
106
  "nodeType": "Identifier",
107
107
  "overloadedDeclarations": [],
@@ -112,7 +112,7 @@
112
112
  "typeString": "function () pure"
113
113
  }
114
114
  },
115
- "id": 18288,
115
+ "id": 18289,
116
116
  "isConstant": false,
117
117
  "isLValue": false,
118
118
  "isPure": true,
@@ -128,7 +128,7 @@
128
128
  "typeString": "type(uint256)"
129
129
  }
130
130
  },
131
- "id": 18289,
131
+ "id": 18290,
132
132
  "isConstant": false,
133
133
  "isLValue": false,
134
134
  "isPure": true,
@@ -151,17 +151,17 @@
151
151
  "typeIdentifier": "t_uint256",
152
152
  "typeString": "uint256"
153
153
  },
154
- "id": 18292,
154
+ "id": 18293,
155
155
  "isConstant": false,
156
156
  "isLValue": false,
157
157
  "isPure": false,
158
158
  "lValueRequested": false,
159
159
  "leftExpression": {
160
- "id": 18290,
160
+ "id": 18291,
161
161
  "name": "byteLength",
162
162
  "nodeType": "Identifier",
163
163
  "overloadedDeclarations": [],
164
- "referencedDeclaration": 18280,
164
+ "referencedDeclaration": 18281,
165
165
  "src": "1067:10:26",
166
166
  "typeDescriptions": {
167
167
  "typeIdentifier": "t_uint256",
@@ -172,7 +172,7 @@
172
172
  "operator": "*",
173
173
  "rightExpression": {
174
174
  "hexValue": "38",
175
- "id": 18291,
175
+ "id": 18292,
176
176
  "isConstant": false,
177
177
  "isLValue": false,
178
178
  "isPure": true,
@@ -193,7 +193,7 @@
193
193
  }
194
194
  }
195
195
  ],
196
- "id": 18293,
196
+ "id": 18294,
197
197
  "isConstant": false,
198
198
  "isInlineArray": false,
199
199
  "isLValue": false,
@@ -213,7 +213,7 @@
213
213
  }
214
214
  }
215
215
  ],
216
- "id": 18295,
216
+ "id": 18296,
217
217
  "isConstant": false,
218
218
  "isInlineArray": false,
219
219
  "isLValue": false,
@@ -231,8 +231,8 @@
231
231
  "typeString": "uint256"
232
232
  }
233
233
  },
234
- "functionReturnParameters": 18284,
235
- "id": 18297,
234
+ "functionReturnParameters": 18285,
235
+ "id": 18298,
236
236
  "nodeType": "Return",
237
237
  "src": "1036:47:26"
238
238
  }
@@ -241,7 +241,7 @@
241
241
  ]
242
242
  },
243
243
  "documentation": {
244
- "id": 18278,
244
+ "id": 18279,
245
245
  "nodeType": "StructuredDocumentation",
246
246
  "src": "256:693:26",
247
247
  "text": " @notice Computes a left-aligned byte mask based on the provided byte length.\n @dev The mask is used to extract a specified number of leftmost bytes.\n For byte lengths greater than or equal to 32, it returns the max value of type(uint256).\n Examples:\n length 0: 0x000000...000000\n length 1: 0xff0000...000000\n length 2: 0xffff00...000000\n ...\n length 30: 0xffffff...ff0000\n length 31: 0xffffff...ffff00\n length 32+: 0xffffff...ffffff\n @param byteLength The number of leftmost bytes to be masked.\n @return mask A left-aligned byte mask corresponding to the specified byte length."
@@ -252,17 +252,17 @@
252
252
  "name": "leftMask",
253
253
  "nameLocation": "959:8:26",
254
254
  "parameters": {
255
- "id": 18281,
255
+ "id": 18282,
256
256
  "nodeType": "ParameterList",
257
257
  "parameters": [
258
258
  {
259
259
  "constant": false,
260
- "id": 18280,
260
+ "id": 18281,
261
261
  "mutability": "mutable",
262
262
  "name": "byteLength",
263
263
  "nameLocation": "976:10:26",
264
264
  "nodeType": "VariableDeclaration",
265
- "scope": 18300,
265
+ "scope": 18301,
266
266
  "src": "968:18:26",
267
267
  "stateVariable": false,
268
268
  "storageLocation": "default",
@@ -271,7 +271,7 @@
271
271
  "typeString": "uint256"
272
272
  },
273
273
  "typeName": {
274
- "id": 18279,
274
+ "id": 18280,
275
275
  "name": "uint256",
276
276
  "nodeType": "ElementaryTypeName",
277
277
  "src": "968:7:26",
@@ -286,17 +286,17 @@
286
286
  "src": "967:20:26"
287
287
  },
288
288
  "returnParameters": {
289
- "id": 18284,
289
+ "id": 18285,
290
290
  "nodeType": "ParameterList",
291
291
  "parameters": [
292
292
  {
293
293
  "constant": false,
294
- "id": 18283,
294
+ "id": 18284,
295
295
  "mutability": "mutable",
296
296
  "name": "mask",
297
297
  "nameLocation": "1010:4:26",
298
298
  "nodeType": "VariableDeclaration",
299
- "scope": 18300,
299
+ "scope": 18301,
300
300
  "src": "1002:12:26",
301
301
  "stateVariable": false,
302
302
  "storageLocation": "default",
@@ -305,7 +305,7 @@
305
305
  "typeString": "uint256"
306
306
  },
307
307
  "typeName": {
308
- "id": 18282,
308
+ "id": 18283,
309
309
  "name": "uint256",
310
310
  "nodeType": "ElementaryTypeName",
311
311
  "src": "1002:7:26",
@@ -319,7 +319,7 @@
319
319
  ],
320
320
  "src": "1001:14:26"
321
321
  },
322
- "scope": 18301,
322
+ "scope": 18302,
323
323
  "stateMutability": "pure",
324
324
  "virtual": false,
325
325
  "visibility": "internal"