@@ -45,37 +45,43 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
4545 await deploy ( "RateController" , {
4646 from : deployer ,
4747 args : [ futureEngineAddress , futureStakingAddress ] ,
48+ log : true ,
4849 } ) ;
4950 const rateController = await hre . ethers . getContract < Contract > ( "RateController" , deployer ) ;
5051
5152 await deploy ( "MyUSD" , {
5253 from : deployer ,
5354 args : [ futureEngineAddress , futureStakingAddress ] ,
55+ log : true ,
5456 } ) ;
5557 const stablecoin = await hre . ethers . getContract < Contract > ( "MyUSD" , deployer ) ;
5658
5759 await deploy ( "DEX" , {
5860 from : deployer ,
5961 args : [ stablecoin . target ] ,
62+ log : true ,
6063 } ) ;
6164 const DEX = await hre . ethers . getContract < Contract > ( "DEX" , deployer ) ;
6265
6366 await deploy ( "Oracle" , {
6467 from : deployer ,
6568 args : [ DEX . target , ethPrice ] ,
69+ log : true ,
6670 } ) ;
6771 const oracle = await hre . ethers . getContract < Contract > ( "Oracle" , deployer ) ;
6872
6973 await deploy ( "MyUSDStaking" , {
7074 from : deployer ,
7175 args : [ stablecoin . target , futureEngineAddress , rateController . target ] ,
76+ log : true ,
7277 } ) ;
7378 const staking = await hre . ethers . getContract < Contract > ( "MyUSDStaking" , deployer ) ;
7479
7580 // Finally deploy the engine at the predicted address
7681 await deploy ( "MyUSDEngine" , {
7782 from : deployer ,
7883 args : [ oracle . target , stablecoin . target , staking . target , rateController . target ] ,
84+ log : true ,
7985 } ) ;
8086 const engine = await hre . ethers . getContract < Contract > ( "MyUSDEngine" , deployer ) ;
8187
@@ -121,7 +127,3 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
121127} ;
122128
123129export default deployContracts ;
124-
125- // Tags are useful if you have multiple deploy files and only want to run one of them.
126- // e.g. yarn deploy --tags YourContract
127- // deployYourContract.tags = ["YourContract"];
0 commit comments