Skip to content

Commit

Permalink
Rename some deployment tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Nov 2, 2023
1 parent 7e2d760 commit ad015e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'hardhat-gas-reporter'
import dotenv from 'dotenv'
import { HttpNetworkUserConfig } from 'hardhat/types'

import './tasks/deploy-instance'
import './tasks/deploy'
import './tasks/deploy-mastercopy'

dotenv.config()
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "hardhat compile",
"test": "hardhat test",
"coverage": "hardhat coverage",
"deploy": "yarn hardhat deploy:mastercopy --network",
"deploy": "yarn hardhat deploy",
"deploy:mastercopy": "yarn hardhat deploy:mastercopy --network",
"prepack": "yarn run clean && yarn run build",
"prepare": "yarn run clean && yarn run build",
"lint": "yarn lint:sol && yarn lint:ts",
Expand Down
6 changes: 5 additions & 1 deletion tasks/deploy-instance.ts → tasks/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { task, types } from 'hardhat/config'

task('deploy:instance', 'Deploys a Delay modifier')
task('deploy', 'Deploys a Delay modifier')
.addParam('owner', 'Address of the owner', undefined, types.string)
.addParam(
'avatar',
Expand Down Expand Up @@ -41,6 +41,10 @@ task('deploy:instance', 'Deploys a Delay modifier')

console.log(`\x1B[32m✔ Instance deployed to: ${address} 🎉\x1B[0m `)

if (hre.network.name == 'hardhat') {
return
}

console.log('Waiting 1 minute before etherscan verification start...')
// Etherscan needs some time to process before trying to verify.
await new Promise((resolve) => setTimeout(resolve, 60000))
Expand Down

0 comments on commit ad015e5

Please sign in to comment.