@latticexyz/world 1.40.0 → 1.41.0

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 (84) hide show
  1. package/LICENSE +21 -0
  2. package/abi/AddressArraySchemaLib.json +718 -869
  3. package/abi/BoolSchemaLib.json +401 -401
  4. package/abi/Bytes.json +1162 -1162
  5. package/abi/CommonBase.json +125 -125
  6. package/abi/DSTest.json +2630 -2630
  7. package/abi/DecodeSlice.json +3883 -3883
  8. package/abi/EncodeArray.json +3336 -3336
  9. package/abi/Hooks.json +1491 -785
  10. package/abi/IMulticall3.json +283 -283
  11. package/abi/IStore.json +623 -421
  12. package/abi/IStoreHook.json +567 -421
  13. package/abi/ISystemHook.json +19 -19
  14. package/abi/Memory.json +131 -131
  15. package/abi/PackedCounterLib.json +683 -683
  16. package/abi/RouteAccess.json +2209 -1159
  17. package/abi/RouteOwnerSchemaLib.json +349 -349
  18. package/abi/RouteOwnerTable.json +297 -297
  19. package/abi/RouteSchemaLib.json +433 -433
  20. package/abi/RouteTable.json +336 -336
  21. package/abi/SchemaLib.json +1211 -1211
  22. package/abi/ScriptBase.json +125 -125
  23. package/abi/SliceInstance.json +429 -429
  24. package/abi/SliceLib.json +429 -429
  25. package/abi/StdAssertions.json +2135 -2135
  26. package/abi/StdChains.json +1051 -1051
  27. package/abi/StdCheats.json +3257 -3257
  28. package/abi/StdCheatsSafe.json +3257 -3257
  29. package/abi/StdInvariant.json +337 -337
  30. package/abi/StdUtils.json +1122 -1122
  31. package/abi/Storage.json +491 -491
  32. package/abi/Store.json +374 -209
  33. package/abi/StoreCore.json +10665 -7865
  34. package/abi/StoreCoreExtended.json +10443 -7722
  35. package/abi/StoreCoreInternal.json +10482 -7638
  36. package/abi/StoreMetadata.json +3719 -2417
  37. package/abi/StoreSwitch.json +1692 -783
  38. package/abi/System.json +16 -16
  39. package/abi/SystemRouteSchemaLib.json +402 -402
  40. package/abi/SystemRouteTable.json +336 -336
  41. package/abi/SystemTable.json +8544 -651
  42. package/abi/SystemTest.json +287 -303
  43. package/abi/Test.json +124 -124
  44. package/abi/TestBase.json +125 -125
  45. package/abi/TestSystem.json +287 -303
  46. package/abi/TightCoder.json +272 -272
  47. package/abi/Utils.json +67 -67
  48. package/abi/Vm.json +1850 -1850
  49. package/abi/VmSafe.json +1850 -1850
  50. package/abi/World.json +5183 -3374
  51. package/abi/WorldTest.json +9983 -10520
  52. package/abi/WorldTestSystem.json +9992 -10503
  53. package/abi/WorldTestTableHook.json +9978 -10511
  54. package/abi/console.json +11417 -11417
  55. package/abi/console2.json +11459 -11459
  56. package/abi/stdError.json +79 -79
  57. package/abi/stdJson.json +1016 -1016
  58. package/abi/stdMath.json +218 -218
  59. package/abi/stdStorage.json +2400 -2400
  60. package/abi/stdStorageSafe.json +2400 -2400
  61. package/package.json +8 -8
  62. package/src/World.sol +78 -32
  63. package/src/schemas/AddressArray.sol +5 -19
  64. package/src/tables/RouteAccess.sol +35 -30
  65. package/src/tables/SystemTable.sol +142 -23
  66. package/types/ethers-contracts/IStore.ts +49 -0
  67. package/types/ethers-contracts/Store.ts +49 -0
  68. package/types/ethers-contracts/World.ts +94 -0
  69. package/types/ethers-contracts/WorldTest.ts +27 -0
  70. package/types/ethers-contracts/factories/IStore__factory.ts +28 -0
  71. package/types/ethers-contracts/factories/StoreCore__factory.ts +2 -23
  72. package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
  73. package/types/ethers-contracts/factories/Store__factory.ts +81 -0
  74. package/types/ethers-contracts/factories/SystemTest__factory.ts +1 -1
  75. package/types/ethers-contracts/factories/TestSystem__factory.ts +1 -1
  76. package/types/ethers-contracts/factories/WorldTestSystem__factory.ts +12 -1
  77. package/types/ethers-contracts/factories/WorldTestTableHook__factory.ts +1 -1
  78. package/types/ethers-contracts/factories/WorldTest__factory.ts +11 -34
  79. package/types/ethers-contracts/factories/World__factory.ts +70 -30
  80. package/types/ethers-contracts/index.ts +0 -2
  81. package/abi/SystemSchemaLib.json +0 -3704
  82. package/src/schemas/SystemSchema.sol +0 -78
  83. package/types/ethers-contracts/StoreCoreExtended.ts +0 -141
  84. package/types/ethers-contracts/factories/StoreCoreExtended__factory.ts +0 -123
