-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
95 lines (79 loc) · 2.36 KB
/
Taskfile.yaml
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
version: '3'
tasks:
hello:
desc: "Hello World from Task!"
cmds:
- echo 'Hello World from Task!'
silent: true
compile-contracts:
desc: "Compile the Solidity contracts"
cmds:
- npx hardhat compile
silent: true
reset:
desc: "Completely reset the NodeJS Hardhat environment"
cmds:
- npm run reset
silent: true
test:
desc: "Run the development tests using a temporary Hardhat node"
cmds:
- npx hardhat test
silent: true
show-example-script-commands:
desc: "Show the example script commands"
cmds:
- cat example-script-commands.txt
silent: true
check-formatting:
desc: "Check the formatting of the Typescript code"
cmds:
- npx prettier --config .prettierrc './**/*.ts' --check
silent: true
fix-formatting:
desc: "Reformat the Typescript code"
cmds:
- npx prettier --config .prettierrc './**/*.ts' --write
silent: true
lint:
desc: "Lint the Typescript code"
cmds:
- npx eslint './**/*.ts'
silent: true
start-local-node:
desc: "Start a local Hardhat node"
cmds:
- npx hardhat node
silent: true
check-network-connections:
desc: "Check the connections to the various Ethereum networks"
cmds:
- npm run --silent ts-node scripts/check-network-connections.ts
silent: true
deploy-local:
desc: "Deploy the HelloWorld contract to a Hardhat node running locally"
cmds:
- npm run --silent ts-node scripts/hello-world-deploy.ts --network local
silent: true
deploy-testnet:
desc: "Deploy the HelloWorld contract to the Sepolia testnet"
cmds:
- npm run --silent ts-node scripts/hello-world-deploy.js --network sepolia
silent: true
prompt: This command will spend testnet Ethereum (SepoliaETH) - Do you want to continue?
deploy-mainnet:
desc: "Deploy the HelloWorld contract to the Ethereum mainnet"
cmds:
- npm run --silent ts-node scripts/hello-world-deploy.js --network mainnet
silent: true
prompt: This command will spend Ethereum (ETH) - Do you want to continue?
hello-world-get-message:
internal: true
cmds:
- npm run --silent ts-node scripts/hello-world-get-message.js {{.CLI_ARGS}}
silent: true
get-message:
desc: "Get the message from the HelloWorld contract"
cmds:
- task: hello-world-get-message
silent: true