@latticexyz/world-modules 2.0.0-main-08d7c471 → 2.0.0-main-9ff4f451

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 (99) hide show
  1. package/out/AccessControl.sol/AccessControl.json +200 -200
  2. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  3. package/out/Balances.sol/Balances.json +1713 -1713
  4. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +207 -207
  5. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  6. package/out/DelegationControl.sol/DelegationControl.json +89 -89
  7. package/out/FunctionSelectors.sol/FunctionSelectors.json +2335 -2335
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  11. package/out/IBaseWorld.sol/IBaseWorld.json +68 -68
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  13. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  14. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  15. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  16. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  17. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  18. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  19. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  20. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  21. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  22. package/out/KeysInTableHook.sol/KeysInTableHook.json +861 -861
  23. package/out/KeysInTableModule.sol/KeysInTableModule.json +527 -527
  24. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  25. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +989 -989
  26. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +416 -416
  27. package/out/Module.sol/Module.json +75 -75
  28. package/out/NamespaceOwner.sol/NamespaceOwner.json +464 -464
  29. package/out/ResourceAccess.sol/ResourceAccess.json +471 -471
  30. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  31. package/out/Schema.sol/SchemaInstance.json +30 -30
  32. package/out/Schema.sol/SchemaLib.json +30 -30
  33. package/out/SchemaType.sol/SchemaType.json +276 -276
  34. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +293 -293
  35. package/out/StoreHook.sol/StoreHook.json +368 -368
  36. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  37. package/out/System.sol/System.json +19 -19
  38. package/out/SystemHooks.sol/SystemHooks.json +4091 -4091
  39. package/out/SystemSwitch.sol/SystemSwitch.json +356 -356
  40. package/out/Systems.sol/Systems.json +2459 -2459
  41. package/out/Tables.sol/Tables.json +73 -73
  42. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +111 -111
  43. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  44. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  45. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +317 -317
  46. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +85 -85
  47. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2723 -2723
  48. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  49. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  50. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  51. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +101 -101
  52. package/out/WorldResourceId.sol/WorldResourceIdLib.json +101 -101
  53. package/out/constants.sol/constants.json +403 -120
  54. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  55. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  56. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  57. package/out/getUniqueEntity.sol/getUniqueEntity.json +105 -105
  58. package/out/hasKey.sol/hasKey.json +130 -130
  59. package/out/index.sol/index.json +53 -53
  60. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +128 -128
  61. package/out/query.sol/query.json +1154 -1154
  62. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  63. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  64. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  65. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  66. package/out/src/Hook.sol/HookInstance.json +331 -331
  67. package/out/src/Hook.sol/HookLib.json +331 -331
  68. package/out/src/IStore.sol/IStore.json +53 -53
  69. package/out/src/ISystemHook.sol/ISystemHook.json +90 -90
  70. package/out/src/IWorldErrors.sol/IWorldErrors.json +151 -151
  71. package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
  72. package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
  73. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
  74. package/out/src/Memory.sol/Memory.json +91 -91
  75. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  76. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  77. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  78. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  79. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  80. package/out/src/Schema.sol/SchemaLib.json +790 -790
  81. package/out/src/Slice.sol/SliceInstance.json +430 -430
  82. package/out/src/Slice.sol/SliceLib.json +430 -430
  83. package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
  84. package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
  85. package/out/src/StoreSwitch.sol/StoreSwitch.json +2483 -2483
  86. package/out/src/WorldContext.sol/WorldContextConsumer.json +418 -418
  87. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +418 -418
  88. package/out/src/WorldContext.sol/WorldContextProviderLib.json +418 -418
  89. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  90. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  91. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  92. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  93. package/out/systemHookTypes.sol/systemHookTypes.json +25 -25
  94. package/out/tables/ResourceIds.sol/ResourceIds.json +1747 -1747
  95. package/out/tables/Tables.sol/Tables.json +7288 -7288
  96. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  97. package/out/types.sol/types.json +41 -41
  98. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  99. package/package.json +8 -8
@@ -326,29 +326,29 @@
326
326
  },
327
327
  "ast": {
328
328
  "absolutePath": "node_modules/@latticexyz/store/src/Hook.sol",
329
- "id": 28418,
329
+ "id": 28436,
330
330
  "exportedSymbols": {
331
331
  "Hook": [
332
- 28228
332
+ 28246
333
333
  ],
334
334
  "HookInstance": [
335
- 28417
335
+ 28435
336
336
  ],
337
337
  "HookLib": [
338
- 28352
338
+ 28370
339
339
  ],
340
340
  "Hooks": [
341
- 70048
341
+ 70084
342
342
  ],
343
343
  "ResourceId": [
344
- 29121
344
+ 29139
345
345
  ]
346
346
  },
347
347
  "nodeType": "SourceUnit",
348
348
  "src": "32:3793:57",
349
349
  "nodes": [
350
350
  {
351
- "id": 28222,
351
+ "id": 28240,
352
352
  "nodeType": "PragmaDirective",
353
353
  "src": "32:25:57",
354
354
  "nodes": [],
@@ -360,23 +360,23 @@
360
360
  ]
361
361
  },
362
362
  {
363
- "id": 28224,
363
+ "id": 28242,
364
364
  "nodeType": "ImportDirective",
365
365
  "src": "59:51:57",
366
366
  "nodes": [],
367
367
  "absolutePath": "node_modules/@latticexyz/store/src/codegen/tables/Hooks.sol",
368
368
  "file": "./codegen/tables/Hooks.sol",
369
369
  "nameLocation": "-1:-1:-1",
370
- "scope": 28418,
371
- "sourceUnit": 70049,
370
+ "scope": 28436,
371
+ "sourceUnit": 70085,
372
372
  "symbolAliases": [
373
373
  {
374
374
  "foreign": {
375
- "id": 28223,
375
+ "id": 28241,
376
376
  "name": "Hooks",
377
377
  "nodeType": "Identifier",
378
378
  "overloadedDeclarations": [],
379
- "referencedDeclaration": 70048,
379
+ "referencedDeclaration": 70084,
380
380
  "src": "68:5:57",
381
381
  "typeDescriptions": {}
382
382
  },
@@ -386,23 +386,23 @@
386
386
  "unitAlias": ""
387
387
  },
388
388
  {
389
- "id": 28226,
389
+ "id": 28244,
390
390
  "nodeType": "ImportDirective",
391
391
  "src": "111:46:57",
392
392
  "nodes": [],
393
393
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
394
394
  "file": "./ResourceId.sol",
395
395
  "nameLocation": "-1:-1:-1",
396
- "scope": 28418,
397
- "sourceUnit": 29193,
396
+ "scope": 28436,
397
+ "sourceUnit": 29211,
398
398
  "symbolAliases": [
399
399
  {
400
400
  "foreign": {
401
- "id": 28225,
401
+ "id": 28243,
402
402
  "name": "ResourceId",
403
403
  "nodeType": "Identifier",
404
404
  "overloadedDeclarations": [],
405
- "referencedDeclaration": 29121,
405
+ "referencedDeclaration": 29139,
406
406
  "src": "120:10:57",
407
407
  "typeDescriptions": {}
408
408
  },
@@ -412,7 +412,7 @@
412
412
  "unitAlias": ""
413
413
  },
414
414
  {
415
- "id": 28228,
415
+ "id": 28246,
416
416
  "nodeType": "UserDefinedValueTypeDefinition",
417
417
  "src": "211:21:57",
418
418
  "nodes": [],
@@ -420,7 +420,7 @@
420
420
  "name": "Hook",
421
421
  "nameLocation": "216:4:57",
422
422
  "underlyingType": {
423
- "id": 28227,
423
+ "id": 28245,
424
424
  "name": "bytes21",
425
425
  "nodeType": "ElementaryTypeName",
426
426
  "src": "224:7:57",
@@ -431,54 +431,54 @@
431
431
  }
432
432
  },
433
433
  {
434
- "id": 28232,
434
+ "id": 28250,
435
435
  "nodeType": "UsingForDirective",
436
436
  "src": "234:35:57",
437
437
  "nodes": [],
438
438
  "global": true,
439
439
  "libraryName": {
440
- "id": 28229,
440
+ "id": 28247,
441
441
  "name": "HookInstance",
442
442
  "nameLocations": [
443
443
  "240:12:57"
444
444
  ],
445
445
  "nodeType": "IdentifierPath",
446
- "referencedDeclaration": 28417,
446
+ "referencedDeclaration": 28435,
447
447
  "src": "240:12:57"
448
448
  },
449
449
  "typeName": {
450
- "id": 28231,
450
+ "id": 28249,
451
451
  "nodeType": "UserDefinedTypeName",
452
452
  "pathNode": {
453
- "id": 28230,
453
+ "id": 28248,
454
454
  "name": "Hook",
455
455
  "nameLocations": [
456
456
  "257:4:57"
457
457
  ],
458
458
  "nodeType": "IdentifierPath",
459
- "referencedDeclaration": 28228,
459
+ "referencedDeclaration": 28246,
460
460
  "src": "257:4:57"
461
461
  },
462
- "referencedDeclaration": 28228,
462
+ "referencedDeclaration": 28246,
463
463
  "src": "257:4:57",
464
464
  "typeDescriptions": {
465
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
465
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
466
466
  "typeString": "Hook"
467
467
  }
468
468
  }
469
469
  },
470
470
  {
471
- "id": 28352,
471
+ "id": 28370,
472
472
  "nodeType": "ContractDefinition",
473
473
  "src": "376:2091:57",
474
474
  "nodes": [
475
475
  {
476
- "id": 28264,
476
+ "id": 28282,
477
477
  "nodeType": "FunctionDefinition",
478
478
  "src": "784:263:57",
479
479
  "nodes": [],
480
480
  "body": {
481
- "id": 28263,
481
+ "id": 28281,
482
482
  "nodeType": "Block",
483
483
  "src": "870:177:57",
484
484
  "nodes": [],
@@ -491,7 +491,7 @@
491
491
  "typeIdentifier": "t_bytes21",
492
492
  "typeString": "bytes21"
493
493
  },
494
- "id": 28260,
494
+ "id": 28278,
495
495
  "isConstant": false,
496
496
  "isLValue": false,
497
497
  "isPure": false,
@@ -501,11 +501,11 @@
501
501
  {
502
502
  "arguments": [
503
503
  {
504
- "id": 28250,
504
+ "id": 28268,
505
505
  "name": "hookAddress",
506
506
  "nodeType": "Identifier",
507
507
  "overloadedDeclarations": [],
508
- "referencedDeclaration": 28236,
508
+ "referencedDeclaration": 28254,
509
509
  "src": "995:11:57",
510
510
  "typeDescriptions": {
511
511
  "typeIdentifier": "t_address",
@@ -520,7 +520,7 @@
520
520
  "typeString": "address"
521
521
  }
522
522
  ],
523
- "id": 28249,
523
+ "id": 28267,
524
524
  "isConstant": false,
525
525
  "isLValue": false,
526
526
  "isPure": true,
@@ -532,14 +532,14 @@
532
532
  "typeString": "type(bytes20)"
533
533
  },
534
534
  "typeName": {
535
- "id": 28248,
535
+ "id": 28266,
536
536
  "name": "bytes20",
537
537
  "nodeType": "ElementaryTypeName",
538
538
  "src": "987:7:57",
539
539
  "typeDescriptions": {}
540
540
  }
541
541
  },
542
- "id": 28251,
542
+ "id": 28269,
543
543
  "isConstant": false,
544
544
  "isLValue": false,
545
545
  "isPure": false,
@@ -563,7 +563,7 @@
563
563
  "typeString": "bytes20"
564
564
  }
565
565
  ],
566
- "id": 28247,
566
+ "id": 28265,
567
567
  "isConstant": false,
568
568
  "isLValue": false,
569
569
  "isPure": true,
@@ -575,14 +575,14 @@
575
575
  "typeString": "type(bytes21)"
576
576
  },
577
577
  "typeName": {
578
- "id": 28246,
578
+ "id": 28264,
579
579
  "name": "bytes21",
580
580
  "nodeType": "ElementaryTypeName",
581
581
  "src": "979:7:57",
582
582
  "typeDescriptions": {}
583
583
  }
584
584
  },
585
- "id": 28252,
585
+ "id": 28270,
586
586
  "isConstant": false,
587
587
  "isLValue": false,
588
588
  "isPure": false,
@@ -605,11 +605,11 @@
605
605
  {
606
606
  "arguments": [
607
607
  {
608
- "id": 28257,
608
+ "id": 28275,
609
609
  "name": "encodedHooks",
610
610
  "nodeType": "Identifier",
611
611
  "overloadedDeclarations": [],
612
- "referencedDeclaration": 28238,
612
+ "referencedDeclaration": 28256,
613
613
  "src": "1027:12:57",
614
614
  "typeDescriptions": {
615
615
  "typeIdentifier": "t_uint8",
@@ -624,7 +624,7 @@
624
624
  "typeString": "uint8"
625
625
  }
626
626
  ],
627
- "id": 28256,
627
+ "id": 28274,
628
628
  "isConstant": false,
629
629
  "isLValue": false,
630
630
  "isPure": true,
@@ -636,14 +636,14 @@
636
636
  "typeString": "type(uint168)"
637
637
  },
638
638
  "typeName": {
639
- "id": 28255,
639
+ "id": 28273,
640
640
  "name": "uint168",
641
641
  "nodeType": "ElementaryTypeName",
642
642
  "src": "1019:7:57",
643
643
  "typeDescriptions": {}
644
644
  }
645
645
  },
646
- "id": 28258,
646
+ "id": 28276,
647
647
  "isConstant": false,
648
648
  "isLValue": false,
649
649
  "isPure": false,
@@ -667,7 +667,7 @@
667
667
  "typeString": "uint168"
668
668
  }
669
669
  ],
670
- "id": 28254,
670
+ "id": 28272,
671
671
  "isConstant": false,
672
672
  "isLValue": false,
673
673
  "isPure": true,
@@ -679,14 +679,14 @@
679
679
  "typeString": "type(bytes21)"
680
680
  },
681
681
  "typeName": {
682
- "id": 28253,
682
+ "id": 28271,
683
683
  "name": "bytes21",
684
684
  "nodeType": "ElementaryTypeName",
685
685
  "src": "1011:7:57",
686
686
  "typeDescriptions": {}
687
687
  }
688
688
  },
