@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
@@ -103,29 +103,29 @@
103
103
  },
104
104
  "ast": {
105
105
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/Slice.sol",
106
- "id": 2522,
106
+ "id": 2534,
107
107
  "exportedSymbols": {
108
108
  "DecodeSlice": [
109
- 13692
109
+ 13953
110
110
  ],
111
111
  "Memory": [
112
- 1075
112
+ 1087
113
113
  ],
114
114
  "Slice": [
115
- 2280
115
+ 2292
116
116
  ],
117
117
  "SliceInstance": [
118
- 2521
118
+ 2533
119
119
  ],
120
120
  "SliceLib": [
121
- 2425
121
+ 2437
122
122
  ]
123
123
  },
124
124
  "nodeType": "SourceUnit",
125
125
  "src": "32:3299:6",
126
126
  "nodes": [
127
127
  {
128
- "id": 2274,
128
+ "id": 2286,
129
129
  "nodeType": "PragmaDirective",
130
130
  "src": "32:24:6",
131
131
  "nodes": [],
@@ -137,23 +137,23 @@
137
137
  ]
138
138
  },
139
139
  {
140
- "id": 2276,
140
+ "id": 2288,
141
141
  "nodeType": "ImportDirective",
142
142
  "src": "58:38:6",
143
143
  "nodes": [],
144
144
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/Memory.sol",
145
145
  "file": "./Memory.sol",
146
146
  "nameLocation": "-1:-1:-1",
147
- "scope": 2522,
148
- "sourceUnit": 1076,
147
+ "scope": 2534,
148
+ "sourceUnit": 1088,
149
149
  "symbolAliases": [
150
150
  {
151
151
  "foreign": {
152
- "id": 2275,
152
+ "id": 2287,
153
153
  "name": "Memory",
154
154
  "nodeType": "Identifier",
155
155
  "overloadedDeclarations": [],
156
- "referencedDeclaration": 1075,
156
+ "referencedDeclaration": 1087,
157
157
  "src": "67:6:6",
158
158
  "typeDescriptions": {}
159
159
  },
@@ -163,23 +163,23 @@
163
163
  "unitAlias": ""
164
164
  },
165
165
  {
166
- "id": 2278,
166
+ "id": 2290,
167
167
  "nodeType": "ImportDirective",
168
168
  "src": "97:59:6",
169
169
  "nodes": [],
170
170
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/tightcoder/DecodeSlice.sol",
171
171
  "file": "./tightcoder/DecodeSlice.sol",
172
172
  "nameLocation": "-1:-1:-1",
173
- "scope": 2522,
174
- "sourceUnit": 13693,
173
+ "scope": 2534,
174
+ "sourceUnit": 13954,
175
175
  "symbolAliases": [
176
176
  {
177
177
  "foreign": {
178
- "id": 2277,
178
+ "id": 2289,
179
179
  "name": "DecodeSlice",
180
180
  "nodeType": "Identifier",
181
181
  "overloadedDeclarations": [],
182
- "referencedDeclaration": 13692,
182
+ "referencedDeclaration": 13953,
183
183
  "src": "106:11:6",
184
184
  "typeDescriptions": {}
185
185
  },
@@ -189,7 +189,7 @@
189
189
  "unitAlias": ""
190
190
  },
191
191
  {
192
- "id": 2280,
192
+ "id": 2292,
193
193
  "nodeType": "UserDefinedValueTypeDefinition",
194
194
  "src": "373:22:6",
195
195
  "nodes": [],
@@ -197,7 +197,7 @@
197
197
  "name": "Slice",
198
198
  "nameLocation": "378:5:6",
199
199
  "underlyingType": {
200
- "id": 2279,
200
+ "id": 2291,
201
201
  "name": "uint256",
202
202
  "nodeType": "ElementaryTypeName",
203
203
  "src": "387:7:6",
@@ -208,74 +208,74 @@
208
208
  }
209
209
  },
210
210
  {
211
- "id": 2284,
211
+ "id": 2296,
212
212
  "nodeType": "UsingForDirective",
213
213
  "src": "397:37:6",
214
214
  "nodes": [],
215
215
  "global": true,
216
216
  "libraryName": {
217
- "id": 2281,
217
+ "id": 2293,
218
218
  "name": "SliceInstance",
219
219
  "nodeType": "IdentifierPath",
220
- "referencedDeclaration": 2521,
220
+ "referencedDeclaration": 2533,
221
221
  "src": "403:13:6"
222
222
  },
223
223
  "typeName": {
224
- "id": 2283,
224
+ "id": 2295,
225
225
  "nodeType": "UserDefinedTypeName",
226
226
  "pathNode": {
227
- "id": 2282,
227
+ "id": 2294,
228
228
  "name": "Slice",
229
229
  "nodeType": "IdentifierPath",
230
- "referencedDeclaration": 2280,
230
+ "referencedDeclaration": 2292,
231
231
  "src": "421:5:6"
232
232
  },
233
- "referencedDeclaration": 2280,
233
+ "referencedDeclaration": 2292,
234
234
  "src": "421:5:6",
235
235
  "typeDescriptions": {
236
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
236
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
237
237
  "typeString": "Slice"
238
238
  }
239
239
  }
240
240
  },
241
241
  {
242
- "id": 2288,
242
+ "id": 2300,
243
243
  "nodeType": "UsingForDirective",
244
244
  "src": "435:35:6",
245
245
  "nodes": [],
246
246
  "global": true,
247
247
  "libraryName": {
248
- "id": 2285,
248
+ "id": 2297,
249
249
  "name": "DecodeSlice",
250
250
  "nodeType": "IdentifierPath",
251
- "referencedDeclaration": 13692,
251
+ "referencedDeclaration": 13953,
252
252
  "src": "441:11:6"
253
253
  },
254
254
  "typeName": {
255
- "id": 2287,
255
+ "id": 2299,
256
256
  "nodeType": "UserDefinedTypeName",
257
257
  "pathNode": {
258
- "id": 2286,
258
+ "id": 2298,
259
259
  "name": "Slice",
260
260
  "nodeType": "IdentifierPath",
261
- "referencedDeclaration": 2280,
261
+ "referencedDeclaration": 2292,
262
262
  "src": "457:5:6"
263
263
  },
264
- "referencedDeclaration": 2280,
264
+ "referencedDeclaration": 2292,
265
265
  "src": "457:5:6",
266
266
  "typeDescriptions": {
267
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
267
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
268
268
  "typeString": "Slice"
269
269
  }
270
270
  }
271
271
  },
272
272
  {
273
- "id": 2425,
273
+ "id": 2437,
274
274
  "nodeType": "ContractDefinition",
275
275
  "src": "517:1618:6",
276
276
  "nodes": [
277
277
  {
278
- "id": 2297,
278
+ "id": 2309,
279
279
  "nodeType": "ErrorDefinition",
280
280
  "src": "538:64:6",
281
281
  "nodes": [],
@@ -283,17 +283,17 @@
283
283
  "name": "Slice_OutOfBounds",
284
284
  "nameLocation": "544:17:6",
285
285
  "parameters": {
286
- "id": 2296,
286
+ "id": 2308,
287
287
  "nodeType": "ParameterList",
288
288
  "parameters": [
289
289
  {
290
290
  "constant": false,
291
- "id": 2291,
291
+ "id": 2303,
292
292
  "mutability": "mutable",
293
293
  "name": "data",
294
294
  "nameLocation": "568:4:6",
295
295
  "nodeType": "VariableDeclaration",
296
- "scope": 2297,
296
+ "scope": 2309,
297
297
  "src": "562:10:6",
298
298
  "stateVariable": false,
299
299
  "storageLocation": "default",
@@ -302,7 +302,7 @@
302
302
  "typeString": "bytes"
303
303
  },
304
304
  "typeName": {
305
- "id": 2290,
305
+ "id": 2302,
306
306
  "name": "bytes",
307
307
  "nodeType": "ElementaryTypeName",
308
308
  "src": "562:5:6",
@@ -315,12 +315,12 @@
315
315
  },
316
316
  {
317
317
  "constant": false,
318
- "id": 2293,
318
+ "id": 2305,
319
319
  "mutability": "mutable",
320
320
  "name": "start",
321
321
  "nameLocation": "582:5:6",
322
322
  "nodeType": "VariableDeclaration",
323
- "scope": 2297,
323
+ "scope": 2309,
324
324
  "src": "574:13:6",
325
325
  "stateVariable": false,
326
326
  "storageLocation": "default",
@@ -329,7 +329,7 @@
329
329
  "typeString": "uint256"
330
330
  },
331
331
  "typeName": {
332
- "id": 2292,
332
+ "id": 2304,
333
333
  "name": "uint256",
334
334
  "nodeType": "ElementaryTypeName",
335
335
  "src": "574:7:6",
@@ -342,12 +342,12 @@
342
342
  },
343
343
  {
344
344
  "constant": false,
345
- "id": 2295,
345
+ "id": 2307,
346
346
  "mutability": "mutable",
347
347
  "name": "end",
348
348
  "nameLocation": "597:3:6",
349
349
  "nodeType": "VariableDeclaration",
350
- "scope": 2297,
350
+ "scope": 2309,
351
351
  "src": "589:11:6",
352
352
  "stateVariable": false,
353
353
  "storageLocation": "default",
@@ -356,7 +356,7 @@
356
356
  "typeString": "uint256"
357
357
  },
358
358
  "typeName": {
359
- "id": 2294,
359
+ "id": 2306,
360
360
  "name": "uint256",
361
361
  "nodeType": "ElementaryTypeName",
362
362
  "src": "589:7:6",
@@ -372,7 +372,7 @@
372
372
  }
373
373
  },
374
374
  {
375
- "id": 2307,
375
+ "id": 2319,
376
376
  "nodeType": "VariableDeclaration",
377
377
  "src": "606:54:6",
378
378
  "nodes": [],
@@ -380,7 +380,7 @@
380
380
  "mutability": "constant",
381
381
  "name": "MASK_LEN",
382
382
  "nameLocation": "623:8:6",
383
- "scope": 2425,
383
+ "scope": 2437,
384
384
  "stateVariable": true,
385
385
  "storageLocation": "default",
386
386
  "typeDescriptions": {
@@ -388,7 +388,7 @@
388
388
  "typeString": "uint256"
389
389
  },
390
390
  "typeName": {
391
- "id": 2298,
391
+ "id": 2310,
392
392
  "name": "uint256",
393
393
  "nodeType": "ElementaryTypeName",
394
394
  "src": "606:7:6",
@@ -403,7 +403,7 @@
403
403
  "expression": {
404
404
  "arguments": [
405
405
  {
406
- "id": 2303,
406
+ "id": 2315,
407
407
  "isConstant": false,
408
408
  "isLValue": false,
409
409
  "isPure": true,
@@ -415,7 +415,7 @@
415
415
  "typeString": "type(uint128)"
416
416
  },
417
417
  "typeName": {
418
- "id": 2302,
418
+ "id": 2314,
419
419
  "name": "uint128",
420
420
  "nodeType": "ElementaryTypeName",
421
421
  "src": "647:7:6",
@@ -430,7 +430,7 @@
430
430
  "typeString": "type(uint128)"
431
431
  }
432
432
  ],
433
- "id": 2301,
433
+ "id": 2313,
434
434
  "name": "type",
435
435
  "nodeType": "Identifier",
436
436
  "overloadedDeclarations": [],
@@ -441,7 +441,7 @@
441
441
  "typeString": "function () pure"
442
442
  }
443
443
  },
444
- "id": 2304,
444
+ "id": 2316,
445
445
  "isConstant": false,
446
446
  "isLValue": false,
447
447
  "isPure": true,
@@ -456,7 +456,7 @@
456
456
  "typeString": "type(uint128)"
457
457
  }
458
458
  },
459
- "id": 2305,
459
+ "id": 2317,
460
460
  "isConstant": false,
461
461
  "isLValue": false,
462
462
  "isPure": true,
@@ -477,7 +477,7 @@
477
477
  "typeString": "uint128"
478
478
  }
479
479
  ],
480
- "id": 2300,
480
+ "id": 2312,
481
481
  "isConstant": false,
482
482
  "isLValue": false,
483
483
  "isPure": true,
@@ -489,14 +489,14 @@
489
489
  "typeString": "type(uint256)"
490
490
  },
491
491
  "typeName": {
492
- "id": 2299,
492
+ "id": 2311,
493
493
  "name": "uint256",
494
494
  "nodeType": "ElementaryTypeName",
495
495
  "src": "634:7:6",
496
496
  "typeDescriptions": {}
497
497
  }
498
498
  },
499
- "id": 2306,
499
+ "id": 2318,
500
500
  "isConstant": false,
501
501
  "isLValue": false,
502
502
  "isPure": true,
@@ -514,7 +514,7 @@
514
514
  "visibility": "internal"
515
515
  },
516
516
  {
517
- "id": 2319,
517
+ "id": 2331,
518
518
  "nodeType": "VariableDeclaration",
519
519
  "src": "664:61:6",
520
520
  "nodes": [],
@@ -522,7 +522,7 @@
522
522
  "mutability": "constant",
523
523
  "name": "MASK_PTR",
524
524
  "nameLocation": "681:8:6",
525
- "scope": 2425,
525
+ "scope": 2437,
526
526
  "stateVariable": true,
527
527
  "storageLocation": "default",
528
528
  "typeDescriptions": {
@@ -530,7 +530,7 @@
530
530
  "typeString": "uint256"
531
531
  },
532
532
  "typeName": {
533
- "id": 2308,
533
+ "id": 2320,
534
534
  "name": "uint256",
535
535
  "nodeType": "ElementaryTypeName",
536
536
  "src": "664:7:6",
@@ -544,7 +544,7 @@
544
544
  "typeIdentifier": "t_uint256",
545
545
  "typeString": "uint256"
546
546
  },
547
- "id": 2318,
547
+ "id": 2330,
548
548
  "isConstant": false,
549
549
  "isLValue": false,
550
550
  "isPure": true,
@@ -555,7 +555,7 @@
555
555
  "expression": {
556
556
  "arguments": [
557
557
  {
558
- "id": 2313,
558
+ "id": 2325,
559
559
  "isConstant": false,
560
560
  "isLValue": false,
561
561
  "isPure": true,
@@ -567,7 +567,7 @@
567
567
  "typeString": "type(uint128)"
568
568
  },
569
569
  "typeName": {
570
- "id": 2312,
570
+ "id": 2324,
571
571
  "name": "uint128",
572
572
  "nodeType": "ElementaryTypeName",
573
573
  "src": "705:7:6",
@@ -582,7 +582,7 @@
582
582
  "typeString": "type(uint128)"
583
583
  }
584
584
  ],
585
- "id": 2311,
585
+ "id": 2323,
586
586
  "name": "type",
587
587
  "nodeType": "Identifier",
588
588
  "overloadedDeclarations": [],
@@ -593,7 +593,7 @@
593
593
  "typeString": "function () pure"
594
594
  }
595
595
  },
596
- "id": 2314,
596
+ "id": 2326,
597
597
  "isConstant": false,
598
598
  "isLValue": false,
599
599
  "isPure": true,
@@ -608,7 +608,7 @@
608
608
  "typeString": "type(uint128)"
609
609
  }
610
610
  },
611
- "id": 2315,
611
+ "id": 2327,
612
612
  "isConstant": false,
613
613
  "isLValue": false,
614
614
  "isPure": true,
@@ -629,7 +629,7 @@
629
629
  "typeString": "uint128"
630
630
  }
