Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Specify all imports #421

Merged
merged 6 commits into from
Oct 16, 2024
Merged

[Cleanup] Specify all imports #421

merged 6 commits into from
Oct 16, 2024

Conversation

kbrizzle
Copy link
Collaborator

No description provided.

Copy link

[Trigger Orders] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-order/contracts
   Manager_Arbitrum.sol100%100%100%100%
   Manager.sol90.54%56.25%100%100%107, 132, 162, 51, 99, 99, 99
   OrderVerifier.sol94.12%87.50%100%100%20
packages/perennial-order/contracts/interfaces
   IManager.sol100%100%100%100%
   IOrderVerifier.sol100%100%100%100%
packages/perennial-order/contracts/test
   TriggerOrderTester.sol100%100%100%100%
packages/perennial-order/contracts/types
   Action.sol100%100%100%100%
   CancelOrderAction.sol100%100%100%100%
   PlaceOrderAction.sol100%100%100%100%
   TriggerOrder.sol98.36%96.43%100%100%94

Copy link

[Vault] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
27.41%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-vault/contracts
   Vault.sol0%0%0%0%100, 106, 112–113, 121–122, 131, 133, 133, 133, 140, 142, 142, 142, 147, 147–148, 150–151, 151, 151, 154, 160, 160, 160–161, 161, 161, 163, 165–166, 173–175, 183–184, 184, 184–185, 185, 185–187, 193, 193–194, 196, 196, 196, 198, 203, 203–204, 206, 206, 206, 208–211, 214, 214, 214, 219, 219–221, 227–228, 233, 233–235, 237–238, 244, 244–246, 248–250, 263, 263–265, 267–270, 276–277, 279, 279, 279–281, 299, 299, 299–300, 300, 300, 303, 303, 303–305, 305, 305–307, 307, 307–309, 309, 309–311, 311, 311–313, 313, 313, 316, 319–321, 324–326, 328, 335–336, 336, 345–346, 353, 356, 360–361, 367–368, 371, 371, 371, 374, 374, 374, 378, 391, 391, 391, 393, 401–402, 402, 402–405, 405, 405–406, 415, 421, 438, 452, 454–457, 459, 461–462, 465–467, 467, 467–468, 468, 471–473, 476, 476, 476–478, 485, 485, 485–487, 494–495, 495, 507–508, 511, 67, 67–68, 70–73, 79, 86, 93
   VaultFactory.sol0%0%0%0%33–34, 38, 38–39, 51, 51, 53, 57–59, 61, 68–69
packages/perennial-vault/contracts/interfaces
   IVault.sol100%100%100%100%
   IVaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/libs
   StrategyLib.sol0%0%0%0%116–117, 119, 119, 119–120, 120, 120, 122–126, 132, 135, 135, 135–136, 150, 153, 157, 159, 162, 162, 162, 162, 162, 164, 176–180, 182–183, 185–186, 188, 194, 196, 199–202, 205, 90–95
packages/perennial-vault/contracts/types
   Account.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Registration.sol100%100%100%100%
   VaultParameter.sol100%100%100%100%

Copy link

[Collateral Account] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
47.57%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-account/contracts
   Account.sol19.35%7.69%22.22%29.63%102, 102–103, 108, 108, 108–109, 58, 62, 62, 64, 67, 67, 67–68, 71, 75, 75–77, 77, 77–79, 79, 81, 83, 83, 83–84, 88, 88–89, 93, 93–94, 94, 94–96, 96, 96–97
   AccountVerifier.sol73.77%60%100%100%104, 106, 117, 119, 132, 143, 145, 30, 32, 42, 54, 56, 66, 68, 91, 93
   Controller_Arbitrum.sol0%100%0%0%24, 36
   Controller_Incentivized.sol0%0%0%0%105–108, 116, 118–120, 130–131, 133, 136, 146–147, 149, 152, 162–163, 165, 168, 178–179, 181, 184, 194–195, 197, 200, 204–205, 217–218, 221, 224, 46–47, 58, 58–62, 70–71, 79–81, 89–90, 93, 93, 93–95, 98–99
   Controller.sol66.41%63.64%77.27%64.29%100, 103–106, 108–109, 160, 205, 207, 220, 225, 228–229, 229, 229, 231, 233–235, 235, 235, 239–241, 241, 241, 244, 252–256, 262–263, 71, 98–99
