@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.
- package/abi/AccessControl.sol/AccessControl.json +241 -241
- package/abi/AccessManagementSystem.sol/AccessManagementSystem.json +157 -157
- package/abi/AddressArray.sol/AddressArray.json +1124 -1124
- package/abi/ArrayLib.sol/ArrayLib.json +139 -139
- package/abi/Bool.sol/Bool.json +704 -704
- package/abi/Bytes.sol/Bytes.json +6 -6
- package/abi/Call.sol/Call.json +112 -112
- package/abi/Callbacks.sol/Callbacks.json +1100 -1100
- package/abi/CoreModule.sol/CoreModule.json +542 -542
- package/abi/CoreSystem.sol/CoreSystem.json +92 -92
- package/abi/DecodeSlice.sol/DecodeSlice.json +3891 -3891
- package/abi/EncodeArray.sol/EncodeArray.json +3344 -3344
- package/abi/FunctionSelectors.sol/FunctionSelectors.json +1678 -1678
- package/abi/Hooks.sol/Hooks.json +1100 -1100
- package/abi/IAccessManagementSystem.sol/IAccessManagementSystem.json +32 -32
- package/abi/IBaseWorld.sol/IBaseWorld.json +224 -99
- package/abi/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/abi/IModule.sol/IModule.json +28 -28
- package/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +40 -40
- package/abi/IStore.sol/IStore.json +551 -349
- package/abi/IStore.sol/IStoreData.json +551 -349
- package/abi/IStore.sol/IStoreHook.json +495 -349
- package/abi/IStore.sol/IStoreRead.json +495 -349
- package/abi/IStore.sol/IStoreRegistration.json +495 -349
- package/abi/IStore.sol/IStoreWrite.json +551 -349
- package/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +80 -80
- package/abi/ISystemHook.sol/ISystemHook.json +19 -19
- package/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/abi/IWorldKernel.sol/IWorldCall.json +455 -276
- package/abi/IWorldKernel.sol/IWorldData.json +524 -276
- package/abi/IWorldKernel.sol/IWorldKernel.json +524 -276
- package/abi/IWorldKernel.sol/IWorldModuleInstallation.json +455 -276
- package/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +198 -198
- package/abi/InstalledModules.sol/InstalledModules.json +1351 -1351
- package/abi/KeysWithValue.sol/KeysWithValue.json +1124 -1124
- package/abi/KeysWithValueHook.sol/KeysWithValueHook.json +416 -416
- package/abi/KeysWithValueModule.sol/KeysWithValueModule.json +293 -293
- package/abi/Memory.sol/Memory.json +131 -131
- package/abi/Mixed.sol/Mixed.json +2781 -2781
- package/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +138 -138
- package/abi/NamespaceOwner.sol/NamespaceOwner.json +782 -782
- package/abi/PackedCounter.sol/PackedCounterLib.json +665 -665
- package/abi/ResourceAccess.sol/ResourceAccess.json +926 -926
- package/abi/ResourceSelector.sol/ResourceSelector.json +253 -253
- package/abi/ResourceType.sol/ResourceType.json +831 -831
- package/abi/Schema.sol/SchemaLib.json +1469 -1469
- package/abi/SchemaType.sol/SchemaType.json +315 -315
- package/abi/Slice.sol/SliceInstance.json +429 -429
- package/abi/Slice.sol/SliceLib.json +429 -429
- package/abi/Storage.sol/Storage.json +1024 -1061
- package/abi/StoreCore.sol/StoreCore.json +10434 -7652
- package/abi/StoreCore.sol/StoreCoreExtended.json +10434 -7652
- package/abi/StoreCore.sol/StoreCoreInternal.json +10434 -7652
- package/abi/StoreMetadata.sol/StoreMetadata.json +2116 -2116
- package/abi/StoreRead.sol/StoreRead.json +247 -247
- package/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +339 -339
- package/abi/StoreSwitch.sol/StoreSwitch.json +1814 -1359
- package/abi/System.sol/System.json +31 -31
- package/abi/SystemRegistry.sol/SystemRegistry.json +794 -794
- package/abi/Systems.sol/Systems.json +1412 -1412
- package/abi/TableId.sol/TableId.json +27 -27
- package/abi/Tables.sol/Tables.json +92 -92
- package/abi/TightCoder.sol/TightCoder.json +275 -275
- package/abi/Types.sol/Types.json +8 -8
- package/abi/UniqueEntity.sol/UniqueEntity.json +683 -683
- package/abi/UniqueEntityModule.sol/UniqueEntityModule.json +232 -232
- package/abi/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
- package/abi/Utils.sol/Utils.json +67 -67
- package/abi/Vector2.sol/Vector2.json +1473 -1473
- package/abi/World.sol/World.json +2426 -1491
- package/abi/WorldContext.sol/WorldContext.json +65 -65
- package/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1140 -1140
- package/abi/console.sol/console.json +11417 -11417
- package/abi/constants.sol/constants.json +34 -34
- package/abi/getKeysWithValue.sol/getKeysWithValue.json +129 -129
- package/abi/getTargetTableSelector.sol/getTargetTableSelector.json +75 -75
- package/abi/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/abi/interfaces/IErrors.sol/IErrors.json +57 -57
- package/abi/src/Bytes.sol/Bytes.json +1225 -1225
- package/abi/src/IStore.sol/IStore.json +727 -525
- package/abi/src/IStore.sol/IStoreData.json +727 -525
- package/abi/src/IStore.sol/IStoreHook.json +671 -525
- package/abi/src/IStore.sol/IStoreRead.json +671 -525
- package/abi/src/IStore.sol/IStoreRegistration.json +671 -525
- package/abi/src/IStore.sol/IStoreWrite.json +727 -525
- package/abi/src/Memory.sol/Memory.json +131 -131
- package/abi/src/PackedCounter.sol/PackedCounterLib.json +683 -683
- package/abi/src/Schema.sol/SchemaLib.json +1493 -1493
- package/abi/src/Slice.sol/SliceInstance.json +429 -429
- package/abi/src/Slice.sol/SliceLib.json +429 -429
- package/abi/src/StoreCore.sol/StoreCore.json +12500 -9718
- package/abi/src/StoreCore.sol/StoreCoreExtended.json +12500 -9718
- package/abi/src/StoreCore.sol/StoreCoreInternal.json +12500 -9718
- package/abi/src/StoreSwitch.sol/StoreSwitch.json +1822 -1367
- package/abi/tightcoder/EncodeArray.sol/EncodeArray.json +3344 -3344
- package/package.json +6 -6
- package/src/World.sol +32 -0
- package/src/interfaces/IWorldKernel.sol +12 -0
- package/types/ethers-contracts/IBaseWorld.ts +116 -0
- package/types/ethers-contracts/IStore.sol/IStore.ts +55 -0
- package/types/ethers-contracts/IStore.sol/IStoreData.ts +55 -0
- package/types/ethers-contracts/IStore.sol/IStoreWrite.ts +55 -0
- package/types/ethers-contracts/IWorldKernel.sol/IWorldData.ts +61 -0
- package/types/ethers-contracts/IWorldKernel.sol/IWorldKernel.ts +61 -0
- package/types/ethers-contracts/World.ts +116 -0
- package/types/ethers-contracts/factories/AccessManagementSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/CoreModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/CoreSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/IBaseWorld__factory.ts +61 -0
- package/types/ethers-contracts/factories/IStore.sol/IStoreData__factory.ts +28 -0
- package/types/ethers-contracts/factories/IStore.sol/IStoreWrite__factory.ts +28 -0
- package/types/ethers-contracts/factories/IStore.sol/IStore__factory.ts +28 -0
- package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldData__factory.ts +33 -0
- package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldKernel__factory.ts +33 -0
- package/types/ethers-contracts/factories/KeysWithValueHook__factory.ts +1 -1
- package/types/ethers-contracts/factories/KeysWithValueModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/ModuleInstallationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreCore__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreRead__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreRegistrationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
- package/types/ethers-contracts/factories/UniqueEntityModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/UniqueEntitySystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/WorldRegistrationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/World__factory.ts +62 -1
- package/types/ethers-contracts/factories/src/IStore.sol/IStoreData__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/IStore.sol/IStoreWrite__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/IStore.sol/IStore__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/StoreCore__factory.ts +1 -1
- package/types/ethers-contracts/factories/src/StoreSwitch__factory.ts +1 -1
- package/types/ethers-contracts/src/IStore.sol/IStore.ts +55 -0
- package/types/ethers-contracts/src/IStore.sol/IStoreData.ts +55 -0
- package/types/ethers-contracts/src/IStore.sol/IStoreWrite.ts +55 -0
package/abi/Utils.sol/Utils.json
CHANGED
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
},
|
|
64
64
|
"ast": {
|
|
65
65
|
"absolutePath": "/home/runner/work/mud/mud/packages/store/src/Utils.sol",
|
|
66
|
-
"id":
|
|
66
|
+
"id": 5873,
|
|
67
67
|
"exportedSymbols": {
|
|
68
68
|
"Utils": [
|
|
69
|
-
|
|
69
|
+
5872
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"nodeType": "SourceUnit",
|
|
73
73
|
"src": "32:775:11",
|
|
74
74
|
"nodes": [
|
|
75
75
|
{
|
|
76
|
-
"id":
|
|
76
|
+
"id": 5824,
|
|
77
77
|
"nodeType": "PragmaDirective",
|
|
78
78
|
"src": "32:24:11",
|
|
79
79
|
"nodes": [],
|
|
@@ -85,17 +85,17 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"id":
|
|
88
|
+
"id": 5872,
|
|
89
89
|
"nodeType": "ContractDefinition",
|
|
90
90
|
"src": "58:748:11",
|
|
91
91
|
"nodes": [
|
|
92
92
|
{
|
|
93
|
-
"id":
|
|
93
|
+
"id": 5848,
|
|
94
94
|
"nodeType": "FunctionDefinition",
|
|
95
95
|
"src": "76:117:11",
|
|
96
96
|
"nodes": [],
|
|
97
97
|
"body": {
|
|
98
|
-
"id":
|
|
98
|
+
"id": 5847,
|
|
99
99
|
"nodeType": "Block",
|
|
100
100
|
"src": "147:46:11",
|
|
101
101
|
"nodes": [],
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"typeIdentifier": "t_uint256",
|
|
107
107
|
"typeString": "uint256"
|
|
108
108
|
},
|
|
109
|
-
"id":
|
|
109
|
+
"id": 5845,
|
|
110
110
|
"isConstant": false,
|
|
111
111
|
"isLValue": false,
|
|
112
112
|
"isPure": false,
|
|
@@ -116,17 +116,17 @@
|
|
|
116
116
|
"typeIdentifier": "t_uint256",
|
|
117
117
|
"typeString": "uint256"
|
|
118
118
|
},
|
|
119
|
-
"id":
|
|
119
|
+
"id": 5835,
|
|
120
120
|
"isConstant": false,
|
|
121
121
|
"isLValue": false,
|
|
122
122
|
"isPure": false,
|
|
123
123
|
"lValueRequested": false,
|
|
124
124
|
"leftExpression": {
|
|
125
|
-
"id":
|
|
125
|
+
"id": 5833,
|
|
126
126
|
"name": "a",
|
|
127
127
|
"nodeType": "Identifier",
|
|
128
128
|
"overloadedDeclarations": [],
|
|
129
|
-
"referencedDeclaration":
|
|
129
|
+
"referencedDeclaration": 5826,
|
|
130
130
|
"src": "160:1:11",
|
|
131
131
|
"typeDescriptions": {
|
|
132
132
|
"typeIdentifier": "t_uint256",
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
"nodeType": "BinaryOperation",
|
|
137
137
|
"operator": "/",
|
|
138
138
|
"rightExpression": {
|
|
139
|
-
"id":
|
|
139
|
+
"id": 5834,
|
|
140
140
|
"name": "b",
|
|
141
141
|
"nodeType": "Identifier",
|
|
142
142
|
"overloadedDeclarations": [],
|
|
143
|
-
"referencedDeclaration":
|
|
143
|
+
"referencedDeclaration": 5828,
|
|
144
144
|
"src": "164:1:11",
|
|
145
145
|
"typeDescriptions": {
|
|
146
146
|
"typeIdentifier": "t_uint256",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"typeIdentifier": "t_uint256",
|
|
164
164
|
"typeString": "uint256"
|
|
165
165
|
},
|
|
166
|
-
"id":
|
|
166
|
+
"id": 5840,
|
|
167
167
|
"isConstant": false,
|
|
168
168
|
"isLValue": false,
|
|
169
169
|
"isPure": false,
|
|
@@ -173,17 +173,17 @@
|
|
|
173
173
|
"typeIdentifier": "t_uint256",
|
|
174
174
|
"typeString": "uint256"
|
|
175
175
|
},
|
|
176
|
-
"id":
|
|
176
|
+
"id": 5838,
|
|
177
177
|
"isConstant": false,
|
|
178
178
|
"isLValue": false,
|
|
179
179
|
"isPure": false,
|
|
180
180
|
"lValueRequested": false,
|
|
181
181
|
"leftExpression": {
|
|
182
|
-
"id":
|
|
182
|
+
"id": 5836,
|
|
183
183
|
"name": "a",
|
|
184
184
|
"nodeType": "Identifier",
|
|
185
185
|
"overloadedDeclarations": [],
|
|
186
|
-
"referencedDeclaration":
|
|
186
|
+
"referencedDeclaration": 5826,
|
|
187
187
|
"src": "169:1:11",
|
|
188
188
|
"typeDescriptions": {
|
|
189
189
|
"typeIdentifier": "t_uint256",
|
|
@@ -193,11 +193,11 @@
|
|
|
193
193
|
"nodeType": "BinaryOperation",
|
|
194
194
|
"operator": "%",
|
|
195
195
|
"rightExpression": {
|
|
196
|
-
"id":
|
|
196
|
+
"id": 5837,
|
|
197
197
|
"name": "b",
|
|
198
198
|
"nodeType": "Identifier",
|
|
199
199
|
"overloadedDeclarations": [],
|
|
200
|
-
"referencedDeclaration":
|
|
200
|
+
"referencedDeclaration": 5828,
|
|
201
201
|
"src": "173:1:11",
|
|
202
202
|
"typeDescriptions": {
|
|
203
203
|
"typeIdentifier": "t_uint256",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"operator": "==",
|
|
215
215
|
"rightExpression": {
|
|
216
216
|
"hexValue": "30",
|
|
217
|
-
"id":
|
|
217
|
+
"id": 5839,
|
|
218
218
|
"isConstant": false,
|
|
219
219
|
"isLValue": false,
|
|
220
220
|
"isPure": true,
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
},
|
|
237
237
|
"falseExpression": {
|
|
238
238
|
"hexValue": "31",
|
|
239
|
-
"id":
|
|
239
|
+
"id": 5842,
|
|
240
240
|
"isConstant": false,
|
|
241
241
|
"isLValue": false,
|
|
242
242
|
"isPure": true,
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
},
|
|
251
251
|
"value": "1"
|
|
252
252
|
},
|
|
253
|
-
"id":
|
|
253
|
+
"id": 5843,
|
|
254
254
|
"isConstant": false,
|
|
255
255
|
"isLValue": false,
|
|
256
256
|
"isPure": false,
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"src": "169:18:11",
|
|
260
260
|
"trueExpression": {
|
|
261
261
|
"hexValue": "30",
|
|
262
|
-
"id":
|
|
262
|
+
"id": 5841,
|
|
263
263
|
"isConstant": false,
|
|
264
264
|
"isLValue": false,
|
|
265
265
|
"isPure": true,
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
|
-
"id":
|
|
282
|
+
"id": 5844,
|
|
283
283
|
"isConstant": false,
|
|
284
284
|
"isInlineArray": false,
|
|
285
285
|
"isLValue": false,
|
|
@@ -298,8 +298,8 @@
|
|
|
298
298
|
"typeString": "uint256"
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
|
-
"functionReturnParameters":
|
|
302
|
-
"id":
|
|
301
|
+
"functionReturnParameters": 5832,
|
|
302
|
+
"id": 5846,
|
|
303
303
|
"nodeType": "Return",
|
|
304
304
|
"src": "153:35:11"
|
|
305
305
|
}
|
|
@@ -311,17 +311,17 @@
|
|
|
311
311
|
"name": "divCeil",
|
|
312
312
|
"nameLocation": "85:7:11",
|
|
313
313
|
"parameters": {
|
|
314
|
-
"id":
|
|
314
|
+
"id": 5829,
|
|
315
315
|
"nodeType": "ParameterList",
|
|
316
316
|
"parameters": [
|
|
317
317
|
{
|
|
318
318
|
"constant": false,
|
|
319
|
-
"id":
|
|
319
|
+
"id": 5826,
|
|
320
320
|
"mutability": "mutable",
|
|
321
321
|
"name": "a",
|
|
322
322
|
"nameLocation": "101:1:11",
|
|
323
323
|
"nodeType": "VariableDeclaration",
|
|
324
|
-
"scope":
|
|
324
|
+
"scope": 5848,
|
|
325
325
|
"src": "93:9:11",
|
|
326
326
|
"stateVariable": false,
|
|
327
327
|
"storageLocation": "default",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"typeString": "uint256"
|
|
331
331
|
},
|
|
332
332
|
"typeName": {
|
|
333
|
-
"id":
|
|
333
|
+
"id": 5825,
|
|
334
334
|
"name": "uint256",
|
|
335
335
|
"nodeType": "ElementaryTypeName",
|
|
336
336
|
"src": "93:7:11",
|
|
@@ -343,12 +343,12 @@
|
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"constant": false,
|
|
346
|
-
"id":
|
|
346
|
+
"id": 5828,
|
|
347
347
|
"mutability": "mutable",
|
|
348
348
|
"name": "b",
|
|
349
349
|
"nameLocation": "112:1:11",
|
|
350
350
|
"nodeType": "VariableDeclaration",
|
|
351
|
-
"scope":
|
|
351
|
+
"scope": 5848,
|
|
352
352
|
"src": "104:9:11",
|
|
353
353
|
"stateVariable": false,
|
|
354
354
|
"storageLocation": "default",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"typeString": "uint256"
|
|
358
358
|
},
|
|
359
359
|
"typeName": {
|
|
360
|
-
"id":
|
|
360
|
+
"id": 5827,
|
|
361
361
|
"name": "uint256",
|
|
362
362
|
"nodeType": "ElementaryTypeName",
|
|
363
363
|
"src": "104:7:11",
|
|
@@ -372,17 +372,17 @@
|
|
|
372
372
|
"src": "92:22:11"
|
|
373
373
|
},
|
|
374
374
|
"returnParameters": {
|
|
375
|
-
"id":
|
|
375
|
+
"id": 5832,
|
|
376
376
|
"nodeType": "ParameterList",
|
|
377
377
|
"parameters": [
|
|
378
378
|
{
|
|
379
379
|
"constant": false,
|
|
380
|
-
"id":
|
|
380
|
+
"id": 5831,
|
|
381
381
|
"mutability": "mutable",
|
|
382
382
|
"name": "",
|
|
383
383
|
"nameLocation": "-1:-1:-1",
|
|
384
384
|
"nodeType": "VariableDeclaration",
|
|
385
|
-
"scope":
|
|
385
|
+
"scope": 5848,
|
|
386
386
|
"src": "138:7:11",
|
|
387
387
|
"stateVariable": false,
|
|
388
388
|
"storageLocation": "default",
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"typeString": "uint256"
|
|
392
392
|
},
|
|
393
393
|
"typeName": {
|
|
394
|
-
"id":
|
|
394
|
+
"id": 5830,
|
|
395
395
|
"name": "uint256",
|
|
396
396
|
"nodeType": "ElementaryTypeName",
|
|
397
397
|
"src": "138:7:11",
|
|
@@ -405,30 +405,30 @@
|
|
|
405
405
|
],
|
|
406
406
|
"src": "137:9:11"
|
|
407
407
|
},
|
|
408
|
-
"scope":
|
|
408
|
+
"scope": 5872,
|
|
409
409
|
"stateMutability": "pure",
|
|
410
410
|
"virtual": false,
|
|
411
411
|
"visibility": "internal"
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
"id":
|
|
414
|
+
"id": 5871,
|
|
415
415
|
"nodeType": "FunctionDefinition",
|
|
416
416
|
"src": "652:152:11",
|
|
417
417
|
"nodes": [],
|
|
418
418
|
"body": {
|
|
419
|
-
"id":
|
|
419
|
+
"id": 5870,
|
|
420
420
|
"nodeType": "Block",
|
|
421
421
|
"src": "722:82:11",
|
|
422
422
|
"nodes": [],
|
|
423
423
|
"statements": [
|
|
424
424
|
{
|
|
425
|
-
"id":
|
|
425
|
+
"id": 5869,
|
|
426
426
|
"nodeType": "UncheckedBlock",
|
|
427
427
|
"src": "728:72:11",
|
|
428
428
|
"statements": [
|
|
429
429
|
{
|
|
430
430
|
"expression": {
|
|
431
|
-
"id":
|
|
431
|
+
"id": 5867,
|
|
432
432
|
"isConstant": false,
|
|
433
433
|
"isLValue": false,
|
|
434
434
|
"isPure": false,
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"typeIdentifier": "t_uint256",
|
|
445
445
|
"typeString": "uint256"
|
|
446
446
|
},
|
|
447
|
-
"id":
|
|
447
|
+
"id": 5865,
|
|
448
448
|
"isConstant": false,
|
|
449
449
|
"isLValue": false,
|
|
450
450
|
"isPure": false,
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
"expression": {
|
|
454
454
|
"arguments": [
|
|
455
455
|
{
|
|
456
|
-
"id":
|
|
456
|
+
"id": 5858,
|
|
457
457
|
"isConstant": false,
|
|
458
458
|
"isLValue": false,
|
|
459
459
|
"isPure": true,
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
"typeString": "type(uint256)"
|
|
466
466
|
},
|
|
467
467
|
"typeName": {
|
|
468
|
-
"id":
|
|
468
|
+
"id": 5857,
|
|
469
469
|
"name": "uint256",
|
|
470
470
|
"nodeType": "ElementaryTypeName",
|
|
471
471
|
"src": "760:7:11",
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"typeString": "type(uint256)"
|
|
481
481
|
}
|
|
482
482
|
],
|
|
483
|
-
"id":
|
|
483
|
+
"id": 5856,
|
|
484
484
|
"name": "type",
|
|
485
485
|
"nodeType": "Identifier",
|
|
486
486
|
"overloadedDeclarations": [],
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
"typeString": "function () pure"
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
|
-
"id":
|
|
494
|
+
"id": 5859,
|
|
495
495
|
"isConstant": false,
|
|
496
496
|
"isLValue": false,
|
|
497
497
|
"isPure": true,
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
"typeString": "type(uint256)"
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
|
-
"id":
|
|
509
|
+
"id": 5860,
|
|
510
510
|
"isConstant": false,
|
|
511
511
|
"isLValue": false,
|
|
512
512
|
"isPure": true,
|
|
@@ -528,17 +528,17 @@
|
|
|
528
528
|
"typeIdentifier": "t_uint256",
|
|
529
529
|
"typeString": "uint256"
|
|
530
530
|
},
|
|
531
|
-
"id":
|
|
531
|
+
"id": 5863,
|
|
532
532
|
"isConstant": false,
|
|
533
533
|
"isLValue": false,
|
|
534
534
|
"isPure": false,
|
|
535
535
|
"lValueRequested": false,
|
|
536
536
|
"leftExpression": {
|
|
537
|
-
"id":
|
|
537
|
+
"id": 5861,
|
|
538
538
|
"name": "byteLength",
|
|
539
539
|
"nodeType": "Identifier",
|
|
540
540
|
"overloadedDeclarations": [],
|
|
541
|
-
"referencedDeclaration":
|
|
541
|
+
"referencedDeclaration": 5851,
|
|
542
542
|
"src": "777:10:11",
|
|
543
543
|
"typeDescriptions": {
|
|
544
544
|
"typeIdentifier": "t_uint256",
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
"operator": "*",
|
|
550
550
|
"rightExpression": {
|
|
551
551
|
"hexValue": "38",
|
|
552
|
-
"id":
|
|
552
|
+
"id": 5862,
|
|
553
553
|
"isConstant": false,
|
|
554
554
|
"isLValue": false,
|
|
555
555
|
"isPure": true,
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
],
|
|
573
|
-
"id":
|
|
573
|
+
"id": 5864,
|
|
574
574
|
"isConstant": false,
|
|
575
575
|
"isInlineArray": false,
|
|
576
576
|
"isLValue": false,
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
],
|
|
593
|
-
"id":
|
|
593
|
+
"id": 5866,
|
|
594
594
|
"isConstant": false,
|
|
595
595
|
"isInlineArray": false,
|
|
596
596
|
"isLValue": false,
|
|
@@ -608,8 +608,8 @@
|
|
|
608
608
|
"typeString": "uint256"
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
|
-
"functionReturnParameters":
|
|
612
|
-
"id":
|
|
611
|
+
"functionReturnParameters": 5855,
|
|
612
|
+
"id": 5868,
|
|
613
613
|
"nodeType": "Return",
|
|
614
614
|
"src": "746:47:11"
|
|
615
615
|
}
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
]
|
|
619
619
|
},
|
|
620
620
|
"documentation": {
|
|
621
|
-
"id":
|
|
621
|
+
"id": 5849,
|
|
622
622
|
"nodeType": "StructuredDocumentation",
|
|
623
623
|
"src": "197:452:11",
|
|
624
624
|
"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"
|
|
@@ -629,17 +629,17 @@
|
|
|
629
629
|
"name": "leftMask",
|
|
630
630
|
"nameLocation": "661:8:11",
|
|
631
631
|
"parameters": {
|
|
632
|
-
"id":
|
|
632
|
+
"id": 5852,
|
|
633
633
|
"nodeType": "ParameterList",
|
|
634
634
|
"parameters": [
|
|
635
635
|
{
|
|
636
636
|
"constant": false,
|
|
637
|
-
"id":
|
|
637
|
+
"id": 5851,
|
|
638
638
|
"mutability": "mutable",
|
|
639
639
|
"name": "byteLength",
|
|
640
640
|
"nameLocation": "678:10:11",
|
|
641
641
|
"nodeType": "VariableDeclaration",
|
|
642
|
-
"scope":
|
|
642
|
+
"scope": 5871,
|
|
643
643
|
"src": "670:18:11",
|
|
644
644
|
"stateVariable": false,
|
|
645
645
|
"storageLocation": "default",
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
"typeString": "uint256"
|
|
649
649
|
},
|
|
650
650
|
"typeName": {
|
|
651
|
-
"id":
|
|
651
|
+
"id": 5850,
|
|
652
652
|
"name": "uint256",
|
|
653
653
|
"nodeType": "ElementaryTypeName",
|
|
654
654
|
"src": "670:7:11",
|
|
@@ -663,17 +663,17 @@
|
|
|
663
663
|
"src": "669:20:11"
|
|
664
664
|
},
|
|
665
665
|
"returnParameters": {
|
|
666
|
-
"id":
|
|
666
|
+
"id": 5855,
|
|
667
667
|
"nodeType": "ParameterList",
|
|
668
668
|
"parameters": [
|
|
669
669
|
{
|
|
670
670
|
"constant": false,
|
|
671
|
-
"id":
|
|
671
|
+
"id": 5854,
|
|
672
672
|
"mutability": "mutable",
|
|
673
673
|
"name": "",
|
|
674
674
|
"nameLocation": "-1:-1:-1",
|
|
675
675
|
"nodeType": "VariableDeclaration",
|
|
676
|
-
"scope":
|
|
676
|
+
"scope": 5871,
|
|
677
677
|
"src": "713:7:11",
|
|
678
678
|
"stateVariable": false,
|
|
679
679
|
"storageLocation": "default",
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
"typeString": "uint256"
|
|
683
683
|
},
|
|
684
684
|
"typeName": {
|
|
685
|
-
"id":
|
|
685
|
+
"id": 5853,
|
|
686
686
|
"name": "uint256",
|
|
687
687
|
"nodeType": "ElementaryTypeName",
|
|
688
688
|
"src": "713:7:11",
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
],
|
|
697
697
|
"src": "712:9:11"
|
|
698
698
|
},
|
|
699
|
-
"scope":
|
|
699
|
+
"scope": 5872,
|
|
700
700
|
"stateMutability": "pure",
|
|
701
701
|
"virtual": false,
|
|
702
702
|
"visibility": "internal"
|
|
@@ -709,11 +709,11 @@
|
|
|
709
709
|
"contractKind": "library",
|
|
710
710
|
"fullyImplemented": true,
|
|
711
711
|
"linearizedBaseContracts": [
|
|
712
|
-
|
|
712
|
+
5872
|
|
713
713
|
],
|
|
714
714
|
"name": "Utils",
|
|
715
715
|
"nameLocation": "66:5:11",
|
|
716
|
-
"scope":
|
|
716
|
+
"scope": 5873,
|
|
717
717
|
"usedErrors": []
|
|
718
718
|
}
|
|
719
719
|
],
|