-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
103 lines (86 loc) · 2.4 KB
/
Taskfile.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3'
env:
ENV: local
dotenv: ['.env', '.env.{{.ENV}}']
tasks:
default:
cmds:
- task --list-all
anvil:
cmds:
- anvil --block-time 10
contracts-build:
dir: contracts
cmds:
- forge fmt
- forge build
contracts-deploy:
- task: fundme-deploy
- task: cryptozombies-deploy
contracts-test:
dir: contracts
cmds:
- forge test -vvv --gas-report
contracts-gas:
dir: contracts
cmds:
- forge snapshot
fundme-test:
dir: contracts
cmds:
- forge test --match-path *fundme.*.sol -vvv --gas-report --fork-url {{.RPC_URL}}
fundme-deploy:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--broadcast
--password-file "../.password"
DeployFundMe
cryptozombies-deploy:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--broadcast
--password-file "../.password"
DeployZombieOwnership
fundme-deploy-dryrun:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--password-file "../.password"
DeployFundMe
fundme-FundFundMe:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--broadcast
--password-file "../.password"
InteractionsFundMe.s.sol:FundFundMe
fundme-WithdrawFundMe:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--broadcast
--password-file "../.password"
InteractionsFundMe.s.sol:WithdrawFundMe
frontend-build:
dir: dapp
cmds:
- pnpm i
- pnpm run coverage
- pnpm run build
frontend-run:
dir: dapp
deps: [frontend-build]
cmds:
- pnpm run dev