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

v2.4 #489

Open
wants to merge 271 commits into
base: main
Choose a base branch
from
Open

v2.4 #489

wants to merge 271 commits into from

Conversation

EdNoepel
Copy link
Contributor

PR to run CI on development branch.

EdNoepel and others added 30 commits October 18, 2024 16:09
Copy link

[Periphery] Unit Test Coverage Report

Coverage after merging v2.4 into main will be
56.53%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/oracle/contracts
   Oracle.sol100%100%100%100%
   OracleFactory.sol92.59%100%85.71%95%58
packages/oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/oracle/contracts/keeper
   KeeperFactory.sol87.06%100%76.92%88.89%165–166, 168–169, 213, 240, 83–84
   KeeperOracle.sol72.37%100%70.59%72.88%110, 163, 165–167, 169, 171–175, 178–179, 224, 73, 87
packages/oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/oracle/contracts/keeper/types
   KeeperOracleParameter.sol100%100%100%100%
   PriceResponse.sol100%100%100%100%
packages/oracle/contracts/metaquants
   MetaQuantsFactory.sol0%100%0%0%25–27, 33–36, 40, 51–52, 54–57, 59, 61, 63, 65–66, 75
packages/oracle/contracts/payoff
   Inverse.sol100%100%100%100%
   PowerHalf.sol100%100%100%100%
   PowerTwo.sol100%100%100%100%
packages/oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts
   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
   Controller_Optimism.sol0%100%0%0%29, 41
packages/periphery/contracts/CollateralAccounts/libs
   RebalanceLib.sol0%100%0%0%26, 29–30, 32–33, 36, 39, 43
packages/periphery/contracts/CollateralAccounts/test
   RebalanceConfigTester.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts/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/periphery/contracts/Coordinator
   Coordinator.sol100%100%100%100%
packages/periphery/contracts/MultiInvoker
   MultiInvoker.sol0%100%0%0%103, 110–111, 113, 120–121, 123–124, 136, 138, 140, 142, 145, 147, 150, 152, 154, 156–157, 161, 185, 188, 190, 200–201, 204–205, 218, 236–237, 240, 242, 245, 249–250, 257, 262, 270–271, 273, 275, 283–284, 292–294, 296, 305–306, 308, 317–319, 322, 331–334, 337, 355, 357–358, 360, 369, 374–376, 381–383, 388–389, 73–78, 84–86, 89–90, 96
packages/periphery/contracts/TriggerOrders
   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%
   Manager_Optimism.sol0%100%0%0%27, 35
   OrderVerifier.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders/test
   TriggerOrderTester.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders/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/vault/contracts
   Vault.sol0%100%0%0%102, 109, 115, 121–122, 130–131, 140, 142, 149, 151, 157, 159–160, 163, 169–170, 172, 174–175, 182–184, 192–196, 203, 205, 207, 213, 215, 217–220, 223, 229–230, 236–237, 243–244, 250–251, 253–254, 261–262, 264–266, 280–281, 283–286, 291–292, 298–299, 301–303, 321–322, 325–335, 338, 341–343, 346–348, 350, 357, 367–368, 375, 378, 382–383, 389–390, 393, 396, 400, 413, 415, 423–428, 438, 444, 461, 475, 477–480, 482, 484–485, 488–490, 494–496, 499–501, 508–510, 517, 530–531, 534, 546–547, 552–553, 74, 76–79, 82, 88, 95
   VaultFactory.sol0%100%0%0%33–34, 39, 53, 57–59, 61
packages/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/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

[Core] Integration Test Coverage Report

Coverage after merging v2.4 into main will be
97.92%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/core/contracts
   InsuranceFund.sol80%50%100%100%29, 34, 39, 39, 49
   Market.sol98.31%93.88%100%100%130, 144, 185, 237, 706, 878
   MarketFactory.sol96.74%90.63%100%100%128, 154, 183
   Verifier.sol84.85%75%100%100%35, 48, 64, 80, 96
