-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 3.98 KB
/
package.json
File metadata and controls
136 lines (136 loc) · 3.98 KB
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
{
"name": "wn",
"publisher": "walnut",
"displayName": "Soldb Debugger",
"version": "0.0.1-rc.1",
"icon": "assets/walnut_logo-PNG-blue_bg_icon.png",
"engines": {
"vscode": "^1.85.0"
},
"activationEvents": [
"onLanguage:solidity",
"onDebug"
],
"main": "./out/extension.js",
"contributes": {
"debuggers": [
{
"type": "soldb",
"label": "Soldb",
"languages": [
"solidity"
],
"configurationAttributes": {
"launch": {
"properties": {
"rpc": {
"type": "string",
"description": "RPC URL for connecting to the blockchain",
"default": "http://localhost:8545"
},
"block": {
"type": "string",
"description": "Block number or 'latest'. Used when debugging specific transactions."
},
"function": {
"type": "string",
"description": "Function signature, e.g., 'processOrder(uint256,string,string)'. When provided with functionArgs, enables simulation mode."
},
"functionArgs": {
"type": "array",
"description": "Array of function arguments as strings, e.g., ['100', 'physical', 'express']."
},
"contractAddress": {
"type": "string",
"description": "Contract address (0x...). Required for simulation mode."
},
"from_addr": {
"type": "string",
"description": "Sender address (0x...). Default sender will be used if not specified."
},
"contracts": {
"type": "string",
"description": "Path to contracts.json file for multi-contract debugging. The extension will auto-detect out/contracts.json if this is not specified."
},
"ethdebugDir": {
"type": "string",
"description": "Path to ethdebug directory for single contract debugging. Can be a path or 'address:name:path' format."
},
"source": {
"type": "string",
"description": "Source file path. Auto-detected from the active editor if not specified."
},
"workspaceRoot": {
"type": "string",
"description": "Workspace root directory. Auto-detected from the workspace folder if not specified."
}
}
}
},
"initialConfigurations": [],
"configurationSnippets": [],
"breakpoints": [
{
"language": "solidity"
}
]
}
],
"commands": [
{
"command": "soldb.debugTransaction",
"title": "Debug Transaction",
"category": "Soldb",
"icon": "$(debug-start)"
},
{
"command": "soldb.toggleBreakpoint",
"title": "Toggle Breakpoint",
"category": "Soldb",
"icon": "$(debug-breakpoint)"
}
],
"menus": {
"view/item/context": [
{
"command": "soldb.debugTransaction",
"when": "view == soldb.customDebugView && viewItem == transaction",
"group": "inline"
}
],
"commandPalette": [
{
"command": "soldb.debugTransaction",
"when": "debugType == 'soldb'"
}
],
"editor/context": [
{
"command": "soldb.toggleBreakpoint",
"when": "editorLangId == solidity",
"group": "debug"
}
]
},
"views": {
"debug": [
{
"id": "soldb.customDebugView",
"name": "Transactions",
"when": "true"
}
]
}
},
"scripts": {
"build": "tsc -p ./"
},
"devDependencies": {
"@types/vscode": "^1.85.0",
"typescript": "^5.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/walnuthq/vscode-soldb"
}
}