-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
49 lines (36 loc) · 1.61 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Deploy step
# npx hardhat run --network avaxfuji scripts/deployMulticall.ts
# npx hardhat verify --network avaxfuji
# npx hardhat run --network avaxfuji scripts/deployVintageWine.ts
# npx hardhat verify --network avaxfuji
# npx hardhat run --network avaxfuji scripts/deployVintner.ts
# npx hardhat verify --network avaxfuji (--constructor_args: coupenPublic, oracleAddress, BASE_URI)
# npx hardhat run --network avaxfuji scripts/deployUpgrade.ts
# npx hardhat verify --network avaxfuji (--constructor_args: vintageWindAddress, grapeTokenAddress, BASE_URI_UPGRADE)
# npx hardhat run --network avaxfuji scripts/deployCellar.ts
# npx hardhat verify --network avaxfuji (--constructor_args: vintageWindAddress)
# npx hardhat run --network avaxfuji scripts/deployWineryProgression.ts
# npx hardhat verify --network avaxfuji (--constructor_args: grapeTokenAddress)
# npx hardhat run --network avaxfuji scripts/deployWinery.ts
# Go to scan and get proxy contract address
# npx hardhat verify --network avaxfuji (--address: proxy address)
# Update winery contract
# npx hardhat run --network avaxfuji scripts/upgradeWinery.ts
# npx hardhat run --network avaxfuji scripts/deployVintageWineFountain.ts
# npx hardhat verify --network avaxfuji
# // Deploy ALl
# npx hardhat run --network avaxfuji scripts/deployAll.ts
echo "DEPLOY"
echo ""
rm -rf cache && rm -rf artifacts
CMD="npx hardhat run --network avaxfuji scripts/deployVintageWine.ts"
echo "CMD: $CMD"
output=`eval $CMD`
echo "output: $output"
echo ""
echo "VERIFY"
echo ""
CMD2="npx hardhat verify --network avaxfuji $output"
echo "CMD2: $CMD2"
output2=`eval $CMD2`
echo "output2: $output2"