-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename deploy, extract and verify scripts
- Loading branch information
1 parent
109cb19
commit 0aa6c27
Showing
5 changed files
with
2,570 additions
and
2,596 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import { task } from 'hardhat/config' | ||
import { verifyMastercopies } from 'zodiac-core' | ||
import { verifyMastercopiesFromArtifact } from 'zodiac-core' | ||
|
||
const { ETHERSCAN_API_KEY } = process.env | ||
|
||
task( | ||
'mastercopy:verify', | ||
'Verifies all mastercopies from the artifacts file, in the block explorer corresponding to the current network' | ||
).setAction(async (_, hre) => { | ||
if (!ETHERSCAN_API_KEY) { | ||
throw new Error('Missing ENV ETHERSCAN_API_KEY') | ||
} | ||
|
||
await verifyMastercopies({ | ||
await verifyMastercopiesFromArtifact({ | ||
apiUrl: String((await hre.ethers.provider.getNetwork()).chainId), | ||
apiKey: ETHERSCAN_API_KEY, | ||
apiKey: ETHERSCAN_API_KEY as string, | ||
}) | ||
}) |