@latticexyz/world 2.0.0-alpha.1.21 → 2.0.0-alpha.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/abi/AccessControl.sol/AccessControl.json +241 -241
  2. package/abi/AccessManagementSystem.sol/AccessManagementSystem.json +157 -157
  3. package/abi/AddressArray.sol/AddressArray.json +1124 -1124
  4. package/abi/ArrayLib.sol/ArrayLib.json +139 -139
  5. package/abi/Bool.sol/Bool.json +704 -704
  6. package/abi/Bytes.sol/Bytes.json +6 -6
  7. package/abi/Call.sol/Call.json +112 -112
  8. package/abi/Callbacks.sol/Callbacks.json +1100 -1100
  9. package/abi/CoreModule.sol/CoreModule.json +542 -542
  10. package/abi/CoreSystem.sol/CoreSystem.json +92 -92
  11. package/abi/DecodeSlice.sol/DecodeSlice.json +3891 -3891
  12. package/abi/EncodeArray.sol/EncodeArray.json +3344 -3344
  13. package/abi/FunctionSelectors.sol/FunctionSelectors.json +1678 -1678
  14. package/abi/Hooks.sol/Hooks.json +1100 -1100
  15. package/abi/IAccessManagementSystem.sol/IAccessManagementSystem.json +32 -32
  16. package/abi/IBaseWorld.sol/IBaseWorld.json +224 -99
  17. package/abi/ICoreSystem.sol/ICoreSystem.json +6 -6
  18. package/abi/IModule.sol/IModule.json +28 -28
  19. package/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +40 -40
  20. package/abi/IStore.sol/IStore.json +551 -349
  21. package/abi/IStore.sol/IStoreData.json +551 -349
  22. package/abi/IStore.sol/IStoreHook.json +495 -349
  23. package/abi/IStore.sol/IStoreRead.json +495 -349
  24. package/abi/IStore.sol/IStoreRegistration.json +495 -349
  25. package/abi/IStore.sol/IStoreWrite.json +551 -349
  26. package/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +80 -80
  27. package/abi/ISystemHook.sol/ISystemHook.json +19 -19
  28. package/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  29. package/abi/IWorldKernel.sol/IWorldCall.json +455 -276
  30. package/abi/IWorldKernel.sol/IWorldData.json +524 -276
  31. package/abi/IWorldKernel.sol/IWorldKernel.json +524 -276
  32. package/abi/IWorldKernel.sol/IWorldModuleInstallation.json +455 -276
  33. package/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +198 -198
  34. package/abi/InstalledModules.sol/InstalledModules.json +1351 -1351
  35. package/abi/KeysWithValue.sol/KeysWithValue.json +1124 -1124
  36. package/abi/KeysWithValueHook.sol/KeysWithValueHook.json +416 -416
  37. package/abi/KeysWithValueModule.sol/KeysWithValueModule.json +293 -293
  38. package/abi/Memory.sol/Memory.json +131 -131
  39. package/abi/Mixed.sol/Mixed.json +2781 -2781
  40. package/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +138 -138
  41. package/abi/NamespaceOwner.sol/NamespaceOwner.json +782 -782
  42. package/abi/PackedCounter.sol/PackedCounterLib.json +665 -665
  43. package/abi/ResourceAccess.sol/ResourceAccess.json +926 -926
  44. package/abi/ResourceSelector.sol/ResourceSelector.json +253 -253
  45. package/abi/ResourceType.sol/ResourceType.json +831 -831
  46. package/abi/Schema.sol/SchemaLib.json +1469 -1469
  47. package/abi/SchemaType.sol/SchemaType.json +315 -315
  48. package/abi/Slice.sol/SliceInstance.json +429 -429
  49. package/abi/Slice.sol/SliceLib.json +429 -429
  50. package/abi/Storage.sol/Storage.json +1024 -1061
  51. package/abi/StoreCore.sol/StoreCore.json +10434 -7652
  52. package/abi/StoreCore.sol/StoreCoreExtended.json +10434 -7652
  53. package/abi/StoreCore.sol/StoreCoreInternal.json +10434 -7652
  54. package/abi/StoreMetadata.sol/StoreMetadata.json +2116 -2116
  55. package/abi/StoreRead.sol/StoreRead.json +247 -247
  56. package/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +339 -339
  57. package/abi/StoreSwitch.sol/StoreSwitch.json +1814 -1359
  58. package/abi/System.sol/System.json +31 -31
  59. package/abi/SystemRegistry.sol/SystemRegistry.json +794 -794
  60. package/abi/Systems.sol/Systems.json +1412 -1412
  61. package/abi/TableId.sol/TableId.json +27 -27
  62. package/abi/Tables.sol/Tables.json +92 -92
  63. package/abi/TightCoder.sol/TightCoder.json +275 -275
  64. package/abi/Types.sol/Types.json +8 -8
  65. package/abi/UniqueEntity.sol/UniqueEntity.json +683 -683
  66. package/abi/UniqueEntityModule.sol/UniqueEntityModule.json +232 -232
  67. package/abi/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
  68. package/abi/Utils.sol/Utils.json +67 -67
  69. package/abi/Vector2.sol/Vector2.json +1473 -1473
  70. package/abi/World.sol/World.json +2426 -1491
  71. package/abi/WorldContext.sol/WorldContext.json +65 -65
  72. package/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1140 -1140
  73. package/abi/console.sol/console.json +11417 -11417
  74. package/abi/constants.sol/constants.json +34 -34
  75. package/abi/getKeysWithValue.sol/getKeysWithValue.json +129 -129
  76. package/abi/getTargetTableSelector.sol/getTargetTableSelector.json +75 -75
  77. package/abi/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  78. package/abi/interfaces/IErrors.sol/IErrors.json +57 -57
  79. package/abi/src/Bytes.sol/Bytes.json +1225 -1225
  80. package/abi/src/IStore.sol/IStore.json +727 -525
  81. package/abi/src/IStore.sol/IStoreData.json +727 -525
  82. package/abi/src/IStore.sol/IStoreHook.json +671 -525
  83. package/abi/src/IStore.sol/IStoreRead.json +671 -525
  84. package/abi/src/IStore.sol/IStoreRegistration.json +671 -525
  85. package/abi/src/IStore.sol/IStoreWrite.json +727 -525
  86. package/abi/src/Memory.sol/Memory.json +131 -131
  87. package/abi/src/PackedCounter.sol/PackedCounterLib.json +683 -683
  88. package/abi/src/Schema.sol/SchemaLib.json +1493 -1493
  89. package/abi/src/Slice.sol/SliceInstance.json +429 -429
  90. package/abi/src/Slice.sol/SliceLib.json +429 -429
  91. package/abi/src/StoreCore.sol/StoreCore.json +12500 -9718
  92. package/abi/src/StoreCore.sol/StoreCoreExtended.json +12500 -9718
  93. package/abi/src/StoreCore.sol/StoreCoreInternal.json +12500 -9718
  94. package/abi/src/StoreSwitch.sol/StoreSwitch.json +1822 -1367
  95. package/abi/tightcoder/EncodeArray.sol/EncodeArray.json +3344 -3344
  96. package/package.json +6 -6
  97. package/src/World.sol +32 -0
  98. package/src/interfaces/IWorldKernel.sol +12 -0
  99. package/types/ethers-contracts/IBaseWorld.ts +116 -0
  100. package/types/ethers-contracts/IStore.sol/IStore.ts +55 -0
  101. package/types/ethers-contracts/IStore.sol/IStoreData.ts +55 -0
  102. package/types/ethers-contracts/IStore.sol/IStoreWrite.ts +55 -0
  103. package/types/ethers-contracts/IWorldKernel.sol/IWorldData.ts +61 -0
  104. package/types/ethers-contracts/IWorldKernel.sol/IWorldKernel.ts +61 -0
  105. package/types/ethers-contracts/World.ts +116 -0
  106. package/types/ethers-contracts/factories/AccessManagementSystem__factory.ts +1 -1
  107. package/types/ethers-contracts/factories/CoreModule__factory.ts +1 -1
  108. package/types/ethers-contracts/factories/CoreSystem__factory.ts +1 -1
  109. package/types/ethers-contracts/factories/IBaseWorld__factory.ts +61 -0
  110. package/types/ethers-contracts/factories/IStore.sol/IStoreData__factory.ts +28 -0
  111. package/types/ethers-contracts/factories/IStore.sol/IStoreWrite__factory.ts +28 -0
  112. package/types/ethers-contracts/factories/IStore.sol/IStore__factory.ts +28 -0
  113. package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldData__factory.ts +33 -0
  114. package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldKernel__factory.ts +33 -0
  115. package/types/ethers-contracts/factories/KeysWithValueHook__factory.ts +1 -1
  116. package/types/ethers-contracts/factories/KeysWithValueModule__factory.ts +1 -1
  117. package/types/ethers-contracts/factories/ModuleInstallationSystem__factory.ts +1 -1
  118. package/types/ethers-contracts/factories/StoreCore__factory.ts +1 -1
  119. package/types/ethers-contracts/factories/StoreRead__factory.ts +1 -1
  120. package/types/ethers-contracts/factories/StoreRegistrationSystem__factory.ts +1 -1
  121. package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
  122. package/types/ethers-contracts/factories/UniqueEntityModule__factory.ts +1 -1
  123. package/types/ethers-contracts/factories/UniqueEntitySystem__factory.ts +1 -1
  124. package/types/ethers-contracts/factories/WorldRegistrationSystem__factory.ts +1 -1
  125. package/types/ethers-contracts/factories/World__factory.ts +62 -1
  126. package/types/ethers-contracts/factories/src/IStore.sol/IStoreData__factory.ts +28 -0
  127. package/types/ethers-contracts/factories/src/IStore.sol/IStoreWrite__factory.ts +28 -0
  128. package/types/ethers-contracts/factories/src/IStore.sol/IStore__factory.ts +28 -0
  129. package/types/ethers-contracts/factories/src/StoreCore__factory.ts +1 -1
  130. package/types/ethers-contracts/factories/src/StoreSwitch__factory.ts +1 -1
  131. package/types/ethers-contracts/src/IStore.sol/IStore.ts +55 -0
  132. package/types/ethers-contracts/src/IStore.sol/IStoreData.ts +55 -0
  133. package/types/ethers-contracts/src/IStore.sol/IStoreWrite.ts +55 -0
@@ -147,29 +147,29 @@
147
147
  },
