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

Cryptex Oracle Factory deployment #445

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Cryptex Oracle Factory deployment #445

merged 1 commit into from
Sep 23, 2024

Conversation

arjun-io
Copy link
Collaborator

No description provided.

Copy link

[Vault] Unit Test Coverage Report

Coverage after merging arjun/cryptex into main will be
26.82%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-vault/contracts
   Vault.sol0%0%0%0%103–104, 112–113, 122, 124, 124, 124, 131, 133, 133, 133, 138, 138–139, 141–142, 142, 142, 145, 151, 151, 151–152, 152, 152, 154, 156–157, 164–166, 174–175, 175, 175–176, 176, 176–178, 184, 184–185, 187, 187, 187, 189, 194, 194–195, 197, 197, 197, 199–202, 205, 205, 205, 210, 210–212, 218–219, 224, 224–226, 228–229, 235, 235–237, 239–241, 254, 254–256, 258–261, 267–268, 270, 270, 270–272, 290, 290, 290–291, 291, 291, 294, 294, 294–296, 296, 296–298, 298, 298–300, 300, 300–302, 302, 302–304, 304, 304, 307, 310–312, 315–317, 319, 326–327, 327, 336–337, 344, 347, 351–352, 358–359, 362, 362, 362, 365, 365, 365, 369, 382, 382, 382, 384, 392–393, 393, 393–396, 396, 396–397, 406, 412, 429, 443, 445–448, 450, 452–455, 458–460, 460, 460–461, 461, 464–466, 469, 469, 469–471, 478, 478, 478–480, 487–488, 488, 500–501, 504, 58, 58–59, 61–64, 70, 77, 84, 91, 97
   VaultFactory.sol0%0%0%0%29–30, 34, 34–35, 47, 47–48, 51, 55–57, 59, 66–67
packages/perennial-vault/contracts/interfaces
   IVault.sol100%100%100%100%
   IVaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/lib
   StrategyLib.sol0%0%0%0%118–119, 121, 121, 121–122, 122, 122, 124–128, 134, 137, 137, 137–138, 152, 155, 159, 161, 164, 164, 164, 164, 164, 166, 178–182, 184–185, 187–188, 190, 195, 197, 200–203, 206, 92–97
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

[Oracle] Unit Test Coverage Report

Coverage after merging arjun/cryptex into main will be
79.78%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol100%100%100%100%
   OracleFactory.sol98.67%97.06%100%100%35
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory_Arbitrum.sol0%100%0%0%30, 38
   ChainlinkFactory_Optimism.sol0%100%0%0%30, 38
   ChainlinkFactory.sol91.67%50%100%100%55, 62
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.sol56.12%28.85%61.11%75.36%107, 118, 125, 125–127, 139–142, 158, 175–176, 181, 185, 206, 223, 223, 225, 225, 225–226, 226, 226, 226, 226, 226, 232–233, 248, 253, 253–255, 255, 255–256, 256, 256–257, 257, 257, 259, 264, 273, 281, 292–293, 297, 306, 306, 306–307, 315
   KeeperOracle.sol63.16%46.88%70.59%71.74%118, 134, 134–135, 137, 137, 137–138, 138, 138–139, 139, 139, 141–145, 155, 170, 170, 170–171, 186, 43, 55, 63, 76, 83, 92
packages/perennial-oracle/contracts/keeper/types
   Price.sol100%100%100%100%
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory_Arbitrum.sol0%100%0%0%28, 36
   MetaQuantsFactory_Optimism.sol0%100%0%0%28, 36
   MetaQuantsFactory.sol0%0%0%0%29, 40–41, 41, 41, 43–45, 45, 45–46, 48, 50, 50, 50, 52, 54–55, 63
packages/perennial-oracle/contracts/mock
   MockFeeManager.sol88.89%50%100%100%18
   MockVerifierProxy.sol94.74%75%100%100%16
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_Arbitrum.sol0%100%0%0%29, 37
   PythFactory_Optimism.sol0%100%0%0%29, 37
   PythFactory.sol92%50%100%100%46, 88

Copy link

[Oracle] Sepolia Integration Test Coverage Report

