@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/AccessControl.sol/AccessControl.abi.json +1 -0
- package/out/AccessControl.sol/AccessControl.json +1651 -0
- package/out/ArrayLib.sol/ArrayLib.json +477 -477
- package/out/Balances.sol/Balances.abi.json +1 -0
- package/out/Balances.sol/Balances.json +13002 -0
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
- package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
- package/out/DelegationControl.sol/DelegationControl.json +139 -139
- package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
- package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
- package/out/ISystemHook.sol/ISystemHook.json +16 -16
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +14 -14
- package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
- package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
- package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
- package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
- package/out/Module.sol/Module.json +119 -119
- package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
- package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
- package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
- package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +729 -729
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
- package/out/StoreHook.sol/StoreHook.json +639 -639
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +32 -32
- package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
- package/out/SystemHooks.sol/SystemHooks.json +32460 -0
- package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
- package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
- package/out/Systems.sol/Systems.abi.json +1 -0
- package/out/Systems.sol/Systems.json +18508 -0
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
- package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
- package/out/constants.sol/constants.json +477 -194
- package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
- package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
- package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
- package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
- package/out/hasKey.sol/hasKey.json +215 -215
- package/out/index.sol/index.json +73 -73
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
- package/out/query.sol/query.json +1892 -1892
- package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
- package/out/src/Bytes.sol/Bytes.json +3766 -3766
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
- package/out/src/Hook.sol/HookInstance.abi.json +1 -0
- package/out/src/Hook.sol/HookInstance.json +2823 -0
- package/out/src/Hook.sol/HookLib.abi.json +1 -0
- package/out/src/Hook.sol/HookLib.json +2823 -0
- package/out/src/IStore.sol/IStore.json +73 -73
- package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
- package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
- package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
- package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
- package/out/src/Memory.sol/Memory.json +242 -242
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
- package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
- package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
- package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
- package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
- package/out/src/Schema.sol/SchemaLib.json +1351 -1351
- package/out/src/Slice.sol/SliceInstance.json +802 -802
- package/out/src/Slice.sol/SliceLib.json +802 -802
- package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
- package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
- package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
- package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
- package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
- package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
- package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
- package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
- package/out/tables/Tables.sol/Tables.json +12189 -12189
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
- package/out/types.sol/types.json +71 -71
- package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
- package/package.json +8 -8
- package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
- package/src/utils/SystemSwitch.sol +82 -0
@@ -24,12 +24,12 @@
|
|
24
24
|
],
|
25
25
|
"bytecode": {
|
26
26
|
"object": "0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
27
|
-
"sourceMap": "518:2076:
|
27
|
+
"sourceMap": "518:2076:71:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;518:2076:71;;;;;;;;;;;;;;;;;",
|
28
28
|
"linkReferences": {}
|
29
29
|
},
|
30
30
|
"deployedBytecode": {
|
31
31
|
"object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
32
|
-
"sourceMap": "518:2076:
|
32
|
+
"sourceMap": "518:2076:71:-:0;;;;;;;;",
|
33
33
|
"linkReferences": {}
|
34
34
|
},
|
35
35
|
"methodIdentifiers": {},
|
@@ -138,31 +138,31 @@
|
|
138
138
|
},
|
139
139
|
"ast": {
|
140
140
|
"absolutePath": "node_modules/@latticexyz/store/src/Slice.sol",
|
141
|
-
"id":
|
141
|
+
"id": 29941,
|
142
142
|
"exportedSymbols": {
|
143
143
|
"DecodeSlice": [
|
144
|
-
|
144
|
+
72611
|
145
145
|
],
|
146
146
|
"Memory": [
|
147
|
-
|
147
|
+
28508
|
148
148
|
],
|
149
149
|
"Slice": [
|
150
|
-
|
150
|
+
29698
|
151
151
|
],
|
152
152
|
"SliceInstance": [
|
153
|
-
|
153
|
+
29940
|
154
154
|
],
|
155
155
|
"SliceLib": [
|
156
|
-
|
156
|
+
29843
|
157
157
|
]
|
158
158
|
},
|
159
159
|
"nodeType": "SourceUnit",
|
160
|
-
"src": "32:4409:
|
160
|
+
"src": "32:4409:71",
|
161
161
|
"nodes": [
|
162
162
|
{
|
163
|
-
"id":
|
163
|
+
"id": 29692,
|
164
164
|
"nodeType": "PragmaDirective",
|
165
|
-
"src": "32:25:
|
165
|
+
"src": "32:25:71",
|
166
166
|
"nodes": [],
|
167
167
|
"literals": [
|
168
168
|
"solidity",
|
@@ -172,24 +172,24 @@
|
|
172
172
|
]
|
173
173
|
},
|
174
174
|
{
|
175
|
-
"id":
|
175
|
+
"id": 29694,
|
176
176
|
"nodeType": "ImportDirective",
|
177
|
-
"src": "59:38:
|
177
|
+
"src": "59:38:71",
|
178
178
|
"nodes": [],
|
179
179
|
"absolutePath": "node_modules/@latticexyz/store/src/Memory.sol",
|
180
180
|
"file": "./Memory.sol",
|
181
181
|
"nameLocation": "-1:-1:-1",
|
182
|
-
"scope":
|
183
|
-
"sourceUnit":
|
182
|
+
"scope": 29941,
|
183
|
+
"sourceUnit": 28509,
|
184
184
|
"symbolAliases": [
|
185
185
|
{
|
186
186
|
"foreign": {
|
187
|
-
"id":
|
187
|
+
"id": 29693,
|
188
188
|
"name": "Memory",
|
189
189
|
"nodeType": "Identifier",
|
190
190
|
"overloadedDeclarations": [],
|
191
|
-
"referencedDeclaration":
|
192
|
-
"src": "68:6:
|
191
|
+
"referencedDeclaration": 28508,
|
192
|
+
"src": "68:6:71",
|
193
193
|
"typeDescriptions": {}
|
194
194
|
},
|
195
195
|
"nameLocation": "-1:-1:-1"
|
@@ -198,24 +198,24 @@
|
|
198
198
|
"unitAlias": ""
|
199
199
|
},
|
200
200
|
{
|
201
|
-
"id":
|
201
|
+
"id": 29696,
|
202
202
|
"nodeType": "ImportDirective",
|
203
|
-
"src": "98:59:
|
203
|
+
"src": "98:59:71",
|
204
204
|
"nodes": [],
|
205
205
|
"absolutePath": "node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol",
|
206
206
|
"file": "./tightcoder/DecodeSlice.sol",
|
207
207
|
"nameLocation": "-1:-1:-1",
|
208
|
-
"scope":
|
209
|
-
"sourceUnit":
|
208
|
+
"scope": 29941,
|
209
|
+
"sourceUnit": 72612,
|
210
210
|
"symbolAliases": [
|
211
211
|
{
|
212
212
|
"foreign": {
|
213
|
-
"id":
|
213
|
+
"id": 29695,
|
214
214
|
"name": "DecodeSlice",
|
215
215
|
"nodeType": "Identifier",
|
216
216
|
"overloadedDeclarations": [],
|
217
|
-
"referencedDeclaration":
|
218
|
-
"src": "107:11:
|
217
|
+
"referencedDeclaration": 72611,
|
218
|
+
"src": "107:11:71",
|
219
219
|
"typeDescriptions": {}
|
220
220
|
},
|
221
221
|
"nameLocation": "-1:-1:-1"
|
@@ -224,18 +224,18 @@
|
|
224
224
|
"unitAlias": ""
|
225
225
|
},
|
226
226
|
{
|
227
|
-
"id":
|
227
|
+
"id": 29698,
|
228
228
|
"nodeType": "UserDefinedValueTypeDefinition",
|
229
|
-
"src": "374:22:
|
229
|
+
"src": "374:22:71",
|
230
230
|
"nodes": [],
|
231
231
|
"canonicalName": "Slice",
|
232
232
|
"name": "Slice",
|
233
|
-
"nameLocation": "379:5:
|
233
|
+
"nameLocation": "379:5:71",
|
234
234
|
"underlyingType": {
|
235
|
-
"id":
|
235
|
+
"id": 29697,
|
236
236
|
"name": "uint256",
|
237
237
|
"nodeType": "ElementaryTypeName",
|
238
|
-
"src": "388:7:
|
238
|
+
"src": "388:7:71",
|
239
239
|
"typeDescriptions": {
|
240
240
|
"typeIdentifier": "t_uint256",
|
241
241
|
"typeString": "uint256"
|
@@ -243,105 +243,105 @@
|
|
243
243
|
}
|
244
244
|
},
|
245
245
|
{
|
246
|
-
"id":
|
246
|
+
"id": 29702,
|
247
247
|
"nodeType": "UsingForDirective",
|
248
|
-
"src": "398:37:
|
248
|
+
"src": "398:37:71",
|
249
249
|
"nodes": [],
|
250
250
|
"global": true,
|
251
251
|
"libraryName": {
|
252
|
-
"id":
|
252
|
+
"id": 29699,
|
253
253
|
"name": "SliceInstance",
|
254
254
|
"nameLocations": [
|
255
|
-
"404:13:
|
255
|
+
"404:13:71"
|
256
256
|
],
|
257
257
|
"nodeType": "IdentifierPath",
|
258
|
-
"referencedDeclaration":
|
259
|
-
"src": "404:13:
|
258
|
+
"referencedDeclaration": 29940,
|
259
|
+
"src": "404:13:71"
|
260
260
|
},
|
261
261
|
"typeName": {
|
262
|
-
"id":
|
262
|
+
"id": 29701,
|
263
263
|
"nodeType": "UserDefinedTypeName",
|
264
264
|
"pathNode": {
|
265
|
-
"id":
|
265
|
+
"id": 29700,
|
266
266
|
"name": "Slice",
|
267
267
|
"nameLocations": [
|
268
|
-
"422:5:
|
268
|
+
"422:5:71"
|
269
269
|
],
|
270
270
|
"nodeType": "IdentifierPath",
|
271
|
-
"referencedDeclaration":
|
272
|
-
"src": "422:5:
|
271
|
+
"referencedDeclaration": 29698,
|
272
|
+
"src": "422:5:71"
|
273
273
|
},
|
274
|
-
"referencedDeclaration":
|
275
|
-
"src": "422:5:
|
274
|
+
"referencedDeclaration": 29698,
|
275
|
+
"src": "422:5:71",
|
276
276
|
"typeDescriptions": {
|
277
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
277
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
278
278
|
"typeString": "Slice"
|
279
279
|
}
|
280
280
|
}
|
281
281
|
},
|
282
282
|
{
|
283
|
-
"id":
|
283
|
+
"id": 29706,
|
284
284
|
"nodeType": "UsingForDirective",
|
285
|
-
"src": "436:35:
|
285
|
+
"src": "436:35:71",
|
286
286
|
"nodes": [],
|
287
287
|
"global": true,
|
288
288
|
"libraryName": {
|
289
|
-
"id":
|
289
|
+
"id": 29703,
|
290
290
|
"name": "DecodeSlice",
|
291
291
|
"nameLocations": [
|
292
|
-
"442:11:
|
292
|
+
"442:11:71"
|
293
293
|
],
|
294
294
|
"nodeType": "IdentifierPath",
|
295
|
-
"referencedDeclaration":
|
296
|
-
"src": "442:11:
|
295
|
+
"referencedDeclaration": 72611,
|
296
|
+
"src": "442:11:71"
|
297
297
|
},
|
298
298
|
"typeName": {
|
299
|
-
"id":
|
299
|
+
"id": 29705,
|
300
300
|
"nodeType": "UserDefinedTypeName",
|
301
301
|
"pathNode": {
|
302
|
-
"id":
|
302
|
+
"id": 29704,
|
303
303
|
"name": "Slice",
|
304
304
|
"nameLocations": [
|
305
|
-
"458:5:
|
305
|
+
"458:5:71"
|
306
306
|
],
|
307
307
|
"nodeType": "IdentifierPath",
|
308
|
-
"referencedDeclaration":
|
309
|
-
"src": "458:5:
|
308
|
+
"referencedDeclaration": 29698,
|
309
|
+
"src": "458:5:71"
|
310
310
|
},
|
311
|
-
"referencedDeclaration":
|
312
|
-
"src": "458:5:
|
311
|
+
"referencedDeclaration": 29698,
|
312
|
+
"src": "458:5:71",
|
313
313
|
"typeDescriptions": {
|
314
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
314
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
315
315
|
"typeString": "Slice"
|
316
316
|
}
|
317
317
|
}
|
318
318
|
},
|
319
319
|
{
|
320
|
-
"id":
|
320
|
+
"id": 29843,
|
321
321
|
"nodeType": "ContractDefinition",
|
322
|
-
"src": "518:2076:
|
322
|
+
"src": "518:2076:71",
|
323
323
|
"nodes": [
|
324
324
|
{
|
325
|
-
"id":
|
325
|
+
"id": 29715,
|
326
326
|
"nodeType": "ErrorDefinition",
|
327
|
-
"src": "539:64:
|
327
|
+
"src": "539:64:71",
|
328
328
|
"nodes": [],
|
329
329
|
"errorSelector": "23230fa3",
|
330
330
|
"name": "Slice_OutOfBounds",
|
331
|
-
"nameLocation": "545:17:
|
331
|
+
"nameLocation": "545:17:71",
|
332
332
|
"parameters": {
|
333
|
-
"id":
|
333
|
+
"id": 29714,
|
334
334
|
"nodeType": "ParameterList",
|
335
335
|
"parameters": [
|
336
336
|
{
|
337
337
|
"constant": false,
|
338
|
-
"id":
|
338
|
+
"id": 29709,
|
339
339
|
"mutability": "mutable",
|
340
340
|
"name": "data",
|
341
|
-
"nameLocation": "569:4:
|
341
|
+
"nameLocation": "569:4:71",
|
342
342
|
"nodeType": "VariableDeclaration",
|
343
|
-
"scope":
|
344
|
-
"src": "563:10:
|
343
|
+
"scope": 29715,
|
344
|
+
"src": "563:10:71",
|
345
345
|
"stateVariable": false,
|
346
346
|
"storageLocation": "default",
|
347
347
|
"typeDescriptions": {
|
@@ -349,10 +349,10 @@
|
|
349
349
|
"typeString": "bytes"
|
350
350
|
},
|
351
351
|
"typeName": {
|
352
|
-
"id":
|
352
|
+
"id": 29708,
|
353
353
|
"name": "bytes",
|
354
354
|
"nodeType": "ElementaryTypeName",
|
355
|
-
"src": "563:5:
|
355
|
+
"src": "563:5:71",
|
356
356
|
"typeDescriptions": {
|
357
357
|
"typeIdentifier": "t_bytes_storage_ptr",
|
358
358
|
"typeString": "bytes"
|
@@ -362,13 +362,13 @@
|
|
362
362
|
},
|
363
363
|
{
|
364
364
|
"constant": false,
|
365
|
-
"id":
|
365
|
+
"id": 29711,
|
366
366
|
"mutability": "mutable",
|
367
367
|
"name": "start",
|
368
|
-
"nameLocation": "583:5:
|
368
|
+
"nameLocation": "583:5:71",
|
369
369
|
"nodeType": "VariableDeclaration",
|
370
|
-
"scope":
|
371
|
-
"src": "575:13:
|
370
|
+
"scope": 29715,
|
371
|
+
"src": "575:13:71",
|
372
372
|
"stateVariable": false,
|
373
373
|
"storageLocation": "default",
|
374
374
|
"typeDescriptions": {
|
@@ -376,10 +376,10 @@
|
|
376
376
|
"typeString": "uint256"
|
377
377
|
},
|
378
378
|
"typeName": {
|
379
|
-
"id":
|
379
|
+
"id": 29710,
|
380
380
|
"name": "uint256",
|
381
381
|
"nodeType": "ElementaryTypeName",
|
382
|
-
"src": "575:7:
|
382
|
+
"src": "575:7:71",
|
383
383
|
"typeDescriptions": {
|
384
384
|
"typeIdentifier": "t_uint256",
|
385
385
|
"typeString": "uint256"
|
@@ -389,13 +389,13 @@
|
|
389
389
|
},
|
390
390
|
{
|
391
391
|
"constant": false,
|
392
|
-
"id":
|
392
|
+
"id": 29713,
|
393
393
|
"mutability": "mutable",
|
394
394
|
"name": "end",
|
395
|
-
"nameLocation": "598:3:
|
395
|
+
"nameLocation": "598:3:71",
|
396
396
|
"nodeType": "VariableDeclaration",
|
397
|
-
"scope":
|
398
|
-
"src": "590:11:
|
397
|
+
"scope": 29715,
|
398
|
+
"src": "590:11:71",
|
399
399
|
"stateVariable": false,
|
400
400
|
"storageLocation": "default",
|
401
401
|
"typeDescriptions": {
|
@@ -403,10 +403,10 @@
|
|
403
403
|
"typeString": "uint256"
|
404
404
|
},
|
405
405
|
"typeName": {
|
406
|
-
"id":
|
406
|
+
"id": 29712,
|
407
407
|
"name": "uint256",
|
408
408
|
"nodeType": "ElementaryTypeName",
|
409
|
-
"src": "590:7:
|
409
|
+
"src": "590:7:71",
|
410
410
|
"typeDescriptions": {
|
411
411
|
"typeIdentifier": "t_uint256",
|
412
412
|
"typeString": "uint256"
|
@@ -415,19 +415,19 @@
|
|
415
415
|
"visibility": "internal"
|
416
416
|
}
|
417
417
|
],
|
418
|
-
"src": "562:40:
|
418
|
+
"src": "562:40:71"
|
419
419
|
}
|
420
420
|
},
|
421
421
|
{
|
422
|
-
"id":
|
422
|
+
"id": 29725,
|
423
423
|
"nodeType": "VariableDeclaration",
|
424
|
-
"src": "607:54:
|
424
|
+
"src": "607:54:71",
|
425
425
|
"nodes": [],
|
426
426
|
"constant": true,
|
427
427
|
"mutability": "constant",
|
428
428
|
"name": "MASK_LEN",
|
429
|
-
"nameLocation": "624:8:
|
430
|
-
"scope":
|
429
|
+
"nameLocation": "624:8:71",
|
430
|
+
"scope": 29843,
|
431
431
|
"stateVariable": true,
|
432
432
|
"storageLocation": "default",
|
433
433
|
"typeDescriptions": {
|
@@ -435,10 +435,10 @@
|
|
435
435
|
"typeString": "uint256"
|
436
436
|
},
|
437
437
|
"typeName": {
|
438
|
-
"id":
|
438
|
+
"id": 29716,
|
439
439
|
"name": "uint256",
|
440
440
|
"nodeType": "ElementaryTypeName",
|
441
|
-
"src": "607:7:
|
441
|
+
"src": "607:7:71",
|
442
442
|
"typeDescriptions": {
|
443
443
|
"typeIdentifier": "t_uint256",
|
444
444
|
"typeString": "uint256"
|
@@ -450,22 +450,22 @@
|
|
450
450
|
"expression": {
|
451
451
|
"arguments": [
|
452
452
|
{
|
453
|
-
"id":
|
453
|
+
"id": 29721,
|
454
454
|
"isConstant": false,
|
455
455
|
"isLValue": false,
|
456
456
|
"isPure": true,
|
457
457
|
"lValueRequested": false,
|
458
458
|
"nodeType": "ElementaryTypeNameExpression",
|
459
|
-
"src": "648:7:
|
459
|
+
"src": "648:7:71",
|
460
460
|
"typeDescriptions": {
|
461
461
|
"typeIdentifier": "t_type$_t_uint128_$",
|
462
462
|
"typeString": "type(uint128)"
|
463
463
|
},
|
464
464
|
"typeName": {
|
465
|
-
"id":
|
465
|
+
"id": 29720,
|
466
466
|
"name": "uint128",
|
467
467
|
"nodeType": "ElementaryTypeName",
|
468
|
-
"src": "648:7:
|
468
|
+
"src": "648:7:71",
|
469
469
|
"typeDescriptions": {}
|
470
470
|
}
|
471
471
|
}
|
@@ -477,18 +477,18 @@
|
|
477
477
|
"typeString": "type(uint128)"
|
478
478
|
}
|
479
479
|
],
|
480
|
-
"id":
|
480
|
+
"id": 29719,
|
481
481
|
"name": "type",
|
482
482
|
"nodeType": "Identifier",
|
483
483
|
"overloadedDeclarations": [],
|
484
484
|
"referencedDeclaration": -27,
|
485
|
-
"src": "643:4:
|
485
|
+
"src": "643:4:71",
|
486
486
|
"typeDescriptions": {
|
487
487
|
"typeIdentifier": "t_function_metatype_pure$__$returns$__$",
|
488
488
|
"typeString": "function () pure"
|
489
489
|
}
|
490
490
|
},
|
491
|
-
"id":
|
491
|
+
"id": 29722,
|
492
492
|
"isConstant": false,
|
493
493
|
"isLValue": false,
|
494
494
|
"isPure": true,
|
@@ -497,22 +497,22 @@
|
|
497
497
|
"nameLocations": [],
|
498
498
|
"names": [],
|
499
499
|
"nodeType": "FunctionCall",
|
500
|
-
"src": "643:13:
|
500
|
+
"src": "643:13:71",
|
501
501
|
"tryCall": false,
|
502
502
|
"typeDescriptions": {
|
503
503
|
"typeIdentifier": "t_magic_meta_type_t_uint128",
|
504
504
|
"typeString": "type(uint128)"
|
505
505
|
}
|
506
506
|
},
|
507
|
-
"id":
|
507
|
+
"id": 29723,
|
508
508
|
"isConstant": false,
|
509
509
|
"isLValue": false,
|
510
510
|
"isPure": true,
|
511
511
|
"lValueRequested": false,
|
512
|
-
"memberLocation": "657:3:
|
512
|
+
"memberLocation": "657:3:71",
|
513
513
|
"memberName": "max",
|
514
514
|
"nodeType": "MemberAccess",
|
515
|
-
"src": "643:17:
|
515
|
+
"src": "643:17:71",
|
516
516
|
"typeDescriptions": {
|
517
517
|
"typeIdentifier": "t_uint128",
|
518
518
|
"typeString": "uint128"
|
@@ -526,26 +526,26 @@
|
|
526
526
|
"typeString": "uint128"
|
527
527
|
}
|
528
528
|
],
|
529
|
-
"id":
|
529
|
+
"id": 29718,
|
530
530
|
"isConstant": false,
|
531
531
|
"isLValue": false,
|
532
532
|
"isPure": true,
|
533
533
|
"lValueRequested": false,
|
534
534
|
"nodeType": "ElementaryTypeNameExpression",
|
535
|
-
"src": "635:7:
|
535
|
+
"src": "635:7:71",
|
536
536
|
"typeDescriptions": {
|
537
537
|
"typeIdentifier": "t_type$_t_uint256_$",
|
538
538
|
"typeString": "type(uint256)"
|
539
539
|
},
|
540
540
|
"typeName": {
|
541
|
-
"id":
|
541
|
+
"id": 29717,
|
542
542
|
"name": "uint256",
|
543
543
|
"nodeType": "ElementaryTypeName",
|
544
|
-
"src": "635:7:
|
544
|
+
"src": "635:7:71",
|
545
545
|
"typeDescriptions": {}
|
546
546
|
}
|
547
547
|
},
|
548
|
-
"id":
|
548
|
+
"id": 29724,
|
549
549
|
"isConstant": false,
|
550
550
|
"isLValue": false,
|
551
551
|
"isPure": true,
|
@@ -554,7 +554,7 @@
|
|
554
554
|
"nameLocations": [],
|
555
555
|
"names": [],
|
556
556
|
"nodeType": "FunctionCall",
|
557
|
-
"src": "635:26:
|
557
|
+
"src": "635:26:71",
|
558
558
|
"tryCall": false,
|
559
559
|
"typeDescriptions": {
|
560
560
|
"typeIdentifier": "t_uint256",
|
@@ -564,15 +564,15 @@
|
|
564
564
|
"visibility": "internal"
|
565
565
|
},
|
566
566
|
{
|
567
|
-
"id":
|
567
|
+
"id": 29737,
|
568
568
|
"nodeType": "VariableDeclaration",
|
569
|
-
"src": "665:61:
|
569
|
+
"src": "665:61:71",
|
570
570
|
"nodes": [],
|
571
571
|
"constant": true,
|
572
572
|
"mutability": "constant",
|
573
573
|
"name": "MASK_PTR",
|
574
|
-
"nameLocation": "682:8:
|
575
|
-
"scope":
|
574
|
+
"nameLocation": "682:8:71",
|
575
|
+
"scope": 29843,
|
576
576
|
"stateVariable": true,
|
577
577
|
"storageLocation": "default",
|
578
578
|
"typeDescriptions": {
|
@@ -580,10 +580,10 @@
|
|
580
580
|
"typeString": "uint256"
|
581
581
|
},
|
582
582
|
"typeName": {
|
583
|
-
"id":
|
583
|
+
"id": 29726,
|
584
584
|
"name": "uint256",
|
585
585
|
"nodeType": "ElementaryTypeName",
|
586
|
-
"src": "665:7:
|
586
|
+
"src": "665:7:71",
|
587
587
|
"typeDescriptions": {
|
588
588
|
"typeIdentifier": "t_uint256",
|
589
589
|
"typeString": "uint256"
|
@@ -594,7 +594,7 @@
|
|
594
594
|
"typeIdentifier": "t_uint256",
|
595
595
|
"typeString": "uint256"
|
596
596
|
},
|
597
|
-
"id":
|
597
|
+
"id": 29736,
|
598
598
|
"isConstant": false,
|
599
599
|
"isLValue": false,
|
600
600
|
"isPure": true,
|
@@ -605,22 +605,22 @@
|
|
605
605
|
"expression": {
|
606
606
|
"arguments": [
|
607
607
|
{
|
608
|
-
"id":
|
608
|
+
"id": 29731,
|
609
609
|
"isConstant": false,
|
610
610
|
"isLValue": false,
|
611
611
|
"isPure": true,
|
612
612
|
"lValueRequested": false,
|
613
613
|
"nodeType": "ElementaryTypeNameExpression",
|
614
|
-
"src": "706:7:
|
614
|
+
"src": "706:7:71",
|
615
615
|
"typeDescriptions": {
|
616
616
|
"typeIdentifier": "t_type$_t_uint128_$",
|
617
617
|
"typeString": "type(uint128)"
|
618
618
|
},
|
619
619
|
"typeName": {
|
620
|
-
"id":
|
620
|
+
"id": 29730,
|
621
621
|
"name": "uint128",
|
622
622
|
"nodeType": "ElementaryTypeName",
|
623
|
-
"src": "706:7:
|
623
|
+
"src": "706:7:71",
|
624
624
|
"typeDescriptions": {}
|
625
625
|
}
|
626
626
|
}
|
@@ -632,18 +632,18 @@
|
|
632
632
|
"typeString": "type(uint128)"
|
633
633
|
}
|
634
634
|
],
|
635
|
-
"id":
|
635
|
+
"id": 29729,
|
636
636
|
"name": "type",
|
637
637
|
"nodeType": "Identifier",
|
638
638
|
"overloadedDeclarations": [],
|
639
639
|
"referencedDeclaration": -27,
|
640
|
-
"src": "701:4:
|
640
|
+
"src": "701:4:71",
|
641
641
|
"typeDescriptions": {
|
642
642
|
"typeIdentifier": "t_function_metatype_pure$__$returns$__$",
|
643
643
|
"typeString": "function () pure"
|
644
644
|
}
|
645
645
|
},
|
646
|
-
"id":
|
646
|
+
"id": 29732,
|
647
647
|
"isConstant": false,
|
648
648
|
"isLValue": false,
|
649
649
|
"isPure": true,
|
@@ -652,22 +652,22 @@
|
|
652
652
|
"nameLocations": [],
|
653
653
|
"names": [],
|
654
654
|
"nodeType": "FunctionCall",
|
655
|
-
"src": "701:13:
|
655
|
+
"src": "701:13:71",
|
656
656
|
"tryCall": false,
|
657
657
|
"typeDescriptions": {
|
658
658
|
"typeIdentifier": "t_magic_meta_type_t_uint128",
|
659
659
|
"typeString": "type(uint128)"
|
660
660
|
}
|
661
661
|
},
|
662
|
-
"id":
|
662
|
+
"id": 29733,
|
663
663
|
"isConstant": false,
|
664
664
|
"isLValue": false,
|
665
665
|
"isPure": true,
|
666
666
|
"lValueRequested": false,
|
667
|
-
"memberLocation": "715:3:
|
667
|
+
"memberLocation": "715:3:71",
|
668
668
|
"memberName": "max",
|
669
669
|
"nodeType": "MemberAccess",
|
670
|
-
"src": "701:17:
|
670
|
+
"src": "701:17:71",
|
671
671
|
"typeDescriptions": {
|
672
672
|
"typeIdentifier": "t_uint128",
|
673
673
|
"typeString": "uint128"
|
@@ -681,26 +681,26 @@
|
|
681
681
|
"typeString": "uint128"
|
682
682
|
}
|
683
683
|
],
|
684
|
-
"id":
|
684
|
+
"id": 29728,
|
685
685
|
"isConstant": false,
|
686
686
|
"isLValue": false,
|
687
687
|
"isPure": true,
|
688
688
|
"lValueRequested": false,
|
689
689
|
"nodeType": "ElementaryTypeNameExpression",
|
690
|
-
"src": "693:7:
|
690
|
+
"src": "693:7:71",
|
691
691
|
"typeDescriptions": {
|
692
692
|
"typeIdentifier": "t_type$_t_uint256_$",
|
693
693
|
"typeString": "type(uint256)"
|
694
694
|
},
|
695
695
|
"typeName": {
|
696
|
-
"id":
|
696
|
+
"id": 29727,
|
697
697
|
"name": "uint256",
|
698
698
|
"nodeType": "ElementaryTypeName",
|
699
|
-
"src": "693:7:
|
699
|
+
"src": "693:7:71",
|
700
700
|
"typeDescriptions": {}
|
701
701
|
}
|
702
702
|
},
|
703
|
-
"id":
|
703
|
+
"id": 29734,
|
704
704
|
"isConstant": false,
|
705
705
|
"isLValue": false,
|
706
706
|
"isPure": true,
|
@@ -709,7 +709,7 @@
|
|
709
709
|
"nameLocations": [],
|
710
710
|
"names": [],
|
711
711
|
"nodeType": "FunctionCall",
|
712
|
-
"src": "693:26:
|
712
|
+
"src": "693:26:71",
|
713
713
|
"tryCall": false,
|
714
714
|
"typeDescriptions": {
|
715
715
|
"typeIdentifier": "t_uint256",
|
@@ -720,21 +720,21 @@
|
|
720
720
|
"operator": "<<",
|
721
721
|
"rightExpression": {
|
722
722
|
"hexValue": "313238",
|
723
|
-
"id":
|
723
|
+
"id": 29735,
|
724
724
|
"isConstant": false,
|
725
725
|
"isLValue": false,
|
726
726
|
"isPure": true,
|
727
727
|
"kind": "number",
|
728
728
|
"lValueRequested": false,
|
729
729
|
"nodeType": "Literal",
|
730
|
-
"src": "723:3:
|
730
|
+
"src": "723:3:71",
|
731
731
|
"typeDescriptions": {
|
732
732
|
"typeIdentifier": "t_rational_128_by_1",
|
733
733
|
"typeString": "int_const 128"
|
734
734
|
},
|
735
735
|
"value": "128"
|
736
736
|
},
|
737
|
-
"src": "693:33:
|
737
|
+
"src": "693:33:71",
|
738
738
|
"typeDescriptions": {
|
739
739
|
"typeIdentifier": "t_uint256",
|
740
740
|
"typeString": "uint256"
|
@@ -743,30 +743,30 @@
|
|
743
743
|
"visibility": "internal"
|
744
744
|
},
|
745
745
|
{
|
746
|
-
"id":
|
746
|
+
"id": 29765,
|
747
747
|
"nodeType": "FunctionDefinition",
|
748
|
-
"src": "916:329:
|
748
|
+
"src": "916:329:71",
|
749
749
|
"nodes": [],
|
750
750
|
"body": {
|
751
|
-
"id":
|
751
|
+
"id": 29764,
|
752
752
|
"nodeType": "Block",
|
753
|
-
"src": "984:261:
|
753
|
+
"src": "984:261:71",
|
754
754
|
"nodes": [],
|
755
755
|
"statements": [
|
756
756
|
{
|
757
757
|
"assignments": [
|
758
|
-
|
758
|
+
29747
|
759
759
|
],
|
760
760
|
"declarations": [
|
761
761
|
{
|
762
762
|
"constant": false,
|
763
|
-
"id":
|
763
|
+
"id": 29747,
|
764
764
|
"mutability": "mutable",
|
765
765
|
"name": "_pointer",
|
766
|
-
"nameLocation": "998:8:
|
766
|
+
"nameLocation": "998:8:71",
|
767
767
|
"nodeType": "VariableDeclaration",
|
768
|
-
"scope":
|
769
|
-
"src": "990:16:
|
768
|
+
"scope": 29764,
|
769
|
+
"src": "990:16:71",
|
770
770
|
"stateVariable": false,
|
771
771
|
"storageLocation": "default",
|
772
772
|
"typeDescriptions": {
|
@@ -774,10 +774,10 @@
|
|
774
774
|
"typeString": "uint256"
|
775
775
|
},
|
776
776
|
"typeName": {
|
777
|
-
"id":
|
777
|
+
"id": 29746,
|
778
778
|
"name": "uint256",
|
779
779
|
"nodeType": "ElementaryTypeName",
|
780
|
-
"src": "990:7:
|
780
|
+
"src": "990:7:71",
|
781
781
|
"typeDescriptions": {
|
782
782
|
"typeIdentifier": "t_uint256",
|
783
783
|
"typeString": "uint256"
|
@@ -786,53 +786,53 @@
|
|
786
786
|
"visibility": "internal"
|
787
787
|
}
|
788
788
|
],
|
789
|
-
"id":
|
789
|
+
"id": 29748,
|
790
790
|
"nodeType": "VariableDeclarationStatement",
|
791
|
-
"src": "990:16:
|
791
|
+
"src": "990:16:71"
|
792
792
|
},
|
793
793
|
{
|
794
794
|
"AST": {
|
795
|
-
"nativeSrc": "1021:71:
|
795
|
+
"nativeSrc": "1021:71:71",
|
796
796
|
"nodeType": "YulBlock",
|
797
|
-
"src": "1021:71:
|
797
|
+
"src": "1021:71:71",
|
798
798
|
"statements": [
|
799
799
|
{
|
800
|
-
"nativeSrc": "1029:27:
|
800
|
+
"nativeSrc": "1029:27:71",
|
801
801
|
"nodeType": "YulAssignment",
|
802
|
-
"src": "1029:27:
|
802
|
+
"src": "1029:27:71",
|
803
803
|
"value": {
|
804
804
|
"arguments": [
|
805
805
|
{
|
806
806
|
"name": "data",
|
807
|
-
"nativeSrc": "1045:4:
|
807
|
+
"nativeSrc": "1045:4:71",
|
808
808
|
"nodeType": "YulIdentifier",
|
809
|
-
"src": "1045:4:
|
809
|
+
"src": "1045:4:71"
|
810
810
|
},
|
811
811
|
{
|
812
812
|
"kind": "number",
|
813
|
-
"nativeSrc": "1051:4:
|
813
|
+
"nativeSrc": "1051:4:71",
|
814
814
|
"nodeType": "YulLiteral",
|
815
|
-
"src": "1051:4:
|
815
|
+
"src": "1051:4:71",
|
816
816
|
"type": "",
|
817
817
|
"value": "0x20"
|
818
818
|
}
|
819
819
|
],
|
820
820
|
"functionName": {
|
821
821
|
"name": "add",
|
822
|
-
"nativeSrc": "1041:3:
|
822
|
+
"nativeSrc": "1041:3:71",
|
823
823
|
"nodeType": "YulIdentifier",
|
824
|
-
"src": "1041:3:
|
824
|
+
"src": "1041:3:71"
|
825
825
|
},
|
826
|
-
"nativeSrc": "1041:15:
|
826
|
+
"nativeSrc": "1041:15:71",
|
827
827
|
"nodeType": "YulFunctionCall",
|
828
|
-
"src": "1041:15:
|
828
|
+
"src": "1041:15:71"
|
829
829
|
},
|
830
830
|
"variableNames": [
|
831
831
|
{
|
832
832
|
"name": "_pointer",
|
833
|
-
"nativeSrc": "1029:8:
|
833
|
+
"nativeSrc": "1029:8:71",
|
834
834
|
"nodeType": "YulIdentifier",
|
835
|
-
"src": "1029:8:
|
835
|
+
"src": "1029:8:71"
|
836
836
|
}
|
837
837
|
]
|
838
838
|
}
|
@@ -841,23 +841,23 @@
|
|
841
841
|
"evmVersion": "paris",
|
842
842
|
"externalReferences": [
|
843
843
|
{
|
844
|
-
"declaration":
|
844
|
+
"declaration": 29747,
|
845
845
|
"isOffset": false,
|
846
846
|
"isSlot": false,
|
847
|
-
"src": "1029:8:
|
847
|
+
"src": "1029:8:71",
|
848
848
|
"valueSize": 1
|
849
849
|
},
|
850
850
|
{
|
851
|
-
"declaration":
|
851
|
+
"declaration": 29740,
|
852
852
|
"isOffset": false,
|
853
853
|
"isSlot": false,
|
854
|
-
"src": "1045:4:
|
854
|
+
"src": "1045:4:71",
|
855
855
|
"valueSize": 1
|
856
856
|
}
|
857
857
|
],
|
858
|
-
"id":
|
858
|
+
"id": 29749,
|
859
859
|
"nodeType": "InlineAssembly",
|
860
|
-
"src": "1012:80:
|
860
|
+
"src": "1012:80:71"
|
861
861
|
},
|
862
862
|
{
|
863
863
|
"expression": {
|
@@ -867,7 +867,7 @@
|
|
867
867
|
"typeIdentifier": "t_uint256",
|
868
868
|
"typeString": "uint256"
|
869
869
|
},
|
870
|
-
"id":
|
870
|
+
"id": 29761,
|
871
871
|
"isConstant": false,
|
872
872
|
"isLValue": false,
|
873
873
|
"isPure": false,
|
@@ -879,18 +879,18 @@
|
|
879
879
|
"typeIdentifier": "t_uint256",
|
880
880
|
"typeString": "uint256"
|
881
881
|
},
|
882
|
-
"id":
|
882
|
+
"id": 29754,
|
883
883
|
"isConstant": false,
|
884
884
|
"isLValue": false,
|
885
885
|
"isPure": false,
|
886
886
|
"lValueRequested": false,
|
887
887
|
"leftExpression": {
|
888
|
-
"id":
|
888
|
+
"id": 29752,
|
889
889
|
"name": "_pointer",
|
890
890
|
"nodeType": "Identifier",
|
891
891
|
"overloadedDeclarations": [],
|
892
|
-
"referencedDeclaration":
|
893
|
-
"src": "1196:8:
|
892
|
+
"referencedDeclaration": 29747,
|
893
|
+
"src": "1196:8:71",
|
894
894
|
"typeDescriptions": {
|
895
895
|
"typeIdentifier": "t_uint256",
|
896
896
|
"typeString": "uint256"
|
@@ -900,35 +900,35 @@
|
|
900
900
|
"operator": "<<",
|
901
901
|
"rightExpression": {
|
902
902
|
"hexValue": "313238",
|
903
|
-
"id":
|
903
|
+
"id": 29753,
|
904
904
|
"isConstant": false,
|
905
905
|
"isLValue": false,
|
906
906
|
"isPure": true,
|
907
907
|
"kind": "number",
|
908
908
|
"lValueRequested": false,
|
909
909
|
"nodeType": "Literal",
|
910
|
-
"src": "1208:3:
|
910
|
+
"src": "1208:3:71",
|
911
911
|
"typeDescriptions": {
|
912
912
|
"typeIdentifier": "t_rational_128_by_1",
|
913
913
|
"typeString": "int_const 128"
|
914
914
|
},
|
915
915
|
"value": "128"
|
916
916
|
},
|
917
|
-
"src": "1196:15:
|
917
|
+
"src": "1196:15:71",
|
918
918
|
"typeDescriptions": {
|
919
919
|
"typeIdentifier": "t_uint256",
|
920
920
|
"typeString": "uint256"
|
921
921
|
}
|
922
922
|
}
|
923
923
|
],
|
924
|
-
"id":
|
924
|
+
"id": 29755,
|
925
925
|
"isConstant": false,
|
926
926
|
"isInlineArray": false,
|
927
927
|
"isLValue": false,
|
928
928
|
"isPure": false,
|
929
929
|
"lValueRequested": false,
|
930
930
|
"nodeType": "TupleExpression",
|
931
|
-
"src": "1195:17:
|
931
|
+
"src": "1195:17:71",
|
932
932
|
"typeDescriptions": {
|
933
933
|
"typeIdentifier": "t_uint256",
|
934
934
|
"typeString": "uint256"
|
@@ -943,33 +943,33 @@
|
|
943
943
|
"typeIdentifier": "t_uint256",
|
944
944
|
"typeString": "uint256"
|
945
945
|
},
|
946
|
-
"id":
|
946
|
+
"id": 29759,
|
947
947
|
"isConstant": false,
|
948
948
|
"isLValue": false,
|
949
949
|
"isPure": false,
|
950
950
|
"lValueRequested": false,
|
951
951
|
"leftExpression": {
|
952
952
|
"expression": {
|
953
|
-
"id":
|
953
|
+
"id": 29756,
|
954
954
|
"name": "data",
|
955
955
|
"nodeType": "Identifier",
|
956
956
|
"overloadedDeclarations": [],
|
957
|
-
"referencedDeclaration":
|
958
|
-
"src": "1216:4:
|
957
|
+
"referencedDeclaration": 29740,
|
958
|
+
"src": "1216:4:71",
|
959
959
|
"typeDescriptions": {
|
960
960
|
"typeIdentifier": "t_bytes_memory_ptr",
|
961
961
|
"typeString": "bytes memory"
|
962
962
|
}
|
963
963
|
},
|
964
|
-
"id":
|
964
|
+
"id": 29757,
|
965
965
|
"isConstant": false,
|
966
966
|
"isLValue": false,
|
967
967
|
"isPure": false,
|
968
968
|
"lValueRequested": false,
|
969
|
-
"memberLocation": "1221:6:
|
969
|
+
"memberLocation": "1221:6:71",
|
970
970
|
"memberName": "length",
|
971
971
|
"nodeType": "MemberAccess",
|
972
|
-
"src": "1216:11:
|
972
|
+
"src": "1216:11:71",
|
973
973
|
"typeDescriptions": {
|
974
974
|
"typeIdentifier": "t_uint256",
|
975
975
|
"typeString": "uint256"
|
@@ -978,38 +978,38 @@
|
|
978
978
|
"nodeType": "BinaryOperation",
|
979
979
|
"operator": "&",
|
980
980
|
"rightExpression": {
|
981
|
-
"id":
|
981
|
+
"id": 29758,
|
982
982
|
"name": "MASK_LEN",
|
983
983
|
"nodeType": "Identifier",
|
984
984
|
"overloadedDeclarations": [],
|
985
|
-
"referencedDeclaration":
|
986
|
-
"src": "1230:8:
|
985
|
+
"referencedDeclaration": 29725,
|
986
|
+
"src": "1230:8:71",
|
987
987
|
"typeDescriptions": {
|
988
988
|
"typeIdentifier": "t_uint256",
|
989
989
|
"typeString": "uint256"
|
990
990
|
}
|
991
991
|
},
|
992
|
-
"src": "1216:22:
|
992
|
+
"src": "1216:22:71",
|
993
993
|
"typeDescriptions": {
|
994
994
|
"typeIdentifier": "t_uint256",
|
995
995
|
"typeString": "uint256"
|
996
996
|
}
|
997
997
|
}
|
998
998
|
],
|
999
|
-
"id":
|
999
|
+
"id": 29760,
|
1000
1000
|
"isConstant": false,
|
1001
1001
|
"isInlineArray": false,
|
1002
1002
|
"isLValue": false,
|
1003
1003
|
"isPure": false,
|
1004
1004
|
"lValueRequested": false,
|
1005
1005
|
"nodeType": "TupleExpression",
|
1006
|
-
"src": "1215:24:
|
1006
|
+
"src": "1215:24:71",
|
1007
1007
|
"typeDescriptions": {
|
1008
1008
|
"typeIdentifier": "t_uint256",
|
1009
1009
|
"typeString": "uint256"
|
1010
1010
|
}
|
1011
1011
|
},
|
1012
|
-
"src": "1195:44:
|
1012
|
+
"src": "1195:44:71",
|
1013
1013
|
"typeDescriptions": {
|
1014
1014
|
"typeIdentifier": "t_uint256",
|
1015
1015
|
"typeString": "uint256"
|
@@ -1024,32 +1024,32 @@
|
|
1024
1024
|
}
|
1025
1025
|
],
|
1026
1026
|
"expression": {
|
1027
|
-
"id":
|
1027
|
+
"id": 29750,
|
1028
1028
|
"name": "Slice",
|
1029
1029
|
"nodeType": "Identifier",
|
1030
1030
|
"overloadedDeclarations": [],
|
1031
|
-
"referencedDeclaration":
|
1032
|
-
"src": "1184:5:
|
1031
|
+
"referencedDeclaration": 29698,
|
1032
|
+
"src": "1184:5:71",
|
1033
1033
|
"typeDescriptions": {
|
1034
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$
|
1034
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$29698_$",
|
1035
1035
|
"typeString": "type(Slice)"
|
1036
1036
|
}
|
1037
1037
|
},
|
1038
|
-
"id":
|
1038
|
+
"id": 29751,
|
1039
1039
|
"isConstant": false,
|
1040
1040
|
"isLValue": false,
|
1041
1041
|
"isPure": true,
|
1042
1042
|
"lValueRequested": false,
|
1043
|
-
"memberLocation": "1190:4:
|
1043
|
+
"memberLocation": "1190:4:71",
|
1044
1044
|
"memberName": "wrap",
|
1045
1045
|
"nodeType": "MemberAccess",
|
1046
|
-
"src": "1184:10:
|
1046
|
+
"src": "1184:10:71",
|
1047
1047
|
"typeDescriptions": {
|
1048
|
-
"typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$
|
1048
|
+
"typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$29698_$",
|
1049
1049
|
"typeString": "function (uint256) pure returns (Slice)"
|
1050
1050
|
}
|
1051
1051
|
},
|
1052
|
-
"id":
|
1052
|
+
"id": 29762,
|
1053
1053
|
"isConstant": false,
|
1054
1054
|
"isLValue": false,
|
1055
1055
|
"isPure": false,
|
@@ -1058,44 +1058,44 @@
|
|
1058
1058
|
"nameLocations": [],
|
1059
1059
|
"names": [],
|
1060
1060
|
"nodeType": "FunctionCall",
|
1061
|
-
"src": "1184:56:
|
1061
|
+
"src": "1184:56:71",
|
1062
1062
|
"tryCall": false,
|
1063
1063
|
"typeDescriptions": {
|
1064
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1064
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1065
1065
|
"typeString": "Slice"
|
1066
1066
|
}
|
1067
1067
|
},
|
1068
|
-
"functionReturnParameters":
|
1069
|
-
"id":
|
1068
|
+
"functionReturnParameters": 29745,
|
1069
|
+
"id": 29763,
|
1070
1070
|
"nodeType": "Return",
|
1071
|
-
"src": "1177:63:
|
1071
|
+
"src": "1177:63:71"
|
1072
1072
|
}
|
1073
1073
|
]
|
1074
1074
|
},
|
1075
1075
|
"documentation": {
|
1076
|
-
"id":
|
1076
|
+
"id": 29738,
|
1077
1077
|
"nodeType": "StructuredDocumentation",
|
1078
|
-
"src": "731:182:
|
1078
|
+
"src": "731:182:71",
|
1079
1079
|
"text": " @notice Converts a bytes array to a slice (without copying data)\n @param data The bytes array to be converted\n @return A new Slice representing the bytes array"
|
1080
1080
|
},
|
1081
1081
|
"implemented": true,
|
1082
1082
|
"kind": "function",
|
1083
1083
|
"modifiers": [],
|
1084
1084
|
"name": "fromBytes",
|
1085
|
-
"nameLocation": "925:9:
|
1085
|
+
"nameLocation": "925:9:71",
|
1086
1086
|
"parameters": {
|
1087
|
-
"id":
|
1087
|
+
"id": 29741,
|
1088
1088
|
"nodeType": "ParameterList",
|
1089
1089
|
"parameters": [
|
1090
1090
|
{
|
1091
1091
|
"constant": false,
|
1092
|
-
"id":
|
1092
|
+
"id": 29740,
|
1093
1093
|
"mutability": "mutable",
|
1094
1094
|
"name": "data",
|
1095
|
-
"nameLocation": "948:4:
|
1095
|
+
"nameLocation": "948:4:71",
|
1096
1096
|
"nodeType": "VariableDeclaration",
|
1097
|
-
"scope":
|
1098
|
-
"src": "935:17:
|
1097
|
+
"scope": 29765,
|
1098
|
+
"src": "935:17:71",
|
1099
1099
|
"stateVariable": false,
|
1100
1100
|
"storageLocation": "memory",
|
1101
1101
|
"typeDescriptions": {
|
@@ -1103,10 +1103,10 @@
|
|
1103
1103
|
"typeString": "bytes"
|
1104
1104
|
},
|
1105
1105
|
"typeName": {
|
1106
|
-
"id":
|
1106
|
+
"id": 29739,
|
1107
1107
|
"name": "bytes",
|
1108
1108
|
"nodeType": "ElementaryTypeName",
|
1109
|
-
"src": "935:5:
|
1109
|
+
"src": "935:5:71",
|
1110
1110
|
"typeDescriptions": {
|
1111
1111
|
"typeIdentifier": "t_bytes_storage_ptr",
|
1112
1112
|
"typeString": "bytes"
|
@@ -1115,90 +1115,90 @@
|
|
1115
1115
|
"visibility": "internal"
|
1116
1116
|
}
|
1117
1117
|
],
|
1118
|
-
"src": "934:19:
|
1118
|
+
"src": "934:19:71"
|
1119
1119
|
},
|
1120
1120
|
"returnParameters": {
|
1121
|
-
"id":
|
1121
|
+
"id": 29745,
|
1122
1122
|
"nodeType": "ParameterList",
|
1123
1123
|
"parameters": [
|
1124
1124
|
{
|
1125
1125
|
"constant": false,
|
1126
|
-
"id":
|
1126
|
+
"id": 29744,
|
1127
1127
|
"mutability": "mutable",
|
1128
1128
|
"name": "",
|
1129
1129
|
"nameLocation": "-1:-1:-1",
|
1130
1130
|
"nodeType": "VariableDeclaration",
|
1131
|
-
"scope":
|
1132
|
-
"src": "977:5:
|
1131
|
+
"scope": 29765,
|
1132
|
+
"src": "977:5:71",
|
1133
1133
|
"stateVariable": false,
|
1134
1134
|
"storageLocation": "default",
|
1135
1135
|
"typeDescriptions": {
|
1136
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1136
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1137
1137
|
"typeString": "Slice"
|
1138
1138
|
},
|
1139
1139
|
"typeName": {
|
1140
|
-
"id":
|
1140
|
+
"id": 29743,
|
1141
1141
|
"nodeType": "UserDefinedTypeName",
|
1142
1142
|
"pathNode": {
|
1143
|
-
"id":
|
1143
|
+
"id": 29742,
|
1144
1144
|
"name": "Slice",
|
1145
1145
|
"nameLocations": [
|
1146
|
-
"977:5:
|
1146
|
+
"977:5:71"
|
1147
1147
|
],
|
1148
1148
|
"nodeType": "IdentifierPath",
|
1149
|
-
"referencedDeclaration":
|
1150
|
-
"src": "977:5:
|
1149
|
+
"referencedDeclaration": 29698,
|
1150
|
+
"src": "977:5:71"
|
1151
1151
|
},
|
1152
|
-
"referencedDeclaration":
|
1153
|
-
"src": "977:5:
|
1152
|
+
"referencedDeclaration": 29698,
|
1153
|
+
"src": "977:5:71",
|
1154
1154
|
"typeDescriptions": {
|
1155
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1155
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1156
1156
|
"typeString": "Slice"
|
1157
1157
|
}
|
1158
1158
|
},
|
1159
1159
|
"visibility": "internal"
|
1160
1160
|
}
|
1161
1161
|
],
|
1162
|
-
"src": "976:7:
|
1162
|
+
"src": "976:7:71"
|
1163
1163
|
},
|
1164
|
-
"scope":
|
1164
|
+
"scope": 29843,
|
1165
1165
|
"stateMutability": "pure",
|
1166
1166
|
"virtual": false,
|
1167
1167
|
"visibility": "internal"
|
1168
1168
|
},
|
1169
1169
|
{
|
1170
|
-
"id":
|
1170
|
+
"id": 29784,
|
1171
1171
|
"nodeType": "FunctionDefinition",
|
1172
|
-
"src": "1522:140:
|
1172
|
+
"src": "1522:140:71",
|
1173
1173
|
"nodes": [],
|
1174
1174
|
"body": {
|
1175
|
-
"id":
|
1175
|
+
"id": 29783,
|
1176
1176
|
"nodeType": "Block",
|
1177
|
-
"src": "1607:55:
|
1177
|
+
"src": "1607:55:71",
|
1178
1178
|
"nodes": [],
|
1179
1179
|
"statements": [
|
1180
1180
|
{
|
1181
1181
|
"expression": {
|
1182
1182
|
"arguments": [
|
1183
1183
|
{
|
1184
|
-
"id":
|
1184
|
+
"id": 29777,
|
1185
1185
|
"name": "data",
|
1186
1186
|
"nodeType": "Identifier",
|
1187
1187
|
"overloadedDeclarations": [],
|
1188
|
-
"referencedDeclaration":
|
1189
|
-
"src": "1632:4:
|
1188
|
+
"referencedDeclaration": 29768,
|
1189
|
+
"src": "1632:4:71",
|
1190
1190
|
"typeDescriptions": {
|
1191
1191
|
"typeIdentifier": "t_bytes_memory_ptr",
|
1192
1192
|
"typeString": "bytes memory"
|
1193
1193
|
}
|
1194
1194
|
},
|
1195
1195
|
{
|
1196
|
-
"id":
|
1196
|
+
"id": 29778,
|
1197
1197
|
"name": "start",
|
1198
1198
|
"nodeType": "Identifier",
|
1199
1199
|
"overloadedDeclarations": [],
|
1200
|
-
"referencedDeclaration":
|
1201
|
-
"src": "1638:5:
|
1200
|
+
"referencedDeclaration": 29770,
|
1201
|
+
"src": "1638:5:71",
|
1202
1202
|
"typeDescriptions": {
|
1203
1203
|
"typeIdentifier": "t_uint256",
|
1204
1204
|
"typeString": "uint256"
|
@@ -1206,26 +1206,26 @@
|
|
1206
1206
|
},
|
1207
1207
|
{
|
1208
1208
|
"expression": {
|
1209
|
-
"id":
|
1209
|
+
"id": 29779,
|
1210
1210
|
"name": "data",
|
1211
1211
|
"nodeType": "Identifier",
|
1212
1212
|
"overloadedDeclarations": [],
|
1213
|
-
"referencedDeclaration":
|
1214
|
-
"src": "1645:4:
|
1213
|
+
"referencedDeclaration": 29768,
|
1214
|
+
"src": "1645:4:71",
|
1215
1215
|
"typeDescriptions": {
|
1216
1216
|
"typeIdentifier": "t_bytes_memory_ptr",
|
1217
1217
|
"typeString": "bytes memory"
|
1218
1218
|
}
|
1219
1219
|
},
|
1220
|
-
"id":
|
1220
|
+
"id": 29780,
|
1221
1221
|
"isConstant": false,
|
1222
1222
|
"isLValue": false,
|
1223
1223
|
"isPure": false,
|
1224
1224
|
"lValueRequested": false,
|
1225
|
-
"memberLocation": "1650:6:
|
1225
|
+
"memberLocation": "1650:6:71",
|
1226
1226
|
"memberName": "length",
|
1227
1227
|
"nodeType": "MemberAccess",
|
1228
|
-
"src": "1645:11:
|
1228
|
+
"src": "1645:11:71",
|
1229
1229
|
"typeDescriptions": {
|
1230
1230
|
"typeIdentifier": "t_uint256",
|
1231
1231
|
"typeString": "uint256"
|
@@ -1247,21 +1247,21 @@
|
|
1247
1247
|
"typeString": "uint256"
|
1248
1248
|
}
|
1249
1249
|
],
|
1250
|
-
"id":
|
1250
|
+
"id": 29776,
|
1251
1251
|
"name": "getSubslice",
|
1252
1252
|
"nodeType": "Identifier",
|
1253
1253
|
"overloadedDeclarations": [
|
1254
|
-
|
1255
|
-
|
1254
|
+
29784,
|
1255
|
+
29842
|
1256
1256
|
],
|
1257
|
-
"referencedDeclaration":
|
1258
|
-
"src": "1620:11:
|
1257
|
+
"referencedDeclaration": 29842,
|
1258
|
+
"src": "1620:11:71",
|
1259
1259
|
"typeDescriptions": {
|
1260
|
-
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$
|
1260
|
+
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$29698_$",
|
1261
1261
|
"typeString": "function (bytes memory,uint256,uint256) pure returns (Slice)"
|
1262
1262
|
}
|
1263
1263
|
},
|
1264
|
-
"id":
|
1264
|
+
"id": 29781,
|
1265
1265
|
"isConstant": false,
|
1266
1266
|
"isLValue": false,
|
1267
1267
|
"isPure": false,
|
@@ -1270,44 +1270,44 @@
|
|
1270
1270
|
"nameLocations": [],
|
1271
1271
|
"names": [],
|
1272
1272
|
"nodeType": "FunctionCall",
|
1273
|
-
"src": "1620:37:
|
1273
|
+
"src": "1620:37:71",
|
1274
1274
|
"tryCall": false,
|
1275
1275
|
"typeDescriptions": {
|
1276
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1276
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1277
1277
|
"typeString": "Slice"
|
1278
1278
|
}
|
1279
1279
|
},
|
1280
|
-
"functionReturnParameters":
|
1281
|
-
"id":
|
1280
|
+
"functionReturnParameters": 29775,
|
1281
|
+
"id": 29782,
|
1282
1282
|
"nodeType": "Return",
|
1283
|
-
"src": "1613:44:
|
1283
|
+
"src": "1613:44:71"
|
1284
1284
|
}
|
1285
1285
|
]
|
1286
1286
|
},
|
1287
1287
|
"documentation": {
|
1288
|
-
"id":
|
1288
|
+
"id": 29766,
|
1289
1289
|
"nodeType": "StructuredDocumentation",
|
1290
|
-
"src": "1249:270:
|
1290
|
+
"src": "1249:270:71",
|
1291
1291
|
"text": " @notice Subslice a bytes array using the given start index until the end of the array (without copying data)\n @param data The bytes array to subslice\n @param start The start index for the subslice\n @return A new Slice representing the subslice"
|
1292
1292
|
},
|
1293
1293
|
"implemented": true,
|
1294
1294
|
"kind": "function",
|
1295
1295
|
"modifiers": [],
|
1296
1296
|
"name": "getSubslice",
|
1297
|
-
"nameLocation": "1531:11:
|
1297
|
+
"nameLocation": "1531:11:71",
|
1298
1298
|
"parameters": {
|
1299
|
-
"id":
|
1299
|
+
"id": 29771,
|
1300
1300
|
"nodeType": "ParameterList",
|
1301
1301
|
"parameters": [
|
1302
1302
|
{
|
1303
1303
|
"constant": false,
|
1304
|
-
"id":
|
1304
|
+
"id": 29768,
|
1305
1305
|
"mutability": "mutable",
|
1306
1306
|
"name": "data",
|
1307
|
-
"nameLocation": "1556:4:
|
1307
|
+
"nameLocation": "1556:4:71",
|
1308
1308
|
"nodeType": "VariableDeclaration",
|
1309
|
-
"scope":
|
1310
|
-
"src": "1543:17:
|
1309
|
+
"scope": 29784,
|
1310
|
+
"src": "1543:17:71",
|
1311
1311
|
"stateVariable": false,
|
1312
1312
|
"storageLocation": "memory",
|
1313
1313
|
"typeDescriptions": {
|
@@ -1315,10 +1315,10 @@
|
|
1315
1315
|
"typeString": "bytes"
|
1316
1316
|
},
|
1317
1317
|
"typeName": {
|
1318
|
-
"id":
|
1318
|
+
"id": 29767,
|
1319
1319
|
"name": "bytes",
|
1320
1320
|
"nodeType": "ElementaryTypeName",
|
1321
|
-
"src": "1543:5:
|
1321
|
+
"src": "1543:5:71",
|
1322
1322
|
"typeDescriptions": {
|
1323
1323
|
"typeIdentifier": "t_bytes_storage_ptr",
|
1324
1324
|
"typeString": "bytes"
|
@@ -1328,13 +1328,13 @@
|
|
1328
1328
|
},
|
1329
1329
|
{
|
1330
1330
|
"constant": false,
|
1331
|
-
"id":
|
1331
|
+
"id": 29770,
|
1332
1332
|
"mutability": "mutable",
|
1333
1333
|
"name": "start",
|
1334
|
-
"nameLocation": "1570:5:
|
1334
|
+
"nameLocation": "1570:5:71",
|
1335
1335
|
"nodeType": "VariableDeclaration",
|
1336
|
-
"scope":
|
1337
|
-
"src": "1562:13:
|
1336
|
+
"scope": 29784,
|
1337
|
+
"src": "1562:13:71",
|
1338
1338
|
"stateVariable": false,
|
1339
1339
|
"storageLocation": "default",
|
1340
1340
|
"typeDescriptions": {
|
@@ -1342,10 +1342,10 @@
|
|
1342
1342
|
"typeString": "uint256"
|
1343
1343
|
},
|
1344
1344
|
"typeName": {
|
1345
|
-
"id":
|
1345
|
+
"id": 29769,
|
1346
1346
|
"name": "uint256",
|
1347
1347
|
"nodeType": "ElementaryTypeName",
|
1348
|
-
"src": "1562:7:
|
1348
|
+
"src": "1562:7:71",
|
1349
1349
|
"typeDescriptions": {
|
1350
1350
|
"typeIdentifier": "t_uint256",
|
1351
1351
|
"typeString": "uint256"
|
@@ -1354,71 +1354,71 @@
|
|
1354
1354
|
"visibility": "internal"
|
1355
1355
|
}
|
1356
1356
|
],
|
1357
|
-
"src": "1542:34:
|
1357
|
+
"src": "1542:34:71"
|
1358
1358
|
},
|
1359
1359
|
"returnParameters": {
|
1360
|
-
"id":
|
1360
|
+
"id": 29775,
|
1361
1361
|
"nodeType": "ParameterList",
|
1362
1362
|
"parameters": [
|
1363
1363
|
{
|
1364
1364
|
"constant": false,
|
1365
|
-
"id":
|
1365
|
+
"id": 29774,
|
1366
1366
|
"mutability": "mutable",
|
1367
1367
|
"name": "",
|
1368
1368
|
"nameLocation": "-1:-1:-1",
|
1369
1369
|
"nodeType": "VariableDeclaration",
|
1370
|
-
"scope":
|
1371
|
-
"src": "1600:5:
|
1370
|
+
"scope": 29784,
|
1371
|
+
"src": "1600:5:71",
|
1372
1372
|
"stateVariable": false,
|
1373
1373
|
"storageLocation": "default",
|
1374
1374
|
"typeDescriptions": {
|
1375
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1375
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1376
1376
|
"typeString": "Slice"
|
1377
1377
|
},
|
1378
1378
|
"typeName": {
|
1379
|
-
"id":
|
1379
|
+
"id": 29773,
|
1380
1380
|
"nodeType": "UserDefinedTypeName",
|
1381
1381
|
"pathNode": {
|
1382
|
-
"id":
|
1382
|
+
"id": 29772,
|
1383
1383
|
"name": "Slice",
|
1384
1384
|
"nameLocations": [
|
1385
|
-
"1600:5:
|
1385
|
+
"1600:5:71"
|
1386
1386
|
],
|
1387
1387
|
"nodeType": "IdentifierPath",
|
1388
|
-
"referencedDeclaration":
|
1389
|
-
"src": "1600:5:
|
1388
|
+
"referencedDeclaration": 29698,
|
1389
|
+
"src": "1600:5:71"
|
1390
1390
|
},
|
1391
|
-
"referencedDeclaration":
|
1392
|
-
"src": "1600:5:
|
1391
|
+
"referencedDeclaration": 29698,
|
1392
|
+
"src": "1600:5:71",
|
1393
1393
|
"typeDescriptions": {
|
1394
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
1394
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
1395
1395
|
"typeString": "Slice"
|
1396
1396
|
}
|
1397
1397
|
},
|
1398
1398
|
"visibility": "internal"
|
1399
1399
|
}
|
1400
1400
|
],
|
1401
|
-
"src": "1599:7:
|
1401
|
+
"src": "1599:7:71"
|
1402
1402
|
},
|
1403
|
-
"scope":
|
1403
|
+
"scope": 29843,
|
1404
1404
|
"stateMutability": "pure",
|
1405
1405
|
"virtual": false,
|
1406
1406
|
"visibility": "internal"
|
1407
1407
|
},
|
1408
1408
|
{
|
1409
|
-
"id":
|
1409
|
+
"id": 29842,
|
1410
1410
|
"nodeType": "FunctionDefinition",
|
1411
|
-
"src": "2022:570:
|
1411
|
+
"src": "2022:570:71",
|
1412
1412
|
"nodes": [],
|
1413
1413
|
"body": {
|
1414
|
-
"id":
|
1414
|
+
"id": 29841,
|
1415
1415
|
"nodeType": "Block",
|
1416
|
-
"src": "2120:472:
|
1416
|
+
"src": "2120:472:71",
|
1417
1417
|
"nodes": [],
|
1418
1418
|
"statements": [
|
1419
1419
|
{
|
1420
1420
|
"condition": {
|
1421
|
-
"id":
|
1421
|
+
"id": 29806,
|
1422
1422
|
"isConstant": false,
|
1423
1423
|
"isLValue": false,
|
1424
1424
|
"isPure": false,
|
@@ -1426,7 +1426,7 @@
|
|
1426
1426
|
"nodeType": "UnaryOperation",
|
1427
1427
|
"operator": "!",
|
1428
1428
|
"prefix": true,
|
1429
|
-
"src": "2200:37:
|
1429
|
+
"src": "2200:37:71",
|
1430
1430
|
"subExpression": {
|
1431
1431
|
"components": [
|
1432
1432
|
{
|
@@ -1434,7 +1434,7 @@
|
|
1434
1434
|
"typeIdentifier": "t_bool",
|
1435
1435
|
"typeString": "bool"
|
1436
1436
|
},
|
1437
|
-
"id":
|
1437
|
+
"id": 29804,
|
1438
1438
|
"isConstant": false,
|
1439
1439
|
"isLValue": false,
|
1440
1440
|
"isPure": false,
|
@@ -1444,18 +1444,18 @@
|
|
1444
1444
|
"typeIdentifier": "t_uint256",
|
1445
1445
|
"typeString": "uint256"
|
1446
1446
|
},
|
1447
|
-
"id":
|
1447
|
+
"id": 29799,
|
1448
1448
|
"isConstant": false,
|
1449
1449
|
"isLValue": false,
|
1450
1450
|
"isPure": false,
|
1451
1451
|
"lValueRequested": false,
|
1452
1452
|
"leftExpression": {
|
1453
|
-
"id":
|
1453
|
+
"id": 29797,
|
1454
1454
|
"name": "start",
|
1455
1455
|
"nodeType": "Identifier",
|
1456
1456
|
"overloadedDeclarations": [],
|
1457
|
-
"referencedDeclaration":
|
1458
|
-
"src": "2202:5:
|
1457
|
+
"referencedDeclaration": 29789,
|
1458
|
+
"src": "2202:5:71",
|
1459
1459
|
"typeDescriptions": {
|
1460
1460
|
"typeIdentifier": "t_uint256",
|
1461
1461
|
"typeString": "uint256"
|
@@ -1464,18 +1464,18 @@
|
|
1464
1464
|
"nodeType": "BinaryOperation",
|
1465
1465
|
"operator": "<=",
|
1466
1466
|
"rightExpression": {
|
1467
|
-
"id":
|
1467
|
+
"id": 29798,
|
1468
1468
|
"name": "end",
|
1469
1469
|
"nodeType": "Identifier",
|
1470
1470
|
"overloadedDeclarations": [],
|
1471
|
-
"referencedDeclaration":
|
1472
|
-
"src": "2211:3:
|
1471
|
+
"referencedDeclaration": 29791,
|
1472
|
+
"src": "2211:3:71",
|
1473
1473
|
"typeDescriptions": {
|
1474
1474
|
"typeIdentifier": "t_uint256",
|
1475
1475
|
"typeString": "uint256"
|
1476
1476
|
}
|
1477
1477
|
},
|
1478
|
-
"src": "2202:12:
|
1478
|
+
"src": "2202:12:71",
|
1479
1479
|
"typeDescriptions": {
|
1480
1480
|
"typeIdentifier": "t_bool",
|
1481
1481
|
"typeString": "bool"
|
@@ -1488,18 +1488,18 @@
|
|
1488
1488
|
"typeIdentifier": "t_uint256",
|
1489
1489
|
"typeString": "uint256"
|
1490
1490
|
},
|
1491
|
-
"id":
|
1491
|
+
"id": 29803,
|
1492
1492
|
"isConstant": false,
|
1493
1493
|
"isLValue": false,
|
1494
1494
|
"isPure": false,
|
1495
1495
|
"lValueRequested": false,
|
1496
1496
|
"leftExpression": {
|
1497
|
-
"id":
|
1497
|
+
"id": 29800,
|
1498
1498
|
"name": "end",
|
1499
1499
|
"nodeType": "Identifier",
|
1500
1500
|
"overloadedDeclarations": [],
|
1501
|
-
"referencedDeclaration":
|
1502
|
-
"src": "2218:3:
|
1501
|
+
"referencedDeclaration": 29791,
|
1502
|
+
"src": "2218:3:71",
|
1503
1503
|
"typeDescriptions": {
|
1504
1504
|
"typeIdentifier": "t_uint256",
|
1505
1505
|
"typeString": "uint256"
|
@@ -1509,52 +1509,52 @@
|
|
1509
1509
|
"operator": "<=",
|
1510
1510
|
"rightExpression": {
|
1511
1511
|
"expression": {
|
1512
|
-
"id":
|
1512
|
+
"id": 29801,
|
1513
1513
|
"name": "data",
|
1514
1514
|
"nodeType": "Identifier",
|
1515
1515
|
"overloadedDeclarations": [],
|
1516
|
-
"referencedDeclaration":
|
1517
|
-
"src": "2225:4:
|
1516
|
+
"referencedDeclaration": 29787,
|
1517
|
+
"src": "2225:4:71",
|
1518
1518
|
"typeDescriptions": {
|
1519
1519
|
"typeIdentifier": "t_bytes_memory_ptr",
|
1520
1520
|
"typeString": "bytes memory"
|
1521
1521
|
}
|
1522
1522
|
},
|
1523
|
-
"id":
|
1523
|
+
"id": 29802,
|
1524
1524
|
"isConstant": false,
|
1525
1525
|
"isLValue": false,
|
1526
1526
|
"isPure": false,
|
1527
1527
|
"lValueRequested": false,
|
1528
|
-
"memberLocation": "2230:6:
|
1528
|
+
"memberLocation": "2230:6:71",
|
1529
1529
|
"memberName": "length",
|
1530
1530
|
"nodeType": "MemberAccess",
|
1531
|
-
"src": "2225:11:
|
1531
|
+
"src": "2225:11:71",
|
1532
1532
|
"typeDescriptions": {
|
1533
1533
|
"typeIdentifier": "t_uint256",
|
1534
1534
|
"typeString": "uint256"
|
1535
1535
|
}
|
1536
1536
|
},
|
1537
|
-
"src": "2218:18:
|
1537
|
+
"src": "2218:18:71",
|
1538
1538
|
"typeDescriptions": {
|
1539
1539
|
"typeIdentifier": "t_bool",
|
1540
1540
|
"typeString": "bool"
|
1541
1541
|
}
|
1542
1542
|
},
|
1543
|
-
"src": "2202:34:
|
1543
|
+
"src": "2202:34:71",
|
1544
1544
|
"typeDescriptions": {
|
1545
1545
|
"typeIdentifier": "t_bool",
|
1546
1546
|
"typeString": "bool"
|
1547
1547
|
}
|
1548
1548
|
}
|
1549
1549
|
],
|
1550
|
-
"id":
|
1550
|
+
"id": 29805,
|
1551
1551
|
"isConstant": false,
|
1552
1552
|
"isInlineArray": false,
|
1553
1553
|
"isLValue": false,
|
1554
1554
|
"isPure": false,
|
1555
1555
|
"lValueRequested": false,
|
1556
1556
|
"nodeType": "TupleExpression",
|
1557
|
-
"src": "2201:36:
|
1557
|
+
"src": "2201:36:71",
|
1558
1558
|
"typeDescriptions": {
|
1559
1559
|
"typeIdentifier": "t_bool",
|
1560
1560
|
"typeString": "bool"
|
@@ -1565,43 +1565,43 @@
|
|
1565
1565
|
"typeString": "bool"
|
1566
1566
|
}
|
1567
1567
|
},
|
1568
|
-
"id":
|
1568
|
+
"id": 29813,
|
1569
1569
|
"nodeType": "IfStatement",
|
1570
|
-
"src": "2196:85:
|
1570
|
+
"src": "2196:85:71",
|
1571
1571
|
"trueBody": {
|
1572
1572
|
"errorCall": {
|
1573
1573
|
"arguments": [
|
1574
1574
|
{
|
1575
|
-
"id":
|
1575
|
+
"id": 29808,
|
1576
1576
|
"name": "data",
|
1577
1577
|
"nodeType": "Identifier",
|
1578
1578
|
"overloadedDeclarations": [],
|
1579
|
-
"referencedDeclaration":
|
1580
|
-
"src": "2264:4:
|
1579
|
+
"referencedDeclaration": 29787,
|
1580
|
+
"src": "2264:4:71",
|
1581
1581
|
"typeDescriptions": {
|
1582
1582
|
"typeIdentifier": "t_bytes_memory_ptr",
|
1583
1583
|
"typeString": "bytes memory"
|
1584
1584
|
}
|
1585
1585
|
},
|
1586
1586
|
{
|
1587
|
-
"id":
|
1587
|
+
"id": 29809,
|
1588
1588
|
"name": "start",
|
1589
1589
|
"nodeType": "Identifier",
|
1590
1590
|
"overloadedDeclarations": [],
|
1591
|
-
"referencedDeclaration":
|
1592
|
-
"src": "2270:5:
|
1591
|
+
"referencedDeclaration": 29789,
|
1592
|
+
"src": "2270:5:71",
|
1593
1593
|
"typeDescriptions": {
|
1594
1594
|
"typeIdentifier": "t_uint256",
|
1595
1595
|
"typeString": "uint256"
|
1596
1596
|
}
|
1597
1597
|
},
|
1598
1598
|
{
|
1599
|
-
"id":
|
1599
|
+
"id": 29810,
|
1600
1600
|
"name": "end",
|
1601
1601
|
"nodeType": "Identifier",
|
1602
1602
|
"overloadedDeclarations": [],
|
1603
|
-
"referencedDeclaration":
|
1604
|
-
"src": "2277:3:
|
1603
|
+
"referencedDeclaration": 29791,
|
1604
|
+
"src": "2277:3:71",
|
1605
1605
|
"typeDescriptions": {
|
1606
1606
|
"typeIdentifier": "t_uint256",
|
1607
1607
|
"typeString": "uint256"
|
@@ -1623,18 +1623,18 @@
|
|
1623
1623
|
"typeString": "uint256"
|
1624
1624
|
}
|
1625
1625
|
],
|
1626
|
-
"id":
|
1626
|
+
"id": 29807,
|
1627
1627
|
"name": "Slice_OutOfBounds",
|
1628
1628
|
"nodeType": "Identifier",
|
1629
1629
|
"overloadedDeclarations": [],
|
1630
|
-
"referencedDeclaration":
|
1631
|
-
"src": "2246:17:
|
1630
|
+
"referencedDeclaration": 29715,
|
1631
|
+
"src": "2246:17:71",
|
1632
1632
|
"typeDescriptions": {
|
1633
1633
|
"typeIdentifier": "t_function_error_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$",
|
1634
1634
|
"typeString": "function (bytes memory,uint256,uint256) pure"
|
1635
1635
|
}
|
1636
1636
|
},
|
1637
|
-
"id":
|
1637
|
+
"id": 29811,
|
1638
1638
|
"isConstant": false,
|
1639
1639
|
"isLValue": false,
|
1640
1640
|
"isPure": false,
|
@@ -1643,32 +1643,32 @@
|
|
1643
1643
|
"nameLocations": [],
|
1644
1644
|
"names": [],
|
1645
1645
|
"nodeType": "FunctionCall",
|
1646
|
-
"src": "2246:35:
|
1646
|
+
"src": "2246:35:71",
|
1647
1647
|
"tryCall": false,
|
1648
1648
|
"typeDescriptions": {
|
1649
1649
|
"typeIdentifier": "t_tuple$__$",
|
1650
1650
|
"typeString": "tuple()"
|
1651
1651
|
}
|
1652
1652
|
},
|
1653
|
-
"id":
|
1653
|
+
"id": 29812,
|
1654
1654
|
"nodeType": "RevertStatement",
|
1655
|
-
"src": "2239:42:
|
1655
|
+
"src": "2239:42:71"
|
1656
1656
|
}
|
1657
1657
|
},
|
1658
1658
|
{
|
1659
1659
|
"assignments": [
|
1660
|
-
|
1660
|
+
29815
|
1661
1661
|
],
|
1662
1662
|
"declarations": [
|
1663
1663
|
{
|
1664
1664
|
"constant": false,
|
1665
|
-
"id":
|
1665
|
+
"id": 29815,
|
1666
1666
|
"mutability": "mutable",
|
1667
1667
|
"name": "_pointer",
|
1668
|
-
"nameLocation": "2296:8:
|
1668
|
+
"nameLocation": "2296:8:71",
|
1669
1669
|
"nodeType": "VariableDeclaration",
|
1670
|
-
"scope":
|
1671
|
-
"src": "2288:16:
|
1670
|
+
"scope": 29841,
|
1671
|
+
"src": "2288:16:71",
|
1672
1672
|
"stateVariable": false,
|
1673
1673
|
"storageLocation": "default",
|
1674
1674
|
"typeDescriptions": {
|
@@ -1676,10 +1676,10 @@
|
|
1676
1676
|
"typeString": "uint256"
|
1677
1677
|
},
|
1678
1678
|
"typeName": {
|
1679
|
-
"id":
|
1679
|
+
"id": 29814,
|
1680
1680
|
"name": "uint256",
|
1681
1681
|
"nodeType": "ElementaryTypeName",
|
1682
|
-
"src": "2288:7:
|
1682
|
+
"src": "2288:7:71",
|
1683
1683
|
"typeDescriptions": {
|
1684
1684
|
"typeIdentifier": "t_uint256",
|
1685
1685
|
"typeString": "uint256"
|
@@ -1688,53 +1688,53 @@
|
|
1688
1688
|
"visibility": "internal"
|
1689
1689
|
}
|
1690
1690
|
],
|
1691
|
-
"id":
|
1691
|
+
"id": 29816,
|
1692
1692
|
"nodeType": "VariableDeclarationStatement",
|
1693
|
-
"src": "2288:16:
|
1693
|
+
"src": "2288:16:71"
|
1694
1694
|
},
|
1695
1695
|
{
|
1696
1696
|
"AST": {
|
1697
|
-
"nativeSrc": "2319:71:
|
1697
|
+
"nativeSrc": "2319:71:71",
|
1698
1698
|
"nodeType": "YulBlock",
|
1699
|
-
"src": "2319:71:
|
1699
|
+
"src": "2319:71:71",
|
1700
1700
|
"statements": [
|
1701
1701
|
{
|
1702
|
-
"nativeSrc": "2327:27:
|
1702
|
+
"nativeSrc": "2327:27:71",
|
1703
1703
|
"nodeType": "YulAssignment",
|
1704
|
-
"src": "2327:27:
|
1704
|
+
"src": "2327:27:71",
|
1705
1705
|
"value": {
|
1706
1706
|
"arguments": [
|
1707
1707
|
{
|
1708
1708
|
"name": "data",
|
1709
|
-
"nativeSrc": "2343:4:
|
1709
|
+
"nativeSrc": "2343:4:71",
|
1710
1710
|
"nodeType": "YulIdentifier",
|
1711
|
-
"src": "2343:4:
|
1711
|
+
"src": "2343:4:71"
|
1712
1712
|
},
|
1713
1713
|
{
|
1714
1714
|
"kind": "number",
|
1715
|
-
"nativeSrc": "2349:4:
|
1715
|
+
"nativeSrc": "2349:4:71",
|
1716
1716
|
"nodeType": "YulLiteral",
|
1717
|
-
"src": "2349:4:
|
1717
|
+
"src": "2349:4:71",
|
1718
1718
|
"type": "",
|
1719
1719
|
"value": "0x20"
|
1720
1720
|
}
|
1721
1721
|
],
|
1722
1722
|
"functionName": {
|
1723
1723
|
"name": "add",
|
1724
|
-
"nativeSrc": "2339:3:
|
1724
|
+
"nativeSrc": "2339:3:71",
|
1725
1725
|
"nodeType": "YulIdentifier",
|
1726
|
-
"src": "2339:3:
|
1726
|
+
"src": "2339:3:71"
|
1727
1727
|
},
|
1728
|
-
"nativeSrc": "2339:15:
|
1728
|
+
"nativeSrc": "2339:15:71",
|
1729
1729
|
"nodeType": "YulFunctionCall",
|
1730
|
-
"src": "2339:15:
|
1730
|
+
"src": "2339:15:71"
|
1731
1731
|
},
|
1732
1732
|
"variableNames": [
|
1733
1733
|
{
|
1734
1734
|
"name": "_pointer",
|
1735
|
-
"nativeSrc": "2327:8:
|
1735
|
+
"nativeSrc": "2327:8:71",
|
1736
1736
|
"nodeType": "YulIdentifier",
|
1737
|
-
"src": "2327:8:
|
1737
|
+
"src": "2327:8:71"
|
1738
1738
|
}
|
1739
1739
|
]
|
1740
1740
|
}
|
@@ -1743,38 +1743,38 @@
|
|
1743
1743
|
"evmVersion": "paris",
|
1744
1744
|
"externalReferences": [
|
1745
1745
|
{
|
1746
|
-
"declaration":
|
1746
|
+
"declaration": 29815,
|
1747
1747
|
"isOffset": false,
|
1748
1748
|
"isSlot": false,
|
1749
|
-
"src": "2327:8:
|
1749
|
+
"src": "2327:8:71",
|
1750
1750
|
"valueSize": 1
|
1751
1751
|
},
|
1752
1752
|
{
|
1753
|
-
"declaration":
|
1753
|
+
"declaration": 29787,
|
1754
1754
|
"isOffset": false,
|
1755
1755
|
"isSlot": false,
|
1756
|
-
"src": "2343:4:
|
1756
|
+
"src": "2343:4:71",
|
1757
1757
|
"valueSize": 1
|
1758
1758
|
}
|
1759
1759
|
],
|
1760
|
-
"id":
|
1760
|
+
"id": 29817,
|
1761
1761
|
"nodeType": "InlineAssembly",
|
1762
|
-
"src": "2310:80:
|
1762
|
+
"src": "2310:80:71"
|
1763
1763
|
},
|
1764
1764
|
{
|
1765
1765
|
"expression": {
|
1766
|
-
"id":
|
1766
|
+
"id": 29820,
|
1767
1767
|
"isConstant": false,
|
1768
1768
|
"isLValue": false,
|
1769
1769
|
"isPure": false,
|
1770
1770
|
"lValueRequested": false,
|
1771
1771
|
"leftHandSide": {
|
1772
|
-
"id":
|
1772
|
+
"id": 29818,
|
1773
1773
|
"name": "_pointer",
|
1774
1774
|
"nodeType": "Identifier",
|
1775
1775
|
"overloadedDeclarations": [],
|
1776
|
-
"referencedDeclaration":
|
1777
|
-
"src": "2396:8:
|
1776
|
+
"referencedDeclaration": 29815,
|
1777
|
+
"src": "2396:8:71",
|
1778
1778
|
"typeDescriptions": {
|
1779
1779
|
"typeIdentifier": "t_uint256",
|
1780
1780
|
"typeString": "uint256"
|
@@ -1783,41 +1783,41 @@
|
|
1783
1783
|
"nodeType": "Assignment",
|
1784
1784
|
"operator": "+=",
|
1785
1785
|
"rightHandSide": {
|
1786
|
-
"id":
|
1786
|
+
"id": 29819,
|
1787
1787
|
"name": "start",
|
1788
1788
|
"nodeType": "Identifier",
|
1789
1789
|
"overloadedDeclarations": [],
|
1790
|
-
"referencedDeclaration":
|
1791
|
-
"src": "2408:5:
|
1790
|
+
"referencedDeclaration": 29789,
|
1791
|
+
"src": "2408:5:71",
|
1792
1792
|
"typeDescriptions": {
|
1793
1793
|
"typeIdentifier": "t_uint256",
|
1794
1794
|
"typeString": "uint256"
|
1795
1795
|
}
|
1796
1796
|
},
|
1797
|
-
"src": "2396:17:
|
1797
|
+
"src": "2396:17:71",
|
1798
1798
|
"typeDescriptions": {
|
1799
1799
|
"typeIdentifier": "t_uint256",
|
1800
1800
|
"typeString": "uint256"
|
1801
1801
|
}
|
1802
1802
|
},
|
1803
|
-
"id":
|
1803
|
+
"id": 29821,
|
1804
1804
|
"nodeType": "ExpressionStatement",
|
1805
|
-
"src": "2396:17:
|
1805
|
+
"src": "2396:17:71"
|
1806
1806
|
},
|
1807
1807
|
{
|
1808
1808
|
"assignments": [
|
1809
|
-
|
1809
|
+
29823
|
1810
1810
|
],
|
1811
1811
|
"declarations": [
|
1812
1812
|
{
|
1813
1813
|
"constant": false,
|
1814
|
-
"id":
|
1814
|
+
"id": 29823,
|
1815
1815
|
"mutability": "mutable",
|
1816
1816
|
"name": "_len",
|
1817
|
-
"nameLocation": "2427:4:
|
1817
|
+
"nameLocation": "2427:4:71",
|
1818
1818
|
"nodeType": "VariableDeclaration",
|
1819
|
-
"scope":
|
1820
|
-
"src": "2419:12:
|
1819
|
+
"scope": 29841,
|
1820
|
+
"src": "2419:12:71",
|
1821
1821
|
"stateVariable": false,
|
1822
1822
|
"storageLocation": "default",
|
1823
1823
|
"typeDescriptions": {
|
@@ -1825,10 +1825,10 @@
|
|
1825
1825
|
"typeString": "uint256"
|
1826
1826
|
},
|
1827
1827
|
"typeName": {
|
1828
|
-
"id":
|
1828
|
+
"id": 29822,
|
1829
1829
|
"name": "uint256",
|
1830
1830
|
"nodeType": "ElementaryTypeName",
|
1831
|
-
"src": "2419:7:
|
1831
|
+
"src": "2419:7:71",
|
1832
1832
|
"typeDescriptions": {
|
1833
1833
|
"typeIdentifier": "t_uint256",
|
1834
1834
|
"typeString": "uint256"
|
@@ -1837,24 +1837,24 @@
|
|
1837
1837
|
"visibility": "internal"
|
1838
1838
|
}
|
1839
1839
|
],
|
1840
|
-
"id":
|
1840
|
+
"id": 29827,
|
1841
1841
|
"initialValue": {
|
1842
1842
|
"commonType": {
|
1843
1843
|
"typeIdentifier": "t_uint256",
|
1844
1844
|
"typeString": "uint256"
|
1845
1845
|
},
|
1846
|
-
"id":
|
1846
|
+
"id": 29826,
|
1847
1847
|
"isConstant": false,
|
1848
1848
|
"isLValue": false,
|
1849
1849
|
"isPure": false,
|
1850
1850
|
"lValueRequested": false,
|
1851
1851
|
"leftExpression": {
|
1852
|
-
"id":
|
1852
|
+
"id": 29824,
|
1853
1853
|
"name": "end",
|
1854
1854
|
"nodeType": "Identifier",
|
1855
1855
|
"overloadedDeclarations": [],
|
1856
|
-
"referencedDeclaration":
|
1857
|
-
"src": "2434:3:
|
1856
|
+
"referencedDeclaration": 29791,
|
1857
|
+
"src": "2434:3:71",
|
1858
1858
|
"typeDescriptions": {
|
1859
1859
|
"typeIdentifier": "t_uint256",
|
1860
1860
|
"typeString": "uint256"
|
@@ -1863,25 +1863,25 @@
|
|
1863
1863
|
"nodeType": "BinaryOperation",
|
1864
1864
|
"operator": "-",
|
1865
1865
|
"rightExpression": {
|
1866
|
-
"id":
|
1866
|
+
"id": 29825,
|
1867
1867
|
"name": "start",
|
1868
1868
|
"nodeType": "Identifier",
|
1869
1869
|
"overloadedDeclarations": [],
|
1870
|
-
"referencedDeclaration":
|
1871
|
-
"src": "2440:5:
|
1870
|
+
"referencedDeclaration": 29789,
|
1871
|
+
"src": "2440:5:71",
|
1872
1872
|
"typeDescriptions": {
|
1873
1873
|
"typeIdentifier": "t_uint256",
|
1874
1874
|
"typeString": "uint256"
|
1875
1875
|
}
|
1876
1876
|
},
|
1877
|
-
"src": "2434:11:
|
1877
|
+
"src": "2434:11:71",
|
1878
1878
|
"typeDescriptions": {
|
1879
1879
|
"typeIdentifier": "t_uint256",
|
1880
1880
|
"typeString": "uint256"
|
1881
1881
|
}
|
1882
1882
|
},
|
1883
1883
|
"nodeType": "VariableDeclarationStatement",
|
1884
|
-
"src": "2419:26:
|
1884
|
+
"src": "2419:26:71"
|
1885
1885
|
},
|
1886
1886
|
{
|
1887
1887
|
"expression": {
|
@@ -1891,7 +1891,7 @@
|
|
1891
1891
|
"typeIdentifier": "t_uint256",
|
1892
1892
|
"typeString": "uint256"
|
1893
1893
|
},
|
1894
|
-
"id":
|
1894
|
+
"id": 29838,
|
1895
1895
|
"isConstant": false,
|
1896
1896
|
"isLValue": false,
|
1897
1897
|
"isPure": false,
|
@@ -1903,18 +1903,18 @@
|
|
1903
1903
|
"typeIdentifier": "t_uint256",
|
1904
1904
|
"typeString": "uint256"
|
1905
1905
|
},
|
1906
|
-
"id":
|
1906
|
+
"id": 29832,
|
1907
1907
|
"isConstant": false,
|
1908
1908
|
"isLValue": false,
|
1909
1909
|
"isPure": false,
|
1910
1910
|
"lValueRequested": false,
|
1911
1911
|
"leftExpression": {
|
1912
|
-
"id":
|
1912
|
+
"id": 29830,
|
1913
1913
|
"name": "_pointer",
|
1914
1914
|
"nodeType": "Identifier",
|
1915
1915
|
"overloadedDeclarations": [],
|
1916
|
-
"referencedDeclaration":
|
1917
|
-
"src": "2550:8:
|
1916
|
+
"referencedDeclaration": 29815,
|
1917
|
+
"src": "2550:8:71",
|
1918
1918
|
"typeDescriptions": {
|
1919
1919
|
"typeIdentifier": "t_uint256",
|
1920
1920
|
"typeString": "uint256"
|
@@ -1924,35 +1924,35 @@
|
|
1924
1924
|
"operator": "<<",
|
1925
1925
|
"rightExpression": {
|
1926
1926
|
"hexValue": "313238",
|
1927
|
-
"id":
|
1927
|
+
"id": 29831,
|
1928
1928
|
"isConstant": false,
|
1929
1929
|
"isLValue": false,
|
1930
1930
|
"isPure": true,
|
1931
1931
|
"kind": "number",
|
1932
1932
|
"lValueRequested": false,
|
1933
1933
|
"nodeType": "Literal",
|
1934
|
-
"src": "2562:3:
|
1934
|
+
"src": "2562:3:71",
|
1935
1935
|
"typeDescriptions": {
|
1936
1936
|
"typeIdentifier": "t_rational_128_by_1",
|
1937
1937
|
"typeString": "int_const 128"
|
1938
1938
|
},
|
1939
1939
|
"value": "128"
|
1940
1940
|
},
|
1941
|
-
"src": "2550:15:
|
1941
|
+
"src": "2550:15:71",
|
1942
1942
|
"typeDescriptions": {
|
1943
1943
|
"typeIdentifier": "t_uint256",
|
1944
1944
|
"typeString": "uint256"
|
1945
1945
|
}
|
1946
1946
|
}
|
1947
1947
|
],
|
1948
|
-
"id":
|
1948
|
+
"id": 29833,
|
1949
1949
|
"isConstant": false,
|
1950
1950
|
"isInlineArray": false,
|
1951
1951
|
"isLValue": false,
|
1952
1952
|
"isPure": false,
|
1953
1953
|
"lValueRequested": false,
|
1954
1954
|
"nodeType": "TupleExpression",
|
1955
|
-
"src": "2549:17:
|
1955
|
+
"src": "2549:17:71",
|
1956
1956
|
"typeDescriptions": {
|
1957
1957
|
"typeIdentifier": "t_uint256",
|
1958
1958
|
"typeString": "uint256"
|
@@ -1967,18 +1967,18 @@
|
|
1967
1967
|
"typeIdentifier": "t_uint256",
|
1968
1968
|
"typeString": "uint256"
|
1969
1969
|
},
|
1970
|
-
"id":
|
1970
|
+
"id": 29836,
|
1971
1971
|
"isConstant": false,
|
1972
1972
|
"isLValue": false,
|
1973
1973
|
"isPure": false,
|
1974
1974
|
"lValueRequested": false,
|
1975
1975
|
"leftExpression": {
|
1976
|
-
"id":
|
1976
|
+
"id": 29834,
|
1977
1977
|
"name": "_len",
|
1978
1978
|
"nodeType": "Identifier",
|
1979
1979
|
"overloadedDeclarations": [],
|
1980
|
-
"referencedDeclaration":
|
1981
|
-
"src": "2570:4:
|
1980
|
+
"referencedDeclaration": 29823,
|
1981
|
+
"src": "2570:4:71",
|
1982
1982
|
"typeDescriptions": {
|
1983
1983
|
"typeIdentifier": "t_uint256",
|
1984
1984
|
"typeString": "uint256"
|
@@ -1987,38 +1987,38 @@
|
|
1987
1987
|
"nodeType": "BinaryOperation",
|
1988
1988
|
"operator": "&",
|
1989
1989
|
"rightExpression": {
|
1990
|
-
"id":
|
1990
|
+
"id": 29835,
|
1991
1991
|
"name": "MASK_LEN",
|
1992
1992
|
"nodeType": "Identifier",
|
1993
1993
|
"overloadedDeclarations": [],
|
1994
|
-
"referencedDeclaration":
|
1995
|
-
"src": "2577:8:
|
1994
|
+
"referencedDeclaration": 29725,
|
1995
|
+
"src": "2577:8:71",
|
1996
1996
|
"typeDescriptions": {
|
1997
1997
|
"typeIdentifier": "t_uint256",
|
1998
1998
|
"typeString": "uint256"
|
1999
1999
|
}
|
2000
2000
|
},
|
2001
|
-
"src": "2570:15:
|
2001
|
+
"src": "2570:15:71",
|
2002
2002
|
"typeDescriptions": {
|
2003
2003
|
"typeIdentifier": "t_uint256",
|
2004
2004
|
"typeString": "uint256"
|
2005
2005
|
}
|
2006
2006
|
}
|
2007
2007
|
],
|
2008
|
-
"id":
|
2008
|
+
"id": 29837,
|
2009
2009
|
"isConstant": false,
|
2010
2010
|
"isInlineArray": false,
|
2011
2011
|
"isLValue": false,
|
2012
2012
|
"isPure": false,
|
2013
2013
|
"lValueRequested": false,
|
2014
2014
|
"nodeType": "TupleExpression",
|
2015
|
-
"src": "2569:17:
|
2015
|
+
"src": "2569:17:71",
|
2016
2016
|
"typeDescriptions": {
|
2017
2017
|
"typeIdentifier": "t_uint256",
|
2018
2018
|
"typeString": "uint256"
|
2019
2019
|
}
|
2020
2020
|
},
|
2021
|
-
"src": "2549:37:
|
2021
|
+
"src": "2549:37:71",
|
2022
2022
|
"typeDescriptions": {
|
2023
2023
|
"typeIdentifier": "t_uint256",
|
2024
2024
|
"typeString": "uint256"
|
@@ -2033,32 +2033,32 @@
|
|
2033
2033
|
}
|
2034
2034
|
],
|
2035
2035
|
"expression": {
|
2036
|
-
"id":
|
2036
|
+
"id": 29828,
|
2037
2037
|
"name": "Slice",
|
2038
2038
|
"nodeType": "Identifier",
|
2039
2039
|
"overloadedDeclarations": [],
|
2040
|
-
"referencedDeclaration":
|
2041
|
-
"src": "2538:5:
|
2040
|
+
"referencedDeclaration": 29698,
|
2041
|
+
"src": "2538:5:71",
|
2042
2042
|
"typeDescriptions": {
|
2043
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$
|
2043
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$29698_$",
|
2044
2044
|
"typeString": "type(Slice)"
|
2045
2045
|
}
|
2046
2046
|
},
|
2047
|
-
"id":
|
2047
|
+
"id": 29829,
|
2048
2048
|
"isConstant": false,
|
2049
2049
|
"isLValue": false,
|
2050
2050
|
"isPure": true,
|
2051
2051
|
"lValueRequested": false,
|
2052
|
-
"memberLocation": "2544:4:
|
2052
|
+
"memberLocation": "2544:4:71",
|
2053
2053
|
"memberName": "wrap",
|
2054
2054
|
"nodeType": "MemberAccess",
|
2055
|
-
"src": "2538:10:
|
2055
|
+
"src": "2538:10:71",
|
2056
2056
|
"typeDescriptions": {
|
2057
|
-
"typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$
|
2057
|
+
"typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$29698_$",
|
2058
2058
|
"typeString": "function (uint256) pure returns (Slice)"
|
2059
2059
|
}
|
2060
2060
|
},
|
2061
|
-
"id":
|
2061
|
+
"id": 29839,
|
2062
2062
|
"isConstant": false,
|
2063
2063
|
"isLValue": false,
|
2064
2064
|
"isPure": false,
|
@@ -2067,44 +2067,44 @@
|
|
2067
2067
|
"nameLocations": [],
|
2068
2068
|
"names": [],
|
2069
2069
|
"nodeType": "FunctionCall",
|
2070
|
-
"src": "2538:49:
|
2070
|
+
"src": "2538:49:71",
|
2071
2071
|
"tryCall": false,
|
2072
2072
|
"typeDescriptions": {
|
2073
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2073
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2074
2074
|
"typeString": "Slice"
|
2075
2075
|
}
|
2076
2076
|
},
|
2077
|
-
"functionReturnParameters":
|
2078
|
-
"id":
|
2077
|
+
"functionReturnParameters": 29796,
|
2078
|
+
"id": 29840,
|
2079
2079
|
"nodeType": "Return",
|
2080
|
-
"src": "2531:56:
|
2080
|
+
"src": "2531:56:71"
|
2081
2081
|
}
|
2082
2082
|
]
|
2083
2083
|
},
|
2084
2084
|
"documentation": {
|
2085
|
-
"id":
|
2085
|
+
"id": 29785,
|
2086
2086
|
"nodeType": "StructuredDocumentation",
|
2087
|
-
"src": "1666:353:
|
2087
|
+
"src": "1666:353:71",
|
2088
2088
|
"text": " @notice Subslice a bytes array using the given indexes (without copying data)\n @dev The start index is inclusive, the end index is exclusive\n @param data The bytes array to subslice\n @param start The start index for the subslice\n @param end The end index for the subslice\n @return A new Slice representing the subslice"
|
2089
2089
|
},
|
2090
2090
|
"implemented": true,
|
2091
2091
|
"kind": "function",
|
2092
2092
|
"modifiers": [],
|
2093
2093
|
"name": "getSubslice",
|
2094
|
-
"nameLocation": "2031:11:
|
2094
|
+
"nameLocation": "2031:11:71",
|
2095
2095
|
"parameters": {
|
2096
|
-
"id":
|
2096
|
+
"id": 29792,
|
2097
2097
|
"nodeType": "ParameterList",
|
2098
2098
|
"parameters": [
|
2099
2099
|
{
|
2100
2100
|
"constant": false,
|
2101
|
-
"id":
|
2101
|
+
"id": 29787,
|
2102
2102
|
"mutability": "mutable",
|
2103
2103
|
"name": "data",
|
2104
|
-
"nameLocation": "2056:4:
|
2104
|
+
"nameLocation": "2056:4:71",
|
2105
2105
|
"nodeType": "VariableDeclaration",
|
2106
|
-
"scope":
|
2107
|
-
"src": "2043:17:
|
2106
|
+
"scope": 29842,
|
2107
|
+
"src": "2043:17:71",
|
2108
2108
|
"stateVariable": false,
|
2109
2109
|
"storageLocation": "memory",
|
2110
2110
|
"typeDescriptions": {
|
@@ -2112,10 +2112,10 @@
|
|
2112
2112
|
"typeString": "bytes"
|
2113
2113
|
},
|
2114
2114
|
"typeName": {
|
2115
|
-
"id":
|
2115
|
+
"id": 29786,
|
2116
2116
|
"name": "bytes",
|
2117
2117
|
"nodeType": "ElementaryTypeName",
|
2118
|
-
"src": "2043:5:
|
2118
|
+
"src": "2043:5:71",
|
2119
2119
|
"typeDescriptions": {
|
2120
2120
|
"typeIdentifier": "t_bytes_storage_ptr",
|
2121
2121
|
"typeString": "bytes"
|
@@ -2125,13 +2125,13 @@
|
|
2125
2125
|
},
|
2126
2126
|
{
|
2127
2127
|
"constant": false,
|
2128
|
-
"id":
|
2128
|
+
"id": 29789,
|
2129
2129
|
"mutability": "mutable",
|
2130
2130
|
"name": "start",
|
2131
|
-
"nameLocation": "2070:5:
|
2131
|
+
"nameLocation": "2070:5:71",
|
2132
2132
|
"nodeType": "VariableDeclaration",
|
2133
|
-
"scope":
|
2134
|
-
"src": "2062:13:
|
2133
|
+
"scope": 29842,
|
2134
|
+
"src": "2062:13:71",
|
2135
2135
|
"stateVariable": false,
|
2136
2136
|
"storageLocation": "default",
|
2137
2137
|
"typeDescriptions": {
|
@@ -2139,10 +2139,10 @@
|
|
2139
2139
|
"typeString": "uint256"
|
2140
2140
|
},
|
2141
2141
|
"typeName": {
|
2142
|
-
"id":
|
2142
|
+
"id": 29788,
|
2143
2143
|
"name": "uint256",
|
2144
2144
|
"nodeType": "ElementaryTypeName",
|
2145
|
-
"src": "2062:7:
|
2145
|
+
"src": "2062:7:71",
|
2146
2146
|
"typeDescriptions": {
|
2147
2147
|
"typeIdentifier": "t_uint256",
|
2148
2148
|
"typeString": "uint256"
|
@@ -2152,13 +2152,13 @@
|
|
2152
2152
|
},
|
2153
2153
|
{
|
2154
2154
|
"constant": false,
|
2155
|
-
"id":
|
2155
|
+
"id": 29791,
|
2156
2156
|
"mutability": "mutable",
|
2157
2157
|
"name": "end",
|
2158
|
-
"nameLocation": "2085:3:
|
2158
|
+
"nameLocation": "2085:3:71",
|
2159
2159
|
"nodeType": "VariableDeclaration",
|
2160
|
-
"scope":
|
2161
|
-
"src": "2077:11:
|
2160
|
+
"scope": 29842,
|
2161
|
+
"src": "2077:11:71",
|
2162
2162
|
"stateVariable": false,
|
2163
2163
|
"storageLocation": "default",
|
2164
2164
|
"typeDescriptions": {
|
@@ -2166,10 +2166,10 @@
|
|
2166
2166
|
"typeString": "uint256"
|
2167
2167
|
},
|
2168
2168
|
"typeName": {
|
2169
|
-
"id":
|
2169
|
+
"id": 29790,
|
2170
2170
|
"name": "uint256",
|
2171
2171
|
"nodeType": "ElementaryTypeName",
|
2172
|
-
"src": "2077:7:
|
2172
|
+
"src": "2077:7:71",
|
2173
2173
|
"typeDescriptions": {
|
2174
2174
|
"typeIdentifier": "t_uint256",
|
2175
2175
|
"typeString": "uint256"
|
@@ -2178,53 +2178,53 @@
|
|
2178
2178
|
"visibility": "internal"
|
2179
2179
|
}
|
2180
2180
|
],
|
2181
|
-
"src": "2042:47:
|
2181
|
+
"src": "2042:47:71"
|
2182
2182
|
},
|
2183
2183
|
"returnParameters": {
|
2184
|
-
"id":
|
2184
|
+
"id": 29796,
|
2185
2185
|
"nodeType": "ParameterList",
|
2186
2186
|
"parameters": [
|
2187
2187
|
{
|
2188
2188
|
"constant": false,
|
2189
|
-
"id":
|
2189
|
+
"id": 29795,
|
2190
2190
|
"mutability": "mutable",
|
2191
2191
|
"name": "",
|
2192
2192
|
"nameLocation": "-1:-1:-1",
|
2193
2193
|
"nodeType": "VariableDeclaration",
|
2194
|
-
"scope":
|
2195
|
-
"src": "2113:5:
|
2194
|
+
"scope": 29842,
|
2195
|
+
"src": "2113:5:71",
|
2196
2196
|
"stateVariable": false,
|
2197
2197
|
"storageLocation": "default",
|
2198
2198
|
"typeDescriptions": {
|
2199
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2199
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2200
2200
|
"typeString": "Slice"
|
2201
2201
|
},
|
2202
2202
|
"typeName": {
|
2203
|
-
"id":
|
2203
|
+
"id": 29794,
|
2204
2204
|
"nodeType": "UserDefinedTypeName",
|
2205
2205
|
"pathNode": {
|
2206
|
-
"id":
|
2206
|
+
"id": 29793,
|
2207
2207
|
"name": "Slice",
|
2208
2208
|
"nameLocations": [
|
2209
|
-
"2113:5:
|
2209
|
+
"2113:5:71"
|
2210
2210
|
],
|
2211
2211
|
"nodeType": "IdentifierPath",
|
2212
|
-
"referencedDeclaration":
|
2213
|
-
"src": "2113:5:
|
2212
|
+
"referencedDeclaration": 29698,
|
2213
|
+
"src": "2113:5:71"
|
2214
2214
|
},
|
2215
|
-
"referencedDeclaration":
|
2216
|
-
"src": "2113:5:
|
2215
|
+
"referencedDeclaration": 29698,
|
2216
|
+
"src": "2113:5:71",
|
2217
2217
|
"typeDescriptions": {
|
2218
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2218
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2219
2219
|
"typeString": "Slice"
|
2220
2220
|
}
|
2221
2221
|
},
|
2222
2222
|
"visibility": "internal"
|
2223
2223
|
}
|
2224
2224
|
],
|
2225
|
-
"src": "2112:7:
|
2225
|
+
"src": "2112:7:71"
|
2226
2226
|
},
|
2227
|
-
"scope":
|
2227
|
+
"scope": 29843,
|
2228
2228
|
"stateMutability": "pure",
|
2229
2229
|
"virtual": false,
|
2230
2230
|
"visibility": "internal"
|
@@ -2236,37 +2236,37 @@
|
|
2236
2236
|
"contractDependencies": [],
|
2237
2237
|
"contractKind": "library",
|
2238
2238
|
"documentation": {
|
2239
|
-
"id":
|
2239
|
+
"id": 29707,
|
2240
2240
|
"nodeType": "StructuredDocumentation",
|
2241
|
-
"src": "473:44:
|
2241
|
+
"src": "473:44:71",
|
2242
2242
|
"text": " @title Static functions for Slice"
|
2243
2243
|
},
|
2244
2244
|
"fullyImplemented": true,
|
2245
2245
|
"linearizedBaseContracts": [
|
2246
|
-
|
2246
|
+
29843
|
2247
2247
|
],
|
2248
2248
|
"name": "SliceLib",
|
2249
|
-
"nameLocation": "526:8:
|
2250
|
-
"scope":
|
2249
|
+
"nameLocation": "526:8:71",
|
2250
|
+
"scope": 29941,
|
2251
2251
|
"usedErrors": [
|
2252
|
-
|
2252
|
+
29715
|
2253
2253
|
],
|
2254
2254
|
"usedEvents": []
|
2255
2255
|
},
|
2256
2256
|
{
|
2257
|
-
"id":
|
2257
|
+
"id": 29940,
|
2258
2258
|
"nodeType": "ContractDefinition",
|
2259
|
-
"src": "2643:1797:
|
2259
|
+
"src": "2643:1797:71",
|
2260
2260
|
"nodes": [
|
2261
2261
|
{
|
2262
|
-
"id":
|
2262
|
+
"id": 29861,
|
2263
2263
|
"nodeType": "FunctionDefinition",
|
2264
|
-
"src": "2850:104:
|
2264
|
+
"src": "2850:104:71",
|
2265
2265
|
"nodes": [],
|
2266
2266
|
"body": {
|
2267
|
-
"id":
|
2267
|
+
"id": 29860,
|
2268
2268
|
"nodeType": "Block",
|
2269
|
-
"src": "2911:43:
|
2269
|
+
"src": "2911:43:71",
|
2270
2270
|
"nodes": [],
|
2271
2271
|
"statements": [
|
2272
2272
|
{
|
@@ -2275,7 +2275,7 @@
|
|
2275
2275
|
"typeIdentifier": "t_uint256",
|
2276
2276
|
"typeString": "uint256"
|
2277
2277
|
},
|
2278
|
-
"id":
|
2278
|
+
"id": 29858,
|
2279
2279
|
"isConstant": false,
|
2280
2280
|
"isLValue": false,
|
2281
2281
|
"isPure": false,
|
@@ -2283,14 +2283,14 @@
|
|
2283
2283
|
"leftExpression": {
|
2284
2284
|
"arguments": [
|
2285
2285
|
{
|
2286
|
-
"id":
|
2286
|
+
"id": 29855,
|
2287
2287
|
"name": "self",
|
2288
2288
|
"nodeType": "Identifier",
|
2289
2289
|
"overloadedDeclarations": [],
|
2290
|
-
"referencedDeclaration":
|
2291
|
-
"src": "2937:4:
|
2290
|
+
"referencedDeclaration": 29848,
|
2291
|
+
"src": "2937:4:71",
|
2292
2292
|
"typeDescriptions": {
|
2293
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2293
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2294
2294
|
"typeString": "Slice"
|
2295
2295
|
}
|
2296
2296
|
}
|
@@ -2298,37 +2298,37 @@
|
|
2298
2298
|
"expression": {
|
2299
2299
|
"argumentTypes": [
|
2300
2300
|
{
|
2301
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2301
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2302
2302
|
"typeString": "Slice"
|
2303
2303
|
}
|
2304
2304
|
],
|
2305
2305
|
"expression": {
|
2306
|
-
"id":
|
2306
|
+
"id": 29853,
|
2307
2307
|
"name": "Slice",
|
2308
2308
|
"nodeType": "Identifier",
|
2309
2309
|
"overloadedDeclarations": [],
|
2310
|
-
"referencedDeclaration":
|
2311
|
-
"src": "2924:5:
|
2310
|
+
"referencedDeclaration": 29698,
|
2311
|
+
"src": "2924:5:71",
|
2312
2312
|
"typeDescriptions": {
|
2313
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$
|
2313
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$29698_$",
|
2314
2314
|
"typeString": "type(Slice)"
|
2315
2315
|
}
|
2316
2316
|
},
|
2317
|
-
"id":
|
2317
|
+
"id": 29854,
|
2318
2318
|
"isConstant": false,
|
2319
2319
|
"isLValue": false,
|
2320
2320
|
"isPure": true,
|
2321
2321
|
"lValueRequested": false,
|
2322
|
-
"memberLocation": "2930:6:
|
2322
|
+
"memberLocation": "2930:6:71",
|
2323
2323
|
"memberName": "unwrap",
|
2324
2324
|
"nodeType": "MemberAccess",
|
2325
|
-
"src": "2924:12:
|
2325
|
+
"src": "2924:12:71",
|
2326
2326
|
"typeDescriptions": {
|
2327
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$
|
2327
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$29698_$returns$_t_uint256_$",
|
2328
2328
|
"typeString": "function (Slice) pure returns (uint256)"
|
2329
2329
|
}
|
2330
2330
|
},
|
2331
|
-
"id":
|
2331
|
+
"id": 29856,
|
2332
2332
|
"isConstant": false,
|
2333
2333
|
"isLValue": false,
|
2334
2334
|
"isPure": false,
|
@@ -2337,7 +2337,7 @@
|
|
2337
2337
|
"nameLocations": [],
|
2338
2338
|
"names": [],
|
2339
2339
|
"nodeType": "FunctionCall",
|
2340
|
-
"src": "2924:18:
|
2340
|
+
"src": "2924:18:71",
|
2341
2341
|
"tryCall": false,
|
2342
2342
|
"typeDescriptions": {
|
2343
2343
|
"typeIdentifier": "t_uint256",
|
@@ -2348,101 +2348,101 @@
|
|
2348
2348
|
"operator": ">>",
|
2349
2349
|
"rightExpression": {
|
2350
2350
|
"hexValue": "313238",
|
2351
|
-
"id":
|
2351
|
+
"id": 29857,
|
2352
2352
|
"isConstant": false,
|
2353
2353
|
"isLValue": false,
|
2354
2354
|
"isPure": true,
|
2355
2355
|
"kind": "number",
|
2356
2356
|
"lValueRequested": false,
|
2357
2357
|
"nodeType": "Literal",
|
2358
|
-
"src": "2946:3:
|
2358
|
+
"src": "2946:3:71",
|
2359
2359
|
"typeDescriptions": {
|
2360
2360
|
"typeIdentifier": "t_rational_128_by_1",
|
2361
2361
|
"typeString": "int_const 128"
|
2362
2362
|
},
|
2363
2363
|
"value": "128"
|
2364
2364
|
},
|
2365
|
-
"src": "2924:25:
|
2365
|
+
"src": "2924:25:71",
|
2366
2366
|
"typeDescriptions": {
|
2367
2367
|
"typeIdentifier": "t_uint256",
|
2368
2368
|
"typeString": "uint256"
|
2369
2369
|
}
|
2370
2370
|
},
|
2371
|
-
"functionReturnParameters":
|
2372
|
-
"id":
|
2371
|
+
"functionReturnParameters": 29852,
|
2372
|
+
"id": 29859,
|
2373
2373
|
"nodeType": "Return",
|
2374
|
-
"src": "2917:32:
|
2374
|
+
"src": "2917:32:71"
|
2375
2375
|
}
|
2376
2376
|
]
|
2377
2377
|
},
|
2378
2378
|
"documentation": {
|
2379
|
-
"id":
|
2379
|
+
"id": 29845,
|
2380
2380
|
"nodeType": "StructuredDocumentation",
|
2381
|
-
"src": "2669:178:
|
2381
|
+
"src": "2669:178:71",
|
2382
2382
|
"text": " @notice Returns the pointer to the start of a slice\n @param self The slice whose pointer needs to be fetched\n @return The pointer to the start of the slice"
|
2383
2383
|
},
|
2384
2384
|
"implemented": true,
|
2385
2385
|
"kind": "function",
|
2386
2386
|
"modifiers": [],
|
2387
2387
|
"name": "pointer",
|
2388
|
-
"nameLocation": "2859:7:
|
2388
|
+
"nameLocation": "2859:7:71",
|
2389
2389
|
"parameters": {
|
2390
|
-
"id":
|
2390
|
+
"id": 29849,
|
2391
2391
|
"nodeType": "ParameterList",
|
2392
2392
|
"parameters": [
|
2393
2393
|
{
|
2394
2394
|
"constant": false,
|
2395
|
-
"id":
|
2395
|
+
"id": 29848,
|
2396
2396
|
"mutability": "mutable",
|
2397
2397
|
"name": "self",
|
2398
|
-
"nameLocation": "2873:4:
|
2398
|
+
"nameLocation": "2873:4:71",
|
2399
2399
|
"nodeType": "VariableDeclaration",
|
2400
|
-
"scope":
|
2401
|
-
"src": "2867:10:
|
2400
|
+
"scope": 29861,
|
2401
|
+
"src": "2867:10:71",
|
2402
2402
|
"stateVariable": false,
|
2403
2403
|
"storageLocation": "default",
|
2404
2404
|
"typeDescriptions": {
|
2405
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2405
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2406
2406
|
"typeString": "Slice"
|
2407
2407
|
},
|
2408
2408
|
"typeName": {
|
2409
|
-
"id":
|
2409
|
+
"id": 29847,
|
2410
2410
|
"nodeType": "UserDefinedTypeName",
|
2411
2411
|
"pathNode": {
|
2412
|
-
"id":
|
2412
|
+
"id": 29846,
|
2413
2413
|
"name": "Slice",
|
2414
2414
|
"nameLocations": [
|
2415
|
-
"2867:5:
|
2415
|
+
"2867:5:71"
|
2416
2416
|
],
|
2417
2417
|
"nodeType": "IdentifierPath",
|
2418
|
-
"referencedDeclaration":
|
2419
|
-
"src": "2867:5:
|
2418
|
+
"referencedDeclaration": 29698,
|
2419
|
+
"src": "2867:5:71"
|
2420
2420
|
},
|
2421
|
-
"referencedDeclaration":
|
2422
|
-
"src": "2867:5:
|
2421
|
+
"referencedDeclaration": 29698,
|
2422
|
+
"src": "2867:5:71",
|
2423
2423
|
"typeDescriptions": {
|
2424
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2424
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2425
2425
|
"typeString": "Slice"
|
2426
2426
|
}
|
2427
2427
|
},
|
2428
2428
|
"visibility": "internal"
|
2429
2429
|
}
|
2430
2430
|
],
|
2431
|
-
"src": "2866:12:
|
2431
|
+
"src": "2866:12:71"
|
2432
2432
|
},
|
2433
2433
|
"returnParameters": {
|
2434
|
-
"id":
|
2434
|
+
"id": 29852,
|
2435
2435
|
"nodeType": "ParameterList",
|
2436
2436
|
"parameters": [
|
2437
2437
|
{
|
2438
2438
|
"constant": false,
|
2439
|
-
"id":
|
2439
|
+
"id": 29851,
|
2440
2440
|
"mutability": "mutable",
|
2441
2441
|
"name": "",
|
2442
2442
|
"nameLocation": "-1:-1:-1",
|
2443
2443
|
"nodeType": "VariableDeclaration",
|
2444
|
-
"scope":
|
2445
|
-
"src": "2902:7:
|
2444
|
+
"scope": 29861,
|
2445
|
+
"src": "2902:7:71",
|
2446
2446
|
"stateVariable": false,
|
2447
2447
|
"storageLocation": "default",
|
2448
2448
|
"typeDescriptions": {
|
@@ -2450,10 +2450,10 @@
|
|
2450
2450
|
"typeString": "uint256"
|
2451
2451
|
},
|
2452
2452
|
"typeName": {
|
2453
|
-
"id":
|
2453
|
+
"id": 29850,
|
2454
2454
|
"name": "uint256",
|
2455
2455
|
"nodeType": "ElementaryTypeName",
|
2456
|
-
"src": "2902:7:
|
2456
|
+
"src": "2902:7:71",
|
2457
2457
|
"typeDescriptions": {
|
2458
2458
|
"typeIdentifier": "t_uint256",
|
2459
2459
|
"typeString": "uint256"
|
@@ -2462,22 +2462,22 @@
|
|
2462
2462
|
"visibility": "internal"
|
2463
2463
|
}
|
2464
2464
|
],
|
2465
|
-
"src": "2901:9:
|
2465
|
+
"src": "2901:9:71"
|
2466
2466
|
},
|
2467
|
-
"scope":
|
2467
|
+
"scope": 29940,
|
2468
2468
|
"stateMutability": "pure",
|
2469
2469
|
"virtual": false,
|
2470
2470
|
"visibility": "internal"
|
2471
2471
|
},
|
2472
2472
|
{
|
2473
|
-
"id":
|
2473
|
+
"id": 29879,
|
2474
2474
|
"nodeType": "FunctionDefinition",
|
2475
|
-
"src": "3114:116:
|
2475
|
+
"src": "3114:116:71",
|
2476
2476
|
"nodes": [],
|
2477
2477
|
"body": {
|
2478
|
-
"id":
|
2478
|
+
"id": 29878,
|
2479
2479
|
"nodeType": "Block",
|
2480
|
-
"src": "3174:56:
|
2480
|
+
"src": "3174:56:71",
|
2481
2481
|
"nodes": [],
|
2482
2482
|
"statements": [
|
2483
2483
|
{
|
@@ -2486,7 +2486,7 @@
|
|
2486
2486
|
"typeIdentifier": "t_uint256",
|
2487
2487
|
"typeString": "uint256"
|
2488
2488
|
},
|
2489
|
-
"id":
|
2489
|
+
"id": 29876,
|
2490
2490
|
"isConstant": false,
|
2491
2491
|
"isLValue": false,
|
2492
2492
|
"isPure": false,
|
@@ -2494,14 +2494,14 @@
|
|
2494
2494
|
"leftExpression": {
|
2495
2495
|
"arguments": [
|
2496
2496
|
{
|
2497
|
-
"id":
|
2497
|
+
"id": 29872,
|
2498
2498
|
"name": "self",
|
2499
2499
|
"nodeType": "Identifier",
|
2500
2500
|
"overloadedDeclarations": [],
|
2501
|
-
"referencedDeclaration":
|
2502
|
-
"src": "3200:4:
|
2501
|
+
"referencedDeclaration": 29865,
|
2502
|
+
"src": "3200:4:71",
|
2503
2503
|
"typeDescriptions": {
|
2504
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2504
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2505
2505
|
"typeString": "Slice"
|
2506
2506
|
}
|
2507
2507
|
}
|
@@ -2509,37 +2509,37 @@
|
|
2509
2509
|
"expression": {
|
2510
2510
|
"argumentTypes": [
|
2511
2511
|
{
|
2512
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2512
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2513
2513
|
"typeString": "Slice"
|
2514
2514
|
}
|
2515
2515
|
],
|
2516
2516
|
"expression": {
|
2517
|
-
"id":
|
2517
|
+
"id": 29870,
|
2518
2518
|
"name": "Slice",
|
2519
2519
|
"nodeType": "Identifier",
|
2520
2520
|
"overloadedDeclarations": [],
|
2521
|
-
"referencedDeclaration":
|
2522
|
-
"src": "3187:5:
|
2521
|
+
"referencedDeclaration": 29698,
|
2522
|
+
"src": "3187:5:71",
|
2523
2523
|
"typeDescriptions": {
|
2524
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$
|
2524
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$29698_$",
|
2525
2525
|
"typeString": "type(Slice)"
|
2526
2526
|
}
|
2527
2527
|
},
|
2528
|
-
"id":
|
2528
|
+
"id": 29871,
|
2529
2529
|
"isConstant": false,
|
2530
2530
|
"isLValue": false,
|
2531
2531
|
"isPure": true,
|
2532
2532
|
"lValueRequested": false,
|
2533
|
-
"memberLocation": "3193:6:
|
2533
|
+
"memberLocation": "3193:6:71",
|
2534
2534
|
"memberName": "unwrap",
|
2535
2535
|
"nodeType": "MemberAccess",
|
2536
|
-
"src": "3187:12:
|
2536
|
+
"src": "3187:12:71",
|
2537
2537
|
"typeDescriptions": {
|
2538
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$
|
2538
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$29698_$returns$_t_uint256_$",
|
2539
2539
|
"typeString": "function (Slice) pure returns (uint256)"
|
2540
2540
|
}
|
2541
2541
|
},
|
2542
|
-
"id":
|
2542
|
+
"id": 29873,
|
2543
2543
|
"isConstant": false,
|
2544
2544
|
"isLValue": false,
|
2545
2545
|
"isPure": false,
|
@@ -2548,7 +2548,7 @@
|
|
2548
2548
|
"nameLocations": [],
|
2549
2549
|
"names": [],
|
2550
2550
|
"nodeType": "FunctionCall",
|
2551
|
-
"src": "3187:18:
|
2551
|
+
"src": "3187:18:71",
|
2552
2552
|
"tryCall": false,
|
2553
2553
|
"typeDescriptions": {
|
2554
2554
|
"typeIdentifier": "t_uint256",
|
@@ -2559,113 +2559,113 @@
|
|
2559
2559
|
"operator": "&",
|
2560
2560
|
"rightExpression": {
|
2561
2561
|
"expression": {
|
2562
|
-
"id":
|
2562
|
+
"id": 29874,
|
2563
2563
|
"name": "SliceLib",
|
2564
2564
|
"nodeType": "Identifier",
|
2565
2565
|
"overloadedDeclarations": [],
|
2566
|
-
"referencedDeclaration":
|
2567
|
-
"src": "3208:8:
|
2566
|
+
"referencedDeclaration": 29843,
|
2567
|
+
"src": "3208:8:71",
|
2568
2568
|
"typeDescriptions": {
|
2569
|
-
"typeIdentifier": "t_type$_t_contract$_SliceLib_$
|
2569
|
+
"typeIdentifier": "t_type$_t_contract$_SliceLib_$29843_$",
|
2570
2570
|
"typeString": "type(library SliceLib)"
|
2571
2571
|
}
|
2572
2572
|
},
|
2573
|
-
"id":
|
2573
|
+
"id": 29875,
|
2574
2574
|
"isConstant": false,
|
2575
2575
|
"isLValue": false,
|
2576
2576
|
"isPure": true,
|
2577
2577
|
"lValueRequested": false,
|
2578
|
-
"memberLocation": "3217:8:
|
2578
|
+
"memberLocation": "3217:8:71",
|
2579
2579
|
"memberName": "MASK_LEN",
|
2580
2580
|
"nodeType": "MemberAccess",
|
2581
|
-
"referencedDeclaration":
|
2582
|
-
"src": "3208:17:
|
2581
|
+
"referencedDeclaration": 29725,
|
2582
|
+
"src": "3208:17:71",
|
2583
2583
|
"typeDescriptions": {
|
2584
2584
|
"typeIdentifier": "t_uint256",
|
2585
2585
|
"typeString": "uint256"
|
2586
2586
|
}
|
2587
2587
|
},
|
2588
|
-
"src": "3187:38:
|
2588
|
+
"src": "3187:38:71",
|
2589
2589
|
"typeDescriptions": {
|
2590
2590
|
"typeIdentifier": "t_uint256",
|
2591
2591
|
"typeString": "uint256"
|
2592
2592
|
}
|
2593
2593
|
},
|
2594
|
-
"functionReturnParameters":
|
2595
|
-
"id":
|
2594
|
+
"functionReturnParameters": 29869,
|
2595
|
+
"id": 29877,
|
2596
2596
|
"nodeType": "Return",
|
2597
|
-
"src": "3180:45:
|
2597
|
+
"src": "3180:45:71"
|
2598
2598
|
}
|
2599
2599
|
]
|
2600
2600
|
},
|
2601
2601
|
"documentation": {
|
2602
|
-
"id":
|
2602
|
+
"id": 29862,
|
2603
2603
|
"nodeType": "StructuredDocumentation",
|
2604
|
-
"src": "2958:153:
|
2604
|
+
"src": "2958:153:71",
|
2605
2605
|
"text": " @notice Returns the slice length in bytes\n @param self The slice whose length needs to be fetched\n @return The length of the slice"
|
2606
2606
|
},
|
2607
2607
|
"implemented": true,
|
2608
2608
|
"kind": "function",
|
2609
2609
|
"modifiers": [],
|
2610
2610
|
"name": "length",
|
2611
|
-
"nameLocation": "3123:6:
|
2611
|
+
"nameLocation": "3123:6:71",
|
2612
2612
|
"parameters": {
|
2613
|
-
"id":
|
2613
|
+
"id": 29866,
|
2614
2614
|
"nodeType": "ParameterList",
|
2615
2615
|
"parameters": [
|
2616
2616
|
{
|
2617
2617
|
"constant": false,
|
2618
|
-
"id":
|
2618
|
+
"id": 29865,
|
2619
2619
|
"mutability": "mutable",
|
2620
2620
|
"name": "self",
|
2621
|
-
"nameLocation": "3136:4:
|
2621
|
+
"nameLocation": "3136:4:71",
|
2622
2622
|
"nodeType": "VariableDeclaration",
|
2623
|
-
"scope":
|
2624
|
-
"src": "3130:10:
|
2623
|
+
"scope": 29879,
|
2624
|
+
"src": "3130:10:71",
|
2625
2625
|
"stateVariable": false,
|
2626
2626
|
"storageLocation": "default",
|
2627
2627
|
"typeDescriptions": {
|
2628
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2628
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2629
2629
|
"typeString": "Slice"
|
2630
2630
|
},
|
2631
2631
|
"typeName": {
|
2632
|
-
"id":
|
2632
|
+
"id": 29864,
|
2633
2633
|
"nodeType": "UserDefinedTypeName",
|
2634
2634
|
"pathNode": {
|
2635
|
-
"id":
|
2635
|
+
"id": 29863,
|
2636
2636
|
"name": "Slice",
|
2637
2637
|
"nameLocations": [
|
2638
|
-
"3130:5:
|
2638
|
+
"3130:5:71"
|
2639
2639
|
],
|
2640
2640
|
"nodeType": "IdentifierPath",
|
2641
|
-
"referencedDeclaration":
|
2642
|
-
"src": "3130:5:
|
2641
|
+
"referencedDeclaration": 29698,
|
2642
|
+
"src": "3130:5:71"
|
2643
2643
|
},
|
2644
|
-
"referencedDeclaration":
|
2645
|
-
"src": "3130:5:
|
2644
|
+
"referencedDeclaration": 29698,
|
2645
|
+
"src": "3130:5:71",
|
2646
2646
|
"typeDescriptions": {
|
2647
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2647
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2648
2648
|
"typeString": "Slice"
|
2649
2649
|
}
|
2650
2650
|
},
|
2651
2651
|
"visibility": "internal"
|
2652
2652
|
}
|
2653
2653
|
],
|
2654
|
-
"src": "3129:12:
|
2654
|
+
"src": "3129:12:71"
|
2655
2655
|
},
|
2656
2656
|
"returnParameters": {
|
2657
|
-
"id":
|
2657
|
+
"id": 29869,
|
2658
2658
|
"nodeType": "ParameterList",
|
2659
2659
|
"parameters": [
|
2660
2660
|
{
|
2661
2661
|
"constant": false,
|
2662
|
-
"id":
|
2662
|
+
"id": 29868,
|
2663
2663
|
"mutability": "mutable",
|
2664
2664
|
"name": "",
|
2665
2665
|
"nameLocation": "-1:-1:-1",
|
2666
2666
|
"nodeType": "VariableDeclaration",
|
2667
|
-
"scope":
|
2668
|
-
"src": "3165:7:
|
2667
|
+
"scope": 29879,
|
2668
|
+
"src": "3165:7:71",
|
2669
2669
|
"stateVariable": false,
|
2670
2670
|
"storageLocation": "default",
|
2671
2671
|
"typeDescriptions": {
|
@@ -2673,10 +2673,10 @@
|
|
2673
2673
|
"typeString": "uint256"
|
2674
2674
|
},
|
2675
2675
|
"typeName": {
|
2676
|
-
"id":
|
2676
|
+
"id": 29867,
|
2677
2677
|
"name": "uint256",
|
2678
2678
|
"nodeType": "ElementaryTypeName",
|
2679
|
-
"src": "3165:7:
|
2679
|
+
"src": "3165:7:71",
|
2680
2680
|
"typeDescriptions": {
|
2681
2681
|
"typeIdentifier": "t_uint256",
|
2682
2682
|
"typeString": "uint256"
|
@@ -2685,38 +2685,38 @@
|
|
2685
2685
|
"visibility": "internal"
|
2686
2686
|
}
|
2687
2687
|
],
|
2688
|
-
"src": "3164:9:
|
2688
|
+
"src": "3164:9:71"
|
2689
2689
|
},
|
2690
|
-
"scope":
|
2690
|
+
"scope": 29940,
|
2691
2691
|
"stateMutability": "pure",
|
2692
2692
|
"virtual": false,
|
2693
2693
|
"visibility": "internal"
|
2694
2694
|
},
|
2695
2695
|
{
|
2696
|
-
"id":
|
2696
|
+
"id": 29920,
|
2697
2697
|
"nodeType": "FunctionDefinition",
|
2698
|
-
"src": "3494:416:
|
2698
|
+
"src": "3494:416:71",
|
2699
2699
|
"nodes": [],
|
2700
2700
|
"body": {
|
2701
|
-
"id":
|
2701
|
+
"id": 29919,
|
2702
2702
|
"nodeType": "Block",
|
2703
|
-
"src": "3565:345:
|
2703
|
+
"src": "3565:345:71",
|
2704
2704
|
"nodes": [],
|
2705
2705
|
"statements": [
|
2706
2706
|
{
|
2707
2707
|
"assignments": [
|
2708
|
-
|
2708
|
+
29889
|
2709
2709
|
],
|
2710
2710
|
"declarations": [
|
2711
2711
|
{
|
2712
2712
|
"constant": false,
|
2713
|
-
"id":
|
2713
|
+
"id": 29889,
|
2714
2714
|
"mutability": "mutable",
|
2715
2715
|
"name": "fromPointer",
|
2716
|
-
"nameLocation": "3579:11:
|
2716
|
+
"nameLocation": "3579:11:71",
|
2717
2717
|
"nodeType": "VariableDeclaration",
|
2718
|
-
"scope":
|
2719
|
-
"src": "3571:19:
|
2718
|
+
"scope": 29919,
|
2719
|
+
"src": "3571:19:71",
|
2720
2720
|
"stateVariable": false,
|
2721
2721
|
"storageLocation": "default",
|
2722
2722
|
"typeDescriptions": {
|
@@ -2724,10 +2724,10 @@
|
|
2724
2724
|
"typeString": "uint256"
|
2725
2725
|
},
|
2726
2726
|
"typeName": {
|
2727
|
-
"id":
|
2727
|
+
"id": 29888,
|
2728
2728
|
"name": "uint256",
|
2729
2729
|
"nodeType": "ElementaryTypeName",
|
2730
|
-
"src": "3571:7:
|
2730
|
+
"src": "3571:7:71",
|
2731
2731
|
"typeDescriptions": {
|
2732
2732
|
"typeIdentifier": "t_uint256",
|
2733
2733
|
"typeString": "uint256"
|
@@ -2736,18 +2736,18 @@
|
|
2736
2736
|
"visibility": "internal"
|
2737
2737
|
}
|
2738
2738
|
],
|
2739
|
-
"id":
|
2739
|
+
"id": 29893,
|
2740
2740
|
"initialValue": {
|
2741
2741
|
"arguments": [
|
2742
2742
|
{
|
2743
|
-
"id":
|
2743
|
+
"id": 29891,
|
2744
2744
|
"name": "self",
|
2745
2745
|
"nodeType": "Identifier",
|
2746
2746
|
"overloadedDeclarations": [],
|
2747
|
-
"referencedDeclaration":
|
2748
|
-
"src": "3601:4:
|
2747
|
+
"referencedDeclaration": 29883,
|
2748
|
+
"src": "3601:4:71",
|
2749
2749
|
"typeDescriptions": {
|
2750
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2750
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2751
2751
|
"typeString": "Slice"
|
2752
2752
|
}
|
2753
2753
|
}
|
@@ -2755,22 +2755,22 @@
|
|
2755
2755
|
"expression": {
|
2756
2756
|
"argumentTypes": [
|
2757
2757
|
{
|
2758
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2758
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2759
2759
|
"typeString": "Slice"
|
2760
2760
|
}
|
2761
2761
|
],
|
2762
|
-
"id":
|
2762
|
+
"id": 29890,
|
2763
2763
|
"name": "pointer",
|
2764
2764
|
"nodeType": "Identifier",
|
2765
2765
|
"overloadedDeclarations": [],
|
2766
|
-
"referencedDeclaration":
|
2767
|
-
"src": "3593:7:
|
2766
|
+
"referencedDeclaration": 29861,
|
2767
|
+
"src": "3593:7:71",
|
2768
2768
|
"typeDescriptions": {
|
2769
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
2769
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$29698_$returns$_t_uint256_$",
|
2770
2770
|
"typeString": "function (Slice) pure returns (uint256)"
|
2771
2771
|
}
|
2772
2772
|
},
|
2773
|
-
"id":
|
2773
|
+
"id": 29892,
|
2774
2774
|
"isConstant": false,
|
2775
2775
|
"isLValue": false,
|
2776
2776
|
"isPure": false,
|
@@ -2779,7 +2779,7 @@
|
|
2779
2779
|
"nameLocations": [],
|
2780
2780
|
"names": [],
|
2781
2781
|
"nodeType": "FunctionCall",
|
2782
|
-
"src": "3593:13:
|
2782
|
+
"src": "3593:13:71",
|
2783
2783
|
"tryCall": false,
|
2784
2784
|
"typeDescriptions": {
|
2785
2785
|
"typeIdentifier": "t_uint256",
|
@@ -2787,22 +2787,22 @@
|
|
2787
2787
|
}
|
2788
2788
|
},
|
2789
2789
|
"nodeType": "VariableDeclarationStatement",
|
2790
|
-
"src": "3571:35:
|
2790
|
+
"src": "3571:35:71"
|
2791
2791
|
},
|
2792
2792
|
{
|
2793
2793
|
"assignments": [
|
2794
|
-
|
2794
|
+
29895
|
2795
2795
|
],
|
2796
2796
|
"declarations": [
|
2797
2797
|
{
|
2798
2798
|
"constant": false,
|
2799
|
-
"id":
|
2799
|
+
"id": 29895,
|
2800
2800
|
"mutability": "mutable",
|
2801
2801
|
"name": "_length",
|
2802
|
-
"nameLocation": "3620:7:
|
2802
|
+
"nameLocation": "3620:7:71",
|
2803
2803
|
"nodeType": "VariableDeclaration",
|
2804
|
-
"scope":
|
2805
|
-
"src": "3612:15:
|
2804
|
+
"scope": 29919,
|
2805
|
+
"src": "3612:15:71",
|
2806
2806
|
"stateVariable": false,
|
2807
2807
|
"storageLocation": "default",
|
2808
2808
|
"typeDescriptions": {
|
@@ -2810,10 +2810,10 @@
|
|
2810
2810
|
"typeString": "uint256"
|
2811
2811
|
},
|
2812
2812
|
"typeName": {
|
2813
|
-
"id":
|
2813
|
+
"id": 29894,
|
2814
2814
|
"name": "uint256",
|
2815
2815
|
"nodeType": "ElementaryTypeName",
|
2816
|
-
"src": "3612:7:
|
2816
|
+
"src": "3612:7:71",
|
2817
2817
|
"typeDescriptions": {
|
2818
2818
|
"typeIdentifier": "t_uint256",
|
2819
2819
|
"typeString": "uint256"
|
@@ -2822,18 +2822,18 @@
|
|
2822
2822
|
"visibility": "internal"
|
2823
2823
|
}
|
2824
2824
|
],
|
2825
|
-
"id":
|
2825
|
+
"id": 29899,
|
2826
2826
|
"initialValue": {
|
2827
2827
|
"arguments": [
|
2828
2828
|
{
|
2829
|
-
"id":
|
2829
|
+
"id": 29897,
|
2830
2830
|
"name": "self",
|
2831
2831
|
"nodeType": "Identifier",
|
2832
2832
|
"overloadedDeclarations": [],
|
2833
|
-
"referencedDeclaration":
|
2834
|
-
"src": "3637:4:
|
2833
|
+
"referencedDeclaration": 29883,
|
2834
|
+
"src": "3637:4:71",
|
2835
2835
|
"typeDescriptions": {
|
2836
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2836
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2837
2837
|
"typeString": "Slice"
|
2838
2838
|
}
|
2839
2839
|
}
|
@@ -2841,22 +2841,22 @@
|
|
2841
2841
|
"expression": {
|
2842
2842
|
"argumentTypes": [
|
2843
2843
|
{
|
2844
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
2844
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
2845
2845
|
"typeString": "Slice"
|
2846
2846
|
}
|
2847
2847
|
],
|
2848
|
-
"id":
|
2848
|
+
"id": 29896,
|
2849
2849
|
"name": "length",
|
2850
2850
|
"nodeType": "Identifier",
|
2851
2851
|
"overloadedDeclarations": [],
|
2852
|
-
"referencedDeclaration":
|
2853
|
-
"src": "3630:6:
|
2852
|
+
"referencedDeclaration": 29879,
|
2853
|
+
"src": "3630:6:71",
|
2854
2854
|
"typeDescriptions": {
|
2855
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
2855
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$29698_$returns$_t_uint256_$",
|
2856
2856
|
"typeString": "function (Slice) pure returns (uint256)"
|
2857
2857
|
}
|
2858
2858
|
},
|
2859
|
-
"id":
|
2859
|
+
"id": 29898,
|
2860
2860
|
"isConstant": false,
|
2861
2861
|
"isLValue": false,
|
2862
2862
|
"isPure": false,
|
@@ -2865,7 +2865,7 @@
|
|
2865
2865
|
"nameLocations": [],
|
2866
2866
|
"names": [],
|
2867
2867
|
"nodeType": "FunctionCall",
|
2868
|
-
"src": "3630:12:
|
2868
|
+
"src": "3630:12:71",
|
2869
2869
|
"tryCall": false,
|
2870
2870
|
"typeDescriptions": {
|
2871
2871
|
"typeIdentifier": "t_uint256",
|
@@ -2873,22 +2873,22 @@
|
|
2873
2873
|
}
|
2874
2874
|
},
|
2875
2875
|
"nodeType": "VariableDeclarationStatement",
|
2876
|
-
"src": "3612:30:
|
2876
|
+
"src": "3612:30:71"
|
2877
2877
|
},
|
2878
2878
|
{
|
2879
2879
|
"expression": {
|
2880
|
-
"id":
|
2880
|
+
"id": 29905,
|
2881
2881
|
"isConstant": false,
|
2882
2882
|
"isLValue": false,
|
2883
2883
|
"isPure": false,
|
2884
2884
|
"lValueRequested": false,
|
2885
2885
|
"leftHandSide": {
|
2886
|
-
"id":
|
2886
|
+
"id": 29900,
|
2887
2887
|
"name": "data",
|
2888
2888
|
"nodeType": "Identifier",
|
2889
2889
|
"overloadedDeclarations": [],
|
2890
|
-
"referencedDeclaration":
|
2891
|
-
"src": "3709:4:
|
2890
|
+
"referencedDeclaration": 29886,
|
2891
|
+
"src": "3709:4:71",
|
2892
2892
|
"typeDescriptions": {
|
2893
2893
|
"typeIdentifier": "t_bytes_memory_ptr",
|
2894
2894
|
"typeString": "bytes memory"
|
@@ -2899,12 +2899,12 @@
|
|
2899
2899
|
"rightHandSide": {
|
2900
2900
|
"arguments": [
|
2901
2901
|
{
|
2902
|
-
"id":
|
2902
|
+
"id": 29903,
|
2903
2903
|
"name": "_length",
|
2904
2904
|
"nodeType": "Identifier",
|
2905
2905
|
"overloadedDeclarations": [],
|
2906
|
-
"referencedDeclaration":
|
2907
|
-
"src": "3726:7:
|
2906
|
+
"referencedDeclaration": 29895,
|
2907
|
+
"src": "3726:7:71",
|
2908
2908
|
"typeDescriptions": {
|
2909
2909
|
"typeIdentifier": "t_uint256",
|
2910
2910
|
"typeString": "uint256"
|
@@ -2918,29 +2918,29 @@
|
|
2918
2918
|
"typeString": "uint256"
|
2919
2919
|
}
|
2920
2920
|
],
|
2921
|
-
"id":
|
2921
|
+
"id": 29902,
|
2922
2922
|
"isConstant": false,
|
2923
2923
|
"isLValue": false,
|
2924
2924
|
"isPure": true,
|
2925
2925
|
"lValueRequested": false,
|
2926
2926
|
"nodeType": "NewExpression",
|
2927
|
-
"src": "3716:9:
|
2927
|
+
"src": "3716:9:71",
|
2928
2928
|
"typeDescriptions": {
|
2929
2929
|
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_ptr_$",
|
2930
2930
|
"typeString": "function (uint256) pure returns (bytes memory)"
|
2931
2931
|
},
|
2932
2932
|
"typeName": {
|
2933
|
-
"id":
|
2933
|
+
"id": 29901,
|
2934
2934
|
"name": "bytes",
|
2935
2935
|
"nodeType": "ElementaryTypeName",
|
2936
|
-
"src": "3720:5:
|
2936
|
+
"src": "3720:5:71",
|
2937
2937
|
"typeDescriptions": {
|
2938
2938
|
"typeIdentifier": "t_bytes_storage_ptr",
|
2939
2939
|
"typeString": "bytes"
|
2940
2940
|
}
|
2941
2941
|
}
|
2942
2942
|
},
|
2943
|
-
"id":
|
2943
|
+
"id": 29904,
|
2944
2944
|
"isConstant": false,
|
2945
2945
|
"isLValue": false,
|
2946
2946
|
"isPure": false,
|
@@ -2949,37 +2949,37 @@
|
|
2949
2949
|
"nameLocations": [],
|
2950
2950
|
"names": [],
|
2951
2951
|
"nodeType": "FunctionCall",
|
2952
|
-
"src": "3716:18:
|
2952
|
+
"src": "3716:18:71",
|
2953
2953
|
"tryCall": false,
|
2954
2954
|
"typeDescriptions": {
|
2955
2955
|
"typeIdentifier": "t_bytes_memory_ptr",
|
2956
2956
|
"typeString": "bytes memory"
|
2957
2957
|
}
|
2958
2958
|
},
|
2959
|
-
"src": "3709:25:
|
2959
|
+
"src": "3709:25:71",
|
2960
2960
|
"typeDescriptions": {
|
2961
2961
|
"typeIdentifier": "t_bytes_memory_ptr",
|
2962
2962
|
"typeString": "bytes memory"
|
2963
2963
|
}
|
2964
2964
|
},
|
2965
|
-
"id":
|
2965
|
+
"id": 29906,
|
2966
2966
|
"nodeType": "ExpressionStatement",
|
2967
|
-
"src": "3709:25:
|
2967
|
+
"src": "3709:25:71"
|
2968
2968
|
},
|
2969
2969
|
{
|
2970
2970
|
"assignments": [
|
2971
|
-
|
2971
|
+
29908
|
2972
2972
|
],
|
2973
2973
|
"declarations": [
|
2974
2974
|
{
|
2975
2975
|
"constant": false,
|
2976
|
-
"id":
|
2976
|
+
"id": 29908,
|
2977
2977
|
"mutability": "mutable",
|
2978
2978
|
"name": "toPointer",
|
2979
|
-
"nameLocation": "3748:9:
|
2979
|
+
"nameLocation": "3748:9:71",
|
2980
2980
|
"nodeType": "VariableDeclaration",
|
2981
|
-
"scope":
|
2982
|
-
"src": "3740:17:
|
2981
|
+
"scope": 29919,
|
2982
|
+
"src": "3740:17:71",
|
2983
2983
|
"stateVariable": false,
|
2984
2984
|
"storageLocation": "default",
|
2985
2985
|
"typeDescriptions": {
|
@@ -2987,10 +2987,10 @@
|
|
2987
2987
|
"typeString": "uint256"
|
2988
2988
|
},
|
2989
2989
|
"typeName": {
|
2990
|
-
"id":
|
2990
|
+
"id": 29907,
|
2991
2991
|
"name": "uint256",
|
2992
2992
|
"nodeType": "ElementaryTypeName",
|
2993
|
-
"src": "3740:7:
|
2993
|
+
"src": "3740:7:71",
|
2994
2994
|
"typeDescriptions": {
|
2995
2995
|
"typeIdentifier": "t_uint256",
|
2996
2996
|
"typeString": "uint256"
|
@@ -2999,53 +2999,53 @@
|
|
2999
2999
|
"visibility": "internal"
|
3000
3000
|
}
|
3001
3001
|
],
|
3002
|
-
"id":
|
3002
|
+
"id": 29909,
|
3003
3003
|
"nodeType": "VariableDeclarationStatement",
|
3004
|
-
"src": "3740:17:
|
3004
|
+
"src": "3740:17:71"
|
3005
3005
|
},
|
3006
3006
|
{
|
3007
3007
|
"AST": {
|
3008
|
-
"nativeSrc": "3772:40:
|
3008
|
+
"nativeSrc": "3772:40:71",
|
3009
3009
|
"nodeType": "YulBlock",
|
3010
|
-
"src": "3772:40:
|
3010
|
+
"src": "3772:40:71",
|
3011
3011
|
"statements": [
|
3012
3012
|
{
|
3013
|
-
"nativeSrc": "3780:26:
|
3013
|
+
"nativeSrc": "3780:26:71",
|
3014
3014
|
"nodeType": "YulAssignment",
|
3015
|
-
"src": "3780:26:
|
3015
|
+
"src": "3780:26:71",
|
3016
3016
|
"value": {
|
3017
3017
|
"arguments": [
|
3018
3018
|
{
|
3019
3019
|
"name": "data",
|
3020
|
-
"nativeSrc": "3797:4:
|
3020
|
+
"nativeSrc": "3797:4:71",
|
3021
3021
|
"nodeType": "YulIdentifier",
|
3022
|
-
"src": "3797:4:
|
3022
|
+
"src": "3797:4:71"
|
3023
3023
|
},
|
3024
3024
|
{
|
3025
3025
|
"kind": "number",
|
3026
|
-
"nativeSrc": "3803:2:
|
3026
|
+
"nativeSrc": "3803:2:71",
|
3027
3027
|
"nodeType": "YulLiteral",
|
3028
|
-
"src": "3803:2:
|
3028
|
+
"src": "3803:2:71",
|
3029
3029
|
"type": "",
|
3030
3030
|
"value": "32"
|
3031
3031
|
}
|
3032
3032
|
],
|
3033
3033
|
"functionName": {
|
3034
3034
|
"name": "add",
|
3035
|
-
"nativeSrc": "3793:3:
|
3035
|
+
"nativeSrc": "3793:3:71",
|
3036
3036
|
"nodeType": "YulIdentifier",
|
3037
|
-
"src": "3793:3:
|
3037
|
+
"src": "3793:3:71"
|
3038
3038
|
},
|
3039
|
-
"nativeSrc": "3793:13:
|
3039
|
+
"nativeSrc": "3793:13:71",
|
3040
3040
|
"nodeType": "YulFunctionCall",
|
3041
|
-
"src": "3793:13:
|
3041
|
+
"src": "3793:13:71"
|
3042
3042
|
},
|
3043
3043
|
"variableNames": [
|
3044
3044
|
{
|
3045
3045
|
"name": "toPointer",
|
3046
|
-
"nativeSrc": "3780:9:
|
3046
|
+
"nativeSrc": "3780:9:71",
|
3047
3047
|
"nodeType": "YulIdentifier",
|
3048
|
-
"src": "3780:9:
|
3048
|
+
"src": "3780:9:71"
|
3049
3049
|
}
|
3050
3050
|
]
|
3051
3051
|
}
|
@@ -3054,58 +3054,58 @@
|
|
3054
3054
|
"evmVersion": "paris",
|
3055
3055
|
"externalReferences": [
|
3056
3056
|
{
|
3057
|
-
"declaration":
|
3057
|
+
"declaration": 29886,
|
3058
3058
|
"isOffset": false,
|
3059
3059
|
"isSlot": false,
|
3060
|
-
"src": "3797:4:
|
3060
|
+
"src": "3797:4:71",
|
3061
3061
|
"valueSize": 1
|
3062
3062
|
},
|
3063
3063
|
{
|
3064
|
-
"declaration":
|
3064
|
+
"declaration": 29908,
|
3065
3065
|
"isOffset": false,
|
3066
3066
|
"isSlot": false,
|
3067
|
-
"src": "3780:9:
|
3067
|
+
"src": "3780:9:71",
|
3068
3068
|
"valueSize": 1
|
3069
3069
|
}
|
3070
3070
|
],
|
3071
|
-
"id":
|
3071
|
+
"id": 29910,
|
3072
3072
|
"nodeType": "InlineAssembly",
|
3073
|
-
"src": "3763:49:
|
3073
|
+
"src": "3763:49:71"
|
3074
3074
|
},
|
3075
3075
|
{
|
3076
3076
|
"expression": {
|
3077
3077
|
"arguments": [
|
3078
3078
|
{
|
3079
|
-
"id":
|
3079
|
+
"id": 29914,
|
3080
3080
|
"name": "fromPointer",
|
3081
3081
|
"nodeType": "Identifier",
|
3082
3082
|
"overloadedDeclarations": [],
|
3083
|
-
"referencedDeclaration":
|
3084
|
-
"src": "3873:11:
|
3083
|
+
"referencedDeclaration": 29889,
|
3084
|
+
"src": "3873:11:71",
|
3085
3085
|
"typeDescriptions": {
|
3086
3086
|
"typeIdentifier": "t_uint256",
|
3087
3087
|
"typeString": "uint256"
|
3088
3088
|
}
|
3089
3089
|
},
|
3090
3090
|
{
|
3091
|
-
"id":
|
3091
|
+
"id": 29915,
|
3092
3092
|
"name": "toPointer",
|
3093
3093
|
"nodeType": "Identifier",
|
3094
3094
|
"overloadedDeclarations": [],
|
3095
|
-
"referencedDeclaration":
|
3096
|
-
"src": "3886:9:
|
3095
|
+
"referencedDeclaration": 29908,
|
3096
|
+
"src": "3886:9:71",
|
3097
3097
|
"typeDescriptions": {
|
3098
3098
|
"typeIdentifier": "t_uint256",
|
3099
3099
|
"typeString": "uint256"
|
3100
3100
|
}
|
3101
3101
|
},
|
3102
3102
|
{
|
3103
|
-
"id":
|
3103
|
+
"id": 29916,
|
3104
3104
|
"name": "_length",
|
3105
3105
|
"nodeType": "Identifier",
|
3106
3106
|
"overloadedDeclarations": [],
|
3107
|
-
"referencedDeclaration":
|
3108
|
-
"src": "3897:7:
|
3107
|
+
"referencedDeclaration": 29895,
|
3108
|
+
"src": "3897:7:71",
|
3109
3109
|
"typeDescriptions": {
|
3110
3110
|
"typeIdentifier": "t_uint256",
|
3111
3111
|
"typeString": "uint256"
|
@@ -3128,33 +3128,33 @@
|
|
3128
3128
|
}
|
3129
3129
|
],
|
3130
3130
|
"expression": {
|
3131
|
-
"id":
|
3131
|
+
"id": 29911,
|
3132
3132
|
"name": "Memory",
|
3133
3133
|
"nodeType": "Identifier",
|
3134
3134
|
"overloadedDeclarations": [],
|
3135
|
-
"referencedDeclaration":
|
3136
|
-
"src": "3861:6:
|
3135
|
+
"referencedDeclaration": 28508,
|
3136
|
+
"src": "3861:6:71",
|
3137
3137
|
"typeDescriptions": {
|
3138
|
-
"typeIdentifier": "t_type$_t_contract$_Memory_$
|
3138
|
+
"typeIdentifier": "t_type$_t_contract$_Memory_$28508_$",
|
3139
3139
|
"typeString": "type(library Memory)"
|
3140
3140
|
}
|
3141
3141
|
},
|
3142
|
-
"id":
|
3142
|
+
"id": 29913,
|
3143
3143
|
"isConstant": false,
|
3144
3144
|
"isLValue": false,
|
3145
3145
|
"isPure": false,
|
3146
3146
|
"lValueRequested": false,
|
3147
|
-
"memberLocation": "3868:4:
|
3147
|
+
"memberLocation": "3868:4:71",
|
3148
3148
|
"memberName": "copy",
|
3149
3149
|
"nodeType": "MemberAccess",
|
3150
|
-
"referencedDeclaration":
|
3151
|
-
"src": "3861:11:
|
3150
|
+
"referencedDeclaration": 28507,
|
3151
|
+
"src": "3861:11:71",
|
3152
3152
|
"typeDescriptions": {
|
3153
3153
|
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
|
3154
3154
|
"typeString": "function (uint256,uint256,uint256) pure"
|
3155
3155
|
}
|
3156
3156
|
},
|
3157
|
-
"id":
|
3157
|
+
"id": 29917,
|
3158
3158
|
"isConstant": false,
|
3159
3159
|
"isLValue": false,
|
3160
3160
|
"isPure": false,
|
@@ -3163,87 +3163,87 @@
|
|
3163
3163
|
"nameLocations": [],
|
3164
3164
|
"names": [],
|
3165
3165
|
"nodeType": "FunctionCall",
|
3166
|
-
"src": "3861:44:
|
3166
|
+
"src": "3861:44:71",
|
3167
3167
|
"tryCall": false,
|
3168
3168
|
"typeDescriptions": {
|
3169
3169
|
"typeIdentifier": "t_tuple$__$",
|
3170
3170
|
"typeString": "tuple()"
|
3171
3171
|
}
|
3172
3172
|
},
|
3173
|
-
"id":
|
3173
|
+
"id": 29918,
|
3174
3174
|
"nodeType": "ExpressionStatement",
|
3175
|
-
"src": "3861:44:
|
3175
|
+
"src": "3861:44:71"
|
3176
3176
|
}
|
3177
3177
|
]
|
3178
3178
|
},
|
3179
3179
|
"documentation": {
|
3180
|
-
"id":
|
3180
|
+
"id": 29880,
|
3181
3181
|
"nodeType": "StructuredDocumentation",
|
3182
|
-
"src": "3234:257:
|
3182
|
+
"src": "3234:257:71",
|
3183
3183
|
"text": " @notice Converts a Slice to bytes\n @dev This function internally manages the conversion of a slice into a bytes format.\n @param self The Slice to be converted to bytes.\n @return data The bytes representation of the provided Slice."
|
3184
3184
|
},
|
3185
3185
|
"implemented": true,
|
3186
3186
|
"kind": "function",
|
3187
3187
|
"modifiers": [],
|
3188
3188
|
"name": "toBytes",
|
3189
|
-
"nameLocation": "3503:7:
|
3189
|
+
"nameLocation": "3503:7:71",
|
3190
3190
|
"parameters": {
|
3191
|
-
"id":
|
3191
|
+
"id": 29884,
|
3192
3192
|
"nodeType": "ParameterList",
|
3193
3193
|
"parameters": [
|
3194
3194
|
{
|
3195
3195
|
"constant": false,
|
3196
|
-
"id":
|
3196
|
+
"id": 29883,
|
3197
3197
|
"mutability": "mutable",
|
3198
3198
|
"name": "self",
|
3199
|
-
"nameLocation": "3517:4:
|
3199
|
+
"nameLocation": "3517:4:71",
|
3200
3200
|
"nodeType": "VariableDeclaration",
|
3201
|
-
"scope":
|
3202
|
-
"src": "3511:10:
|
3201
|
+
"scope": 29920,
|
3202
|
+
"src": "3511:10:71",
|
3203
3203
|
"stateVariable": false,
|
3204
3204
|
"storageLocation": "default",
|
3205
3205
|
"typeDescriptions": {
|
3206
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
3206
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
3207
3207
|
"typeString": "Slice"
|
3208
3208
|
},
|
3209
3209
|
"typeName": {
|
3210
|
-
"id":
|
3210
|
+
"id": 29882,
|
3211
3211
|
"nodeType": "UserDefinedTypeName",
|
3212
3212
|
"pathNode": {
|
3213
|
-
"id":
|
3213
|
+
"id": 29881,
|
3214
3214
|
"name": "Slice",
|
3215
3215
|
"nameLocations": [
|
3216
|
-
"3511:5:
|
3216
|
+
"3511:5:71"
|
3217
3217
|
],
|
3218
3218
|
"nodeType": "IdentifierPath",
|
3219
|
-
"referencedDeclaration":
|
3220
|
-
"src": "3511:5:
|
3219
|
+
"referencedDeclaration": 29698,
|
3220
|
+
"src": "3511:5:71"
|
3221
3221
|
},
|
3222
|
-
"referencedDeclaration":
|
3223
|
-
"src": "3511:5:
|
3222
|
+
"referencedDeclaration": 29698,
|
3223
|
+
"src": "3511:5:71",
|
3224
3224
|
"typeDescriptions": {
|
3225
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
3225
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
3226
3226
|
"typeString": "Slice"
|
3227
3227
|
}
|
3228
3228
|
},
|
3229
3229
|
"visibility": "internal"
|
3230
3230
|
}
|
3231
3231
|
],
|
3232
|
-
"src": "3510:12:
|
3232
|
+
"src": "3510:12:71"
|
3233
3233
|
},
|
3234
3234
|
"returnParameters": {
|
3235
|
-
"id":
|
3235
|
+
"id": 29887,
|
3236
3236
|
"nodeType": "ParameterList",
|
3237
3237
|
"parameters": [
|
3238
3238
|
{
|
3239
3239
|
"constant": false,
|
3240
|
-
"id":
|
3240
|
+
"id": 29886,
|
3241
3241
|
"mutability": "mutable",
|
3242
3242
|
"name": "data",
|
3243
|
-
"nameLocation": "3559:4:
|
3243
|
+
"nameLocation": "3559:4:71",
|
3244
3244
|
"nodeType": "VariableDeclaration",
|
3245
|
-
"scope":
|
3246
|
-
"src": "3546:17:
|
3245
|
+
"scope": 29920,
|
3246
|
+
"src": "3546:17:71",
|
3247
3247
|
"stateVariable": false,
|
3248
3248
|
"storageLocation": "memory",
|
3249
3249
|
"typeDescriptions": {
|
@@ -3251,10 +3251,10 @@
|
|
3251
3251
|
"typeString": "bytes"
|
3252
3252
|
},
|
3253
3253
|
"typeName": {
|
3254
|
-
"id":
|
3254
|
+
"id": 29885,
|
3255
3255
|
"name": "bytes",
|
3256
3256
|
"nodeType": "ElementaryTypeName",
|
3257
|
-
"src": "3546:5:
|
3257
|
+
"src": "3546:5:71",
|
3258
3258
|
"typeDescriptions": {
|
3259
3259
|
"typeIdentifier": "t_bytes_storage_ptr",
|
3260
3260
|
"typeString": "bytes"
|
@@ -3263,38 +3263,38 @@
|
|
3263
3263
|
"visibility": "internal"
|
3264
3264
|
}
|
3265
3265
|
],
|
3266
|
-
"src": "3545:19:
|
3266
|
+
"src": "3545:19:71"
|
3267
3267
|
},
|
3268
|
-
"scope":
|
3268
|
+
"scope": 29940,
|
3269
3269
|
"stateMutability": "pure",
|
3270
3270
|
"virtual": false,
|
3271
3271
|
"visibility": "internal"
|
3272
3272
|
},
|
3273
3273
|
{
|
3274
|
-
"id":
|
3274
|
+
"id": 29939,
|
3275
3275
|
"nodeType": "FunctionDefinition",
|
3276
|
-
"src": "4203:235:
|
3276
|
+
"src": "4203:235:71",
|
3277
3277
|
"nodes": [],
|
3278
3278
|
"body": {
|
3279
|
-
"id":
|
3279
|
+
"id": 29938,
|
3280
3280
|
"nodeType": "Block",
|
3281
|
-
"src": "4273:165:
|
3281
|
+
"src": "4273:165:71",
|
3282
3282
|
"nodes": [],
|
3283
3283
|
"statements": [
|
3284
3284
|
{
|
3285
3285
|
"assignments": [
|
3286
|
-
|
3286
|
+
29930
|
3287
3287
|
],
|
3288
3288
|
"declarations": [
|
3289
3289
|
{
|
3290
3290
|
"constant": false,
|
3291
|
-
"id":
|
3291
|
+
"id": 29930,
|
3292
3292
|
"mutability": "mutable",
|
3293
3293
|
"name": "memoryPointer",
|
3294
|
-
"nameLocation": "4287:13:
|
3294
|
+
"nameLocation": "4287:13:71",
|
3295
3295
|
"nodeType": "VariableDeclaration",
|
3296
|
-
"scope":
|
3297
|
-
"src": "4279:21:
|
3296
|
+
"scope": 29938,
|
3297
|
+
"src": "4279:21:71",
|
3298
3298
|
"stateVariable": false,
|
3299
3299
|
"storageLocation": "default",
|
3300
3300
|
"typeDescriptions": {
|
@@ -3302,10 +3302,10 @@
|
|
3302
3302
|
"typeString": "uint256"
|
3303
3303
|
},
|
3304
3304
|
"typeName": {
|
3305
|
-
"id":
|
3305
|
+
"id": 29929,
|
3306
3306
|
"name": "uint256",
|
3307
3307
|
"nodeType": "ElementaryTypeName",
|
3308
|
-
"src": "4279:7:
|
3308
|
+
"src": "4279:7:71",
|
3309
3309
|
"typeDescriptions": {
|
3310
3310
|
"typeIdentifier": "t_uint256",
|
3311
3311
|
"typeString": "uint256"
|
@@ -3314,39 +3314,39 @@
|
|
3314
3314
|
"visibility": "internal"
|
3315
3315
|
}
|
3316
3316
|
],
|
3317
|
-
"id":
|
3317
|
+
"id": 29934,
|
3318
3318
|
"initialValue": {
|
3319
3319
|
"arguments": [],
|
3320
3320
|
"expression": {
|
3321
3321
|
"argumentTypes": [],
|
3322
3322
|
"expression": {
|
3323
|
-
"id":
|
3323
|
+
"id": 29931,
|
3324
3324
|
"name": "self",
|
3325
3325
|
"nodeType": "Identifier",
|
3326
3326
|
"overloadedDeclarations": [],
|
3327
|
-
"referencedDeclaration":
|
3328
|
-
"src": "4303:4:
|
3327
|
+
"referencedDeclaration": 29924,
|
3328
|
+
"src": "4303:4:71",
|
3329
3329
|
"typeDescriptions": {
|
3330
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
3330
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
3331
3331
|
"typeString": "Slice"
|
3332
3332
|
}
|
3333
3333
|
},
|
3334
|
-
"id":
|
3334
|
+
"id": 29932,
|
3335
3335
|
"isConstant": false,
|
3336
3336
|
"isLValue": false,
|
3337
3337
|
"isPure": false,
|
3338
3338
|
"lValueRequested": false,
|
3339
|
-
"memberLocation": "4308:7:
|
3339
|
+
"memberLocation": "4308:7:71",
|
3340
3340
|
"memberName": "pointer",
|
3341
3341
|
"nodeType": "MemberAccess",
|
3342
|
-
"referencedDeclaration":
|
3343
|
-
"src": "4303:12:
|
3342
|
+
"referencedDeclaration": 29861,
|
3343
|
+
"src": "4303:12:71",
|
3344
3344
|
"typeDescriptions": {
|
3345
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$
|
3345
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$29698_$returns$_t_uint256_$attached_to$_t_userDefinedValueType$_Slice_$29698_$",
|
3346
3346
|
"typeString": "function (Slice) pure returns (uint256)"
|
3347
3347
|
}
|
3348
3348
|
},
|
3349
|
-
"id":
|
3349
|
+
"id": 29933,
|
3350
3350
|
"isConstant": false,
|
3351
3351
|
"isLValue": false,
|
3352
3352
|
"isPure": false,
|
@@ -3355,7 +3355,7 @@
|
|
3355
3355
|
"nameLocations": [],
|
3356
3356
|
"names": [],
|
3357
3357
|
"nodeType": "FunctionCall",
|
3358
|
-
"src": "4303:14:
|
3358
|
+
"src": "4303:14:71",
|
3359
3359
|
"tryCall": false,
|
3360
3360
|
"typeDescriptions": {
|
3361
3361
|
"typeIdentifier": "t_uint256",
|
@@ -3363,43 +3363,43 @@
|
|
3363
3363
|
}
|
3364
3364
|
},
|
3365
3365
|
"nodeType": "VariableDeclarationStatement",
|
3366
|
-
"src": "4279:38:
|
3366
|
+
"src": "4279:38:71"
|
3367
3367
|
},
|
3368
3368
|
{
|
3369
3369
|
"AST": {
|
3370
|
-
"nativeSrc": "4371:44:
|
3370
|
+
"nativeSrc": "4371:44:71",
|
3371
3371
|
"nodeType": "YulBlock",
|
3372
|
-
"src": "4371:44:
|
3372
|
+
"src": "4371:44:71",
|
3373
3373
|
"statements": [
|
3374
3374
|
{
|
3375
|
-
"nativeSrc": "4379:30:
|
3375
|
+
"nativeSrc": "4379:30:71",
|
3376
3376
|
"nodeType": "YulAssignment",
|
3377
|
-
"src": "4379:30:
|
3377
|
+
"src": "4379:30:71",
|
3378
3378
|
"value": {
|
3379
3379
|
"arguments": [
|
3380
3380
|
{
|
3381
3381
|
"name": "memoryPointer",
|
3382
|
-
"nativeSrc": "4395:13:
|
3382
|
+
"nativeSrc": "4395:13:71",
|
3383
3383
|
"nodeType": "YulIdentifier",
|
3384
|
-
"src": "4395:13:
|
3384
|
+
"src": "4395:13:71"
|
3385
3385
|
}
|
3386
3386
|
],
|
3387
3387
|
"functionName": {
|
3388
3388
|
"name": "mload",
|
3389
|
-
"nativeSrc": "4389:5:
|
3389
|
+
"nativeSrc": "4389:5:71",
|
3390
3390
|
"nodeType": "YulIdentifier",
|
3391
|
-
"src": "4389:5:
|
3391
|
+
"src": "4389:5:71"
|
3392
3392
|
},
|
3393
|
-
"nativeSrc": "4389:20:
|
3393
|
+
"nativeSrc": "4389:20:71",
|
3394
3394
|
"nodeType": "YulFunctionCall",
|
3395
|
-
"src": "4389:20:
|
3395
|
+
"src": "4389:20:71"
|
3396
3396
|
},
|
3397
3397
|
"variableNames": [
|
3398
3398
|
{
|
3399
3399
|
"name": "result",
|
3400
|
-
"nativeSrc": "4379:6:
|
3400
|
+
"nativeSrc": "4379:6:71",
|
3401
3401
|
"nodeType": "YulIdentifier",
|
3402
|
-
"src": "4379:6:
|
3402
|
+
"src": "4379:6:71"
|
3403
3403
|
}
|
3404
3404
|
]
|
3405
3405
|
}
|
@@ -3409,112 +3409,112 @@
|
|
3409
3409
|
"evmVersion": "paris",
|
3410
3410
|
"externalReferences": [
|
3411
3411
|
{
|
3412
|
-
"declaration":
|
3412
|
+
"declaration": 29930,
|
3413
3413
|
"isOffset": false,
|
3414
3414
|
"isSlot": false,
|
3415
|
-
"src": "4395:13:
|
3415
|
+
"src": "4395:13:71",
|
3416
3416
|
"valueSize": 1
|
3417
3417
|
},
|
3418
3418
|
{
|
3419
|
-
"declaration":
|
3419
|
+
"declaration": 29927,
|
3420
3420
|
"isOffset": false,
|
3421
3421
|
"isSlot": false,
|
3422
|
-
"src": "4379:6:
|
3422
|
+
"src": "4379:6:71",
|
3423
3423
|
"valueSize": 1
|
3424
3424
|
}
|
3425
3425
|
],
|
3426
|
-
"id":
|
3426
|
+
"id": 29935,
|
3427
3427
|
"nodeType": "InlineAssembly",
|
3428
|
-
"src": "4362:53:
|
3428
|
+
"src": "4362:53:71"
|
3429
3429
|
},
|
3430
3430
|
{
|
3431
3431
|
"expression": {
|
3432
|
-
"id":
|
3432
|
+
"id": 29936,
|
3433
3433
|
"name": "result",
|
3434
3434
|
"nodeType": "Identifier",
|
3435
3435
|
"overloadedDeclarations": [],
|
3436
|
-
"referencedDeclaration":
|
3437
|
-
"src": "4427:6:
|
3436
|
+
"referencedDeclaration": 29927,
|
3437
|
+
"src": "4427:6:71",
|
3438
3438
|
"typeDescriptions": {
|
3439
3439
|
"typeIdentifier": "t_bytes32",
|
3440
3440
|
"typeString": "bytes32"
|
3441
3441
|
}
|
3442
3442
|
},
|
3443
|
-
"functionReturnParameters":
|
3444
|
-
"id":
|
3443
|
+
"functionReturnParameters": 29928,
|
3444
|
+
"id": 29937,
|
3445
3445
|
"nodeType": "Return",
|
3446
|
-
"src": "4420:13:
|
3446
|
+
"src": "4420:13:71"
|
3447
3447
|
}
|
3448
3448
|
]
|
3449
3449
|
},
|
3450
3450
|
"documentation": {
|
3451
|
-
"id":
|
3451
|
+
"id": 29921,
|
3452
3452
|
"nodeType": "StructuredDocumentation",
|
3453
|
-
"src": "3914:286:
|
3453
|
+
"src": "3914:286:71",
|
3454
3454
|
"text": " @notice Converts a Slice to bytes32\n @dev This function converts a slice into a fixed-length bytes32. Uses inline assembly for the conversion.\n @param self The Slice to be converted to bytes32.\n @return result The bytes32 representation of the provided Slice."
|
3455
3455
|
},
|
3456
3456
|
"implemented": true,
|
3457
3457
|
"kind": "function",
|
3458
3458
|
"modifiers": [],
|
3459
3459
|
"name": "toBytes32",
|
3460
|
-
"nameLocation": "4212:9:
|
3460
|
+
"nameLocation": "4212:9:71",
|
3461
3461
|
"parameters": {
|
3462
|
-
"id":
|
3462
|
+
"id": 29925,
|
3463
3463
|
"nodeType": "ParameterList",
|
3464
3464
|
"parameters": [
|
3465
3465
|
{
|
3466
3466
|
"constant": false,
|
3467
|
-
"id":
|
3467
|
+
"id": 29924,
|
3468
3468
|
"mutability": "mutable",
|
3469
3469
|
"name": "self",
|
3470
|
-
"nameLocation": "4228:4:
|
3470
|
+
"nameLocation": "4228:4:71",
|
3471
3471
|
"nodeType": "VariableDeclaration",
|
3472
|
-
"scope":
|
3473
|
-
"src": "4222:10:
|
3472
|
+
"scope": 29939,
|
3473
|
+
"src": "4222:10:71",
|
3474
3474
|
"stateVariable": false,
|
3475
3475
|
"storageLocation": "default",
|
3476
3476
|
"typeDescriptions": {
|
3477
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
3477
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
3478
3478
|
"typeString": "Slice"
|
3479
3479
|
},
|
3480
3480
|
"typeName": {
|
3481
|
-
"id":
|
3481
|
+
"id": 29923,
|
3482
3482
|
"nodeType": "UserDefinedTypeName",
|
3483
3483
|
"pathNode": {
|
3484
|
-
"id":
|
3484
|
+
"id": 29922,
|
3485
3485
|
"name": "Slice",
|
3486
3486
|
"nameLocations": [
|
3487
|
-
"4222:5:
|
3487
|
+
"4222:5:71"
|
3488
3488
|
],
|
3489
3489
|
"nodeType": "IdentifierPath",
|
3490
|
-
"referencedDeclaration":
|
3491
|
-
"src": "4222:5:
|
3490
|
+
"referencedDeclaration": 29698,
|
3491
|
+
"src": "4222:5:71"
|
3492
3492
|
},
|
3493
|
-
"referencedDeclaration":
|
3494
|
-
"src": "4222:5:
|
3493
|
+
"referencedDeclaration": 29698,
|
3494
|
+
"src": "4222:5:71",
|
3495
3495
|
"typeDescriptions": {
|
3496
|
-
"typeIdentifier": "t_userDefinedValueType$_Slice_$
|
3496
|
+
"typeIdentifier": "t_userDefinedValueType$_Slice_$29698",
|
3497
3497
|
"typeString": "Slice"
|
3498
3498
|
}
|
3499
3499
|
},
|
3500
3500
|
"visibility": "internal"
|
3501
3501
|
}
|
3502
3502
|
],
|
3503
|
-
"src": "4221:12:
|
3503
|
+
"src": "4221:12:71"
|
3504
3504
|
},
|
3505
3505
|
"returnParameters": {
|
3506
|
-
"id":
|
3506
|
+
"id": 29928,
|
3507
3507
|
"nodeType": "ParameterList",
|
3508
3508
|
"parameters": [
|
3509
3509
|
{
|
3510
3510
|
"constant": false,
|
3511
|
-
"id":
|
3511
|
+
"id": 29927,
|
3512
3512
|
"mutability": "mutable",
|
3513
3513
|
"name": "result",
|
3514
|
-
"nameLocation": "4265:6:
|
3514
|
+
"nameLocation": "4265:6:71",
|
3515
3515
|
"nodeType": "VariableDeclaration",
|
3516
|
-
"scope":
|
3517
|
-
"src": "4257:14:
|
3516
|
+
"scope": 29939,
|
3517
|
+
"src": "4257:14:71",
|
3518
3518
|
"stateVariable": false,
|
3519
3519
|
"storageLocation": "default",
|
3520
3520
|
"typeDescriptions": {
|
@@ -3522,10 +3522,10 @@
|
|
3522
3522
|
"typeString": "bytes32"
|
3523
3523
|
},
|
3524
3524
|
"typeName": {
|
3525
|
-
"id":
|
3525
|
+
"id": 29926,
|
3526
3526
|
"name": "bytes32",
|
3527
3527
|
"nodeType": "ElementaryTypeName",
|
3528
|
-
"src": "4257:7:
|
3528
|
+
"src": "4257:7:71",
|
3529
3529
|
"typeDescriptions": {
|
3530
3530
|
"typeIdentifier": "t_bytes32",
|
3531
3531
|
"typeString": "bytes32"
|
@@ -3534,9 +3534,9 @@
|
|
3534
3534
|
"visibility": "internal"
|
3535
3535
|
}
|
3536
3536
|
],
|
3537
|
-
"src": "4256:16:
|
3537
|
+
"src": "4256:16:71"
|
3538
3538
|
},
|
3539
|
-
"scope":
|
3539
|
+
"scope": 29940,
|
3540
3540
|
"stateMutability": "pure",
|
3541
3541
|
"virtual": false,
|
3542
3542
|
"visibility": "internal"
|
@@ -3548,23 +3548,23 @@
|
|
3548
3548
|
"contractDependencies": [],
|
3549
3549
|
"contractKind": "library",
|
3550
3550
|
"documentation": {
|
3551
|
-
"id":
|
3551
|
+
"id": 29844,
|
3552
3552
|
"nodeType": "StructuredDocumentation",
|
3553
|
-
"src": "2596:46:
|
3553
|
+
"src": "2596:46:71",
|
3554
3554
|
"text": " @title Instance functions for Slice"
|
3555
3555
|
},
|
3556
3556
|
"fullyImplemented": true,
|
3557
3557
|
"linearizedBaseContracts": [
|
3558
|
-
|
3558
|
+
29940
|
3559
3559
|
],
|
3560
3560
|
"name": "SliceInstance",
|
3561
|
-
"nameLocation": "2651:13:
|
3562
|
-
"scope":
|
3561
|
+
"nameLocation": "2651:13:71",
|
3562
|
+
"scope": 29941,
|
3563
3563
|
"usedErrors": [],
|
3564
3564
|
"usedEvents": []
|
3565
3565
|
}
|
3566
3566
|
],
|
3567
3567
|
"license": "MIT"
|
3568
3568
|
},
|
3569
|
-
"id":
|
3569
|
+
"id": 71
|
3570
3570
|
}
|