matter-labs / era-contracts

Smart Contract Submodule For zkSync Era
MIT License
466 stars 323 forks source link

update todos fix efficient calls #549

Closed koloz193 closed 3 days ago

koloz193 commented 1 week ago

What ❔

Why ❔

Checklist

github-actions[bot] commented 3 days ago

Coverage after merging zk-custom-da-testing into kl/sync-layer-reorg will be

70.58%

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%111, 124, 134–137, 170, 177, 184–187, 198, 202, 219, 219, 219–220, 220, 220, 222, 222, 222–223, 223, 223–224, 224, 224, 226, 226, 226, 228–229, 231–232, 234, 242, 244–245, 266–267, 340–341, 341, 341–342, 342, 342, 344, 344, 344, 348, 356–358, 386–388, 388, 388–389, 389, 389, 393, 395, 395, 395–396, 399, 407, 410, 418, 418, 418, 420, 422, 422, 422, 426, 440, 454, 454, 454–456, 476, 476, 476, 478–479, 479, 479–480, 480, 480–481, 483, 487, 492, 501, 505–506, 506, 506–507, 507, 507, 509–512, 512, 512–513, 516–517, 532, 537, 82, 86, 86, 91, 91, 91
   MessageRoot.sol0%0%0%0%100, 108, 116, 118, 122, 133, 136, 39, 39, 39, 45, 45, 45, 52–53, 58, 63, 67–68, 68, 68, 70–72, 74, 76, 80, 85, 87, 90, 94–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.sol97.83%93.75%100%100%56
   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, 293, 293, 293, 297, 297, 297, 302, 304, 306, 308, 312, 316, 82, 91, 91, 91–93, 95–96, 98
   Executor.sol79.03%73.64%80.65%82.25%157, 159, 163, 163–164, 164, 164–165,