@latticexyz/world-modules 2.0.0-main-fa74f25e → 2.0.0-main-be5266dc

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 +223 -223
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2614 -2614
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3158 -3158
  5. package/out/DelegationControl.sol/DelegationControl.json +104 -104
  6. package/out/EncodeArray.sol/EncodeArray.json +3253 -3253
  7. package/out/FieldLayout.sol/FieldLayoutInstance.json +51 -51
  8. package/out/FieldLayout.sol/FieldLayoutLib.json +51 -51
  9. package/out/Hook.sol/HookInstance.json +19 -19
  10. package/out/Hook.sol/HookLib.json +19 -19
  11. package/out/Hooks.sol/Hooks.json +99 -99
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +61 -61
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
  14. package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
  16. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  17. package/out/IDelegationControl.sol/IDelegationControl.json +66 -66
  18. package/out/IModule.sol/IModule.json +78 -78
  19. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  20. package/out/IStore.sol/IStore.json +4 -4
  21. package/out/IStoreData.sol/IStoreData.json +4 -4
  22. package/out/IStoreHook.sol/IStoreHook.json +4 -4
  23. package/out/IStoreRead.sol/IStoreRead.json +4 -4
  24. package/out/IStoreRegistration.sol/IStoreRegistration.json +4 -4
  25. package/out/IStoreWrite.sol/IStoreWrite.json +4 -4
  26. package/out/ISystemHook.sol/ISystemHook.json +90 -90
  27. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  28. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
  29. package/out/IWorldErrors.sol/IWorldErrors.json +150 -150
  30. package/out/IWorldKernel.sol/IWorldCall.json +156 -156
  31. package/out/IWorldKernel.sol/IWorldKernel.json +156 -156
  32. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
  33. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
  34. package/out/KeysInTable.sol/KeysInTable.json +10687 -10687
  35. package/out/KeysInTableHook.sol/KeysInTableHook.json +882 -882
  36. package/out/KeysInTableModule.sol/KeysInTableModule.json +542 -542
  37. package/out/KeysWithValue.sol/KeysWithValue.json +3847 -3847
  38. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1005 -1005
  39. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +431 -431
  40. package/out/Memory.sol/Memory.json +8 -8
  41. package/out/Module.sol/Module.json +93 -93
  42. package/out/ResourceIds.sol/ResourceIds.json +73 -73
  43. package/out/Schema.sol/SchemaInstance.json +76 -76
  44. package/out/Schema.sol/SchemaLib.json +76 -76
  45. package/out/SchemaType.sol/SchemaType.json +276 -276
  46. package/out/Slice.sol/SliceInstance.json +11 -11
  47. package/out/Slice.sol/SliceLib.json +11 -11
  48. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +308 -308
  49. package/out/Storage.sol/Storage.json +11 -11
  50. package/out/StoreCore.sol/StoreCore.json +62 -62
  51. package/out/StoreCore.sol/StoreCoreInternal.json +62 -62
  52. package/out/StoreHook.sol/StoreHook.json +362 -362
  53. package/out/StoreHooks.sol/StoreHooks.json +100 -100
  54. package/out/StoreSwitch.sol/StoreSwitch.json +19 -19
  55. package/out/System.sol/System.json +38 -38
  56. package/out/Tables.sol/Tables.json +101 -101
  57. package/out/TightCoder.sol/TightCoder.json +553 -553
  58. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +127 -127
  59. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +2005 -2005
  60. package/out/UniqueEntity.sol/UniqueEntity.json +1421 -1421
  61. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +332 -332
  62. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +101 -101
  63. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2741 -2741
  64. package/out/WorldContext.sol/WorldContextConsumer.json +382 -382
  65. package/out/WorldContext.sol/WorldContextProvider.json +382 -382
  66. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  67. package/out/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  68. package/out/constants.sol/LayoutOffsets.json +164 -140
  69. package/out/constants.sol/constants.json +115 -115
  70. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  71. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  72. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  73. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  74. package/out/hasKey.sol/hasKey.json +130 -130
  75. package/out/index.sol/index.json +53 -53
  76. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +142 -142
  77. package/out/leftMask.sol/leftMask.json +61 -61
  78. package/out/query.sol/query.json +1154 -1154
  79. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  80. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  81. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +701 -701
  82. package/out/src/FieldLayout.sol/FieldLayoutLib.json +701 -701
  83. package/out/src/IStore.sol/IStore.json +57 -57
  84. package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
  85. package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
  86. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
  87. package/out/src/Memory.sol/Memory.json +93 -93
  88. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  89. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  90. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  91. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  92. package/out/src/Schema.sol/SchemaInstance.json +791 -791
  93. package/out/src/Schema.sol/SchemaLib.json +791 -791
  94. package/out/src/Slice.sol/SliceInstance.json +436 -436
  95. package/out/src/Slice.sol/SliceLib.json +436 -436
  96. package/out/src/StoreCore.sol/StoreCore.json +4474 -4474
  97. package/out/src/StoreCore.sol/StoreCoreInternal.json +4474 -4474
  98. package/out/src/StoreSwitch.sol/StoreSwitch.json +2473 -2473
  99. package/out/src/WorldContext.sol/WorldContextConsumer.json +382 -382
  100. package/out/src/WorldContext.sol/WorldContextProvider.json +382 -382
  101. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  102. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  103. package/out/storeHookTypes.sol/storeHookTypes.json +202 -202
  104. package/out/storeResourceTypes.sol/storeResourceTypes.json +21 -21
  105. package/out/tables/ResourceIds.sol/ResourceIds.json +1765 -1765
  106. package/out/tables/Tables.sol/Tables.json +7307 -7307
  107. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3253 -3253
  108. package/out/types.sol/types.json +39 -39
  109. package/out/version.sol/version.json +12 -12
  110. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  111. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  112. package/package.json +8 -8