689
- "id": 28259,
689
+ "id": 28277,
690
690
  "isConstant": false,
691
691
  "isLValue": false,
692
692
  "isPure": false,
@@ -717,18 +717,18 @@
717
717
  }
718
718
  ],
719
719
  "expression": {
720
- "id": 28244,
720
+ "id": 28262,
721
721
  "name": "Hook",
722
722
  "nodeType": "Identifier",
723
723
  "overloadedDeclarations": [],
724
- "referencedDeclaration": 28228,
724
+ "referencedDeclaration": 28246,
725
725
  "src": "969:4:57",
726
726
  "typeDescriptions": {
727
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28228_$",
727
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28246_$",
728
728
  "typeString": "type(Hook)"
729
729
  }
730
730
  },
731
- "id": 28245,
731
+ "id": 28263,
732
732
  "isConstant": false,
733
733
  "isLValue": false,
734
734
  "isPure": true,
@@ -738,11 +738,11 @@
738
738
  "nodeType": "MemberAccess",
739
739
  "src": "969:9:57",
740
740
  "typeDescriptions": {
741
- "typeIdentifier": "t_function_wrap_pure$_t_bytes21_$returns$_t_userDefinedValueType$_Hook_$28228_$",
741
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes21_$returns$_t_userDefinedValueType$_Hook_$28246_$",
742
742
  "typeString": "function (bytes21) pure returns (Hook)"
743
743
  }
744
744
  },
745
- "id": 28261,
745
+ "id": 28279,
746
746
  "isConstant": false,
747
747
  "isLValue": false,
748
748
  "isPure": false,
@@ -754,19 +754,19 @@
754
754
  "src": "969:73:57",
755
755
  "tryCall": false,
756
756
  "typeDescriptions": {
757
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
757
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
758
758
  "typeString": "Hook"
759
759
  }
760
760
  },
761
- "functionReturnParameters": 28243,
762
- "id": 28262,
761
+ "functionReturnParameters": 28261,
762
+ "id": 28280,
763
763
  "nodeType": "Return",
764
764
  "src": "962:80:57"
765
765
  }
766
766
  ]
767
767
  },