631
631
  ],
632
- "id": 2310,
632
+ "id": 2322,
633
633
  "isConstant": false,
634
634
  "isLValue": false,
635
635
  "isPure": true,
@@ -641,14 +641,14 @@
641
641
  "typeString": "type(uint256)"
642
642
  },
643
643
  "typeName": {
644
- "id": 2309,
644
+ "id": 2321,
645
645
  "name": "uint256",
646
646
  "nodeType": "ElementaryTypeName",
647
647
  "src": "692:7:6",
648
648
  "typeDescriptions": {}
649
649
  }
650
650
  },
651
- "id": 2316,
651
+ "id": 2328,
652
652
  "isConstant": false,
653
653
  "isLValue": false,
654
654
  "isPure": true,
@@ -667,7 +667,7 @@
667
667
  "operator": "<<",
668
668
  "rightExpression": {
669
669
  "hexValue": "313238",
670
- "id": 2317,
670
+ "id": 2329,
671
671
  "isConstant": false,
672
672
  "isLValue": false,
673
673
  "isPure": true,
@@ -690,29 +690,29 @@
690
690
  "visibility": "internal"
691
691
  },
692
692
  {
693
- "id": 2347,
693
+ "id": 2359,
694
694
  "nodeType": "FunctionDefinition",
695
695
  "src": "809:329:6",
696
696
  "nodes": [],
697
697
  "body": {
698
- "id": 2346,
698
+ "id": 2358,
699
699
  "nodeType": "Block",
700
700
  "src": "877:261:6",
701
701
  "nodes": [],
702
702
  "statements": [
703
703
  {
704
704
  "assignments": [
705
- 2329
705
+ 2341
706
706
  ],
707
707
  "declarations": [
708
708
  {
709
709
  "constant": false,
710
- "id": 2329,
710
+ "id": 2341,
711
711
  "mutability": "mutable",
712
712
  "name": "_pointer",
713
713
  "nameLocation": "891:8:6",
714
714
  "nodeType": "VariableDeclaration",
715
- "scope": 2346,
715
+ "scope": 2358,
716
716
  "src": "883:16:6",
717
717
  "stateVariable": false,
718
718
  "storageLocation": "default",
@@ -721,7 +721,7 @@
721
721
  "typeString": "uint256"
722
722
  },
723
723
  "typeName": {
724
- "id": 2328,
724
+ "id": 2340,
725
725
  "name": "uint256",
726
726
  "nodeType": "ElementaryTypeName",
727
727
  "src": "883:7:6",
@@ -733,7 +733,7 @@
733
733
  "visibility": "internal"
734
734
  }
735
735
  ],
736
- "id": 2330,
736
+ "id": 2342,
737
737
  "nodeType": "VariableDeclarationStatement",
738
738
  "src": "883:16:6"
739
739
  },
@@ -781,21 +781,21 @@
781
781
  "evmVersion": "london",
782
782
  "externalReferences": [
783
783
  {
784
- "declaration": 2329,
784
+ "declaration": 2341,
785
785
  "isOffset": false,
786
786
  "isSlot": false,
787
787
  "src": "922:8:6",
788
788
  "valueSize": 1
789
789
  },
790
790
  {
791
- "declaration": 2322,
791
+ "declaration": 2334,
792
792
  "isOffset": false,
793
793
  "isSlot": false,
794
794
  "src": "938:4:6",
795
795
  "valueSize": 1
796
796
  }
797
797
  ],
798
- "id": 2331,
798
+ "id": 2343,
799
799
  "nodeType": "InlineAssembly",
800
800
  "src": "905:80:6"
801
801
  },
@@ -807,7 +807,7 @@
807
807
  "typeIdentifier": "t_uint256",
808
808
  "typeString": "uint256"
809
809
  },
810
- "id": 2343,
810
+ "id": 2355,
811
811
  "isConstant": false,
812
812
  "isLValue": false,
813
813
  "isPure": false,
@@ -819,17 +819,17 @@
819
819
  "typeIdentifier": "t_uint256",
820
820
  "typeString": "uint256"
821
821
  },
822
- "id": 2336,
822
+ "id": 2348,
823
823
  "isConstant": false,
824
824
  "isLValue": false,
825
825
  "isPure": false,
826
826
  "lValueRequested": false,
827
827
  "leftExpression": {
828
- "id": 2334,
828
+ "id": 2346,
829
829
  "name": "_pointer",
830
830
  "nodeType": "Identifier",
831
831
  "overloadedDeclarations": [],
832
- "referencedDeclaration": 2329,
832
+ "referencedDeclaration": 2341,
833
833
  "src": "1089:8:6",
834
834
  "typeDescriptions": {
835
835
  "typeIdentifier": "t_uint256",
@@ -840,7 +840,7 @@
840
840
  "operator": "<<",
841
841
  "rightExpression": {
842
842
  "hexValue": "313238",
843
- "id": 2335,
843
+ "id": 2347,
844
844
  "isConstant": false,
845
845
  "isLValue": false,
846
846
  "isPure": true,
@@ -861,7 +861,7 @@
861
861
  }
862
862
  }
863
863
  ],
864
- "id": 2337,
864
+ "id": 2349,
865
865
  "isConstant": false,
866
866
  "isInlineArray": false,
867
867
  "isLValue": false,
@@ -883,25 +883,25 @@
883
883
  "typeIdentifier": "t_uint256",
884
884
  "typeString": "uint256"
885
885
  },
886
- "id": 2341,
886
+ "id": 2353,
887
887
  "isConstant": false,
888
888
  "isLValue": false,
889
889
  "isPure": false,
890
890
  "lValueRequested": false,
891
891
  "leftExpression": {
892
892
  "expression": {
893
- "id": 2338,
893
+ "id": 2350,
894
894
  "name": "data",
895
895
  "nodeType": "Identifier",
896
896
  "overloadedDeclarations": [],
897
- "referencedDeclaration": 2322,
897
+ "referencedDeclaration": 2334,
898
898
  "src": "1109:4:6",
899
899
  "typeDescriptions": {
900
900
  "typeIdentifier": "t_bytes_memory_ptr",
901
901
  "typeString": "bytes memory"
902
902
  }
903
903
  },
904
- "id": 2339,
904
+ "id": 2351,
905
905
  "isConstant": false,
906
906
  "isLValue": false,
907
907
  "isPure": false,
@@ -917,11 +917,11 @@
917
917
  "nodeType": "BinaryOperation",
918
918
  "operator": "&",
919
919
  "rightExpression": {
920
- "id": 2340,
920
+ "id": 2352,
921
921
  "name": "MASK_LEN",
922
922
  "nodeType": "Identifier",
923
923
  "overloadedDeclarations": [],
924
- "referencedDeclaration": 2307,
924
+ "referencedDeclaration": 2319,
925
925
  "src": "1123:8:6",
926
926
  "typeDescriptions": {
927
927
  "typeIdentifier": "t_uint256",
@@ -935,7 +935,7 @@
935
935
  }
936
936
  }
937
937
  ],
938
- "id": 2342,
938
+ "id": 2354,
939
939
  "isConstant": false,
940
940
  "isInlineArray": false,
941
941
  "isLValue": false,
@@ -963,18 +963,18 @@
963
963
  }
964
964
  ],
965
965
  "expression": {
966
- "id": 2332,
966
+ "id": 2344,
967
967
  "name": "Slice",
968
968
  "nodeType": "Identifier",
969
969
  "overloadedDeclarations": [],
970
- "referencedDeclaration": 2280,
970
+ "referencedDeclaration": 2292,
971
971
  "src": "1077:5:6",
972
972
  "typeDescriptions": {
973
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
973
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
974
974
  "typeString": "type(Slice)"
975
975
  }
976
976
  },
977
- "id": 2333,
977
+ "id": 2345,
978
978
  "isConstant": false,
979
979
  "isLValue": false,
980
980
  "isPure": true,
@@ -983,11 +983,11 @@
983
983
  "nodeType": "MemberAccess",
984
984
  "src": "1077:10:6",
985
985
  "typeDescriptions": {
986
- "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
986
+ "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
987
987
  "typeString": "function (uint256) pure returns (Slice)"
988
988
  }
989
989
  },
990
- "id": 2344,
990
+ "id": 2356,
991
991
  "isConstant": false,
992
992
  "isLValue": false,
993
993
  "isPure": false,
@@ -998,19 +998,19 @@
998
998
  "src": "1077:56:6",
999
999
  "tryCall": false,
1000
1000
  "typeDescriptions": {
1001
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1001
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1002
1002
  "typeString": "Slice"
1003
1003
  }
1004
1004
  },
1005
- "functionReturnParameters": 2327,
1006
- "id": 2345,
1005
+ "functionReturnParameters": 2339,
1006
+ "id": 2357,
1007
1007
  "nodeType": "Return",
1008
1008
  "src": "1070:63:6"
1009
1009
  }
1010
1010
  ]
1011
1011
  },
