VenusProtocol / venus-protocol

BNB Smart Chain Venus Protocol
BSD 3-Clause "New" or "Revised" License
255 stars 169 forks source link

Fix deployment scripts #450

Closed coreyar closed 7 months ago

coreyar commented 8 months ago

Description

Modifies the deployment scripts so that they can be run locally on hardhat.

These deployment scripts don't correctly deploy markets and the comptroller. They are meant to be used locally only. I added skips for the scripts that are not production ready

web3rover commented 7 months ago

deployments.get doesn't seem to be working. For example I get this error: Error: No deployment found for: AccessControlManager

coreyar commented 7 months ago

deployments.get doesn't seem to be working. For example I get this error: Error: No deployment found for: AccessControlManager

How are you seeing this error? I can yarn hardhat deploy and didn't see any issues

web3rover commented 7 months ago

deployments.get doesn't seem to be working. For example I get this error: Error: No deployment found for: AccessControlManager

How are you seeing this error? I can yarn hardhat deploy and didn't see any issues

@coreyar This errors happens during live network deployment.

github-actions[bot] commented 7 months ago

Code Coverage

Package Line Rate Branch Rate Health
contracts 100% 100%
contracts.Admin 88% 41%
contracts.Comptroller 100% 90%
contracts.Comptroller.Diamond 95% 59%
contracts.Comptroller.Diamond.facets 75% 65%
contracts.Comptroller.Diamond.interfaces 100% 100%
contracts.DelegateBorrowers 100% 89%
contracts.Governance 33% 20%
contracts.InterestRateModels 47% 67%
contracts.Lens 45% 37%
contracts.Liquidator 83% 60%
contracts.Oracle 100% 100%
contracts.PegStability 88% 84%
contracts.Swap 90% 58%
contracts.Swap.interfaces 100% 100%
contracts.Swap.lib 81% 55%
contracts.Tokens 100% 100%
contracts.Tokens.Prime 96% 72%
contracts.Tokens.Prime.Interfaces 100% 100%
contracts.Tokens.Prime.libs 90% 76%
contracts.Tokens.VAI 71% 46%
contracts.Tokens.VRT 20% 9%
contracts.Tokens.VTokens 64% 47%
contracts.Tokens.XVS 19% 8%
contracts.Utils 50% 30%
contracts.VAIVault 50% 45%
contracts.VRTVault 49% 36%
contracts.XVSVault 64% 50%
contracts.lib 75% 25%
Summary 69% (3171 / 4628) 49% (1180 / 2416)