-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
260 lines (260 loc) · 9.07 KB
/
package.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
"name": "simbolik",
"displayName": "Simbolik: Solidity Debugger",
"repository": {
"type": "github",
"url": "https://github.com/runtimeverification/simbolik-vscode"
},
"author": {
"name": "Runtime Verification, Inc.",
"email": "contact@runtimeverification.com"
},
"publisher": "runtimeverification",
"description": "Advanced Solidity and EVM Debugger",
"version": "4.1.0",
"engines": {
"vscode": "^1.79.0"
},
"icon": "images/simbolik-icon-light.png",
"categories": [
"Debuggers",
"Programming Languages",
"Testing"
],
"activationEvents": [
"onDebug",
"onLanguage:solidity",
"onFileSystem:buildbear"
],
"main": "./build/extension.js",
"browser": "./build/extension.web.js",
"contributes": {
"languages": [
{
"id": "solidity",
"aliases": [
"solidity",
"Solidity"
],
"extensions": [
".sol"
]
}
],
"configuration": {
"title": "Simbolik: Solidity Debugger",
"properties": {
"simbolik.api-key": {
"type": "string",
"default": "valid-api-key",
"description": "The API key to authenticate with the simbolik server.",
"order": 0
},
"simbolik.server": {
"type": "string",
"default": "wss://beta.simbolik.runtimeverification.com",
"description": "The websocket URL where the simbolik server is listening. Do not change this unless you are running your own simbolik server.",
"order": 1
},
"simbolik.forge-path": {
"type": "string",
"default": "forge",
"description": "The path to the forge executable. Simbolik uses forge to compile the smart contracts. If forge is not in the PATH, you can set the path here.",
"order": 2
},
"simbolik.autobuild": {
"type": "boolean",
"default": true,
"description": "If set to true, the debugger will automatically build the project before starting the debugger.",
"order": 3
},
"simbolik.incremental-build": {
"type": "boolean",
"default": false,
"description": "If autobuild is enabled and incremental-build is set to true, the debugger will use incremental builds. Notice, that the support for incremental builds is experimental and sometimes leads to unexpected behavior.",
"order": 4
},
"simbolik.stop-at-first-opcode": {
"type": "boolean",
"description": "If set to true, the debugger will stop at the first opcode. Otherwise it will stop at the function entry. Disabling this option is experimental and may lead to unexpected behavior.",
"default": true,
"order": 5
},
"simbolik.enable-parameters": {
"type": "boolean",
"default": false,
"description": "If set to true, the debugger will show a debug button above functions with parameters. Notice, that this requires a backend that supports parameter debugging. The default Foundry backend does not support parameter debugging.",
"order": 6
},
"simbolik.show-sourcemaps": {
"type": "boolean",
"default": false,
"description": "If set to true, the debugger will include sourcemaps in the disassembly view. This is useful when debugging sourcemaps.",
"order": 7
},
"simbolik.auto-open-disassembly-view": {
"type": "boolean",
"description": "If set to true, the debugger will automatically open the disassembly view when starting a debugging session.",
"default": false,
"order": 8
},
"simbolik.json-rpc-url": {
"type": "string",
"default": "http://localhost:8545",
"description": "Attach requests use this URL as the JSON-RPC endpoint. Notice, that the JSON RPC server must be reachable from the simbolik server. `localhost` here refers to the machine where the simbolik server is running.",
"order": 9
},
"simbolik.sourcify-url": {
"type": "string",
"description": "Attach requests use this Sourcify endpoint to download the source code of the debugged transaction.",
"default": "http://localhost:5555",
"order": 10
}
}
},
"breakpoints": [
{
"language": "solidity"
}
],
"debuggers": [
{
"type": "solidity",
"label": "Solidity",
"configurationAttributes": {
"launch": {
"required": [
"file",
"contractName",
"methodSignature",
"jsonRpcUrl",
"clientMount"
],
"properties": {
"contractName": {
"type": "string",
"description": "The name of the contract to debug."
},
"methodSignature": {
"type": "string",
"description": "The signature of the method to debug."
},
"file": {
"type": "string",
"description": "The file containing the smart contract to debug."
},
"clientMount": {
"type": "string",
"description": "The absolute file system path to the project root."
},
"jsonRpcUrl": {
"type": "string",
"description": "The URL of the JSON-RPC server."
},
"stopAtFirstOpcode": {
"type": "boolean",
"description": "If set to true, the debugger will stop at the first opcode.",
"default": false
},
"showSourcemaps": {
"type": "boolean",
"description": "If set to true, the debugger will include sourcemaps in the disassembly view.",
"default": false
}
}
},
"attach": {
"required": [
"txHash",
"jsonRpcUrl",
"sourcifyUrl",
"clientMount"
],
"properties": {
"txHash": {
"type": "string",
"description": "The transaction hash to attach to."
},
"jsonRpcUrl": {
"type": "string",
"description": "The URL of the JSON-RPC server."
},
"sourcifyUrl": {
"type": "string",
"description": "The URL of the Sourcify server."
},
"stopAtFirstOpcode": {
"type": "boolean",
"description": "If set to true, the debugger will stop at the first opcode.",
"default": false
},
"showSourcemaps": {
"type": "boolean",
"description": "If set to true, the debugger will include sourcemaps in the disassembly view.",
"default": false
},
"clientMount": {
"type": "string",
"description": "The absolute file system path to the project root."
},
"chainId": {
"type": "number",
"description": "The chain ID of the network."
}
}
}
}
}
],
"resourceLabelFormatters": [
{
"authority": "*",
"scheme": "buildbear",
"formatting": {
"workspaceSuffix": "Simbolik",
"label": "${scheme}://${authority}${path}",
"separator": "/"
}
}
]
},
"scripts": {
"build": "npm run vscode:prepublish",
"vscode:prepublish": "npm run esbuild-base -- --minify && npm run esbuild-base-web -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=build/extension.js --external:vscode --format=cjs --platform=node",
"esbuild-base-web": "esbuild ./src/extension.web.ts --bundle --outfile=build/extension.web.js --external:vscode --format=cjs --platform=browser --target=es2020 --minify",
"esbuild": "npm run esbuild-base -- --sourcemap",
"compile": "tsc -p ./tsconfig.json",
"compile-web": "tsc -p ./tsconfig.web.json",
"pretest": "npm run compile && npm run lint",
"lint": "gts lint",
"test": "node ./out/test/runTest.js",
"clean": "gts clean",
"fix": "gts fix",
"posttest": "npm run lint"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.11.5",
"@types/vscode": "^1.79.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"esbuild": "^0.20.2",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"gts": "^5.3.0",
"mocha": "^10.2.0",
"process": "^0.11.10",
"ts-loader": "^9.5.1",
"typescript": "^5.2.0"
},
"dependencies": {
"@solidity-parser/parser": "^0.18.0",
"@types/ws": "^8.5.10",
"smol-toml": "^1.2.0",
"ws": "^8.16.0",
"vscode-uri": "^3.0.8"
}
}