You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center">View source of deployed Ethereum smart contracts in VS Code</p>
5
-
<palign="center">While on Etherscan, change <code>.io</code> to <code>.deth.net</code> and browse contracts comfortably in ephemeral VS Code instance</p>
<palign="center"><strong>View source of deployed Ethereum smart contracts in VS Code</strong></p>
11
+
<palign="center">While on Etherscan, change <code>.io</code> to <code>.deth.net</code> and browse contracts comfortably in ephemeral VS Code instance</p>
12
12
<palign="center">
13
-
<strong>💸 Enjoy using Ethereum Code Viewer? Consider funding development via <a href="https://gitcoin.co/grants/4038/deth-typechain">GitCoin</a> 💸</strong>
13
+
<em>💸 Enjoy using DethCode? Consider funding development via <a href="https://gitcoin.co/grants/4038/deth-typechain">GitCoin</a> 💸</em>
14
14
</p>
15
15
</p>
16
16
17
17
## Usage
18
18
19
-
While browsing smart contract code on [Etherscan](https://etherscan.io/) just change URL from `.io` to `.deth.net`. This will open Visual Studio Code instance and fetch the verified code using Etherscan API.
19
+
While browsing smart contract code on [Etherscan](https://etherscan.io/) just
20
+
change URL from `.io` to `.deth.net`. This will open Visual Studio Code instance
Browsing contracts directly on etherscan sucks! Browsing multi-file contracts on etherscan sucks even more. Limited search, weird syntax highlighting, and many, many more. Finally, it's often impossible to just git clone repository and browse source code locally because it's hard to find the exact commit that matches onchain code.
45
+
Browsing contracts directly on etherscan sucks! Browsing multi-file contracts on
46
+
etherscan sucks even more. Limited search, weird syntax highlighting, and many,
47
+
many more. Finally, it's often impossible to just git clone repository and
48
+
browse source code locally because it's hard to find the exact commit that
49
+
matches onchain code.
40
50
41
-
Ethereum Code Viewer was born out of frustration, and it's here to fix all of these issues. In addition, it improves the experience by automatically following the implementation of proxies and so on.
51
+
DethCode was born out of frustration, and it's here to fix all of these issues.
52
+
In addition, it improves the experience by automatically following the
The repository contains two packages, `ethereum-viewer` extension and the VSCode compilation meant for hosting it online.
78
+
The repository contains two packages, `ethereum-viewer` extension and the VSCode
79
+
compilation meant for hosting it online.
55
80
56
-
All packages (currently one) except of `@dethcrypto/ethereum-viewer-vscode-host` located in `packages/vscode-host` are managed by `pnpm`.
57
-
As VSCode depends on Yarn, our `vscode-host` also needs Yarn.
81
+
All packages (currently one) except of `@dethcrypto/ethereum-viewer-vscode-host`
82
+
located in `packages/vscode-host` are managed by `pnpm`. As VSCode depends on
83
+
Yarn, our `vscode-host` also needs Yarn.
58
84
59
85
### Step by step instructions
60
86
@@ -79,20 +105,25 @@ pnpm serve
79
105
80
106
### Scripts
81
107
82
-
-**`pnpm install`** - Installs dependencies for the workspace, `ethereum-viewer` extension, and triggers `yarn install` for `vscode-host` through the `postinstall` script.
108
+
-**`pnpm install`** - Installs dependencies for the workspace,
109
+
`ethereum-viewer` extension, and triggers `yarn install` for `vscode-host`
110
+
through the `postinstall` script.
83
111
84
112
-**`pnpm build`** - Builds all packages.
85
113
86
114
-**`pnpm watch`** - Starts webpack for `ethereum-extension` in watch mode.
87
115
88
116
-**`pnpm serve`** - Starts HTTP server with `vscode-host`.
89
117
90
-
-**`pnpm dev`** - Copies `ethereum-extension` and serves `vscode-host`. Run alongside `pnpm watch`.
118
+
-**`pnpm dev`** - Copies `ethereum-extension` and serves `vscode-host`. Run
119
+
alongside `pnpm watch`.
91
120
92
121
### Resources
93
122
94
-
Ethereum Code Viewer is a VSCode Web Extension using FileSystemProvider API to show sources of deployed Ethereum smart contracts.
95
-
The following links might be provide some insight, if you're not familiar with some of the aforementioned terms.
123
+
DethCode's is a VSCode Web Extension using FileSystemProvider API to show
124
+
sources of deployed Ethereum smart contracts. The following links might be
125
+
provide some insight, if you're not familiar with some of the aforementioned
0 commit comments