@@ -10,17 +10,17 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/leftMask.sol",
13
- "id": 18207,
13
+ "id": 18217,
14
14
  "exportedSymbols": {
15
15
  "leftMask": [
16
- 18206
16
+ 18216
17
17
  ]
18
18
  },
19
19
  "nodeType": "SourceUnit",
20
- "src": "32:592:26",
20
+ "src": "32:1059:26",
21
21
  "nodes": [
22
22
  {
23
- "id": 18183,
23
+ "id": 18193,
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": 18206,
35
+ "id": 18216,
36
36
  "nodeType": "FunctionDefinition",
37
- "src": "488:135:26",
37
+ "src": "950:140:26",
38
38
  "nodes": [],
39
39
  "body": {
40
- "id": 18205,
40
+ "id": 18215,
41
41
  "nodeType": "Block",
42
- "src": "549:74:26",
42
+ "src": "1016:74:26",
43
43
  "nodes": [],
44
44
  "statements": [
45
45
  {
46
- "id": 18204,
46
+ "id": 18214,
47
47
  "nodeType": "UncheckedBlock",
48
- "src": "553:68:26",
48
+ "src": "1020:68:26",
49
49
  "statements": [
50
50
  {
51
51
  "expression": {
52
- "id": 18202,
52
+ "id": 18212,
53
53
  "isConstant": false,
54
54
  "isLValue": false,
55
55
  "isPure": false,
@@ -57,7 +57,7 @@
57
57
  "nodeType": "UnaryOperation",
58
58
  "operator": "~",
59
59
  "prefix": true,
60
- "src": "576:40:26",
60
+ "src": "1043:40:26",
61
61
  "subExpression": {
62
62
  "components": [
63
63
  {
@@ -65,7 +65,7 @@
65
65
  "typeIdentifier": "t_uint256",
66
66
  "typeString": "uint256"
67
67
  },
68
- "id": 18200,
68
+ "id": 18210,
69
69
  "isConstant": false,
70
70
  "isLValue": false,
71
71
  "isPure": false,
@@ -74,22 +74,22 @@
74
74
  "expression": {
75
75
  "arguments": [
76
76
  {
77
- "id": 18193,
77
+ "id": 18203,
78
78
  "isConstant": false,
79
79
  "isLValue": false,
80
80
  "isPure": true,
81
81
  "lValueRequested": false,
82
82
  "nodeType": "ElementaryTypeNameExpression",
83
- "src": "583:7:26",
83
+ "src": "1050:7:26",
84
84
  "typeDescriptions": {
85
85
  "typeIdentifier": "t_type$_t_uint256_$",
86
86
  "typeString": "type(uint256)"
87
87
  },
88
88
  "typeName": {
89
- "id": 18192,
89
+ "id": 18202,
90
90
  "name": "uint256",
91
91
  "nodeType": "ElementaryTypeName",
92
- "src": "583:7:26",
92
+ "src": "1050:7:26",
93
93
  "typeDescriptions": {}
94
94
  }
95
95
  }
@@ -101,18 +101,18 @@
101
101
  "typeString": "type(uint256)"
102
102
  }
103
103
  ],
104
- "id": 18191,
104
+ "id": 18201,
105
105
  "name": "type",
106
106
  "nodeType": "Identifier",
107
107
  "overloadedDeclarations": [],
108
108
  "referencedDeclaration": -27,
109
- "src": "578:4:26",
109
+ "src": "1045:4:26",
110
110
  "typeDescriptions": {
111
111
  "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
112
112
  "typeString": "function () pure"
113
113
  }
114
114
  },
115
- "id": 18194,
115
+ "id": 18204,
116
116
  "isConstant": false,
117
117
  "isLValue": false,
118
118
  "isPure": true,
@@ -121,22 +121,22 @@
121
121
  "nameLocations": [],
122
122
  "names": [],
123
123
  "nodeType": "FunctionCall",
124
- "src": "578:13:26",
124
+ "src": "1045:13:26",
125
125
  "tryCall": false,
126
126
  "typeDescriptions": {
127
127
  "typeIdentifier": "t_magic_meta_type_t_uint256",
128
128
  "typeString": "type(uint256)"
129
129
  }
130
130
  },
131
- "id": 18195,
131
+ "id": 18205,
132
132
  "isConstant": false,
133
133
  "isLValue": false,
134
134
  "isPure": true,
135
135
  "lValueRequested": false,
136
- "memberLocation": "592:3:26",
136
+ "memberLocation": "1059:3:26",
137
137
  "memberName": "max",
138
138
  "nodeType": "MemberAccess",
139
- "src": "578:17:26",
139
+ "src": "1045:17:26",
140
140
  "typeDescriptions": {
141
141
  "typeIdentifier": "t_uint256",
142
142
  "typeString": "uint256"
@@ -151,18 +151,18 @@
151
151
  "typeIdentifier": "t_uint256",
152
152
  "typeString": "uint256"
153
153
  },
154
- "id": 18198,
154
+ "id": 18208,
155
155
  "isConstant": false,
156
156
  "isLValue": false,
157
157
  "isPure": false,
158
158
  "lValueRequested": false,
159
159
  "leftExpression": {
160
- "id": 18196,
160
+ "id": 18206,
161
161
  "name": "byteLength",
162
162
  "nodeType": "Identifier",
163
163
  "overloadedDeclarations": [],
164
- "referencedDeclaration": 18186,
165
- "src": "600:10:26",
164
+ "referencedDeclaration": 18196,
165
+ "src": "1067:10:26",
166
166
  "typeDescriptions": {
167
167
  "typeIdentifier": "t_uint256",
168
168
  "typeString": "uint256"
@@ -172,55 +172,55 @@
172
172
  "operator": "*",
173
173
  "rightExpression": {
174
174
  "hexValue": "38",
175
- "id": 18197,
175
+ "id": 18207,
176
176
  "isConstant": false,
177
177
  "isLValue": false,
178
178
  "isPure": true,
179
179
  "kind": "number",
180
180
  "lValueRequested": false,
181
181
  "nodeType": "Literal",
182
- "src": "613:1:26",
182
+ "src": "1080:1:26",
183
183
  "typeDescriptions": {
184
184
  "typeIdentifier": "t_rational_8_by_1",
185
185
  "typeString": "int_const 8"
186
186
  },
187
187
  "value": "8"
188
188
  },
189
- "src": "600:14:26",
189
+ "src": "1067:14:26",
190
190
  "typeDescriptions": {
191
191
  "typeIdentifier": "t_uint256",
192
192
  "typeString": "uint256"
193
193
  }
194
194
  }
195
195
  ],
196
- "id": 18199,
196
+ "id": 18209,
197
197
  "isConstant": false,
198
198
  "isInlineArray": false,
199
199
  "isLValue": false,
200
200
  "isPure": false,
201
201
  "lValueRequested": false,
202
202
  "nodeType": "TupleExpression",
203
- "src": "599:16:26",
203
+ "src": "1066:16:26",
204
204
  "typeDescriptions": {
205
205
  "typeIdentifier": "t_uint256",
206
206
  "typeString": "uint256"
207
207
  }
208
208
  },
209
- "src": "578:37:26",
209
+ "src": "1045:37:26",
210
210
  "typeDescriptions": {
211
211
  "typeIdentifier": "t_uint256",
212
212
  "typeString": "uint256"
213
213
  }
214
214
  }
215
215
  ],
216
- "id": 18201,
216
+ "id": 18211,
217
217
  "isConstant": false,
218
218
  "isInlineArray": false,
219
219
  "isLValue": false,
220
220
  "isPure": false,
221
221
  "lValueRequested": false,
222
222
  "nodeType": "TupleExpression",
223
- "src": "577:39:26",
223
+ "src": "1044:39:26",
224
224
  "typeDescriptions": {
225
225
  "typeIdentifier": "t_uint256",
226
226
  "typeString": "uint256"
@@ -231,39 +231,39 @@
231
231
  "typeString": "uint256"
232
232
  }
233
233
  },
234
- "functionReturnParameters": 18190,
235
- "id": 18203,
234
+ "functionReturnParameters": 18200,
235
+ "id": 18213,
236
236
  "nodeType": "Return",
237
- "src": "569:47:26"
237
+ "src": "1036:47:26"
238
238
  }
239
239
  ]
240
240
  }
241
241
  ]
