|
2 | 2 | "version": "2.0.0",
|
3 | 3 | "tasks": [
|
4 | 4 | {
|
5 |
| - "label": "build", |
| 5 | + "label": "Foundry - Build", |
6 | 6 | "type": "shell",
|
7 |
| - "command": "make build", |
| 7 | + "command": "btp-scs foundry build", |
8 | 8 | "group": {
|
9 | 9 | "kind": "build",
|
10 | 10 | "isDefault": true
|
11 | 11 | },
|
12 | 12 | "problemMatcher": []
|
13 | 13 | },
|
14 | 14 | {
|
15 |
| - "label": "test", |
| 15 | + "label": "Hardhat - Build", |
16 | 16 | "type": "shell",
|
17 |
| - "command": "make test", |
18 |
| - "group": "test", |
| 17 | + "command": "btp-scs hardhat build", |
| 18 | + "group": { |
| 19 | + "kind": "build", |
| 20 | + "isDefault": false |
| 21 | + }, |
19 | 22 | "problemMatcher": []
|
20 | 23 | },
|
21 | 24 | {
|
22 |
| - "label": "format", |
| 25 | + "label": "Foundry - Test", |
23 | 26 | "type": "shell",
|
24 |
| - "command": "make format", |
| 27 | + "command": "btp-scs foundry test", |
| 28 | + "group": "test", |
25 | 29 | "problemMatcher": []
|
26 | 30 | },
|
27 | 31 | {
|
28 |
| - "label": "snapshot", |
| 32 | + "label": "Hardhat - Test", |
29 | 33 | "type": "shell",
|
30 |
| - "command": "make snapshot", |
| 34 | + "command": "btp-scs hardhat test", |
| 35 | + "group": "test", |
31 | 36 | "problemMatcher": []
|
32 | 37 | },
|
33 | 38 | {
|
34 |
| - "label": "anvil", |
| 39 | + "label": "Foundry - Format", |
35 | 40 | "type": "shell",
|
36 |
| - "command": "make anvil", |
| 41 | + "command": "btp-scs foundry format", |
37 | 42 | "problemMatcher": []
|
38 | 43 | },
|
39 | 44 | {
|
40 |
| - "label": "deploy-anvil", |
| 45 | + "label": "Foundry - Start network", |
41 | 46 | "type": "shell",
|
42 |
| - "command": "make deploy-anvil", |
43 |
| - "problemMatcher": [] |
| 47 | + "command": "btp-scs foundry network", |
| 48 | + "problemMatcher": [], |
| 49 | + "isBackground": true |
44 | 50 | },
|
45 | 51 | {
|
46 |
| - "label": "deploy-btp", |
| 52 | + "label": "Hardhat - Start network", |
47 | 53 | "type": "shell",
|
48 |
| - "command": "EXTRA_ARGS=\"${input:extra-deployment-verify} ${input:extra-deployment-other}\" make deploy-btp", |
49 |
| - "problemMatcher": [] |
| 54 | + "command": "btp-scs hardhat network", |
| 55 | + "problemMatcher": [], |
| 56 | + "isBackground": true, |
50 | 57 | },
|
51 | 58 | {
|
52 |
| - "label": "script-anvil", |
| 59 | + "label": "Hardhat - Deploy to local network", |
53 | 60 | "type": "shell",
|
54 |
| - "command": "EXTRA_ARGS=\"${input:extra-script-broadcast} ${input:extra-script-other}\" make script-anvil", |
| 61 | + "command": "btp-scs hardhat deploy local -m ${input:deployment-module}", |
55 | 62 | "problemMatcher": []
|
56 | 63 | },
|
57 | 64 | {
|
58 |
| - "label": "script", |
| 65 | + "label": "Hardhat - Deploy to platform network", |
59 | 66 | "type": "shell",
|
60 |
| - "command": "EXTRA_ARGS=\"${input:extra-script-broadcast} ${input:extra-script-other}\" make script", |
| 67 | + "command": "btp-scs hardhat deploy remote -m ${input:deployment-module}", |
61 | 68 | "problemMatcher": []
|
62 | 69 | },
|
63 | 70 | {
|
64 |
| - "label": "help", |
| 71 | + "label": "The Graph - Deploy or update the subgraph", |
65 | 72 | "type": "shell",
|
66 |
| - "command": "make help", |
| 73 | + "command": "btp-scs subgraph deploy", |
67 | 74 | "problemMatcher": []
|
68 | 75 | }
|
69 | 76 | ],
|
70 | 77 | "inputs": [
|
71 | 78 | {
|
72 |
| - "id": "extra-deployment-verify", |
73 |
| - "description": "Extra deployment options?", |
74 |
| - "default": "", |
75 |
| - "type": "pickString", |
76 |
| - "options": [ |
77 |
| - "", |
78 |
| - "--verify --verifier sourcify", |
79 |
| - "--verify --verifier etherscan --etherscan-api-key ${ETHERSCAN_API_KEY}" |
80 |
| - ] |
81 |
| - }, |
82 |
| - { |
83 |
| - "id": "extra-deployment-other", |
84 |
| - "description": "Other extra deployment options?", |
85 |
| - "default": "", |
86 |
| - "type": "promptString" |
87 |
| - }, |
88 |
| - { |
89 |
| - "id": "extra-script-broadcast", |
90 |
| - "description": "Broadcast?", |
91 |
| - "default": "", |
92 |
| - "type": "pickString", |
93 |
| - "options": ["", "--broadcast"] |
94 |
| - }, |
95 |
| - { |
96 |
| - "id": "extra-script-other", |
97 |
| - "description": "Other extra script options?", |
98 |
| - "default": "", |
99 |
| - "type": "promptString" |
| 79 | + "id": "deployment-module", |
| 80 | + "description": "Hardhat Ignition Module", |
| 81 | + "type": "promptString", |
| 82 | + "default": "ignition/modules/Counter.ts" |
100 | 83 | }
|
101 | 84 | ]
|
102 | 85 | }
|
0 commit comments