forked from Consensys/vscode-solidity-auditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
557 lines (557 loc) · 19.5 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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
{
"name": "solidity-visual-auditor",
"displayName": "Solidity Visual Developer",
"description": "Ethereum Solidity Language customized for developers and auditors using Visual Studio Code",
"keywords": [
"solidity",
"ethereum",
"blockchain",
"security",
"audit",
"review",
"developer",
"solidity security",
"solidity audit"
],
"version": "0.2.0",
"publisher": "tintinweb",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.26.2"
},
"categories": [
"Programming Languages"
],
"bugs": {
"url": "https://github.com/tintinweb/vscode-solidity-auditor/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/tintinweb/vscode-solidity-auditor"
},
"activationEvents": [
"onLanguage:solidity",
"onCommand:solidity-va.whatsNew.show",
"onCommand:solidity-va.surya.graph",
"onCommand:solidity-va.surya.inheritance",
"onCommand:solidity-va.insights.topLevelContracts",
"onCommand:solidity-va.tools.flaterra",
"onCommand:solidity-va.cockpit.explorer.context.flatten",
"onCommand:solidity-va.tools.flattenCandidates",
"onCommand:solidity-va.tools.function.signatures",
"onCommand:solidity-va.tools.function.signatures.json",
"onCommand:solidity-va.tools.function.signatures.forWorkspace",
"onCommand:solidity-va.tools.function.signatures.forWorkspace.json",
"onCommand:solidity-va.tools.remix.openExternal",
"onCommand:solidity-va.cockpit.explorer.refresh",
"onCommand:solidity-va.cockpit.topLevelContracts.refresh",
"onCommand:solidity-va.cockpit.settings.toggle",
"onCommand:solidity-va.etherscan.getSource",
"onView:solidity-va-cockpit",
"onView:solidity-va-cockpit-explorer",
"onView:solidity-va-cockpit-topLevelContracts",
"onView:solidity-va-cockpit-flatFiles",
"onView:solidity-va-cockpit-settings",
"onView:solidity-va-cockpit-ftrace",
"onView:solidity-va-cockpit-publicMethods",
"onView:solidity-va-cockpit-externalCalls"
],
"main": "./src/extension",
"capabilities": {
"hoverProvider": "true"
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "solidity-va-cockpit",
"title": "Solidity Visual Developer",
"icon": "images/glass3.png"
}
]
},
"views": {
"solidity-va-cockpit": [
{
"id": "solidity-va-cockpit-explorer",
"name": "Workspace: Explorer"
},
{
"id": "solidity-va-cockpit-topLevelContracts",
"name": "Workspace: Top Level Contracts"
},
{
"id": "solidity-va-cockpit-flatFiles",
"name": "Workspace: */flat_* Files"
},
{
"id": "solidity-va-cockpit-publicMethods",
"name": "Context: Public State-Changing Methods"
},
{
"id": "solidity-va-cockpit-externalCalls",
"name": "Context: External Calls"
},
{
"id": "solidity-va-cockpit-ftrace",
"name": "Context: Function Call Trace"
},
{
"id": "solidity-va-cockpit-settings",
"name": "Settings"
}
]
},
"menus": {
"view/title": [
{
"command": "solidity-va.cockpit.explorer.refresh",
"when": "view == solidity-va-cockpit-explorer",
"group": "navigation"
},
{
"command": "solidity-va.cockpit.topLevelContracts.refresh",
"when": "view == solidity-va-cockpit-topLevelContracts",
"group": "navigation"
},
{
"command": "solidity-va.cockpit.topLevelContracts.flatten",
"when": "view == solidity-va-cockpit-topLevelContracts",
"group": "navigation"
},
{
"command": "solidity-va.cockpit.flatFiles.refresh",
"when": "view == solidity-va-cockpit-flatFiles",
"group": "navigation"
}
],
"view/item/context": [
{
"group": "solidity",
"command": "solidity-va.cockpit.topLevelContracts.refresh",
"when": "view == solidity-va-cockpit-explorer && viewItem =~ /^((?!\\.sol).)*$/"
},
{
"group": "solidity",
"command": "solidity-va.cockpit.explorer.context.flatten",
"when": "view == solidity-va-cockpit-explorer && viewItem =~ /\\.sol/ || view == solidity-va-cockpit-topLevelContracts"
},
{
"group": "solidity",
"command": "solidity-va.surya.mdreport",
"when": "view == solidity-va-cockpit-explorer || view == solidity-va-cockpit-topLevelContracts || view == solidity-va-cockpit-flatFiles"
},
{
"group": "solidity",
"command": "solidity-va.surya.graph",
"when": "view == solidity-va-cockpit-explorer || view == solidity-va-cockpit-topLevelContracts || view == solidity-va-cockpit-flatFiles"
},
{
"group": "solidity",
"command": "solidity-va.surya.graphSimple",
"when": "view == solidity-va-cockpit-explorer || view == solidity-va-cockpit-topLevelContracts || view == solidity-va-cockpit-flatFiles"
},
{
"group": "solidity",
"command": "solidity-va.surya.inheritance",
"when": "view == solidity-va-cockpit-explorer || view == solidity-va-cockpit-topLevelContracts || view == solidity-va-cockpit-flatFiles"
}
]
},
"commands": [
{
"command": "solidity-va.test.createTemplate",
"title": "Unittest - create stub for current contract",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.mdreport",
"title": "Surya - generate report",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.describe",
"title": "Surya - describe",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.graph",
"title": "Surya - call graph",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.graphThis",
"title": "Surya - call graph for active editor (graph this)",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.graphSimple",
"title": "Surya - contract interaction graph",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.surya.inheritance",
"title": "Surya - show inheritance graph",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.insights.topLevelContracts",
"title": "Tools - list suggested top level / entry point contracts",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.flaterra",
"title": "Tools - flatten current file",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.cockpit.explorer.context.flatten",
"title": "Solidity - Flatten Selected File(s)",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.cockpit.topLevelContracts.flatten",
"title": "Flatten",
"category": "Solidity Visual Developer",
"icon": {
"light": "images/cmd-flatten.svg",
"dark": "images/cmd-flatten.svg"
}
},
{
"command": "solidity-va.tools.flattenCandidates",
"title": "Tools - flatten all suggested top level contracts",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.function.signatures",
"title": "Tools - list function signatures",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.function.signatures.json",
"title": "Tools - list function signatures (json)",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.function.signatures.forWorkspace",
"title": "Tools - list function signatures for all solidity files in workspace",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.function.signatures.forWorkspace.json",
"title": "Tools - list function signatures for all solidity files in workspace (json)",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.tools.remix.openExternal",
"title": "Tools - launch Remix-IDE",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.cockpit.explorer.refresh",
"title": "Scan Workspace",
"category": "Solidity Visual Developer",
"icon": {
"light": "images/refresh-light.svg",
"dark": "images/refresh-dark.svg"
}
},
{
"command": "solidity-va.cockpit.topLevelContracts.refresh",
"title": "Find Top Level Contracts",
"category": "Solidity Visual Developer",
"icon": {
"light": "images/refresh-light.svg",
"dark": "images/refresh-dark.svg"
}
},
{
"command": "solidity-va.cockpit.flatFiles.refresh",
"title": "Scan Workspace",
"category": "Solidity Visual Developer",
"icon": {
"light": "images/refresh-light.svg",
"dark": "images/refresh-dark.svg"
}
},
{
"command": "solidity-va.cockpit.settings.toggle",
"title": "Toggle Setting",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.whatsNew.show",
"title": "Extension - What's New",
"category": "Solidity Visual Developer"
},
{
"command": "solidity-va.etherscan.getSource",
"title": "EtherScan - get contract source for address",
"category": "Solidity Visual Developer"
}
],
"configuration": {
"type": "object",
"title": "Solidity Visual Developer configuration",
"properties": {
"solidity-va.hover": {
"type": "boolean",
"default": true,
"description": "Whether to enable/disable Solidity hover."
},
"solidity-va.deco.statevars": {
"type": "boolean",
"default": true,
"description": "Whether to enable/disable Solidity statevar decoration"
},
"solidity-va.deco.arguments": {
"type": "boolean",
"default": true,
"description": "Whether to enable/disable semantic highlighting for function arguments. (May require a reload)."
},
"solidity-va.deco.argumentsMode": {
"type": "string",
"enum": [
"color and symbol",
"color only",
"symbol only"
],
"default": "color and symbol",
"description": "Select the mode for semantic highlighting of function arguments. (May require a reload)."
},
"solidity-va.deco.argumentsSuffix": {
"type": "string",
"default": "⬆",
"description": "A custom Suffix/Symbol that is appended to the decoration when performing semantic highlighting for function arguments"
},
"solidity-va.deco.warn.reserved": {
"type": "boolean",
"default": true,
"description": "Enable/Disable warning decoration when overriding reserved names"
},
"solidity-va.deco.warn.externalCalls": {
"type": "boolean",
"default": true,
"description": "Enable/Disable gutter-icon decorations for lines performing external address calls"
},
"solidity-va.outline.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable outline / symbolprovider"
},
"solidity-va.outline.decorations": {
"type": "boolean",
"default": true,
"description": "Whether to enable/disable Function Mutability/Accessibility decoration in the outline view"
},
"solidity-va.outline.inheritance.show": {
"type": "boolean",
"default": true,
"description": "Whether to show/hide inherited names in the outline view"
},
"solidity-va.outline.extras": {
"type": "boolean",
"default": true,
"description": "Whether to show/hide extras (complexity, state var access) for functions in the outline view"
},
"solidity-va.outline.var.storage_annotations": {
"type": "boolean",
"default": true,
"description": "Whether to show/hide storage annotations for variables in the outline view"
},
"solidity-va.outline.pragmas.show": {
"type": "boolean",
"default": true,
"description": "Whether to show/hide pragmas in the outline view"
},
"solidity-va.outline.imports.show": {
"type": "boolean",
"default": true,
"description": "Whether to show/hide imports in the outline view"
},
"solidity-va.overviewruler.decorations.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable decorations in the overview ruler (requires reload)"
},
"solidity-va.parser.parseImports": {
"type": "boolean",
"default": true,
"description": "Whether to recursively parse imports or not"
},
"solidity-va.diagnostics.cdili_json.import": {
"type": "boolean",
"default": false,
"description": "Recursively search for CDILI format *-issues.json from external scanners and visualize findings as diagnostics in vscode"
},
"solidity-va.tools.surya.input.contracts": {
"type": "string",
"enum": [
"cached",
"workspace"
],
"default": "cached",
"description": "Define whether surya should take cached files or all contracts in the workspace as input"
},
"solidity-va.tools.surya.option.negModifiers": {
"type": "boolean",
"default": false,
"description": "Surya.mdreport: Also list modifiers that are not present ( ~~strikedthrough~~). This may help catch issues relating to missing modifiers."
},
"solidity-va.preview.dot": {
"type": "boolean",
"default": true,
"description": "Open dot output in graphviz rendered form (relies on a graphviz preview extension to be installed)"
},
"solidity-va.preview.markdown": {
"type": "boolean",
"default": false,
"description": "Open markdown output in rendered form (relies on a markdown preview extension to be installed)"
},
"solidity-va.codelens.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable all codelenses - inline action (master switch)"
},
"solidity-va.codelens.report.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'report'"
},
"solidity-va.codelens.graph.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'graph'"
},
"solidity-va.codelens.graphThis.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'graphThis'"
},
"solidity-va.codelens.inheritance.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'inheritance'"
},
"solidity-va.codelens.parse.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'parse'"
},
"solidity-va.codelens.flatten.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'report'"
},
"solidity-va.codelens.funcSigs.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'funcSigs'"
},
"solidity-va.codelens.uml.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'uml'"
},
"solidity-va.codelens.unittestStub.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'UnitTest Stub'"
},
"solidity-va.codelens.dependencies.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'report'"
},
"solidity-va.codelens.ftrace.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'ftrace'"
},
"solidity-va.codelens.drawio.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable codelens 'draw.io' uml export"
},
"solidity-va.findAllReferences.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable right-click -> Find All References. Note: This allows you to disable the built-in reference provider in favor of one of another extension. Takes effect after restart."
},
"solidity-va.mode.active": {
"type": "boolean",
"default": true,
"description": "Enable/Disable all active components of this extension (emergency)."
},
"solidity-va.uml.options": {
"type": "text",
"default": "",
"description": "Add custom uml options"
},
"solidity-va.uml.actors.enable": {
"type": "boolean",
"default": false,
"description": "Enable/Disable actors in uml"
},
"solidity-va.cockpit.view.topLevelContracts.listStyle": {
"type": "string",
"enum": [
"flat",
"tree"
],
"default": "flat",
"description": "Select TopLevelContracts view list style."
},
"solidity-va.whatsNew.disabled": {
"type": "boolean",
"default": false,
"description": "Enable/Disable update notifications"
},
"solidity-va.test.defaultUnittestTemplate": {
"type": "string",
"enum": [
"hardhat",
"truffle"
],
"default": "truffle",
"description": "Select which default template to use when creating a unitTest stub (e.g. truffle, hardhat)"
},
"solidity-va.debug.parser.showExceptions": {
"type": "boolean",
"default": false,
"description": "Enable/Disable printing parser error / stacktraces to console log (noisy)"
},
"solidity-va.flatten.mode": {
"type": "string",
"enum": [
"internal (lexical)",
"truffle"
],
"default": "default",
"description": "Select which flattener to use (e.g. default=lexical flattener, truffle=truffle-flattener)"
}
}
}
},
"extensionDependencies": [
"tintinweb.vscode-solidity-language",
"tintinweb.graphviz-interactive-preview"
],
"extensionPack": [
"tintinweb.vscode-solidity-flattener",
"jebbs.plantuml",
"tintinweb.vscode-inline-bookmarks",
"tintinweb.vscode-ethover"
],
"scripts": {
"format": "prettier --write ."
},
"dependencies": {
"solidity-workspace": "^0.2.1",
"surya": "^0.4.6"
},
"devDependencies": {
"prettier": "^3.0.3"
}
}