@latticexyz/world-modules 2.0.0-main-071aadb9 → 2.0.0-main-88b1a5a1
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 +215 -215
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2599 -2599
- package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
- package/out/DelegationControl.sol/DelegationControl.json +94 -94
- package/out/EncodeArray.sol/EncodeArray.json +3345 -3345
- package/out/FieldLayout.sol/FieldLayoutInstance.json +47 -47
- package/out/FieldLayout.sol/FieldLayoutLib.json +47 -47
- package/out/Hook.sol/HookInstance.json +13 -13
- package/out/Hook.sol/HookLib.json +13 -13
- package/out/Hooks.sol/Hooks.json +3393 -3393
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +58 -58
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +54 -54
- package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +52 -52
- package/out/ICoreSystem.sol/ICoreSystem.json +7 -7
- package/out/IDelegationControl.sol/IDelegationControl.json +62 -62
- package/out/IModule.sol/IModule.json +78 -78
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +28 -28
- package/out/ISystemHook.sol/ISystemHook.json +86 -86
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
- package/out/IWorldErrors.sol/IWorldErrors.json +152 -152
- package/out/IWorldKernel.sol/IWorldCall.json +154 -154
- package/out/IWorldKernel.sol/IWorldKernel.json +154 -154
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +190 -190
- package/out/KeysInTable.sol/KeysInTable.json +10672 -10672
- package/out/KeysInTableHook.sol/KeysInTableHook.json +867 -867
- package/out/KeysInTableModule.sol/KeysInTableModule.json +538 -538
- package/out/KeysWithValue.sol/KeysWithValue.json +3832 -3832
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +993 -993
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +426 -426
- package/out/Memory.sol/Memory.json +4 -4
- package/out/Module.sol/Module.json +84 -84
- package/out/ResourceIds.sol/ResourceIds.json +1363 -1363
- package/out/Schema.sol/SchemaInstance.json +72 -72
- package/out/Schema.sol/SchemaLib.json +72 -72
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/Slice.sol/SliceInstance.json +4 -4
- package/out/Slice.sol/SliceLib.json +4 -4
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +303 -303
- package/out/Storage.sol/Storage.json +7 -7
- package/out/StoreCore.sol/StoreCore.json +708 -737
- package/out/StoreCore.sol/StoreCoreInternal.json +710 -739
- package/out/StoreHook.sol/StoreHook.json +368 -368
- package/out/StoreHooks.sol/StoreHooks.json +3232 -3232
- package/out/StoreSwitch.sol/StoreSwitch.json +1885 -1885
- package/out/System.sol/System.json +31 -31
- package/out/Tables.sol/Tables.json +5585 -5585
- package/out/TightCoder.sol/TightCoder.json +124 -124
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +119 -119
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1990 -1990
- package/out/UniqueEntity.sol/UniqueEntity.json +1406 -1406
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +327 -327
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +93 -93
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2727 -2727
- package/out/WorldContext.sol/WorldContextConsumer.json +1380 -988
- package/out/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1381 -989
- package/out/WorldContext.sol/WorldContextProviderLib.json +3910 -0
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
- package/out/constants.sol/LayoutOffsets.json +79 -79
- 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 +131 -131
- package/out/leftMask.sol/leftMask.json +31 -31
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1338 -1338
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/IWorldKernel.sol/IWorldCall.json +153 -153
- package/out/src/IWorldKernel.sol/IWorldKernel.json +153 -153
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +153 -153
- package/out/src/Memory.sol/Memory.json +91 -91
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
- package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
- package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
- package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
- package/out/src/Schema.sol/SchemaInstance.json +790 -790
- package/out/src/Schema.sol/SchemaLib.json +790 -790
- package/out/src/Slice.sol/SliceInstance.json +430 -430
- package/out/src/Slice.sol/SliceLib.json +430 -430
- package/out/src/StoreCore.sol/StoreCore.json +4695 -4724
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4697 -4726
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2487 -2487
- package/out/src/WorldContext.sol/WorldContextConsumer.json +1291 -899
- package/out/src/WorldContext.sol/WorldContextConsumerLib.abi.json +1 -0
- package/out/src/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1292 -900
- package/out/src/WorldContext.sol/WorldContextProviderLib.abi.json +1 -0
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +3910 -0
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/tables/ResourceIds.sol/ResourceIds.json +1751 -1751
- package/out/tables/Tables.sol/Tables.json +7292 -7292
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
- package/out/types.sol/types.json +41 -41
- package/out/version.sol/version.json +7 -7
- package/out/world/src/IERC165.sol/IERC165.json +28 -28
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
- /package/out/WorldContext.sol/{WorldContextProvider.abi.json → WorldContextConsumerLib.abi.json} +0 -0
- /package/out/{src/WorldContext.sol/WorldContextProvider.abi.json → WorldContext.sol/WorldContextProviderLib.abi.json} +0 -0
@@ -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": 18300,
|
14
14
|
"exportedSymbols": {
|
15
15
|
"leftMask": [
|
16
|
-
|
16
|
+
18299
|
17
17
|
]
|
18
18
|
},
|
19
19
|
"nodeType": "SourceUnit",
|
20
20
|
"src": "32:1059:26",
|
21
21
|
"nodes": [
|
22
22
|
{
|
23
|
-
"id":
|
23
|
+
"id": 18276,
|
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": 18299,
|
36
36
|
"nodeType": "FunctionDefinition",
|
37
37
|
"src": "950:140:26",
|
38
38
|
"nodes": [],
|
39
39
|
"body": {
|
40
|
-
"id":
|
40
|
+
"id": 18298,
|
41
41
|
"nodeType": "Block",
|
42
42
|
"src": "1016:74:26",
|
43
43
|
"nodes": [],
|
44
44
|
"statements": [
|
45
45
|
{
|
46
|
-
"id":
|
46
|
+
"id": 18297,
|
47
47
|
"nodeType": "UncheckedBlock",
|
48
48
|
"src": "1020:68:26",
|
49
49
|
"statements": [
|
50
50
|
{
|
51
51
|
"expression": {
|
52
|
-
"id":
|
52
|
+
"id": 18295,
|
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":
|
68
|
+
"id": 18293,
|
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":
|
77
|
+
"id": 18286,
|
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":
|
89
|
+
"id": 18285,
|
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":
|
104
|
+
"id": 18284,
|
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":
|
115
|
+
"id": 18287,
|
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":
|
131
|
+
"id": 18288,
|
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":
|
154
|
+
"id": 18291,
|
155
155
|
"isConstant": false,
|
156
156
|
"isLValue": false,
|
157
157
|
"isPure": false,
|
158
158
|
"lValueRequested": false,
|
159
159
|
"leftExpression": {
|
160
|
-
"id":
|
160
|
+
"id": 18289,
|
161
161
|
"name": "byteLength",
|
162
162
|
"nodeType": "Identifier",
|
163
163
|
"overloadedDeclarations": [],
|
164
|
-
"referencedDeclaration":
|
164
|
+
"referencedDeclaration": 18279,
|
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":
|
175
|
+
"id": 18290,
|
176
176
|
"isConstant": false,
|
177
177
|
"isLValue": false,
|
178
178
|
"isPure": true,
|
@@ -193,7 +193,7 @@
|
|
193
193
|
}
|
194
194
|
}
|
195
195
|
],
|
196
|
-
"id":
|
196
|
+
"id": 18292,
|
197
197
|
"isConstant": false,
|
198
198
|
"isInlineArray": false,
|
199
199
|
"isLValue": false,
|
@@ -213,7 +213,7 @@
|
|
213
213
|
}
|
214
214
|
}
|
215
215
|
],
|
216
|
-
"id":
|
216
|
+
"id": 18294,
|
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":
|
235
|
-
"id":
|
234
|
+
"functionReturnParameters": 18283,
|
235
|
+
"id": 18296,
|
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":
|
244
|
+
"id": 18277,
|
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":
|
255
|
+
"id": 18280,
|
256
256
|
"nodeType": "ParameterList",
|
257
257
|
"parameters": [
|
258
258
|
{
|
259
259
|
"constant": false,
|
260
|
-
"id":
|
260
|
+
"id": 18279,
|
261
261
|
"mutability": "mutable",
|
262
262
|
"name": "byteLength",
|
263
263
|
"nameLocation": "976:10:26",
|
264
264
|
"nodeType": "VariableDeclaration",
|
265
|
-
"scope":
|
265
|
+
"scope": 18299,
|
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":
|
274
|
+
"id": 18278,
|
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":
|
289
|
+
"id": 18283,
|
290
290
|
"nodeType": "ParameterList",
|
291
291
|
"parameters": [
|
292
292
|
{
|
293
293
|
"constant": false,
|
294
|
-
"id":
|
294
|
+
"id": 18282,
|
295
295
|
"mutability": "mutable",
|
296
296
|
"name": "mask",
|
297
297
|
"nameLocation": "1010:4:26",
|
298
298
|
"nodeType": "VariableDeclaration",
|
299
|
-
"scope":
|
299
|
+
"scope": 18299,
|
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":
|
308
|
+
"id": 18281,
|
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":
|
322
|
+
"scope": 18300,
|
323
323
|
"stateMutability": "pure",
|
324
324
|
"virtual": false,
|
325
325
|
"visibility": "internal"
|