packages/perennial-account/contracts/interfaces
   IAccount.sol100%100%100%100%
   IAccountVerifier.sol100%100%100%100%
   IController.sol100%100%100%100%
   IRelayer.sol100%100%100%100%
   IRelayVerifier.sol100%100%100%100%
packages/perennial-account/contracts/libs
   RebalanceLib.sol0%0%0%0%24, 27, 27, 27, 29, 31, 34
packages/perennial-account/contracts/test
   RebalanceConfigTester.sol100%100%100%100%
packages/perennial-account/contracts/types
   Action.sol100%100%100%100%
   DeployAccount.sol100%100%100%100%
   MarketTransfer.sol100%100%100%100%
   RebalanceConfig.sol100%100%100%100%
   RebalanceConfigChange.sol100%100%100%100%
   RelayedAccessUpdateBatch.sol100%100%100%100%
   RelayedGroupCancellation.sol100%100%100%100%
   RelayedNonceCancellation.sol100%100%100%100%
   RelayedOperatorUpdate.sol100%100%100%100%
   RelayedSignerUpdate.sol100%100%100%100%
   Withdrawal.sol100%100%100%100%

Copy link

[Oracle] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
87.21%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol98.28%95.65%100%100%48, 55
   OracleFactory.sol91.53%89.29%88.89%95.45%44, 64, 64–65
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol90%50%100%100%57, 64
packages/perennial-oracle/contracts/interfaces
   IChainlinkFactory.sol100%100%100%100%
   IKeeperFactory.sol100%100%100%100%
   IKeeperOracle.sol100%100%100%100%
   IMetaQuantsFactory.sol100%100%100%100%
   IOracle.sol100%100%100%100%
   IOracleFactory.sol100%100%100%100%
   IPayoffProvider.sol100%100%100%100%
   IPythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol71.76%40.91%78.57%89.04%104–107, 126, 153, 173, 173, 173, 173, 173, 173, 173–174, 176–177, 196, 201–203, 220, 238, 246–247, 251, 265–266, 266, 279, 69, 90, 90–92
   KeeperOracle.sol64.22%47.06%70.59%72.41%105, 115, 146, 165, 165–166, 168, 168, 168–169, 169, 169–170, 170, 170, 172, 174–178, 181–182, 199, 221, 221, 221–222, 231, 58, 69, 78, 92, 99
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol96.88%93.75%100%100%68
   PriceResponse.sol100%100%100%100%
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol0%0%0%0%22, 33–34, 34, 34, 36–38, 38, 38–39, 41, 43, 43, 43, 45, 47–48, 57
packages/perennial-oracle/contracts/payoff
   Inverse.sol100%100%100%100%
   PowerHalf.sol100%100%100%100%
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory.sol94.12%50%100%100%45
packages/perennial-oracle/contracts/types
   OracleParameter.sol95.45%90%100%100%49

Copy link

[Collateral Account] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
90.78%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-account/contracts
   Account.sol91.94%80.77%100%100%102, 44, 62, 88, 93
   AccountVerifier.sol60.66%45%90.91%90%104, 106, 117, 119, 130, 132, 143, 145, 30, 30, 32, 32, 32, 42, 44, 54, 56, 66, 68, 78, 80, 91, 93
   Controller_Arbitrum.sol100%100%100%100%
   Controller_Incentivized.sol98.57%75%100%100%58
   Controller.sol85.16%63.64%90.91%89.29%141, 149, 205, 274, 274, 274–275, 277–278, 282–284, 292–293, 309–310, 71
packages/perennial-account/contracts/interfaces
   IAccount.sol100%100%100%100%
   IAccountVerifier.sol100%100%100%100%
   IController.sol100%100%100%100%
   IRelayer.sol100%100%100%100%
   IRelayVerifier.sol100%100%100%100%