Coverage after merging arjun/cryptex into main will be
62.13%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol37.93%26.47%58.33%41.46%101, 111, 113–114, 114, 114, 116, 118, 118, 118–119, 126–127, 129, 129, 129–130, 130, 130, 132, 137, 137, 137–139, 21, 30, 30–32, 38, 38–39, 41, 45–46, 59, 64, 74, 74, 74–75, 84, 87–89, 89, 89–90
   OracleFactory.sol44%29.41%60%54.84%106–108, 108, 108–109, 115, 115, 115–116, 33, 35, 43, 50, 50–52, 59–61, 64, 75, 75–76, 76, 76–77, 77, 77, 79–80, 80, 80, 82–83, 88, 97–98
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory_Arbitrum.sol0%100%0%0%30, 38
   ChainlinkFactory_Optimism.sol0%100%0%0%30, 38
   ChainlinkFactory.sol91.67%50%100%100%55, 62
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.sol94.24%92.31%88.89%97.10%141–142, 223, 273, 281, 315
   KeeperOracle.sol92.63%84.38%100%95.65%134, 137–139, 154, 158–159
packages/perennial-oracle/contracts/keeper/types
   Price.sol84.62%50%100%100%43–44
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory_Arbitrum.sol0%100%0%0%28, 36
   MetaQuantsFactory_Optimism.sol0%100%0%0%28, 36
   MetaQuantsFactory.sol0%0%0%0%29, 40–41, 41, 41, 43–45, 45, 45–46, 48, 50, 50, 50, 52, 54–55, 63
packages/perennial-oracle/contracts/mock
   MockFeeManager.sol0%0%0%0%10, 18, 18, 18–19, 23–24
   MockVerifierProxy.sol0%0%0%0%10, 15–16, 16, 16–22, 26–27, 29, 29, 29–30
packages/perennial-oracle/contracts/payoff
   Inverse.sol0%0%0%0%9, 9, 9
   PowerHalf.sol0%100%0%0%11
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory_Arbitrum.sol0%100%0%0%29, 37
   PythFactory_Optimism.sol0%100%0%0%29, 37
   PythFactory.sol0%0%0%0%33, 46, 46, 46–47, 58–60, 62, 69–70, 72–73, 85–88, 88, 88, 96

Copy link

[Extensions] Unit Test Coverage Report

Coverage after merging arjun/cryptex into main will be
89.86%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-extensions/contracts
   Coordinator.sol100%100%100%100%
   MultiInvoker_Arbitrum.sol0%100%0%0%37, 45
   MultiInvoker_Optimism.sol0%100%0%0%37, 45
   MultiInvoker.sol88.15%81.58%96%90.91%111, 178–179, 182–183, 325, 325, 327, 330, 339, 339, 341, 344, 362, 364, 366, 368, 368, 368, 438, 84, 87–89
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%112–121, 55–56, 70, 74, 78

Copy link

[Oracle] Integration Test Coverage Report

Coverage after merging arjun/cryptex into main will be
71.69%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-oracle/contracts
   Oracle.sol51.72%44.12%66.67%53.66%111, 113–114, 114, 114, 116, 118, 118, 118–119, 126, 129–130, 130, 130, 132, 137, 137, 137–139, 21, 30, 38, 38–39, 41, 45–46, 59, 64, 74, 74, 74–75, 84, 89–90
   OracleFactory.sol58.67%41.18%70%74.19%106–108, 108, 108–109, 115, 115, 115–116, 33, 35, 43, 50, 50–52, 59–61, 64, 75–77, 80, 88, 97–98
packages/perennial-oracle/contracts/chainlink
   ChainlinkFactory_Arbitrum.sol0%100%0%0%30, 38
   ChainlinkFactory_Optimism.sol0%100%0%0%30, 38
   ChainlinkFactory.sol0%0%0%0%38–40, 51, 55, 55, 55, 57–59, 62, 62, 62, 64, 72–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.sol95.68%92.31%94.44%98.55%141–142, 223, 273, 281
   KeeperOracle.sol95.79%87.50%100%100%134, 137–139
packages/perennial-oracle/contracts/keeper/types
   Price.sol84.62%50%100%100%43–44
packages/perennial-oracle/contracts/metaquants
   MetaQuantsFactory_Arbitrum.sol0%100%0%0%28, 36
   MetaQuantsFactory_Optimism.sol0%100%0%0%28, 36
   MetaQuantsFactory.sol100%100%100%100%
packages/perennial-oracle/contracts/mock
   MockFeeManager.sol0%0%0%0%10, 18, 18, 18–19, 23–24
   MockVerifierProxy.sol0%0%0%0%10, 15–16, 16, 16–22, 26–27, 29, 29, 29–30
packages/perennial-oracle/contracts/payoff
   Inverse.sol0%0%0%0%9, 9, 9
   PowerHalf.sol0%100%0%0%11
   PowerTwo.sol100%100%100%100%
