File tree Expand file tree Collapse file tree 5 files changed +2570
-2596
lines changed Expand file tree Collapse file tree 5 files changed +2570
-2596
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11
11
"test" : " hardhat test" ,
12
12
"coverage" : " hardhat coverage" ,
13
13
"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" ,
17
17
"prepack" : " yarn run clean && yarn run build" ,
18
18
"prepare" : " yarn run clean && yarn run build" ,
19
19
"lint" : " yarn lint:sol && yarn lint:ts" ,
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import { Signer } from 'ethers'
2
2
import { task } from 'hardhat/config'
3
3
import { EthereumProvider } from 'hardhat/types'
4
4
5
- import { EIP1193Provider , deployMastercopies } from 'zodiac-core'
5
+ import { EIP1193Provider , deployMastercopiesFromArtifact } from 'zodiac-core'
6
6
7
7
task (
8
8
'mastercopy:deploy' ,
9
9
'For every version entry on the artifacts file, deploys a mastercopy into the current network'
10
10
) . setAction ( async ( _ , hre ) => {
11
11
const [ signer ] = await hre . ethers . getSigners ( )
12
- await deployMastercopies ( {
12
+ await deployMastercopiesFromArtifact ( {
13
13
provider : createEIP1193 ( hre . network . provider , signer ) ,
14
14
} )
15
15
} )
Original file line number Diff line number Diff line change 1
1
import { task } from 'hardhat/config'
2
2
3
- import { extractMastercopy } from 'zodiac-core'
3
+ import { storeMastercopyArtifact } from 'zodiac-core'
4
4
5
5
import packageJson from '../package.json'
6
6
17
17
sourceName : contractSource ,
18
18
} )
19
19
20
- extractMastercopy ( {
20
+ storeMastercopyArtifact ( {
21
21
contractVersion,
22
22
contractName,
23
23
compilerInput,
Original file line number Diff line number Diff line change 1
1
import { task } from 'hardhat/config'
2
- import { verifyMastercopies } from 'zodiac-core'
2
+ import { verifyMastercopiesFromArtifact } from 'zodiac-core'
3
3
4
4
const { ETHERSCAN_API_KEY } = process . env
5
5
6
6
task (
7
7
'mastercopy:verify' ,
8
8
'Verifies all mastercopies from the artifacts file, in the block explorer corresponding to the current network'
9
9
) . 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 ( {
15
11
apiUrl : String ( ( await hre . ethers . provider . getNetwork ( ) ) . chainId ) ,
16
- apiKey : ETHERSCAN_API_KEY ,
12
+ apiKey : ETHERSCAN_API_KEY as string ,
17
13
} )
18
14
} )
You can’t perform that action at this time.
0 commit comments