packages/perennial-account/contracts/libs
   RebalanceLib.sol100%100%100%100%
packages/perennial-account/contracts/test
   RebalanceConfigTester.sol0%100%0%0%10, 14
packages/perennial-account/contracts/types
   Action.sol100%100%100%100%
   DeployAccount.sol100%100%100%100%
   MarketTransfer.sol100%100%100%100%
   RebalanceConfig.sol14.29%0%33.33%14.29%34–35, 43, 43, 43–44, 44, 44, 46, 50
   RebalanceConfigChange.sol81.82%50%100%87.50%42–43
   RelayedAccessUpdateBatch.sol100%100%100%100%
   RelayedGroupCancellation.sol100%100%100%100%
   RelayedNonceCancellation.sol100%100%100%100%
   RelayedOperatorUpdate.sol100%100%100%100%
   RelayedSignerUpdate.sol100%100%100%100%
   Withdrawal.sol100%100%100%100%

Copy link

[Oracle] Sepolia Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
71.04%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol50%34.78%66.67%57.69%100, 100, 100–101, 109, 109–110, 117, 131, 134–136, 136, 136–137, 158, 160–161, 161, 161, 163, 165, 165, 165–166, 174, 176, 176, 176–177, 177, 177, 179, 184, 184, 184–185, 190, 196, 32, 41, 41–43, 48, 55, 55–57, 62, 83, 88
   OracleFactory.sol47.46%28.57%66.67%63.64%104, 104–105, 105, 105–106, 106, 106, 108–109, 109, 109, 111–112, 42, 44, 52, 52–53, 64, 72, 72–73, 78, 87–89, 92
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol90%50%100%100%57, 64
packages/perennial-oracle/contracts/interfaces
   IChainlinkFactory.sol100%100%100%100%
   IKeeperFactory.sol100%100%100%100%
   IKeeperOracle.sol100%100%100%100%
   IMetaQuantsFactory.sol100%100%100%100%
   IOracle.sol100%100%100%100%
   IOracleFactory.sol100%100%100%100%
   IPayoffProvider.sol100%100%100%100%
   IPythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol76.34%52.27%78.57%90.41%106–107, 173, 173, 173, 173, 173, 173, 173–174, 176–177, 196, 201–203, 220, 246–247, 251, 265–266, 266, 279, 84, 84–85, 90
   KeeperOracle.sol63.30%41.18%82.35%70.69%105, 146–147, 165, 165–166, 168, 168, 168–169, 169, 169–170, 170, 170, 172, 174–178, 181–182, 198, 203–205, 220–221, 221, 221–222, 231, 58, 69, 92, 99
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol79.17%50%100%83.33%21, 26–27, 43–44
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol71.88%50%100%92.31%55–57, 63–68
   PriceResponse.sol80.77%50%100%100%82–86
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol0%0%0%0%22, 33–34, 34, 34, 36–38, 38, 38–39, 41, 43, 43, 43, 45, 47–48, 57
packages/perennial-oracle/contracts/payoff
   Inverse.sol0%0%0%0%9, 9, 9
   PowerHalf.sol0%100%0%0%13
   PowerTwo.sol0%100%0%0%9
packages/perennial-oracle/contracts/pyth
   PythFactory.sol0%0%0%0%32, 45, 45, 45–46, 57–59, 61, 68, 70–71, 73–74
packages/perennial-oracle/contracts/types
   OracleParameter.sol77.27%50%100%100%40–41, 47–49

Copy link

[Trigger Orders] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
95.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-order/contracts
   Manager_Arbitrum.sol100%100%100%100%
   Manager.sol89.19%50%100%100%162, 162, 162, 174, 51, 99, 99, 99
   OrderVerifier.sol76.47%50%100%100%20, 28, 36, 42
packages/perennial-order/contracts/interfaces
   IManager.sol100%100%100%100%
   IOrderVerifier.sol100%100%100%100%
packages/perennial-order/contracts/test
   TriggerOrderTester.sol0%100%0%0%16, 20, 24