148
148
  "ast": {
149
149
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/Slice.sol",
150
- "id": 2522,
150
+ "id": 2534,
151
151
  "exportedSymbols": {
152
152
  "DecodeSlice": [
153
- 13692
153
+ 13953
154
154
  ],
155
155
  "Memory": [
156
- 1075
156
+ 1087
157
157
  ],
158
158
  "Slice": [
159
- 2280
159
+ 2292
160
160
  ],
161
161
  "SliceInstance": [
162
- 2521
162
+ 2533
163
163
  ],
164
164
  "SliceLib": [
165
- 2425
165
+ 2437
166
166
  ]
167
167
  },
168
168
  "nodeType": "SourceUnit",
169
169
  "src": "32:3299:6",
170
170
  "nodes": [
171
171
  {
172
- "id": 2274,
172
+ "id": 2286,
173
173
  "nodeType": "PragmaDirective",
174
174
  "src": "32:24:6",
175
175
  "nodes": [],
@@ -181,23 +181,23 @@
181
181
  ]
182
182
  },
183
183
  {
184
- "id": 2276,
184
+ "id": 2288,
185
185
  "nodeType": "ImportDirective",
186
186
  "src": "58:38:6",
187
187
  "nodes": [],
188
188
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/Memory.sol",
189
189
  "file": "./Memory.sol",
190
190
  "nameLocation": "-1:-1:-1",
191
- "scope": 2522,
192
- "sourceUnit": 1076,
191
+ "scope": 2534,
192
+ "sourceUnit": 1088,
193
193
  "symbolAliases": [
194
194
  {
195
195
  "foreign": {
196
- "id": 2275,
196
+ "id": 2287,
197
197
  "name": "Memory",
198
198
  "nodeType": "Identifier",
199
199
  "overloadedDeclarations": [],
200
- "referencedDeclaration": 1075,
200
+ "referencedDeclaration": 1087,
201
201
  "src": "67:6:6",
202
202
  "typeDescriptions": {}
203
203
  },
@@ -207,23 +207,23 @@
207
207
  "unitAlias": ""
208
208
  },
209
209
  {
210
- "id": 2278,
210
+ "id": 2290,
211
211
  "nodeType": "ImportDirective",
212
212
  "src": "97:59:6",
213
213
  "nodes": [],
214
214
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/tightcoder/DecodeSlice.sol",
215
215
  "file": "./tightcoder/DecodeSlice.sol",
216
216
  "nameLocation": "-1:-1:-1",
217
- "scope": 2522,
218
- "sourceUnit": 13693,
217
+ "scope": 2534,
218
+ "sourceUnit": 13954,
219
219
  "symbolAliases": [
220
220
  {
221
221
  "foreign": {
222
- "id": 2277,
222
+ "id": 2289,
223
223
  "name": "DecodeSlice",
224
224
  "nodeType": "Identifier",
225
225
  "overloadedDeclarations": [],
226
- "referencedDeclaration": 13692,
226
+ "referencedDeclaration": 13953,
227
227
  "src": "106:11:6",
228
228
  "typeDescriptions": {}
229
229
  },
@@ -233,7 +233,7 @@
233
233
  "unitAlias": ""
234
234
  },
235
235
  {
236
- "id": 2280,
236
+ "id": 2292,
237
237
  "nodeType": "UserDefinedValueTypeDefinition",
238
238
  "src": "373:22:6",
239
239
  "nodes": [],
@@ -241,7 +241,7 @@
241
241
  "name": "Slice",
242
242
  "nameLocation": "378:5:6",
243
243
  "underlyingType": {
244
- "id": 2279,
244
+ "id": 2291,
245
245
  "name": "uint256",
246
246
  "nodeType": "ElementaryTypeName",
247
247
  "src": "387:7:6",
@@ -252,74 +252,74 @@
252
252
  }
253
253
  },
254
254
  {
255
- "id": 2284,
255
+ "id": 2296,
256
256
  "nodeType": "UsingForDirective",
257
257
  "src": "397:37:6",
258
258
  "nodes": [],
259
259
  "global": true,
260
260
  "libraryName": {
261
- "id": 2281,
261
+ "id": 2293,
262
262
  "name": "SliceInstance",
263
263
  "nodeType": "IdentifierPath",
264
- "referencedDeclaration": 2521,
264
+ "referencedDeclaration": 2533,
265
265
  "src": "403:13:6"
266
266
  },
267
267
  "typeName": {
268
- "id": 2283,
268
+ "id": 2295,
269
269
  "nodeType": "UserDefinedTypeName",
270
270
  "pathNode": {
271
- "id": 2282,
271
+ "id": 2294,
272
272
  "name": "Slice",
273
273
  "nodeType": "IdentifierPath",
274
- "referencedDeclaration": 2280,
274
+ "referencedDeclaration": 2292,
275
275
  "src": "421:5:6"
276
276
  },
277
- "referencedDeclaration": 2280,
277
+ "referencedDeclaration": 2292,
278
278
  "src": "421:5:6",
279
279
  "typeDescriptions": {
280
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
280
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
281
281
  "typeString": "Slice"
282
282
  }
283
283
  }
284
284
  },
285
285
  {
286
- "id": 2288,
286
+ "id": 2300,
287
287
  "nodeType": "UsingForDirective",
288
288
  "src": "435:35:6",
289
289
  "nodes": [],
290
290
  "global": true,
291
291
  "libraryName": {
292
- "id": 2285,
292
+ "id": 2297,
293
293
  "name": "DecodeSlice",
294
294
  "nodeType": "IdentifierPath",
295
- "referencedDeclaration": 13692,
295
+ "referencedDeclaration": 13953,
296
296
  "src": "441:11:6"
297
297
  },
298
298
  "typeName": {
299
- "id": 2287,
299
+ "id": 2299,
300
300
  "nodeType": "UserDefinedTypeName",
301
301
  "pathNode": {
302
- "id": 2286,
302
+ "id": 2298,
303
303
  "name": "Slice",
304
304
  "nodeType": "IdentifierPath",
305
- "referencedDeclaration": 2280,
305
+ "referencedDeclaration": 2292,
306
306
  "src": "457:5:6"
307
307
  },
308
- "referencedDeclaration": 2280,
308
+ "referencedDeclaration": 2292,
309
309
  "src": "457:5:6",
310
310
  "typeDescriptions": {
311
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
311
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
312
312
  "typeString": "Slice"
313
313
  }
314
314
  }
315
315
  },
316
316
  {
317
- "id": 2425,
317
+ "id": 2437,
318
318
  "nodeType": "ContractDefinition",
319
319
  "src": "517:1618:6",
320
320
  "nodes": [
321
321
  {
322
- "id": 2297,
322
+ "id": 2309,
323
323
  "nodeType": "ErrorDefinition",
324
324
  "src": "538:64:6",
325
325
  "nodes": [],
@@ -327,17 +327,17 @@
327
327
  "name": "Slice_OutOfBounds",
328
328
  "nameLocation": "544:17:6",
329
329
  "parameters": {
330
- "id": 2296,
330
+ "id": 2308,
331
331
  "nodeType": "ParameterList",
332
332
  "parameters": [
333
333
  {
334
334
  "constant": false,
335
- "id": 2291,
335
+ "id": 2303,
336
336
  "mutability": "mutable",
337
337
  "name": "data",
338
338
  "nameLocation": "568:4:6",
339
339
  "nodeType": "VariableDeclaration",
340
- "scope": 2297,
340
+ "scope": 2309,
341
341
  "src": "562:10:6",
342
342
  "stateVariable": false,
343
343
  "storageLocation": "default",
@@ -346,7 +346,7 @@
346
346
  "typeString": "bytes"
347
347
  },
348
348
  "typeName": {
349
- "id": 2290,
349
+ "id": 2302,
350
350
  "name": "bytes",
351
351
  "nodeType": "ElementaryTypeName",
352
352
  "src": "562:5:6",
@@ -359,12 +359,12 @@
359
359
  },
360
360
  {
361
361
  "constant": false,
362
- "id": 2293,
362
+ "id": 2305,
363
363
  "mutability": "mutable",
364
364
  "name": "start",
365
365
  "nameLocation": "582:5:6",
366
366
  "nodeType": "VariableDeclaration",
367
- "scope": 2297,
367
+ "scope": 2309,
368
368
  "src": "574:13:6",
369
369
  "stateVariable": false,
370
370
  "storageLocation": "default",
@@ -373,7 +373,7 @@
373
373
  "typeString": "uint256"
374
374
  },
375
375
  "typeName": {
376
- "id": 2292,
376
+ "id": 2304,
377
377
  "name": "uint256",
378
378
  "nodeType": "ElementaryTypeName",
379
379
  "src": "574:7:6",
@@ -386,12 +386,12 @@
386
386
  },
387
387
  {
388
388
  "constant": false,
389
- "id": 2295,
389
+ "id": 2307,
390
390
  "mutability": "mutable",
391
391
  "name": "end",
392
392
  "nameLocation": "597:3:6",
393
393
  "nodeType": "VariableDeclaration",
394
- "scope": 2297,
394
+ "scope": 2309,
395
395
  "src": "589:11:6",
396
396
  "stateVariable": false,
397
397
  "storageLocation": "default",
@@ -400,7 +400,7 @@
400
400
  "typeString": "uint256"
401
401
  },
402
402
  "typeName": {
403
- "id": 2294,
403
+ "id": 2306,
404
404
  "name": "uint256",
405
405
  "nodeType": "ElementaryTypeName",
406
406
  "src": "589:7:6",
@@ -416,7 +416,7 @@
416
416
  }
417
417
  },
418
418
  {
419
- "id": 2307,
419
+ "id": 2319,
420
420
  "nodeType": "VariableDeclaration",
421
421
  "src": "606:54:6",
422
422
  "nodes": [],
@@ -424,7 +424,7 @@
424
424
  "mutability": "constant",
425
425
  "name": "MASK_LEN",
426
426
  "nameLocation": "623:8:6",
427
- "scope": 2425,
427
+ "scope": 2437,
428
428
  "stateVariable": true,
429
429
  "storageLocation": "default",
430
430
  "typeDescriptions": {
@@ -432,7 +432,7 @@
432
432
  "typeString": "uint256"
433
433
  },
434
434
  "typeName": {
435
- "id": 2298,
435
+ "id": 2310,
436
436
  "name": "uint256",
437
437
  "nodeType": "ElementaryTypeName",
438
438
  "src": "606:7:6",
@@ -447,7 +447,7 @@
447
447
  "expression": {
448
448
  "arguments": [
449
449
  {
450
- "id": 2303,
450
+ "id": 2315,
451
451
  "isConstant": false,
452
452
  "isLValue": false,
453
453
  "isPure": true,
@@ -459,7 +459,7 @@
459
459
  "typeString": "type(uint128)"
460
460
  },
461
461
  "typeName": {
462
- "id": 2302,
462
+ "id": 2314,
463
463
  "name": "uint128",
464
464
  "nodeType": "ElementaryTypeName",
465
465
  "src": "647:7:6",
@@ -474,7 +474,7 @@
474
474
  "typeString": "type(uint128)"
475
475
  }
476
476
  ],
477
- "id": 2301,
477
+ "id": 2313,
478
478
  "name": "type",
479
479
  "nodeType": "Identifier",
480
480
  "overloadedDeclarations": [],
@@ -485,7 +485,7 @@
485
485
  "typeString": "function () pure"
486
486
  }
487
487
  },
488
- "id": 2304,
488
+ "id": 2316,
489
489
  "isConstant": false,
490
490
  "isLValue": false,
491
491
  "isPure": true,
@@ -500,7 +500,7 @@
500
500
  "typeString": "type(uint128)"
501
501
  }
502
502
  },
503
- "id": 2305,
503
+ "id": 2317,
504
504
  "isConstant": false,
505
505
  "isLValue": false,
506
506
  "isPure": true,
@@ -521,7 +521,7 @@
521
521
  "typeString": "uint128"
522
522
  }
523
523
  ],
524
- "id": 2300,
524
+ "id": 2312,
525
525
  "isConstant": false,
526
526
  "isLValue": false,
527
527
  "isPure": true,
@@ -533,14 +533,14 @@
533
533
  "typeString": "type(uint256)"
534
534
  },
535
535
  "typeName": {
536
- "id": 2299,
536
+ "id": 2311,
537
537
  "name": "uint256",
538
538
  "nodeType": "ElementaryTypeName",
539
539
  "src": "634:7:6",
540
540
  "typeDescriptions": {}
541
541
  }
542
542
  },
543
- "id": 2306,
543
+ "id": 2318,
544
544
  "isConstant": false,
545
545
  "isLValue": false,
546
546
  "isPure": true,
@@ -558,7 +558,7 @@
558
558
  "visibility": "internal"
559
559
  },
560
560
  {
561
- "id": 2319,
561
+ "id": 2331,
562
562
  "nodeType": "VariableDeclaration",
563
563
  "src": "664:61:6",
564
564
  "nodes": [],
@@ -566,7 +566,7 @@
566
566
  "mutability": "constant",
567
567
  "name": "MASK_PTR",
568
568
  "nameLocation": "681:8:6",
569
- "scope": 2425,
569
+ "scope": 2437,
570
570
  "stateVariable": true,
571
571
  "storageLocation": "default",
572
572
  "typeDescriptions": {
@@ -574,7 +574,7 @@
574
574
  "typeString": "uint256"
575
575
  },
576
576
  "typeName": {
577
- "id": 2308,
577
+ "id": 2320,
578
578
  "name": "uint256",
579
579
  "nodeType": "ElementaryTypeName",
580
580
  "src": "664:7:6",
@@ -588,7 +588,7 @@
588
588
  "typeIdentifier": "t_uint256",
589
589
  "typeString": "uint256"
590
590
  },
591
- "id": 2318,
591
+ "id": 2330,
592
592
  "isConstant": false,
593
593
  "isLValue": false,
594
594
  "isPure": true,
@@ -599,7 +599,7 @@
599
599
  "expression": {
600
600
  "arguments": [
601
601
  {
602
- "id": 2313,
602
+ "id": 2325,
603
603
  "isConstant": false,
604
604
  "isLValue": false,
605
605
  "isPure": true,
@@ -611,7 +611,7 @@
611
611
  "typeString": "type(uint128)"
612
612
  },
613
613
  "typeName": {
614
- "id": 2312,
614
+ "id": 2324,
615
615
  "name": "uint128",
616
616
  "nodeType": "ElementaryTypeName",
617
617
  "src": "705:7:6",
@@ -626,7 +626,7 @@
626
626
  "typeString": "type(uint128)"
627
627
  }
628
628
  ],
629
- "id": 2311,
629
+ "id": 2323,
630
630
  "name": "type",
631
631
  "nodeType": "Identifier",
632
632
  "overloadedDeclarations": [],
@@ -637,7 +637,7 @@
637
637
  "typeString": "function () pure"
638
638
  }
639
639
  },
640
- "id": 2314,
640
+ "id": 2326,
641
641
  "isConstant": false,
642
642
  "isLValue": false,
643
643
  "isPure": true,
@@ -652,7 +652,7 @@
652
652
  "typeString": "type(uint128)"
653
653
  }
654
654
  },
655
- "id": 2315,
655
+ "id": 2327,
656
656
  "isConstant": false,
657
657
  "isLValue": false,
658
658
  "isPure": true,
@@ -673,7 +673,7 @@
673
673
  "typeString": "uint128"
674
674
  }
675
675
  ],
676
- "id": 2310,
676
+ "id": 2322,
677
677
  "isConstant": false,
678
678
  "isLValue": false,
679
679
  "isPure": true,
@@ -685,14 +685,14 @@
685
685
  "typeString": "type(uint256)"
686
686
  },
687
687
  "typeName": {
688
- "id": 2309,
688
+ "id": 2321,
689
689
  "name": "uint256",
690
690
  "nodeType": "ElementaryTypeName",
691
691
  "src": "692:7:6",
692
692
  "typeDescriptions": {}
693
693
  }
694
694
  },
695
- "id": 2316,
695
+ "id": 2328,
696
696
  "isConstant": false,
697
697
  "isLValue": false,
698
698
  "isPure": true,
@@ -711,7 +711,7 @@
711
711
  "operator": "<<",
712
712
  "rightExpression": {
713
713
  "hexValue": "313238",
714
- "id": 2317,
714
+ "id": 2329,
715
715
  "isConstant": false,
716
716
  "isLValue": false,
717
717
  "isPure": true,
@@ -734,29 +734,29 @@
734
734
  "visibility": "internal"
735
735
  },
736
736
  {
737
- "id": 2347,
737
+ "id": 2359,
738
738
  "nodeType": "FunctionDefinition",
739
739
  "src": "809:329:6",
740
740
  "nodes": [],
741
741
  "body": {
742
- "id": 2346,
742
+ "id": 2358,
743
743
  "nodeType": "Block",
744
744
  "src": "877:261:6",
745
745
  "nodes": [],
746
746
  "statements": [
747
747
  {
748
748
  "assignments": [
749
- 2329
749
+ 2341
750
750
  ],
751
751
  "declarations": [
752
752
  {
753
753
  "constant": false,
754
- "id": 2329,
754
+ "id": 2341,
755
755
  "mutability": "mutable",
756
756
  "name": "_pointer",
757
757
  "nameLocation": "891:8:6",
758
758
  "nodeType": "VariableDeclaration",
759
- "scope": 2346,
759
+ "scope": 2358,
760
760
  "src": "883:16:6",
761
761
  "stateVariable": false,
762
762
  "storageLocation": "default",
@@ -765,7 +765,7 @@
765
765
  "typeString": "uint256"
766
766
  },
767
767
  "typeName": {
768
- "id": 2328,
768
+ "id": 2340,
769
769
  "name": "uint256",
770
770
  "nodeType": "ElementaryTypeName",
771
771
  "src": "883:7:6",
@@ -777,7 +777,7 @@
777
777
  "visibility": "internal"
778
778
  }
779
779
  ],
780
- "id": 2330,
780
+ "id": 2342,
781
781
  "nodeType": "VariableDeclarationStatement",
782
782
  "src": "883:16:6"
783
783
  },
@@ -825,21 +825,21 @@
825
825
  "evmVersion": "london",
826
826
  "externalReferences": [
827
827
  {
828
- "declaration": 2329,
828
+ "declaration": 2341,
829
829
  "isOffset": false,
830
830
  "isSlot": false,
831
831
  "src": "922:8:6",
832
832
  "valueSize": 1
833
833
  },
834
834
  {
835
- "declaration": 2322,
835
+ "declaration": 2334,
836
836
  "isOffset": false,
837
837
  "isSlot": false,
838
838
  "src": "938:4:6",
839
839
  "valueSize": 1
840
840
  }
841
841
  ],
842
- "id": 2331,
842
+ "id": 2343,
843
843
  "nodeType": "InlineAssembly",
844
844
  "src": "905:80:6"
845
845
  },
@@ -851,7 +851,7 @@
851
851
  "typeIdentifier": "t_uint256",
852
852
  "typeString": "uint256"
853
853
  },
854
- "id": 2343,
854
+ "id": 2355,
855
855
  "isConstant": false,
856
856
  "isLValue": false,
857
857
  "isPure": false,
@@ -863,17 +863,17 @@
863
863
  "typeIdentifier": "t_uint256",
864
864
  "typeString": "uint256"
865
865
  },