242
242
  },
243
243
  "documentation": {
244
- "id": 18184,
244
+ "id": 18194,
245
245
  "nodeType": "StructuredDocumentation",
246
- "src": "59:428:26",
247
- "text": " Adapted from https://github.com/dk1a/solidity-stringutils/blob/main/src/utils/mem.sol#L149-L167\n @dev Left-aligned byte mask (e.g. for partial mload/mstore).\n For byteLength >= 32 returns type(uint256).max\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"
246
+ "src": "256:693:26",
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."
248
248
  },
249
249
  "implemented": true,
250
250
  "kind": "freeFunction",
251
251
  "modifiers": [],
252
252
  "name": "leftMask",
253
- "nameLocation": "497:8:26",
253
+ "nameLocation": "959:8:26",
254
254
  "parameters": {
255
- "id": 18187,
255
+ "id": 18197,
256
256
  "nodeType": "ParameterList",
257
257
  "parameters": [
258
258
  {
259
259
  "constant": false,
260
- "id": 18186,
260
+ "id": 18196,
261
261
  "mutability": "mutable",
262
262
  "name": "byteLength",
263
- "nameLocation": "514:10:26",
263
+ "nameLocation": "976:10:26",
264
264
  "nodeType": "VariableDeclaration",
265
- "scope": 18206,
266
- "src": "506:18:26",
265
+ "scope": 18216,
266
+ "src": "968:18:26",
267
267
  "stateVariable": false,
268
268
  "storageLocation": "default",
269
269
  "typeDescriptions": {
@@ -271,10 +271,10 @@
271
271
  "typeString": "uint256"
272
272
  },
273
273
  "typeName": {
274
- "id": 18185,
274
+ "id": 18195,
275
275
  "name": "uint256",
276
276
  "nodeType": "ElementaryTypeName",
277
- "src": "506:7:26",
277
+ "src": "968:7:26",
278
278
  "typeDescriptions": {
279
279
  "typeIdentifier": "t_uint256",
280
280
  "typeString": "uint256"
@@ -283,21 +283,21 @@
283
283
  "visibility": "internal"
284
284
  }
285
285
  ],
286
- "src": "505:20:26"
286
+ "src": "967:20:26"
287
287
  },
288
288
  "returnParameters": {
289
- "id": 18190,
289
+ "id": 18200,
290
290
  "nodeType": "ParameterList",
291
291
  "parameters": [
292
292
  {
293
293
  "constant": false,
294
- "id": 18189,
294
+ "id": 18199,
295
295
  "mutability": "mutable",
296
- "name": "",
297
- "nameLocation": "-1:-1:-1",
296
+ "name": "mask",
297
+ "nameLocation": "1010:4:26",
298
298
  "nodeType": "VariableDeclaration",
299
- "scope": 18206,
300
- "src": "540:7:26",
299
+ "scope": 18216,
300
+ "src": "1002:12:26",
301
301
  "stateVariable": false,
302
302
  "storageLocation": "default",
303
303
  "typeDescriptions": {
@@ -305,10 +305,10 @@
305
305
  "typeString": "uint256"
306
306
  },
307
307
  "typeName": {
308
- "id": 18188,
308
+ "id": 18198,
309
309
  "name": "uint256",
310
310
  "nodeType": "ElementaryTypeName",
311
- "src": "540:7:26",
311
+ "src": "1002:7:26",
312
312
  "typeDescriptions": {
313
313
  "typeIdentifier": "t_uint256",
314
314
  "typeString": "uint256"
@@ -317,9 +317,9 @@
317
317
  "visibility": "internal"
318
318
  }
319
319
  ],
320
- "src": "539:9:26"
320
+ "src": "1001:14:26"
321
321
  },
322
- "scope": 18207,
322
+ "scope": 18217,
323
323
  "stateMutability": "pure",
324
324
  "virtual": false,
325
325
  "visibility": "internal"