packages/perennial-order/contracts/types
   Action.sol100%100%100%100%
   CancelOrderAction.sol100%100%100%100%
   PlaceOrderAction.sol100%100%100%100%
   TriggerOrder.sol85.25%71.43%100%96%143–148, 41, 43–44

Copy link

[Extensions] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
88.39%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-extensions/contracts
   Coordinator.sol100%100%100%100%
   MultiInvoker_Arbitrum.sol0%100%0%0%43, 51
   MultiInvoker_Optimism.sol0%100%0%0%43, 51
   MultiInvoker.sol85.96%79.76%92.59%88.89%121, 170–171, 173, 192–193, 196, 201, 264, 264–265, 365, 365, 367, 370, 379, 379, 381, 384, 402, 404, 406, 408, 408, 408, 478, 94, 97–99
packages/perennial-extensions/contracts/interfaces
   ICoordinator.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
packages/perennial-extensions/contracts/types
   InterfaceFee.sol100%100%100%100%
   TriggerOrder.sol77.94%65%100%95.83%113–122, 55–56, 70, 74, 78

Copy link

[Oracle] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
87.54%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol59.48%45.65%72.22%67.31%100, 100, 100–101, 109, 109–110, 117, 131, 136–137, 158, 160–161, 161, 161, 163, 165, 165, 165–166, 176–177, 177, 177, 179, 184, 184, 184–185, 190, 196, 32, 41, 48, 55, 55–57, 62, 83, 88
   OracleFactory.sol72.88%50%88.89%95.45%104–106, 109, 42, 44, 64, 72, 72–73, 78, 87–89, 92
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol0%0%0%0%40–42, 53, 57, 57, 57, 59–61, 64, 64, 64, 66, 77–79
packages/perennial-oracle/contracts/interfaces
   IChainlinkFactory.sol100%100%100%100%
   IKeeperFactory.sol100%100%100%100%
   IKeeperOracle.sol100%100%100%100%
   IMetaQuantsFactory.sol100%100%100%100%
   IOracle.sol100%100%100%100%
   IOracleFactory.sol100%100%100%100%
   IPayoffProvider.sol100%100%100%100%
   IPythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol93.13%88.64%85.71%97.26%106–107, 203, 220, 84, 84–85
   KeeperOracle.sol93.58%85.29%94.12%98.28%165, 168–170, 69, 92
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol75%56.25%100%92.31%55–56, 63–68
   PriceResponse.sol80.77%50%100%100%82–86
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/payoff
   Inverse.sol0%0%0%0%9, 9, 9
   PowerHalf.sol0%100%0%0%13
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/types
   OracleParameter.sol77.27%50%100%100%40–41, 47–49

Copy link

[Vault] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-vault/contracts
   Vault.sol98.78%96.05%100%100%233, 313, 468
   VaultFactory.sol88.89%50%100%100%38, 51
packages/perennial-vault/contracts/interfaces
   IVault.sol100%100%100%100%
   IVaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/libs
   StrategyLib.sol98.18%90%100%100%135
packages/perennial-vault/contracts/types
   Account.sol82.86%50%100%100%129–134
   Checkpoint.sol89%72.50%100%100%220–230
   Registration.sol81.82%50%100%100%43–44
   VaultParameter.sol81.82%50%100%100%38–39

Copy link

[Extensions] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
90.32%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-extensions/contracts
   Coordinator.sol0%0%0%0%20, 25, 25–27, 32, 32–34, 40, 40, 40–42, 49, 49, 49–50
   MultiInvoker_Arbitrum.sol0%100%0%0%43, 51
   MultiInvoker_Optimism.sol0%100%0%0%43, 51
   MultiInvoker.sol97.37%92.86%100%100%201, 264, 330, 367, 381, 478
packages/perennial-extensions/contracts/interfaces
   ICoordinator.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
packages/perennial-extensions/contracts/types
   InterfaceFee.sol100%100%100%100%
   TriggerOrder.sol91.18%87.50%100%95.83%113–115, 53, 55–56

Copy link
Contributor

@EdNoepel EdNoepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