packages/perennial-oracle/contracts/pyth
   PythFactory_Arbitrum.sol0%100%0%0%29, 37
   PythFactory_Optimism.sol0%100%0%0%29, 37
   PythFactory.sol100%100%100%100%

Copy link

[Core] Integration Test Coverage Report

Coverage after merging arjun/cryptex into main will be
95.54%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts
   Market.sol83.44%65.22%87.18%91.53%138, 150, 150–152, 163, 176, 186, 189, 214–219, 227, 227–228, 230, 230, 230–231, 231, 231, 233, 235–236, 243, 253, 309, 315, 425, 522–523, 525, 608–609, 609, 609–610, 626, 629, 668, 700, 710, 716, 86, 96
   MarketFactory.sol66.67%50%75%75%35, 45, 50, 59–60, 66, 74, 76, 79–80
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.sol58.62%45%100%88.24%105–106, 30, 32–33, 33, 33, 33, 33, 33, 43, 47, 47, 55, 60–61, 61, 70, 76–77, 77, 90–91, 99
   VersionLib.sol97.06%86.36%100%99.02%189, 373, 386–387
packages/perennial/contracts/types
   Checkpoint.sol74.07%50%100%100%54–60
   Global.sol77.42%50%100%100%119–132
   Local.sol83.33%50%100%100%95–99
   MarketParameter.sol79.31%50%100%93.33%107–108, 92, 94–95, 97
   OracleVersion.sol100%100%100%100%
   Order.sol86.54%62.50%100%100%131, 137, 151, 151, 173–174, 361–366, 437–439, 465–470
   Position.sol86.60%61.11%90%93.88%110, 147, 200, 213, 293, 325–327, 376, 396
   ProtocolParameter.sol74.19%50%100%100%65–66, 72–77
   RiskParameter.sol71.88%50%100%100%132, 138, 140, 146, 148, 150, 152, 154, 156, 159, 169–176
   Version.sol69.77%50%100%100%111–136

Copy link

[Vault] Integration Test Coverage Report

Coverage after merging arjun/cryptex into main will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-vault/contracts
   Vault.sol98.79%96.05%100%100%224, 304, 461
   VaultFactory.sol89.47%50%100%100%34, 47
packages/perennial-vault/contracts/interfaces
   IVault.sol100%100%100%100%
   IVaultFactory.sol100%100%100%100%
packages/perennial-vault/contracts/lib
   StrategyLib.sol98.18%90%100%100%137
packages/perennial-vault/contracts/types
   Account.sol82.86%50%100%100%127–132
   Checkpoint.sol88.78%71.05%100%100%219–229
   Registration.sol81.82%50%100%100%42–43
   VaultParameter.sol87.50%50%100%100%32

Copy link

[Core] Unit Test Coverage Report

Coverage after merging arjun/cryptex into main will be
98.02%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts
   Market.sol91.88%86.96%89.74%94.71%138, 227, 227–228, 230, 230, 230–231, 231, 231, 233, 235–236, 253, 309, 315, 508, 522–523, 525, 96, 96
   MarketFactory.sol94.44%100%87.50%93.75%45
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.sol98.28%97.50%100%100%33
   VersionLib.sol100%100%100%100%
packages/perennial/contracts/types
   Checkpoint.sol100%100%100%100%
   Global.sol96.77%92.86%100%100%126, 128
   Local.sol100%100%100%100%
   MarketParameter.sol100%100%100%100%
   OracleVersion.sol100%100%100%100%
   Order.sol98.72%96.43%100%100%173, 364
   Position.sol97.94%100%96.67%97.96%213
   ProtocolParameter.sol100%100%100%100%
   RiskParameter.sol98.44%97.22%100%100%138
   Version.sol100%100%100%100%

Copy link

[Extensions] Integration Test Coverage Report

Coverage after merging arjun/cryptex into main will be
89.86%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial-extensions/contracts
   Coordinator.sol0%0%0%0%18, 23, 23–25, 30, 30–32, 38, 38, 38–40, 47, 47, 47–48
   MultiInvoker_Arbitrum.sol0%100%0%0%37, 45
   MultiInvoker_Optimism.sol0%100%0%0%37, 45
   MultiInvoker.sol98.10%94.74%100%100%183, 327, 341, 438
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%112–114, 53, 55–56

@arjun-io arjun-io merged commit 6553561 into main Sep 23, 2024
10 checks passed
@arjun-io arjun-io deleted the arjun/cryptex branch September 23, 2024 16:29
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.

2 participants