1012
1012
  "documentation": {
1013
- "id": 2320,
1013
+ "id": 2332,
1014
1014
  "nodeType": "StructuredDocumentation",
1015
1015
  "src": "730:76:6",
1016
1016
  "text": " @dev Converts a bytes array to a slice (without copying data)"
@@ -1021,17 +1021,17 @@
1021
1021
  "name": "fromBytes",
1022
1022
  "nameLocation": "818:9:6",
1023
1023
  "parameters": {
1024
- "id": 2323,
1024
+ "id": 2335,
1025
1025
  "nodeType": "ParameterList",
1026
1026
  "parameters": [
1027
1027
  {
1028
1028
  "constant": false,
1029
- "id": 2322,
1029
+ "id": 2334,
1030
1030
  "mutability": "mutable",
1031
1031
  "name": "data",
1032
1032
  "nameLocation": "841:4:6",
1033
1033
  "nodeType": "VariableDeclaration",
1034
- "scope": 2347,
1034
+ "scope": 2359,
1035
1035
  "src": "828:17:6",
1036
1036
  "stateVariable": false,
1037
1037
  "storageLocation": "memory",
@@ -1040,7 +1040,7 @@
1040
1040
  "typeString": "bytes"
1041
1041
  },
1042
1042
  "typeName": {
1043
- "id": 2321,
1043
+ "id": 2333,
1044
1044
  "name": "bytes",
1045
1045
  "nodeType": "ElementaryTypeName",
1046
1046
  "src": "828:5:6",
@@ -1055,38 +1055,38 @@
1055
1055
  "src": "827:19:6"
1056
1056
  },
1057
1057
  "returnParameters": {
1058
- "id": 2327,
1058
+ "id": 2339,
1059
1059
  "nodeType": "ParameterList",
1060
1060
  "parameters": [
1061
1061
  {
1062
1062
  "constant": false,
1063
- "id": 2326,
1063
+ "id": 2338,
1064
1064
  "mutability": "mutable",
1065
1065
  "name": "",
1066
1066
  "nameLocation": "-1:-1:-1",
1067
1067
  "nodeType": "VariableDeclaration",
1068
- "scope": 2347,
1068
+ "scope": 2359,
1069
1069
  "src": "870:5:6",
1070
1070
  "stateVariable": false,
1071
1071
  "storageLocation": "default",
1072
1072
  "typeDescriptions": {
1073
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1073
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1074
1074
  "typeString": "Slice"
1075
1075
  },
1076
1076
  "typeName": {
1077
- "id": 2325,
1077
+ "id": 2337,
1078
1078
  "nodeType": "UserDefinedTypeName",
1079
1079
  "pathNode": {
1080
- "id": 2324,
1080
+ "id": 2336,
1081
1081
  "name": "Slice",
1082
1082
  "nodeType": "IdentifierPath",
1083
- "referencedDeclaration": 2280,
1083
+ "referencedDeclaration": 2292,
1084
1084
  "src": "870:5:6"
1085
1085
  },
1086
- "referencedDeclaration": 2280,
1086
+ "referencedDeclaration": 2292,
1087
1087
  "src": "870:5:6",
1088
1088
  "typeDescriptions": {
1089
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1089
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1090
1090
  "typeString": "Slice"
1091
1091
  }
1092
1092
  },
@@ -1095,18 +1095,18 @@
1095
1095
  ],
1096
1096
  "src": "869:7:6"
1097
1097
  },
1098
- "scope": 2425,
1098
+ "scope": 2437,
1099
1099
  "stateMutability": "pure",
1100
1100
  "virtual": false,
1101
1101
  "visibility": "internal"
1102
1102
  },
1103
1103
  {
1104
- "id": 2366,
1104
+ "id": 2378,
1105
1105
  "nodeType": "FunctionDefinition",
1106
1106
  "src": "1265:140:6",
1107
1107
  "nodes": [],
1108
1108
  "body": {
1109
- "id": 2365,
1109
+ "id": 2377,
1110
1110
  "nodeType": "Block",
1111
1111
  "src": "1350:55:6",
1112
1112
  "nodes": [],
@@ -1115,11 +1115,11 @@
1115
1115
  "expression": {
1116
1116
  "arguments": [
1117
1117
  {
1118
- "id": 2359,
1118
+ "id": 2371,
1119
1119
  "name": "data",
1120
1120
  "nodeType": "Identifier",
1121
1121
  "overloadedDeclarations": [],
1122
- "referencedDeclaration": 2350,
1122
+ "referencedDeclaration": 2362,
1123
1123
  "src": "1375:4:6",
1124
1124
  "typeDescriptions": {
1125
1125
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -1127,11 +1127,11 @@
1127
1127
  }
1128
1128
  },
1129
1129
  {
1130
- "id": 2360,
1130
+ "id": 2372,
1131
1131
  "name": "start",
1132
1132
  "nodeType": "Identifier",
1133
1133
  "overloadedDeclarations": [],
1134
- "referencedDeclaration": 2352,
1134
+ "referencedDeclaration": 2364,
1135
1135
  "src": "1381:5:6",
1136
1136
  "typeDescriptions": {
1137
1137
  "typeIdentifier": "t_uint256",
@@ -1140,18 +1140,18 @@
1140
1140
  },
1141
1141
  {
1142
1142
  "expression": {
1143
- "id": 2361,
1143
+ "id": 2373,
1144
1144
  "name": "data",
1145
1145
  "nodeType": "Identifier",
1146
1146
  "overloadedDeclarations": [],
1147
- "referencedDeclaration": 2350,
1147
+ "referencedDeclaration": 2362,
1148
1148
  "src": "1388:4:6",
1149
1149
  "typeDescriptions": {
1150
1150
  "typeIdentifier": "t_bytes_memory_ptr",
1151
1151
  "typeString": "bytes memory"
1152
1152
  }
1153
1153
  },
1154
- "id": 2362,
1154
+ "id": 2374,
1155
1155
  "isConstant": false,
1156
1156
  "isLValue": false,
1157
1157
  "isPure": false,
@@ -1180,21 +1180,21 @@
1180
1180
  "typeString": "uint256"
1181
1181
  }
1182
1182
  ],
1183
- "id": 2358,
1183
+ "id": 2370,
1184
1184
  "name": "getSubslice",
1185
1185
  "nodeType": "Identifier",
1186
1186
  "overloadedDeclarations": [
1187
- 2366,
1188
- 2424
1187
+ 2378,
1188
+ 2436
1189
1189
  ],
1190
- "referencedDeclaration": 2424,
1190
+ "referencedDeclaration": 2436,
1191
1191
  "src": "1363:11:6",
1192
1192
  "typeDescriptions": {
1193
- "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
1193
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
1194
1194
  "typeString": "function (bytes memory,uint256,uint256) pure returns (Slice)"
1195
1195
  }
1196
1196
  },
1197
- "id": 2363,
1197
+ "id": 2375,
1198
1198
  "isConstant": false,
1199
1199
  "isLValue": false,
1200
1200
  "isPure": false,
@@ -1205,19 +1205,19 @@
1205
1205
  "src": "1363:37:6",
1206
1206
  "tryCall": false,
1207
1207
  "typeDescriptions": {
1208
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1208
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1209
1209
  "typeString": "Slice"
1210
1210
  }
1211
1211
  },
1212
- "functionReturnParameters": 2357,
1213
- "id": 2364,
1212
+ "functionReturnParameters": 2369,
1213
+ "id": 2376,
1214
1214
  "nodeType": "Return",
1215
1215
  "src": "1356:44:6"
1216
1216
  }
1217
1217
  ]
1218
1218
  },
1219
1219
  "documentation": {
1220
- "id": 2348,
1220
+ "id": 2360,
1221
1221
  "nodeType": "StructuredDocumentation",
1222
1222
  "src": "1142:120:6",
1223
1223
  "text": " @dev Subslice a bytes array using the given start index until the end of the array (without copying data)"
@@ -1228,17 +1228,17 @@
1228
1228
  "name": "getSubslice",
1229
1229
  "nameLocation": "1274:11:6",
1230
1230
  "parameters": {
1231
- "id": 2353,
1231
+ "id": 2365,
1232
1232
  "nodeType": "ParameterList",
1233
1233
  "parameters": [
1234
1234
  {
1235
1235
  "constant": false,
1236
- "id": 2350,
1236
+ "id": 2362,
1237
1237
  "mutability": "mutable",
1238
1238
  "name": "data",
1239
1239
  "nameLocation": "1299:4:6",
1240
1240
  "nodeType": "VariableDeclaration",
1241
- "scope": 2366,
1241
+ "scope": 2378,
1242
1242
  "src": "1286:17:6",
1243
1243
  "stateVariable": false,
1244
1244
  "storageLocation": "memory",
@@ -1247,7 +1247,7 @@
1247
1247
  "typeString": "bytes"
1248
1248
  },
1249
1249
  "typeName": {
1250
- "id": 2349,
1250
+ "id": 2361,
1251
1251
  "name": "bytes",
1252
1252
  "nodeType": "ElementaryTypeName",
1253
1253
  "src": "1286:5:6",
@@ -1260,12 +1260,12 @@
1260
1260
  },
1261
1261
  {
1262
1262
  "constant": false,
1263
- "id": 2352,
1263
+ "id": 2364,
1264
1264
  "mutability": "mutable",
1265
1265
  "name": "start",
1266
1266
  "nameLocation": "1313:5:6",
1267
1267
  "nodeType": "VariableDeclaration",
1268
- "scope": 2366,
1268
+ "scope": 2378,
1269
1269
  "src": "1305:13:6",
1270
1270
  "stateVariable": false,
1271
1271
  "storageLocation": "default",
@@ -1274,7 +1274,7 @@
1274
1274
  "typeString": "uint256"
1275
1275
  },
1276
1276
  "typeName": {
1277
- "id": 2351,
1277
+ "id": 2363,
1278
1278
  "name": "uint256",
1279
1279
  "nodeType": "ElementaryTypeName",
1280
1280
  "src": "1305:7:6",
@@ -1289,38 +1289,38 @@
1289
1289
  "src": "1285:34:6"
1290
1290
  },
1291
1291
  "returnParameters": {
1292
- "id": 2357,
1292
+ "id": 2369,
1293
1293
  "nodeType": "ParameterList",
1294
1294
  "parameters": [
1295
1295
  {
1296
1296
  "constant": false,
1297
- "id": 2356,
1297
+ "id": 2368,
1298
1298
  "mutability": "mutable",
1299
1299
  "name": "",
1300
1300
  "nameLocation": "-1:-1:-1",
1301
1301
  "nodeType": "VariableDeclaration",
1302
- "scope": 2366,
1302
+ "scope": 2378,
1303
1303
  "src": "1343:5:6",
1304
1304
  "stateVariable": false,
1305
1305
  "storageLocation": "default",
1306
1306
  "typeDescriptions": {
1307
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1307
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1308
1308
  "typeString": "Slice"
1309
1309
  },
1310
1310
  "typeName": {
1311
- "id": 2355,
1311
+ "id": 2367,
1312
1312
  "nodeType": "UserDefinedTypeName",
1313
1313
  "pathNode": {
1314
- "id": 2354,
1314
+ "id": 2366,
1315
1315
  "name": "Slice",
1316
1316
  "nodeType": "IdentifierPath",
1317
- "referencedDeclaration": 2280,
1317
+ "referencedDeclaration": 2292,
1318
1318
  "src": "1343:5:6"
1319
1319
  },
1320
- "referencedDeclaration": 2280,
1320
+ "referencedDeclaration": 2292,
1321
1321
  "src": "1343:5:6",
1322
1322
  "typeDescriptions": {
1323
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1323
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1324
1324
  "typeString": "Slice"
1325
1325
  }
1326
1326
  },
@@ -1329,25 +1329,25 @@
1329
1329
  ],
1330
1330
  "src": "1342:7:6"
1331
1331
  },
1332
- "scope": 2425,
1332
+ "scope": 2437,
1333
1333
  "stateMutability": "pure",
1334
1334
  "virtual": false,
1335
1335
  "visibility": "internal"
1336
1336
  },
1337
1337
  {
1338
- "id": 2424,
1338
+ "id": 2436,
1339
1339
  "nodeType": "FunctionDefinition",
1340
1340
  "src": "1563:570:6",
1341
1341
  "nodes": [],
1342
1342
  "body": {
1343
- "id": 2423,
1343
+ "id": 2435,
1344
1344
  "nodeType": "Block",
1345
1345
  "src": "1661:472:6",
1346
1346
  "nodes": [],
1347
1347
  "statements": [
1348
1348
  {
1349
1349
  "condition": {
1350
- "id": 2388,
1350
+ "id": 2400,
1351
1351
  "isConstant": false,
1352
1352
  "isLValue": false,
1353
1353
  "isPure": false,
@@ -1363,7 +1363,7 @@
1363
1363
  "typeIdentifier": "t_bool",
1364
1364
  "typeString": "bool"
1365
1365
  },
1366
- "id": 2386,
1366
+ "id": 2398,
1367
1367
  "isConstant": false,
1368
1368
  "isLValue": false,
1369
1369
  "isPure": false,
@@ -1373,17 +1373,17 @@
1373
1373
  "typeIdentifier": "t_uint256",
1374
1374
  "typeString": "uint256"
1375
1375
  },
1376
- "id": 2381,
1376
+ "id": 2393,
1377
1377
  "isConstant": false,
1378
1378
  "isLValue": false,
1379
1379
  "isPure": false,
1380
1380
  "lValueRequested": false,
1381
1381
  "leftExpression": {
1382
- "id": 2379,
1382
+ "id": 2391,
1383
1383
  "name": "start",
1384
1384
  "nodeType": "Identifier",
1385
1385
  "overloadedDeclarations": [],
1386
- "referencedDeclaration": 2371,
1386
+ "referencedDeclaration": 2383,
1387
1387
  "src": "1743:5:6",
1388
1388
  "typeDescriptions": {
1389
1389
  "typeIdentifier": "t_uint256",
@@ -1393,11 +1393,11 @@
1393
1393
  "nodeType": "BinaryOperation",
1394
1394
  "operator": "<=",
1395
1395
  "rightExpression": {
1396
- "id": 2380,
1396
+ "id": 2392,
1397
1397
  "name": "end",
1398
1398
  "nodeType": "Identifier",
1399
1399
  "overloadedDeclarations": [],
1400
- "referencedDeclaration": 2373,
1400
+ "referencedDeclaration": 2385,
1401
1401
  "src": "1752:3:6",
1402
1402
  "typeDescriptions": {
1403
1403
  "typeIdentifier": "t_uint256",
@@ -1417,17 +1417,17 @@
1417
1417
  "typeIdentifier": "t_uint256",
1418
1418
  "typeString": "uint256"
1419
1419
  },
1420
- "id": 2385,
1420
+ "id": 2397,
1421
1421
  "isConstant": false,
1422
1422
  "isLValue": false,
1423
1423
  "isPure": false,
1424
1424
  "lValueRequested": false,
1425
1425
  "leftExpression": {
1426
- "id": 2382,
1426
+ "id": 2394,
1427
1427
  "name": "end",
1428
1428
  "nodeType": "Identifier",
1429
1429
  "overloadedDeclarations": [],
1430
- "referencedDeclaration": 2373,
1430
+ "referencedDeclaration": 2385,
1431
1431
  "src": "1759:3:6",
1432
1432
  "typeDescriptions": {
1433
1433
  "typeIdentifier": "t_uint256",
@@ -1438,18 +1438,18 @@
1438
1438
  "operator": "<=",
1439
1439
  "rightExpression": {
1440
1440
  "expression": {
1441
- "id": 2383,
1441
+ "id": 2395,
1442
1442
  "name": "data",
1443
1443
  "nodeType": "Identifier",
1444
1444
  "overloadedDeclarations": [],
1445
- "referencedDeclaration": 2369,
1445
+ "referencedDeclaration": 2381,
1446
1446
  "src": "1766:4:6",
1447
1447
  "typeDescriptions": {
1448
1448
  "typeIdentifier": "t_bytes_memory_ptr",
1449
1449
  "typeString": "bytes memory"
1450
1450
  }
1451
1451
  },
1452
- "id": 2384,
1452
+ "id": 2396,
1453
1453
  "isConstant": false,
1454
1454
  "isLValue": false,
1455
1455
  "isPure": false,
@@ -1475,7 +1475,7 @@
1475
1475
  }
1476
1476
  }
1477
1477
  ],
1478
- "id": 2387,
1478
+ "id": 2399,
1479
1479
  "isConstant": false,
1480
1480
  "isInlineArray": false,
1481
1481
  "isLValue": false,
@@ -1493,18 +1493,18 @@
1493
1493
  "typeString": "bool"
1494
1494
  }
1495
1495
  },
1496
- "id": 2395,
1496
+ "id": 2407,
1497
1497
  "nodeType": "IfStatement",
1498
1498
  "src": "1737:85:6",
1499
1499
  "trueBody": {
1500
1500
  "errorCall": {
1501
1501
  "arguments": [
1502
1502
  {
1503
- "id": 2390,
1503
+ "id": 2402,
1504
1504
  "name": "data",
1505
1505
  "nodeType": "Identifier",
1506
1506
  "overloadedDeclarations": [],
1507
- "referencedDeclaration": 2369,
1507
+ "referencedDeclaration": 2381,
1508
1508
  "src": "1805:4:6",
1509
1509
  "typeDescriptions": {
1510
1510
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -1512,11 +1512,11 @@
1512
1512
  }
1513
1513
  },
1514
1514
  {
1515
- "id": 2391,
1515
+ "id": 2403,
1516
1516
  "name": "start",
1517
1517
  "nodeType": "Identifier",
1518
1518
  "overloadedDeclarations": [],
1519
- "referencedDeclaration": 2371,
1519
+ "referencedDeclaration": 2383,
1520
1520
  "src": "1811:5:6",
1521
1521
  "typeDescriptions": {
1522
1522
  "typeIdentifier": "t_uint256",
@@ -1524,11 +1524,11 @@
1524
1524
  }
1525
1525
  },
1526
1526
  {
1527
- "id": 2392,
1527
+ "id": 2404,
1528
1528
  "name": "end",
1529
1529
  "nodeType": "Identifier",
1530
1530
  "overloadedDeclarations": [],
1531
- "referencedDeclaration": 2373,
1531
+ "referencedDeclaration": 2385,
1532
1532
  "src": "1818:3:6",
1533
1533
  "typeDescriptions": {
1534
1534
  "typeIdentifier": "t_uint256",
@@ -1551,18 +1551,18 @@
1551
1551
  "typeString": "uint256"
1552
1552
  }
1553
1553
  ],
1554
- "id": 2389,
1554
+ "id": 2401,
1555
1555
  "name": "Slice_OutOfBounds",
1556
1556
  "nodeType": "Identifier",
1557
1557
  "overloadedDeclarations": [],
1558
- "referencedDeclaration": 2297,
1558
+ "referencedDeclaration": 2309,
1559
1559
  "src": "1787:17:6",
1560
1560
  "typeDescriptions": {
1561
1561
  "typeIdentifier": "t_function_error_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$",
1562
1562
  "typeString": "function (bytes memory,uint256,uint256) pure"
1563
1563
  }
1564
1564
  },
1565
- "id": 2393,
1565
+ "id": 2405,
1566
1566
  "isConstant": false,
1567
1567
  "isLValue": false,
1568
1568
  "isPure": false,
@@ -1577,24 +1577,24 @@
1577
1577
  "typeString": "tuple()"
1578
1578
  }
1579
1579
  },
1580
- "id": 2394,
1580
+ "id": 2406,
1581
1581
  "nodeType": "RevertStatement",
1582
1582
  "src": "1780:42:6"
1583
1583
  }
1584
1584
  },
1585
1585
  {
1586
1586
  "assignments": [
1587
- 2397
1587
+ 2409
1588
1588
  ],
1589
1589
  "declarations": [
1590
1590
  {
1591
1591
  "constant": false,
1592
- "id": 2397,
1592
+ "id": 2409,
1593
1593
  "mutability": "mutable",
1594
1594
  "name": "_pointer",
1595
1595
  "nameLocation": "1837:8:6",
1596
1596
  "nodeType": "VariableDeclaration",
1597
- "scope": 2423,
1597
+ "scope": 2435,
1598
1598
  "src": "1829:16:6",
1599
1599
  "stateVariable": false,
1600
1600
  "storageLocation": "default",
@@ -1603,7 +1603,7 @@
1603
1603
  "typeString": "uint256"
1604
1604
  },
1605
1605
  "typeName": {
1606
- "id": 2396,
1606
+ "id": 2408,
1607
1607
  "name": "uint256",
1608
1608
  "nodeType": "ElementaryTypeName",
1609
1609
  "src": "1829:7:6",
@@ -1615,7 +1615,7 @@
1615
1615
  "visibility": "internal"
1616
1616
  }
1617
1617
  ],
1618
- "id": 2398,
1618
+ "id": 2410,
1619
1619
  "nodeType": "VariableDeclarationStatement",
1620
1620
  "src": "1829:16:6"
1621
1621
  },
@@ -1663,37 +1663,37 @@
1663
1663
  "evmVersion": "london",
1664
1664
  "externalReferences": [
1665
1665
  {
1666
- "declaration": 2397,
1666
+ "declaration": 2409,
1667
1667
  "isOffset": false,
1668
1668
  "isSlot": false,
1669
1669
  "src": "1868:8:6",
1670
1670
  "valueSize": 1
1671
1671
  },
1672
1672
  {
1673
- "declaration": 2369,
1673
+ "declaration": 2381,
1674
1674
  "isOffset": false,
1675
1675
  "isSlot": false,
1676
1676
  "src": "1884:4:6",
1677
1677
  "valueSize": 1
1678
1678
  }
1679
1679
  ],
1680
- "id": 2399,
1680
+ "id": 2411,
1681
1681
  "nodeType": "InlineAssembly",
1682
1682
  "src": "1851:80:6"
1683
1683
  },
1684
1684
  {
1685
1685
  "expression": {
1686
- "id": 2402,
1686
+ "id": 2414,
1687
1687
  "isConstant": false,
1688
1688
  "isLValue": false,
1689
1689
  "isPure": false,
1690
1690
  "lValueRequested": false,
1691
1691
  "leftHandSide": {
1692
- "id": 2400,
1692
+ "id": 2412,
1693
1693
  "name": "_pointer",
1694
1694
  "nodeType": "Identifier",
1695
1695
  "overloadedDeclarations": [],
1696
- "referencedDeclaration": 2397,
1696
+ "referencedDeclaration": 2409,
1697
1697
  "src": "1937:8:6",
1698
1698
  "typeDescriptions": {
1699
1699
  "typeIdentifier": "t_uint256",
@@ -1703,11 +1703,11 @@
1703
1703
  "nodeType": "Assignment",
1704
1704
  "operator": "+=",
1705
1705
  "rightHandSide": {
1706
- "id": 2401,
1706
+ "id": 2413,
1707
1707
  "name": "start",
1708
1708
  "nodeType": "Identifier",
1709
1709
  "overloadedDeclarations": [],
1710
- "referencedDeclaration": 2371,
1710
+ "referencedDeclaration": 2383,
1711
1711
  "src": "1949:5:6",
1712
1712
  "typeDescriptions": {
1713
1713
  "typeIdentifier": "t_uint256",
@@ -1720,23 +1720,23 @@
1720
1720
  "typeString": "uint256"
1721
1721
  }
1722
1722
  },
1723
- "id": 2403,
1723
+ "id": 2415,
1724
1724
  "nodeType": "ExpressionStatement",
1725
1725
  "src": "1937:17:6"
1726
1726
  },
1727
1727
  {
1728
1728
  "assignments": [
1729
- 2405
1729
+ 2417
1730
1730
  ],
1731
1731
  "declarations": [
1732
1732
  {
1733
1733
  "constant": false,
1734
- "id": 2405,
1734
+ "id": 2417,
1735
1735
  "mutability": "mutable",
1736
1736
  "name": "_len",
1737
1737
  "nameLocation": "1968:4:6",
1738
1738
  "nodeType": "VariableDeclaration",
1739
- "scope": 2423,
1739
+ "scope": 2435,
1740
1740
  "src": "1960:12:6",
1741
1741
  "stateVariable": false,
1742
1742
  "storageLocation": "default",
@@ -1745,7 +1745,7 @@
1745
1745
  "typeString": "uint256"
1746
1746
  },
1747
1747
  "typeName": {
1748
- "id": 2404,
1748
+ "id": 2416,
1749
1749
  "name": "uint256",
1750
1750
  "nodeType": "ElementaryTypeName",
1751
1751
  "src": "1960:7:6",
@@ -1757,23 +1757,23 @@
1757
1757
  "visibility": "internal"
1758
1758
  }
1759
1759
  ],
1760
- "id": 2409,
1760
+ "id": 2421,
1761
1761
  "initialValue": {
1762
1762
  "commonType": {
1763
1763
  "typeIdentifier": "t_uint256",
1764
1764
  "typeString": "uint256"
1765
1765
  },
1766
- "id": 2408,
1766
+ "id": 2420,
1767
1767
  "isConstant": false,
1768
1768
  "isLValue": false,
1769
1769
  "isPure": false,
1770
1770
  "lValueRequested": false,
1771
1771
  "leftExpression": {
1772
- "id": 2406,
1772
+ "id": 2418,
1773
1773
  "name": "end",
1774
1774
  "nodeType": "Identifier",
1775
1775
  "overloadedDeclarations": [],
1776
- "referencedDeclaration": 2373,
1776
+ "referencedDeclaration": 2385,
1777
1777
  "src": "1975:3:6",
1778
1778
  "typeDescriptions": {
1779
1779
  "typeIdentifier": "t_uint256",
@@ -1783,11 +1783,11 @@
1783
1783
  "nodeType": "BinaryOperation",
1784
1784
  "operator": "-",
1785
1785
  "rightExpression": {
1786
- "id": 2407,
1786
+ "id": 2419,
1787
1787
  "name": "start",
1788
1788
  "nodeType": "Identifier",
1789
1789
  "overloadedDeclarations": [],
1790
- "referencedDeclaration": 2371,
1790
+ "referencedDeclaration": 2383,
1791
1791
  "src": "1981:5:6",
1792
1792
  "typeDescriptions": {
1793
1793
  "typeIdentifier": "t_uint256",
@@ -1811,7 +1811,7 @@
1811
1811
  "typeIdentifier": "t_uint256",
1812
1812
  "typeString": "uint256"
1813
1813
  },
1814
- "id": 2420,
1814
+ "id": 2432,
1815
1815
  "isConstant": false,
1816
1816
  "isLValue": false,
1817
1817
  "isPure": false,
@@ -1823,17 +1823,17 @@
1823
1823
  "typeIdentifier": "t_uint256",
1824
1824
  "typeString": "uint256"
1825
1825
  },
1826
- "id": 2414,
1826
+ "id": 2426,
1827
1827
  "isConstant": false,
1828
1828
  "isLValue": false,
1829
1829
  "isPure": false,
1830
1830
  "lValueRequested": false,
1831
1831
  "leftExpression": {
1832
- "id": 2412,
1832
+ "id": 2424,
1833
1833
  "name": "_pointer",
1834
1834
  "nodeType": "Identifier",
1835
1835
  "overloadedDeclarations": [],
1836
- "referencedDeclaration": 2397,
1836
+ "referencedDeclaration": 2409,
1837
1837
  "src": "2091:8:6",
1838
1838
  "typeDescriptions": {
1839
1839
  "typeIdentifier": "t_uint256",
@@ -1844,7 +1844,7 @@
1844
1844
  "operator": "<<",
1845
1845
  "rightExpression": {
1846
1846
  "hexValue": "313238",
1847
- "id": 2413,
1847
+ "id": 2425,
1848
1848
  "isConstant": false,
1849
1849
  "isLValue": false,
1850
1850
  "isPure": true,
@@ -1865,7 +1865,7 @@
1865
1865
  }
1866
1866
  }
1867
1867
  ],
1868
- "id": 2415,
1868
+ "id": 2427,
1869
1869
  "isConstant": false,
1870
1870
  "isInlineArray": false,
1871
1871
  "isLValue": false,
@@ -1887,17 +1887,17 @@
1887
1887
  "typeIdentifier": "t_uint256",
1888
1888
  "typeString": "uint256"
1889
1889
  },
1890
- "id": 2418,
1890
+ "id": 2430,
1891
1891
  "isConstant": false,
1892
1892
  "isLValue": false,
1893
1893
  "isPure": false,
1894
1894
  "lValueRequested": false,
1895
1895
  "leftExpression": {
1896
- "id": 2416,
1896
+ "id": 2428,
1897
1897
  "name": "_len",
1898
1898
  "nodeType": "Identifier",
1899
1899
  "overloadedDeclarations": [],
1900
- "referencedDeclaration": 2405,
1900
+ "referencedDeclaration": 2417,
1901
1901
  "src": "2111:4:6",
1902
1902
  "typeDescriptions": {
1903
1903
  "typeIdentifier": "t_uint256",
@@ -1907,11 +1907,11 @@
1907
1907
  "nodeType": "BinaryOperation",
1908
1908
  "operator": "&",
1909
1909
  "rightExpression": {
1910
- "id": 2417,
1910
+ "id": 2429,
1911
1911
  "name": "MASK_LEN",
1912
1912
  "nodeType": "Identifier",
1913
1913
  "overloadedDeclarations": [],
1914
- "referencedDeclaration": 2307,
1914
+ "referencedDeclaration": 2319,
1915
1915
  "src": "2118:8:6",
1916
1916
  "typeDescriptions": {
1917
1917
  "typeIdentifier": "t_uint256",
@@ -1925,7 +1925,7 @@
1925
1925
  }
1926
1926
  }
1927
1927
  ],
1928
- "id": 2419,
1928
+ "id": 2431,
1929
1929
  "isConstant": false,
1930
1930
  "isInlineArray": false,
1931
1931
  "isLValue": false,
@@ -1953,18 +1953,18 @@
1953
1953
  }
1954
1954
  ],
1955
1955
  "expression": {
1956
- "id": 2410,
1956
+ "id": 2422,
1957
1957
  "name": "Slice",
1958
1958
  "nodeType": "Identifier",
1959
1959
  "overloadedDeclarations": [],
1960
- "referencedDeclaration": 2280,
1960
+ "referencedDeclaration": 2292,
1961
1961
  "src": "2079:5:6",
1962
1962
  "typeDescriptions": {
1963
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
1963
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
1964
1964
  "typeString": "type(Slice)"
1965
1965
  }
1966
1966
  },
1967
- "id": 2411,
1967
+ "id": 2423,
1968
1968
  "isConstant": false,
1969
1969
  "isLValue": false,
1970
1970
  "isPure": true,
@@ -1973,11 +1973,11 @@
1973
1973
  "nodeType": "MemberAccess",
1974
1974
  "src": "2079:10:6",
1975
1975
  "typeDescriptions": {
1976
- "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2280_$",
1976
+ "typeIdentifier": "t_function_wrap_pure$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2292_$",
1977
1977
  "typeString": "function (uint256) pure returns (Slice)"
1978
1978
  }
1979
1979
  },
1980
- "id": 2421,
1980
+ "id": 2433,
1981
1981
  "isConstant": false,
1982
1982
  "isLValue": false,
1983
1983
  "isPure": false,
@@ -1988,19 +1988,19 @@
1988
1988
  "src": "2079:49:6",
1989
1989
  "tryCall": false,
1990
1990
  "typeDescriptions": {
1991
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
1991
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
1992
1992
  "typeString": "Slice"
1993
1993
  }
1994
1994
  },
1995
- "functionReturnParameters": 2378,
1996
- "id": 2422,
1995
+ "functionReturnParameters": 2390,
1996
+ "id": 2434,
1997
1997
  "nodeType": "Return",
1998
1998
  "src": "2072:56:6"
1999
1999
  }
2000
2000
  ]
2001
2001
  },
2002
2002
  "documentation": {
2003
- "id": 2367,
2003
+ "id": 2379,
2004
2004
  "nodeType": "StructuredDocumentation",
2005
2005
  "src": "1409:151:6",
2006
2006
  "text": " @dev Subslice a bytes array using the given indexes (without copying data)\n The start index is inclusive, the end index is exclusive"
@@ -2011,17 +2011,17 @@
2011
2011
  "name": "getSubslice",
2012
2012
  "nameLocation": "1572:11:6",
2013
2013
  "parameters": {
2014
- "id": 2374,
2014
+ "id": 2386,
2015
2015
  "nodeType": "ParameterList",
2016
2016
  "parameters": [
2017
2017
  {
2018
2018
  "constant": false,
2019
- "id": 2369,
2019
+ "id": 2381,
2020
2020
  "mutability": "mutable",
2021
2021
  "name": "data",
2022
2022
  "nameLocation": "1597:4:6",
2023
2023
  "nodeType": "VariableDeclaration",
2024
- "scope": 2424,
2024
+ "scope": 2436,
2025
2025
  "src": "1584:17:6",
2026
2026
  "stateVariable": false,
2027
2027
  "storageLocation": "memory",
@@ -2030,7 +2030,7 @@
2030
2030
  "typeString": "bytes"
2031
2031
  },
2032
2032
  "typeName": {
2033
- "id": 2368,
2033
+ "id": 2380,
2034
2034
  "name": "bytes",
2035
2035
  "nodeType": "ElementaryTypeName",
2036
2036
  "src": "1584:5:6",
@@ -2043,12 +2043,12 @@
2043
2043
  },
2044
2044
  {
2045
2045
  "constant": false,
2046
- "id": 2371,
2046
+ "id": 2383,
2047
2047
  "mutability": "mutable",
2048
2048
  "name": "start",
2049
2049
  "nameLocation": "1611:5:6",
2050
2050
  "nodeType": "VariableDeclaration",
2051
- "scope": 2424,
2051
+ "scope": 2436,
2052
2052
  "src": "1603:13:6",
2053
2053
  "stateVariable": false,
2054
2054
  "storageLocation": "default",
@@ -2057,7 +2057,7 @@
2057
2057
  "typeString": "uint256"
2058
2058
  },
2059
2059
  "typeName": {
2060
- "id": 2370,
2060
+ "id": 2382,
2061
2061
  "name": "uint256",
2062
2062
  "nodeType": "ElementaryTypeName",
2063
2063
  "src": "1603:7:6",
@@ -2070,12 +2070,12 @@
2070
2070
  },
2071
2071
  {
2072
2072
  "constant": false,
2073
- "id": 2373,
2073
+ "id": 2385,
2074
2074
  "mutability": "mutable",
2075
2075
  "name": "end",
2076
2076
  "nameLocation": "1626:3:6",
2077
2077
  "nodeType": "VariableDeclaration",
2078
- "scope": 2424,
2078
+ "scope": 2436,
2079
2079
  "src": "1618:11:6",
2080
2080
  "stateVariable": false,
2081
2081
  "storageLocation": "default",
@@ -2084,7 +2084,7 @@
2084
2084
  "typeString": "uint256"
2085
2085
  },
2086
2086
  "typeName": {
2087
- "id": 2372,
2087
+ "id": 2384,
2088
2088
  "name": "uint256",
2089
2089
  "nodeType": "ElementaryTypeName",
2090
2090
  "src": "1618:7:6",
@@ -2099,38 +2099,38 @@
2099
2099
  "src": "1583:47:6"
2100
2100
  },
2101
2101
  "returnParameters": {
2102
- "id": 2378,
2102
+ "id": 2390,
2103
2103
  "nodeType": "ParameterList",
2104
2104
  "parameters": [
2105
2105
  {
2106
2106
  "constant": false,
2107
- "id": 2377,
2107
+ "id": 2389,
2108
2108
  "mutability": "mutable",
2109
2109
  "name": "",
2110
2110
  "nameLocation": "-1:-1:-1",
2111
2111
  "nodeType": "VariableDeclaration",
2112
- "scope": 2424,
2112
+ "scope": 2436,
2113
2113
  "src": "1654:5:6",
2114
2114
  "stateVariable": false,
2115
2115
  "storageLocation": "default",
2116
2116
  "typeDescriptions": {
2117
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2117
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2118
2118
  "typeString": "Slice"
2119
2119
  },
2120
2120
  "typeName": {
2121
- "id": 2376,
2121
+ "id": 2388,
2122
2122
  "nodeType": "UserDefinedTypeName",
2123
2123
  "pathNode": {
2124
- "id": 2375,
2124
+ "id": 2387,
2125
2125
  "name": "Slice",
2126
2126
  "nodeType": "IdentifierPath",
2127
- "referencedDeclaration": 2280,
2127
+ "referencedDeclaration": 2292,
2128
2128
  "src": "1654:5:6"
2129
2129
  },
2130
- "referencedDeclaration": 2280,
2130
+ "referencedDeclaration": 2292,
2131
2131
  "src": "1654:5:6",
2132
2132
  "typeDescriptions": {
2133
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2133
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2134
2134
  "typeString": "Slice"
2135
2135
  }
2136
2136
  },
@@ -2139,7 +2139,7 @@
2139
2139
  ],
2140
2140
  "src": "1653:7:6"
2141
2141
  },
2142
- "scope": 2425,
2142
+ "scope": 2437,
2143
2143
  "stateMutability": "pure",
2144
2144
  "virtual": false,
2145
2145
  "visibility": "internal"
@@ -2151,34 +2151,34 @@
2151
2151
  "contractDependencies": [],
2152
2152
  "contractKind": "library",
2153
2153
  "documentation": {
2154
- "id": 2289,
2154
+ "id": 2301,
2155
2155
  "nodeType": "StructuredDocumentation",
2156
2156
  "src": "472:44:6",
2157
2157
  "text": " @title Static functions for Slice"
2158
2158
  },
2159
2159
  "fullyImplemented": true,
2160
2160
  "linearizedBaseContracts": [
2161
- 2425
2161
+ 2437
2162
2162
  ],
2163
2163
  "name": "SliceLib",
2164
2164
  "nameLocation": "525:8:6",
2165
- "scope": 2522,
2165
+ "scope": 2534,
2166
2166
  "usedErrors": [
2167
- 2297
2167
+ 2309
2168
2168
  ]
2169
2169
  },
2170
2170
  {
2171
- "id": 2521,
2171
+ "id": 2533,
2172
2172
  "nodeType": "ContractDefinition",
2173
2173
  "src": "2184:1146:6",
2174
2174
  "nodes": [
2175
2175
  {
2176
- "id": 2443,
2176
+ "id": 2455,
2177
2177
  "nodeType": "FunctionDefinition",
2178
2178
  "src": "2276:104:6",
2179
2179
  "nodes": [],
2180
2180
  "body": {
2181
- "id": 2442,
2181
+ "id": 2454,
2182
2182
  "nodeType": "Block",
2183
2183
  "src": "2337:43:6",
2184
2184
  "nodes": [],
@@ -2189,7 +2189,7 @@
2189
2189
  "typeIdentifier": "t_uint256",
2190
2190
  "typeString": "uint256"
2191
2191
  },
2192
- "id": 2440,
2192
+ "id": 2452,
2193
2193
  "isConstant": false,
2194
2194
  "isLValue": false,
2195
2195
  "isPure": false,
@@ -2197,14 +2197,14 @@
2197
2197
  "leftExpression": {
2198
2198
  "arguments": [
2199
2199
  {
2200
- "id": 2437,
2200
+ "id": 2449,
2201
2201
  "name": "self",
2202
2202
  "nodeType": "Identifier",
2203
2203
  "overloadedDeclarations": [],
2204
- "referencedDeclaration": 2430,
2204
+ "referencedDeclaration": 2442,
2205
2205
  "src": "2363:4:6",
2206
2206
  "typeDescriptions": {
2207
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2207
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2208
2208
  "typeString": "Slice"
2209
2209
  }
2210
2210
  }
@@ -2212,23 +2212,23 @@
2212
2212
  "expression": {
2213
2213
  "argumentTypes": [
2214
2214
  {
2215
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2215
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2216
2216
  "typeString": "Slice"
2217
2217
  }
2218
2218
  ],
2219
2219
  "expression": {
2220
- "id": 2435,
2220
+ "id": 2447,
2221
2221
  "name": "Slice",
2222
2222
  "nodeType": "Identifier",
2223
2223
  "overloadedDeclarations": [],
2224
- "referencedDeclaration": 2280,
2224
+ "referencedDeclaration": 2292,
2225
2225
  "src": "2350:5:6",
2226
2226
  "typeDescriptions": {
2227
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
2227
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
2228
2228
  "typeString": "type(Slice)"
2229
2229
  }
2230
2230
  },
2231
- "id": 2436,
2231
+ "id": 2448,
2232
2232
  "isConstant": false,
2233
2233
  "isLValue": false,
2234
2234
  "isPure": true,
@@ -2237,11 +2237,11 @@
2237
2237
  "nodeType": "MemberAccess",
2238
2238
  "src": "2350:12:6",
2239
2239
  "typeDescriptions": {
2240
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2240
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2241
2241
  "typeString": "function (Slice) pure returns (uint256)"
2242
2242
  }
2243
2243
  },
2244
- "id": 2438,
2244
+ "id": 2450,
2245
2245
  "isConstant": false,
2246
2246
  "isLValue": false,
2247
2247
  "isPure": false,
@@ -2260,7 +2260,7 @@
2260
2260
  "operator": ">>",
2261
2261
  "rightExpression": {
2262
2262
  "hexValue": "313238",
2263
- "id": 2439,
2263
+ "id": 2451,
2264
2264
  "isConstant": false,
2265
2265
  "isLValue": false,
2266
2266
  "isPure": true,
@@ -2280,15 +2280,15 @@
2280
2280
  "typeString": "uint256"
2281
2281
  }
2282
2282
  },
2283
- "functionReturnParameters": 2434,
2284
- "id": 2441,
2283
+ "functionReturnParameters": 2446,
2284
+ "id": 2453,
2285
2285
  "nodeType": "Return",
2286
2286
  "src": "2343:32:6"
2287
2287
  }
2288
2288
  ]
2289
2289
  },
2290
2290
  "documentation": {
2291
- "id": 2427,
2291
+ "id": 2439,
2292
2292
  "nodeType": "StructuredDocumentation",
2293
2293
  "src": "2210:63:6",
2294
2294
  "text": " @dev Returns the pointer to the start of a slice"
@@ -2299,38 +2299,38 @@
2299
2299
  "name": "pointer",
2300
2300
  "nameLocation": "2285:7:6",
2301
2301
  "parameters": {
2302
- "id": 2431,
2302
+ "id": 2443,
2303
2303
  "nodeType": "ParameterList",
2304
2304
  "parameters": [
2305
2305
  {
2306
2306
  "constant": false,
2307
- "id": 2430,
2307
+ "id": 2442,
2308
2308
  "mutability": "mutable",
2309
2309
  "name": "self",
2310
2310
  "nameLocation": "2299:4:6",
2311
2311
  "nodeType": "VariableDeclaration",
2312
- "scope": 2443,
2312
+ "scope": 2455,
2313
2313
  "src": "2293:10:6",
2314
2314
  "stateVariable": false,
2315
2315
  "storageLocation": "default",
2316
2316
  "typeDescriptions": {
2317
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2317
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2318
2318
  "typeString": "Slice"
2319
2319
  },
2320
2320
  "typeName": {
2321
- "id": 2429,
2321
+ "id": 2441,
2322
2322
  "nodeType": "UserDefinedTypeName",
2323
2323
  "pathNode": {
2324
- "id": 2428,
2324
+ "id": 2440,
2325
2325
  "name": "Slice",
2326
2326
  "nodeType": "IdentifierPath",
2327
- "referencedDeclaration": 2280,
2327
+ "referencedDeclaration": 2292,
2328
2328
  "src": "2293:5:6"
2329
2329
  },
2330
- "referencedDeclaration": 2280,
2330
+ "referencedDeclaration": 2292,
2331
2331
  "src": "2293:5:6",
2332
2332
  "typeDescriptions": {
2333
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2333
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2334
2334
  "typeString": "Slice"
2335
2335
  }
2336
2336
  },
@@ -2340,17 +2340,17 @@
2340
2340
  "src": "2292:12:6"
2341
2341
  },
2342
2342
  "returnParameters": {
2343
- "id": 2434,
2343
+ "id": 2446,
2344
2344
  "nodeType": "ParameterList",
2345
2345
  "parameters": [
2346
2346
  {
2347
2347
  "constant": false,
2348
- "id": 2433,
2348
+ "id": 2445,
2349
2349
  "mutability": "mutable",
2350
2350
  "name": "",
2351
2351
  "nameLocation": "-1:-1:-1",
2352
2352
  "nodeType": "VariableDeclaration",
2353
- "scope": 2443,
2353
+ "scope": 2455,
2354
2354
  "src": "2328:7:6",
2355
2355
  "stateVariable": false,
2356
2356
  "storageLocation": "default",
@@ -2359,7 +2359,7 @@
2359
2359
  "typeString": "uint256"
2360
2360
  },
2361
2361
  "typeName": {
2362
- "id": 2432,
2362
+ "id": 2444,
2363
2363
  "name": "uint256",
2364
2364
  "nodeType": "ElementaryTypeName",
2365
2365
  "src": "2328:7:6",
@@ -2373,18 +2373,18 @@
2373
2373
  ],
2374
2374
  "src": "2327:9:6"
2375
2375
  },
2376
- "scope": 2521,
2376
+ "scope": 2533,
2377
2377
  "stateMutability": "pure",
2378
2378
  "virtual": false,
2379
2379
  "visibility": "internal"
2380
2380
  },
2381
2381
  {
2382
- "id": 2461,
2382
+ "id": 2473,
2383
2383
  "nodeType": "FunctionDefinition",
2384
2384
  "src": "2440:116:6",
2385
2385
  "nodes": [],
2386
2386
  "body": {
2387
- "id": 2460,
2387
+ "id": 2472,
2388
2388
  "nodeType": "Block",
2389
2389
  "src": "2500:56:6",
2390
2390
  "nodes": [],
@@ -2395,7 +2395,7 @@
2395
2395
  "typeIdentifier": "t_uint256",
2396
2396
  "typeString": "uint256"
2397
2397
  },
2398
- "id": 2458,
2398
+ "id": 2470,
2399
2399
  "isConstant": false,
2400
2400
  "isLValue": false,
2401
2401
  "isPure": false,
@@ -2403,14 +2403,14 @@
2403
2403
  "leftExpression": {
2404
2404
  "arguments": [
2405
2405
  {
2406
- "id": 2454,
2406
+ "id": 2466,
2407
2407
  "name": "self",
2408
2408
  "nodeType": "Identifier",
2409
2409
  "overloadedDeclarations": [],
2410
- "referencedDeclaration": 2447,
2410
+ "referencedDeclaration": 2459,
2411
2411
  "src": "2526:4:6",
2412
2412
  "typeDescriptions": {
2413
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2413
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2414
2414
  "typeString": "Slice"
2415
2415
  }
2416
2416
  }
@@ -2418,23 +2418,23 @@
2418
2418
  "expression": {
2419
2419
  "argumentTypes": [
2420
2420
  {
2421
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2421
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2422
2422
  "typeString": "Slice"
2423
2423
  }
2424
2424
  ],
2425
2425
  "expression": {
2426
- "id": 2452,
2426
+ "id": 2464,
2427
2427
  "name": "Slice",
2428
2428
  "nodeType": "Identifier",
2429
2429
  "overloadedDeclarations": [],
2430
- "referencedDeclaration": 2280,
2430
+ "referencedDeclaration": 2292,
2431
2431
  "src": "2513:5:6",
2432
2432
  "typeDescriptions": {
2433
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2280_$",
2433
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Slice_$2292_$",
2434
2434
  "typeString": "type(Slice)"
2435
2435
  }
2436
2436
  },
2437
- "id": 2453,
2437
+ "id": 2465,
2438
2438
  "isConstant": false,
2439
2439
  "isLValue": false,
2440
2440
  "isPure": true,
@@ -2443,11 +2443,11 @@
2443
2443
  "nodeType": "MemberAccess",
2444
2444
  "src": "2513:12:6",
2445
2445
  "typeDescriptions": {
2446
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2446
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2447
2447
  "typeString": "function (Slice) pure returns (uint256)"
2448
2448
  }
2449
2449
  },
2450
- "id": 2455,
2450
+ "id": 2467,
2451
2451
  "isConstant": false,
2452
2452
  "isLValue": false,
2453
2453
  "isPure": false,
@@ -2466,25 +2466,25 @@
2466
2466
  "operator": "&",
2467
2467
  "rightExpression": {
2468
2468
  "expression": {
2469
- "id": 2456,
2469
+ "id": 2468,
2470
2470
  "name": "SliceLib",
2471
2471
  "nodeType": "Identifier",
2472
2472
  "overloadedDeclarations": [],
2473
- "referencedDeclaration": 2425,
2473
+ "referencedDeclaration": 2437,
2474
2474
  "src": "2534:8:6",
2475
2475
  "typeDescriptions": {
2476
- "typeIdentifier": "t_type$_t_contract$_SliceLib_$2425_$",
2476
+ "typeIdentifier": "t_type$_t_contract$_SliceLib_$2437_$",
2477
2477
  "typeString": "type(library SliceLib)"
2478
2478
  }
2479
2479
  },
2480
- "id": 2457,
2480
+ "id": 2469,
2481
2481
  "isConstant": false,
2482
2482
  "isLValue": false,
2483
2483
  "isPure": false,
2484
2484
  "lValueRequested": false,
2485
2485
  "memberName": "MASK_LEN",
2486
2486
  "nodeType": "MemberAccess",
2487
- "referencedDeclaration": 2307,
2487
+ "referencedDeclaration": 2319,
2488
2488
  "src": "2534:17:6",
2489
2489
  "typeDescriptions": {
2490
2490
  "typeIdentifier": "t_uint256",
@@ -2497,15 +2497,15 @@
2497
2497
  "typeString": "uint256"
2498
2498
  }
2499
2499
  },
2500
- "functionReturnParameters": 2451,
2501
- "id": 2459,
2500
+ "functionReturnParameters": 2463,
2501
+ "id": 2471,
2502
2502
  "nodeType": "Return",
2503
2503
  "src": "2506:45:6"
2504
2504
  }
2505
2505
  ]
2506
2506
  },
2507
2507
  "documentation": {
2508
- "id": 2444,
2508
+ "id": 2456,
2509
2509
  "nodeType": "StructuredDocumentation",
2510
2510
  "src": "2384:53:6",
2511
2511
  "text": " @dev Returns the slice length in bytes"
@@ -2516,38 +2516,38 @@
2516
2516
  "name": "length",
2517
2517
  "nameLocation": "2449:6:6",
2518
2518
  "parameters": {
2519
- "id": 2448,
2519
+ "id": 2460,
2520
2520
  "nodeType": "ParameterList",
2521
2521
  "parameters": [
2522
2522
  {
2523
2523
  "constant": false,
2524
- "id": 2447,
2524
+ "id": 2459,
2525
2525
  "mutability": "mutable",
2526
2526
  "name": "self",
2527
2527
  "nameLocation": "2462:4:6",
2528
2528
  "nodeType": "VariableDeclaration",
2529
- "scope": 2461,
2529
+ "scope": 2473,
2530
2530
  "src": "2456:10:6",
2531
2531
  "stateVariable": false,
2532
2532
  "storageLocation": "default",
2533
2533
  "typeDescriptions": {
2534
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2534
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2535
2535
  "typeString": "Slice"
2536
2536
  },
2537
2537
  "typeName": {
2538
- "id": 2446,
2538
+ "id": 2458,
2539
2539
  "nodeType": "UserDefinedTypeName",
2540
2540
  "pathNode": {
2541
- "id": 2445,
2541
+ "id": 2457,
2542
2542
  "name": "Slice",
2543
2543
  "nodeType": "IdentifierPath",
2544
- "referencedDeclaration": 2280,
2544
+ "referencedDeclaration": 2292,
2545
2545
  "src": "2456:5:6"
2546
2546
  },
2547
- "referencedDeclaration": 2280,
2547
+ "referencedDeclaration": 2292,
2548
2548
  "src": "2456:5:6",
2549
2549
  "typeDescriptions": {
2550
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2550
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2551
2551
  "typeString": "Slice"
2552
2552
  }
2553
2553
  },
@@ -2557,17 +2557,17 @@
2557
2557
  "src": "2455:12:6"
2558
2558
  },
2559
2559
  "returnParameters": {
2560
- "id": 2451,
2560
+ "id": 2463,
2561
2561
  "nodeType": "ParameterList",
2562
2562
  "parameters": [
2563
2563
  {
2564
2564
  "constant": false,
2565
- "id": 2450,
2565
+ "id": 2462,
2566
2566
  "mutability": "mutable",
2567
2567
  "name": "",
2568
2568
  "nameLocation": "-1:-1:-1",
2569
2569
  "nodeType": "VariableDeclaration",
2570
- "scope": 2461,
2570
+ "scope": 2473,
2571
2571
  "src": "2491:7:6",
2572
2572
  "stateVariable": false,
2573
2573
  "storageLocation": "default",
@@ -2576,7 +2576,7 @@
2576
2576
  "typeString": "uint256"
2577
2577
  },
2578
2578
  "typeName": {
2579
- "id": 2449,
2579
+ "id": 2461,
2580
2580
  "name": "uint256",
2581
2581
  "nodeType": "ElementaryTypeName",
2582
2582
  "src": "2491:7:6",
@@ -2590,35 +2590,35 @@
2590
2590
  ],
2591
2591
  "src": "2490:9:6"
2592
2592
  },
2593
- "scope": 2521,
2593
+ "scope": 2533,
2594
2594
  "stateMutability": "pure",
2595
2595
  "virtual": false,
2596
2596
  "visibility": "internal"
2597
2597
  },
2598
2598
  {
2599
- "id": 2502,
2599
+ "id": 2514,
2600
2600
  "nodeType": "FunctionDefinition",
2601
2601
  "src": "2673:416:6",
2602
2602
  "nodes": [],
2603
2603
  "body": {
2604
- "id": 2501,
2604
+ "id": 2513,
2605
2605
  "nodeType": "Block",
2606
2606
  "src": "2744:345:6",
2607
2607
  "nodes": [],
2608
2608
  "statements": [
2609
2609
  {
2610
2610
  "assignments": [
2611
- 2471
2611
+ 2483
2612
2612
  ],
2613
2613
  "declarations": [
2614
2614
  {
2615
2615
  "constant": false,
2616
- "id": 2471,
2616
+ "id": 2483,
2617
2617
  "mutability": "mutable",
2618
2618
  "name": "fromPointer",
2619
2619
  "nameLocation": "2758:11:6",
2620
2620
  "nodeType": "VariableDeclaration",
2621
- "scope": 2501,
2621
+ "scope": 2513,
2622
2622
  "src": "2750:19:6",
2623
2623
  "stateVariable": false,
2624
2624
  "storageLocation": "default",
@@ -2627,7 +2627,7 @@
2627
2627
  "typeString": "uint256"
2628
2628
  },
2629
2629
  "typeName": {
2630
- "id": 2470,
2630
+ "id": 2482,
2631
2631
  "name": "uint256",
2632
2632
  "nodeType": "ElementaryTypeName",
2633
2633
  "src": "2750:7:6",
@@ -2639,18 +2639,18 @@
2639
2639
  "visibility": "internal"
2640
2640
  }
2641
2641
  ],
2642
- "id": 2475,
2642
+ "id": 2487,
2643
2643
  "initialValue": {
2644
2644
  "arguments": [
2645
2645
  {
2646
- "id": 2473,
2646
+ "id": 2485,
2647
2647
  "name": "self",
2648
2648
  "nodeType": "Identifier",
2649
2649
  "overloadedDeclarations": [],
2650
- "referencedDeclaration": 2465,
2650
+ "referencedDeclaration": 2477,
2651
2651
  "src": "2780:4:6",
2652
2652
  "typeDescriptions": {
2653
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2653
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2654
2654
  "typeString": "Slice"
2655
2655
  }
2656
2656
  }
@@ -2658,22 +2658,22 @@
2658
2658
  "expression": {
2659
2659
  "argumentTypes": [
2660
2660
  {
2661
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2661
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2662
2662
  "typeString": "Slice"
2663
2663
  }
2664
2664
  ],
2665
- "id": 2472,
2665
+ "id": 2484,
2666
2666
  "name": "pointer",
2667
2667
  "nodeType": "Identifier",
2668
2668
  "overloadedDeclarations": [],
2669
- "referencedDeclaration": 2443,
2669
+ "referencedDeclaration": 2455,
2670
2670
  "src": "2772:7:6",
2671
2671
  "typeDescriptions": {
2672
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2672
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2673
2673
  "typeString": "function (Slice) pure returns (uint256)"
2674
2674
  }
2675
2675
  },
2676
- "id": 2474,
2676
+ "id": 2486,
2677
2677
  "isConstant": false,
2678
2678
  "isLValue": false,
2679
2679
  "isPure": false,
@@ -2693,17 +2693,17 @@
2693
2693
  },
2694
2694
  {
2695
2695
  "assignments": [
2696
- 2477
2696
+ 2489
2697
2697
  ],
2698
2698
  "declarations": [
2699
2699
  {
2700
2700
  "constant": false,
2701
- "id": 2477,
2701
+ "id": 2489,
2702
2702
  "mutability": "mutable",
2703
2703
  "name": "_length",
2704
2704
  "nameLocation": "2799:7:6",
2705
2705
  "nodeType": "VariableDeclaration",
2706
- "scope": 2501,
2706
+ "scope": 2513,
2707
2707
  "src": "2791:15:6",
2708
2708
  "stateVariable": false,
2709
2709
  "storageLocation": "default",
@@ -2712,7 +2712,7 @@
2712
2712
  "typeString": "uint256"
2713
2713
  },
2714
2714
  "typeName": {
2715
- "id": 2476,
2715
+ "id": 2488,
2716
2716
  "name": "uint256",
2717
2717
  "nodeType": "ElementaryTypeName",
2718
2718
  "src": "2791:7:6",
@@ -2724,18 +2724,18 @@
2724
2724
  "visibility": "internal"
2725
2725
  }
2726
2726
  ],
2727
- "id": 2481,
2727
+ "id": 2493,
2728
2728
  "initialValue": {
2729
2729
  "arguments": [
2730
2730
  {
2731
- "id": 2479,
2731
+ "id": 2491,
2732
2732
  "name": "self",
2733
2733
  "nodeType": "Identifier",
2734
2734
  "overloadedDeclarations": [],
2735
- "referencedDeclaration": 2465,
2735
+ "referencedDeclaration": 2477,
2736
2736
  "src": "2816:4:6",
2737
2737
  "typeDescriptions": {
2738
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2738
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2739
2739
  "typeString": "Slice"
2740
2740
  }
2741
2741
  }
@@ -2743,22 +2743,22 @@
2743
2743
  "expression": {
2744
2744
  "argumentTypes": [
2745
2745
  {
2746
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
2746
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
2747
2747
  "typeString": "Slice"
2748
2748
  }
2749
2749
  ],
2750
- "id": 2478,
2750
+ "id": 2490,
2751
2751
  "name": "length",
2752
2752
  "nodeType": "Identifier",
2753
2753
  "overloadedDeclarations": [],
2754
- "referencedDeclaration": 2461,
2754
+ "referencedDeclaration": 2473,
2755
2755
  "src": "2809:6:6",
2756
2756
  "typeDescriptions": {
2757
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$",
2757
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$",
2758
2758
  "typeString": "function (Slice) pure returns (uint256)"
2759
2759
  }
2760
2760
  },
2761
- "id": 2480,
2761
+ "id": 2492,
2762
2762
  "isConstant": false,
2763
2763
  "isLValue": false,
2764
2764
  "isPure": false,
@@ -2778,17 +2778,17 @@
2778
2778
  },
2779
2779
  {
2780
2780
  "expression": {
2781
- "id": 2487,
2781
+ "id": 2499,
2782
2782
  "isConstant": false,
2783
2783
  "isLValue": false,
2784
2784
  "isPure": false,
2785
2785
  "lValueRequested": false,
2786
2786
  "leftHandSide": {
2787
- "id": 2482,
2787
+ "id": 2494,
2788
2788
  "name": "data",
2789
2789
  "nodeType": "Identifier",
2790
2790
  "overloadedDeclarations": [],
2791
- "referencedDeclaration": 2468,
2791
+ "referencedDeclaration": 2480,
2792
2792
  "src": "2888:4:6",
2793
2793
  "typeDescriptions": {
2794
2794
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -2800,11 +2800,11 @@
2800
2800
  "rightHandSide": {
2801
2801
  "arguments": [
2802
2802
  {
2803
- "id": 2485,
2803
+ "id": 2497,
2804
2804
  "name": "_length",
2805
2805
  "nodeType": "Identifier",
2806
2806
  "overloadedDeclarations": [],
2807
- "referencedDeclaration": 2477,
2807
+ "referencedDeclaration": 2489,
2808
2808
  "src": "2905:7:6",
2809
2809
  "typeDescriptions": {
2810
2810
  "typeIdentifier": "t_uint256",
@@ -2819,7 +2819,7 @@
2819
2819
  "typeString": "uint256"
2820
2820
  }
2821
2821
  ],
2822
- "id": 2484,
2822
+ "id": 2496,
2823
2823
  "isConstant": false,
2824
2824
  "isLValue": false,
2825
2825
  "isPure": true,
@@ -2831,7 +2831,7 @@
2831
2831
  "typeString": "function (uint256) pure returns (bytes memory)"
2832
2832
  },
2833
2833
  "typeName": {
2834
- "id": 2483,
2834
+ "id": 2495,
2835
2835
  "name": "bytes",
2836
2836
  "nodeType": "ElementaryTypeName",
2837
2837
  "src": "2899:5:6",
@@ -2841,7 +2841,7 @@
2841
2841
  }
2842
2842
  }
2843
2843
  },
2844
- "id": 2486,
2844
+ "id": 2498,
2845
2845
  "isConstant": false,
2846
2846
  "isLValue": false,
2847
2847
  "isPure": false,
@@ -2862,23 +2862,23 @@
2862
2862
  "typeString": "bytes memory"
2863
2863
  }
2864
2864
  },
2865
- "id": 2488,
2865
+ "id": 2500,
2866
2866
  "nodeType": "ExpressionStatement",
2867
2867
  "src": "2888:25:6"
2868
2868
  },
2869
2869
  {
2870
2870
  "assignments": [
2871
- 2490
2871
+ 2502
2872
2872
  ],
2873
2873
  "declarations": [
2874
2874
  {
2875
2875
  "constant": false,
2876
- "id": 2490,
2876
+ "id": 2502,
2877
2877
  "mutability": "mutable",
2878
2878
  "name": "toPointer",
2879
2879
  "nameLocation": "2927:9:6",
2880
2880
  "nodeType": "VariableDeclaration",
2881
- "scope": 2501,
2881
+ "scope": 2513,
2882
2882
  "src": "2919:17:6",
2883
2883
  "stateVariable": false,
2884
2884
  "storageLocation": "default",
@@ -2887,7 +2887,7 @@
2887
2887
  "typeString": "uint256"
2888
2888
  },
2889
2889
  "typeName": {
2890
- "id": 2489,
2890
+ "id": 2501,
2891
2891
  "name": "uint256",
2892
2892
  "nodeType": "ElementaryTypeName",
2893
2893
  "src": "2919:7:6",
@@ -2899,7 +2899,7 @@
2899
2899
  "visibility": "internal"
2900
2900
  }
2901
2901
  ],
2902
- "id": 2491,
2902
+ "id": 2503,
2903
2903
  "nodeType": "VariableDeclarationStatement",
2904
2904
  "src": "2919:17:6"
2905
2905
  },
@@ -2947,21 +2947,21 @@
2947
2947
  "evmVersion": "london",
2948
2948
  "externalReferences": [
2949
2949
  {
2950
- "declaration": 2468,
2950
+ "declaration": 2480,
2951
2951
  "isOffset": false,
2952
2952
  "isSlot": false,
2953
2953
  "src": "2976:4:6",
2954
2954
  "valueSize": 1
2955
2955
  },
2956
2956
  {
2957
- "declaration": 2490,
2957
+ "declaration": 2502,
2958
2958
  "isOffset": false,
2959
2959
  "isSlot": false,
2960
2960
  "src": "2959:9:6",
2961
2961
  "valueSize": 1
2962
2962
  }
2963
2963
  ],
2964
- "id": 2492,
2964
+ "id": 2504,
2965
2965
  "nodeType": "InlineAssembly",
2966
2966
  "src": "2942:49:6"
2967
2967
  },
@@ -2969,11 +2969,11 @@
2969
2969
  "expression": {
2970
2970
  "arguments": [
2971
2971
  {
2972
- "id": 2496,
2972
+ "id": 2508,
2973
2973
  "name": "fromPointer",
2974
2974
  "nodeType": "Identifier",
2975
2975
  "overloadedDeclarations": [],
2976
- "referencedDeclaration": 2471,
2976
+ "referencedDeclaration": 2483,
2977
2977
  "src": "3052:11:6",
2978
2978
  "typeDescriptions": {
2979
2979
  "typeIdentifier": "t_uint256",
@@ -2981,11 +2981,11 @@
2981
2981
  }
2982
2982
  },
2983
2983
  {
2984
- "id": 2497,
2984
+ "id": 2509,
2985
2985
  "name": "toPointer",
2986
2986
  "nodeType": "Identifier",
2987
2987
  "overloadedDeclarations": [],
2988
- "referencedDeclaration": 2490,
2988
+ "referencedDeclaration": 2502,
2989
2989
  "src": "3065:9:6",
2990
2990
  "typeDescriptions": {
2991
2991
  "typeIdentifier": "t_uint256",
@@ -2993,11 +2993,11 @@
2993
2993
  }
2994
2994
  },
2995
2995
  {
2996
- "id": 2498,
2996
+ "id": 2510,
2997
2997
  "name": "_length",
2998
2998
  "nodeType": "Identifier",
2999
2999
  "overloadedDeclarations": [],
3000
- "referencedDeclaration": 2477,
3000
+ "referencedDeclaration": 2489,
3001
3001
  "src": "3076:7:6",
3002
3002
  "typeDescriptions": {
3003
3003
  "typeIdentifier": "t_uint256",
@@ -3021,32 +3021,32 @@
3021
3021
  }
3022
3022
  ],
3023
3023
  "expression": {
3024
- "id": 2493,
3024
+ "id": 2505,
3025
3025
  "name": "Memory",
3026
3026
  "nodeType": "Identifier",
3027
3027
  "overloadedDeclarations": [],
3028
- "referencedDeclaration": 1075,
3028
+ "referencedDeclaration": 1087,
3029
3029
  "src": "3040:6:6",
3030
3030
  "typeDescriptions": {
3031
- "typeIdentifier": "t_type$_t_contract$_Memory_$1075_$",
3031
+ "typeIdentifier": "t_type$_t_contract$_Memory_$1087_$",
3032
3032
  "typeString": "type(library Memory)"
3033
3033
  }
3034
3034
  },
3035
- "id": 2495,
3035
+ "id": 2507,
3036
3036
  "isConstant": false,
3037
3037
  "isLValue": false,
3038
3038
  "isPure": false,
3039
3039
  "lValueRequested": false,
3040
3040
  "memberName": "copy",
3041
3041
  "nodeType": "MemberAccess",
3042
- "referencedDeclaration": 1074,
3042
+ "referencedDeclaration": 1086,
3043
3043
  "src": "3040:11:6",
3044
3044
  "typeDescriptions": {
3045
3045
  "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
3046
3046
  "typeString": "function (uint256,uint256,uint256) view"
3047
3047
  }
3048
3048
  },
3049
- "id": 2499,
3049
+ "id": 2511,
3050
3050
  "isConstant": false,
3051
3051
  "isLValue": false,
3052
3052
  "isPure": false,
@@ -3061,14 +3061,14 @@
3061
3061
  "typeString": "tuple()"
3062
3062
  }
3063
3063
  },
3064
- "id": 2500,
3064
+ "id": 2512,
3065
3065
  "nodeType": "ExpressionStatement",
3066
3066
  "src": "3040:44:6"
3067
3067
  }
3068
3068
  ]
3069
3069
  },
3070
3070
  "documentation": {
3071
- "id": 2462,
3071
+ "id": 2474,
3072
3072
  "nodeType": "StructuredDocumentation",
3073
3073
  "src": "2560:110:6",
3074
3074
  "text": " @dev Copies the slice to a new bytes array\n The slice will NOT point to the new bytes array"
@@ -3079,38 +3079,38 @@
3079
3079
  "name": "toBytes",
3080
3080
  "nameLocation": "2682:7:6",
3081
3081
  "parameters": {
3082
- "id": 2466,
3082
+ "id": 2478,
3083
3083
  "nodeType": "ParameterList",
3084
3084
  "parameters": [
3085
3085
  {
3086
3086
  "constant": false,
3087
- "id": 2465,
3087
+ "id": 2477,
3088
3088
  "mutability": "mutable",
3089
3089
  "name": "self",
3090
3090
  "nameLocation": "2696:4:6",
3091
3091
  "nodeType": "VariableDeclaration",
3092
- "scope": 2502,
3092
+ "scope": 2514,
3093
3093
  "src": "2690:10:6",
3094
3094
  "stateVariable": false,
3095
3095
  "storageLocation": "default",
3096
3096
  "typeDescriptions": {
3097
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3097
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3098
3098
  "typeString": "Slice"
3099
3099
  },
3100
3100
  "typeName": {
3101
- "id": 2464,
3101
+ "id": 2476,
3102
3102
  "nodeType": "UserDefinedTypeName",
3103
3103
  "pathNode": {
3104
- "id": 2463,
3104
+ "id": 2475,
3105
3105
  "name": "Slice",
3106
3106
  "nodeType": "IdentifierPath",
3107
- "referencedDeclaration": 2280,
3107
+ "referencedDeclaration": 2292,
3108
3108
  "src": "2690:5:6"
3109
3109
  },
3110
- "referencedDeclaration": 2280,
3110
+ "referencedDeclaration": 2292,
3111
3111
  "src": "2690:5:6",
3112
3112
  "typeDescriptions": {
3113
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3113
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3114
3114
  "typeString": "Slice"
3115
3115
  }
3116
3116
  },
@@ -3120,17 +3120,17 @@
3120
3120
  "src": "2689:12:6"
3121
3121
  },
3122
3122
  "returnParameters": {
3123
- "id": 2469,
3123
+ "id": 2481,
3124
3124
  "nodeType": "ParameterList",
3125
3125
  "parameters": [
3126
3126
  {
3127
3127
  "constant": false,
3128
- "id": 2468,
3128
+ "id": 2480,
3129
3129
  "mutability": "mutable",
3130
3130
  "name": "data",
3131
3131
  "nameLocation": "2738:4:6",
3132
3132
  "nodeType": "VariableDeclaration",
3133
- "scope": 2502,
3133
+ "scope": 2514,
3134
3134
  "src": "2725:17:6",
3135
3135
  "stateVariable": false,
3136
3136
  "storageLocation": "memory",
@@ -3139,7 +3139,7 @@
3139
3139
  "typeString": "bytes"
3140
3140
  },
3141
3141
  "typeName": {
3142
- "id": 2467,
3142
+ "id": 2479,
3143
3143
  "name": "bytes",
3144
3144
  "nodeType": "ElementaryTypeName",
3145
3145
  "src": "2725:5:6",
@@ -3153,35 +3153,35 @@
3153
3153
  ],
3154
3154
  "src": "2724:19:6"
3155
3155
  },
3156
- "scope": 2521,
3156
+ "scope": 2533,
3157
3157
  "stateMutability": "view",
3158
3158
  "virtual": false,
3159
3159
  "visibility": "internal"
3160
3160
  },
3161
3161
  {
3162
- "id": 2520,
3162
+ "id": 2532,
3163
3163
  "nodeType": "FunctionDefinition",
3164
3164
  "src": "3093:235:6",
3165
3165
  "nodes": [],
3166
3166
  "body": {
3167
- "id": 2519,
3167
+ "id": 2531,
3168
3168
  "nodeType": "Block",
3169
3169
  "src": "3163:165:6",
3170
3170
  "nodes": [],
3171
3171
  "statements": [
3172
3172
  {
3173
3173
  "assignments": [
3174
- 2511
3174
+ 2523
3175
3175
  ],
3176
3176
  "declarations": [
3177
3177
  {
3178
3178
  "constant": false,
3179
- "id": 2511,
3179
+ "id": 2523,
3180
3180
  "mutability": "mutable",
3181
3181
  "name": "memoryPointer",
3182
3182
  "nameLocation": "3177:13:6",
3183
3183
  "nodeType": "VariableDeclaration",
3184
- "scope": 2519,
3184
+ "scope": 2531,
3185
3185
  "src": "3169:21:6",
3186
3186
  "stateVariable": false,
3187
3187
  "storageLocation": "default",
@@ -3190,7 +3190,7 @@
3190
3190
  "typeString": "uint256"
3191
3191
  },
3192
3192
  "typeName": {
3193
- "id": 2510,
3193
+ "id": 2522,
3194
3194
  "name": "uint256",
3195
3195
  "nodeType": "ElementaryTypeName",
3196
3196
  "src": "3169:7:6",
@@ -3202,38 +3202,38 @@
3202
3202
  "visibility": "internal"
3203
3203
  }
3204
3204
  ],
3205
- "id": 2515,
3205
+ "id": 2527,
3206
3206
  "initialValue": {
3207
3207
  "arguments": [],
3208
3208
  "expression": {
3209
3209
  "argumentTypes": [],
3210
3210
  "expression": {
3211
- "id": 2512,
3211
+ "id": 2524,
3212
3212
  "name": "self",
3213
3213
  "nodeType": "Identifier",
3214
3214
  "overloadedDeclarations": [],
3215
- "referencedDeclaration": 2505,
3215
+ "referencedDeclaration": 2517,
3216
3216
  "src": "3193:4:6",
3217
3217
  "typeDescriptions": {
3218
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3218
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3219
3219
  "typeString": "Slice"
3220
3220
  }
3221
3221
  },
3222
- "id": 2513,
3222
+ "id": 2525,
3223
3223
  "isConstant": false,
3224
3224
  "isLValue": false,
3225
3225
  "isPure": false,
3226
3226
  "lValueRequested": false,
3227
3227
  "memberName": "pointer",
3228
3228
  "nodeType": "MemberAccess",
3229
- "referencedDeclaration": 2443,
3229
+ "referencedDeclaration": 2455,
3230
3230
  "src": "3193:12:6",
3231
3231
  "typeDescriptions": {
3232
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2280_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2280_$",
3232
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2292_$returns$_t_uint256_$bound_to$_t_userDefinedValueType$_Slice_$2292_$",
3233
3233
  "typeString": "function (Slice) pure returns (uint256)"
3234
3234
  }
3235
3235
  },
3236
- "id": 2514,
3236
+ "id": 2526,
3237
3237
  "isConstant": false,
3238
3238
  "isLValue": false,
3239
3239
  "isPure": false,
@@ -3289,39 +3289,39 @@
3289
3289
  "evmVersion": "london",
3290
3290
  "externalReferences": [
3291
3291
  {
3292
- "declaration": 2511,
3292
+ "declaration": 2523,
3293
3293
  "isOffset": false,
3294
3294
  "isSlot": false,
3295
3295
  "src": "3285:13:6",
3296
3296
  "valueSize": 1
3297
3297
  },
3298
3298
  {
3299
- "declaration": 2508,
3299
+ "declaration": 2520,
3300
3300
  "isOffset": false,
3301
3301
  "isSlot": false,
3302
3302
  "src": "3269:6:6",
3303
3303
  "valueSize": 1
3304
3304
  }
3305
3305
  ],
3306
- "id": 2516,
3306
+ "id": 2528,
3307
3307
  "nodeType": "InlineAssembly",
3308
3308
  "src": "3252:53:6"
3309
3309
  },
3310
3310
  {
3311
3311
  "expression": {
3312
- "id": 2517,
3312
+ "id": 2529,
3313
3313
  "name": "result",
3314
3314
  "nodeType": "Identifier",
3315
3315
  "overloadedDeclarations": [],
3316
- "referencedDeclaration": 2508,
3316
+ "referencedDeclaration": 2520,
3317
3317
  "src": "3317:6:6",
3318
3318
  "typeDescriptions": {
3319
3319
  "typeIdentifier": "t_bytes32",
3320
3320
  "typeString": "bytes32"
3321
3321
  }
3322
3322
  },
3323
- "functionReturnParameters": 2509,
3324
- "id": 2518,
3323
+ "functionReturnParameters": 2521,
3324
+ "id": 2530,
3325
3325
  "nodeType": "Return",
3326
3326
  "src": "3310:13:6"
3327
3327
  }
@@ -3333,38 +3333,38 @@
3333
3333
  "name": "toBytes32",
3334
3334
  "nameLocation": "3102:9:6",
3335
3335
  "parameters": {
3336
- "id": 2506,
3336
+ "id": 2518,
3337
3337
  "nodeType": "ParameterList",
3338
3338
  "parameters": [
3339
3339
  {
3340
3340
  "constant": false,
3341
- "id": 2505,
3341
+ "id": 2517,
3342
3342
  "mutability": "mutable",
3343
3343
  "name": "self",
3344
3344
  "nameLocation": "3118:4:6",
3345
3345
  "nodeType": "VariableDeclaration",
3346
- "scope": 2520,
3346
+ "scope": 2532,
3347
3347
  "src": "3112:10:6",
3348
3348
  "stateVariable": false,
3349
3349
  "storageLocation": "default",
3350
3350
  "typeDescriptions": {
3351
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3351
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3352
3352
  "typeString": "Slice"
3353
3353
  },
3354
3354
  "typeName": {
3355
- "id": 2504,
3355
+ "id": 2516,
3356
3356
  "nodeType": "UserDefinedTypeName",
3357
3357
  "pathNode": {
3358
- "id": 2503,
3358
+ "id": 2515,
3359
3359
  "name": "Slice",
3360
3360
  "nodeType": "IdentifierPath",
3361
- "referencedDeclaration": 2280,
3361
+ "referencedDeclaration": 2292,
3362
3362
  "src": "3112:5:6"
3363
3363
  },
3364
- "referencedDeclaration": 2280,
3364
+ "referencedDeclaration": 2292,
3365
3365
  "src": "3112:5:6",
3366
3366
  "typeDescriptions": {
3367
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2280",
3367
+ "typeIdentifier": "t_userDefinedValueType$_Slice_$2292",
3368
3368
  "typeString": "Slice"
3369
3369
  }
3370
3370
  },
@@ -3374,17 +3374,17 @@
3374
3374
  "src": "3111:12:6"
3375
3375
  },
3376
3376
  "returnParameters": {
3377
- "id": 2509,
3377
+ "id": 2521,
3378
3378
  "nodeType": "ParameterList",
3379
3379
  "parameters": [
3380
3380
  {
3381
3381
  "constant": false,
3382
- "id": 2508,
3382
+ "id": 2520,
3383
3383
  "mutability": "mutable",
3384
3384
  "name": "result",
3385
3385
  "nameLocation": "3155:6:6",
3386
3386
  "nodeType": "VariableDeclaration",
3387
- "scope": 2520,
3387
+ "scope": 2532,
3388
3388
  "src": "3147:14:6",
3389
3389
  "stateVariable": false,
3390
3390
  "storageLocation": "default",
@@ -3393,7 +3393,7 @@
3393
3393
  "typeString": "bytes32"
3394
3394
  },
3395
3395
  "typeName": {
3396
- "id": 2507,
3396
+ "id": 2519,
3397
3397
  "name": "bytes32",
3398
3398
  "nodeType": "ElementaryTypeName",
3399
3399
  "src": "3147:7:6",
@@ -3407,7 +3407,7 @@
3407
3407
  ],
3408
3408
  "src": "3146:16:6"
3409
3409
  },
3410
- "scope": 2521,
3410
+ "scope": 2533,
3411
3411
  "stateMutability": "pure",
3412
3412
  "virtual": false,
3413
3413
  "visibility": "internal"
@@ -3419,18 +3419,18 @@
3419
3419
  "contractDependencies": [],
3420
3420
  "contractKind": "library",
3421
3421
  "documentation": {
3422
- "id": 2426,
3422
+ "id": 2438,
3423
3423
  "nodeType": "StructuredDocumentation",
3424
3424
  "src": "2137:46:6",
3425
3425
  "text": " @title Instance functions for Slice"
3426
3426
  },
3427
3427
  "fullyImplemented": true,
3428
3428
  "linearizedBaseContracts": [
3429
- 2521
3429
+ 2533
3430
3430
  ],
3431
3431
  "name": "SliceInstance",
3432
3432
  "nameLocation": "2192:13:6",
3433
- "scope": 2522,
3433
+ "scope": 2534,
3434
3434
  "usedErrors": []
3435
3435
  }
3436
3436
  ],