[Periphery] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
66.67%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-account/contracts
   Account.sol27.78%100%22.22%29.63%103, 108–109, 58, 64, 67–68, 71, 76–78, 81, 83–84, 89, 94–97
   AccountVerifier.sol100%100%100%100%
   Controller.sol81%100%100%75.95%103–105, 112–113, 204, 216, 227, 229–231, 235–237, 240, 250–252, 259
   Controller_Arbitrum.sol0%100%0%0%29, 41
   Controller_Incentivized.sol0%100%0%0%111, 128–129, 146, 154, 156–157, 164, 183, 186, 205, 208, 227, 230, 249, 252, 271, 274, 286–287, 290, 293, 302–303, 305, 307, 309, 56, 72–77, 94
packages/perennial-account/contracts/libs
   RebalanceLib.sol0%100%0%0%26, 29–30, 32–33, 36, 39, 43
packages/perennial-account/contracts/test
   RebalanceConfigTester.sol100%100%100%100%
packages/perennial-account/contracts/types
   Action.sol100%100%100%100%
   DeployAccount.sol100%100%100%100%
   MarketTransfer.sol100%100%100%100%
   RebalanceConfig.sol100%100%100%100%
   RebalanceConfigChange.sol100%100%100%100%
   RelayedAccessUpdateBatch.sol100%100%100%100%
   RelayedGroupCancellation.sol100%100%100%100%
   RelayedNonceCancellation.sol100%100%100%100%
   RelayedOperatorUpdate.sol100%100%100%100%
   RelayedSignerUpdate.sol100%100%100%100%
   Withdrawal.sol100%100%100%100%
packages/perennial-extensions/contracts
   Coordinator.sol100%100%100%100%
   MultiInvoker.sol90%100%92.86%89.34%101–102, 182, 184, 204, 207, 275, 379, 394, 412, 414, 416, 418
   MultiInvoker_Arbitrum.sol0%100%0%0%43, 51
   MultiInvoker_Optimism.sol0%100%0%0%43, 51
packages/perennial-extensions/contracts/types
   TriggerOrder.sol96.43%100%100%95.83%54
packages/perennial-oracle/contracts
   Oracle.sol100%100%100%100%
   OracleFactory.sol93.55%100%88.89%95.45%65
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol87.36%100%78.57%89.04%173–174, 176–177, 221, 248, 91–92
   KeeperOracle.sol71.05%100%70.59%71.19%109, 154, 164, 166–168, 170, 172–176, 179–180, 220, 72, 86
   KeeperOracle_Migration.sol0%100%0%0%26–27
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol100%100%100%100%
   PriceResponse.sol100%100%100%100%
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol0%100%0%0%25–27, 33–36, 40, 51–52, 54–57, 59, 61, 63, 65–66, 75
packages/perennial-oracle/contracts/payoff
   Inverse.sol100%100%100%100%
   PowerHalf.sol100%100%100%100%
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/perennial-order/contracts
   Manager.sol81.71%100%83.33%81.25%167–168, 170, 208, 212, 214, 216, 237–239, 254–255
   Manager_Arbitrum.sol100%100%100%100%
   OrderVerifier.sol100%100%100%100%
packages/perennial-order/contracts/test
   TriggerOrderTester.sol100%100%100%100%
packages/perennial-order/contracts/types
   Action.sol100%100%100%100%
   CancelOrderAction.sol100%100%100%100%
   InterfaceFee.sol100%100%100%100%
   PlaceOrderAction.sol100%100%100%100%
   TriggerOrder.sol100%100%100%100%
packages/perennial-vault/contracts
   Vault.sol0%100%0%0%100, 106, 112–113, 121–122, 131, 133, 140, 142, 148, 150–151, 154, 160–161, 163, 165–166, 173–175, 183–187, 194, 196, 198, 204, 206, 208–211, 214, 220–221, 227–228, 234–235, 237–238, 245–246, 248–250, 264–265, 267–270, 276–277, 279–281, 299–300, 303–313, 316, 319–321, 324–326, 328, 335, 345–346, 353, 356, 360–361, 367–368, 371, 374, 378, 391, 393, 401–406, 416, 422, 439, 453, 455–458, 460, 462–463, 466–468, 472–474, 477–479, 486–488, 495, 508–509, 512, 68, 70–73, 79, 86, 93
   VaultFactory.sol0%100%0%0%33–34, 39, 53, 57–59, 61, 68–69