866
- "id": 2336,
866
+ "id": 2348,
867
867
  "isConstant": false,
868
868
  "isLValue": false,
869
869
  "isPure": false,
870
870
  "lValueRequested": false,
871
871
  "leftExpression": {
872
- "id": 2334,
872
+ "id": 2346,
873
873
  "name": "_pointer",
874
874
  "nodeType": "Identifier",
875
875
  "overloadedDeclarations": [],
876
- "referencedDeclaration": 2329,
876
+ "referencedDeclaration": 2341,
877
877
  "src": "1089:8:6",
878
878
  "typeDescriptions": {
879
879
  "typeIdentifier": "t_uint256",
@@ -884,7 +884,7 @@
884
884
  "operator": "<<",
885
885
  "rightExpression": {
886
886
  "hexValue": "313238",
887
- "id": 2335,
887
+ "id": 2347,
888
888
  "isConstant": false,
889
889
  "isLValue": false,
890
890
  "isPure": true,
@@ -905,7 +905,7 @@
905
905
  }
906
906
  }
907
907
  ],
908
- "id": 2337,
908
+ "id": 2349,
909
909
  "isConstant": false,
910
910
  "isInlineArray": false,
911
911
  "isLValue": false,
@@ -927,25 +927,25 @@
927
927
  "typeIdentifier": "t_uint256",
928
928
  "typeString": "uint256"
929
929
  },
930
- "id": 2341,
930
+ "id": 2353,
931
931
  "isConstant": false,
932
932
  "isLValue": false,
933
933
  "isPure": false,
934
934
  "lValueRequested": false,
935
935
  "leftExpression": {
936
936
  "expression": {
937
- "id": 2338,
937
+ "id": 2350,
938
938
  "name": "data",
939
939
  "nodeType": "Identifier",
940
940
  "overloadedDeclarations": [],
941
- "referencedDeclaration": 2322,
941
+ "referencedDeclaration": 2334,
942
942
  "src": "1109:4:6",
943
943
  "typeDescriptions": {
944
944
  "typeIdentifier": "t_bytes_memory_ptr",
945
945
  "typeString": "bytes memory"
946
946
  }
947
947
  },
948
- "id": 2339,
948
+ "id": 2351,
949
949
  "isConstant": false,
950
950
  "isLValue": false,
951
951
  "isPure": false,
@@ -961,11 +961,11 @@
961
961
  "nodeType": "BinaryOperation",
962
962
  "operator": "&",
963
963
  "rightExpression": {
964
- "id": 2340,
964
+ "id": 2352,
965
965
  "name": "MASK_LEN",
966
966
  "nodeType": "Identifier",
967
967
  "overloadedDeclarations": [],
968
- "referencedDeclaration": 2307,
968
+ "referencedDeclaration": 2319,
969
969
  "src": "1123:8:6",
970
970
  "typeDescriptions": {
971
971
  "typeIdentifier": "t_uint256",
@@ -979,7 +979,7 @@
979
979
  }
980
980
  }
981
981
  ],
982
- "id": 2342,
982
+ "id": 2354,
983
983
  "isConstant": false,
984
984
  "isInlineArray": false,
985
985
  "isLValue": false,
@@ -1007,18 +1007,18 @@
1007
1007
  }
1008
1008
  ],
1009
1009
  "expression": {
1010
- "id": 2332,
1010
+ "id": 2344,
1011
1011
  "name": "Slice",
1012
1012
  "nodeType": "Identifier",
1013
1013
  "overloadedDeclarations": [],
1014
- "referencedDeclaration": 2280,
1014
+ "referencedDeclaration": 2292,
1015
1015
  "src": "1077:5:6",
1016
1016
  "typeDescriptions": {
1017
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
1017
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
1018
1018
  "typeString": "type(Slice)"
1019
1019
  }
1020
1020
  },
1021
- "id": 2333,
1021
+ "id": 2345,
1022
1022
  "isConstant": false,
1023
1023
  "isLValue": false,
1024
1024
  "isPure": true,
@@ -1027,11 +1027,11 @@
1027
1027
  "nodeType": "MemberAccess",
1028
1028
  "src": "1077:10:6",
1029
1029
  "typeDescriptions": {
1030
- "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
1030
+ "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
1031
1031
  "typeString": "function (uint256) pure returns (Slice)"
1032
1032
  }
1033
1033
  },
1034
- "id": 2344,
1034
+ "id": 2356,
1035
1035
  "isConstant": false,
1036
1036
  "isLValue": false,
1037
1037
  "isPure": false,
@@ -1042,19 +1042,19 @@
1042
1042
  "src": "1077:56:6",
1043
1043
  "tryCall": false,
1044
1044
  "typeDescriptions": {
1045
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1045
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1046
1046
  "typeString": "Slice"
1047
1047
  }
1048
1048
  },
1049
- "functionReturnParameters": 2327,
1050
- "id": 2345,
1049
+ "functionReturnParameters": 2339,
1050
+ "id": 2357,
1051
1051
  "nodeType": "Return",
1052
1052
  "src": "1070:63:6"
1053
1053
  }
1054
1054
  ]
1055
1055
  },
