@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
|
@@ -103,26 +103,26 @@
|
|
|
103
103
|
},
|
|
104
104
|
"ast": {
|
|
105
105
|
"absolutePath": "/home/runner/work/mud/mud/packages/store/src/tightcoder/TightCoder.sol",
|
|
106
|
-
"id":
|
|
106
|
+
"id": 16440,
|
|
107
107
|
"exportedSymbols": {
|
|
108
108
|
"SchemaType": [
|
|
109
|
-
|
|
109
|
+
16644
|
|
110
110
|
],
|
|
111
111
|
"Slice": [
|
|
112
|
-
|
|
112
|
+
2292
|
|
113
113
|
],
|
|
114
114
|
"SliceLib": [
|
|
115
|
-
|
|
115
|
+
2437
|
|
116
116
|
],
|
|
117
117
|
"TightCoder": [
|
|
118
|
-
|
|
118
|
+
16439
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
121
|
"nodeType": "SourceUnit",
|
|
122
122
|
"src": "32:4035:20",
|
|
123
123
|
"nodes": [
|
|
124
124
|
{
|
|
125
|
-
"id":
|
|
125
|
+
"id": 16280,
|
|
126
126
|
"nodeType": "PragmaDirective",
|
|
127
127
|
"src": "32:24:20",
|
|
128
128
|
"nodes": [],
|
|
@@ -134,23 +134,23 @@
|
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"id":
|
|
137
|
+
"id": 16282,
|
|
138
138
|
"nodeType": "ImportDirective",
|
|
139
139
|
"src": "58:81:20",
|
|
140
140
|
"nodes": [],
|
|
141
141
|
"absolutePath": "node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol",
|
|
142
142
|
"file": "@latticexyz/schema-type/src/solidity/SchemaType.sol",
|
|
143
143
|
"nameLocation": "-1:-1:-1",
|
|
144
|
-
"scope":
|
|
145
|
-
"sourceUnit":
|
|
144
|
+
"scope": 16440,
|
|
145
|
+
"sourceUnit": 16711,
|
|
146
146
|
"symbolAliases": [
|
|
147
147
|
{
|
|
148
148
|
"foreign": {
|
|
149
|
-
"id":
|
|
149
|
+
"id": 16281,
|
|
150
150
|
"name": "SchemaType",
|
|
151
151
|
"nodeType": "Identifier",
|
|
152
152
|
"overloadedDeclarations": [],
|
|
153
|
-
"referencedDeclaration":
|
|
153
|
+
"referencedDeclaration": 16644,
|
|
154
154
|
"src": "67:10:20",
|
|
155
155
|
"typeDescriptions": {}
|
|
156
156
|
},
|
|
@@ -160,23 +160,23 @@
|
|
|
160
160
|
"unitAlias": ""
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
"id":
|
|
163
|
+
"id": 16285,
|
|
164
164
|
"nodeType": "ImportDirective",
|
|
165
165
|
"src": "140:47:20",
|
|
166
166
|
"nodes": [],
|
|
167
167
|
"absolutePath": "/home/runner/work/mud/mud/packages/store/src/Slice.sol",
|
|
168
168
|
"file": "../Slice.sol",
|
|
169
169
|
"nameLocation": "-1:-1:-1",
|
|
170
|
-
"scope":
|
|
171
|
-
"sourceUnit":
|
|
170
|
+
"scope": 16440,
|
|
171
|
+
"sourceUnit": 2534,
|
|
172
172
|
"symbolAliases": [
|
|
173
173
|
{
|
|
174
174
|
"foreign": {
|
|
175
|
-
"id":
|
|
175
|
+
"id": 16283,
|
|
176
176
|
"name": "Slice",
|
|
177
177
|
"nodeType": "Identifier",
|
|
178
178
|
"overloadedDeclarations": [],
|
|
179
|
-
"referencedDeclaration":
|
|
179
|
+
"referencedDeclaration": 2292,
|
|
180
180
|
"src": "149:5:20",
|
|
181
181
|
"typeDescriptions": {}
|
|
182
182
|
},
|
|
@@ -184,11 +184,11 @@
|
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"foreign": {
|
|
187
|
-
"id":
|
|
187
|
+
"id": 16284,
|
|
188
188
|
"name": "SliceLib",
|
|
189
189
|
"nodeType": "Identifier",
|
|
190
190
|
"overloadedDeclarations": [],
|
|
191
|
-
"referencedDeclaration":
|
|
191
|
+
"referencedDeclaration": 2437,
|
|
192
192
|
"src": "156:8:20",
|
|
193
193
|
"typeDescriptions": {}
|
|
194
194
|
},
|
|
@@ -198,34 +198,34 @@
|
|
|
198
198
|
"unitAlias": ""
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"id":
|
|
201
|
+
"id": 16439,
|
|
202
202
|
"nodeType": "ContractDefinition",
|
|
203
203
|
"src": "189:3877:20",
|
|
204
204
|
"nodes": [
|
|
205
205
|
{
|
|
206
|
-
"id":
|
|
206
|
+
"id": 16340,
|
|
207
207
|
"nodeType": "FunctionDefinition",
|
|
208
208
|
"src": "505:1225:20",
|
|
209
209
|
"nodes": [],
|
|
210
210
|
"body": {
|
|
211
|
-
"id":
|
|
211
|
+
"id": 16339,
|
|
212
212
|
"nodeType": "Block",
|
|
213
213
|
"src": "647:1083:20",
|
|
214
214
|
"nodes": [],
|
|
215
215
|
"statements": [
|
|
216
216
|
{
|
|
217
217
|
"assignments": [
|
|
218
|
-
|
|
218
|
+
16300
|
|
219
219
|
],
|
|
220
220
|
"declarations": [
|
|
221
221
|
{
|
|
222
222
|
"constant": false,
|
|
223
|
-
"id":
|
|
223
|
+
"id": 16300,
|
|
224
224
|
"mutability": "mutable",
|
|
225
225
|
"name": "arrayLength",
|
|
226
226
|
"nameLocation": "661:11:20",
|
|
227
227
|
"nodeType": "VariableDeclaration",
|
|
228
|
-
"scope":
|
|
228
|
+
"scope": 16339,
|
|
229
229
|
"src": "653:19:20",
|
|
230
230
|
"stateVariable": false,
|
|
231
231
|
"storageLocation": "default",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"typeString": "uint256"
|
|
235
235
|
},
|
|
236
236
|
"typeName": {
|
|
237
|
-
"id":
|
|
237
|
+
"id": 16299,
|
|
238
238
|
"name": "uint256",
|
|
239
239
|
"nodeType": "ElementaryTypeName",
|
|
240
240
|
"src": "653:7:20",
|
|
@@ -246,21 +246,21 @@
|
|
|
246
246
|
"visibility": "internal"
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
|
-
"id":
|
|
249
|
+
"id": 16303,
|
|
250
250
|
"initialValue": {
|
|
251
251
|
"expression": {
|
|
252
|
-
"id":
|
|
252
|
+
"id": 16301,
|
|
253
253
|
"name": "array",
|
|
254
254
|
"nodeType": "Identifier",
|
|
255
255
|
"overloadedDeclarations": [],
|
|
256
|
-
"referencedDeclaration":
|
|
256
|
+
"referencedDeclaration": 16289,
|
|
257
257
|
"src": "675:5:20",
|
|
258
258
|
"typeDescriptions": {
|
|
259
259
|
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
|
|
260
260
|
"typeString": "bytes32[] memory"
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
"id":
|
|
263
|
+
"id": 16302,
|
|
264
264
|
"isConstant": false,
|
|
265
265
|
"isLValue": false,
|
|
266
266
|
"isPure": false,
|
|
@@ -278,17 +278,17 @@
|
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"assignments": [
|
|
281
|
-
|
|
281
|
+
16305
|
|
282
282
|
],
|
|
283
283
|
"declarations": [
|
|
284
284
|
{
|
|
285
285
|
"constant": false,
|
|
286
|
-
"id":
|
|
286
|
+
"id": 16305,
|
|
287
287
|
"mutability": "mutable",
|
|
288
288
|
"name": "packedPointer",
|
|
289
289
|
"nameLocation": "701:13:20",
|
|
290
290
|
"nodeType": "VariableDeclaration",
|
|
291
|
-
"scope":
|
|
291
|
+
"scope": 16339,
|
|
292
292
|
"src": "693:21:20",
|
|
293
293
|
"stateVariable": false,
|
|
294
294
|
"storageLocation": "default",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"typeString": "uint256"
|
|
298
298
|
},
|
|
299
299
|
"typeName": {
|
|
300
|
-
"id":
|
|
300
|
+
"id": 16304,
|
|
301
301
|
"name": "uint256",
|
|
302
302
|
"nodeType": "ElementaryTypeName",
|
|
303
303
|
"src": "693:7:20",
|
|
@@ -309,38 +309,38 @@
|
|
|
309
309
|
"visibility": "internal"
|
|
310
310
|
}
|
|
311
311
|
],
|
|
312
|
-
"id":
|
|
312
|
+
"id": 16309,
|
|
313
313
|
"initialValue": {
|
|
314
314
|
"arguments": [],
|
|
315
315
|
"expression": {
|
|
316
316
|
"argumentTypes": [],
|
|
317
317
|
"expression": {
|
|
318
|
-
"id":
|
|
318
|
+
"id": 16306,
|
|
319
319
|
"name": "packedSlice",
|
|
320
320
|
"nodeType": "Identifier",
|
|
321
321
|
"overloadedDeclarations": [],
|
|
322
|
-
"referencedDeclaration":
|
|
322
|
+
"referencedDeclaration": 16292,
|
|
323
323
|
"src": "717:11:20",
|
|
324
324
|
"typeDescriptions": {
|
|
325
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
325
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
326
326
|
"typeString": "Slice"
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
"id":
|
|
329
|
+
"id": 16307,
|
|
330
330
|
"isConstant": false,
|
|
331
331
|
"isLValue": false,
|
|
332
332
|
"isPure": false,
|
|
333
333
|
"lValueRequested": false,
|
|
334
334
|
"memberName": "pointer",
|
|
335
335
|
"nodeType": "MemberAccess",
|
|
336
|
-
"referencedDeclaration":
|
|
336
|
+
"referencedDeclaration": 2455,
|
|
337
337
|
"src": "717:19:20",
|
|
338
338
|
"typeDescriptions": {
|
|
339
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
|
339
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
|
|
340
340
|
"typeString": "function (Slice) pure returns (uint256)"
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
|
-
"id":
|
|
343
|
+
"id": 16308,
|
|
344
344
|
"isConstant": false,
|
|
345
345
|
"isLValue": false,
|
|
346
346
|
"isPure": false,
|
|
@@ -360,17 +360,17 @@
|
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"assignments": [
|
|
363
|
-
|
|
363
|
+
16311
|
|
364
364
|
],
|
|
365
365
|
"declarations": [
|
|
366
366
|
{
|
|
367
367
|
"constant": false,
|
|
368
|
-
"id":
|
|
368
|
+
"id": 16311,
|
|
369
369
|
"mutability": "mutable",
|
|
370
370
|
"name": "shiftLeft",
|
|
371
371
|
"nameLocation": "752:9:20",
|
|
372
372
|
"nodeType": "VariableDeclaration",
|
|
373
|
-
"scope":
|
|
373
|
+
"scope": 16339,
|
|
374
374
|
"src": "744:17:20",
|
|
375
375
|
"stateVariable": false,
|
|
376
376
|
"storageLocation": "default",
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
"typeString": "uint256"
|
|
380
380
|
},
|
|
381
381
|
"typeName": {
|
|
382
|
-
"id":
|
|
382
|
+
"id": 16310,
|
|
383
383
|
"name": "uint256",
|
|
384
384
|
"nodeType": "ElementaryTypeName",
|
|
385
385
|
"src": "744:7:20",
|
|
@@ -391,14 +391,14 @@
|
|
|
391
391
|
"visibility": "internal"
|
|
392
392
|
}
|
|
393
393
|
],
|
|
394
|
-
"id":
|
|
394
|
+
"id": 16320,
|
|
395
395
|
"initialValue": {
|
|
396
396
|
"condition": {
|
|
397
|
-
"id":
|
|
397
|
+
"id": 16312,
|
|
398
398
|
"name": "leftAligned",
|
|
399
399
|
"nodeType": "Identifier",
|
|
400
400
|
"overloadedDeclarations": [],
|
|
401
|
-
"referencedDeclaration":
|
|
401
|
+
"referencedDeclaration": 16296,
|
|
402
402
|
"src": "764:11:20",
|
|
403
403
|
"typeDescriptions": {
|
|
404
404
|
"typeIdentifier": "t_bool",
|
|
@@ -410,14 +410,14 @@
|
|
|
410
410
|
"typeIdentifier": "t_uint256",
|
|
411
411
|
"typeString": "uint256"
|
|
412
412
|
},
|
|
413
|
-
"id":
|
|
413
|
+
"id": 16318,
|
|
414
414
|
"isConstant": false,
|
|
415
415
|
"isLValue": false,
|
|
416
416
|
"isPure": false,
|
|
417
417
|
"lValueRequested": false,
|
|
418
418
|
"leftExpression": {
|
|
419
419
|
"hexValue": "323536",
|
|
420
|
-
"id":
|
|
420
|
+
"id": 16314,
|
|
421
421
|
"isConstant": false,
|
|
422
422
|
"isLValue": false,
|
|
423
423
|
"isPure": true,
|
|
@@ -438,17 +438,17 @@
|
|
|
438
438
|
"typeIdentifier": "t_uint256",
|
|
439
439
|
"typeString": "uint256"
|
|
440
440
|
},
|
|
441
|
-
"id":
|
|
441
|
+
"id": 16317,
|
|
442
442
|
"isConstant": false,
|
|
443
443
|
"isLValue": false,
|
|
444
444
|
"isPure": false,
|
|
445
445
|
"lValueRequested": false,
|
|
446
446
|
"leftExpression": {
|
|
447
|
-
"id":
|
|
447
|
+
"id": 16315,
|
|
448
448
|
"name": "elementSize",
|
|
449
449
|
"nodeType": "Identifier",
|
|
450
450
|
"overloadedDeclarations": [],
|
|
451
|
-
"referencedDeclaration":
|
|
451
|
+
"referencedDeclaration": 16294,
|
|
452
452
|
"src": "788:11:20",
|
|
453
453
|
"typeDescriptions": {
|
|
454
454
|
"typeIdentifier": "t_uint256",
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
"operator": "*",
|
|
460
460
|
"rightExpression": {
|
|
461
461
|
"hexValue": "38",
|
|
462
|
-
"id":
|
|
462
|
+
"id": 16316,
|
|
463
463
|
"isConstant": false,
|
|
464
464
|
"isLValue": false,
|
|
465
465
|
"isPure": true,
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
"typeString": "uint256"
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
|
-
"id":
|
|
488
|
+
"id": 16319,
|
|
489
489
|
"isConstant": false,
|
|
490
490
|
"isLValue": false,
|
|
491
491
|
"isPure": false,
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
"src": "764:39:20",
|
|
495
495
|
"trueExpression": {
|
|
496
496
|
"hexValue": "30",
|
|
497
|
-
"id":
|
|
497
|
+
"id": 16313,
|
|
498
498
|
"isConstant": false,
|
|
499
499
|
"isLValue": false,
|
|
500
500
|
"isPure": true,
|
|
@@ -518,17 +518,17 @@
|
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
"assignments": [
|
|
521
|
-
|
|
521
|
+
16322
|
|
522
522
|
],
|
|
523
523
|
"declarations": [
|
|
524
524
|
{
|
|
525
525
|
"constant": false,
|
|
526
|
-
"id":
|
|
526
|
+
"id": 16322,
|
|
527
527
|
"mutability": "mutable",
|
|
528
528
|
"name": "packedLength",
|
|
529
529
|
"nameLocation": "958:12:20",
|
|
530
530
|
"nodeType": "VariableDeclaration",
|
|
531
|
-
"scope":
|
|
531
|
+
"scope": 16339,
|
|
532
532
|
"src": "950:20:20",
|
|
533
533
|
"stateVariable": false,
|
|
534
534
|
"storageLocation": "default",
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"typeString": "uint256"
|
|
538
538
|
},
|
|
539
539
|
"typeName": {
|
|
540
|
-
"id":
|
|
540
|
+
"id": 16321,
|
|
541
541
|
"name": "uint256",
|
|
542
542
|
"nodeType": "ElementaryTypeName",
|
|
543
543
|
"src": "950:7:20",
|
|
@@ -549,23 +549,23 @@
|
|
|
549
549
|
"visibility": "internal"
|
|
550
550
|
}
|
|
551
551
|
],
|
|
552
|
-
"id":
|
|
552
|
+
"id": 16326,
|
|
553
553
|
"initialValue": {
|
|
554
554
|
"commonType": {
|
|
555
555
|
"typeIdentifier": "t_uint256",
|
|
556
556
|
"typeString": "uint256"
|
|
557
557
|
},
|
|
558
|
-
"id":
|
|
558
|
+
"id": 16325,
|
|
559
559
|
"isConstant": false,
|
|
560
560
|
"isLValue": false,
|
|
561
561
|
"isPure": false,
|
|
562
562
|
"lValueRequested": false,
|
|
563
563
|
"leftExpression": {
|
|
564
|
-
"id":
|
|
564
|
+
"id": 16323,
|
|
565
565
|
"name": "arrayLength",
|
|
566
566
|
"nodeType": "Identifier",
|
|
567
567
|
"overloadedDeclarations": [],
|
|
568
|
-
"referencedDeclaration":
|
|
568
|
+
"referencedDeclaration": 16300,
|
|
569
569
|
"src": "973:11:20",
|
|
570
570
|
"typeDescriptions": {
|
|
571
571
|
"typeIdentifier": "t_uint256",
|
|
@@ -575,11 +575,11 @@
|
|
|
575
575
|
"nodeType": "BinaryOperation",
|
|
576
576
|
"operator": "*",
|
|
577
577
|
"rightExpression": {
|
|
578
|
-
"id":
|
|
578
|
+
"id": 16324,
|
|
579
579
|
"name": "elementSize",
|
|
580
580
|
"nodeType": "Identifier",
|
|
581
581
|
"overloadedDeclarations": [],
|
|
582
|
-
"referencedDeclaration":
|
|
582
|
+
"referencedDeclaration": 16294,
|
|
583
583
|
"src": "987:11:20",
|
|
584
584
|
"typeDescriptions": {
|
|
585
585
|
"typeIdentifier": "t_uint256",
|
|
@@ -601,17 +601,17 @@
|
|
|
601
601
|
"typeIdentifier": "t_uint256",
|
|
602
602
|
"typeString": "uint256"
|
|
603
603
|
},
|
|
604
|
-
"id":
|
|
604
|
+
"id": 16331,
|
|
605
605
|
"isConstant": false,
|
|
606
606
|
"isLValue": false,
|
|
607
607
|
"isPure": false,
|
|
608
608
|
"lValueRequested": false,
|
|
609
609
|
"leftExpression": {
|
|
610
|
-
"id":
|
|
610
|
+
"id": 16327,
|
|
611
611
|
"name": "packedLength",
|
|
612
612
|
"nodeType": "Identifier",
|
|
613
613
|
"overloadedDeclarations": [],
|
|
614
|
-
"referencedDeclaration":
|
|
614
|
+
"referencedDeclaration": 16322,
|
|
615
615
|
"src": "1008:12:20",
|
|
616
616
|
"typeDescriptions": {
|
|
617
617
|
"typeIdentifier": "t_uint256",
|
|
@@ -625,32 +625,32 @@
|
|
|
625
625
|
"expression": {
|
|
626
626
|
"argumentTypes": [],
|
|
627
627
|
"expression": {
|
|
628
|
-
"id":
|
|
628
|
+
"id": 16328,
|
|
629
629
|
"name": "packedSlice",
|
|
630
630
|
"nodeType": "Identifier",
|
|
631
631
|
"overloadedDeclarations": [],
|
|
632
|
-
"referencedDeclaration":
|
|
632
|
+
"referencedDeclaration": 16292,
|
|
633
633
|
"src": "1023:11:20",
|
|
634
634
|
"typeDescriptions": {
|
|
635
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
635
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
636
636
|
"typeString": "Slice"
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
|
-
"id":
|
|
639
|
+
"id": 16329,
|
|
640
640
|
"isConstant": false,
|
|
641
641
|
"isLValue": false,
|
|
642
642
|
"isPure": false,
|
|
643
643
|
"lValueRequested": false,
|
|
644
644
|
"memberName": "length",
|
|
645
645
|
"nodeType": "MemberAccess",
|
|
646
|
-
"referencedDeclaration":
|
|
646
|
+
"referencedDeclaration": 2473,
|
|
647
647
|
"src": "1023:18:20",
|
|
648
648
|
"typeDescriptions": {
|
|
649
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
|
649
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
|
|
650
650
|
"typeString": "function (Slice) pure returns (uint256)"
|
|
651
651
|
}
|
|
652
652
|
},
|
|
653
|
-
"id":
|
|
653
|
+
"id": 16330,
|
|
654
654
|
"isConstant": false,
|
|
655
655
|
"isLValue": false,
|
|
656
656
|
"isPure": false,
|
|
@@ -671,11 +671,11 @@
|
|
|
671
671
|
"typeString": "bool"
|
|
672
672
|
}
|
|
673
673
|
},
|
|
674
|
-
"id":
|
|
674
|
+
"id": 16337,
|
|
675
675
|
"nodeType": "IfStatement",
|
|
676
676
|
"src": "1004:122:20",
|
|
677
677
|
"trueBody": {
|
|
678
|
-
"id":
|
|
678
|
+
"id": 16336,
|
|
679
679
|
"nodeType": "Block",
|
|
680
680
|
"src": "1045:81:20",
|
|
681
681
|
"statements": [
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
"arguments": [
|
|
685
685
|
{
|
|
686
686
|
"hexValue": "7061636b46726f6d41727261793a20696e73756666696369656e7420616c6c6f6361746564207061636b6564536c696365206c656e677468",
|
|
687
|
-
"id":
|
|
687
|
+
"id": 16333,
|
|
688
688
|
"isConstant": false,
|
|
689
689
|
"isLValue": false,
|
|
690
690
|
"isPure": true,
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"typeString": "literal_string \"packFromArray: insufficient allocated packedSlice length\""
|
|
707
707
|
}
|
|
708
708
|
],
|
|
709
|
-
"id":
|
|
709
|
+
"id": 16332,
|
|
710
710
|
"name": "revert",
|
|
711
711
|
"nodeType": "Identifier",
|
|
712
712
|
"overloadedDeclarations": [
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
"typeString": "function (string memory) pure"
|
|
721
721
|
}
|
|
722
722
|
},
|
|
723
|
-
"id":
|
|
723
|
+
"id": 16334,
|
|
724
724
|
"isConstant": false,
|
|
725
725
|
"isLValue": false,
|
|
726
726
|
"isPure": false,
|
|
@@ -735,7 +735,7 @@
|
|
|
735
735
|
"typeString": "tuple()"
|
|
736
736
|
}
|
|
737
737
|
},
|
|
738
|
-
"id":
|
|
738
|
+
"id": 16335,
|
|
739
739
|
"nodeType": "ExpressionStatement",
|
|
740
740
|
"src": "1053:66:20"
|
|
741
741
|
}
|
|
@@ -1019,49 +1019,49 @@
|
|
|
1019
1019
|
"evmVersion": "london",
|
|
1020
1020
|
"externalReferences": [
|
|
1021
1021
|
{
|
|
1022
|
-
"declaration":
|
|
1022
|
+
"declaration": 16289,
|
|
1023
1023
|
"isOffset": false,
|
|
1024
1024
|
"isSlot": false,
|
|
1025
1025
|
"src": "1244:5:20",
|
|
1026
1026
|
"valueSize": 1
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
|
-
"declaration":
|
|
1029
|
+
"declaration": 16300,
|
|
1030
1030
|
"isOffset": false,
|
|
1031
1031
|
"isSlot": false,
|
|
1032
1032
|
"src": "1334:11:20",
|
|
1033
1033
|
"valueSize": 1
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
|
-
"declaration":
|
|
1036
|
+
"declaration": 16294,
|
|
1037
1037
|
"isOffset": false,
|
|
1038
1038
|
"isSlot": false,
|
|
1039
1039
|
"src": "1551:11:20",
|
|
1040
1040
|
"valueSize": 1
|
|
1041
1041
|
},
|
|
1042
1042
|
{
|
|
1043
|
-
"declaration":
|
|
1043
|
+
"declaration": 16305,
|
|
1044
1044
|
"isOffset": false,
|
|
1045
1045
|
"isSlot": false,
|
|
1046
1046
|
"src": "1306:13:20",
|
|
1047
1047
|
"valueSize": 1
|
|
1048
1048
|
},
|
|
1049
1049
|
{
|
|
1050
|
-
"declaration":
|
|
1050
|
+
"declaration": 16311,
|
|
1051
1051
|
"isOffset": false,
|
|
1052
1052
|
"isSlot": false,
|
|
1053
1053
|
"src": "1655:9:20",
|
|
1054
1054
|
"valueSize": 1
|
|
1055
1055
|
}
|
|
1056
1056
|
],
|
|
1057
|
-
"id":
|
|
1057
|
+
"id": 16338,
|
|
1058
1058
|
"nodeType": "InlineAssembly",
|
|
1059
1059
|
"src": "1171:555:20"
|
|
1060
1060
|
}
|
|
1061
1061
|
]
|
|
1062
1062
|
},
|
|
1063
1063
|
"documentation": {
|
|
1064
|
-
"id":
|
|
1064
|
+
"id": 16286,
|
|
1065
1065
|
"nodeType": "StructuredDocumentation",
|
|
1066
1066
|
"src": "212:290:20",
|
|
1067
1067
|
"text": " @dev Copies the array to the location of `packedSlice`,\n tightly packing it using the given size per element (in bytes)\n TODO this function is currently not used externally and will be changed in the future\n (see https://github.com/latticexyz/mud/issues/444)"
|
|
@@ -1072,17 +1072,17 @@
|
|
|
1072
1072
|
"name": "_encodeToLocation",
|
|
1073
1073
|
"nameLocation": "514:17:20",
|
|
1074
1074
|
"parameters": {
|
|
1075
|
-
"id":
|
|
1075
|
+
"id": 16297,
|
|
1076
1076
|
"nodeType": "ParameterList",
|
|
1077
1077
|
"parameters": [
|
|
1078
1078
|
{
|
|
1079
1079
|
"constant": false,
|
|
1080
|
-
"id":
|
|
1080
|
+
"id": 16289,
|
|
1081
1081
|
"mutability": "mutable",
|
|
1082
1082
|
"name": "array",
|
|
1083
1083
|
"nameLocation": "554:5:20",
|
|
1084
1084
|
"nodeType": "VariableDeclaration",
|
|
1085
|
-
"scope":
|
|
1085
|
+
"scope": 16340,
|
|
1086
1086
|
"src": "537:22:20",
|
|
1087
1087
|
"stateVariable": false,
|
|
1088
1088
|
"storageLocation": "memory",
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
},
|
|
1093
1093
|
"typeName": {
|
|
1094
1094
|
"baseType": {
|
|
1095
|
-
"id":
|
|
1095
|
+
"id": 16287,
|
|
1096
1096
|
"name": "bytes32",
|
|
1097
1097
|
"nodeType": "ElementaryTypeName",
|
|
1098
1098
|
"src": "537:7:20",
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
"typeString": "bytes32"
|
|
1102
1102
|
}
|
|
1103
1103
|
},
|
|
1104
|
-
"id":
|
|
1104
|
+
"id": 16288,
|
|
1105
1105
|
"nodeType": "ArrayTypeName",
|
|
1106
1106
|
"src": "537:9:20",
|
|
1107
1107
|
"typeDescriptions": {
|
|
@@ -1113,33 +1113,33 @@
|
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
1115
|
"constant": false,
|
|
1116
|
-
"id":
|
|
1116
|
+
"id": 16292,
|
|
1117
1117
|
"mutability": "mutable",
|
|
1118
1118
|
"name": "packedSlice",
|
|
1119
1119
|
"nameLocation": "571:11:20",
|
|
1120
1120
|
"nodeType": "VariableDeclaration",
|
|
1121
|
-
"scope":
|
|
1121
|
+
"scope": 16340,
|
|
1122
1122
|
"src": "565:17:20",
|
|
1123
1123
|
"stateVariable": false,
|
|
1124
1124
|
"storageLocation": "default",
|
|
1125
1125
|
"typeDescriptions": {
|
|
1126
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1126
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1127
1127
|
"typeString": "Slice"
|
|
1128
1128
|
},
|
|
1129
1129
|
"typeName": {
|
|
1130
|
-
"id":
|
|
1130
|
+
"id": 16291,
|
|
1131
1131
|
"nodeType": "UserDefinedTypeName",
|
|
1132
1132
|
"pathNode": {
|
|
1133
|
-
"id":
|
|
1133
|
+
"id": 16290,
|
|
1134
1134
|
"name": "Slice",
|
|
1135
1135
|
"nodeType": "IdentifierPath",
|
|
1136
|
-
"referencedDeclaration":
|
|
1136
|
+
"referencedDeclaration": 2292,
|
|
1137
1137
|
"src": "565:5:20"
|
|
1138
1138
|
},
|
|
1139
|
-
"referencedDeclaration":
|
|
1139
|
+
"referencedDeclaration": 2292,
|
|
1140
1140
|
"src": "565:5:20",
|
|
1141
1141
|
"typeDescriptions": {
|
|
1142
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1142
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1143
1143
|
"typeString": "Slice"
|
|
1144
1144
|
}
|
|
1145
1145
|
},
|
|
@@ -1147,12 +1147,12 @@
|
|
|
1147
1147
|
},
|
|
1148
1148
|
{
|
|
1149
1149
|
"constant": false,
|
|
1150
|
-
"id":
|
|
1150
|
+
"id": 16294,
|
|
1151
1151
|
"mutability": "mutable",
|
|
1152
1152
|
"name": "elementSize",
|
|
1153
1153
|
"nameLocation": "596:11:20",
|
|
1154
1154
|
"nodeType": "VariableDeclaration",
|
|
1155
|
-
"scope":
|
|
1155
|
+
"scope": 16340,
|
|
1156
1156
|
"src": "588:19:20",
|
|
1157
1157
|
"stateVariable": false,
|
|
1158
1158
|
"storageLocation": "default",
|
|
@@ -1161,7 +1161,7 @@
|
|
|
1161
1161
|
"typeString": "uint256"
|
|
1162
1162
|
},
|
|
1163
1163
|
"typeName": {
|
|
1164
|
-
"id":
|
|
1164
|
+
"id": 16293,
|
|
1165
1165
|
"name": "uint256",
|
|
1166
1166
|
"nodeType": "ElementaryTypeName",
|
|
1167
1167
|
"src": "588:7:20",
|
|
@@ -1174,12 +1174,12 @@
|
|
|
1174
1174
|
},
|
|
1175
1175
|
{
|
|
1176
1176
|
"constant": false,
|
|
1177
|
-
"id":
|
|
1177
|
+
"id": 16296,
|
|
1178
1178
|
"mutability": "mutable",
|
|
1179
1179
|
"name": "leftAligned",
|
|
1180
1180
|
"nameLocation": "618:11:20",
|
|
1181
1181
|
"nodeType": "VariableDeclaration",
|
|
1182
|
-
"scope":
|
|
1182
|
+
"scope": 16340,
|
|
1183
1183
|
"src": "613:16:20",
|
|
1184
1184
|
"stateVariable": false,
|
|
1185
1185
|
"storageLocation": "default",
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
"typeString": "bool"
|
|
1189
1189
|
},
|
|
1190
1190
|
"typeName": {
|
|
1191
|
-
"id":
|
|
1191
|
+
"id": 16295,
|
|
1192
1192
|
"name": "bool",
|
|
1193
1193
|
"nodeType": "ElementaryTypeName",
|
|
1194
1194
|
"src": "613:4:20",
|
|
@@ -1203,40 +1203,40 @@
|
|
|
1203
1203
|
"src": "531:102:20"
|
|
1204
1204
|
},
|
|
1205
1205
|
"returnParameters": {
|
|
1206
|
-
"id":
|
|
1206
|
+
"id": 16298,
|
|
1207
1207
|
"nodeType": "ParameterList",
|
|
1208
1208
|
"parameters": [],
|
|
1209
1209
|
"src": "647:0:20"
|
|
1210
1210
|
},
|
|
1211
|
-
"scope":
|
|
1211
|
+
"scope": 16439,
|
|
1212
1212
|
"stateMutability": "pure",
|
|
1213
1213
|
"virtual": false,
|
|
1214
1214
|
"visibility": "private"
|
|
1215
1215
|
},
|
|
1216
1216
|
{
|
|
1217
|
-
"id":
|
|
1217
|
+
"id": 16378,
|
|
1218
1218
|
"nodeType": "FunctionDefinition",
|
|
1219
1219
|
"src": "1863:315:20",
|
|
1220
1220
|
"nodes": [],
|
|
1221
1221
|
"body": {
|
|
1222
|
-
"id":
|
|
1222
|
+
"id": 16377,
|
|
1223
1223
|
"nodeType": "Block",
|
|
1224
1224
|
"src": "2000:178:20",
|
|
1225
1225
|
"nodes": [],
|
|
1226
1226
|
"statements": [
|
|
1227
1227
|
{
|
|
1228
1228
|
"assignments": [
|
|
1229
|
-
|
|
1229
|
+
16354
|
|
1230
1230
|
],
|
|
1231
1231
|
"declarations": [
|
|
1232
1232
|
{
|
|
1233
1233
|
"constant": false,
|
|
1234
|
-
"id":
|
|
1234
|
+
"id": 16354,
|
|
1235
1235
|
"mutability": "mutable",
|
|
1236
1236
|
"name": "packedLength",
|
|
1237
1237
|
"nameLocation": "2014:12:20",
|
|
1238
1238
|
"nodeType": "VariableDeclaration",
|
|
1239
|
-
"scope":
|
|
1239
|
+
"scope": 16377,
|
|
1240
1240
|
"src": "2006:20:20",
|
|
1241
1241
|
"stateVariable": false,
|
|
1242
1242
|
"storageLocation": "default",
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
"typeString": "uint256"
|
|
1246
1246
|
},
|
|
1247
1247
|
"typeName": {
|
|
1248
|
-
"id":
|
|
1248
|
+
"id": 16353,
|
|
1249
1249
|
"name": "uint256",
|
|
1250
1250
|
"nodeType": "ElementaryTypeName",
|
|
1251
1251
|
"src": "2006:7:20",
|
|
@@ -1257,31 +1257,31 @@
|
|
|
1257
1257
|
"visibility": "internal"
|
|
1258
1258
|
}
|
|
1259
1259
|
],
|
|
1260
|
-
"id":
|
|
1260
|
+
"id": 16359,
|
|
1261
1261
|
"initialValue": {
|
|
1262
1262
|
"commonType": {
|
|
1263
1263
|
"typeIdentifier": "t_uint256",
|
|
1264
1264
|
"typeString": "uint256"
|
|
1265
1265
|
},
|
|
1266
|
-
"id":
|
|
1266
|
+
"id": 16358,
|
|
1267
1267
|
"isConstant": false,
|
|
1268
1268
|
"isLValue": false,
|
|
1269
1269
|
"isPure": false,
|
|
1270
1270
|
"lValueRequested": false,
|
|
1271
1271
|
"leftExpression": {
|
|
1272
1272
|
"expression": {
|
|
1273
|
-
"id":
|
|
1273
|
+
"id": 16355,
|
|
1274
1274
|
"name": "array",
|
|
1275
1275
|
"nodeType": "Identifier",
|
|
1276
1276
|
"overloadedDeclarations": [],
|
|
1277
|
-
"referencedDeclaration":
|
|
1277
|
+
"referencedDeclaration": 16344,
|
|
1278
1278
|
"src": "2029:5:20",
|
|
1279
1279
|
"typeDescriptions": {
|
|
1280
1280
|
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
|
|
1281
1281
|
"typeString": "bytes32[] memory"
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
|
-
"id":
|
|
1284
|
+
"id": 16356,
|
|
1285
1285
|
"isConstant": false,
|
|
1286
1286
|
"isLValue": false,
|
|
1287
1287
|
"isPure": false,
|
|
@@ -1297,11 +1297,11 @@
|
|
|
1297
1297
|
"nodeType": "BinaryOperation",
|
|
1298
1298
|
"operator": "*",
|
|
1299
1299
|
"rightExpression": {
|
|
1300
|
-
"id":
|
|
1300
|
+
"id": 16357,
|
|
1301
1301
|
"name": "elementSize",
|
|
1302
1302
|
"nodeType": "Identifier",
|
|
1303
1303
|
"overloadedDeclarations": [],
|
|
1304
|
-
"referencedDeclaration":
|
|
1304
|
+
"referencedDeclaration": 16346,
|
|
1305
1305
|
"src": "2044:11:20",
|
|
1306
1306
|
"typeDescriptions": {
|
|
1307
1307
|
"typeIdentifier": "t_uint256",
|
|
@@ -1319,17 +1319,17 @@
|
|
|
1319
1319
|
},
|
|
1320
1320
|
{
|
|
1321
1321
|
"expression": {
|
|
1322
|
-
"id":
|
|
1322
|
+
"id": 16365,
|
|
1323
1323
|
"isConstant": false,
|
|
1324
1324
|
"isLValue": false,
|
|
1325
1325
|
"isPure": false,
|
|
1326
1326
|
"lValueRequested": false,
|
|
1327
1327
|
"leftHandSide": {
|
|
1328
|
-
"id":
|
|
1328
|
+
"id": 16360,
|
|
1329
1329
|
"name": "data",
|
|
1330
1330
|
"nodeType": "Identifier",
|
|
1331
1331
|
"overloadedDeclarations": [],
|
|
1332
|
-
"referencedDeclaration":
|
|
1332
|
+
"referencedDeclaration": 16351,
|
|
1333
1333
|
"src": "2061:4:20",
|
|
1334
1334
|
"typeDescriptions": {
|
|
1335
1335
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
@@ -1341,11 +1341,11 @@
|
|
|
1341
1341
|
"rightHandSide": {
|
|
1342
1342
|
"arguments": [
|
|
1343
1343
|
{
|
|
1344
|
-
"id":
|
|
1344
|
+
"id": 16363,
|
|
1345
1345
|
"name": "packedLength",
|
|
1346
1346
|
"nodeType": "Identifier",
|
|
1347
1347
|
"overloadedDeclarations": [],
|
|
1348
|
-
"referencedDeclaration":
|
|
1348
|
+
"referencedDeclaration": 16354,
|
|
1349
1349
|
"src": "2078:12:20",
|
|
1350
1350
|
"typeDescriptions": {
|
|
1351
1351
|
"typeIdentifier": "t_uint256",
|
|
@@ -1360,7 +1360,7 @@
|
|
|
1360
1360
|
"typeString": "uint256"
|
|
1361
1361
|
}
|
|
1362
1362
|
],
|
|
1363
|
-
"id":
|
|
1363
|
+
"id": 16362,
|
|
1364
1364
|
"isConstant": false,
|
|
1365
1365
|
"isLValue": false,
|
|
1366
1366
|
"isPure": true,
|
|
@@ -1372,7 +1372,7 @@
|
|
|
1372
1372
|
"typeString": "function (uint256) pure returns (bytes memory)"
|
|
1373
1373
|
},
|
|
1374
1374
|
"typeName": {
|
|
1375
|
-
"id":
|
|
1375
|
+
"id": 16361,
|
|
1376
1376
|
"name": "bytes",
|
|
1377
1377
|
"nodeType": "ElementaryTypeName",
|
|
1378
1378
|
"src": "2072:5:20",
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
},
|
|
1385
|
-
"id":
|
|
1385
|
+
"id": 16364,
|
|
1386
1386
|
"isConstant": false,
|
|
1387
1387
|
"isLValue": false,
|
|
1388
1388
|
"isPure": false,
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
"typeString": "bytes memory"
|
|
1404
1404
|
}
|
|
1405
1405
|
},
|
|
1406
|
-
"id":
|
|
1406
|
+
"id": 16366,
|
|
1407
1407
|
"nodeType": "ExpressionStatement",
|
|
1408
1408
|
"src": "2061:30:20"
|
|
1409
1409
|
},
|
|
@@ -1411,11 +1411,11 @@
|
|
|
1411
1411
|
"expression": {
|
|
1412
1412
|
"arguments": [
|
|
1413
1413
|
{
|
|
1414
|
-
"id":
|
|
1414
|
+
"id": 16368,
|
|
1415
1415
|
"name": "array",
|
|
1416
1416
|
"nodeType": "Identifier",
|
|
1417
1417
|
"overloadedDeclarations": [],
|
|
1418
|
-
"referencedDeclaration":
|
|
1418
|
+
"referencedDeclaration": 16344,
|
|
1419
1419
|
"src": "2115:5:20",
|
|
1420
1420
|
"typeDescriptions": {
|
|
1421
1421
|
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
|
|
@@ -1425,11 +1425,11 @@
|
|
|
1425
1425
|
{
|
|
1426
1426
|
"arguments": [
|
|
1427
1427
|
{
|
|
1428
|
-
"id":
|
|
1428
|
+
"id": 16371,
|
|
1429
1429
|
"name": "data",
|
|
1430
1430
|
"nodeType": "Identifier",
|
|
1431
1431
|
"overloadedDeclarations": [],
|
|
1432
|
-
"referencedDeclaration":
|
|
1432
|
+
"referencedDeclaration": 16351,
|
|
1433
1433
|
"src": "2141:4:20",
|
|
1434
1434
|
"typeDescriptions": {
|
|
1435
1435
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
@@ -1445,32 +1445,32 @@
|
|
|
1445
1445
|
}
|
|
1446
1446
|
],
|
|
1447
1447
|
"expression": {
|
|
1448
|
-
"id":
|
|
1448
|
+
"id": 16369,
|
|
1449
1449
|
"name": "SliceLib",
|
|
1450
1450
|
"nodeType": "Identifier",
|
|
1451
1451
|
"overloadedDeclarations": [],
|
|
1452
|
-
"referencedDeclaration":
|
|
1452
|
+
"referencedDeclaration": 2437,
|
|
1453
1453
|
"src": "2122:8:20",
|
|
1454
1454
|
"typeDescriptions": {
|
|
1455
|
-
"typeIdentifier": "t_type$_t_contract$_SliceLib_$
|
|
1455
|
+
"typeIdentifier": "t_type$_t_contract$_SliceLib_$2437_$",
|
|
1456
1456
|
"typeString": "type(library SliceLib)"
|
|
1457
1457
|
}
|
|
1458
1458
|
},
|
|
1459
|
-
"id":
|
|
1459
|
+
"id": 16370,
|
|
1460
1460
|
"isConstant": false,
|
|
1461
1461
|
"isLValue": false,
|
|
1462
1462
|
"isPure": false,
|
|
1463
1463
|
"lValueRequested": false,
|
|
1464
1464
|
"memberName": "fromBytes",
|
|
1465
1465
|
"nodeType": "MemberAccess",
|
|
1466
|
-
"referencedDeclaration":
|
|
1466
|
+
"referencedDeclaration": 2359,
|
|
1467
1467
|
"src": "2122:18:20",
|
|
1468
1468
|
"typeDescriptions": {
|
|
1469
|
-
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_userDefinedValueType$_Slice_$
|
|
1469
|
+
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_userDefinedValueType$_Slice_$2292_$",
|
|
1470
1470
|
"typeString": "function (bytes memory) pure returns (Slice)"
|
|
1471
1471
|
}
|
|
1472
1472
|
},
|
|
1473
|
-
"id":
|
|
1473
|
+
"id": 16372,
|
|
1474
1474
|
"isConstant": false,
|
|
1475
1475
|
"isLValue": false,
|
|
1476
1476
|
"isPure": false,
|
|
@@ -1481,16 +1481,16 @@
|
|
|
1481
1481
|
"src": "2122:24:20",
|
|
1482
1482
|
"tryCall": false,
|
|
1483
1483
|
"typeDescriptions": {
|
|
1484
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1484
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1485
1485
|
"typeString": "Slice"
|
|
1486
1486
|
}
|
|
1487
1487
|
},
|
|
1488
1488
|
{
|
|
1489
|
-
"id":
|
|
1489
|
+
"id": 16373,
|
|
1490
1490
|
"name": "elementSize",
|
|
1491
1491
|
"nodeType": "Identifier",
|
|
1492
1492
|
"overloadedDeclarations": [],
|
|
1493
|
-
"referencedDeclaration":
|
|
1493
|
+
"referencedDeclaration": 16346,
|
|
1494
1494
|
"src": "2148:11:20",
|
|
1495
1495
|
"typeDescriptions": {
|
|
1496
1496
|
"typeIdentifier": "t_uint256",
|
|
@@ -1498,11 +1498,11 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
},
|
|
1500
1500
|
{
|
|
1501
|
-
"id":
|
|
1501
|
+
"id": 16374,
|
|
1502
1502
|
"name": "leftAligned",
|
|
1503
1503
|
"nodeType": "Identifier",
|
|
1504
1504
|
"overloadedDeclarations": [],
|
|
1505
|
-
"referencedDeclaration":
|
|
1505
|
+
"referencedDeclaration": 16348,
|
|
1506
1506
|
"src": "2161:11:20",
|
|
1507
1507
|
"typeDescriptions": {
|
|
1508
1508
|
"typeIdentifier": "t_bool",
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
"typeString": "bytes32[] memory"
|
|
1518
1518
|
},
|
|
1519
1519
|
{
|
|
1520
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1520
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1521
1521
|
"typeString": "Slice"
|
|
1522
1522
|
},
|
|
1523
1523
|
{
|
|
@@ -1529,18 +1529,18 @@
|
|
|
1529
1529
|
"typeString": "bool"
|
|
1530
1530
|
}
|
|
1531
1531
|
],
|
|
1532
|
-
"id":
|
|
1532
|
+
"id": 16367,
|
|
1533
1533
|
"name": "_encodeToLocation",
|
|
1534
1534
|
"nodeType": "Identifier",
|
|
1535
1535
|
"overloadedDeclarations": [],
|
|
1536
|
-
"referencedDeclaration":
|
|
1536
|
+
"referencedDeclaration": 16340,
|
|
1537
1537
|
"src": "2097:17:20",
|
|
1538
1538
|
"typeDescriptions": {
|
|
1539
|
-
"typeIdentifier": "t_function_internal_pure$_t_array$_t_bytes32_$dyn_memory_ptr_$_t_userDefinedValueType$_Slice_$
|
|
1539
|
+
"typeIdentifier": "t_function_internal_pure$_t_array$_t_bytes32_$dyn_memory_ptr_$_t_userDefinedValueType$_Slice_$2292_$_t_uint256_$_t_bool_$returns$__$",
|
|
1540
1540
|
"typeString": "function (bytes32[] memory,Slice,uint256,bool) pure"
|
|
1541
1541
|
}
|
|
1542
1542
|
},
|
|
1543
|
-
"id":
|
|
1543
|
+
"id": 16375,
|
|
1544
1544
|
"isConstant": false,
|
|
1545
1545
|
"isLValue": false,
|
|
1546
1546
|
"isPure": false,
|
|
@@ -1555,14 +1555,14 @@
|
|
|
1555
1555
|
"typeString": "tuple()"
|
|
1556
1556
|
}
|
|
1557
1557
|
},
|
|
1558
|
-
"id":
|
|
1558
|
+
"id": 16376,
|
|
1559
1559
|
"nodeType": "ExpressionStatement",
|
|
1560
1560
|
"src": "2097:76:20"
|
|
1561
1561
|
}
|
|
1562
1562
|
]
|
|
1563
1563
|
},
|
|
1564
1564
|
"documentation": {
|
|
1565
|
-
"id":
|
|
1565
|
+
"id": 16341,
|
|
1566
1566
|
"nodeType": "StructuredDocumentation",
|
|
1567
1567
|
"src": "1734:126:20",
|
|
1568
1568
|
"text": " @dev Copies the array to a new bytes array,\n tightly packing it using the given size per element (in bytes)"
|
|
@@ -1573,17 +1573,17 @@
|
|
|
1573
1573
|
"name": "encode",
|
|
1574
1574
|
"nameLocation": "1872:6:20",
|
|
1575
1575
|
"parameters": {
|
|
1576
|
-
"id":
|
|
1576
|
+
"id": 16349,
|
|
1577
1577
|
"nodeType": "ParameterList",
|
|
1578
1578
|
"parameters": [
|
|
1579
1579
|
{
|
|
1580
1580
|
"constant": false,
|
|
1581
|
-
"id":
|
|
1581
|
+
"id": 16344,
|
|
1582
1582
|
"mutability": "mutable",
|
|
1583
1583
|
"name": "array",
|
|
1584
1584
|
"nameLocation": "1901:5:20",
|
|
1585
1585
|
"nodeType": "VariableDeclaration",
|
|
1586
|
-
"scope":
|
|
1586
|
+
"scope": 16378,
|
|
1587
1587
|
"src": "1884:22:20",
|
|
1588
1588
|
"stateVariable": false,
|
|
1589
1589
|
"storageLocation": "memory",
|
|
@@ -1593,7 +1593,7 @@
|
|
|
1593
1593
|
},
|
|
1594
1594
|
"typeName": {
|
|
1595
1595
|
"baseType": {
|
|
1596
|
-
"id":
|
|
1596
|
+
"id": 16342,
|
|
1597
1597
|
"name": "bytes32",
|
|
1598
1598
|
"nodeType": "ElementaryTypeName",
|
|
1599
1599
|
"src": "1884:7:20",
|
|
@@ -1602,7 +1602,7 @@
|
|
|
1602
1602
|
"typeString": "bytes32"
|
|
1603
1603
|
}
|
|
1604
1604
|
},
|
|
1605
|
-
"id":
|
|
1605
|
+
"id": 16343,
|
|
1606
1606
|
"nodeType": "ArrayTypeName",
|
|
1607
1607
|
"src": "1884:9:20",
|
|
1608
1608
|
"typeDescriptions": {
|
|
@@ -1614,12 +1614,12 @@
|
|
|
1614
1614
|
},
|
|
1615
1615
|
{
|
|
1616
1616
|
"constant": false,
|
|
1617
|
-
"id":
|
|
1617
|
+
"id": 16346,
|
|
1618
1618
|
"mutability": "mutable",
|
|
1619
1619
|
"name": "elementSize",
|
|
1620
1620
|
"nameLocation": "1920:11:20",
|
|
1621
1621
|
"nodeType": "VariableDeclaration",
|
|
1622
|
-
"scope":
|
|
1622
|
+
"scope": 16378,
|
|
1623
1623
|
"src": "1912:19:20",
|
|
1624
1624
|
"stateVariable": false,
|
|
1625
1625
|
"storageLocation": "default",
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
"typeString": "uint256"
|
|
1629
1629
|
},
|
|
1630
1630
|
"typeName": {
|
|
1631
|
-
"id":
|
|
1631
|
+
"id": 16345,
|
|
1632
1632
|
"name": "uint256",
|
|
1633
1633
|
"nodeType": "ElementaryTypeName",
|
|
1634
1634
|
"src": "1912:7:20",
|
|
@@ -1641,12 +1641,12 @@
|
|
|
1641
1641
|
},
|
|
1642
1642
|
{
|
|
1643
1643
|
"constant": false,
|
|
1644
|
-
"id":
|
|
1644
|
+
"id": 16348,
|
|
1645
1645
|
"mutability": "mutable",
|
|
1646
1646
|
"name": "leftAligned",
|
|
1647
1647
|
"nameLocation": "1942:11:20",
|
|
1648
1648
|
"nodeType": "VariableDeclaration",
|
|
1649
|
-
"scope":
|
|
1649
|
+
"scope": 16378,
|
|
1650
1650
|
"src": "1937:16:20",
|
|
1651
1651
|
"stateVariable": false,
|
|
1652
1652
|
"storageLocation": "default",
|
|
@@ -1655,7 +1655,7 @@
|
|
|
1655
1655
|
"typeString": "bool"
|
|
1656
1656
|
},
|
|
1657
1657
|
"typeName": {
|
|
1658
|
-
"id":
|
|
1658
|
+
"id": 16347,
|
|
1659
1659
|
"name": "bool",
|
|
1660
1660
|
"nodeType": "ElementaryTypeName",
|
|
1661
1661
|
"src": "1937:4:20",
|
|
@@ -1670,17 +1670,17 @@
|
|
|
1670
1670
|
"src": "1878:79:20"
|
|
1671
1671
|
},
|
|
1672
1672
|
"returnParameters": {
|
|
1673
|
-
"id":
|
|
1673
|
+
"id": 16352,
|
|
1674
1674
|
"nodeType": "ParameterList",
|
|
1675
1675
|
"parameters": [
|
|
1676
1676
|
{
|
|
1677
1677
|
"constant": false,
|
|
1678
|
-
"id":
|
|
1678
|
+
"id": 16351,
|
|
1679
1679
|
"mutability": "mutable",
|
|
1680
1680
|
"name": "data",
|
|
1681
1681
|
"nameLocation": "1994:4:20",
|
|
1682
1682
|
"nodeType": "VariableDeclaration",
|
|
1683
|
-
"scope":
|
|
1683
|
+
"scope": 16378,
|
|
1684
1684
|
"src": "1981:17:20",
|
|
1685
1685
|
"stateVariable": false,
|
|
1686
1686
|
"storageLocation": "memory",
|
|
@@ -1689,7 +1689,7 @@
|
|
|
1689
1689
|
"typeString": "bytes"
|
|
1690
1690
|
},
|
|
1691
1691
|
"typeName": {
|
|
1692
|
-
"id":
|
|
1692
|
+
"id": 16350,
|
|
1693
1693
|
"name": "bytes",
|
|
1694
1694
|
"nodeType": "ElementaryTypeName",
|
|
1695
1695
|
"src": "1981:5:20",
|
|
@@ -1703,35 +1703,35 @@
|
|
|
1703
1703
|
],
|
|
1704
1704
|
"src": "1980:19:20"
|
|
1705
1705
|
},
|
|
1706
|
-
"scope":
|
|
1706
|
+
"scope": 16439,
|
|
1707
1707
|
"stateMutability": "pure",
|
|
1708
1708
|
"virtual": false,
|
|
1709
1709
|
"visibility": "internal"
|
|
1710
1710
|
},
|
|
1711
1711
|
{
|
|
1712
|
-
"id":
|
|
1712
|
+
"id": 16438,
|
|
1713
1713
|
"nodeType": "FunctionDefinition",
|
|
1714
1714
|
"src": "2422:1642:20",
|
|
1715
1715
|
"nodes": [],
|
|
1716
1716
|
"body": {
|
|
1717
|
-
"id":
|
|
1717
|
+
"id": 16437,
|
|
1718
1718
|
"nodeType": "Block",
|
|
1719
1719
|
"src": "2559:1505:20",
|
|
1720
1720
|
"nodes": [],
|
|
1721
1721
|
"statements": [
|
|
1722
1722
|
{
|
|
1723
1723
|
"assignments": [
|
|
1724
|
-
|
|
1724
|
+
16393
|
|
1725
1725
|
],
|
|
1726
1726
|
"declarations": [
|
|
1727
1727
|
{
|
|
1728
1728
|
"constant": false,
|
|
1729
|
-
"id":
|
|
1729
|
+
"id": 16393,
|
|
1730
1730
|
"mutability": "mutable",
|
|
1731
1731
|
"name": "packedPointer",
|
|
1732
1732
|
"nameLocation": "2573:13:20",
|
|
1733
1733
|
"nodeType": "VariableDeclaration",
|
|
1734
|
-
"scope":
|
|
1734
|
+
"scope": 16437,
|
|
1735
1735
|
"src": "2565:21:20",
|
|
1736
1736
|
"stateVariable": false,
|
|
1737
1737
|
"storageLocation": "default",
|
|
@@ -1740,7 +1740,7 @@
|
|
|
1740
1740
|
"typeString": "uint256"
|
|
1741
1741
|
},
|
|
1742
1742
|
"typeName": {
|
|
1743
|
-
"id":
|
|
1743
|
+
"id": 16392,
|
|
1744
1744
|
"name": "uint256",
|
|
1745
1745
|
"nodeType": "ElementaryTypeName",
|
|
1746
1746
|
"src": "2565:7:20",
|
|
@@ -1752,38 +1752,38 @@
|
|
|
1752
1752
|
"visibility": "internal"
|
|
1753
1753
|
}
|
|
1754
1754
|
],
|
|
1755
|
-
"id":
|
|
1755
|
+
"id": 16397,
|
|
1756
1756
|
"initialValue": {
|
|
1757
1757
|
"arguments": [],
|
|
1758
1758
|
"expression": {
|
|
1759
1759
|
"argumentTypes": [],
|
|
1760
1760
|
"expression": {
|
|
1761
|
-
"id":
|
|
1761
|
+
"id": 16394,
|
|
1762
1762
|
"name": "packedSlice",
|
|
1763
1763
|
"nodeType": "Identifier",
|
|
1764
1764
|
"overloadedDeclarations": [],
|
|
1765
|
-
"referencedDeclaration":
|
|
1765
|
+
"referencedDeclaration": 16382,
|
|
1766
1766
|
"src": "2589:11:20",
|
|
1767
1767
|
"typeDescriptions": {
|
|
1768
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1768
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1769
1769
|
"typeString": "Slice"
|
|
1770
1770
|
}
|
|
1771
1771
|
},
|
|
1772
|
-
"id":
|
|
1772
|
+
"id": 16395,
|
|
1773
1773
|
"isConstant": false,
|
|
1774
1774
|
"isLValue": false,
|
|
1775
1775
|
"isPure": false,
|
|
1776
1776
|
"lValueRequested": false,
|
|
1777
1777
|
"memberName": "pointer",
|
|
1778
1778
|
"nodeType": "MemberAccess",
|
|
1779
|
-
"referencedDeclaration":
|
|
1779
|
+
"referencedDeclaration": 2455,
|
|
1780
1780
|
"src": "2589:19:20",
|
|
1781
1781
|
"typeDescriptions": {
|
|
1782
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
|
1782
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
|
|
1783
1783
|
"typeString": "function (Slice) pure returns (uint256)"
|
|
1784
1784
|
}
|
|
1785
1785
|
},
|
|
1786
|
-
"id":
|
|
1786
|
+
"id": 16396,
|
|
1787
1787
|
"isConstant": false,
|
|
1788
1788
|
"isLValue": false,
|
|
1789
1789
|
"isPure": false,
|
|
@@ -1803,17 +1803,17 @@
|
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
1805
|
"assignments": [
|
|
1806
|
-
|
|
1806
|
+
16399
|
|
1807
1807
|
],
|
|
1808
1808
|
"declarations": [
|
|
1809
1809
|
{
|
|
1810
1810
|
"constant": false,
|
|
1811
|
-
"id":
|
|
1811
|
+
"id": 16399,
|
|
1812
1812
|
"mutability": "mutable",
|
|
1813
1813
|
"name": "packedLength",
|
|
1814
1814
|
"nameLocation": "2624:12:20",
|
|
1815
1815
|
"nodeType": "VariableDeclaration",
|
|
1816
|
-
"scope":
|
|
1816
|
+
"scope": 16437,
|
|
1817
1817
|
"src": "2616:20:20",
|
|
1818
1818
|
"stateVariable": false,
|
|
1819
1819
|
"storageLocation": "default",
|
|
@@ -1822,7 +1822,7 @@
|
|
|
1822
1822
|
"typeString": "uint256"
|
|
1823
1823
|
},
|
|
1824
1824
|
"typeName": {
|
|
1825
|
-
"id":
|
|
1825
|
+
"id": 16398,
|
|
1826
1826
|
"name": "uint256",
|
|
1827
1827
|
"nodeType": "ElementaryTypeName",
|
|
1828
1828
|
"src": "2616:7:20",
|
|
@@ -1834,38 +1834,38 @@
|
|
|
1834
1834
|
"visibility": "internal"
|
|
1835
1835
|
}
|
|
1836
1836
|
],
|
|
1837
|
-
"id":
|
|
1837
|
+
"id": 16403,
|
|
1838
1838
|
"initialValue": {
|
|
1839
1839
|
"arguments": [],
|
|
1840
1840
|
"expression": {
|
|
1841
1841
|
"argumentTypes": [],
|
|
1842
1842
|
"expression": {
|
|
1843
|
-
"id":
|
|
1843
|
+
"id": 16400,
|
|
1844
1844
|
"name": "packedSlice",
|
|
1845
1845
|
"nodeType": "Identifier",
|
|
1846
1846
|
"overloadedDeclarations": [],
|
|
1847
|
-
"referencedDeclaration":
|
|
1847
|
+
"referencedDeclaration": 16382,
|
|
1848
1848
|
"src": "2639:11:20",
|
|
1849
1849
|
"typeDescriptions": {
|
|
1850
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
1850
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
1851
1851
|
"typeString": "Slice"
|
|
1852
1852
|
}
|
|
1853
1853
|
},
|
|
1854
|
-
"id":
|
|
1854
|
+
"id": 16401,
|
|
1855
1855
|
"isConstant": false,
|
|
1856
1856
|
"isLValue": false,
|
|
1857
1857
|
"isPure": false,
|
|
1858
1858
|
"lValueRequested": false,
|
|
1859
1859
|
"memberName": "length",
|
|
1860
1860
|
"nodeType": "MemberAccess",
|
|
1861
|
-
"referencedDeclaration":
|
|
1861
|
+
"referencedDeclaration": 2473,
|
|
1862
1862
|
"src": "2639:18:20",
|
|
1863
1863
|
"typeDescriptions": {
|
|
1864
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
|
1864
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
|
|
1865
1865
|
"typeString": "function (Slice) pure returns (uint256)"
|
|
1866
1866
|
}
|
|
1867
1867
|
},
|
|
1868
|
-
"id":
|
|
1868
|
+
"id": 16402,
|
|
1869
1869
|
"isConstant": false,
|
|
1870
1870
|
"isLValue": false,
|
|
1871
1871
|
"isPure": false,
|
|
@@ -1885,17 +1885,17 @@
|
|
|
1885
1885
|
},
|
|
1886
1886
|
{
|
|
1887
1887
|
"assignments": [
|
|
1888
|
-
|
|
1888
|
+
16405
|
|
1889
1889
|
],
|
|
1890
1890
|
"declarations": [
|
|
1891
1891
|
{
|
|
1892
1892
|
"constant": false,
|
|
1893
|
-
"id":
|
|
1893
|
+
"id": 16405,
|
|
1894
1894
|
"mutability": "mutable",
|
|
1895
1895
|
"name": "padLeft",
|
|
1896
1896
|
"nameLocation": "2673:7:20",
|
|
1897
1897
|
"nodeType": "VariableDeclaration",
|
|
1898
|
-
"scope":
|
|
1898
|
+
"scope": 16437,
|
|
1899
1899
|
"src": "2665:15:20",
|
|
1900
1900
|
"stateVariable": false,
|
|
1901
1901
|
"storageLocation": "default",
|
|
@@ -1904,7 +1904,7 @@
|
|
|
1904
1904
|
"typeString": "uint256"
|
|
1905
1905
|
},
|
|
1906
1906
|
"typeName": {
|
|
1907
|
-
"id":
|
|
1907
|
+
"id": 16404,
|
|
1908
1908
|
"name": "uint256",
|
|
1909
1909
|
"nodeType": "ElementaryTypeName",
|
|
1910
1910
|
"src": "2665:7:20",
|
|
@@ -1916,14 +1916,14 @@
|
|
|
1916
1916
|
"visibility": "internal"
|
|
1917
1917
|
}
|
|
1918
1918
|
],
|
|
1919
|
-
"id":
|
|
1919
|
+
"id": 16414,
|
|
1920
1920
|
"initialValue": {
|
|
1921
1921
|
"condition": {
|
|
1922
|
-
"id":
|
|
1922
|
+
"id": 16406,
|
|
1923
1923
|
"name": "leftAligned",
|
|
1924
1924
|
"nodeType": "Identifier",
|
|
1925
1925
|
"overloadedDeclarations": [],
|
|
1926
|
-
"referencedDeclaration":
|
|
1926
|
+
"referencedDeclaration": 16386,
|
|
1927
1927
|
"src": "2683:11:20",
|
|
1928
1928
|
"typeDescriptions": {
|
|
1929
1929
|
"typeIdentifier": "t_bool",
|
|
@@ -1935,14 +1935,14 @@
|
|
|
1935
1935
|
"typeIdentifier": "t_uint256",
|
|
1936
1936
|
"typeString": "uint256"
|
|
1937
1937
|
},
|
|
1938
|
-
"id":
|
|
1938
|
+
"id": 16412,
|
|
1939
1939
|
"isConstant": false,
|
|
1940
1940
|
"isLValue": false,
|
|
1941
1941
|
"isPure": false,
|
|
1942
1942
|
"lValueRequested": false,
|
|
1943
1943
|
"leftExpression": {
|
|
1944
1944
|
"hexValue": "323536",
|
|
1945
|
-
"id":
|
|
1945
|
+
"id": 16408,
|
|
1946
1946
|
"isConstant": false,
|
|
1947
1947
|
"isLValue": false,
|
|
1948
1948
|
"isPure": true,
|
|
@@ -1963,17 +1963,17 @@
|
|
|
1963
1963
|
"typeIdentifier": "t_uint256",
|
|
1964
1964
|
"typeString": "uint256"
|
|
1965
1965
|
},
|
|
1966
|
-
"id":
|
|
1966
|
+
"id": 16411,
|
|
1967
1967
|
"isConstant": false,
|
|
1968
1968
|
"isLValue": false,
|
|
1969
1969
|
"isPure": false,
|
|
1970
1970
|
"lValueRequested": false,
|
|
1971
1971
|
"leftExpression": {
|
|
1972
|
-
"id":
|
|
1972
|
+
"id": 16409,
|
|
1973
1973
|
"name": "elementSize",
|
|
1974
1974
|
"nodeType": "Identifier",
|
|
1975
1975
|
"overloadedDeclarations": [],
|
|
1976
|
-
"referencedDeclaration":
|
|
1976
|
+
"referencedDeclaration": 16384,
|
|
1977
1977
|
"src": "2707:11:20",
|
|
1978
1978
|
"typeDescriptions": {
|
|
1979
1979
|
"typeIdentifier": "t_uint256",
|
|
@@ -1984,7 +1984,7 @@
|
|
|
1984
1984
|
"operator": "*",
|
|
1985
1985
|
"rightExpression": {
|
|
1986
1986
|
"hexValue": "38",
|
|
1987
|
-
"id":
|
|
1987
|
+
"id": 16410,
|
|
1988
1988
|
"isConstant": false,
|
|
1989
1989
|
"isLValue": false,
|
|
1990
1990
|
"isPure": true,
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
"typeString": "uint256"
|
|
2011
2011
|
}
|
|
2012
2012
|
},
|
|
2013
|
-
"id":
|
|
2013
|
+
"id": 16413,
|
|
2014
2014
|
"isConstant": false,
|
|
2015
2015
|
"isLValue": false,
|
|
2016
2016
|
"isPure": false,
|
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
"src": "2683:39:20",
|
|
2020
2020
|
"trueExpression": {
|
|
2021
2021
|
"hexValue": "30",
|
|
2022
|
-
"id":
|
|
2022
|
+
"id": 16407,
|
|
2023
2023
|
"isConstant": false,
|
|
2024
2024
|
"isLValue": false,
|
|
2025
2025
|
"isPure": true,
|
|
@@ -2043,17 +2043,17 @@
|
|
|
2043
2043
|
},
|
|
2044
2044
|
{
|
|
2045
2045
|
"assignments": [
|
|
2046
|
-
|
|
2046
|
+
16416
|
|
2047
2047
|
],
|
|
2048
2048
|
"declarations": [
|
|
2049
2049
|
{
|
|
2050
2050
|
"constant": false,
|
|
2051
|
-
"id":
|
|
2051
|
+
"id": 16416,
|
|
2052
2052
|
"mutability": "mutable",
|
|
2053
2053
|
"name": "arrayLength",
|
|
2054
2054
|
"nameLocation": "2777:11:20",
|
|
2055
2055
|
"nodeType": "VariableDeclaration",
|
|
2056
|
-
"scope":
|
|
2056
|
+
"scope": 16437,
|
|
2057
2057
|
"src": "2769:19:20",
|
|
2058
2058
|
"stateVariable": false,
|
|
2059
2059
|
"storageLocation": "default",
|
|
@@ -2062,7 +2062,7 @@
|
|
|
2062
2062
|
"typeString": "uint256"
|
|
2063
2063
|
},
|
|
2064
2064
|
"typeName": {
|
|
2065
|
-
"id":
|
|
2065
|
+
"id": 16415,
|
|
2066
2066
|
"name": "uint256",
|
|
2067
2067
|
"nodeType": "ElementaryTypeName",
|
|
2068
2068
|
"src": "2769:7:20",
|
|
@@ -2074,28 +2074,28 @@
|
|
|
2074
2074
|
"visibility": "internal"
|
|
2075
2075
|
}
|
|
2076
2076
|
],
|
|
2077
|
-
"id":
|
|
2077
|
+
"id": 16417,
|
|
2078
2078
|
"nodeType": "VariableDeclarationStatement",
|
|
2079
2079
|
"src": "2769:19:20"
|
|
2080
2080
|
},
|
|
2081
2081
|
{
|
|
2082
|
-
"id":
|
|
2082
|
+
"id": 16424,
|
|
2083
2083
|
"nodeType": "UncheckedBlock",
|
|
2084
2084
|
"src": "2794:65:20",
|
|
2085
2085
|
"statements": [
|
|
2086
2086
|
{
|
|
2087
2087
|
"expression": {
|
|
2088
|
-
"id":
|
|
2088
|
+
"id": 16422,
|
|
2089
2089
|
"isConstant": false,
|
|
2090
2090
|
"isLValue": false,
|
|
2091
2091
|
"isPure": false,
|
|
2092
2092
|
"lValueRequested": false,
|
|
2093
2093
|
"leftHandSide": {
|
|
2094
|
-
"id":
|
|
2094
|
+
"id": 16418,
|
|
2095
2095
|
"name": "arrayLength",
|
|
2096
2096
|
"nodeType": "Identifier",
|
|
2097
2097
|
"overloadedDeclarations": [],
|
|
2098
|
-
"referencedDeclaration":
|
|
2098
|
+
"referencedDeclaration": 16416,
|
|
2099
2099
|
"src": "2812:11:20",
|
|
2100
2100
|
"typeDescriptions": {
|
|
2101
2101
|
"typeIdentifier": "t_uint256",
|
|
@@ -2109,17 +2109,17 @@
|
|
|
2109
2109
|
"typeIdentifier": "t_uint256",
|
|
2110
2110
|
"typeString": "uint256"
|
|
2111
2111
|
},
|
|
2112
|
-
"id":
|
|
2112
|
+
"id": 16421,
|
|
2113
2113
|
"isConstant": false,
|
|
2114
2114
|
"isLValue": false,
|
|
2115
2115
|
"isPure": false,
|
|
2116
2116
|
"lValueRequested": false,
|
|
2117
2117
|
"leftExpression": {
|
|
2118
|
-
"id":
|
|
2118
|
+
"id": 16419,
|
|
2119
2119
|
"name": "packedLength",
|
|
2120
2120
|
"nodeType": "Identifier",
|
|
2121
2121
|
"overloadedDeclarations": [],
|
|
2122
|
-
"referencedDeclaration":
|
|
2122
|
+
"referencedDeclaration": 16399,
|
|
2123
2123
|
"src": "2826:12:20",
|
|
2124
2124
|
"typeDescriptions": {
|
|
2125
2125
|
"typeIdentifier": "t_uint256",
|
|
@@ -2129,11 +2129,11 @@
|
|
|
2129
2129
|
"nodeType": "BinaryOperation",
|
|
2130
2130
|
"operator": "/",
|
|
2131
2131
|
"rightExpression": {
|
|
2132
|
-
"id":
|
|
2132
|
+
"id": 16420,
|
|
2133
2133
|
"name": "elementSize",
|
|
2134
2134
|
"nodeType": "Identifier",
|
|
2135
2135
|
"overloadedDeclarations": [],
|
|
2136
|
-
"referencedDeclaration":
|
|
2136
|
+
"referencedDeclaration": 16384,
|
|
2137
2137
|
"src": "2841:11:20",
|
|
2138
2138
|
"typeDescriptions": {
|
|
2139
2139
|
"typeIdentifier": "t_uint256",
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
"typeString": "uint256"
|
|
2153
2153
|
}
|
|
2154
2154
|
},
|
|
2155
|
-
"id":
|
|
2155
|
+
"id": 16423,
|
|
2156
2156
|
"nodeType": "ExpressionStatement",
|
|
2157
2157
|
"src": "2812:40:20"
|
|
2158
2158
|
}
|
|
@@ -2164,7 +2164,7 @@
|
|
|
2164
2164
|
"typeIdentifier": "t_uint256",
|
|
2165
2165
|
"typeString": "uint256"
|
|
2166
2166
|
},
|
|
2167
|
-
"id":
|
|
2167
|
+
"id": 16429,
|
|
2168
2168
|
"isConstant": false,
|
|
2169
2169
|
"isLValue": false,
|
|
2170
2170
|
"isPure": false,
|
|
@@ -2174,17 +2174,17 @@
|
|
|
2174
2174
|
"typeIdentifier": "t_uint256",
|
|
2175
2175
|
"typeString": "uint256"
|
|
2176
2176
|
},
|
|
2177
|
-
"id":
|
|
2177
|
+
"id": 16427,
|
|
2178
2178
|
"isConstant": false,
|
|
2179
2179
|
"isLValue": false,
|
|
2180
2180
|
"isPure": false,
|
|
2181
2181
|
"lValueRequested": false,
|
|
2182
2182
|
"leftExpression": {
|
|
2183
|
-
"id":
|
|
2183
|
+
"id": 16425,
|
|
2184
2184
|
"name": "packedLength",
|
|
2185
2185
|
"nodeType": "Identifier",
|
|
2186
2186
|
"overloadedDeclarations": [],
|
|
2187
|
-
"referencedDeclaration":
|
|
2187
|
+
"referencedDeclaration": 16399,
|
|
2188
2188
|
"src": "3009:12:20",
|
|
2189
2189
|
"typeDescriptions": {
|
|
2190
2190
|
"typeIdentifier": "t_uint256",
|
|
@@ -2194,11 +2194,11 @@
|
|
|
2194
2194
|
"nodeType": "BinaryOperation",
|
|
2195
2195
|
"operator": "%",
|
|
2196
2196
|
"rightExpression": {
|
|
2197
|
-
"id":
|
|
2197
|
+
"id": 16426,
|
|
2198
2198
|
"name": "elementSize",
|
|
2199
2199
|
"nodeType": "Identifier",
|
|
2200
2200
|
"overloadedDeclarations": [],
|
|
2201
|
-
"referencedDeclaration":
|
|
2201
|
+
"referencedDeclaration": 16384,
|
|
2202
2202
|
"src": "3024:11:20",
|
|
2203
2203
|
"typeDescriptions": {
|
|
2204
2204
|
"typeIdentifier": "t_uint256",
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
"operator": "!=",
|
|
2216
2216
|
"rightExpression": {
|
|
2217
2217
|
"hexValue": "30",
|
|
2218
|
-
"id":
|
|
2218
|
+
"id": 16428,
|
|
2219
2219
|
"isConstant": false,
|
|
2220
2220
|
"isLValue": false,
|
|
2221
2221
|
"isPure": true,
|
|
@@ -2235,11 +2235,11 @@
|
|
|
2235
2235
|
"typeString": "bool"
|
|
2236
2236
|
}
|
|
2237
2237
|
},
|
|
2238
|
-
"id":
|
|
2238
|
+
"id": 16435,
|
|
2239
2239
|
"nodeType": "IfStatement",
|
|
2240
2240
|
"src": "3005:123:20",
|
|
2241
2241
|
"trueBody": {
|
|
2242
|
-
"id":
|
|
2242
|
+
"id": 16434,
|
|
2243
2243
|
"nodeType": "Block",
|
|
2244
2244
|
"src": "3042:86:20",
|
|
2245
2245
|
"statements": [
|
|
@@ -2248,7 +2248,7 @@
|
|
|
2248
2248
|
"arguments": [
|
|
2249
2249
|
{
|
|
2250
2250
|
"hexValue": "756e7061636b546f41727261793a207061636b65644c656e677468206d7573742062652061206d756c7469706c65206f6620656c656d656e7453697a65",
|
|
2251
|
-
"id":
|
|
2251
|
+
"id": 16431,
|
|
2252
2252
|
"isConstant": false,
|
|
2253
2253
|
"isLValue": false,
|
|
2254
2254
|
"isPure": true,
|
|
@@ -2270,7 +2270,7 @@
|
|
|
2270
2270
|
"typeString": "literal_string \"unpackToArray: packedLength must be a multiple of elementSize\""
|
|
2271
2271
|
}
|
|
2272
2272
|
],
|
|
2273
|
-
"id":
|
|
2273
|
+
"id": 16430,
|
|
2274
2274
|
"name": "revert",
|
|
2275
2275
|
"nodeType": "Identifier",
|
|
2276
2276
|
"overloadedDeclarations": [
|
|
@@ -2284,7 +2284,7 @@
|
|
|
2284
2284
|
"typeString": "function (string memory) pure"
|
|
2285
2285
|
}
|
|
2286
2286
|
},
|
|
2287
|
-
"id":
|
|
2287
|
+
"id": 16432,
|
|
2288
2288
|
"isConstant": false,
|
|
2289
2289
|
"isLValue": false,
|
|
2290
2290
|
"isPure": false,
|
|
@@ -2299,7 +2299,7 @@
|
|
|
2299
2299
|
"typeString": "tuple()"
|
|
2300
2300
|
}
|
|
2301
2301
|
},
|
|
2302
|
-
"id":
|
|
2302
|
+
"id": 16433,
|
|
2303
2303
|
"nodeType": "ExpressionStatement",
|
|
2304
2304
|
"src": "3050:71:20"
|
|
2305
2305
|
}
|
|
@@ -2733,84 +2733,84 @@
|
|
|
2733
2733
|
"evmVersion": "london",
|
|
2734
2734
|
"externalReferences": [
|
|
2735
2735
|
{
|
|
2736
|
-
"declaration":
|
|
2736
|
+
"declaration": 16390,
|
|
2737
2737
|
"isOffset": false,
|
|
2738
2738
|
"isSlot": false,
|
|
2739
2739
|
"src": "3386:5:20",
|
|
2740
2740
|
"valueSize": 1
|
|
2741
2741
|
},
|
|
2742
2742
|
{
|
|
2743
|
-
"declaration":
|
|
2743
|
+
"declaration": 16390,
|
|
2744
2744
|
"isOffset": false,
|
|
2745
2745
|
"isSlot": false,
|
|
2746
2746
|
"src": "3430:5:20",
|
|
2747
2747
|
"valueSize": 1
|
|
2748
2748
|
},
|
|
2749
2749
|
{
|
|
2750
|
-
"declaration":
|
|
2750
|
+
"declaration": 16390,
|
|
2751
2751
|
"isOffset": false,
|
|
2752
2752
|
"isSlot": false,
|
|
2753
2753
|
"src": "3495:5:20",
|
|
2754
2754
|
"valueSize": 1
|
|
2755
2755
|
},
|
|
2756
2756
|
{
|
|
2757
|
-
"declaration":
|
|
2757
|
+
"declaration": 16390,
|
|
2758
2758
|
"isOffset": false,
|
|
2759
2759
|
"isSlot": false,
|
|
2760
2760
|
"src": "3578:5:20",
|
|
2761
2761
|
"valueSize": 1
|
|
2762
2762
|
},
|
|
2763
2763
|
{
|
|
2764
|
-
"declaration":
|
|
2764
|
+
"declaration": 16416,
|
|
2765
2765
|
"isOffset": false,
|
|
2766
2766
|
"isSlot": false,
|
|
2767
2767
|
"src": "3296:11:20",
|
|
2768
2768
|
"valueSize": 1
|
|
2769
2769
|
},
|
|
2770
2770
|
{
|
|
2771
|
-
"declaration":
|
|
2771
|
+
"declaration": 16416,
|
|
2772
2772
|
"isOffset": false,
|
|
2773
2773
|
"isSlot": false,
|
|
2774
2774
|
"src": "3502:11:20",
|
|
2775
2775
|
"valueSize": 1
|
|
2776
2776
|
},
|
|
2777
2777
|
{
|
|
2778
|
-
"declaration":
|
|
2778
|
+
"declaration": 16416,
|
|
2779
2779
|
"isOffset": false,
|
|
2780
2780
|
"isSlot": false,
|
|
2781
2781
|
"src": "3668:11:20",
|
|
2782
2782
|
"valueSize": 1
|
|
2783
2783
|
},
|
|
2784
2784
|
{
|
|
2785
|
-
"declaration":
|
|
2785
|
+
"declaration": 16384,
|
|
2786
2786
|
"isOffset": false,
|
|
2787
2787
|
"isSlot": false,
|
|
2788
2788
|
"src": "3885:11:20",
|
|
2789
2789
|
"valueSize": 1
|
|
2790
2790
|
},
|
|
2791
2791
|
{
|
|
2792
|
-
"declaration":
|
|
2792
|
+
"declaration": 16393,
|
|
2793
2793
|
"isOffset": false,
|
|
2794
2794
|
"isSlot": false,
|
|
2795
2795
|
"src": "3640:13:20",
|
|
2796
2796
|
"valueSize": 1
|
|
2797
2797
|
},
|
|
2798
2798
|
{
|
|
2799
|
-
"declaration":
|
|
2799
|
+
"declaration": 16405,
|
|
2800
2800
|
"isOffset": false,
|
|
2801
2801
|
"isSlot": false,
|
|
2802
2802
|
"src": "3988:7:20",
|
|
2803
2803
|
"valueSize": 1
|
|
2804
2804
|
}
|
|
2805
2805
|
],
|
|
2806
|
-
"id":
|
|
2806
|
+
"id": 16436,
|
|
2807
2807
|
"nodeType": "InlineAssembly",
|
|
2808
2808
|
"src": "3173:887:20"
|
|
2809
2809
|
}
|
|
2810
2810
|
]
|
|
2811
2811
|
},
|
|
2812
2812
|
"documentation": {
|
|
2813
|
-
"id":
|
|
2813
|
+
"id": 16379,
|
|
2814
2814
|
"nodeType": "StructuredDocumentation",
|
|
2815
2815
|
"src": "2182:237:20",
|
|
2816
2816
|
"text": " @dev Unpacks the slice to a new memory location\n and lays it out like a memory array with the given size per element (in bytes)\n @return array a generic array, needs to be casted to the expected type using assembly"
|
|
@@ -2821,38 +2821,38 @@
|
|
|
2821
2821
|
"name": "decode",
|
|
2822
2822
|
"nameLocation": "2431:6:20",
|
|
2823
2823
|
"parameters": {
|
|
2824
|
-
"id":
|
|
2824
|
+
"id": 16387,
|
|
2825
2825
|
"nodeType": "ParameterList",
|
|
2826
2826
|
"parameters": [
|
|
2827
2827
|
{
|
|
2828
2828
|
"constant": false,
|
|
2829
|
-
"id":
|
|
2829
|
+
"id": 16382,
|
|
2830
2830
|
"mutability": "mutable",
|
|
2831
2831
|
"name": "packedSlice",
|
|
2832
2832
|
"nameLocation": "2449:11:20",
|
|
2833
2833
|
"nodeType": "VariableDeclaration",
|
|
2834
|
-
"scope":
|
|
2834
|
+
"scope": 16438,
|
|
2835
2835
|
"src": "2443:17:20",
|
|
2836
2836
|
"stateVariable": false,
|
|
2837
2837
|
"storageLocation": "default",
|
|
2838
2838
|
"typeDescriptions": {
|
|
2839
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
2839
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
2840
2840
|
"typeString": "Slice"
|
|
2841
2841
|
},
|
|
2842
2842
|
"typeName": {
|
|
2843
|
-
"id":
|
|
2843
|
+
"id": 16381,
|
|
2844
2844
|
"nodeType": "UserDefinedTypeName",
|
|
2845
2845
|
"pathNode": {
|
|
2846
|
-
"id":
|
|
2846
|
+
"id": 16380,
|
|
2847
2847
|
"name": "Slice",
|
|
2848
2848
|
"nodeType": "IdentifierPath",
|
|
2849
|
-
"referencedDeclaration":
|
|
2849
|
+
"referencedDeclaration": 2292,
|
|
2850
2850
|
"src": "2443:5:20"
|
|
2851
2851
|
},
|
|
2852
|
-
"referencedDeclaration":
|
|
2852
|
+
"referencedDeclaration": 2292,
|
|
2853
2853
|
"src": "2443:5:20",
|
|
2854
2854
|
"typeDescriptions": {
|
|
2855
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
|
2855
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
|
|
2856
2856
|
"typeString": "Slice"
|
|
2857
2857
|
}
|
|
2858
2858
|
},
|
|
@@ -2860,12 +2860,12 @@
|
|
|
2860
2860
|
},
|
|
2861
2861
|
{
|
|
2862
2862
|
"constant": false,
|
|
2863
|
-
"id":
|
|
2863
|
+
"id": 16384,
|
|
2864
2864
|
"mutability": "mutable",
|
|
2865
2865
|
"name": "elementSize",
|
|
2866
2866
|
"nameLocation": "2474:11:20",
|
|
2867
2867
|
"nodeType": "VariableDeclaration",
|
|
2868
|
-
"scope":
|
|
2868
|
+
"scope": 16438,
|
|
2869
2869
|
"src": "2466:19:20",
|
|
2870
2870
|
"stateVariable": false,
|
|
2871
2871
|
"storageLocation": "default",
|
|
@@ -2874,7 +2874,7 @@
|
|
|
2874
2874
|
"typeString": "uint256"
|
|
2875
2875
|
},
|
|
2876
2876
|
"typeName": {
|
|
2877
|
-
"id":
|
|
2877
|
+
"id": 16383,
|
|
2878
2878
|
"name": "uint256",
|
|
2879
2879
|
"nodeType": "ElementaryTypeName",
|
|
2880
2880
|
"src": "2466:7:20",
|
|
@@ -2887,12 +2887,12 @@
|
|
|
2887
2887
|
},
|
|
2888
2888
|
{
|
|
2889
2889
|
"constant": false,
|
|
2890
|
-
"id":
|
|
2890
|
+
"id": 16386,
|
|
2891
2891
|
"mutability": "mutable",
|
|
2892
2892
|
"name": "leftAligned",
|
|
2893
2893
|
"nameLocation": "2496:11:20",
|
|
2894
2894
|
"nodeType": "VariableDeclaration",
|
|
2895
|
-
"scope":
|
|
2895
|
+
"scope": 16438,
|
|
2896
2896
|
"src": "2491:16:20",
|
|
2897
2897
|
"stateVariable": false,
|
|
2898
2898
|
"storageLocation": "default",
|
|
@@ -2901,7 +2901,7 @@
|
|
|
2901
2901
|
"typeString": "bool"
|
|
2902
2902
|
},
|
|
2903
2903
|
"typeName": {
|
|
2904
|
-
"id":
|
|
2904
|
+
"id": 16385,
|
|
2905
2905
|
"name": "bool",
|
|
2906
2906
|
"nodeType": "ElementaryTypeName",
|
|
2907
2907
|
"src": "2491:4:20",
|
|
@@ -2916,17 +2916,17 @@
|
|
|
2916
2916
|
"src": "2437:74:20"
|
|
2917
2917
|
},
|
|
2918
2918
|
"returnParameters": {
|
|
2919
|
-
"id":
|
|
2919
|
+
"id": 16391,
|
|
2920
2920
|
"nodeType": "ParameterList",
|
|
2921
2921
|
"parameters": [
|
|
2922
2922
|
{
|
|
2923
2923
|
"constant": false,
|
|
2924
|
-
"id":
|
|
2924
|
+
"id": 16390,
|
|
2925
2925
|
"mutability": "mutable",
|
|
2926
2926
|
"name": "array",
|
|
2927
2927
|
"nameLocation": "2552:5:20",
|
|
2928
2928
|
"nodeType": "VariableDeclaration",
|
|
2929
|
-
"scope":
|
|
2929
|
+
"scope": 16438,
|
|
2930
2930
|
"src": "2535:22:20",
|
|
2931
2931
|
"stateVariable": false,
|
|
2932
2932
|
"storageLocation": "memory",
|
|
@@ -2936,7 +2936,7 @@
|
|
|
2936
2936
|
},
|
|
2937
2937
|
"typeName": {
|
|
2938
2938
|
"baseType": {
|
|
2939
|
-
"id":
|
|
2939
|
+
"id": 16388,
|
|
2940
2940
|
"name": "bytes32",
|
|
2941
2941
|
"nodeType": "ElementaryTypeName",
|
|
2942
2942
|
"src": "2535:7:20",
|
|
@@ -2945,7 +2945,7 @@
|
|
|
2945
2945
|
"typeString": "bytes32"
|
|
2946
2946
|
}
|
|
2947
2947
|
},
|
|
2948
|
-
"id":
|
|
2948
|
+
"id": 16389,
|
|
2949
2949
|
"nodeType": "ArrayTypeName",
|
|
2950
2950
|
"src": "2535:9:20",
|
|
2951
2951
|
"typeDescriptions": {
|
|
@@ -2958,7 +2958,7 @@
|
|
|
2958
2958
|
],
|
|
2959
2959
|
"src": "2534:24:20"
|
|
2960
2960
|
},
|
|
2961
|
-
"scope":
|
|
2961
|
+
"scope": 16439,
|
|
2962
2962
|
"stateMutability": "pure",
|
|
2963
2963
|
"virtual": false,
|
|
2964
2964
|
"visibility": "internal"
|
|
@@ -2971,11 +2971,11 @@
|
|
|
2971
2971
|
"contractKind": "library",
|
|
2972
2972
|
"fullyImplemented": true,
|
|
2973
2973
|
"linearizedBaseContracts": [
|
|
2974
|
-
|
|
2974
|
+
16439
|
|
2975
2975
|
],
|
|
2976
2976
|
"name": "TightCoder",
|
|
2977
2977
|
"nameLocation": "197:10:20",
|
|
2978
|
-
"scope":
|
|
2978
|
+
"scope": 16440,
|
|
2979
2979
|
"usedErrors": []
|
|
2980
2980
|
}
|
|
2981
2981
|
],
|