package/abi/Memory.json CHANGED
@@ -80,20 +80,20 @@
80
80
  },
81
81
  "ast": {
82
82
  "absolutePath": "../../node_modules/@latticexyz/store/src/Memory.sol",
83
- "id": 58909,
83
+ "id": 60274,
84
84
  "exportedSymbols": {
85
85
  "Memory": [
86
- 58908
86
+ 60273
87
87
  ],
88
88
  "Utils": [
89
- 78660
89
+ 80084
90
90
  ]
91
91
  },
92
92
  "nodeType": "SourceUnit",
93
93
  "src": "32:1631:3",
94
94
  "nodes": [
95
95
  {
96
- "id": 58833,
96
+ "id": 60198,
97
97
  "nodeType": "PragmaDirective",
98
98
  "src": "32:24:3",
99
99
  "nodes": [],
@@ -105,23 +105,23 @@
105
105
  ]
106
106
  },
107
107
  {
108
- "id": 58835,
108
+ "id": 60200,
109
109
  "nodeType": "ImportDirective",
110
110
  "src": "58:36:3",
111
111
  "nodes": [],
112
112
  "absolutePath": "../../node_modules/@latticexyz/store/src/Utils.sol",
113
113
  "file": "./Utils.sol",
114
114
  "nameLocation": "-1:-1:-1",
115
- "scope": 58909,
116
- "sourceUnit": 78661,
115
+ "scope": 60274,
116
+ "sourceUnit": 80085,
117
117
  "symbolAliases": [
118
118
  {
119
119
  "foreign": {
120
- "id": 58834,
120
+ "id": 60199,
121
121
  "name": "Utils",
122
122
  "nodeType": "Identifier",
123
123
  "overloadedDeclarations": [],
124
- "referencedDeclaration": 78660,
124
+ "referencedDeclaration": 80084,
125
125
  "src": "67:5:3",
126
126
  "typeDescriptions": {}
127
127
  },
@@ -131,17 +131,17 @@
131
131
  "unitAlias": ""
132
132
  },
133
133
  {
134
- "id": 58908,
134
+ "id": 60273,
135
135
  "nodeType": "ContractDefinition",
136
136
  "src": "96:1566:3",
137
137
  "nodes": [
138
138
  {
139
- "id": 58844,
139
+ "id": 60209,
140
140
  "nodeType": "FunctionDefinition",
141
141
  "src": "115:135:3",
142
142
  "nodes": [],
143
143
  "body": {
144
- "id": 58843,
144
+ "id": 60208,
145
145
  "nodeType": "Block",
146
146
  "src": "189:61:3",
147
147
  "nodes": [],
@@ -183,21 +183,21 @@
183
183
  "evmVersion": "london",
184
184
  "externalReferences": [
185
185
  {
186
- "declaration": 58840,
186
+ "declaration": 60205,
187
187
  "isOffset": false,
188
188
  "isSlot": false,
189
189
  "src": "212:4:3",
190
190
  "valueSize": 1
191
191
  },
192
192
  {
193
- "declaration": 58837,
193
+ "declaration": 60202,
194
194
  "isOffset": false,
195
195
  "isSlot": false,
196
196
  "src": "226:13:3",
197
197
  "valueSize": 1
198
198
  }
199
199
  ],
200
- "id": 58842,
200
+ "id": 60207,
201
201
  "nodeType": "InlineAssembly",
202
202
  "src": "195:51:3"
203
203
  }
@@ -209,17 +209,17 @@
209
209
  "name": "load",
210
210
  "nameLocation": "124:4:3",
211
211
  "parameters": {
212
- "id": 58838,
212
+ "id": 60203,
213
213
  "nodeType": "ParameterList",
214
214
  "parameters": [
215
215
  {
216
216
  "constant": false,
217
- "id": 58837,
217
+ "id": 60202,
218
218
  "mutability": "mutable",
219
219
  "name": "memoryPointer",
220
220
  "nameLocation": "137:13:3",
221
221
  "nodeType": "VariableDeclaration",
222
- "scope": 58844,
222
+ "scope": 60209,
223
223
  "src": "129:21:3",
224
224
  "stateVariable": false,
225
225
  "storageLocation": "default",
@@ -228,7 +228,7 @@
228
228
  "typeString": "uint256"
229
229
  },
230
230
  "typeName": {
231
- "id": 58836,
231
+ "id": 60201,
232
232
  "name": "uint256",
233
233
  "nodeType": "ElementaryTypeName",
234
234
  "src": "129:7:3",
@@ -243,17 +243,17 @@
243
243
  "src": "128:23:3"
244
244
  },
245
245
  "returnParameters": {
246
- "id": 58841,
246
+ "id": 60206,
247
247
  "nodeType": "ParameterList",
248
248
  "parameters": [
249
249
  {
250
250
  "constant": false,
251
- "id": 58840,
251
+ "id": 60205,
252
252
  "mutability": "mutable",
253
253
  "name": "data",
254
254
  "nameLocation": "183:4:3",
255
255
  "nodeType": "VariableDeclaration",
256
- "scope": 58844,
256
+ "scope": 60209,
257
257
  "src": "175:12:3",
258
258
  "stateVariable": false,
259
259
  "storageLocation": "default",
@@ -262,7 +262,7 @@
262
262
  "typeString": "bytes32"
263
263
  },
264
264
  "typeName": {
265
- "id": 58839,
265
+ "id": 60204,
266
266
  "name": "bytes32",
267
267
  "nodeType": "ElementaryTypeName",
268
268
  "src": "175:7:3",
@@ -276,18 +276,18 @@
276
276
  ],
277
277
  "src": "174:14:3"
278
278
  },
279
- "scope": 58908,
279
+ "scope": 60273,
280
280
  "stateMutability": "pure",
281
281
  "virtual": false,
282
282
  "visibility": "internal"
283
283
  },
284
284
  {
285
- "id": 58855,
285
+ "id": 60220,
286
286
  "nodeType": "FunctionDefinition",
287
287
  "src": "254:164:3",
288
288
  "nodes": [],
289
289
  "body": {
290
- "id": 58854,
290
+ "id": 60219,
291
291
  "nodeType": "Block",
292
292
  "src": "344:74:3",
293
293
  "nodes": [],
@@ -345,28 +345,28 @@
345
345
  "evmVersion": "london",
346
346
  "externalReferences": [
347
347
  {
348
- "declaration": 58851,
348
+ "declaration": 60216,
349
349
  "isOffset": false,
350
350
  "isSlot": false,
351
351
  "src": "367:4:3",
352
352
  "valueSize": 1
353
353
  },
354
354
  {
355
- "declaration": 58846,
355
+ "declaration": 60211,
356
356
  "isOffset": false,
357
357
  "isSlot": false,
358
358
  "src": "385:13:3",
359
359
  "valueSize": 1
360
360
  },
361
361
  {
362
- "declaration": 58848,
362
+ "declaration": 60213,
363
363
  "isOffset": false,
364
364
  "isSlot": false,
365
365
  "src": "400:6:3",
366
366
  "valueSize": 1
367
367
  }
368
368
  ],
369
- "id": 58853,
369
+ "id": 60218,
370
370
  "nodeType": "InlineAssembly",
371
371
  "src": "350:64:3"
372
372
  }
@@ -378,17 +378,17 @@
378
378
  "name": "load",
379
379
  "nameLocation": "263:4:3",
380
380
  "parameters": {
381
- "id": 58849,
381
+ "id": 60214,
382
382
  "nodeType": "ParameterList",
383
383
  "parameters": [
384
384
  {
385
385
  "constant": false,
386
- "id": 58846,
386
+ "id": 60211,
387
387
  "mutability": "mutable",
388
388
  "name": "memoryPointer",
389
389
  "nameLocation": "276:13:3",
390
390
  "nodeType": "VariableDeclaration",
391
- "scope": 58855,
391
+ "scope": 60220,
392
392
  "src": "268:21:3",
393
393
  "stateVariable": false,
394
394
  "storageLocation": "default",
@@ -397,7 +397,7 @@
397
397
  "typeString": "uint256"
398
398
  },
399
399
  "typeName": {
400
- "id": 58845,
400
+ "id": 60210,
401
401
  "name": "uint256",
402
402
  "nodeType": "ElementaryTypeName",
403
403
  "src": "268:7:3",
@@ -410,12 +410,12 @@
410
410
  },
411
411
  {
412
412
  "constant": false,
413
- "id": 58848,
413
+ "id": 60213,
414
414
  "mutability": "mutable",
415
415
  "name": "offset",
416
416
  "nameLocation": "299:6:3",
417
417
  "nodeType": "VariableDeclaration",
418
- "scope": 58855,
418
+ "scope": 60220,
419
419
  "src": "291:14:3",
420
420
  "stateVariable": false,
421
421
  "storageLocation": "default",
@@ -424,7 +424,7 @@
424
424
  "typeString": "uint256"
425
425
  },
426
426
  "typeName": {
427
- "id": 58847,
427
+ "id": 60212,
428
428
  "name": "uint256",
429
429
  "nodeType": "ElementaryTypeName",
430
430
  "src": "291:7:3",
@@ -439,17 +439,17 @@
439
439
  "src": "267:39:3"
440
440
  },
441
441
  "returnParameters": {
442
- "id": 58852,
442
+ "id": 60217,
443
443
  "nodeType": "ParameterList",
444
444
  "parameters": [
445
445
  {
446
446
  "constant": false,
447
- "id": 58851,
447
+ "id": 60216,
448
448
  "mutability": "mutable",
449
449
  "name": "data",
450
450
  "nameLocation": "338:4:3",
451
451
  "nodeType": "VariableDeclaration",
452
- "scope": 58855,
452
+ "scope": 60220,
453
453
  "src": "330:12:3",
454
454
  "stateVariable": false,
455
455
  "storageLocation": "default",
@@ -458,7 +458,7 @@
458
458
  "typeString": "bytes32"
459
459
  },
460
460
  "typeName": {
461
- "id": 58850,
461
+ "id": 60215,
462
462
  "name": "bytes32",
463
463
  "nodeType": "ElementaryTypeName",
464
464
  "src": "330:7:3",
@@ -472,18 +472,18 @@
472
472
  ],
473
473
  "src": "329:14:3"
474
474
  },
475
- "scope": 58908,
475
+ "scope": 60273,
476
476
  "stateMutability": "pure",
477
477
  "virtual": false,
478
478
  "visibility": "internal"
479
479
  },
480
480
  {
481
- "id": 58864,
481
+ "id": 60229,
482
482
  "nodeType": "FunctionDefinition",
483
483
  "src": "422:151:3",
484
484
  "nodes": [],
485
485
  "body": {
486
- "id": 58863,
486
+ "id": 60228,
487
487
  "nodeType": "Block",
488
488
  "src": "508:65:3",
489
489
  "nodes": [],
@@ -532,21 +532,21 @@
532
532
  "evmVersion": "london",
533
533
  "externalReferences": [
534
534
  {
535
- "declaration": 58857,
535
+ "declaration": 60222,
536
536
  "isOffset": false,
537
537
  "isSlot": false,
538
538
  "src": "552:4:3",
539
539
  "valueSize": 1
540
540
  },
541
541
  {
542
- "declaration": 58860,
542
+ "declaration": 60225,
543
543
  "isOffset": false,
544
544
  "isSlot": false,
545
545
  "src": "531:13:3",
546
546
  "valueSize": 1
547
547
  }
548
548
  ],
549
- "id": 58862,
549
+ "id": 60227,
550
550
  "nodeType": "InlineAssembly",
551
551
  "src": "514:55:3"
552
552
  }
@@ -558,17 +558,17 @@
558
558
  "name": "dataPointer",
559
559
  "nameLocation": "431:11:3",
560
560
  "parameters": {
561
- "id": 58858,
561
+ "id": 60223,
562
562
  "nodeType": "ParameterList",
563
563
  "parameters": [
564
564
  {
565
565
  "constant": false,
566
- "id": 58857,
566
+ "id": 60222,
567
567
  "mutability": "mutable",
568
568
  "name": "data",
569
569
  "nameLocation": "456:4:3",
570
570
  "nodeType": "VariableDeclaration",
571
- "scope": 58864,
571
+ "scope": 60229,
572
572
  "src": "443:17:3",
573
573
  "stateVariable": false,
574
574
  "storageLocation": "memory",
@@ -577,7 +577,7 @@
577
577
  "typeString": "bytes"
578
578
  },
579
579
  "typeName": {
580
- "id": 58856,
580
+ "id": 60221,
581
581
  "name": "bytes",
582
582
  "nodeType": "ElementaryTypeName",
583
583
  "src": "443:5:3",
@@ -592,17 +592,17 @@
592
592
  "src": "442:19:3"
593
593
  },
594
594
  "returnParameters": {
595
- "id": 58861,
595
+ "id": 60226,
596
596
  "nodeType": "ParameterList",
597
597
  "parameters": [
598
598
  {
599
599
  "constant": false,
600
- "id": 58860,
600
+ "id": 60225,
601
601
  "mutability": "mutable",
602
602
  "name": "memoryPointer",
603
603
  "nameLocation": "493:13:3",
604
604
  "nodeType": "VariableDeclaration",
605
- "scope": 58864,
605
+ "scope": 60229,
606
606
  "src": "485:21:3",
607
607
  "stateVariable": false,
608
608
  "storageLocation": "default",
@@ -611,7 +611,7 @@
611
611
  "typeString": "uint256"
612
612
  },
613
613
  "typeName": {
614
- "id": 58859,
614
+ "id": 60224,
615
615
  "name": "uint256",
616
616
  "nodeType": "ElementaryTypeName",
617
617
  "src": "485:7:3",
@@ -625,18 +625,18 @@
625
625
  ],
626
626
  "src": "484:23:3"
627
627
  },
628
- "scope": 58908,
628
+ "scope": 60273,
629
629
  "stateMutability": "pure",
630
630
  "virtual": false,
631
631
  "visibility": "internal"
632
632
  },
633
633
  {
634
- "id": 58873,
634
+ "id": 60238,
635
635
  "nodeType": "FunctionDefinition",
636
636
  "src": "577:142:3",
637
637
  "nodes": [],
638
638
  "body": {
639
- "id": 58872,
639
+ "id": 60237,
640
640
  "nodeType": "Block",
641
641
  "src": "665:54:3",
642
642
  "nodes": [],
@@ -667,21 +667,21 @@
667
667
  "evmVersion": "london",
668
668
  "externalReferences": [
669
669
  {
670
- "declaration": 58866,
670
+ "declaration": 60231,
671
671
  "isOffset": false,
672
672
  "isSlot": false,
673
673
  "src": "705:4:3",
674
674
  "valueSize": 1
675
675
  },
676
676
  {
677
- "declaration": 58869,
677
+ "declaration": 60234,
678
678
  "isOffset": false,
679
679
  "isSlot": false,
680
680
  "src": "688:13:3",
681
681
  "valueSize": 1
682
682
  }
683
683
  ],
684
- "id": 58871,
684
+ "id": 60236,
685
685
  "nodeType": "InlineAssembly",
686
686
  "src": "671:44:3"
687
687
  }
@@ -693,17 +693,17 @@
693
693
  "name": "lengthPointer",
694
694
  "nameLocation": "586:13:3",
695
695
  "parameters": {
696
- "id": 58867,
696
+ "id": 60232,
697
697
  "nodeType": "ParameterList",
698
698
  "parameters": [
699
699
  {
700
700
  "constant": false,
701
- "id": 58866,
701
+ "id": 60231,
702
702
  "mutability": "mutable",
703
703
  "name": "data",
704
704
  "nameLocation": "613:4:3",
705
705
  "nodeType": "VariableDeclaration",
706
- "scope": 58873,
706
+ "scope": 60238,
707
707
  "src": "600:17:3",
708
708
  "stateVariable": false,
709
709
  "storageLocation": "memory",
@@ -712,7 +712,7 @@
712
712
  "typeString": "bytes"
713
713
  },
714
714
  "typeName": {
715
- "id": 58865,
715
+ "id": 60230,
716
716
  "name": "bytes",
717
717
  "nodeType": "ElementaryTypeName",
718
718
  "src": "600:5:3",
@@ -727,17 +727,17 @@
727
727
  "src": "599:19:3"
728
728
  },
729
729
  "returnParameters": {
730
- "id": 58870,
730
+ "id": 60235,
731
731
  "nodeType": "ParameterList",
732
732
  "parameters": [
733
733
  {
734
734
  "constant": false,
735
- "id": 58869,
735
+ "id": 60234,
736
736
  "mutability": "mutable",
737
737
  "name": "memoryPointer",
738
738
  "nameLocation": "650:13:3",
739
739
  "nodeType": "VariableDeclaration",
740
- "scope": 58873,
740
+ "scope": 60238,
741
741
  "src": "642:21:3",
742
742
  "stateVariable": false,
743
743
  "storageLocation": "default",
@@ -746,7 +746,7 @@
746
746
  "typeString": "uint256"
747
747
  },
748
748
  "typeName": {
749
- "id": 58868,
749
+ "id": 60233,
750
750
  "name": "uint256",
751
751
  "nodeType": "ElementaryTypeName",
752
752
  "src": "642:7:3",
@@ -760,18 +760,18 @@
760
760
  ],
761
761
  "src": "641:23:3"
762
762
  },
763
- "scope": 58908,
763
+ "scope": 60273,
764
764
  "stateMutability": "pure",
765
765
  "virtual": false,
766
766
  "visibility": "internal"
767
767
  },
768
768
  {
769
- "id": 58882,
769
+ "id": 60247,
770
770
  "nodeType": "FunctionDefinition",
771
771
  "src": "723:128:3",
772
772
  "nodes": [],
773
773
  "body": {
774
- "id": 58881,
774
+ "id": 60246,
775
775
  "nodeType": "Block",
776
776
  "src": "790:61:3",
777
777
  "nodes": [],
@@ -811,21 +811,21 @@
811
811
  "evmVersion": "london",
812
812
  "externalReferences": [
813
813
  {
814
- "declaration": 58875,
814
+ "declaration": 60240,
815
815
  "isOffset": false,
816
816
  "isSlot": false,
817
817
  "src": "820:13:3",
818
818
  "valueSize": 1
819
819
  },
820
820
  {
821
- "declaration": 58877,
821
+ "declaration": 60242,
822
822
  "isOffset": false,
823
823
  "isSlot": false,
824
824
  "src": "835:5:3",
825
825
  "valueSize": 1
826
826
  }
827
827
  ],
828
- "id": 58880,
828
+ "id": 60245,
829
829
  "nodeType": "InlineAssembly",
830
830
  "src": "796:51:3"
831
831
  }
@@ -837,17 +837,17 @@
837
837
  "name": "store",
838
838
  "nameLocation": "732:5:3",
839
839
  "parameters": {
840
- "id": 58878,
840
+ "id": 60243,
841
841
  "nodeType": "ParameterList",
842
842
  "parameters": [
843
843
  {
844
844
  "constant": false,
845
- "id": 58875,
845
+ "id": 60240,
846
846
  "mutability": "mutable",
847
847
  "name": "memoryPointer",
848
848
  "nameLocation": "746:13:3",
849
849
  "nodeType": "VariableDeclaration",
850
- "scope": 58882,
850
+ "scope": 60247,
851
851
  "src": "738:21:3",
852
852
  "stateVariable": false,
853
853
  "storageLocation": "default",
@@ -856,7 +856,7 @@
856
856
  "typeString": "uint256"
857
857
  },
858
858
  "typeName": {
859
- "id": 58874,
859
+ "id": 60239,
860
860
  "name": "uint256",
861
861
  "nodeType": "ElementaryTypeName",
862
862
  "src": "738:7:3",
@@ -869,12 +869,12 @@
869
869
  },
870
870
  {
871
871
  "constant": false,
872
- "id": 58877,
872
+ "id": 60242,
873
873
  "mutability": "mutable",
874
874
  "name": "value",
875
875
  "nameLocation": "769:5:3",
876
876
  "nodeType": "VariableDeclaration",
877
- "scope": 58882,
877
+ "scope": 60247,
878
878
  "src": "761:13:3",
879
879
  "stateVariable": false,
880
880
  "storageLocation": "default",
@@ -883,7 +883,7 @@
883
883
  "typeString": "bytes32"
884
884
  },
885
885
  "typeName": {
886
- "id": 58876,
886
+ "id": 60241,
887
887
  "name": "bytes32",
888
888
  "nodeType": "ElementaryTypeName",
889
889
  "src": "761:7:3",
@@ -898,23 +898,23 @@
898
898
  "src": "737:38:3"
899
899
  },
900
900
  "returnParameters": {
901
- "id": 58879,
901
+ "id": 60244,
902
902
  "nodeType": "ParameterList",
903
903
  "parameters": [],
904
904
  "src": "790:0:3"
905
905
  },
906
- "scope": 58908,
906
+ "scope": 60273,
907
907
  "stateMutability": "pure",
908
908
  "virtual": false,
909
909
  "visibility": "internal"
910
910
  },
911
911
  {
912
- "id": 58907,
912
+ "id": 60272,
913
913
  "nodeType": "FunctionDefinition",
914
914
  "src": "855:805:3",
915
915
  "nodes": [],
916
916
  "body": {
917
- "id": 58906,
917
+ "id": 60271,
918
918
  "nodeType": "Block",
919
919
  "src": "955:705:3",
920
920
  "nodes": [],
@@ -925,17 +925,17 @@
925
925
  "typeIdentifier": "t_uint256",
926
926
  "typeString": "uint256"
927
927
  },
928
- "id": 58893,
928
+ "id": 60258,
929
929
  "isConstant": false,
930
930
  "isLValue": false,
931
931
  "isPure": false,
932
932
  "lValueRequested": false,
933
933
  "leftExpression": {
934
- "id": 58891,
934
+ "id": 60256,
935
935
  "name": "length",
936
936
  "nodeType": "Identifier",
937
937
  "overloadedDeclarations": [],
938
- "referencedDeclaration": 58888,
938
+ "referencedDeclaration": 60253,
939
939
  "src": "965:6:3",
940
940
  "typeDescriptions": {
941
941
  "typeIdentifier": "t_uint256",
@@ -946,7 +946,7 @@
946
946
  "operator": ">",
947
947
  "rightExpression": {
948
948
  "hexValue": "3332",
949
- "id": 58892,
949
+ "id": 60257,
950
950
  "isConstant": false,
951
951
  "isLValue": false,
952
952
  "isPure": true,
@@ -967,23 +967,23 @@
967
967
  }
968
968
  },
969
969
  "falseBody": {
970
- "id": 58904,
970
+ "id": 60269,
971
971
  "nodeType": "Block",
972
972
  "src": "1344:312:3",
973
973
  "statements": [
974
974
  {
975
975
  "assignments": [
976
- 58897
976
+ 60262
977
977
  ],
978
978
  "declarations": [
979
979
  {
980
980
  "constant": false,
981
- "id": 58897,
981
+ "id": 60262,
982
982
  "mutability": "mutable",
983
983
  "name": "mask",
984
984
  "nameLocation": "1360:4:3",
985
985
  "nodeType": "VariableDeclaration",
986
- "scope": 58904,
986
+ "scope": 60269,
987
987
  "src": "1352:12:3",
988
988
  "stateVariable": false,
989
989
  "storageLocation": "default",
@@ -992,7 +992,7 @@
992
992
  "typeString": "uint256"
993
993
  },
994
994
  "typeName": {
995
- "id": 58896,
995
+ "id": 60261,
996
996
  "name": "uint256",
997
997
  "nodeType": "ElementaryTypeName",
998
998
  "src": "1352:7:3",
@@ -1004,15 +1004,15 @@
1004
1004
  "visibility": "internal"
1005
1005
  }
1006
1006
  ],
1007
- "id": 58902,
1007
+ "id": 60267,
1008
1008
  "initialValue": {
1009
1009
  "arguments": [
1010
1010
  {
1011
- "id": 58900,
1011
+ "id": 60265,
1012
1012
  "name": "length",
1013
1013
  "nodeType": "Identifier",
1014
1014
  "overloadedDeclarations": [],
1015
- "referencedDeclaration": 58888,
1015
+ "referencedDeclaration": 60253,
1016
1016
  "src": "1382:6:3",
1017
1017
  "typeDescriptions": {
1018
1018
  "typeIdentifier": "t_uint256",
@@ -1028,32 +1028,32 @@
1028
1028
  }
1029
1029
  ],
1030
1030
  "expression": {
1031
- "id": 58898,
1031
+ "id": 60263,
1032
1032
  "name": "Utils",
1033
1033
  "nodeType": "Identifier",
1034
1034
  "overloadedDeclarations": [],
1035
- "referencedDeclaration": 78660,
1035
+ "referencedDeclaration": 80084,
1036
1036
  "src": "1367:5:3",
1037
1037
  "typeDescriptions": {
1038
- "typeIdentifier": "t_type$_t_contract$_Utils_$78660_$",
1038
+ "typeIdentifier": "t_type$_t_contract$_Utils_$80084_$",
1039
1039
  "typeString": "type(library Utils)"
1040
1040
  }
1041
1041
  },
1042
- "id": 58899,
1042
+ "id": 60264,
1043
1043
  "isConstant": false,
1044
1044
  "isLValue": false,
1045
1045
  "isPure": false,
1046
1046
  "lValueRequested": false,
1047
1047
  "memberName": "leftMask",
1048
1048
  "nodeType": "MemberAccess",
1049
- "referencedDeclaration": 78659,
1049
+ "referencedDeclaration": 80083,
1050
1050
  "src": "1367:14:3",
1051
1051
  "typeDescriptions": {
1052
1052
  "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$",
1053
1053
  "typeString": "function (uint256) pure returns (uint256)"
1054
1054
  }
1055
1055
  },
1056
- "id": 58901,
1056
+ "id": 60266,
1057
1057
  "isConstant": false,
1058
1058
  "isLValue": false,
1059
1059
  "isPure": false,
@@ -1187,52 +1187,52 @@
1187
1187
  "evmVersion": "london",
1188
1188
  "externalReferences": [
1189
1189
  {
1190
- "declaration": 58884,
1190
+ "declaration": 60249,
1191
1191
  "isOffset": false,
1192
1192
  "isSlot": false,
1193
1193
  "src": "1516:11:3",
1194
1194
  "valueSize": 1
1195
1195
  },
1196
1196
  {
1197
- "declaration": 58897,
1197
+ "declaration": 60262,
1198
1198
  "isOffset": false,
1199
1199
  "isSlot": false,
1200
1200
  "src": "1530:4:3",
1201
1201
  "valueSize": 1
1202
1202
  },
1203
1203
  {
1204
- "declaration": 58897,
1204
+ "declaration": 60262,
1205
1205
  "isOffset": false,
1206
1206
  "isSlot": false,
1207
1207
  "src": "1614:4:3",
1208
1208
  "valueSize": 1
1209
1209
  },
1210
1210
  {
1211
- "declaration": 58886,
1211
+ "declaration": 60251,
1212
1212
  "isOffset": false,
1213
1213
  "isSlot": false,
1214
1214
  "src": "1434:9:3",
1215
1215
  "valueSize": 1
1216
1216
  },
1217
1217
  {
1218
- "declaration": 58886,
1218
+ "declaration": 60251,
1219
1219
  "isOffset": false,
1220
1220
  "isSlot": false,
1221
1221
  "src": "1598:9:3",
1222
1222
  "valueSize": 1
1223
1223
  }
1224
1224
  ],
1225
- "id": 58903,
1225
+ "id": 60268,
1226
1226
  "nodeType": "InlineAssembly",
1227
1227
  "src": "1397:253:3"
1228
1228
  }
1229
1229
  ]
1230
1230
  },
1231
- "id": 58905,
1231
+ "id": 60270,
1232
1232
  "nodeType": "IfStatement",
1233
1233
  "src": "961:695:3",
1234
1234
  "trueBody": {
1235
- "id": 58895,
1235
+ "id": 60260,
1236
1236
  "nodeType": "Block",
1237
1237
  "src": "978:360:3",
1238
1238
  "statements": [
@@ -1309,35 +1309,35 @@
1309
1309
  "evmVersion": "london",
1310
1310
  "externalReferences": [
1311
1311
  {
1312
- "declaration": 58884,
1312
+ "declaration": 60249,
1313
1313
  "isOffset": false,
1314
1314
  "isSlot": false,
1315
1315
  "src": "1140:11:3",
1316
1316
  "valueSize": 1
1317
1317
  },
1318
1318
  {
1319
- "declaration": 58888,
1319
+ "declaration": 60253,
1320
1320
  "isOffset": false,
1321
1321
  "isSlot": false,
1322
1322
  "src": "1179:6:3",
1323
1323
  "valueSize": 1
1324
1324
  },
1325
1325
  {
1326
- "declaration": 58888,
1326
+ "declaration": 60253,
1327
1327
  "isOffset": false,
1328
1328
  "isSlot": false,
1329
1329
  "src": "1266:6:3",
1330
1330
  "valueSize": 1
1331
1331
  },
1332
1332
  {
1333
- "declaration": 58886,
1333
+ "declaration": 60251,
1334
1334
  "isOffset": false,
1335
1335
  "isSlot": false,
1336
1336
  "src": "1230:9:3",
1337
1337
  "valueSize": 1
1338
1338
  }
1339
1339
  ],
1340
- "id": 58894,
1340
+ "id": 60259,
1341
1341
  "nodeType": "InlineAssembly",
1342
1342
  "src": "986:346:3"
1343
1343
  }
@@ -1352,17 +1352,17 @@
1352
1352
  "name": "copy",
1353
1353
  "nameLocation": "864:4:3",
1354
1354
  "parameters": {
1355
- "id": 58889,
1355
+ "id": 60254,
1356
1356
  "nodeType": "ParameterList",
1357
1357
  "parameters": [
1358
1358
  {
1359
1359
  "constant": false,
1360
- "id": 58884,
1360
+ "id": 60249,
1361
1361
  "mutability": "mutable",
1362
1362
  "name": "fromPointer",
1363
1363
  "nameLocation": "882:11:3",
1364
1364
  "nodeType": "VariableDeclaration",
1365
- "scope": 58907,
1365
+ "scope": 60272,
1366
1366
  "src": "874:19:3",
1367
1367
  "stateVariable": false,
1368
1368
  "storageLocation": "default",
@@ -1371,7 +1371,7 @@
1371
1371
  "typeString": "uint256"
1372
1372
  },
1373
1373
  "typeName": {
1374
- "id": 58883,
1374
+ "id": 60248,
1375
1375
  "name": "uint256",
1376
1376
  "nodeType": "ElementaryTypeName",
1377
1377
  "src": "874:7:3",
@@ -1384,12 +1384,12 @@
1384
1384
  },
1385
1385
  {
1386
1386
  "constant": false,
1387
- "id": 58886,
1387
+ "id": 60251,
1388
1388
  "mutability": "mutable",
1389
1389
  "name": "toPointer",
1390
1390
  "nameLocation": "907:9:3",
1391
1391
  "nodeType": "VariableDeclaration",
1392
- "scope": 58907,
1392
+ "scope": 60272,
1393
1393
  "src": "899:17:3",
1394
1394
  "stateVariable": false,
1395
1395
  "storageLocation": "default",
@@ -1398,7 +1398,7 @@
1398
1398
  "typeString": "uint256"
1399
1399
  },
1400
1400
  "typeName": {
1401
- "id": 58885,
1401
+ "id": 60250,
1402
1402
  "name": "uint256",
1403
1403
  "nodeType": "ElementaryTypeName",
1404
1404
  "src": "899:7:3",
@@ -1411,12 +1411,12 @@
1411
1411
  },
1412
1412
  {
1413
1413
  "constant": false,
1414
- "id": 58888,
1414
+ "id": 60253,
1415
1415
  "mutability": "mutable",
1416
1416
  "name": "length",
1417
1417
  "nameLocation": "930:6:3",
1418
1418
  "nodeType": "VariableDeclaration",
1419
- "scope": 58907,
1419
+ "scope": 60272,
1420
1420
  "src": "922:14:3",
1421
1421
  "stateVariable": false,
1422
1422
  "storageLocation": "default",
@@ -1425,7 +1425,7 @@
1425
1425
  "typeString": "uint256"
1426
1426
  },
1427
1427
  "typeName": {
1428
- "id": 58887,
1428
+ "id": 60252,
1429
1429
  "name": "uint256",
1430
1430
  "nodeType": "ElementaryTypeName",
1431
1431
  "src": "922:7:3",
@@ -1440,12 +1440,12 @@
1440
1440
  "src": "868:72:3"
1441
1441
  },
1442
1442
  "returnParameters": {
1443
- "id": 58890,
1443
+ "id": 60255,
1444
1444
  "nodeType": "ParameterList",
1445
1445
  "parameters": [],
1446
1446
  "src": "955:0:3"
1447
1447
  },
1448
- "scope": 58908,
1448
+ "scope": 60273,
1449
1449
  "stateMutability": "view",
1450
1450
  "virtual": false,
1451
1451
  "visibility": "internal"
@@ -1458,11 +1458,11 @@
1458
1458
  "contractKind": "library",
1459
1459
  "fullyImplemented": true,
1460
1460
  "linearizedBaseContracts": [
1461
- 58908
1461
+ 60273
1462
1462
  ],
1463
1463
  "name": "Memory",
1464
1464
  "nameLocation": "104:6:3",
1465
- "scope": 58909,
1465
+ "scope": 60274,
1466
1466
  "usedErrors": []
1467
1467
  }
1468
1468
  ],