1056
1056
  "documentation": {
1057
- "id": 2320,
1057
+ "id": 2332,
1058
1058
  "nodeType": "StructuredDocumentation",
1059
1059
  "src": "730:76:6",
1060
1060
  "text": " @dev Converts a bytes array to a slice (without copying data)"
@@ -1065,17 +1065,17 @@
1065
1065
  "name": "fromBytes",
1066
1066
  "nameLocation": "818:9:6",
1067
1067
  "parameters": {
1068
- "id": 2323,
1068
+ "id": 2335,
1069
1069
  "nodeType": "ParameterList",
1070
1070
  "parameters": [
1071
1071
  {
1072
1072
  "constant": false,
1073
- "id": 2322,
1073
+ "id": 2334,
1074
1074
  "mutability": "mutable",
1075
1075
  "name": "data",
1076
1076
  "nameLocation": "841:4:6",
1077
1077
  "nodeType": "VariableDeclaration",
1078
- "scope": 2347,
1078
+ "scope": 2359,
1079
1079
  "src": "828:17:6",
1080
1080
  "stateVariable": false,
1081
1081
  "storageLocation": "memory",
@@ -1084,7 +1084,7 @@
1084
1084
  "typeString": "bytes"
1085
1085
  },
1086
1086
  "typeName": {
1087
- "id": 2321,
1087
+ "id": 2333,
1088
1088
  "name": "bytes",
1089
1089
  "nodeType": "ElementaryTypeName",
1090
1090
  "src": "828:5:6",
@@ -1099,38 +1099,38 @@
1099
1099
  "src": "827:19:6"
1100
1100
  },
1101
1101
  "returnParameters": {
1102
- "id": 2327,
1102
+ "id": 2339,
1103
1103
  "nodeType": "ParameterList",
1104
1104
  "parameters": [
1105
1105
  {
1106
1106
  "constant": false,
1107
- "id": 2326,
1107
+ "id": 2338,
1108
1108
  "mutability": "mutable",
1109
1109
  "name": "",
1110
1110
  "nameLocation": "-1:-1:-1",
1111
1111
  "nodeType": "VariableDeclaration",
1112
- "scope": 2347,
1112
+ "scope": 2359,
1113
1113
  "src": "870:5:6",
1114
1114
  "stateVariable": false,
1115
1115
  "storageLocation": "default",
1116
1116
  "typeDescriptions": {
1117
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1117
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1118
1118
  "typeString": "Slice"
1119
1119
  },
1120
1120
  "typeName": {
1121
- "id": 2325,
1121
+ "id": 2337,
1122
1122
  "nodeType": "UserDefinedTypeName",
1123
1123
  "pathNode": {
1124
- "id": 2324,
1124
+ "id": 2336,
1125
1125
  "name": "Slice",
1126
1126
  "nodeType": "IdentifierPath",
1127
- "referencedDeclaration": 2280,
1127
+ "referencedDeclaration": 2292,
1128
1128
  "src": "870:5:6"
1129
1129
  },
1130
- "referencedDeclaration": 2280,
1130
+ "referencedDeclaration": 2292,
1131
1131
  "src": "870:5:6",
1132
1132
  "typeDescriptions": {
1133
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1133
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1134
1134
  "typeString": "Slice"
1135
1135
  }
1136
1136
  },
@@ -1139,18 +1139,18 @@
1139
1139
  ],
1140
1140
  "src": "869:7:6"
1141
1141
  },
1142
- "scope": 2425,
1142
+ "scope": 2437,
1143
1143
  "stateMutability": "pure",
1144
1144
  "virtual": false,
1145
1145
  "visibility": "internal"
1146
1146
  },
1147
1147
  {
1148
- "id": 2366,
1148
+ "id": 2378,
1149
1149
  "nodeType": "FunctionDefinition",
1150
1150
  "src": "1265:140:6",
1151
1151
  "nodes": [],
1152
1152
  "body": {
1153
- "id": 2365,
1153
+ "id": 2377,
1154
1154
  "nodeType": "Block",
1155
1155
  "src": "1350:55:6",
1156
1156
  "nodes": [],
@@ -1159,11 +1159,11 @@
1159
1159
  "expression": {
1160
1160
  "arguments": [
1161
1161
  {
1162
- "id": 2359,
1162
+ "id": 2371,
1163
1163
  "name": "data",
1164
1164
  "nodeType": "Identifier",
1165
1165
  "overloadedDeclarations": [],
1166
- "referencedDeclaration": 2350,
1166
+ "referencedDeclaration": 2362,
1167
1167
  "src": "1375:4:6",
1168
1168
  "typeDescriptions": {
1169
1169
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -1171,11 +1171,11 @@
1171
1171
  }
1172
1172
  },
1173
1173
  {
1174
- "id": 2360,
1174
+ "id": 2372,
1175
1175
  "name": "start",
1176
1176
  "nodeType": "Identifier",
1177
1177
  "overloadedDeclarations": [],
1178
- "referencedDeclaration": 2352,
1178
+ "referencedDeclaration": 2364,
1179
1179
  "src": "1381:5:6",
1180
1180
  "typeDescriptions": {
1181
1181
  "typeIdentifier": "t_uint256",
@@ -1184,18 +1184,18 @@
1184
1184
  },
1185
1185
  {
1186
1186
  "expression": {
1187
- "id": 2361,
1187
+ "id": 2373,
1188
1188
  "name": "data",
1189
1189
  "nodeType": "Identifier",
1190
1190
  "overloadedDeclarations": [],
1191
- "referencedDeclaration": 2350,
1191
+ "referencedDeclaration": 2362,
1192
1192
  "src": "1388:4:6",
1193
1193
  "typeDescriptions": {
1194
1194
  "typeIdentifier": "t_bytes_memory_ptr",
1195
1195
  "typeString": "bytes memory"
1196
1196
  }
1197
1197
  },
1198
- "id": 2362,
1198
+ "id": 2374,
1199
1199
  "isConstant": false,
1200
1200
  "isLValue": false,
1201
1201
  "isPure": false,
@@ -1224,21 +1224,21 @@
1224
1224
  "typeString": "uint256"
1225
1225
  }
1226
1226
  ],
1227
- "id": 2358,
1227
+ "id": 2370,
1228
1228
  "name": "getSubslice",
1229
1229
  "nodeType": "Identifier",
1230
1230
  "overloadedDeclarations": [
1231
- 2366,
1232
- 2424
1231
+ 2378,
1232
+ 2436
1233
1233
  ],
1234
- "referencedDeclaration": 2424,
1234
+ "referencedDeclaration": 2436,
1235
1235
  "src": "1363:11:6",
1236
1236
  "typeDescriptions": {
1237
- "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
1237
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
1238
1238
  "typeString": "function (bytes memory,uint256,uint256) pure returns (Slice)"
1239
1239
  }
1240
1240
  },
1241
- "id": 2363,
1241
+ "id": 2375,
1242
1242
  "isConstant": false,
1243
1243
  "isLValue": false,
1244
1244
  "isPure": false,
@@ -1249,19 +1249,19 @@
1249
1249
  "src": "1363:37:6",
1250
1250
  "tryCall": false,
1251
1251
  "typeDescriptions": {
1252
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1252
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1253
1253
  "typeString": "Slice"
1254
1254
  }
1255
1255
  },
1256
- "functionReturnParameters": 2357,
1257
- "id": 2364,
1256
+ "functionReturnParameters": 2369,
1257
+ "id": 2376,
1258
1258
  "nodeType": "Return",
1259
1259
  "src": "1356:44:6"
1260
1260
  }
1261
1261
  ]
1262
1262
  },
1263
1263
  "documentation": {
1264
- "id": 2348,
1264
+ "id": 2360,
1265
1265
  "nodeType": "StructuredDocumentation",
1266
1266
  "src": "1142:120:6",
1267
1267
  "text": " @dev Subslice a bytes array using the given start index until the end of the array (without copying data)"
@@ -1272,17 +1272,17 @@
1272
1272
  "name": "getSubslice",
1273
1273
  "nameLocation": "1274:11:6",
1274
1274
  "parameters": {
1275
- "id": 2353,
1275
+ "id": 2365,
1276
1276
  "nodeType": "ParameterList",
1277
1277
  "parameters": [
1278
1278
  {
1279
1279
  "constant": false,
1280
- "id": 2350,
1280
+ "id": 2362,
1281
1281
  "mutability": "mutable",
1282
1282
  "name": "data",
1283
1283
  "nameLocation": "1299:4:6",
1284
1284
  "nodeType": "VariableDeclaration",
1285
- "scope": 2366,
1285
+ "scope": 2378,
1286
1286
  "src": "1286:17:6",
1287
1287
  "stateVariable": false,
1288
1288
  "storageLocation": "memory",
@@ -1291,7 +1291,7 @@
1291
1291
  "typeString": "bytes"
1292
1292
  },
1293
1293
  "typeName": {
1294
- "id": 2349,
1294
+ "id": 2361,
1295
1295
  "name": "bytes",
1296
1296
  "nodeType": "ElementaryTypeName",
1297
1297
  "src": "1286:5:6",
@@ -1304,12 +1304,12 @@
1304
1304
  },
1305
1305
  {
1306
1306
  "constant": false,
1307
- "id": 2352,
1307
+ "id": 2364,
1308
1308
  "mutability": "mutable",
1309
1309
  "name": "start",
1310
1310
  "nameLocation": "1313:5:6",
1311
1311
  "nodeType": "VariableDeclaration",
1312
- "scope": 2366,
1312
+ "scope": 2378,
1313
1313
  "src": "1305:13:6",
1314
1314
  "stateVariable": false,
1315
1315
  "storageLocation": "default",
@@ -1318,7 +1318,7 @@
1318
1318
  "typeString": "uint256"
1319
1319
  },
1320
1320
  "typeName": {
1321
- "id": 2351,
1321
+ "id": 2363,
1322
1322
  "name": "uint256",
1323
1323
  "nodeType": "ElementaryTypeName",
1324
1324
  "src": "1305:7:6",
@@ -1333,38 +1333,38 @@
1333
1333
  "src": "1285:34:6"
1334
1334
  },
1335
1335
  "returnParameters": {
1336
- "id": 2357,
1336
+ "id": 2369,
1337
1337
  "nodeType": "ParameterList",
1338
1338
  "parameters": [
1339
1339
  {
1340
1340
  "constant": false,
1341
- "id": 2356,
1341
+ "id": 2368,
1342
1342
  "mutability": "mutable",
1343
1343
  "name": "",
1344
1344
  "nameLocation": "-1:-1:-1",
1345
1345
  "nodeType": "VariableDeclaration",
1346
- "scope": 2366,
1346
+ "scope": 2378,
1347
1347
  "src": "1343:5:6",
1348
1348
  "stateVariable": false,
1349
1349
  "storageLocation": "default",
1350
1350
  "typeDescriptions": {
1351
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1351
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1352
1352
  "typeString": "Slice"
1353
1353
  },
1354
1354
  "typeName": {
1355
- "id": 2355,
1355
+ "id": 2367,
1356
1356
  "nodeType": "UserDefinedTypeName",
1357
1357
  "pathNode": {
1358
- "id": 2354,
1358
+ "id": 2366,
1359
1359
  "name": "Slice",
1360
1360
  "nodeType": "IdentifierPath",
1361
- "referencedDeclaration": 2280,
1361
+ "referencedDeclaration": 2292,
1362
1362
  "src": "1343:5:6"
1363
1363
  },
1364
- "referencedDeclaration": 2280,
1364
+ "referencedDeclaration": 2292,
1365
1365
  "src": "1343:5:6",
1366
1366
  "typeDescriptions": {
1367
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1367
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1368
1368
  "typeString": "Slice"
1369
1369
  }
1370
1370
  },
@@ -1373,25 +1373,25 @@
1373
1373
  ],
1374
1374
  "src": "1342:7:6"
1375
1375
  },
1376
- "scope": 2425,
1376
+ "scope": 2437,
1377
1377
  "stateMutability": "pure",
1378
1378
  "virtual": false,
1379
1379
  "visibility": "internal"
1380
1380
  },
1381
1381
  {
1382
- "id": 2424,
1382
+ "id": 2436,
1383
1383
  "nodeType": "FunctionDefinition",
1384
1384
  "src": "1563:570:6",
1385
1385
  "nodes": [],
1386
1386
  "body": {
1387
- "id": 2423,
1387
+ "id": 2435,
1388
1388
  "nodeType": "Block",
1389
1389
  "src": "1661:472:6",
1390
1390
  "nodes": [],
1391
1391
  "statements": [
1392
1392
  {
1393
1393
  "condition": {
1394
- "id": 2388,
1394
+ "id": 2400,
1395
1395
  "isConstant": false,
1396
1396
  "isLValue": false,
1397
1397
  "isPure": false,
@@ -1407,7 +1407,7 @@
1407
1407
  "typeIdentifier": "t_bool",
1408
1408
  "typeString": "bool"
1409
1409
  },
1410
- "id": 2386,
1410
+ "id": 2398,
1411
1411
  "isConstant": false,
1412
1412
  "isLValue": false,
1413
1413
  "isPure": false,
@@ -1417,17 +1417,17 @@
1417
1417
  "typeIdentifier": "t_uint256",
1418
1418
  "typeString": "uint256"
1419
1419
  },
1420
- "id": 2381,
1420
+ "id": 2393,
1421
1421
  "isConstant": false,
1422
1422
  "isLValue": false,
1423
1423
  "isPure": false,
1424
1424
  "lValueRequested": false,
1425
1425
  "leftExpression": {
1426
- "id": 2379,
1426
+ "id": 2391,
1427
1427
  "name": "start",
1428
1428
  "nodeType": "Identifier",
1429
1429
  "overloadedDeclarations": [],
1430
- "referencedDeclaration": 2371,
1430
+ "referencedDeclaration": 2383,
1431
1431
  "src": "1743:5:6",
1432
1432
  "typeDescriptions": {
1433
1433
  "typeIdentifier": "t_uint256",
@@ -1437,11 +1437,11 @@
1437
1437
  "nodeType": "BinaryOperation",
1438
1438
  "operator": "<=",
1439
1439
  "rightExpression": {
1440
- "id": 2380,
1440
+ "id": 2392,
1441
1441
  "name": "end",
1442
1442
  "nodeType": "Identifier",
1443
1443
  "overloadedDeclarations": [],
1444
- "referencedDeclaration": 2373,
1444
+ "referencedDeclaration": 2385,
1445
1445
  "src": "1752:3:6",
1446
1446
  "typeDescriptions": {
1447
1447
  "typeIdentifier": "t_uint256",
@@ -1461,17 +1461,17 @@
1461
1461
  "typeIdentifier": "t_uint256",
1462
1462
  "typeString": "uint256"
1463
1463
  },
1464
- "id": 2385,
1464
+ "id": 2397,
1465
1465
  "isConstant": false,
1466
1466
  "isLValue": false,
1467
1467
  "isPure": false,
1468
1468
  "lValueRequested": false,
1469
1469
  "leftExpression": {
1470
- "id": 2382,
1470
+ "id": 2394,
1471
1471
  "name": "end",
1472
1472
  "nodeType": "Identifier",
1473
1473
  "overloadedDeclarations": [],
1474
- "referencedDeclaration": 2373,
1474
+ "referencedDeclaration": 2385,
1475
1475
  "src": "1759:3:6",
1476
1476
  "typeDescriptions": {
1477
1477
  "typeIdentifier": "t_uint256",
@@ -1482,18 +1482,18 @@
1482
1482
  "operator": "<=",
1483
1483
  "rightExpression": {
1484
1484
  "expression": {
1485
- "id": 2383,
1485
+ "id": 2395,
1486
1486
  "name": "data",
1487
1487
  "nodeType": "Identifier",
1488
1488
  "overloadedDeclarations": [],
1489
- "referencedDeclaration": 2369,
1489
+ "referencedDeclaration": 2381,
1490
1490
  "src": "1766:4:6",
1491
1491
  "typeDescriptions": {
1492
1492
  "typeIdentifier": "t_bytes_memory_ptr",
1493
1493
  "typeString": "bytes memory"
1494
1494
  }
1495
1495
  },
1496
- "id": 2384,
1496
+ "id": 2396,
1497
1497
  "isConstant": false,
1498
1498
  "isLValue": false,
1499
1499
  "isPure": false,
@@ -1519,7 +1519,7 @@
1519
1519
  }
1520
1520
  }
1521
1521
  ],
1522
- "id": 2387,
1522
+ "id": 2399,
1523
1523
  "isConstant": false,
1524
1524
  "isInlineArray": false,
1525
1525
  "isLValue": false,
@@ -1537,18 +1537,18 @@
1537
1537
  "typeString": "bool"
1538
1538
  }
1539
1539
  },
1540
- "id": 2395,
1540
+ "id": 2407,
1541
1541
  "nodeType": "IfStatement",
1542
1542
  "src": "1737:85:6",
1543
1543
  "trueBody": {
1544
1544
  "errorCall": {
1545
1545
  "arguments": [
1546
1546
  {
1547
- "id": 2390,
1547
+ "id": 2402,
1548
1548
  "name": "data",
1549
1549
  "nodeType": "Identifier",
1550
1550
  "overloadedDeclarations": [],
1551
- "referencedDeclaration": 2369,
1551
+ "referencedDeclaration": 2381,
1552
1552
  "src": "1805:4:6",
1553
1553
  "typeDescriptions": {
1554
1554
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -1556,11 +1556,11 @@
1556
1556
  }
1557
1557
  },
1558
1558
  {
1559
- "id": 2391,
1559
+ "id": 2403,
1560
1560
  "name": "start",
1561
1561
  "nodeType": "Identifier",
1562
1562
  "overloadedDeclarations": [],
1563
- "referencedDeclaration": 2371,
1563
+ "referencedDeclaration": 2383,
1564
1564
  "src": "1811:5:6",
1565
1565
  "typeDescriptions": {
1566
1566
  "typeIdentifier": "t_uint256",
@@ -1568,11 +1568,11 @@
1568
1568
  }
1569
1569
  },
1570
1570
  {
1571
- "id": 2392,
1571
+ "id": 2404,
1572
1572
  "name": "end",
1573
1573
  "nodeType": "Identifier",
1574
1574
  "overloadedDeclarations": [],
1575
- "referencedDeclaration": 2373,
1575
+ "referencedDeclaration": 2385,
1576
1576
  "src": "1818:3:6",
1577
1577
  "typeDescriptions": {
1578
1578
  "typeIdentifier": "t_uint256",
@@ -1595,18 +1595,18 @@
1595
1595
  "typeString": "uint256"
1596
1596
  }
1597
1597
  ],
1598
- "id": 2389,
1598
+ "id": 2401,
1599
1599
  "name": "Slice_OutOfBounds",
1600
1600
  "nodeType": "Identifier",
1601
1601
  "overloadedDeclarations": [],
1602
- "referencedDeclaration": 2297,
1602
+ "referencedDeclaration": 2309,
1603
1603
  "src": "1787:17:6",
1604
1604
  "typeDescriptions": {
1605
1605
  "typeIdentifier": "t_function_error_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$",
1606
1606
  "typeString": "function (bytes memory,uint256,uint256) pure"
1607
1607
  }
1608
1608
  },
1609
- "id": 2393,
1609
+ "id": 2405,
1610
1610
  "isConstant": false,
1611
1611
  "isLValue": false,
1612
1612
  "isPure": false,
@@ -1621,24 +1621,24 @@
1621
1621
  "typeString": "tuple()"
1622
1622
  }
1623
1623
  },
1624
- "id": 2394,
1624
+ "id": 2406,
1625
1625
  "nodeType": "RevertStatement",
1626
1626
  "src": "1780:42:6"
1627
1627
  }
1628
1628
  },
1629
1629
  {
1630
1630
  "assignments": [
1631
- 2397
1631
+ 2409
1632
1632
  ],
1633
1633
  "declarations": [
1634
1634
  {
1635
1635
  "constant": false,
1636
- "id": 2397,
1636
+ "id": 2409,
1637
1637
  "mutability": "mutable",
1638
1638
  "name": "_pointer",
1639
1639
  "nameLocation": "1837:8:6",
1640
1640
  "nodeType": "VariableDeclaration",
1641
- "scope": 2423,
1641
+ "scope": 2435,
1642
1642
  "src": "1829:16:6",
1643
1643
  "stateVariable": false,
1644
1644
  "storageLocation": "default",
@@ -1647,7 +1647,7 @@
1647
1647
  "typeString": "uint256"
1648
1648
  },
1649
1649
  "typeName": {
1650
- "id": 2396,
1650
+ "id": 2408,
1651
1651
  "name": "uint256",
1652
1652
  "nodeType": "ElementaryTypeName",
1653
1653
  "src": "1829:7:6",
@@ -1659,7 +1659,7 @@
1659
1659
  "visibility": "internal"
1660
1660
  }
1661
1661
  ],
1662
- "id": 2398,
1662
+ "id": 2410,
1663
1663
  "nodeType": "VariableDeclarationStatement",
1664
1664
  "src": "1829:16:6"
1665
1665
  },
@@ -1707,37 +1707,37 @@
1707
1707
  "evmVersion": "london",
1708
1708
  "externalReferences": [
1709
1709
  {
1710
- "declaration": 2397,
1710
+ "declaration": 2409,
1711
1711
  "isOffset": false,
1712
1712
  "isSlot": false,
1713
1713
  "src": "1868:8:6",
1714
1714
  "valueSize": 1
1715
1715
  },
1716
1716
  {
1717
- "declaration": 2369,
1717
+ "declaration": 2381,
1718
1718
  "isOffset": false,
1719
1719
  "isSlot": false,
1720
1720
  "src": "1884:4:6",
1721
1721
  "valueSize": 1
1722
1722
  }
1723
1723
  ],
1724
- "id": 2399,
1724
+ "id": 2411,
1725
1725
  "nodeType": "InlineAssembly",
1726
1726
  "src": "1851:80:6"
1727
1727
  },
1728
1728
  {
1729
1729
  "expression": {
1730
- "id": 2402,
1730
+ "id": 2414,
1731
1731
  "isConstant": false,
1732
1732
  "isLValue": false,
1733
1733
  "isPure": false,
1734
1734
  "lValueRequested": false,
1735
1735
  "leftHandSide": {
1736
- "id": 2400,
1736
+ "id": 2412,
1737
1737
  "name": "_pointer",
1738
1738
  "nodeType": "Identifier",
1739
1739
  "overloadedDeclarations": [],
1740
- "referencedDeclaration": 2397,
1740
+ "referencedDeclaration": 2409,
1741
1741
  "src": "1937:8:6",
1742
1742
  "typeDescriptions": {
1743
1743
  "typeIdentifier": "t_uint256",
@@ -1747,11 +1747,11 @@
1747
1747
  "nodeType": "Assignment",
1748
1748
  "operator": "+=",
1749
1749
  "rightHandSide": {
1750
- "id": 2401,
1750
+ "id": 2413,
1751
1751
  "name": "start",
1752
1752
  "nodeType": "Identifier",
1753
1753
  "overloadedDeclarations": [],
1754
- "referencedDeclaration": 2371,
1754
+ "referencedDeclaration": 2383,
1755
1755
  "src": "1949:5:6",
1756
1756
  "typeDescriptions": {
1757
1757
  "typeIdentifier": "t_uint256",
@@ -1764,23 +1764,23 @@
1764
1764
  "typeString": "uint256"
1765
1765
  }
1766
1766
  },
1767
- "id": 2403,
1767
+ "id": 2415,
1768
1768
  "nodeType": "ExpressionStatement",
1769
1769
  "src": "1937:17:6"
1770
1770
  },
1771
1771
  {
1772
1772
  "assignments": [
1773
- 2405
1773
+ 2417
1774
1774
  ],
1775
1775
  "declarations": [
1776
1776
  {
1777
1777
  "constant": false,
1778
- "id": 2405,
1778
+ "id": 2417,
1779
1779
  "mutability": "mutable",
1780
1780
  "name": "_len",
1781
1781
  "nameLocation": "1968:4:6",
1782
1782
  "nodeType": "VariableDeclaration",
1783
- "scope": 2423,
1783
+ "scope": 2435,
1784
1784
  "src": "1960:12:6",
1785
1785
  "stateVariable": false,
1786
1786
  "storageLocation": "default",
@@ -1789,7 +1789,7 @@
1789
1789
  "typeString": "uint256"
1790
1790
  },
1791
1791
  "typeName": {
1792
- "id": 2404,
1792
+ "id": 2416,
1793
1793
  "name": "uint256",
1794
1794
  "nodeType": "ElementaryTypeName",
1795
1795
  "src": "1960:7:6",
@@ -1801,23 +1801,23 @@
1801
1801
  "visibility": "internal"
1802
1802
  }
1803
1803
  ],
1804
- "id": 2409,
1804
+ "id": 2421,
1805
1805
  "initialValue": {
1806
1806
  "commonType": {
1807
1807
  "typeIdentifier": "t_uint256",
1808
1808
  "typeString": "uint256"
1809
1809
  },
1810
- "id": 2408,
1810
+ "id": 2420,
1811
1811
  "isConstant": false,
1812
1812
  "isLValue": false,
1813
1813
  "isPure": false,
1814
1814
  "lValueRequested": false,
1815
1815
  "leftExpression": {
1816
- "id": 2406,
1816
+ "id": 2418,
1817
1817
  "name": "end",
1818
1818
  "nodeType": "Identifier",
1819
1819
  "overloadedDeclarations": [],
1820
- "referencedDeclaration": 2373,
1820
+ "referencedDeclaration": 2385,
1821
1821
  "src": "1975:3:6",
1822
1822
  "typeDescriptions": {
1823
1823
  "typeIdentifier": "t_uint256",
@@ -1827,11 +1827,11 @@
1827
1827
  "nodeType": "BinaryOperation",
1828
1828
  "operator": "-",
1829
1829
  "rightExpression": {
1830
- "id": 2407,
1830
+ "id": 2419,
1831
1831
  "name": "start",
1832
1832
  "nodeType": "Identifier",
1833
1833
  "overloadedDeclarations": [],
1834
- "referencedDeclaration": 2371,
1834
+ "referencedDeclaration": 2383,
1835
1835
  "src": "1981:5:6",
1836
1836
  "typeDescriptions": {
1837
1837
  "typeIdentifier": "t_uint256",
@@ -1855,7 +1855,7 @@
1855
1855
  "typeIdentifier": "t_uint256",
1856
1856
  "typeString": "uint256"
1857
1857
  },
1858
- "id": 2420,
1858
+ "id": 2432,
1859
1859
  "isConstant": false,
1860
1860
  "isLValue": false,
1861
1861
  "isPure": false,
@@ -1867,17 +1867,17 @@
1867
1867
  "typeIdentifier": "t_uint256",
1868
1868
  "typeString": "uint256"
1869
1869
  },
1870
- "id": 2414,
1870
+ "id": 2426,
1871
1871
  "isConstant": false,
1872
1872
  "isLValue": false,
1873
1873
  "isPure": false,
1874
1874
  "lValueRequested": false,
1875
1875
  "leftExpression": {
1876
- "id": 2412,
1876
+ "id": 2424,
1877
1877
  "name": "_pointer",
1878
1878
  "nodeType": "Identifier",
1879
1879
  "overloadedDeclarations": [],
1880
- "referencedDeclaration": 2397,
1880
+ "referencedDeclaration": 2409,
1881
1881
  "src": "2091:8:6",
1882
1882
  "typeDescriptions": {
1883
1883
  "typeIdentifier": "t_uint256",
@@ -1888,7 +1888,7 @@
1888
1888
  "operator": "<<",
1889
1889
  "rightExpression": {
1890
1890
  "hexValue": "313238",
1891
- "id": 2413,
1891
+ "id": 2425,
1892
1892
  "isConstant": false,
1893
1893
  "isLValue": false,
1894
1894
  "isPure": true,
@@ -1909,7 +1909,7 @@
1909
1909
  }
1910
1910
  }
1911
1911
  ],
1912
- "id": 2415,
1912
+ "id": 2427,
1913
1913
  "isConstant": false,
1914
1914
  "isInlineArray": false,
1915
1915
  "isLValue": false,
@@ -1931,17 +1931,17 @@
1931
1931
  "typeIdentifier": "t_uint256",
1932
1932
  "typeString": "uint256"
1933
1933
  },
1934
- "id": 2418,
1934
+ "id": 2430,
1935
1935
  "isConstant": false,
1936
1936
  "isLValue": false,
1937
1937
  "isPure": false,
1938
1938
  "lValueRequested": false,
1939
1939
  "leftExpression": {
1940
- "id": 2416,
1940
+ "id": 2428,
1941
1941
  "name": "_len",
1942
1942
  "nodeType": "Identifier",
1943
1943
  "overloadedDeclarations": [],
1944
- "referencedDeclaration": 2405,
1944
+ "referencedDeclaration": 2417,
1945
1945
  "src": "2111:4:6",
1946
1946
  "typeDescriptions": {
1947
1947
  "typeIdentifier": "t_uint256",
@@ -1951,11 +1951,11 @@
1951
1951
  "nodeType": "BinaryOperation",
1952
1952
  "operator": "&",
1953
1953
  "rightExpression": {
1954
- "id": 2417,
1954
+ "id": 2429,
1955
1955
  "name": "MASK_LEN",
1956
1956
  "nodeType": "Identifier",
1957
1957
  "overloadedDeclarations": [],
1958
- "referencedDeclaration": 2307,
1958
+ "referencedDeclaration": 2319,
1959
1959
  "src": "2118:8:6",
1960
1960
  "typeDescriptions": {
1961
1961
  "typeIdentifier": "t_uint256",
@@ -1969,7 +1969,7 @@
1969
1969
  }
1970
1970
  }
1971
1971
  ],
1972
- "id": 2419,
1972
+ "id": 2431,
1973
1973
  "isConstant": false,
1974
1974
  "isInlineArray": false,
1975
1975
  "isLValue": false,
@@ -1997,18 +1997,18 @@
1997
1997
  }
1998
1998
  ],
1999
1999
  "expression": {
2000
- "id": 2410,
2000
+ "id": 2422,
2001
2001
  "name": "Slice",
2002
2002
  "nodeType": "Identifier",
2003
2003
  "overloadedDeclarations": [],
2004
- "referencedDeclaration": 2280,
2004
+ "referencedDeclaration": 2292,
2005
2005
  "src": "2079:5:6",
2006
2006
  "typeDescriptions": {
2007
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
2007
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
2008
2008
  "typeString": "type(Slice)"
2009
2009
  }
2010
2010
  },
2011
- "id": 2411,
2011
+ "id": 2423,
2012
2012
  "isConstant": false,
2013
2013
  "isLValue": false,
2014
2014
  "isPure": true,
@@ -2017,11 +2017,11 @@
2017
2017
  "nodeType": "MemberAccess",
2018
2018
  "src": "2079:10:6",
2019
2019
  "typeDescriptions": {
2020
- "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
2020
+ "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
2021
2021
  "typeString": "function (uint256) pure returns (Slice)"
2022
2022
  }
2023
2023
  },
2024
- "id": 2421,
2024
+ "id": 2433,
2025
2025
  "isConstant": false,
2026
2026
  "isLValue": false,
2027
2027
  "isPure": false,
@@ -2032,19 +2032,19 @@
2032
2032
  "src": "2079:49:6",
2033
2033
  "tryCall": false,
2034
2034
  "typeDescriptions": {
2035
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2035
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2036
2036
  "typeString": "Slice"
2037
2037
  }
2038
2038
  },
2039
- "functionReturnParameters": 2378,
2040
- "id": 2422,
2039
+ "functionReturnParameters": 2390,
2040
+ "id": 2434,
2041
2041
  "nodeType": "Return",
2042
2042
  "src": "2072:56:6"
2043
2043
  }
2044
2044
  ]
2045
2045
  },
2046
2046
  "documentation": {
2047
- "id": 2367,
2047
+ "id": 2379,
2048
2048
  "nodeType": "StructuredDocumentation",
2049
2049
  "src": "1409:151:6",
2050
2050
  "text": " @dev Subslice a bytes array using the given indexes (without copying data)\n The start index is inclusive, the end index is exclusive"
@@ -2055,17 +2055,17 @@
2055
2055
  "name": "getSubslice",
2056
2056
  "nameLocation": "1572:11:6",
2057
2057
  "parameters": {
2058
- "id": 2374,
2058
+ "id": 2386,
2059
2059
  "nodeType": "ParameterList",
2060
2060
  "parameters": [
2061
2061
  {
2062
2062
  "constant": false,
2063
- "id": 2369,
2063
+ "id": 2381,
2064
2064
  "mutability": "mutable",
2065
2065
  "name": "data",
2066
2066
  "nameLocation": "1597:4:6",
2067
2067
  "nodeType": "VariableDeclaration",
2068
- "scope": 2424,
2068
+ "scope": 2436,
2069
2069
  "src": "1584:17:6",
2070
2070
  "stateVariable": false,
2071
2071
  "storageLocation": "memory",
@@ -2074,7 +2074,7 @@
2074
2074
  "typeString": "bytes"
2075
2075
  },
2076
2076
  "typeName": {
2077
- "id": 2368,
2077
+ "id": 2380,
2078
2078
  "name": "bytes",
2079
2079
  "nodeType": "ElementaryTypeName",
2080
2080
  "src": "1584:5:6",
@@ -2087,12 +2087,12 @@
2087
2087
  },
2088
2088
  {
2089
2089
  "constant": false,
2090
- "id": 2371,
2090
+ "id": 2383,
2091
2091
  "mutability": "mutable",
2092
2092
  "name": "start",
2093
2093
  "nameLocation": "1611:5:6",
2094
2094
  "nodeType": "VariableDeclaration",
2095
- "scope": 2424,
2095
+ "scope": 2436,
2096
2096
  "src": "1603:13:6",
2097
2097
  "stateVariable": false,
2098
2098
  "storageLocation": "default",
@@ -2101,7 +2101,7 @@
2101
2101
  "typeString": "uint256"
2102
2102
  },
2103
2103
  "typeName": {
2104
- "id": 2370,
2104
+ "id": 2382,
2105
2105
  "name": "uint256",
2106
2106
  "nodeType": "ElementaryTypeName",
2107
2107
  "src": "1603:7:6",
@@ -2114,12 +2114,12 @@
2114
2114
  },
2115
2115
  {
2116
2116
  "constant": false,
2117
- "id": 2373,
2117
+ "id": 2385,
2118
2118
  "mutability": "mutable",
2119
2119
  "name": "end",
2120
2120
  "nameLocation": "1626:3:6",
2121
2121
  "nodeType": "VariableDeclaration",
2122
- "scope": 2424,
2122
+ "scope": 2436,
2123
2123
  "src": "1618:11:6",
2124
2124
  "stateVariable": false,
2125
2125
  "storageLocation": "default",
@@ -2128,7 +2128,7 @@
2128
2128
  "typeString": "uint256"
2129
2129
  },
2130
2130
  "typeName": {
2131
- "id": 2372,
2131
+ "id": 2384,
2132
2132
  "name": "uint256",
2133
2133
  "nodeType": "ElementaryTypeName",
2134
2134
  "src": "1618:7:6",
@@ -2143,38 +2143,38 @@
2143
2143
  "src": "1583:47:6"
2144
2144
  },
2145
2145
  "returnParameters": {
2146
- "id": 2378,
2146
+ "id": 2390,
2147
2147
  "nodeType": "ParameterList",
2148
2148
  "parameters": [
2149
2149
  {
2150
2150
  "constant": false,
2151
- "id": 2377,
2151
+ "id": 2389,
2152
2152
  "mutability": "mutable",
2153
2153
  "name": "",
2154
2154
  "nameLocation": "-1:-1:-1",
2155
2155
  "nodeType": "VariableDeclaration",
2156
- "scope": 2424,
2156
+ "scope": 2436,
2157
2157
  "src": "1654:5:6",
2158
2158
  "stateVariable": false,
2159
2159
  "storageLocation": "default",
2160
2160
  "typeDescriptions": {
2161
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2161
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2162
2162
  "typeString": "Slice"
2163
2163
  },
2164
2164
  "typeName": {
2165
- "id": 2376,
2165
+ "id": 2388,
2166
2166
  "nodeType": "UserDefinedTypeName",
2167
2167
  "pathNode": {
2168
- "id": 2375,
2168
+ "id": 2387,
2169
2169
  "name": "Slice",
2170
2170
  "nodeType": "IdentifierPath",
2171
- "referencedDeclaration": 2280,
2171
+ "referencedDeclaration": 2292,
2172
2172
  "src": "1654:5:6"
2173
2173
  },
2174
- "referencedDeclaration": 2280,
2174
+ "referencedDeclaration": 2292,
2175
2175
  "src": "1654:5:6",
2176
2176
  "typeDescriptions": {
2177
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2177
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2178
2178
  "typeString": "Slice"
2179
2179
  }
2180
2180
  },
@@ -2183,7 +2183,7 @@
2183
2183
  ],
2184
2184
  "src": "1653:7:6"
2185
2185
  },
2186
- "scope": 2425,
2186
+ "scope": 2437,
2187
2187
  "stateMutability": "pure",
2188
2188
  "virtual": false,
2189
2189
  "visibility": "internal"
@@ -2195,34 +2195,34 @@
2195
2195
  "contractDependencies": [],
2196
2196
  "contractKind": "library",
2197
2197
  "documentation": {
2198
- "id": 2289,
2198
+ "id": 2301,
2199
2199
  "nodeType": "StructuredDocumentation",
2200
2200
  "src": "472:44:6",
2201
2201
  "text": " @title Static functions for Slice"
2202
2202
  },
2203
2203
  "fullyImplemented": true,
2204
2204
  "linearizedBaseContracts": [
2205
- 2425
2205
+ 2437
2206
2206
  ],
2207
2207
  "name": "SliceLib",
2208
2208
  "nameLocation": "525:8:6",
2209
- "scope": 2522,
2209
+ "scope": 2534,
2210
2210
  "usedErrors": [
2211
- 2297
2211
+ 2309
2212
2212
  ]
2213
2213
  },
2214
2214
  {
2215
- "id": 2521,
2215
+ "id": 2533,
2216
2216
  "nodeType": "ContractDefinition",
2217
2217
  "src": "2184:1146:6",
2218
2218
  "nodes": [
2219
2219
  {
2220
- "id": 2443,
2220
+ "id": 2455,
2221
2221
  "nodeType": "FunctionDefinition",
2222
2222
  "src": "2276:104:6",
2223
2223
  "nodes": [],
2224
2224
  "body": {
2225
- "id": 2442,
2225
+ "id": 2454,
2226
2226
  "nodeType": "Block",
2227
2227
  "src": "2337:43:6",
2228
2228
  "nodes": [],
@@ -2233,7 +2233,7 @@
2233
2233
  "typeIdentifier": "t_uint256",
2234
2234
  "typeString": "uint256"
2235
2235
  },
2236
- "id": 2440,
2236
+ "id": 2452,
2237
2237
  "isConstant": false,
2238
2238
  "isLValue": false,
2239
2239
  "isPure": false,
@@ -2241,14 +2241,14 @@
2241
2241
  "leftExpression": {
2242
2242
  "arguments": [
2243
2243
  {
2244
- "id": 2437,
2244
+ "id": 2449,
2245
2245
  "name": "self",
2246
2246
  "nodeType": "Identifier",
2247
2247
  "overloadedDeclarations": [],
2248
- "referencedDeclaration": 2430,
2248
+ "referencedDeclaration": 2442,
2249
2249
  "src": "2363:4:6",
2250
2250
  "typeDescriptions": {
2251
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2251
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2252
2252
  "typeString": "Slice"
2253
2253
  }
2254
2254
  }
@@ -2256,23 +2256,23 @@
2256
2256
  "expression": {
2257
2257
  "argumentTypes": [
2258
2258
  {
2259
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2259
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2260
2260
  "typeString": "Slice"
2261
2261
  }
2262
2262
  ],
2263
2263
  "expression": {
2264
- "id": 2435,
2264
+ "id": 2447,
2265
2265
  "name": "Slice",
2266
2266
  "nodeType": "Identifier",
2267
2267
  "overloadedDeclarations": [],
2268
- "referencedDeclaration": 2280,
2268
+ "referencedDeclaration": 2292,
2269
2269
  "src": "2350:5:6",
2270
2270
  "typeDescriptions": {
2271
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
2271
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
2272
2272
  "typeString": "type(Slice)"
2273
2273
  }
2274
2274
  },
2275
- "id": 2436,
2275
+ "id": 2448,
2276
2276
  "isConstant": false,
2277
2277
  "isLValue": false,
2278
2278
  "isPure": true,
@@ -2281,11 +2281,11 @@
2281
2281
  "nodeType": "MemberAccess",
2282
2282
  "src": "2350:12:6",
2283
2283
  "typeDescriptions": {
2284
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2284
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2285
2285
  "typeString": "function (Slice) pure returns (uint256)"
2286
2286
  }
2287
2287
  },
2288
- "id": 2438,
2288
+ "id": 2450,
2289
2289
  "isConstant": false,
2290
2290
  "isLValue": false,
2291
2291
  "isPure": false,
@@ -2304,7 +2304,7 @@
2304
2304
  "operator": ">>",
2305
2305
  "rightExpression": {
2306
2306
  "hexValue": "313238",
2307
- "id": 2439,
2307
+ "id": 2451,
2308
2308
  "isConstant": false,
2309
2309
  "isLValue": false,
2310
2310
  "isPure": true,
@@ -2324,15 +2324,15 @@
2324
2324
  "typeString": "uint256"
2325
2325
  }
2326
2326
  },
2327
- "functionReturnParameters": 2434,
2328
- "id": 2441,
2327
+ "functionReturnParameters": 2446,
2328
+ "id": 2453,
2329
2329
  "nodeType": "Return",
2330
2330
  "src": "2343:32:6"
2331
2331
  }
2332
2332
  ]
2333
2333
  },
2334
2334
  "documentation": {
2335
- "id": 2427,
2335
+ "id": 2439,
2336
2336
  "nodeType": "StructuredDocumentation",
2337
2337
  "src": "2210:63:6",
2338
2338
  "text": " @dev Returns the pointer to the start of a slice"
@@ -2343,38 +2343,38 @@
2343
2343
  "name": "pointer",
2344
2344
  "nameLocation": "2285:7:6",
2345
2345
  "parameters": {
2346
- "id": 2431,
2346
+ "id": 2443,
2347
2347
  "nodeType": "ParameterList",
2348
2348
  "parameters": [
2349
2349
  {
2350
2350
  "constant": false,
2351
- "id": 2430,
2351
+ "id": 2442,
2352
2352
  "mutability": "mutable",
2353
2353
  "name": "self",
2354
2354
  "nameLocation": "2299:4:6",
2355
2355
  "nodeType": "VariableDeclaration",
2356
- "scope": 2443,
2356
+ "scope": 2455,
2357
2357
  "src": "2293:10:6",
2358
2358
  "stateVariable": false,
2359
2359
  "storageLocation": "default",
2360
2360
  "typeDescriptions": {
2361
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2361
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2362
2362
  "typeString": "Slice"
2363
2363
  },
2364
2364
  "typeName": {
2365
- "id": 2429,
2365
+ "id": 2441,
2366
2366
  "nodeType": "UserDefinedTypeName",
2367
2367
  "pathNode": {
2368
- "id": 2428,
2368
+ "id": 2440,
2369
2369
  "name": "Slice",
2370
2370
  "nodeType": "IdentifierPath",
2371
- "referencedDeclaration": 2280,
2371
+ "referencedDeclaration": 2292,
2372
2372
  "src": "2293:5:6"
2373
2373
  },
2374
- "referencedDeclaration": 2280,
2374
+ "referencedDeclaration": 2292,
2375
2375
  "src": "2293:5:6",
2376
2376
  "typeDescriptions": {
2377
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2377
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2378
2378
  "typeString": "Slice"
2379
2379
  }
2380
2380
  },
@@ -2384,17 +2384,17 @@
2384
2384
  "src": "2292:12:6"
2385
2385
  },
2386
2386
  "returnParameters": {
2387
- "id": 2434,
2387
+ "id": 2446,
2388
2388
  "nodeType": "ParameterList",
2389
2389
  "parameters": [
2390
2390
  {
2391
2391
  "constant": false,
2392
- "id": 2433,
2392
+ "id": 2445,
2393
2393
  "mutability": "mutable",
2394
2394
  "name": "",
2395
2395
  "nameLocation": "-1:-1:-1",
2396
2396
  "nodeType": "VariableDeclaration",
2397
- "scope": 2443,
2397
+ "scope": 2455,
2398
2398
  "src": "2328:7:6",
2399
2399
  "stateVariable": false,
2400
2400
  "storageLocation": "default",
@@ -2403,7 +2403,7 @@
2403
2403
  "typeString": "uint256"
2404
2404
  },
2405
2405
  "typeName": {
2406
- "id": 2432,
2406
+ "id": 2444,
2407
2407
  "name": "uint256",
2408
2408
  "nodeType": "ElementaryTypeName",
2409
2409
  "src": "2328:7:6",
@@ -2417,18 +2417,18 @@
2417
2417
  ],
2418
2418
  "src": "2327:9:6"
2419
2419
  },
2420
- "scope": 2521,
2420
+ "scope": 2533,
2421
2421
  "stateMutability": "pure",
2422
2422
  "virtual": false,
2423
2423
  "visibility": "internal"
2424
2424
  },
2425
2425
  {
2426
- "id": 2461,
2426
+ "id": 2473,
2427
2427
  "nodeType": "FunctionDefinition",
2428
2428
  "src": "2440:116:6",
2429
2429
  "nodes": [],
2430
2430
  "body": {
2431
- "id": 2460,
2431
+ "id": 2472,
2432
2432
  "nodeType": "Block",
2433
2433
  "src": "2500:56:6",
2434
2434
  "nodes": [],
@@ -2439,7 +2439,7 @@
2439
2439
  "typeIdentifier": "t_uint256",
2440
2440
  "typeString": "uint256"
2441
2441
  },
2442
- "id": 2458,
2442
+ "id": 2470,
2443
2443
  "isConstant": false,
2444
2444
  "isLValue": false,
2445
2445
  "isPure": false,
@@ -2447,14 +2447,14 @@
2447
2447
  "leftExpression": {
2448
2448
  "arguments": [
2449
2449
  {
2450
- "id": 2454,
2450
+ "id": 2466,
2451
2451
  "name": "self",
2452
2452
  "nodeType": "Identifier",
2453
2453
  "overloadedDeclarations": [],
2454
- "referencedDeclaration": 2447,
2454
+ "referencedDeclaration": 2459,
2455
2455
  "src": "2526:4:6",
2456
2456
  "typeDescriptions": {
2457
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2457
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2458
2458
  "typeString": "Slice"
2459
2459
  }
2460
2460
  }
@@ -2462,23 +2462,23 @@
2462
2462
  "expression": {
2463
2463
  "argumentTypes": [
2464
2464
  {
2465
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2465
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2466
2466
  "typeString": "Slice"
2467
2467
  }
2468
2468
  ],
2469
2469
  "expression": {
2470
- "id": 2452,
2470
+ "id": 2464,
2471
2471
  "name": "Slice",
2472
2472
  "nodeType": "Identifier",
2473
2473
  "overloadedDeclarations": [],
2474
- "referencedDeclaration": 2280,
2474
+ "referencedDeclaration": 2292,
2475
2475
  "src": "2513:5:6",
2476
2476
  "typeDescriptions": {
2477
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
2477
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
2478
2478
  "typeString": "type(Slice)"
2479
2479
  }
2480
2480
  },
2481
- "id": 2453,
2481
+ "id": 2465,
2482
2482
  "isConstant": false,
2483
2483
  "isLValue": false,
2484
2484
  "isPure": true,
@@ -2487,11 +2487,11 @@
2487
2487
  "nodeType": "MemberAccess",
2488
2488
  "src": "2513:12:6",
2489
2489
  "typeDescriptions": {
2490
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2490
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2491
2491
  "typeString": "function (Slice) pure returns (uint256)"
2492
2492
  }
2493
2493
  },
2494
- "id": 2455,
2494
+ "id": 2467,
2495
2495
  "isConstant": false,
2496
2496
  "isLValue": false,
2497
2497
  "isPure": false,
@@ -2510,25 +2510,25 @@
2510
2510
  "operator": "&",
2511
2511
  "rightExpression": {
2512
2512
  "expression": {
2513
- "id": 2456,
2513
+ "id": 2468,
2514
2514
  "name": "SliceLib",
2515
2515
  "nodeType": "Identifier",
2516
2516
  "overloadedDeclarations": [],
2517
- "referencedDeclaration": 2425,
2517
+ "referencedDeclaration": 2437,
2518
2518
  "src": "2534:8:6",
2519
2519
  "typeDescriptions": {
2520
- "typeIdentifier": "t_type$_t_contract$_SliceLib_$2425_$",
2520
+ "typeIdentifier": "t_type$_t_contract$_SliceLib_$2437_$",
2521
2521
  "typeString": "type(library SliceLib)"
2522
2522
  }
2523
2523
  },
2524
- "id": 2457,
2524
+ "id": 2469,
2525
2525
  "isConstant": false,
2526
2526
  "isLValue": false,
2527
2527
  "isPure": false,
2528
2528
  "lValueRequested": false,
2529
2529
  "memberName": "MASK_LEN",
2530
2530
  "nodeType": "MemberAccess",
2531
- "referencedDeclaration": 2307,
2531
+ "referencedDeclaration": 2319,
2532
2532
  "src": "2534:17:6",
2533
2533
  "typeDescriptions": {
2534
2534
  "typeIdentifier": "t_uint256",
@@ -2541,15 +2541,15 @@
2541
2541
  "typeString": "uint256"
2542
2542
  }
2543
2543
  },
2544
- "functionReturnParameters": 2451,
2545
- "id": 2459,
2544
+ "functionReturnParameters": 2463,
2545
+ "id": 2471,
2546
2546
  "nodeType": "Return",
2547
2547
  "src": "2506:45:6"
2548
2548
  }
2549
2549
  ]
2550
2550
  },
2551
2551
  "documentation": {
2552
- "id": 2444,
2552
+ "id": 2456,
2553
2553
  "nodeType": "StructuredDocumentation",
2554
2554
  "src": "2384:53:6",
2555
2555
  "text": " @dev Returns the slice length in bytes"
@@ -2560,38 +2560,38 @@
2560
2560
  "name": "length",
2561
2561
  "nameLocation": "2449:6:6",
2562
2562
  "parameters": {
2563
- "id": 2448,
2563
+ "id": 2460,
2564
2564
  "nodeType": "ParameterList",
2565
2565
  "parameters": [
2566
2566
  {
2567
2567
  "constant": false,
2568
- "id": 2447,
2568
+ "id": 2459,
2569
2569
  "mutability": "mutable",
2570
2570
  "name": "self",
2571
2571
  "nameLocation": "2462:4:6",
2572
2572
  "nodeType": "VariableDeclaration",
2573
- "scope": 2461,
2573
+ "scope": 2473,
2574
2574
  "src": "2456:10:6",
2575
2575
  "stateVariable": false,
2576
2576
  "storageLocation": "default",
2577
2577
  "typeDescriptions": {
2578
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2578
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2579
2579
  "typeString": "Slice"
2580
2580
  },
2581
2581
  "typeName": {
2582
- "id": 2446,
2582
+ "id": 2458,
2583
2583
  "nodeType": "UserDefinedTypeName",
2584
2584
  "pathNode": {
2585
- "id": 2445,
2585
+ "id": 2457,
2586
2586
  "name": "Slice",
2587
2587
  "nodeType": "IdentifierPath",
2588
- "referencedDeclaration": 2280,
2588
+ "referencedDeclaration": 2292,
2589
2589
  "src": "2456:5:6"
2590
2590
  },
2591
- "referencedDeclaration": 2280,
2591
+ "referencedDeclaration": 2292,
2592
2592
  "src": "2456:5:6",
2593
2593
  "typeDescriptions": {
2594
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2594
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2595
2595
  "typeString": "Slice"
2596
2596
  }
2597
2597
  },
@@ -2601,17 +2601,17 @@
2601
2601
  "src": "2455:12:6"
2602
2602
  },
2603
2603
  "returnParameters": {
2604
- "id": 2451,
2604
+ "id": 2463,
2605
2605
  "nodeType": "ParameterList",
2606
2606
  "parameters": [
2607
2607
  {
2608
2608
  "constant": false,
2609
- "id": 2450,
2609
+ "id": 2462,
2610
2610
  "mutability": "mutable",
2611
2611
  "name": "",
2612
2612
  "nameLocation": "-1:-1:-1",
2613
2613
  "nodeType": "VariableDeclaration",
2614
- "scope": 2461,
2614
+ "scope": 2473,
2615
2615
  "src": "2491:7:6",
2616
2616
  "stateVariable": false,
2617
2617
  "storageLocation": "default",
@@ -2620,7 +2620,7 @@
2620
2620
  "typeString": "uint256"
2621
2621
  },
2622
2622
  "typeName": {
2623
- "id": 2449,
2623
+ "id": 2461,
2624
2624
  "name": "uint256",
2625
2625
  "nodeType": "ElementaryTypeName",
2626
2626
  "src": "2491:7:6",
@@ -2634,35 +2634,35 @@
2634
2634
  ],
2635
2635
  "src": "2490:9:6"
2636
2636
  },
2637
- "scope": 2521,
2637
+ "scope": 2533,
2638
2638
  "stateMutability": "pure",
2639
2639
  "virtual": false,
2640
2640
  "visibility": "internal"
2641
2641
  },
2642
2642
  {
2643
- "id": 2502,
2643
+ "id": 2514,
2644
2644
  "nodeType": "FunctionDefinition",
2645
2645
  "src": "2673:416:6",
2646
2646
  "nodes": [],
2647
2647
  "body": {
2648
- "id": 2501,
2648
+ "id": 2513,
2649
2649
  "nodeType": "Block",
2650
2650
  "src": "2744:345:6",
2651
2651
  "nodes": [],
2652
2652
  "statements": [
2653
2653
  {
2654
2654
  "assignments": [
2655
- 2471
2655
+ 2483
2656
2656
  ],
2657
2657
  "declarations": [
2658
2658
  {
2659
2659
  "constant": false,
2660
- "id": 2471,
2660
+ "id": 2483,
2661
2661
  "mutability": "mutable",
2662
2662
  "name": "fromPointer",
2663
2663
  "nameLocation": "2758:11:6",
2664
2664
  "nodeType": "VariableDeclaration",
2665
- "scope": 2501,
2665
+ "scope": 2513,
2666
2666
  "src": "2750:19:6",
2667
2667
  "stateVariable": false,
2668
2668
  "storageLocation": "default",
@@ -2671,7 +2671,7 @@
2671
2671
  "typeString": "uint256"
2672
2672
  },
2673
2673
  "typeName": {
2674
- "id": 2470,
2674
+ "id": 2482,
2675
2675
  "name": "uint256",
2676
2676
  "nodeType": "ElementaryTypeName",
2677
2677
  "src": "2750:7:6",
@@ -2683,18 +2683,18 @@
2683
2683
  "visibility": "internal"
2684
2684
  }
2685
2685
  ],
2686
- "id": 2475,
2686
+ "id": 2487,
2687
2687
  "initialValue": {
2688
2688
  "arguments": [
2689
2689
  {
2690
- "id": 2473,
2690
+ "id": 2485,
2691
2691
  "name": "self",
2692
2692
  "nodeType": "Identifier",
2693
2693
  "overloadedDeclarations": [],
2694
- "referencedDeclaration": 2465,
2694
+ "referencedDeclaration": 2477,
2695
2695
  "src": "2780:4:6",
2696
2696
  "typeDescriptions": {
2697
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2697
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2698
2698
  "typeString": "Slice"
2699
2699
  }
2700
2700
  }
@@ -2702,22 +2702,22 @@
2702
2702
  "expression": {
2703
2703
  "argumentTypes": [
2704
2704
  {
2705
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2705
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2706
2706
  "typeString": "Slice"
2707
2707
  }
2708
2708
  ],
2709
- "id": 2472,
2709
+ "id": 2484,
2710
2710
  "name": "pointer",
2711
2711
  "nodeType": "Identifier",
2712
2712
  "overloadedDeclarations": [],
2713
- "referencedDeclaration": 2443,
2713
+ "referencedDeclaration": 2455,
2714
2714
  "src": "2772:7:6",
2715
2715
  "typeDescriptions": {
2716
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2716
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2717
2717
  "typeString": "function (Slice) pure returns (uint256)"
2718
2718
  }
2719
2719
  },
2720
- "id": 2474,
2720
+ "id": 2486,
2721
2721
  "isConstant": false,
2722
2722
  "isLValue": false,
2723
2723
  "isPure": false,
@@ -2737,17 +2737,17 @@
2737
2737
  },
2738
2738
  {
2739
2739
  "assignments": [
2740
- 2477
2740
+ 2489
2741
2741
  ],
2742
2742
  "declarations": [
2743
2743
  {
2744
2744
  "constant": false,
2745
- "id": 2477,
2745
+ "id": 2489,
2746
2746
  "mutability": "mutable",
2747
2747
  "name": "_length",
2748
2748
  "nameLocation": "2799:7:6",
2749
2749
  "nodeType": "VariableDeclaration",
2750
- "scope": 2501,
2750
+ "scope": 2513,
2751
2751
  "src": "2791:15:6",
2752
2752
  "stateVariable": false,
2753
2753
  "storageLocation": "default",
@@ -2756,7 +2756,7 @@
2756
2756
  "typeString": "uint256"
2757
2757
  },
2758
2758
  "typeName": {
2759
- "id": 2476,
2759
+ "id": 2488,
2760
2760
  "name": "uint256",
2761
2761
  "nodeType": "ElementaryTypeName",
2762
2762
  "src": "2791:7:6",
@@ -2768,18 +2768,18 @@
2768
2768
  "visibility": "internal"
2769
2769
  }
2770
2770
  ],
2771
- "id": 2481,
2771
+ "id": 2493,
2772
2772
  "initialValue": {
2773
2773
  "arguments": [
2774
2774
  {
2775
- "id": 2479,
2775
+ "id": 2491,
2776
2776
  "name": "self",
2777
2777
  "nodeType": "Identifier",
2778
2778
  "overloadedDeclarations": [],
2779
- "referencedDeclaration": 2465,
2779
+ "referencedDeclaration": 2477,
2780
2780
  "src": "2816:4:6",
2781
2781
  "typeDescriptions": {
2782
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2782
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2783
2783
  "typeString": "Slice"
2784
2784
  }
2785
2785
  }
@@ -2787,22 +2787,22 @@
2787
2787
  "expression": {
2788
2788
  "argumentTypes": [
2789
2789
  {
2790
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2790
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2791
2791
  "typeString": "Slice"
2792
2792
  }
2793
2793
  ],
2794
- "id": 2478,
2794
+ "id": 2490,
2795
2795
  "name": "length",
2796
2796
  "nodeType": "Identifier",
2797
2797
  "overloadedDeclarations": [],
2798
- "referencedDeclaration": 2461,
2798
+ "referencedDeclaration": 2473,
2799
2799
  "src": "2809:6:6",
2800
2800
  "typeDescriptions": {
2801
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2801
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2802
2802
  "typeString": "function (Slice) pure returns (uint256)"
2803
2803
  }
2804
2804
  },
2805
- "id": 2480,
2805
+ "id": 2492,
2806
2806
  "isConstant": false,
2807
2807
  "isLValue": false,
2808
2808
  "isPure": false,
@@ -2822,17 +2822,17 @@
2822
2822
  },
2823
2823
  {
2824
2824
  "expression": {
2825
- "id": 2487,
2825
+ "id": 2499,
2826
2826
  "isConstant": false,
2827
2827
  "isLValue": false,
2828
2828
  "isPure": false,
2829
2829
  "lValueRequested": false,
2830
2830
  "leftHandSide": {
2831
- "id": 2482,
2831
+ "id": 2494,
2832
2832
  "name": "data",
2833
2833
  "nodeType": "Identifier",
2834
2834
  "overloadedDeclarations": [],
2835
- "referencedDeclaration": 2468,
2835
+ "referencedDeclaration": 2480,
2836
2836
  "src": "2888:4:6",
2837
2837
  "typeDescriptions": {
2838
2838
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -2844,11 +2844,11 @@
2844
2844
  "rightHandSide": {
2845
2845
  "arguments": [
2846
2846
  {
2847
- "id": 2485,
2847
+ "id": 2497,
2848
2848
  "name": "_length",
2849
2849
  "nodeType": "Identifier",
2850
2850
  "overloadedDeclarations": [],
2851
- "referencedDeclaration": 2477,
2851
+ "referencedDeclaration": 2489,
2852
2852
  "src": "2905:7:6",
2853
2853
  "typeDescriptions": {
2854
2854
  "typeIdentifier": "t_uint256",
@@ -2863,7 +2863,7 @@
2863
2863
  "typeString": "uint256"
2864
2864
  }
2865
2865
  ],
2866
- "id": 2484,
2866
+ "id": 2496,
2867
2867
  "isConstant": false,
2868
2868
  "isLValue": false,
2869
2869
  "isPure": true,
@@ -2875,7 +2875,7 @@
2875
2875
  "typeString": "function (uint256) pure returns (bytes memory)"
2876
2876
  },
2877
2877
  "typeName": {
2878
- "id": 2483,
2878
+ "id": 2495,
2879
2879
  "name": "bytes",
2880
2880
  "nodeType": "ElementaryTypeName",
2881
2881
  "src": "2899:5:6",
@@ -2885,7 +2885,7 @@
2885
2885
  }
2886
2886
  }
2887
2887
  },
2888
- "id": 2486,
2888
+ "id": 2498,
2889
2889
  "isConstant": false,
2890
2890
  "isLValue": false,
2891
2891
  "isPure": false,
@@ -2906,23 +2906,23 @@
2906
2906
  "typeString": "bytes memory"
2907
2907
  }
2908
2908
  },
2909
- "id": 2488,
2909
+ "id": 2500,
2910
2910
  "nodeType": "ExpressionStatement",
2911
2911
  "src": "2888:25:6"
2912
2912
  },
2913
2913
  {
2914
2914
  "assignments": [
2915
- 2490
2915
+ 2502
2916
2916
  ],
2917
2917
  "declarations": [
2918
2918
  {
2919
2919
  "constant": false,
2920
- "id": 2490,
2920
+ "id": 2502,
2921
2921
  "mutability": "mutable",
2922
2922
  "name": "toPointer",
2923
2923
  "nameLocation": "2927:9:6",
2924
2924
  "nodeType": "VariableDeclaration",
2925
- "scope": 2501,
2925
+ "scope": 2513,
2926
2926
  "src": "2919:17:6",
2927
2927
  "stateVariable": false,
2928
2928
  "storageLocation": "default",
@@ -2931,7 +2931,7 @@
2931
2931
  "typeString": "uint256"
2932
2932
  },
2933
2933
  "typeName": {
2934
- "id": 2489,
2934
+ "id": 2501,
2935
2935
  "name": "uint256",
2936
2936
  "nodeType": "ElementaryTypeName",
2937
2937
  "src": "2919:7:6",
@@ -2943,7 +2943,7 @@
2943
2943
  "visibility": "internal"
2944
2944
  }
2945
2945
  ],
2946
- "id": 2491,
2946
+ "id": 2503,
2947
2947
  "nodeType": "VariableDeclarationStatement",
2948
2948
  "src": "2919:17:6"
2949
2949
  },
@@ -2991,21 +2991,21 @@
2991
2991
  "evmVersion": "london",
2992
2992
  "externalReferences": [
2993
2993
  {
2994
- "declaration": 2468,
2994
+ "declaration": 2480,
2995
2995
  "isOffset": false,
2996
2996
  "isSlot": false,
2997
2997
  "src": "2976:4:6",
2998
2998
  "valueSize": 1
2999
2999
  },
3000
3000
  {
3001
- "declaration": 2490,
3001
+ "declaration": 2502,
3002
3002
  "isOffset": false,
3003
3003
  "isSlot": false,
3004
3004
  "src": "2959:9:6",
3005
3005
  "valueSize": 1
3006
3006
  }
3007
3007
  ],
3008
- "id": 2492,
3008
+ "id": 2504,
3009
3009
  "nodeType": "InlineAssembly",
3010
3010
  "src": "2942:49:6"
3011
3011
  },
@@ -3013,11 +3013,11 @@
3013
3013
  "expression": {
3014
3014
  "arguments": [
3015
3015
  {
3016
- "id": 2496,
3016
+ "id": 2508,
3017
3017
  "name": "fromPointer",
3018
3018
  "nodeType": "Identifier",
3019
3019
  "overloadedDeclarations": [],
3020
- "referencedDeclaration": 2471,
3020
+ "referencedDeclaration": 2483,
3021
3021
  "src": "3052:11:6",
3022
3022
  "typeDescriptions": {
3023
3023
  "typeIdentifier": "t_uint256",
@@ -3025,11 +3025,11 @@
3025
3025
  }
3026
3026
  },
3027
3027
  {
3028
- "id": 2497,
3028
+ "id": 2509,
3029
3029
  "name": "toPointer",
3030
3030
  "nodeType": "Identifier",
3031
3031
  "overloadedDeclarations": [],
3032
- "referencedDeclaration": 2490,
3032
+ "referencedDeclaration": 2502,
3033
3033
  "src": "3065:9:6",
3034
3034
  "typeDescriptions": {
3035
3035
  "typeIdentifier": "t_uint256",
@@ -3037,11 +3037,11 @@
3037
3037
  }
3038
3038
  },
3039
3039
  {
3040
- "id": 2498,
3040
+ "id": 2510,
3041
3041
  "name": "_length",
3042
3042
  "nodeType": "Identifier",
3043
3043
  "overloadedDeclarations": [],
3044
- "referencedDeclaration": 2477,
3044
+ "referencedDeclaration": 2489,
3045
3045
  "src": "3076:7:6",
3046
3046
  "typeDescriptions": {
3047
3047
  "typeIdentifier": "t_uint256",
@@ -3065,32 +3065,32 @@
3065
3065
  }
3066
3066
  ],
3067
3067
  "expression": {
3068
- "id": 2493,
3068
+ "id": 2505,
3069
3069
  "name": "Memory",
3070
3070
  "nodeType": "Identifier",
3071
3071
  "overloadedDeclarations": [],
3072
- "referencedDeclaration": 1075,
3072
+ "referencedDeclaration": 1087,
3073
3073
  "src": "3040:6:6",
3074
3074
  "typeDescriptions": {
3075
- "typeIdentifier": "t_type$_t_contract$_Memory_$1075_$",
3075
+ "typeIdentifier": "t_type$_t_contract$_Memory_$1087_$",
3076
3076
  "typeString": "type(library Memory)"
3077
3077
  }
3078
3078
  },
3079
- "id": 2495,
3079
+ "id": 2507,
3080
3080
  "isConstant": false,
3081
3081
  "isLValue": false,
3082
3082
  "isPure": false,
3083
3083
  "lValueRequested": false,
3084
3084
  "memberName": "copy",
3085
3085
  "nodeType": "MemberAccess",
3086
- "referencedDeclaration": 1074,
3086
+ "referencedDeclaration": 1086,
3087
3087
  "src": "3040:11:6",
3088
3088
  "typeDescriptions": {
3089
3089
  "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
3090
3090
  "typeString": "function (uint256,uint256,uint256) view"
3091
3091
  }
3092
3092
  },
3093
- "id": 2499,
3093
+ "id": 2511,
3094
3094
  "isConstant": false,
3095
3095
  "isLValue": false,
3096
3096
  "isPure": false,
@@ -3105,14 +3105,14 @@
3105
3105
  "typeString": "tuple()"
3106
3106
  }
3107
3107
  },
3108
- "id": 2500,
3108
+ "id": 2512,
3109
3109
  "nodeType": "ExpressionStatement",
3110
3110
  "src": "3040:44:6"
3111
3111
  }
3112
3112
  ]
3113
3113
  },
3114
3114
  "documentation": {
3115
- "id": 2462,
3115
+ "id": 2474,
3116
3116
  "nodeType": "StructuredDocumentation",
3117
3117
  "src": "2560:110:6",
3118
3118
  "text": " @dev Copies the slice to a new bytes array\n The slice will NOT point to the new bytes array"
@@ -3123,38 +3123,38 @@
3123
3123
  "name": "toBytes",
3124
3124
  "nameLocation": "2682:7:6",
3125
3125
  "parameters": {
3126
- "id": 2466,
3126
+ "id": 2478,
3127
3127
  "nodeType": "ParameterList",
3128
3128
  "parameters": [
3129
3129
  {
3130
3130
  "constant": false,
3131
- "id": 2465,
3131
+ "id": 2477,
3132
3132
  "mutability": "mutable",
3133
3133
  "name": "self",
3134
3134
  "nameLocation": "2696:4:6",
3135
3135
  "nodeType": "VariableDeclaration",
3136
- "scope": 2502,
3136
+ "scope": 2514,
3137
3137
  "src": "2690:10:6",
3138
3138
  "stateVariable": false,
3139
3139
  "storageLocation": "default",
3140
3140
  "typeDescriptions": {
3141
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3141
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3142
3142
  "typeString": "Slice"
3143
3143
  },
3144
3144
  "typeName": {
3145
- "id": 2464,
3145
+ "id": 2476,
3146
3146
  "nodeType": "UserDefinedTypeName",
3147
3147
  "pathNode": {
3148
- "id": 2463,
3148
+ "id": 2475,
3149
3149
  "name": "Slice",
3150
3150
  "nodeType": "IdentifierPath",
3151
- "referencedDeclaration": 2280,
3151
+ "referencedDeclaration": 2292,
3152
3152
  "src": "2690:5:6"
3153
3153
  },
3154
- "referencedDeclaration": 2280,
3154
+ "referencedDeclaration": 2292,
3155
3155
  "src": "2690:5:6",
3156
3156
  "typeDescriptions": {
3157
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3157
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3158
3158
  "typeString": "Slice"
3159
3159
  }
3160
3160
  },
@@ -3164,17 +3164,17 @@
3164
3164
  "src": "2689:12:6"
3165
3165
  },
3166
3166
  "returnParameters": {
3167
- "id": 2469,
3167
+ "id": 2481,
3168
3168
  "nodeType": "ParameterList",
3169
3169
  "parameters": [
3170
3170
  {
3171
3171
  "constant": false,
3172
- "id": 2468,
3172
+ "id": 2480,
3173
3173
  "mutability": "mutable",
3174
3174
  "name": "data",
3175
3175
  "nameLocation": "2738:4:6",
3176
3176
  "nodeType": "VariableDeclaration",
3177
- "scope": 2502,
3177
+ "scope": 2514,
3178
3178
  "src": "2725:17:6",
3179
3179
  "stateVariable": false,
3180
3180
  "storageLocation": "memory",
@@ -3183,7 +3183,7 @@
3183
3183
  "typeString": "bytes"
3184
3184
  },
3185
3185
  "typeName": {
3186
- "id": 2467,
3186
+ "id": 2479,
3187
3187
  "name": "bytes",
3188
3188
  "nodeType": "ElementaryTypeName",
3189
3189
  "src": "2725:5:6",
@@ -3197,35 +3197,35 @@
3197
3197
  ],
3198
3198
  "src": "2724:19:6"
3199
3199
  },
3200
- "scope": 2521,
3200
+ "scope": 2533,
3201
3201
  "stateMutability": "view",
3202
3202
  "virtual": false,
3203
3203
  "visibility": "internal"
3204
3204
  },
3205
3205
  {
3206
- "id": 2520,
3206
+ "id": 2532,
3207
3207
  "nodeType": "FunctionDefinition",
3208
3208
  "src": "3093:235:6",
3209
3209
  "nodes": [],
3210
3210
  "body": {
3211
- "id": 2519,
3211
+ "id": 2531,
3212
3212
  "nodeType": "Block",
3213
3213
  "src": "3163:165:6",
3214
3214
  "nodes": [],
3215
3215
  "statements": [
3216
3216
  {
3217
3217
  "assignments": [
3218
- 2511
3218
+ 2523
3219
3219
  ],
3220
3220
  "declarations": [
3221
3221
  {
3222
3222
  "constant": false,
3223
- "id": 2511,
3223
+ "id": 2523,
3224
3224
  "mutability": "mutable",
3225
3225
  "name": "memoryPointer",
3226
3226
  "nameLocation": "3177:13:6",
3227
3227
  "nodeType": "VariableDeclaration",
3228
- "scope": 2519,
3228
+ "scope": 2531,
3229
3229
  "src": "3169:21:6",
3230
3230
  "stateVariable": false,
3231
3231
  "storageLocation": "default",
@@ -3234,7 +3234,7 @@
3234
3234
  "typeString": "uint256"
3235
3235
  },
3236
3236
  "typeName": {
3237
- "id": 2510,
3237
+ "id": 2522,
3238
3238
  "name": "uint256",
3239
3239
  "nodeType": "ElementaryTypeName",
3240
3240
  "src": "3169:7:6",
@@ -3246,38 +3246,38 @@
3246
3246
  "visibility": "internal"
3247
3247
  }
3248
3248
  ],
3249
- "id": 2515,
3249
+ "id": 2527,
3250
3250
  "initialValue": {
3251
3251
  "arguments": [],
3252
3252
  "expression": {
3253
3253
  "argumentTypes": [],
3254
3254
  "expression": {
3255
- "id": 2512,
3255
+ "id": 2524,
3256
3256
  "name": "self",
3257
3257
  "nodeType": "Identifier",
3258
3258
  "overloadedDeclarations": [],
3259
- "referencedDeclaration": 2505,
3259
+ "referencedDeclaration": 2517,
3260
3260
  "src": "3193:4:6",
3261
3261
  "typeDescriptions": {
3262
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3262
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3263
3263
  "typeString": "Slice"
3264
3264
  }
3265
3265
  },
3266
- "id": 2513,
3266
+ "id": 2525,
3267
3267
  "isConstant": false,
3268
3268
  "isLValue": false,
3269
3269
  "isPure": false,
3270
3270
  "lValueRequested": false,
3271
3271
  "memberName": "pointer",
3272
3272
  "nodeType": "MemberAccess",
3273
- "referencedDeclaration": 2443,
3273
+ "referencedDeclaration": 2455,
3274
3274
  "src": "3193:12:6",
3275
3275
  "typeDescriptions": {
3276
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2280_$",
3276
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
3277
3277
  "typeString": "function (Slice) pure returns (uint256)"
3278
3278
  }
3279
3279
  },
3280
- "id": 2514,
3280
+ "id": 2526,
3281
3281
  "isConstant": false,
3282
3282
  "isLValue": false,
3283
3283
  "isPure": false,
@@ -3333,39 +3333,39 @@
3333
3333
  "evmVersion": "london",
3334
3334
  "externalReferences": [
3335
3335
  {
3336
- "declaration": 2511,
3336
+ "declaration": 2523,
3337
3337
  "isOffset": false,
3338
3338
  "isSlot": false,
3339
3339
  "src": "3285:13:6",
3340
3340
  "valueSize": 1
3341
3341
  },
3342
3342
  {
3343
- "declaration": 2508,
3343
+ "declaration": 2520,
3344
3344
  "isOffset": false,
3345
3345
  "isSlot": false,
3346
3346
  "src": "3269:6:6",
3347
3347
  "valueSize": 1
3348
3348
  }
3349
3349
  ],
3350
- "id": 2516,
3350
+ "id": 2528,
3351
3351
  "nodeType": "InlineAssembly",
3352
3352
  "src": "3252:53:6"
3353
3353
  },
3354
3354
  {
3355
3355
  "expression": {
3356
- "id": 2517,
3356
+ "id": 2529,
3357
3357
  "name": "result",
3358
3358
  "nodeType": "Identifier",
3359
3359
  "overloadedDeclarations": [],
3360
- "referencedDeclaration": 2508,
3360
+ "referencedDeclaration": 2520,
3361
3361
  "src": "3317:6:6",
3362
3362
  "typeDescriptions": {
3363
3363
  "typeIdentifier": "t_bytes32",
3364
3364
  "typeString": "bytes32"
3365
3365
  }
3366
3366
  },
3367
- "functionReturnParameters": 2509,
3368
- "id": 2518,
3367
+ "functionReturnParameters": 2521,
3368
+ "id": 2530,
3369
3369
  "nodeType": "Return",
3370
3370
  "src": "3310:13:6"
3371
3371
  }
@@ -3377,38 +3377,38 @@
3377
3377
  "name": "toBytes32",
3378
3378
  "nameLocation": "3102:9:6",
3379
3379
  "parameters": {
3380
- "id": 2506,
3380
+ "id": 2518,
3381
3381
  "nodeType": "ParameterList",
3382
3382
  "parameters": [
3383
3383
  {
3384
3384
  "constant": false,
3385
- "id": 2505,
3385
+ "id": 2517,
3386
3386
  "mutability": "mutable",
3387
3387
  "name": "self",
3388
3388
  "nameLocation": "3118:4:6",
3389
3389
  "nodeType": "VariableDeclaration",
3390
- "scope": 2520,
3390
+ "scope": 2532,
3391
3391
  "src": "3112:10:6",
3392
3392
  "stateVariable": false,
3393
3393
  "storageLocation": "default",
3394
3394
  "typeDescriptions": {
3395
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3395
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3396
3396
  "typeString": "Slice"
3397
3397
  },
3398
3398
  "typeName": {
3399
- "id": 2504,
3399
+ "id": 2516,
3400
3400
  "nodeType": "UserDefinedTypeName",
3401
3401
  "pathNode": {
3402
- "id": 2503,
3402
+ "id": 2515,
3403
3403
  "name": "Slice",
3404
3404
  "nodeType": "IdentifierPath",
3405
- "referencedDeclaration": 2280,
3405
+ "referencedDeclaration": 2292,
3406
3406
  "src": "3112:5:6"
3407
3407
  },
3408
- "referencedDeclaration": 2280,
3408
+ "referencedDeclaration": 2292,
3409
3409
  "src": "3112:5:6",
3410
3410
  "typeDescriptions": {
3411
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3411
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3412
3412
  "typeString": "Slice"
3413
3413
  }
3414
3414
  },
@@ -3418,17 +3418,17 @@
3418
3418
  "src": "3111:12:6"
3419
3419
  },
3420
3420
  "returnParameters": {
3421
- "id": 2509,
3421
+ "id": 2521,
3422
3422
  "nodeType": "ParameterList",
3423
3423
  "parameters": [
3424
3424
  {
3425
3425
  "constant": false,
3426
- "id": 2508,
3426
+ "id": 2520,
3427
3427
  "mutability": "mutable",
3428
3428
  "name": "result",
3429
3429
  "nameLocation": "3155:6:6",
3430
3430
  "nodeType": "VariableDeclaration",
3431
- "scope": 2520,
3431
+ "scope": 2532,
3432
3432
  "src": "3147:14:6",
3433
3433
  "stateVariable": false,
3434
3434
  "storageLocation": "default",
@@ -3437,7 +3437,7 @@
3437
3437
  "typeString": "bytes32"
3438
3438
  },
3439
3439
  "typeName": {
3440
- "id": 2507,
3440
+ "id": 2519,
3441
3441
  "name": "bytes32",
3442
3442
  "nodeType": "ElementaryTypeName",
3443
3443
  "src": "3147:7:6",
@@ -3451,7 +3451,7 @@
3451
3451
  ],
3452
3452
  "src": "3146:16:6"
3453
3453
  },
3454
- "scope": 2521,
3454
+ "scope": 2533,
3455
3455
  "stateMutability": "pure",
3456
3456
  "virtual": false,
3457
3457
  "visibility": "internal"
@@ -3463,18 +3463,18 @@
3463
3463
  "contractDependencies": [],
3464
3464
  "contractKind": "library",
3465
3465
  "documentation": {
3466
- "id": 2426,
3466
+ "id": 2438,
3467
3467
  "nodeType": "StructuredDocumentation",
3468
3468
  "src": "2137:46:6",
3469
3469
  "text": " @title Instance functions for Slice"
3470
3470
  },
3471
3471
  "fullyImplemented": true,
3472
3472
  "linearizedBaseContracts": [
3473
- 2521
3473
+ 2533
3474
3474
  ],
3475
3475
  "name": "SliceInstance",
3476
3476
  "nameLocation": "2192:13:6",
3477
- "scope": 2522,
3477
+ "scope": 2534,
3478
3478
  "usedErrors": []
3479
3479
  }
3480
3480
  ],