Skip to content

Commit 0aa6c27

Browse files
committed
Rename deploy, extract and verify scripts
1 parent 109cb19 commit 0aa6c27

File tree

5 files changed

+2570
-2596
lines changed

5 files changed

+2570
-2596
lines changed

mastercopies.json

Lines changed: 2560 additions & 2582 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"test": "hardhat test",
1212
"coverage": "hardhat coverage",
1313
"deploy": "yarn hardhat deploy",
14-
"mastercopy:extract": "yarn run build && yarn hardhat mastercopy:extract",
15-
"mastercopy:deploy": "yarn hardhat mastercopy:deploy --network",
16-
"mastercopy:verify": "yarn hardhat mastercopy:verify --network",
14+
"extract-mastercopy": "yarn run build && yarn hardhat mastercopy:extract",
15+
"deploy-mastercopy": "yarn hardhat mastercopy:deploy --network",
16+
"verify-mastercopy": "yarn hardhat mastercopy:verify --network",
1717
"prepack": "yarn run clean && yarn run build",
1818
"prepare": "yarn run clean && yarn run build",
1919
"lint": "yarn lint:sol && yarn lint:ts",

tasks/mastercopy-deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { Signer } from 'ethers'
22
import { task } from 'hardhat/config'
33
import { EthereumProvider } from 'hardhat/types'
44

5-
import { EIP1193Provider, deployMastercopies } from 'zodiac-core'
5+
import { EIP1193Provider, deployMastercopiesFromArtifact } from 'zodiac-core'
66

77
task(
88
'mastercopy:deploy',
99
'For every version entry on the artifacts file, deploys a mastercopy into the current network'
1010
).setAction(async (_, hre) => {
1111
const [signer] = await hre.ethers.getSigners()
12-
await deployMastercopies({
12+
await deployMastercopiesFromArtifact({
1313
provider: createEIP1193(hre.network.provider, signer),
1414
})
1515
})

tasks/mastercopy-extract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { task } from 'hardhat/config'
22

3-
import { extractMastercopy } from 'zodiac-core'
3+
import { storeMastercopyArtifact } from 'zodiac-core'
44

55
import packageJson from '../package.json'
66

@@ -17,7 +17,7 @@ task(
1717
sourceName: contractSource,
1818
})
1919

20-
extractMastercopy({
20+
storeMastercopyArtifact({
2121
contractVersion,
2222
contractName,
2323
compilerInput,

tasks/mastercopy-verify.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import { task } from 'hardhat/config'
2-
import { verifyMastercopies } from 'zodiac-core'
2+
import { verifyMastercopiesFromArtifact } from 'zodiac-core'
33

44
const { ETHERSCAN_API_KEY } = process.env
55

66
task(
77
'mastercopy:verify',
88
'Verifies all mastercopies from the artifacts file, in the block explorer corresponding to the current network'
99
).setAction(async (_, hre) => {
10-
if (!ETHERSCAN_API_KEY) {
11-
throw new Error('Missing ENV ETHERSCAN_API_KEY')
12-
}
13-
14-
await verifyMastercopies({
10+
await verifyMastercopiesFromArtifact({
1511
apiUrl: String((await hre.ethers.provider.getNetwork()).chainId),
16-
apiKey: ETHERSCAN_API_KEY,
12+
apiKey: ETHERSCAN_API_KEY as string,
1713
})
1814
})

0 commit comments

Comments
 (0)