packages/perennial-vault/contracts/libs
   StrategyLib.sol0%100%0%0%116–117, 119–120, 122–126, 132, 135–136, 150, 153, 157, 159, 162, 164, 176–180, 182–183, 185–186, 188, 194, 196, 199–202, 205, 90–95
packages/perennial-vault/contracts/types
   Account.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Registration.sol100%100%100%100%
   VaultParameter.sol100%100%100%100%
packages/perennial-verifier/contracts
   Verifier.sol100%100%100%100%
packages/perennial-verifier/contracts/types
   AccessUpdate.sol100%100%100%100%
   AccessUpdateBatch.sol100%100%100%100%
   Intent.sol100%100%100%100%
   OperatorUpdate.sol100%100%100%100%
   SignerUpdate.sol100%100%100%100%

Copy link

[Core] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
96.54%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts
   Market.sol97.21%92%97.78%99.53%130, 130–131, 136, 150, 191, 243, 714, 886
   MarketFactory.sol93.48%87.50%94.74%97.56%117, 125, 151, 180, 93
packages/perennial/contracts/interfaces
   IMarket.sol100%100%100%100%
   IMarketFactory.sol100%100%100%100%
   IOracleProvider.sol100%100%100%100%
   IOracleProviderFactory.sol100%100%100%100%
packages/perennial/contracts/libs
   CheckpointLib.sol100%100%100%100%
   InvariantLib.sol60.66%47.50%100%85%109, 115–116, 35–36, 38–39, 39, 39, 39, 48, 52, 52, 60, 65–66, 66, 72–73, 77, 83–84, 84, 98
   MagicValueLib.sol63.16%50%100%62.50%55–58, 58, 58–59
   VersionLib.sol98.76%95.83%100%99.18%442–443
packages/perennial/contracts/types
   Checkpoint.sol74.07%50%100%100%50–56
   Global.sol79.69%53.57%100%100%145–157
   Guarantee.sol89.55%65%100%100%197–199, 222–225
   Local.sol82.14%50%100%100%84–88
   MarketParameter.sol76.67%50%100%87.50%100–101, 85–86, 88–89, 99
   OracleReceipt.sol100%100%100%100%
   OracleVersion.sol100%100%100%100%
   Order.sol85.12%63.79%96.77%96.20%103, 103, 109–110, 162, 182, 182, 240, 396–401, 472–474, 500–505, 99
   Position.sol77.19%57.69%87.10%80.70%111, 148, 203, 216, 300, 334–336, 350–352, 355, 355, 355, 355, 355–356, 358–360, 419, 441
   ProtocolParameter.sol73.53%50%100%100%71–73, 79–84
   RiskParameter.sol69.33%47.62%100%96.67%134, 140, 142, 148, 150–151, 153–154, 156, 158, 160, 168, 168, 168–169, 179–186
   Version.sol70.27%50%100%100%100–119, 98–99

Copy link

[Periphery] Integration Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
93.69%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-account/contracts
   Account.sol100%100%100%100%
   AccountVerifier.sol91.67%100%91.67%91.67%38
   Controller.sol92%100%90.48%92.41%147, 155, 271, 274, 289, 306
   Controller_Arbitrum.sol100%100%100%100%
   Controller_Incentivized.sol100%100%100%100%
packages/perennial-account/contracts/libs
   RebalanceLib.sol100%100%100%100%
packages/perennial-account/contracts/test
   RebalanceConfigTester.sol0%100%0%0%10, 14
packages/perennial-account/contracts/types
   Action.sol100%100%100%100%
   DeployAccount.sol100%100%100%100%
   MarketTransfer.sol100%100%100%100%
   RebalanceConfig.sol20%100%33.33%14.29%34–35, 43–44, 46, 50
   RebalanceConfigChange.sol85.71%100%100%83.33%43
   RelayedAccessUpdateBatch.sol100%100%100%100%
   RelayedGroupCancellation.sol100%100%100%100%
   RelayedNonceCancellation.sol100%100%100%100%
   RelayedOperatorUpdate.sol100%100%100%100%
   RelayedSignerUpdate.sol100%100%100%100%
   Withdrawal.sol100%100%100%100%