packages/core/contracts/interfaces
   IInsuranceFund.sol100%100%100%100%
   IMarket.sol100%100%100%100%
   IMarketFactory.sol100%100%100%100%
   IMarketFactorySigners.sol100%100%100%100%
   IOracleProvider.sol100%100%100%100%
   IOracleProviderFactory.sol100%100%100%100%
   IVerifier.sol100%100%100%100%
packages/core/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/core/contracts/types
   AccessUpdate.sol100%100%100%100%
   AccessUpdateBatch.sol100%100%100%100%
   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
   Intent.sol100%100%100%100%
   Local.sol82.14%50%100%100%84–88
   MarketParameter.sol76.67%50%100%87.50%100–101, 85–86, 88–89, 99
   OperatorUpdate.sol100%100%100%100%
   OracleReceipt.sol100%100%100%100%
   OracleVersion.sol100%100%100%100%
   Order.sol86.31%67.24%96.77%96.20%103, 109–110, 162, 182, 182, 240, 396–401, 472–474, 500–505
   Position.sol86.32%61.11%90%93.62%111, 148, 203, 216, 300, 330–332, 377, 395
   ProtocolParameter.sol74.36%50%100%100%81–83, 89–95
   RiskParameter.sol69.23%47.73%100%96.77%134, 140, 142, 148, 150–151, 153–154, 156, 158, 160, 168, 168, 168–169, 171, 181–188
   SignerUpdate.sol100%100%100%100%
   Version.sol70.27%50%100%100%100–119, 98–99

Copy link

[Core] Unit Test Coverage Report

Coverage after merging v2.4 into main will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/core/contracts
   InsuranceFund.sol100%100%100%100%
   Market.sol99.72%98.98%100%100%144
   MarketFactory.sol100%100%100%100%
   Verifier.sol93.94%90%100%100%35, 80
packages/core/contracts/interfaces
   IInsuranceFund.sol100%100%100%100%
   IMarket.sol100%100%100%100%
   IMarketFactory.sol100%100%100%100%
   IMarketFactorySigners.sol100%100%100%100%
   IOracleProvider.sol100%100%100%100%
   IOracleProviderFactory.sol100%100%100%100%
   IVerifier.sol100%100%100%100%
packages/core/contracts/libs
   CheckpointLib.sol100%100%100%100%
   InvariantLib.sol100%100%100%100%
   MagicValueLib.sol100%100%100%100%
   VersionLib.sol100%100%100%100%
packages/core/contracts/types
   AccessUpdate.sol100%100%100%100%
   AccessUpdateBatch.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Global.sol96.88%92.86%100%100%151, 153
   Guarantee.sol100%100%100%100%
   Intent.sol100%100%100%100%
   Local.sol100%100%100%100%
   MarketParameter.sol100%100%100%100%
   OperatorUpdate.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.sol100%100%100%100%
   ProtocolParameter.sol100%100%100%100%
   RiskParameter.sol96.15%93.18%100%100%181, 184, 188
   SignerUpdate.sol100%100%100%100%
   Version.sol100%100%100%100%

Copy link

[Core] Combined Test Coverage Report

Coverage after merging v2.4 into main will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/core/contracts
   InsuranceFund.sol100%100%100%100%
   Market.sol100%100%100%100%
   MarketFactory.sol100%100%100%100%
   Verifier.sol100%100%100%100%
packages/core/contracts/libs
   CheckpointLib.sol100%100%100%100%
   InvariantLib.sol100%100%100%100%
   MagicValueLib.sol100%100%100%100%
   VersionLib.sol100%100%100%100%
packages/core/contracts/types
   AccessUpdate.sol100%100%100%100%
   AccessUpdateBatch.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Global.sol100%100%100%100%
   Guarantee.sol100%100%100%100%
   Intent.sol100%100%100%100%
   Local.sol100%100%100%100%
   MarketParameter.sol100%100%100%100%
   OperatorUpdate.sol100%100%100%100%
   Order.sol100%100%100%100%
   Position.sol100%100%100%100%
   ProtocolParameter.sol100%100%100%100%
   RiskParameter.sol100%100%100%100%
   SignerUpdate.sol100%100%100%100%
   Version.sol100%100%100%100%

Copy link

[Periphery] Integration Test Coverage Report

