matter-labs / era-contracts

Smart Contract Submodule For zkSync Era
MIT License
482 stars 338 forks source link

L3 L1 comms integration #557

Closed StanislavBreadless closed 2 months ago

StanislavBreadless commented 3 months ago

What ❔

Why ❔

Checklist

github-actions[bot] commented 2 months ago

Coverage after merging sb-l3-l1-comms-integration into kl/sync-layer-reorg will be

68.57%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
../da-contracts/contracts
   RollupL1DAValidator.sol65.79%45.83%83.33%73.91%130, 132, 132, 132–133, 135, 169, 171, 25, 25, 25–26, 26, 26, 28, 30–31, 35–36, 91, 91, 94, 94, 94, 96
contracts/bridge
   L1AssetRouter.sol92.31%87.80%94.44%93.92%113, 128, 140–144, 178, 185, 304, 304–307, 403, 743, 777–781
   L1ERC20Bridge.sol88.10%100%75%88.46%247, 66–67
   L1NativeTokenVault.sol90.48%93.75%73.33%91.67%272, 277, 47, 53, 53, 53, 60–63
contracts/bridgehub
   Bridgehub.sol25.13%12.96%40%27.10%114, 127, 137–139, 172, 179, 186–189, 200, 204, 221, 221, 221–222, 222, 222, 224, 224, 224–225, 225, 225–226, 226, 226, 228, 228, 228, 230–231, 233–234, 236, 244, 246–247, 268–269, 342–343, 343, 343–344, 344, 344, 346, 346, 346, 350, 358–360, 388–390, 390, 390–391, 391, 391, 395, 397, 397, 397–398, 401, 409, 412, 420, 420, 420, 422, 424, 424, 424, 428, 442, 456, 456, 456–458, 478, 478, 478, 480–481, 481, 481–482, 482, 482–483, 485, 489, 494, 503, 507–508, 508, 508–509, 509, 509, 511–514, 514, 514–515, 518–520, 535, 540, 85, 89, 89, 94, 94, 94
   MessageRoot.sol0%0%0%0%101, 107, 107, 107, 109, 112–113, 113, 113, 115–117, 120, 122, 124, 135, 135, 135–136, 138, 141, 143, 145, 149–152, 155, 161–162, 164, 164, 164, 166, 58, 58, 58, 64, 64, 64, 71–72, 77, 82, 86, 86, 86–87, 91, 91, 91–92, 97
   STMDeploymentTracker.sol0%0%0%0%115, 122, 137, 31, 31, 31, 38–40, 45, 51, 51, 51–53, 75, 75, 75, 78, 78, 78–79, 81, 93, 95, 98
contracts/common
   ReentrancyGuard.sol100%100%100%100%
contracts/common/libraries
   DynamicIncrementalMerkle.sol97.06%75%100%100%78
   FullMerkle.sol94.37%75%100%100%110, 43, 73, 99
   L2ContractHelper.sol45.45%30%40%55.56%29, 32–33, 46–47, 47, 47, 49, 49, 49, 56, 83–86
   Merkle.sol73.02%68.18%75%75.68%52–53, 53, 53–54, 54, 54–55, 55, 55, 57–59, 62, 65, 83
   Messaging.sol0%100%0%0%10, 14
   SemVer.sol100%100%100%100%
   UncheckedMath.sol100%100%100%100%
   UnsafeBytes.sol100%100%100%100%
contracts/governance
   Governance.sol91.67%93.75%95%89.29%44, 44, 44, 46, 48–49, 51–52
contracts/state-transition
   StateTransitionManager.sol37.50%30.56%29.73%42.72%101–105, 111, 122, 142–144, 148, 192, 194–195, 200–201, 201, 201, 203–205, 207–208, 237, 242, 257, 262, 267, 276, 281, 287, 293, 299, 305, 311, 320, 320, 320, 322, 333, 335, 344, 346, 349, 363, 366, 368, 371, 373, 375, 400–401, 401, 401, 404, 408, 412, 412, 412, 415, 418, 418, 418, 420, 432–433, 433, 433, 435, 445, 449, 449, 449, 451, 472–473, 473, 473–474, 83, 83, 89, 89, 96
   TestnetVerifier.sol40%25%50%50%16, 16, 16, 28, 32
   ValidatorTimelock.sol93.75%100%94.74%91.43%61–63
   Verifier.sol83.33%100%66.67%100%
contracts/state-transition/chain-deps
   DiamondInit.sol86.27%70%50%100%33–37, 63
   DiamondProxy.sol70.59%62.50%100%75%16, 16, 16–17, 27
contracts/state-transition/chain-deps/facets
   Admin.sol38.60%34.09%52.38%37.74%103, 103, 103–105, 118–119, 121–122, 124–125, 130, 130, 130–131, 131, 131, 133, 154, 169–170, 172–173, 182, 203–204, 206, 220, 220, 220–221, 221, 221–222, 225–226, 228, 228, 228, 230–231, 235, 237–239, 241–243, 246, 246, 246–247, 247, 247, 252, 252, 252, 259–261, 264, 266–267, 269, 271, 283, 283, 283, 285–290,