packages/perennial-extensions/contracts
   Coordinator.sol0%100%0%0%20, 26–27, 33–34, 40–42, 49–50
   MultiInvoker.sol100%100%100%100%
   MultiInvoker_Arbitrum.sol0%100%0%0%43, 51
   MultiInvoker_Optimism.sol0%100%0%0%43, 51
packages/perennial-extensions/contracts/types
   TriggerOrder.sol96.43%100%100%95.83%54
packages/perennial-oracle/contracts
   Oracle.sol67.12%100%68.42%66.67%100, 112–113, 122, 149, 172–173, 175, 177–178, 189, 191, 196–197, 61–62, 69, 95
   OracleFactory.sol93.55%100%88.89%95.45%73
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol95.40%100%85.71%97.26%221, 85
   KeeperOracle.sol96.05%100%94.12%96.61%154, 86
   KeeperOracle_Migration.sol0%100%0%0%26–27
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol93.75%100%100%92.31%56
   PriceResponse.sol100%100%100%100%
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/payoff
   Inverse.sol0%100%0%0%9
   PowerHalf.sol0%100%0%0%13
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/perennial-order/contracts
   Manager.sol100%100%100%100%
   Manager_Arbitrum.sol100%100%100%100%
   OrderVerifier.sol100%100%100%100%
packages/perennial-order/contracts/test
   TriggerOrderTester.sol0%100%0%0%17, 21, 25, 29
packages/perennial-order/contracts/types
   Action.sol100%100%100%100%
   CancelOrderAction.sol100%100%100%100%
   InterfaceFee.sol100%100%100%100%
   PlaceOrderAction.sol100%100%100%100%
   TriggerOrder.sol95.56%100%100%94.29%120, 47
packages/perennial-vault/contracts
   Vault.sol100%100%100%100%
   VaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/libs
   StrategyLib.sol100%100%100%100%
packages/perennial-vault/contracts/types
   Account.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Registration.sol100%100%100%100%
   VaultParameter.sol100%100%100%100%

Copy link

[Periphery] Combined Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
99.04%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-account/contracts
   Account.sol100%100%100%100%
   AccountVerifier.sol100%100%100%100%
   Controller.sol100%100%100%100%
   Controller_Arbitrum.sol100%100%100%100%
   Controller_Incentivized.sol100%100%100%100%
packages/perennial-account/contracts/libs
   RebalanceLib.sol100%100%100%100%
packages/perennial-account/contracts/test
   RebalanceConfigTester.sol100%100%100%100%
packages/perennial-account/contracts/types
   Action.sol100%100%100%100%
   DeployAccount.sol100%100%100%100%
   MarketTransfer.sol100%100%100%100%
   RebalanceConfig.sol100%100%100%100%
   RebalanceConfigChange.sol100%100%100%100%
   RelayedAccessUpdateBatch.sol100%100%100%100%
   RelayedGroupCancellation.sol100%100%100%100%
   RelayedNonceCancellation.sol100%100%100%100%
   RelayedOperatorUpdate.sol100%100%100%100%
   RelayedSignerUpdate.sol100%100%100%100%
   Withdrawal.sol100%100%100%100%
packages/perennial-extensions/contracts
   Coordinator.sol100%100%100%100%
   MultiInvoker.sol100%100%100%100%
   MultiInvoker_Arbitrum.sol0%100%0%0%43, 51
   MultiInvoker_Optimism.sol0%100%0%0%43, 51
packages/perennial-extensions/contracts/types
   TriggerOrder.sol96.43%100%100%95.83%54
packages/perennial-oracle/contracts
   Oracle.sol100%100%100%100%
   OracleFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper
   KeeperFactory.sol97.70%100%92.86%98.63%221
   KeeperOracle.sol96.05%100%94.12%96.61%154, 86
   KeeperOracle_Migration.sol0%100%0%0%26–27