768
768
  "documentation": {
769
- "id": 28234,
769
+ "id": 28252,
770
770
  "nodeType": "StructuredDocumentation",
771
771
  "src": "396:385:57",
772
772
  "text": " @notice Packs the bitmap of enabled hooks with the hook address into a Hook value (bytes21).\n @dev The hook address is stored in the leftmost 20 bytes, and the bitmap is stored in the rightmost byte.\n @param hookAddress The address of the hook.\n @param encodedHooks The encoded hooks in a bitmap.\n @return A Hook type with packed hook address and bitmap."
@@ -777,17 +777,17 @@
777
777
  "name": "encode",
778
778
  "nameLocation": "793:6:57",
779
779
  "parameters": {
780
- "id": 28239,
780
+ "id": 28257,
781
781
  "nodeType": "ParameterList",
782
782
  "parameters": [
783
783
  {
784
784
  "constant": false,
785
- "id": 28236,
785
+ "id": 28254,
786
786
  "mutability": "mutable",
787
787
  "name": "hookAddress",
788
788
  "nameLocation": "808:11:57",
789
789
  "nodeType": "VariableDeclaration",
790
- "scope": 28264,
790
+ "scope": 28282,
791
791
  "src": "800:19:57",
792
792
  "stateVariable": false,
793
793
  "storageLocation": "default",
@@ -796,7 +796,7 @@
796
796
  "typeString": "address"
797
797
  },
798
798
  "typeName": {
799
- "id": 28235,
799
+ "id": 28253,
800
800
  "name": "address",
801
801
  "nodeType": "ElementaryTypeName",
802
802
  "src": "800:7:57",
@@ -810,12 +810,12 @@
810
810
  },
811
811
  {
812
812
  "constant": false,
813
- "id": 28238,
813
+ "id": 28256,
814
814
  "mutability": "mutable",
815
815
  "name": "encodedHooks",
816
816
  "nameLocation": "827:12:57",
817
817
  "nodeType": "VariableDeclaration",
818
- "scope": 28264,
818
+ "scope": 28282,
819
819
  "src": "821:18:57",
820
820
  "stateVariable": false,
821
821
  "storageLocation": "default",
@@ -824,7 +824,7 @@
824
824
  "typeString": "uint8"
825
825
  },
826
826
  "typeName": {
827
- "id": 28237,
827
+ "id": 28255,
828
828
  "name": "uint8",
829
829
  "nodeType": "ElementaryTypeName",
830
830
  "src": "821:5:57",
@@ -839,41 +839,41 @@
839
839
  "src": "799:41:57"
840
840
  },
841
841
  "returnParameters": {
842
- "id": 28243,
842
+ "id": 28261,
843
843
  "nodeType": "ParameterList",
844
844
  "parameters": [
845
845
  {
846
846
  "constant": false,
847
- "id": 28242,
847
+ "id": 28260,
848
848
  "mutability": "mutable",
849
849
  "name": "",
850
850
  "nameLocation": "-1:-1:-1",
851
851
  "nodeType": "VariableDeclaration",
852
- "scope": 28264,
852
+ "scope": 28282,
853
853
  "src": "864:4:57",
854
854
  "stateVariable": false,
855
855
  "storageLocation": "default",
856
856
  "typeDescriptions": {
857
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
857
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
858
858
  "typeString": "Hook"
859
859
  },
860
860
  "typeName": {
861
- "id": 28241,
861
+ "id": 28259,
862
862
  "nodeType": "UserDefinedTypeName",
863
863
  "pathNode": {
864
- "id": 28240,
864
+ "id": 28258,
865
865
  "name": "Hook",
866
866
  "nameLocations": [
867
867
  "864:4:57"
868
868
  ],
869
869
  "nodeType": "IdentifierPath",
870
- "referencedDeclaration": 28228,
870
+ "referencedDeclaration": 28246,
871
871
  "src": "864:4:57"
872
872
  },
873
- "referencedDeclaration": 28228,
873
+ "referencedDeclaration": 28246,
874
874
  "src": "864:4:57",
875
875
  "typeDescriptions": {
876
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
876
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
877
877
  "typeString": "Hook"
878
878
  }
879
879
  },
@@ -882,35 +882,35 @@
882
882
  ],
883
883
  "src": "863:6:57"
884
884
  },
885
- "scope": 28352,
885
+ "scope": 28370,
886
886
  "stateMutability": "pure",
887
887
  "virtual": false,
888
888
  "visibility": "internal"
889
889
  },
890
890
  {
891
- "id": 28351,
891
+ "id": 28369,
892
892
  "nodeType": "FunctionDefinition",
893
893
  "src": "1405:1060:57",
894
894
  "nodes": [],
895
895
  "body": {
896
- "id": 28350,
896
+ "id": 28368,
897
897
  "nodeType": "Block",
898
898
  "src": "1539:926:57",
899
899
  "nodes": [],
900
900
  "statements": [
901
901
  {
902
902
  "assignments": [
903
- 28280
903
+ 28298
904
904
  ],
905
905
  "declarations": [
906
906
  {
907
907
  "constant": false,
908
- "id": 28280,
908
+ "id": 28298,
909
909
  "mutability": "mutable",
910
910
  "name": "currentHooks",
911
911
  "nameLocation": "1562:12:57",
912
912
  "nodeType": "VariableDeclaration",
913
- "scope": 28350,
913
+ "scope": 28368,
914
914
  "src": "1545:29:57",
915
915
  "stateVariable": false,
916
916
  "storageLocation": "memory",
@@ -920,7 +920,7 @@
920
920
  },
921
921
  "typeName": {
922
922
  "baseType": {
923
- "id": 28278,
923
+ "id": 28296,
924
924
  "name": "bytes21",
925
925
  "nodeType": "ElementaryTypeName",
926
926
  "src": "1545:7:57",
@@ -929,7 +929,7 @@
929
929
  "typeString": "bytes21"
930
930
  }
931
931
  },
932
- "id": 28279,
932
+ "id": 28297,
933
933
  "nodeType": "ArrayTypeName",
934
934
  "src": "1545:9:57",
935
935
  "typeDescriptions": {
@@ -940,30 +940,30 @@
940
940
  "visibility": "internal"
941
941
  }
942
942
  ],
943
- "id": 28286,
943
+ "id": 28304,
944
944
  "initialValue": {
945
945
  "arguments": [
946
946
  {
947
- "id": 28283,
947
+ "id": 28301,
948
948
  "name": "hookTableId",
949
949
  "nodeType": "Identifier",
950
950
  "overloadedDeclarations": [],
951
- "referencedDeclaration": 28268,
951
+ "referencedDeclaration": 28286,
952
952
  "src": "1588:11:57",
953
953
  "typeDescriptions": {
954
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
954
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
955
955
  "typeString": "ResourceId"
956
956
  }
957
957
  },
958
958
  {
959
- "id": 28284,
959
+ "id": 28302,
960
960
  "name": "tableWithHooks",
961
961
  "nodeType": "Identifier",
962
962
  "overloadedDeclarations": [],
963
- "referencedDeclaration": 28271,
963
+ "referencedDeclaration": 28289,
964
964
  "src": "1601:14:57",
965
965
  "typeDescriptions": {
966
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
966
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
967
967
  "typeString": "ResourceId"
968
968
  }
969
969
  }
@@ -971,27 +971,27 @@
971
971
  "expression": {
972
972
  "argumentTypes": [
973
973
  {
974
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
974
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
975
975
  "typeString": "ResourceId"
976
976
  },
977
977
  {
978
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
978
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
979
979
  "typeString": "ResourceId"
980
980
  }
981
981
  ],
982
982
  "expression": {
983
- "id": 28281,
983
+ "id": 28299,
984
984
  "name": "Hooks",
985
985
  "nodeType": "Identifier",
986
986
  "overloadedDeclarations": [],
987
- "referencedDeclaration": 70048,
987
+ "referencedDeclaration": 70084,
988
988
  "src": "1577:5:57",
989
989
  "typeDescriptions": {
990
- "typeIdentifier": "t_type$_t_contract$_Hooks_$70048_$",
990
+ "typeIdentifier": "t_type$_t_contract$_Hooks_$70084_$",
991
991
  "typeString": "type(library Hooks)"
992
992
  }
993
993
  },
994
- "id": 28282,
994
+ "id": 28300,
995
995
  "isConstant": false,
996
996
  "isLValue": false,
997
997
  "isPure": false,
@@ -999,14 +999,14 @@
999
999
  "memberLocation": "1583:4:57",
1000
1000
  "memberName": "_get",
1001
1001
  "nodeType": "MemberAccess",
1002
- "referencedDeclaration": 67902,
1002
+ "referencedDeclaration": 67938,
1003
1003
  "src": "1577:10:57",
1004
1004
  "typeDescriptions": {
1005
- "typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$29121_$_t_userDefinedValueType$_ResourceId_$29121_$returns$_t_array$_t_bytes21_$dyn_memory_ptr_$",
1005
+ "typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$29139_$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_array$_t_bytes21_$dyn_memory_ptr_$",
1006
1006
  "typeString": "function (ResourceId,ResourceId) view returns (bytes21[] memory)"
1007
1007
  }
1008
1008
  },
1009
- "id": 28285,
1009
+ "id": 28303,
1010
1010
  "isConstant": false,
1011
1011
  "isLValue": false,
1012
1012
  "isPure": false,
@@ -1027,17 +1027,17 @@
1027
1027
  },
1028
1028
  {
1029
1029
  "assignments": [
1030
- 28291
1030
+ 28309
1031
1031
  ],
1032
1032
  "declarations": [
1033
1033
  {
1034
1034
  "constant": false,
1035
- "id": 28291,
1035
+ "id": 28309,
1036
1036
  "mutability": "mutable",
1037
1037
  "name": "newHooks",
1038
1038
  "nameLocation": "1751:8:57",
1039
1039
  "nodeType": "VariableDeclaration",
1040
- "scope": 28350,
1040
+ "scope": 28368,
1041
1041
  "src": "1734:25:57",
1042
1042
  "stateVariable": false,
1043
1043
  "storageLocation": "memory",
@@ -1047,7 +1047,7 @@
1047
1047
  },
1048
1048
  "typeName": {
1049
1049
  "baseType": {
1050
- "id": 28289,
1050
+ "id": 28307,
1051
1051
  "name": "bytes21",
1052
1052
  "nodeType": "ElementaryTypeName",
1053
1053
  "src": "1734:7:57",
@@ -1056,7 +1056,7 @@
1056
1056
  "typeString": "bytes21"
1057
1057
  }
1058
1058
  },
1059
- "id": 28290,
1059
+ "id": 28308,
1060
1060
  "nodeType": "ArrayTypeName",
1061
1061
  "src": "1734:9:57",
1062
1062
  "typeDescriptions": {
@@ -1067,23 +1067,23 @@
1067
1067
  "visibility": "internal"
1068
1068
  }
1069
1069
  ],
1070
- "id": 28298,
1070
+ "id": 28316,
1071
1071
  "initialValue": {
1072
1072
  "arguments": [
1073
1073
  {
1074
1074
  "expression": {
1075
- "id": 28295,
1075
+ "id": 28313,
1076
1076
  "name": "currentHooks",
1077
1077
  "nodeType": "Identifier",
1078
1078
  "overloadedDeclarations": [],
1079
- "referencedDeclaration": 28280,
1079
+ "referencedDeclaration": 28298,
1080
1080
  "src": "1776:12:57",
1081
1081
  "typeDescriptions": {
1082
1082
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
1083
1083
  "typeString": "bytes21[] memory"
1084
1084
  }
1085
1085
  },
1086
- "id": 28296,
1086
+ "id": 28314,
1087
1087
  "isConstant": false,
1088
1088
  "isLValue": false,
1089
1089
  "isPure": false,
@@ -1105,7 +1105,7 @@
1105
1105
  "typeString": "uint256"
1106
1106
  }
1107
1107
  ],
1108
- "id": 28294,
1108
+ "id": 28312,
1109
1109
  "isConstant": false,
1110
1110
  "isLValue": false,
1111
1111
  "isPure": true,
@@ -1118,7 +1118,7 @@
1118
1118
  },
1119
1119
  "typeName": {
1120
1120
  "baseType": {
1121
- "id": 28292,
1121
+ "id": 28310,
1122
1122
  "name": "bytes21",
1123
1123
  "nodeType": "ElementaryTypeName",
1124
1124
  "src": "1766:7:57",
@@ -1127,7 +1127,7 @@
1127
1127
  "typeString": "bytes21"
1128
1128
  }
1129
1129
  },
1130
- "id": 28293,
1130
+ "id": 28311,
1131
1131
  "nodeType": "ArrayTypeName",
1132
1132
  "src": "1766:9:57",
1133
1133
  "typeDescriptions": {
@@ -1136,7 +1136,7 @@
1136
1136
  }
1137
1137
  }
1138
1138
  },
1139
- "id": 28297,
1139
+ "id": 28315,
1140
1140
  "isConstant": false,
1141
1141
  "isLValue": false,
1142
1142
  "isPure": false,
@@ -1157,17 +1157,17 @@
1157
1157
  },
1158
1158
  {
1159
1159
  "assignments": [
1160
- 28300
1160
+ 28318
1161
1161
  ],
1162
1162
  "declarations": [
1163
1163
  {
1164
1164
  "constant": false,
1165
- "id": 28300,
1165
+ "id": 28318,
1166
1166
  "mutability": "mutable",
1167
1167
  "name": "newHooksIndex",
1168
1168
  "nameLocation": "1852:13:57",
1169
1169
  "nodeType": "VariableDeclaration",
1170
- "scope": 28350,
1170
+ "scope": 28368,
1171
1171
  "src": "1844:21:57",
1172
1172
  "stateVariable": false,
1173
1173
  "storageLocation": "default",
@@ -1176,7 +1176,7 @@
1176
1176
  "typeString": "uint256"
1177
1177
  },
1178
1178
  "typeName": {
1179
- "id": 28299,
1179
+ "id": 28317,
1180
1180
  "name": "uint256",
1181
1181
  "nodeType": "ElementaryTypeName",
1182
1182
  "src": "1844:7:57",
@@ -1188,18 +1188,18 @@
1188
1188
  "visibility": "internal"
1189
1189
  }
1190
1190
  ],
1191
- "id": 28301,
1191
+ "id": 28319,
1192
1192
  "nodeType": "VariableDeclarationStatement",
1193
1193
  "src": "1844:21:57"
1194
1194
  },
1195
1195
  {
1196
- "id": 28340,
1196
+ "id": 28358,
1197
1197
  "nodeType": "UncheckedBlock",
1198
1198
  "src": "1871:336:57",
1199
1199
  "statements": [
1200
1200
  {
1201
1201
  "body": {
1202
- "id": 28338,
1202
+ "id": 28356,
1203
1203
  "nodeType": "Block",
1204
1204
  "src": "1983:218:57",
1205
1205
  "statements": [
@@ -1209,7 +1209,7 @@
1209
1209
  "typeIdentifier": "t_address",
1210
1210
  "typeString": "address"
1211
1211
  },
1212
- "id": 28324,
1212
+ "id": 28342,
1213
1213
  "isConstant": false,
1214
1214
  "isLValue": false,
1215
1215
  "isPure": false,
@@ -1222,24 +1222,24 @@
1222
1222
  "arguments": [
1223
1223
  {
1224
1224
  "baseExpression": {
1225
- "id": 28314,
1225
+ "id": 28332,
1226
1226
  "name": "currentHooks",
1227
1227
  "nodeType": "Identifier",
1228
1228
  "overloadedDeclarations": [],
1229
- "referencedDeclaration": 28280,
1229
+ "referencedDeclaration": 28298,
1230
1230
  "src": "2007:12:57",
1231
1231
  "typeDescriptions": {
1232
1232
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
1233
1233
  "typeString": "bytes21[] memory"
1234
1234
  }
1235
1235
  },
1236
- "id": 28316,
1236
+ "id": 28334,
1237
1237
  "indexExpression": {
1238
- "id": 28315,
1238
+ "id": 28333,
1239
1239
  "name": "currentHooksIndex",
1240
1240
  "nodeType": "Identifier",
1241
1241
  "overloadedDeclarations": [],
1242
- "referencedDeclaration": 28303,
1242
+ "referencedDeclaration": 28321,
1243
1243
  "src": "2020:17:57",
1244
1244
  "typeDescriptions": {
1245
1245
  "typeIdentifier": "t_uint256",
@@ -1266,18 +1266,18 @@
1266
1266
  }
1267
1267
  ],
1268
1268
  "expression": {
1269
- "id": 28312,
1269
+ "id": 28330,
1270
1270
  "name": "Hook",
1271
1271
  "nodeType": "Identifier",
1272
1272
  "overloadedDeclarations": [],
1273
- "referencedDeclaration": 28228,
1273
+ "referencedDeclaration": 28246,
1274
1274
  "src": "1997:4:57",
1275
1275
  "typeDescriptions": {
1276
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28228_$",
1276
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28246_$",
1277
1277
  "typeString": "type(Hook)"
1278
1278
  }
1279
1279
  },
1280
- "id": 28313,
1280
+ "id": 28331,
1281
1281
  "isConstant": false,
1282
1282
  "isLValue": false,
1283
1283
  "isPure": true,
@@ -1287,11 +1287,11 @@
1287
1287
  "nodeType": "MemberAccess",
1288
1288
  "src": "1997:9:57",
1289
1289
  "typeDescriptions": {
1290
- "typeIdentifier": "t_function_wrap_pure$_t_bytes21_$returns$_t_userDefinedValueType$_Hook_$28228_$",
1290
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes21_$returns$_t_userDefinedValueType$_Hook_$28246_$",
1291
1291
  "typeString": "function (bytes21) pure returns (Hook)"
1292
1292
  }
1293
1293
  },
1294
- "id": 28317,
1294
+ "id": 28335,
1295
1295
  "isConstant": false,
1296
1296
  "isLValue": false,
1297
1297
  "isPure": false,
@@ -1303,11 +1303,11 @@
1303
1303
  "src": "1997:42:57",
1304
1304
  "tryCall": false,
1305
1305
  "typeDescriptions": {
1306
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
1306
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
1307
1307
  "typeString": "Hook"
1308
1308
  }
1309
1309
  },
1310
- "id": 28318,
1310
+ "id": 28336,
1311
1311
  "isConstant": false,
1312
1312
  "isLValue": false,
1313
1313
  "isPure": false,
@@ -1315,14 +1315,14 @@
1315
1315
  "memberLocation": "2040:10:57",
1316
1316
  "memberName": "getAddress",
1317
1317
  "nodeType": "MemberAccess",
1318
- "referencedDeclaration": 28395,
1318
+ "referencedDeclaration": 28413,
1319
1319
  "src": "1997:53:57",
1320
1320
  "typeDescriptions": {
1321
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Hook_$28228_$returns$_t_address_$attached_to$_t_userDefinedValueType$_Hook_$28228_$",
1321
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Hook_$28246_$returns$_t_address_$attached_to$_t_userDefinedValueType$_Hook_$28246_$",
1322
1322
  "typeString": "function (Hook) pure returns (address)"
1323
1323
  }
1324
1324
  },
1325
- "id": 28319,
1325
+ "id": 28337,
1326
1326
  "isConstant": false,
1327
1327
  "isLValue": false,
1328
1328
  "isPure": false,
@@ -1343,11 +1343,11 @@
1343
1343
  "rightExpression": {
1344
1344
  "arguments": [
1345
1345
  {
1346
- "id": 28322,
1346
+ "id": 28340,
1347
1347
  "name": "hookAddressToRemove",
1348
1348
  "nodeType": "Identifier",
1349
1349
  "overloadedDeclarations": [],
1350
- "referencedDeclaration": 28273,
1350
+ "referencedDeclaration": 28291,
1351
1351
  "src": "2064:19:57",
1352
1352
  "typeDescriptions": {
1353
1353
  "typeIdentifier": "t_address",
@@ -1362,7 +1362,7 @@
1362
1362
  "typeString": "address"
1363
1363
  }
1364
1364
  ],
1365
- "id": 28321,
1365
+ "id": 28339,
1366
1366
  "isConstant": false,
1367
1367
  "isLValue": false,
1368
1368
  "isPure": true,
@@ -1374,14 +1374,14 @@
1374
1374
  "typeString": "type(address)"
1375
1375
  },
1376
1376
  "typeName": {
1377
- "id": 28320,
1377
+ "id": 28338,
1378
1378
  "name": "address",
1379
1379
  "nodeType": "ElementaryTypeName",
1380
1380
  "src": "2056:7:57",
1381
1381
  "typeDescriptions": {}
1382
1382
  }
1383
1383
  },
1384
- "id": 28323,
1384
+ "id": 28341,
1385
1385
  "isConstant": false,
1386
1386
  "isLValue": false,
1387
1387
  "isPure": false,
@@ -1403,41 +1403,41 @@
1403
1403
  "typeString": "bool"
1404
1404
  }
1405
1405
  },
1406
- "id": 28337,
1406
+ "id": 28355,
1407
1407
  "nodeType": "IfStatement",
1408
1408
  "src": "1993:200:57",
1409
1409
  "trueBody": {
1410
- "id": 28336,
1410
+ "id": 28354,
1411
1411
  "nodeType": "Block",
1412
1412
  "src": "2086:107:57",
1413
1413
  "statements": [
1414
1414
  {
1415
1415
  "expression": {
1416
- "id": 28331,
1416
+ "id": 28349,
1417
1417
  "isConstant": false,
1418
1418
  "isLValue": false,
1419
1419
  "isPure": false,
1420
1420
  "lValueRequested": false,
1421
1421
  "leftHandSide": {
1422
1422
  "baseExpression": {
1423
- "id": 28325,
1423
+ "id": 28343,
1424
1424
  "name": "newHooks",
1425
1425
  "nodeType": "Identifier",
1426
1426
  "overloadedDeclarations": [],
1427
- "referencedDeclaration": 28291,
1427
+ "referencedDeclaration": 28309,
1428
1428
  "src": "2098:8:57",
1429
1429
  "typeDescriptions": {
1430
1430
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
1431
1431
  "typeString": "bytes21[] memory"
1432
1432
  }
1433
1433
  },
1434
- "id": 28327,
1434
+ "id": 28345,
1435
1435
  "indexExpression": {
1436
- "id": 28326,
1436
+ "id": 28344,
1437
1437
  "name": "newHooksIndex",
1438
1438
  "nodeType": "Identifier",
1439
1439
  "overloadedDeclarations": [],
1440
- "referencedDeclaration": 28300,
1440
+ "referencedDeclaration": 28318,
1441
1441
  "src": "2107:13:57",
1442
1442
  "typeDescriptions": {
1443
1443
  "typeIdentifier": "t_uint256",
@@ -1459,24 +1459,24 @@
1459
1459
  "operator": "=",
1460
1460
  "rightHandSide": {
1461
1461
  "baseExpression": {
1462
- "id": 28328,
1462
+ "id": 28346,
1463
1463
  "name": "currentHooks",
1464
1464
  "nodeType": "Identifier",
1465
1465
  "overloadedDeclarations": [],
1466
- "referencedDeclaration": 28280,
1466
+ "referencedDeclaration": 28298,
1467
1467
  "src": "2124:12:57",
1468
1468
  "typeDescriptions": {
1469
1469
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
1470
1470
  "typeString": "bytes21[] memory"
1471
1471
  }
1472
1472
  },
1473
- "id": 28330,
1473
+ "id": 28348,
1474
1474
  "indexExpression": {
1475
- "id": 28329,
1475
+ "id": 28347,
1476
1476
  "name": "currentHooksIndex",
1477
1477
  "nodeType": "Identifier",
1478
1478
  "overloadedDeclarations": [],
1479
- "referencedDeclaration": 28303,
1479
+ "referencedDeclaration": 28321,
1480
1480
  "src": "2137:17:57",
1481
1481
  "typeDescriptions": {
1482
1482
  "typeIdentifier": "t_uint256",
@@ -1500,13 +1500,13 @@
1500
1500
  "typeString": "bytes21"
1501
1501
  }
1502
1502
  },
1503
- "id": 28332,
1503
+ "id": 28350,
1504
1504
  "nodeType": "ExpressionStatement",
1505
1505
  "src": "2098:57:57"
1506
1506
  },
1507
1507
  {
1508
1508
  "expression": {
1509
- "id": 28334,
1509
+ "id": 28352,
1510
1510
  "isConstant": false,
1511
1511
  "isLValue": false,
1512
1512
  "isPure": false,
@@ -1516,11 +1516,11 @@
1516
1516
  "prefix": false,
1517
1517
  "src": "2167:15:57",
1518
1518
  "subExpression": {
1519
- "id": 28333,
1519
+ "id": 28351,
1520
1520
  "name": "newHooksIndex",
1521
1521
  "nodeType": "Identifier",
1522
1522
  "overloadedDeclarations": [],
1523
- "referencedDeclaration": 28300,
1523
+ "referencedDeclaration": 28318,
1524
1524
  "src": "2167:13:57",
1525
1525
  "typeDescriptions": {
1526
1526
  "typeIdentifier": "t_uint256",
@@ -1532,7 +1532,7 @@
1532
1532
  "typeString": "uint256"
1533
1533
  }
1534
1534
  },
1535
- "id": 28335,
1535
+ "id": 28353,
1536
1536
  "nodeType": "ExpressionStatement",
1537
1537
  "src": "2167:15:57"
1538
1538
  }
@@ -1546,17 +1546,17 @@
1546
1546
  "typeIdentifier": "t_uint256",
1547
1547
  "typeString": "uint256"
1548
1548
  },
1549
- "id": 28308,
1549
+ "id": 28326,
1550
1550
  "isConstant": false,
1551
1551
  "isLValue": false,
1552
1552
  "isPure": false,
1553
1553
  "lValueRequested": false,
1554
1554
  "leftExpression": {
1555
- "id": 28305,
1555
+ "id": 28323,
1556
1556
  "name": "currentHooksIndex",
1557
1557
  "nodeType": "Identifier",
1558
1558
  "overloadedDeclarations": [],
1559
- "referencedDeclaration": 28303,
1559
+ "referencedDeclaration": 28321,
1560
1560
  "src": "1921:17:57",
1561
1561
  "typeDescriptions": {
1562
1562
  "typeIdentifier": "t_uint256",
@@ -1567,18 +1567,18 @@
1567
1567
  "operator": "<",
1568
1568
  "rightExpression": {
1569
1569
  "expression": {
1570
- "id": 28306,
1570
+ "id": 28324,
1571
1571
  "name": "currentHooks",
1572
1572
  "nodeType": "Identifier",
1573
1573
  "overloadedDeclarations": [],
1574
- "referencedDeclaration": 28280,
1574
+ "referencedDeclaration": 28298,
1575
1575
  "src": "1941:12:57",
1576
1576
  "typeDescriptions": {
1577
1577
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
1578
1578
  "typeString": "bytes21[] memory"
1579
1579
  }
1580
1580
  },
1581
- "id": 28307,
1581
+ "id": 28325,
1582
1582
  "isConstant": false,
1583
1583
  "isLValue": false,
1584
1584
  "isPure": false,
@@ -1598,20 +1598,20 @@
1598
1598
  "typeString": "bool"
1599
1599
  }
1600
1600
  },
1601
- "id": 28339,
1601
+ "id": 28357,
1602
1602
  "initializationExpression": {
1603
1603
  "assignments": [
1604
- 28303
1604
+ 28321
1605
1605
  ],
1606
1606
  "declarations": [
1607
1607
  {
1608
1608
  "constant": false,
1609
- "id": 28303,
1609
+ "id": 28321,
1610
1610
  "mutability": "mutable",
1611
1611
  "name": "currentHooksIndex",
1612
1612
  "nameLocation": "1902:17:57",
1613
1613
  "nodeType": "VariableDeclaration",
1614
- "scope": 28339,
1614
+ "scope": 28357,
1615
1615
  "src": "1894:25:57",
1616
1616
  "stateVariable": false,
1617
1617
  "storageLocation": "default",
@@ -1620,7 +1620,7 @@
1620
1620
  "typeString": "uint256"
1621
1621
  },
1622
1622
  "typeName": {
1623
- "id": 28302,
1623
+ "id": 28320,
1624
1624
  "name": "uint256",
1625
1625
  "nodeType": "ElementaryTypeName",
1626
1626
  "src": "1894:7:57",
@@ -1632,13 +1632,13 @@
1632
1632
  "visibility": "internal"
1633
1633
  }
1634
1634
  ],
1635
- "id": 28304,
1635
+ "id": 28322,
1636
1636
  "nodeType": "VariableDeclarationStatement",
1637
1637
  "src": "1894:25:57"
1638
1638
  },
1639
1639
  "loopExpression": {
1640
1640
  "expression": {
1641
- "id": 28310,
1641
+ "id": 28328,
1642
1642
  "isConstant": false,
1643
1643
  "isLValue": false,
1644
1644
  "isPure": false,
@@ -1648,11 +1648,11 @@
1648
1648
  "prefix": false,
1649
1649
  "src": "1962:19:57",
1650
1650
  "subExpression": {
1651
- "id": 28309,
1651
+ "id": 28327,
1652
1652
  "name": "currentHooksIndex",
1653
1653
  "nodeType": "Identifier",
1654
1654
  "overloadedDeclarations": [],
1655
- "referencedDeclaration": 28303,
1655
+ "referencedDeclaration": 28321,
1656
1656
  "src": "1962:17:57",
1657
1657
  "typeDescriptions": {
1658
1658
  "typeIdentifier": "t_uint256",
@@ -1664,7 +1664,7 @@
1664
1664
  "typeString": "uint256"
1665
1665
  }
1666
1666
  },
1667
- "id": 28311,
1667
+ "id": 28329,
1668
1668
  "nodeType": "ExpressionStatement",
1669
1669
  "src": "1962:19:57"
1670
1670
  },
@@ -1714,21 +1714,21 @@
1714
1714
  "evmVersion": "paris",
1715
1715
  "externalReferences": [
1716
1716
  {
1717
- "declaration": 28291,
1717
+ "declaration": 28309,
1718
1718
  "isOffset": false,
1719
1719
  "isSlot": false,
1720
1720
  "src": "2344:8:57",
1721
1721
  "valueSize": 1
1722
1722
  },
1723
1723
  {
1724
- "declaration": 28300,
1724
+ "declaration": 28318,
1725
1725
  "isOffset": false,
1726
1726
  "isSlot": false,
1727
1727
  "src": "2354:13:57",
1728
1728
  "valueSize": 1
1729
1729
  }
1730
1730
  ],
1731
- "id": 28341,
1731
+ "id": 28359,
1732
1732
  "nodeType": "InlineAssembly",
1733
1733
  "src": "2320:54:57"
1734
1734
  },
@@ -1736,35 +1736,35 @@
1736
1736
  "expression": {
1737
1737
  "arguments": [
1738
1738
  {
1739
- "id": 28345,
1739
+ "id": 28363,
1740
1740
  "name": "hookTableId",
1741
1741
  "nodeType": "Identifier",
1742
1742
  "overloadedDeclarations": [],
1743
- "referencedDeclaration": 28268,
1743
+ "referencedDeclaration": 28286,
1744
1744
  "src": "2422:11:57",
1745
1745
  "typeDescriptions": {
1746
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1746
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1747
1747
  "typeString": "ResourceId"
1748
1748
  }
1749
1749
  },
1750
1750
  {
1751
- "id": 28346,
1751
+ "id": 28364,
1752
1752
  "name": "tableWithHooks",
1753
1753
  "nodeType": "Identifier",
1754
1754
  "overloadedDeclarations": [],
1755
- "referencedDeclaration": 28271,
1755
+ "referencedDeclaration": 28289,
1756
1756
  "src": "2435:14:57",
1757
1757
  "typeDescriptions": {
1758
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1758
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1759
1759
  "typeString": "ResourceId"
1760
1760
  }
1761
1761
  },
1762
1762
  {
1763
- "id": 28347,
1763
+ "id": 28365,
1764
1764
  "name": "newHooks",
1765
1765
  "nodeType": "Identifier",
1766
1766
  "overloadedDeclarations": [],
1767
- "referencedDeclaration": 28291,
1767
+ "referencedDeclaration": 28309,
1768
1768
  "src": "2451:8:57",
1769
1769
  "typeDescriptions": {
1770
1770
  "typeIdentifier": "t_array$_t_bytes21_$dyn_memory_ptr",
@@ -1775,11 +1775,11 @@
1775
1775
  "expression": {
1776
1776
  "argumentTypes": [
1777
1777
  {
1778
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1778
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1779
1779
  "typeString": "ResourceId"
1780
1780
  },
1781
1781
  {
1782
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1782
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1783
1783
  "typeString": "ResourceId"
1784
1784
  },
1785
1785
  {
@@ -1788,18 +1788,18 @@
1788
1788
  }
1789
1789
  ],
1790
1790
  "expression": {
1791
- "id": 28342,
1791
+ "id": 28360,
1792
1792
  "name": "Hooks",
1793
1793
  "nodeType": "Identifier",
1794
1794
  "overloadedDeclarations": [],
1795
- "referencedDeclaration": 70048,
1795
+ "referencedDeclaration": 70084,
1796
1796
  "src": "2411:5:57",
1797
1797
  "typeDescriptions": {
1798
- "typeIdentifier": "t_type$_t_contract$_Hooks_$70048_$",
1798
+ "typeIdentifier": "t_type$_t_contract$_Hooks_$70084_$",
1799
1799
  "typeString": "type(library Hooks)"
1800
1800
  }
1801
1801
  },
1802
- "id": 28344,
1802
+ "id": 28362,
1803
1803
  "isConstant": false,
1804
1804
  "isLValue": false,
1805
1805
  "isPure": false,
@@ -1807,14 +1807,14 @@
1807
1807
  "memberLocation": "2417:4:57",
1808
1808
  "memberName": "_set",
1809
1809
  "nodeType": "MemberAccess",
1810
- "referencedDeclaration": 68197,
1810
+ "referencedDeclaration": 68233,
1811
1811
  "src": "2411:10:57",
1812
1812
  "typeDescriptions": {
1813
- "typeIdentifier": "t_function_internal_nonpayable$_t_userDefinedValueType$_ResourceId_$29121_$_t_userDefinedValueType$_ResourceId_$29121_$_t_array$_t_bytes21_$dyn_memory_ptr_$returns$__$",
1813
+ "typeIdentifier": "t_function_internal_nonpayable$_t_userDefinedValueType$_ResourceId_$29139_$_t_userDefinedValueType$_ResourceId_$29139_$_t_array$_t_bytes21_$dyn_memory_ptr_$returns$__$",
1814
1814
  "typeString": "function (ResourceId,ResourceId,bytes21[] memory)"
1815
1815
  }
1816
1816
  },
1817
- "id": 28348,
1817
+ "id": 28366,
1818
1818
  "isConstant": false,
1819
1819
  "isLValue": false,
1820
1820
  "isPure": false,
@@ -1830,14 +1830,14 @@
1830
1830
  "typeString": "tuple()"
1831
1831
  }
1832
1832
  },
1833
- "id": 28349,
1833
+ "id": 28367,
1834
1834
  "nodeType": "ExpressionStatement",
1835
1835
  "src": "2411:49:57"
1836
1836
  }
1837
1837
  ]
1838
1838
  },
1839
1839
  "documentation": {
1840
- "id": 28265,
1840
+ "id": 28283,
1841
1841
  "nodeType": "StructuredDocumentation",
1842
1842
  "src": "1051:351:57",
1843
1843
  "text": " @notice Filter a hook from the hook list by its address.\n @dev This function writes the updated hook list to the table in place.\n @param hookTableId The resource ID of the hook table.\n @param tableWithHooks The resource ID of the table with hooks to filter.\n @param hookAddressToRemove The address of the hook to remove."
@@ -1848,41 +1848,41 @@
1848
1848
  "name": "filterListByAddress",
1849
1849
  "nameLocation": "1414:19:57",
1850
1850
  "parameters": {
1851
- "id": 28274,
1851
+ "id": 28292,
1852
1852
  "nodeType": "ParameterList",
1853
1853
  "parameters": [
1854
1854
  {
1855
1855
  "constant": false,
1856
- "id": 28268,
1856
+ "id": 28286,
1857
1857
  "mutability": "mutable",
1858
1858
  "name": "hookTableId",
1859
1859
  "nameLocation": "1450:11:57",
1860
1860
  "nodeType": "VariableDeclaration",
1861
- "scope": 28351,
1861
+ "scope": 28369,
1862
1862
  "src": "1439:22:57",
1863
1863
  "stateVariable": false,
1864
1864
  "storageLocation": "default",
1865
1865
  "typeDescriptions": {
1866
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1866
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1867
1867
  "typeString": "ResourceId"
1868
1868
  },
1869
1869
  "typeName": {
1870
- "id": 28267,
1870
+ "id": 28285,
1871
1871
  "nodeType": "UserDefinedTypeName",
1872
1872
  "pathNode": {
1873
- "id": 28266,
1873
+ "id": 28284,
1874
1874
  "name": "ResourceId",
1875
1875
  "nameLocations": [
1876
1876
  "1439:10:57"
1877
1877
  ],
1878
1878
  "nodeType": "IdentifierPath",
1879
- "referencedDeclaration": 29121,
1879
+ "referencedDeclaration": 29139,
1880
1880
  "src": "1439:10:57"
1881
1881
  },
1882
- "referencedDeclaration": 29121,
1882
+ "referencedDeclaration": 29139,
1883
1883
  "src": "1439:10:57",
1884
1884
  "typeDescriptions": {
1885
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1885
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1886
1886
  "typeString": "ResourceId"
1887
1887
  }
1888
1888
  },
@@ -1890,36 +1890,36 @@
1890
1890
  },
1891
1891
  {
1892
1892
  "constant": false,
1893
- "id": 28271,
1893
+ "id": 28289,
1894
1894
  "mutability": "mutable",
1895
1895
  "name": "tableWithHooks",
1896
1896
  "nameLocation": "1478:14:57",
1897
1897
  "nodeType": "VariableDeclaration",
1898
- "scope": 28351,
1898
+ "scope": 28369,
1899
1899
  "src": "1467:25:57",
1900
1900
  "stateVariable": false,
1901
1901
  "storageLocation": "default",
1902
1902
  "typeDescriptions": {
1903
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1903
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1904
1904
  "typeString": "ResourceId"
1905
1905
  },
1906
1906
  "typeName": {
1907
- "id": 28270,
1907
+ "id": 28288,
1908
1908
  "nodeType": "UserDefinedTypeName",
1909
1909
  "pathNode": {
1910
- "id": 28269,
1910
+ "id": 28287,
1911
1911
  "name": "ResourceId",
1912
1912
  "nameLocations": [
1913
1913
  "1467:10:57"
1914
1914
  ],
1915
1915
  "nodeType": "IdentifierPath",
1916
- "referencedDeclaration": 29121,
1916
+ "referencedDeclaration": 29139,
1917
1917
  "src": "1467:10:57"
1918
1918
  },
1919
- "referencedDeclaration": 29121,
1919
+ "referencedDeclaration": 29139,
1920
1920
  "src": "1467:10:57",
1921
1921
  "typeDescriptions": {
1922
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1922
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1923
1923
  "typeString": "ResourceId"
1924
1924
  }
1925
1925
  },
@@ -1927,12 +1927,12 @@
1927
1927
  },
1928
1928
  {
1929
1929
  "constant": false,
1930
- "id": 28273,
1930
+ "id": 28291,
1931
1931
  "mutability": "mutable",
1932
1932
  "name": "hookAddressToRemove",
1933
1933
  "nameLocation": "1506:19:57",
1934
1934
  "nodeType": "VariableDeclaration",
1935
- "scope": 28351,
1935
+ "scope": 28369,
1936
1936
  "src": "1498:27:57",
1937
1937
  "stateVariable": false,
1938
1938
  "storageLocation": "default",
@@ -1941,7 +1941,7 @@
1941
1941
  "typeString": "address"
1942
1942
  },
1943
1943
  "typeName": {
1944
- "id": 28272,
1944
+ "id": 28290,
1945
1945
  "name": "address",
1946
1946
  "nodeType": "ElementaryTypeName",
1947
1947
  "src": "1498:7:57",
@@ -1957,12 +1957,12 @@
1957
1957
  "src": "1433:96:57"
1958
1958
  },
1959
1959
  "returnParameters": {
1960
- "id": 28275,
1960
+ "id": 28293,
1961
1961
  "nodeType": "ParameterList",
1962
1962
  "parameters": [],
1963
1963
  "src": "1539:0:57"
1964
1964
  },
1965
- "scope": 28352,
1965
+ "scope": 28370,
1966
1966
  "stateMutability": "nonpayable",
1967
1967
  "virtual": false,
1968
1968
  "visibility": "internal"
@@ -1974,33 +1974,33 @@
1974
1974
  "contractDependencies": [],
1975
1975
  "contractKind": "library",
1976
1976
  "documentation": {
1977
- "id": 28233,
1977
+ "id": 28251,
1978
1978
  "nodeType": "StructuredDocumentation",
1979
1979
  "src": "271:104:57",
1980
1980
  "text": " @title HookLib\n @dev Library for encoding hooks and filtering hooks from a list by address."
1981
1981
  },
1982
1982
  "fullyImplemented": true,
1983
1983
  "linearizedBaseContracts": [
1984
- 28352
1984
+ 28370
1985
1985
  ],
1986
1986
  "name": "HookLib",
1987
1987
  "nameLocation": "384:7:57",
1988
- "scope": 28418,
1988
+ "scope": 28436,
1989
1989
  "usedErrors": [],
1990
1990
  "usedEvents": []
1991
1991
  },
1992
1992
  {
1993
- "id": 28417,
1993
+ "id": 28435,
1994
1994
  "nodeType": "ContractDefinition",
1995
1995
  "src": "2554:1270:57",
1996
1996
  "nodes": [
1997
1997
  {
1998
- "id": 28374,
1998
+ "id": 28392,
1999
1999
  "nodeType": "FunctionDefinition",
2000
2000
  "src": "2891:136:57",
2001
2001
  "nodes": [],
2002
2002
  "body": {
2003
- "id": 28373,
2003
+ "id": 28391,
2004
2004
  "nodeType": "Block",
2005
2005
  "src": "2967:60:57",
2006
2006
  "nodes": [],
@@ -2011,7 +2011,7 @@
2011
2011
  "typeIdentifier": "t_uint8",
2012
2012
  "typeString": "uint8"
2013
2013
  },
2014
- "id": 28371,
2014
+ "id": 28389,
2015
2015
  "isConstant": false,
2016
2016
  "isLValue": false,
2017
2017
  "isPure": false,
@@ -2023,7 +2023,7 @@
2023
2023
  "typeIdentifier": "t_uint8",
2024
2024
  "typeString": "uint8"
2025
2025
  },
2026
- "id": 28368,
2026
+ "id": 28386,
2027
2027
  "isConstant": false,
2028
2028
  "isLValue": false,
2029
2029
  "isPure": false,
@@ -2031,14 +2031,14 @@
2031
2031
  "leftExpression": {
2032
2032
  "arguments": [
2033
2033
  {
2034
- "id": 28365,
2034
+ "id": 28383,
2035
2035
  "name": "self",
2036
2036
  "nodeType": "Identifier",
2037
2037
  "overloadedDeclarations": [],
2038
- "referencedDeclaration": 28357,
2038
+ "referencedDeclaration": 28375,
2039
2039
  "src": "2991:4:57",
2040
2040
  "typeDescriptions": {
2041
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2041
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2042
2042
  "typeString": "Hook"
2043
2043
  }
2044
2044
  }
@@ -2046,22 +2046,22 @@
2046
2046
  "expression": {
2047
2047
  "argumentTypes": [
2048
2048
  {
2049
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2049
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2050
2050
  "typeString": "Hook"
2051
2051
  }
2052
2052
  ],
2053
- "id": 28364,
2053
+ "id": 28382,
2054
2054
  "name": "getBitmap",
2055
2055
  "nodeType": "Identifier",
2056
2056
  "overloadedDeclarations": [],
2057
- "referencedDeclaration": 28416,
2057
+ "referencedDeclaration": 28434,
2058
2058
  "src": "2981:9:57",
2059
2059
  "typeDescriptions": {
2060
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Hook_$28228_$returns$_t_uint8_$",
2060
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Hook_$28246_$returns$_t_uint8_$",
2061
2061
  "typeString": "function (Hook) pure returns (uint8)"
2062
2062
  }
2063
2063
  },
2064
- "id": 28366,
2064
+ "id": 28384,
2065
2065
  "isConstant": false,
2066
2066
  "isLValue": false,
2067
2067
  "isPure": false,
@@ -2080,11 +2080,11 @@
2080
2080
  "nodeType": "BinaryOperation",
2081
2081
  "operator": "&",
2082
2082
  "rightExpression": {
2083
- "id": 28367,
2083
+ "id": 28385,
2084
2084
  "name": "hookTypes",
2085
2085
  "nodeType": "Identifier",
2086
2086
  "overloadedDeclarations": [],
2087
- "referencedDeclaration": 28359,
2087
+ "referencedDeclaration": 28377,
2088
2088
  "src": "2999:9:57",
2089
2089
  "typeDescriptions": {
2090
2090
  "typeIdentifier": "t_uint8",
@@ -2098,7 +2098,7 @@
2098
2098
  }
2099
2099
  }
2100
2100
  ],
2101
- "id": 28369,
2101
+ "id": 28387,
2102
2102
  "isConstant": false,
2103
2103
  "isInlineArray": false,
2104
2104
  "isLValue": false,
@@ -2114,11 +2114,11 @@
2114
2114
  "nodeType": "BinaryOperation",
2115
2115
  "operator": "==",
2116
2116
  "rightExpression": {
2117
- "id": 28370,
2117
+ "id": 28388,
2118
2118
  "name": "hookTypes",
2119
2119
  "nodeType": "Identifier",
2120
2120
  "overloadedDeclarations": [],
2121
- "referencedDeclaration": 28359,
2121
+ "referencedDeclaration": 28377,
2122
2122
  "src": "3013:9:57",
2123
2123
  "typeDescriptions": {
2124
2124
  "typeIdentifier": "t_uint8",
@@ -2131,15 +2131,15 @@
2131
2131
  "typeString": "bool"
2132
2132
  }
2133
2133
  },
2134
- "functionReturnParameters": 28363,
2135
- "id": 28372,
2134
+ "functionReturnParameters": 28381,
2135
+ "id": 28390,
2136
2136
  "nodeType": "Return",
2137
2137
  "src": "2973:49:57"
2138
2138
  }
2139
2139
  ]
2140
2140
  },
2141
2141
  "documentation": {
2142
- "id": 28354,
2142
+ "id": 28372,
2143
2143
  "nodeType": "StructuredDocumentation",
2144
2144
  "src": "2579:309:57",
2145
2145
  "text": " @notice Check if the given hook types are enabled in the hook.\n @dev We check multiple hook types at once by using a bitmap.\n @param self The Hook instance to check.\n @param hookTypes A bitmap of hook types to check.\n @return True if the hook types are enabled, false otherwise."
@@ -2150,41 +2150,41 @@
2150
2150
  "name": "isEnabled",
2151
2151
  "nameLocation": "2900:9:57",
2152
2152
  "parameters": {
2153
- "id": 28360,
2153
+ "id": 28378,
2154
2154
  "nodeType": "ParameterList",
2155
2155
  "parameters": [
2156
2156
  {
2157
2157
  "constant": false,
2158
- "id": 28357,
2158
+ "id": 28375,
2159
2159
  "mutability": "mutable",
2160
2160
  "name": "self",
2161
2161
  "nameLocation": "2915:4:57",
2162
2162
  "nodeType": "VariableDeclaration",
2163
- "scope": 28374,
2163
+ "scope": 28392,
2164
2164
  "src": "2910:9:57",
2165
2165
  "stateVariable": false,
2166
2166
  "storageLocation": "default",
2167
2167
  "typeDescriptions": {
2168
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2168
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2169
2169
  "typeString": "Hook"
2170
2170
  },
2171
2171
  "typeName": {
2172
- "id": 28356,
2172
+ "id": 28374,
2173
2173
  "nodeType": "UserDefinedTypeName",
2174
2174
  "pathNode": {
2175
- "id": 28355,
2175
+ "id": 28373,
2176
2176
  "name": "Hook",
2177
2177
  "nameLocations": [
2178
2178
  "2910:4:57"
2179
2179
  ],
2180
2180
  "nodeType": "IdentifierPath",
2181
- "referencedDeclaration": 28228,
2181
+ "referencedDeclaration": 28246,
2182
2182
  "src": "2910:4:57"
2183
2183
  },
2184
- "referencedDeclaration": 28228,
2184
+ "referencedDeclaration": 28246,
2185
2185
  "src": "2910:4:57",
2186
2186
  "typeDescriptions": {
2187
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2187
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2188
2188
  "typeString": "Hook"
2189
2189
  }
2190
2190
  },
@@ -2192,12 +2192,12 @@
2192
2192
  },
2193
2193
  {
2194
2194
  "constant": false,
2195
- "id": 28359,
2195
+ "id": 28377,
2196
2196
  "mutability": "mutable",
2197
2197
  "name": "hookTypes",
2198
2198
  "nameLocation": "2927:9:57",
2199
2199
  "nodeType": "VariableDeclaration",
2200
- "scope": 28374,
2200
+ "scope": 28392,
2201
2201
  "src": "2921:15:57",
2202
2202
  "stateVariable": false,
2203
2203
  "storageLocation": "default",
@@ -2206,7 +2206,7 @@
2206
2206
  "typeString": "uint8"
2207
2207
  },
2208
2208
  "typeName": {
2209
- "id": 28358,
2209
+ "id": 28376,
2210
2210
  "name": "uint8",
2211
2211
  "nodeType": "ElementaryTypeName",
2212
2212
  "src": "2921:5:57",
@@ -2221,17 +2221,17 @@
2221
2221
  "src": "2909:28:57"
2222
2222
  },
2223
2223
  "returnParameters": {
2224
- "id": 28363,
2224
+ "id": 28381,
2225
2225
  "nodeType": "ParameterList",
2226
2226
  "parameters": [
2227
2227
  {
2228
2228
  "constant": false,
2229
- "id": 28362,
2229
+ "id": 28380,
2230
2230
  "mutability": "mutable",
2231
2231
  "name": "",
2232
2232
  "nameLocation": "-1:-1:-1",
2233
2233
  "nodeType": "VariableDeclaration",
2234
- "scope": 28374,
2234
+ "scope": 28392,
2235
2235
  "src": "2961:4:57",
2236
2236
  "stateVariable": false,
2237
2237
  "storageLocation": "default",
@@ -2240,7 +2240,7 @@
2240
2240
  "typeString": "bool"
2241
2241
  },
2242
2242
  "typeName": {
2243
- "id": 28361,
2243
+ "id": 28379,
2244
2244
  "name": "bool",
2245
2245
  "nodeType": "ElementaryTypeName",
2246
2246
  "src": "2961:4:57",
@@ -2254,18 +2254,18 @@
2254
2254
  ],
2255
2255
  "src": "2960:6:57"
2256
2256
  },
2257
- "scope": 28417,
2257
+ "scope": 28435,
2258
2258
  "stateMutability": "pure",
2259
2259
  "virtual": false,
2260
2260
  "visibility": "internal"
2261
2261
  },
2262
2262
  {
2263
- "id": 28395,
2263
+ "id": 28413,
2264
2264
  "nodeType": "FunctionDefinition",
2265
2265
  "src": "3262:170:57",
2266
2266
  "nodes": [],
2267
2267
  "body": {
2268
- "id": 28394,
2268
+ "id": 28412,
2269
2269
  "nodeType": "Block",
2270
2270
  "src": "3325:107:57",
2271
2271
  "nodes": [],
@@ -2278,14 +2278,14 @@
2278
2278
  {
2279
2279
  "arguments": [
2280
2280
  {
2281
- "id": 28389,
2281
+ "id": 28407,
2282
2282
  "name": "self",
2283
2283
  "nodeType": "Identifier",
2284
2284
  "overloadedDeclarations": [],
2285
- "referencedDeclaration": 28378,
2285
+ "referencedDeclaration": 28396,
2286
2286
  "src": "3420:4:57",
2287
2287
  "typeDescriptions": {
2288
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2288
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2289
2289
  "typeString": "Hook"
2290
2290
  }
2291
2291
  }
@@ -2293,23 +2293,23 @@
2293
2293
  "expression": {
2294
2294
  "argumentTypes": [
2295
2295
  {
2296
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2296
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2297
2297
  "typeString": "Hook"
2298
2298
  }
2299
2299
  ],
2300
2300
  "expression": {
2301
- "id": 28387,
2301
+ "id": 28405,
2302
2302
  "name": "Hook",
2303
2303
  "nodeType": "Identifier",
2304
2304
  "overloadedDeclarations": [],
2305
- "referencedDeclaration": 28228,
2305
+ "referencedDeclaration": 28246,
2306
2306
  "src": "3408:4:57",
2307
2307
  "typeDescriptions": {
2308
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28228_$",
2308
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28246_$",
2309
2309
  "typeString": "type(Hook)"
2310
2310
  }
2311
2311
  },
2312
- "id": 28388,
2312
+ "id": 28406,
2313
2313
  "isConstant": false,
2314
2314
  "isLValue": false,
2315
2315
  "isPure": true,
@@ -2319,11 +2319,11 @@
2319
2319
  "nodeType": "MemberAccess",
2320
2320
  "src": "3408:11:57",
2321
2321
  "typeDescriptions": {
2322
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Hook_$28228_$returns$_t_bytes21_$",
2322
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Hook_$28246_$returns$_t_bytes21_$",
2323
2323
  "typeString": "function (Hook) pure returns (bytes21)"
2324
2324
  }
2325
2325
  },
2326
- "id": 28390,
2326
+ "id": 28408,
2327
2327
  "isConstant": false,
2328
2328
  "isLValue": false,
2329
2329
  "isPure": false,
@@ -2347,7 +2347,7 @@
2347
2347
  "typeString": "bytes21"
2348
2348
  }
2349
2349
  ],
2350
- "id": 28386,
2350
+ "id": 28404,
2351
2351
  "isConstant": false,
2352
2352
  "isLValue": false,
2353
2353
  "isPure": true,
@@ -2359,14 +2359,14 @@
2359
2359
  "typeString": "type(bytes20)"
2360
2360
  },
2361
2361
  "typeName": {
2362
- "id": 28385,
2362
+ "id": 28403,
2363
2363
  "name": "bytes20",
2364
2364
  "nodeType": "ElementaryTypeName",
2365
2365
  "src": "3400:7:57",
2366
2366
  "typeDescriptions": {}
2367
2367
  }
2368
2368
  },
2369
- "id": 28391,
2369
+ "id": 28409,
2370
2370
  "isConstant": false,
2371
2371
  "isLValue": false,
2372
2372
  "isPure": false,
@@ -2390,7 +2390,7 @@
2390
2390
  "typeString": "bytes20"
2391
2391
  }
2392
2392
  ],
2393
- "id": 28384,
2393
+ "id": 28402,
2394
2394
  "isConstant": false,
2395
2395
  "isLValue": false,
2396
2396
  "isPure": true,
@@ -2402,14 +2402,14 @@
2402
2402
  "typeString": "type(address)"
2403
2403
  },
2404
2404
  "typeName": {
2405
- "id": 28383,
2405
+ "id": 28401,
2406
2406
  "name": "address",
2407
2407
  "nodeType": "ElementaryTypeName",
2408
2408
  "src": "3392:7:57",
2409
2409
  "typeDescriptions": {}
2410
2410
  }
2411
2411
  },
2412
- "id": 28392,
2412
+ "id": 28410,
2413
2413
  "isConstant": false,
2414
2414
  "isLValue": false,
2415
2415
  "isPure": false,
@@ -2425,15 +2425,15 @@
2425
2425
  "typeString": "address"
2426
2426
  }
2427
2427
  },
2428
- "functionReturnParameters": 28382,
2429
- "id": 28393,
2428
+ "functionReturnParameters": 28400,
2429
+ "id": 28411,
2430
2430
  "nodeType": "Return",
2431
2431
  "src": "3385:42:57"
2432
2432
  }
2433
2433
  ]
2434
2434
  },
2435
2435
  "documentation": {
2436
- "id": 28375,
2436
+ "id": 28393,
2437
2437
  "nodeType": "StructuredDocumentation",
2438
2438
  "src": "3031:228:57",
2439
2439
  "text": " @notice Get the address from the hook.\n @dev The address is stored in the leftmost 20 bytes.\n @param self The Hook instance to get the address from.\n @return The address contained in the Hook instance."
@@ -2444,41 +2444,41 @@
2444
2444
  "name": "getAddress",
2445
2445
  "nameLocation": "3271:10:57",
2446
2446
  "parameters": {
2447
- "id": 28379,
2447
+ "id": 28397,
2448
2448
  "nodeType": "ParameterList",
2449
2449
  "parameters": [
2450
2450
  {
2451
2451
  "constant": false,
2452
- "id": 28378,
2452
+ "id": 28396,
2453
2453
  "mutability": "mutable",
2454
2454
  "name": "self",
2455
2455
  "nameLocation": "3287:4:57",
2456
2456
  "nodeType": "VariableDeclaration",
2457
- "scope": 28395,
2457
+ "scope": 28413,
2458
2458
  "src": "3282:9:57",
2459
2459
  "stateVariable": false,
2460
2460
  "storageLocation": "default",
2461
2461
  "typeDescriptions": {
2462
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2462
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2463
2463
  "typeString": "Hook"
2464
2464
  },
2465
2465
  "typeName": {
2466
- "id": 28377,
2466
+ "id": 28395,
2467
2467
  "nodeType": "UserDefinedTypeName",
2468
2468
  "pathNode": {
2469
- "id": 28376,
2469
+ "id": 28394,
2470
2470
  "name": "Hook",
2471
2471
  "nameLocations": [
2472
2472
  "3282:4:57"
2473
2473
  ],
2474
2474
  "nodeType": "IdentifierPath",
2475
- "referencedDeclaration": 28228,
2475
+ "referencedDeclaration": 28246,
2476
2476
  "src": "3282:4:57"
2477
2477
  },
2478
- "referencedDeclaration": 28228,
2478
+ "referencedDeclaration": 28246,
2479
2479
  "src": "3282:4:57",
2480
2480
  "typeDescriptions": {
2481
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2481
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2482
2482
  "typeString": "Hook"
2483
2483
  }
2484
2484
  },
@@ -2488,17 +2488,17 @@
2488
2488
  "src": "3281:11:57"
2489
2489
  },
2490
2490
  "returnParameters": {
2491
- "id": 28382,
2491
+ "id": 28400,
2492
2492
  "nodeType": "ParameterList",
2493
2493
  "parameters": [
2494
2494
  {
2495
2495
  "constant": false,
2496
- "id": 28381,
2496
+ "id": 28399,
2497
2497
  "mutability": "mutable",
2498
2498
  "name": "",
2499
2499
  "nameLocation": "-1:-1:-1",
2500
2500
  "nodeType": "VariableDeclaration",
2501
- "scope": 28395,
2501
+ "scope": 28413,
2502
2502
  "src": "3316:7:57",
2503
2503
  "stateVariable": false,
2504
2504
  "storageLocation": "default",
@@ -2507,7 +2507,7 @@
2507
2507
  "typeString": "address"
2508
2508
  },
2509
2509
  "typeName": {
2510
- "id": 28380,
2510
+ "id": 28398,
2511
2511
  "name": "address",
2512
2512
  "nodeType": "ElementaryTypeName",
2513
2513
  "src": "3316:7:57",
@@ -2522,18 +2522,18 @@
2522
2522
  ],
2523
2523
  "src": "3315:9:57"
2524
2524
  },
2525
- "scope": 28417,
2525
+ "scope": 28435,
2526
2526
  "stateMutability": "pure",
2527
2527
  "virtual": false,
2528
2528
  "visibility": "internal"
2529
2529
  },
2530
2530
  {
2531
- "id": 28416,
2531
+ "id": 28434,
2532
2532
  "nodeType": "FunctionDefinition",
2533
2533
  "src": "3660:162:57",
2534
2534
  "nodes": [],
2535
2535
  "body": {
2536
- "id": 28415,
2536
+ "id": 28433,
2537
2537
  "nodeType": "Block",
2538
2538
  "src": "3720:102:57",
2539
2539
  "nodes": [],
@@ -2546,14 +2546,14 @@
2546
2546
  {
2547
2547
  "arguments": [
2548
2548
  {
2549
- "id": 28410,
2549
+ "id": 28428,
2550
2550
  "name": "self",
2551
2551
  "nodeType": "Identifier",
2552
2552
  "overloadedDeclarations": [],
2553
- "referencedDeclaration": 28399,
2553
+ "referencedDeclaration": 28417,
2554
2554
  "src": "3810:4:57",
2555
2555
  "typeDescriptions": {
2556
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2556
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2557
2557
  "typeString": "Hook"
2558
2558
  }
2559
2559
  }
@@ -2561,23 +2561,23 @@
2561
2561
  "expression": {
2562
2562
  "argumentTypes": [
2563
2563
  {
2564
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2564
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2565
2565
  "typeString": "Hook"
2566
2566
  }
2567
2567
  ],
2568
2568
  "expression": {
2569
- "id": 28408,
2569
+ "id": 28426,
2570
2570
  "name": "Hook",
2571
2571
  "nodeType": "Identifier",
2572
2572
  "overloadedDeclarations": [],
2573
- "referencedDeclaration": 28228,
2573
+ "referencedDeclaration": 28246,
2574
2574
  "src": "3798:4:57",
2575
2575
  "typeDescriptions": {
2576
- "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28228_$",
2576
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_Hook_$28246_$",
2577
2577
  "typeString": "type(Hook)"
2578
2578
  }
2579
2579
  },
2580
- "id": 28409,
2580
+ "id": 28427,
2581
2581
  "isConstant": false,
2582
2582
  "isLValue": false,
2583
2583
  "isPure": true,
@@ -2587,11 +2587,11 @@
2587
2587
  "nodeType": "MemberAccess",
2588
2588
  "src": "3798:11:57",
2589
2589
  "typeDescriptions": {
2590
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Hook_$28228_$returns$_t_bytes21_$",
2590
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_Hook_$28246_$returns$_t_bytes21_$",
2591
2591
  "typeString": "function (Hook) pure returns (bytes21)"
2592
2592
  }
2593
2593
  },
2594
- "id": 28411,
2594
+ "id": 28429,
2595
2595
  "isConstant": false,
2596
2596
  "isLValue": false,
2597
2597
  "isPure": false,
@@ -2615,7 +2615,7 @@
2615
2615
  "typeString": "bytes21"
2616
2616
  }
2617
2617
  ],
2618
- "id": 28407,
2618
+ "id": 28425,
2619
2619
  "isConstant": false,
2620
2620
  "isLValue": false,
2621
2621
  "isPure": true,
@@ -2627,14 +2627,14 @@
2627
2627
  "typeString": "type(uint168)"
2628
2628
  },
2629
2629
  "typeName": {
2630
- "id": 28406,
2630
+ "id": 28424,
2631
2631
  "name": "uint168",
2632
2632
  "nodeType": "ElementaryTypeName",
2633
2633
  "src": "3790:7:57",
2634
2634
  "typeDescriptions": {}
2635
2635
  }
2636
2636
  },
2637
- "id": 28412,
2637
+ "id": 28430,
2638
2638
  "isConstant": false,
2639
2639
  "isLValue": false,
2640
2640
  "isPure": false,
@@ -2658,7 +2658,7 @@
2658
2658
  "typeString": "uint168"
2659
2659
  }
2660
2660
  ],
2661
- "id": 28405,
2661
+ "id": 28423,
2662
2662
  "isConstant": false,
2663
2663
  "isLValue": false,
2664
2664
  "isPure": true,
@@ -2670,14 +2670,14 @@
2670
2670
  "typeString": "type(uint8)"
2671
2671
  },
2672
2672
  "typeName": {
2673
- "id": 28404,
2673
+ "id": 28422,
2674
2674
  "name": "uint8",
2675
2675
  "nodeType": "ElementaryTypeName",
2676
2676
  "src": "3784:5:57",
2677
2677
  "typeDescriptions": {}
2678
2678
  }
2679
2679
  },
2680
- "id": 28413,
2680
+ "id": 28431,
2681
2681
  "isConstant": false,
2682
2682
  "isLValue": false,
2683
2683
  "isPure": false,
@@ -2693,15 +2693,15 @@
2693
2693
  "typeString": "uint8"
2694
2694
  }
2695
2695
  },
2696
- "functionReturnParameters": 28403,
2697
- "id": 28414,
2696
+ "functionReturnParameters": 28421,
2697
+ "id": 28432,
2698
2698
  "nodeType": "Return",
2699
2699
  "src": "3777:40:57"
2700
2700
  }
2701
2701
  ]
2702
2702
  },
2703
2703
  "documentation": {
2704
- "id": 28396,
2704
+ "id": 28414,
2705
2705
  "nodeType": "StructuredDocumentation",
2706
2706
  "src": "3436:221:57",
2707
2707
  "text": " @notice Get the bitmap from the hook.\n @dev The bitmap is stored in the rightmost byte.\n @param self The Hook instance to get the bitmap from.\n @return The bitmap contained in the Hook instance."
@@ -2712,41 +2712,41 @@
2712
2712
  "name": "getBitmap",
2713
2713
  "nameLocation": "3669:9:57",
2714
2714
  "parameters": {
2715
- "id": 28400,
2715
+ "id": 28418,
2716
2716
  "nodeType": "ParameterList",
2717
2717
  "parameters": [
2718
2718
  {
2719
2719
  "constant": false,
2720
- "id": 28399,
2720
+ "id": 28417,
2721
2721
  "mutability": "mutable",
2722
2722
  "name": "self",
2723
2723
  "nameLocation": "3684:4:57",
2724
2724
  "nodeType": "VariableDeclaration",
2725
- "scope": 28416,
2725
+ "scope": 28434,
2726
2726
  "src": "3679:9:57",
2727
2727
  "stateVariable": false,
2728
2728
  "storageLocation": "default",
2729
2729
  "typeDescriptions": {
2730
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2730
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2731
2731
  "typeString": "Hook"
2732
2732
  },
2733
2733
  "typeName": {
2734
- "id": 28398,
2734
+ "id": 28416,
2735
2735
  "nodeType": "UserDefinedTypeName",
2736
2736
  "pathNode": {
2737
- "id": 28397,
2737
+ "id": 28415,
2738
2738
  "name": "Hook",
2739
2739
  "nameLocations": [
2740
2740
  "3679:4:57"
2741
2741
  ],
2742
2742
  "nodeType": "IdentifierPath",
2743
- "referencedDeclaration": 28228,
2743
+ "referencedDeclaration": 28246,
2744
2744
  "src": "3679:4:57"
2745
2745
  },
2746
- "referencedDeclaration": 28228,
2746
+ "referencedDeclaration": 28246,
2747
2747
  "src": "3679:4:57",
2748
2748
  "typeDescriptions": {
2749
- "typeIdentifier": "t_userDefinedValueType$_Hook_$28228",
2749
+ "typeIdentifier": "t_userDefinedValueType$_Hook_$28246",
2750
2750
  "typeString": "Hook"
2751
2751
  }
2752
2752
  },
@@ -2756,17 +2756,17 @@
2756
2756
  "src": "3678:11:57"
2757
2757
  },
2758
2758
  "returnParameters": {
2759
- "id": 28403,
2759
+ "id": 28421,
2760
2760
  "nodeType": "ParameterList",
2761
2761
  "parameters": [
2762
2762
  {
2763
2763
  "constant": false,
2764
- "id": 28402,
2764
+ "id": 28420,
2765
2765
  "mutability": "mutable",
2766
2766
  "name": "",
2767
2767
  "nameLocation": "-1:-1:-1",
2768
2768
  "nodeType": "VariableDeclaration",
2769
- "scope": 28416,
2769
+ "scope": 28434,
2770
2770
  "src": "3713:5:57",
2771
2771
  "stateVariable": false,
2772
2772
  "storageLocation": "default",
@@ -2775,7 +2775,7 @@
2775
2775
  "typeString": "uint8"
2776
2776
  },
2777
2777
  "typeName": {
2778
- "id": 28401,
2778
+ "id": 28419,
2779
2779
  "name": "uint8",
2780
2780
  "nodeType": "ElementaryTypeName",
2781
2781
  "src": "3713:5:57",
@@ -2789,7 +2789,7 @@
2789
2789
  ],
2790
2790
  "src": "3712:7:57"
2791
2791
  },
2792
- "scope": 28417,
2792
+ "scope": 28435,
2793
2793
  "stateMutability": "pure",
2794
2794
  "virtual": false,
2795
2795
  "visibility": "internal"
@@ -2801,18 +2801,18 @@
2801
2801
  "contractDependencies": [],
2802
2802
  "contractKind": "library",
2803
2803
  "documentation": {
2804
- "id": 28353,
2804
+ "id": 28371,
2805
2805
  "nodeType": "StructuredDocumentation",
2806
2806
  "src": "2469:84:57",
2807
2807
  "text": " @title HookInstance\n @dev Library for interacting with Hook instances.*"
2808
2808
  },
2809
2809
  "fullyImplemented": true,
2810
2810
  "linearizedBaseContracts": [
2811
- 28417
2811
+ 28435
2812
2812
  ],
2813
2813
  "name": "HookInstance",
2814
2814
  "nameLocation": "2562:12:57",
2815
- "scope": 28418,
2815
+ "scope": 28436,
2816
2816
  "usedErrors": [],
2817
2817
  "usedEvents": []
2818
2818
  }