Coverage after merging v2.4 into main will be
93.83%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/oracle/contracts
   Oracle.sol65.33%100%65%65.45%111–112, 121, 142, 155, 178–179, 181, 183–184, 195, 197, 202–203, 54, 67–68, 94, 99
   OracleFactory.sol100%100%100%100%
packages/oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/oracle/contracts/keeper
   KeeperFactory.sol97.65%100%92.31%98.61%213
   KeeperOracle.sol97.37%100%94.12%98.31%87
packages/oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/oracle/contracts/keeper/types
   KeeperOracleParameter.sol93.75%100%100%92.31%56
   PriceResponse.sol100%100%100%100%
packages/oracle/contracts/metaquants
   MetaQuantsFactory.sol100%100%100%100%
packages/oracle/contracts/payoff
   Inverse.sol0%100%0%0%9
   PowerHalf.sol0%100%0%0%13
   PowerTwo.sol100%100%100%100%
packages/oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts
   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%
   Controller_Optimism.sol0%100%0%0%29, 41
packages/periphery/contracts/CollateralAccounts/libs
   RebalanceLib.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts/test
   RebalanceConfigTester.sol0%100%0%0%10, 14
packages/periphery/contracts/CollateralAccounts/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/periphery/contracts/Coordinator
   Coordinator.sol0%100%0%0%20, 26–27, 33–34, 40–42, 49–50
packages/periphery/contracts/MultiInvoker
   MultiInvoker.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders
   Manager.sol100%100%100%100%
   Manager_Arbitrum.sol100%100%100%100%
   Manager_Optimism.sol0%100%0%0%27, 35
   OrderVerifier.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders/test
   TriggerOrderTester.sol0%100%0%0%17, 21, 25, 29
packages/periphery/contracts/TriggerOrders/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/vault/contracts
   Vault.sol100%100%100%100%
   VaultFactory.sol100%100%100%100%
packages/vault/contracts/libs
   StrategyLib.sol100%100%100%100%
packages/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 v2.4 into main will be
99.38%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/oracle/contracts
   Oracle.sol100%100%100%100%
   OracleFactory.sol100%100%100%100%
packages/oracle/contracts/chainlink
   ChainlinkFactory.sol100%100%100%100%
packages/oracle/contracts/keeper
   KeeperFactory.sol97.65%100%92.31%98.61%213
   KeeperOracle.sol97.37%100%94.12%98.31%87
packages/oracle/contracts/keeper/libs
   DedupLib.sol100%100%100%100%
packages/oracle/contracts/keeper/types
   KeeperOracleParameter.sol100%100%100%100%
   PriceResponse.sol100%100%100%100%
packages/oracle/contracts/metaquants
   MetaQuantsFactory.sol100%100%100%100%
packages/oracle/contracts/payoff
   Inverse.sol100%100%100%100%
   PowerHalf.sol100%100%100%100%
   PowerTwo.sol100%100%100%100%
packages/oracle/contracts/pyth
   PythFactory.sol100%100%100%100%
packages/oracle/contracts/types
   OracleParameter.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts
   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%
   Controller_Optimism.sol0%100%0%0%29, 41
packages/periphery/contracts/CollateralAccounts/libs
   RebalanceLib.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts/test
   RebalanceConfigTester.sol100%100%100%100%
packages/periphery/contracts/CollateralAccounts/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/periphery/contracts/Coordinator
   Coordinator.sol100%100%100%100%
packages/periphery/contracts/MultiInvoker
   MultiInvoker.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders
   Manager.sol100%100%100%100%
   Manager_Arbitrum.sol100%100%100%100%
   Manager_Optimism.sol0%100%0%0%27, 35
   OrderVerifier.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders/test
   TriggerOrderTester.sol100%100%100%100%
packages/periphery/contracts/TriggerOrders/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/vault/contracts
   Vault.sol100%100%100%100%
   VaultFactory.sol100%100%100%100%
packages/vault/contracts/libs
   StrategyLib.sol100%100%100%100%
packages/vault/contracts/types
   Account.sol100%100%100%100%
   Checkpoint.sol100%100%100%100%
   Registration.sol100%100%100%100%
   VaultParameter.sol100%100%100%100%

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