packages/perennial-oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/perennial-oracle/contracts/keeper/types
   KeeperOracleParameter.sol100%100%100%100%
   PriceResponse.sol100%100%100%100%
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/payoff
   Inverse.sol100%100%100%100%
   PowerHalf.sol100%100%100%100%
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/perennial-order/contracts
   Manager.sol100%100%100%100%
   Manager_Arbitrum.sol100%100%100%100%
   OrderVerifier.sol100%100%100%100%
packages/perennial-order/contracts/test
   TriggerOrderTester.sol100%100%100%100%
packages/perennial-order/contracts/types
   Action.sol100%100%100%100%
   CancelOrderAction.sol100%100%100%100%
   InterfaceFee.sol100%100%100%100%
   PlaceOrderAction.sol100%100%100%100%
   TriggerOrder.sol100%100%100%100%
packages/perennial-vault/contracts
   Vault.sol100%100%100%100%
   VaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/libs
   StrategyLib.sol100%100%100%100%
packages/perennial-vault/contracts/types
   Account.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Registration.sol100%100%100%100%
   VaultParameter.sol100%100%100%100%
packages/perennial-verifier/contracts
   Verifier.sol100%100%100%100%
packages/perennial-verifier/contracts/types
   AccessUpdate.sol100%100%100%100%
   AccessUpdateBatch.sol100%100%100%100%
   Intent.sol100%100%100%100%
   OperatorUpdate.sol100%100%100%100%
   SignerUpdate.sol100%100%100%100%

Copy link

[Core] Unit Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
98.80%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts
   Market.sol98.88%98%97.78%99.53%130–131, 150
   MarketFactory.sol100%100%100%100%
packages/perennial/contracts/interfaces
   IMarket.sol100%100%100%100%
   IMarketFactory.sol100%100%100%100%
   IOracleProvider.sol100%100%100%100%
   IOracleProviderFactory.sol100%100%100%100%
packages/perennial/contracts/libs
   CheckpointLib.sol100%100%100%100%
   InvariantLib.sol100%100%100%100%
   MagicValueLib.sol100%100%100%100%
   VersionLib.sol100%100%100%100%
packages/perennial/contracts/types
   Checkpoint.sol100%100%100%100%
   Global.sol96.88%92.86%100%100%151, 153
   Guarantee.sol100%100%100%100%
   Local.sol100%100%100%100%
   MarketParameter.sol100%100%100%100%
   OracleReceipt.sol100%100%100%100%
   OracleVersion.sol100%100%100%100%
   Order.sol98.21%94.83%100%100%103, 399, 99
   Position.sol88.60%84.62%96.77%85.96%350–352, 355, 355, 355, 355, 355–356, 358–360
   ProtocolParameter.sol100%100%100%100%
   RiskParameter.sol96%92.86%100%100%179, 182, 186
   Version.sol100%100%100%100%

Copy link

[Core] Combined Test Coverage Report

Coverage after merging britz-update-imports into v2.3 will be
98.80%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts
   Market.sol99.22%100%97.62%99.53%131
   MarketFactory.sol100%100%100%100%
packages/perennial/contracts/libs
   CheckpointLib.sol100%100%100%100%
   InvariantLib.sol100%100%100%100%
   MagicValueLib.sol100%100%100%100%
   VersionLib.sol100%100%100%100%
packages/perennial/contracts/types
   Checkpoint.sol100%100%100%100%
   Global.sol100%100%100%100%
   Guarantee.sol100%100%100%100%
   Local.sol100%100%100%100%
   MarketParameter.sol100%100%100%100%
   Order.sol100%100%100%100%
   Position.sol89.02%100%96%85.96%350–352, 355–356, 358–360
   ProtocolParameter.sol100%100%100%100%
   RiskParameter.sol100%100%100%100%
   Version.sol100%100%100%100%

@kbrizzle kbrizzle merged commit ab22885 into v2.3 Oct 16, 2024
19 checks passed
@kbrizzle kbrizzle deleted the britz-update-imports branch October 16, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants