@latticexyz/world-modules 2.0.0-main-85218618 → 2.0.0-main-3086581a
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.
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +223 -223
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2611 -2611
- package/out/DecodeSlice.sol/DecodeSlice.json +3155 -3155
- package/out/DelegationControl.sol/DelegationControl.json +104 -104
- package/out/EncodeArray.sol/EncodeArray.json +3250 -3250
- package/out/FieldLayout.sol/FieldLayoutInstance.json +51 -51
- package/out/FieldLayout.sol/FieldLayoutLib.json +51 -51
- package/out/Hook.sol/HookInstance.json +16 -16
- package/out/Hook.sol/HookLib.json +16 -16
- package/out/Hooks.sol/Hooks.json +96 -96
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +61 -61
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
- package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +66 -66
- package/out/IModule.sol/IModule.json +78 -78
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
- package/out/IStore.sol/IStore.json +4 -4
- package/out/IStoreData.sol/IStoreData.json +4 -4
- package/out/IStoreHook.sol/IStoreHook.json +4 -4
- package/out/IStoreRead.sol/IStoreRead.json +4 -4
- package/out/IStoreRegistration.sol/IStoreRegistration.json +4 -4
- package/out/IStoreWrite.sol/IStoreWrite.json +4 -4
- package/out/ISystemHook.sol/ISystemHook.json +90 -90
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
- package/out/IWorldErrors.sol/IWorldErrors.json +150 -150
- package/out/IWorldKernel.sol/IWorldCall.json +156 -156
- package/out/IWorldKernel.sol/IWorldKernel.json +156 -156
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
- package/out/KeysInTable.sol/KeysInTable.json +10684 -10684
- package/out/KeysInTableHook.sol/KeysInTableHook.json +879 -879
- package/out/KeysInTableModule.sol/KeysInTableModule.json +542 -542
- package/out/KeysWithValue.sol/KeysWithValue.json +3844 -3844
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1005 -1005
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +431 -431
- package/out/Memory.sol/Memory.json +8 -8
- package/out/Module.sol/Module.json +93 -93
- package/out/ResourceIds.sol/ResourceIds.json +70 -70
- package/out/Schema.sol/SchemaInstance.json +76 -76
- package/out/Schema.sol/SchemaLib.json +76 -76
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/Slice.sol/SliceInstance.json +8 -8
- package/out/Slice.sol/SliceLib.json +8 -8
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +308 -308
- package/out/Storage.sol/Storage.json +11 -11
- package/out/StoreCore.sol/StoreCore.json +59 -59
- package/out/StoreCore.sol/StoreCoreInternal.json +59 -59
- package/out/StoreHook.sol/StoreHook.json +362 -362
- package/out/StoreHooks.sol/StoreHooks.json +97 -97
- package/out/StoreSwitch.sol/StoreSwitch.json +16 -16
- package/out/System.sol/System.json +38 -38
- package/out/Tables.sol/Tables.json +98 -98
- package/out/TightCoder.sol/TightCoder.json +128 -128
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +127 -127
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +2002 -2002
- package/out/UniqueEntity.sol/UniqueEntity.json +1418 -1418
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +332 -332
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +101 -101
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2738 -2738
- package/out/WorldContext.sol/WorldContextConsumer.json +382 -382
- package/out/WorldContext.sol/WorldContextProvider.json +382 -382
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/constants.sol/LayoutOffsets.json +164 -140
- package/out/constants.sol/constants.json +115 -115
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +142 -142
- package/out/leftMask.sol/leftMask.json +61 -61
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +51 -51
- package/out/src/Bytes.sol/Bytes.json +1332 -1332
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +701 -701
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +701 -701
- package/out/src/IStore.sol/IStore.json +57 -57
- package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
- package/out/src/Memory.sol/Memory.json +93 -93
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +791 -791
- package/out/src/Schema.sol/SchemaLib.json +791 -791
- package/out/src/Slice.sol/SliceInstance.json +433 -433
- package/out/src/Slice.sol/SliceLib.json +433 -433
- package/out/src/StoreCore.sol/StoreCore.json +4471 -4471
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4471 -4471
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2470 -2470
- package/out/src/WorldContext.sol/WorldContextConsumer.json +382 -382
- package/out/src/WorldContext.sol/WorldContextProvider.json +382 -382
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/storeHookTypes.sol/storeHookTypes.json +202 -202
- package/out/storeResourceTypes.sol/storeResourceTypes.json +21 -21
- package/out/tables/ResourceIds.sol/ResourceIds.json +1762 -1762
- package/out/tables/Tables.sol/Tables.json +7304 -7304
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3250 -3250
- package/out/types.sol/types.json +39 -39
- package/out/version.sol/version.json +12 -12
- package/out/world/src/IERC165.sol/IERC165.json +28 -28
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- 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":
|
13
|
+
"id": 18217,
|
14
14
|
"exportedSymbols": {
|
15
15
|
"leftMask": [
|
16
|
-
|
16
|
+
18216
|
17
17
|
]
|
18
18
|
},
|
19
19
|
"nodeType": "SourceUnit",
|
20
|
-
"src": "32:
|
20
|
+
"src": "32:1059:26",
|
21
21
|
"nodes": [
|
22
22
|
{
|
23
|
-
"id":
|
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":
|
35
|
+
"id": 18216,
|
36
36
|
"nodeType": "FunctionDefinition",
|
37
|
-
"src": "
|
37
|
+
"src": "950:140:26",
|
38
38
|
"nodes": [],
|
39
39
|
"body": {
|
40
|
-
"id":
|
40
|
+
"id": 18215,
|
41
41
|
"nodeType": "Block",
|
42
|
-
"src": "
|
42
|
+
"src": "1016:74:26",
|
43
43
|
"nodes": [],
|
44
44
|
"statements": [
|
45
45
|
{
|
46
|
-
"id":
|
46
|
+
"id": 18214,
|
47
47
|
"nodeType": "UncheckedBlock",
|
48
|
-
"src": "
|
48
|
+
"src": "1020:68:26",
|
49
49
|
"statements": [
|
50
50
|
{
|
51
51
|
"expression": {
|
52
|
-
"id":
|
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": "
|
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":
|
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":
|
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": "
|
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":
|
89
|
+
"id": 18202,
|
90
90
|
"name": "uint256",
|
91
91
|
"nodeType": "ElementaryTypeName",
|
92
|
-
"src": "
|
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":
|
104
|
+
"id": 18201,
|
105
105
|
"name": "type",
|
106
106
|
"nodeType": "Identifier",
|
107
107
|
"overloadedDeclarations": [],
|
108
108
|
"referencedDeclaration": -27,
|
109
|
-
"src": "
|
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":
|
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": "
|
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":
|
131
|
+
"id": 18205,
|
132
132
|
"isConstant": false,
|
133
133
|
"isLValue": false,
|
134
134
|
"isPure": true,
|
135
135
|
"lValueRequested": false,
|
136
|
-
"memberLocation": "
|
136
|
+
"memberLocation": "1059:3:26",
|
137
137
|
"memberName": "max",
|
138
138
|
"nodeType": "MemberAccess",
|
139
|
-
"src": "
|
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":
|
154
|
+
"id": 18208,
|
155
155
|
"isConstant": false,
|
156
156
|
"isLValue": false,
|
157
157
|
"isPure": false,
|
158
158
|
"lValueRequested": false,
|
159
159
|
"leftExpression": {
|
160
|
-
"id":
|
160
|
+
"id": 18206,
|
161
161
|
"name": "byteLength",
|
162
162
|
"nodeType": "Identifier",
|
163
163
|
"overloadedDeclarations": [],
|
164
|
-
"referencedDeclaration":
|
165
|
-
"src": "
|
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":
|
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": "
|
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": "
|
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":
|
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": "
|
203
|
+
"src": "1066:16:26",
|
204
204
|
"typeDescriptions": {
|
205
205
|
"typeIdentifier": "t_uint256",
|
206
206
|
"typeString": "uint256"
|
207
207
|
}
|
208
208
|
},
|
209
|
-
"src": "
|
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":
|
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": "
|
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":
|
235
|
-
"id":
|
234
|
+
"functionReturnParameters": 18200,
|
235
|
+
"id": 18213,
|
236
236
|
"nodeType": "Return",
|
237
|
-
"src": "
|
237
|
+
"src": "1036:47:26"
|
238
238
|
}
|
239
239
|
]
|
240
240
|
}
|
241
241
|
]
|
242
242
|
},
|
243
243
|
"documentation": {
|
244
|
-
"id":
|
244
|
+
"id": 18194,
|
245
245
|
"nodeType": "StructuredDocumentation",
|
246
|
-
"src": "
|
247
|
-
"text": "
|
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": "
|
253
|
+
"nameLocation": "959:8:26",
|
254
254
|
"parameters": {
|
255
|
-
"id":
|
255
|
+
"id": 18197,
|
256
256
|
"nodeType": "ParameterList",
|
257
257
|
"parameters": [
|
258
258
|
{
|
259
259
|
"constant": false,
|
260
|
-
"id":
|
260
|
+
"id": 18196,
|
261
261
|
"mutability": "mutable",
|
262
262
|
"name": "byteLength",
|
263
|
-
"nameLocation": "
|
263
|
+
"nameLocation": "976:10:26",
|
264
264
|
"nodeType": "VariableDeclaration",
|
265
|
-
"scope":
|
266
|
-
"src": "
|
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":
|
274
|
+
"id": 18195,
|
275
275
|
"name": "uint256",
|
276
276
|
"nodeType": "ElementaryTypeName",
|
277
|
-
"src": "
|
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": "
|
286
|
+
"src": "967:20:26"
|
287
287
|
},
|
288
288
|
"returnParameters": {
|
289
|
-
"id":
|
289
|
+
"id": 18200,
|
290
290
|
"nodeType": "ParameterList",
|
291
291
|
"parameters": [
|
292
292
|
{
|
293
293
|
"constant": false,
|
294
|
-
"id":
|
294
|
+
"id": 18199,
|
295
295
|
"mutability": "mutable",
|
296
|
-
"name": "",
|
297
|
-
"nameLocation": "
|
296
|
+
"name": "mask",
|
297
|
+
"nameLocation": "1010:4:26",
|
298
298
|
"nodeType": "VariableDeclaration",
|
299
|
-
"scope":
|
300
|
-
"src": "
|
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":
|
308
|
+
"id": 18198,
|
309
309
|
"name": "uint256",
|
310
310
|
"nodeType": "ElementaryTypeName",
|
311
|
-
"src": "
|
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": "
|
320
|
+
"src": "1001:14:26"
|
321
321
|
},
|
322
|
-
"scope":
|
322
|
+
"scope": 18217,
|
323
323
|
"stateMutability": "pure",
|
324
324
|
"virtual": false,
|
325
325
|
"visibility": "internal"
|