Skip to content

Commit f0ce48c

Browse files
authored
Replace all mentions of 'Ethereum Code Viewer' with 'DethCode' (#51)
* Replace all mentions of 'Ethereum Code Viewer' with 'DethCode' * Use new logo * Update README.md * Change last lowercase dethcode
1 parent df2270e commit f0ce48c

File tree

18 files changed

+78
-50
lines changed

18 files changed

+78
-50
lines changed

README.md

Lines changed: 57 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
<p align="center">
2-
<img src="https://github.com/dethcrypto/ethereum-code-viewer/blob/main/docs/logo.png?raw=true" width="300" alt="ethereum code viewer">
3-
<h3 align="center">Ethereum Code Viewer</h3>
4-
<p align="center">View source of deployed Ethereum smart contracts in VS Code</p>
5-
<p align="center">While on Etherscan, change <code>.io</code> to <code>.deth.net</code> and browse contracts comfortably in ephemeral VS Code instance</p>
6-
2+
<br />
3+
<img src="https://github.com/dethcrypto/ethereum-code-viewer/blob/main/docs/logo.svg?raw=true" width="200" alt="">
4+
<br />
5+
<h2 align="center">DethCode</h2>
76
<p align="center">
87
<a href="https://github.com/dethcrypto/ethereum-code-viewer/actions"><img alt="Build Status" src="https://github.com/dethcrypto/ethereum-code-viewer/actions/workflows/ci.yml/badge.svg"></a>
9-
<a href="https://discord.gg/wQDkeDgzgv"><img alt="Join our discord!" src="https://img.shields.io/discord/895381864922091630.svg?color=7289da&label=deth&logo=discord&style=flat-square"></a>
8+
<a href="https://discord.gg/wQDkeDgzgv"><img alt="Join our Discord!" src="https://img.shields.io/discord/895381864922091630.svg?color=7289da&label=deth&logo=discord&style=flat-square"></a>
109
</p>
11-
10+
<p align="center"><strong>View source of deployed Ethereum smart contracts in VS Code</strong></p>
11+
<p align="center">While on Etherscan, change <code>.io</code> to <code>.deth.net</code> and browse contracts comfortably in ephemeral VS Code instance</p>
1212
<p align="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>
1414
</p>
1515
</p>
1616

1717
## Usage
1818

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
21+
and fetch the verified code using Etherscan API.
2022

2123
![ecv](https://user-images.githubusercontent.com/1814312/146108385-6fa50ae7-14a5-45b2-be3d-201d22409cf7.gif)
2224

23-
Or save the following code snippet as a bookmarklet to quickly go from any [supported chain explorer][supported_explorers] to Ethereum Code Viewer.
25+
Or save the following code snippet as a bookmarklet to quickly go from any
26+
[supported chain explorer][supported_explorers] to DethCode.
2427

2528
```
2629
javascript: location.href = location.href.replace(/\.\w+(\/)/, ".deth.net/")
@@ -29,32 +32,55 @@ javascript: location.href = location.href.replace(/\.\w+(\/)/, ".deth.net/")
2932
## Features ⚡
3033

3134
- frictionless - just tweak URL while browsing etherscan `.io` -> `deth.net`
32-
- proxy support - automatically follows proxies and displays implementation source code
33-
- multichain - supports different etherscan instances: testnets, L2s, L1s ([all supported chains][supported_explorers])
35+
- proxy support - automatically follows proxies and displays implementation
36+
source code
37+
- multichain - supports different etherscan instances: testnets, L2s, L1s ([all
38+
supported chains][supported_explorers])
3439

35-
[supported_explorers]: https://github.com/dethcrypto/ethereum-code-viewer/blob/main/docs/supported-explorers.md
40+
[supported_explorers]:
41+
https://github.com/dethcrypto/ethereum-code-viewer/blob/main/docs/supported-explorers.md
3642

3743
## Motivation
3844

39-
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.
4050

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
53+
implementation of proxies and so on.
4254

4355
## Examples
4456

45-
- Arbitrum ERC20 Gateway on mainnet: [Ethereum Code Viewer](https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec) | [etherscan](https://etherscan.io/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code)
46-
- Arbitrum ERC20 Gateway on arbitrum: [Ethereum Code Viewer](https://arbiscan.deth.net/address/0x09e9222e96e7b4ae2a407b98d48e330053351eee) | [arbiscan](https://arbiscan.io/address/0x09e9222e96e7b4ae2a407b98d48e330053351eee#code)
47-
- Optimism L1CrossDomainMessenger: [Ethereum Code Viewer](https://etherscan.deth.net/address/0x25ace71c97b33cc4729cf772ae268934f7ab5fa1) | [etherscan](https://etherscan.io/address/0x25ace71c97b33cc4729cf772ae268934f7ab5fa1#code)
48-
- Dai Stablecoin: [Ethereum Code Viewer](https://etherscan.deth.net/address/0x6b175474e89094c44da98b954eedeac495271d0f) | [etherscan](https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code)
57+
- Arbitrum ERC20 Gateway on mainnet:
58+
[dethcode](https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec)
59+
|
60+
[etherscan](https://etherscan.io/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code)
61+
- Arbitrum ERC20 Gateway on arbitrum:
62+
[dethcode](https://arbiscan.deth.net/address/0x09e9222e96e7b4ae2a407b98d48e330053351eee)
63+
|
64+
[arbiscan](https://arbiscan.io/address/0x09e9222e96e7b4ae2a407b98d48e330053351eee#code)
65+
- Optimism L1CrossDomainMessenger:
66+
[dethcode](https://etherscan.deth.net/address/0x25ace71c97b33cc4729cf772ae268934f7ab5fa1)
67+
|
68+
[etherscan](https://etherscan.io/address/0x25ace71c97b33cc4729cf772ae268934f7ab5fa1#code)
69+
- Dai Stablecoin:
70+
[dethcode](https://etherscan.deth.net/address/0x6b175474e89094c44da98b954eedeac495271d0f)
71+
|
72+
[etherscan](https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code)
4973

5074
## Contributing
5175

5276
### Repository structure and package managers
5377

54-
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.
5580

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.
5884

5985
### Step by step instructions
6086

@@ -79,20 +105,25 @@ pnpm serve
79105

80106
### Scripts
81107

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.
83111

84112
- **`pnpm build`** - Builds all packages.
85113

86114
- **`pnpm watch`** - Starts webpack for `ethereum-extension` in watch mode.
87115

88116
- **`pnpm serve`** - Starts HTTP server with `vscode-host`.
89117

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`.
91120

92121
### Resources
93122

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
126+
terms.
96127

97128
- https://code.visualstudio.com/api/extension-guides/web-extensions
98129
- https://code.visualstudio.com/api/references/vscode-api#FileSystemProvider

docs/logo.png

-47.2 KB
Binary file not shown.

docs/supported-explorers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Ethereum Code Viewer supports the following blockchain explorers:
1+
DethCode supports the following blockchain explorers:
22

33
<!-- Run `yarn supported-explorers` in packages/ethereum-viewer to generate this list. -->
44

packages/entrypoint/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
The website hosted on convenience URL entry points powering the "simple domain
22
change" use case.
33

4-
( To open Ethereum Code Viewer from a [supported blockchain
5-
explorer][explorers], change the TLD (i.e. `.io`, `.com`) to `.deth.net`. )
4+
( To open DethCode from a [supported blockchain explorer][explorers], change the
5+
TLD (i.e. `.io`, `.com`) to `.deth.net`. )
66

77
[explorers]: ../../docs/supported-explorers.md
88

packages/entrypoint/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<title>Ethereum Code Viewer</title>
6-
<link rel="icon" href="/dethcode.svg" type="image/svg+xml" />
5+
<title>DethCode</title>
6+
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
77

88
<!-- Disable pinch zooming -->
99
<meta

packages/entrypoint/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (hostname.endsWith(".deth.net") && !url.searchParams.get("explorer")) {
2323
log("setting iframe src:", url.href);
2424
iframe.setAttribute("src", url.href);
2525
// @todo in the future, we should also listen for postMessage events when
26-
// the ECV app inside of the iframe updates the URL, but it's not happening
26+
// the DethCode app inside of the iframe updates the URL, but it's not happening
2727
// right now
2828

2929
void (function exposeFunctions() {

packages/ethereum-viewer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"engines": {
2828
"vscode": "^1.63.0"
2929
},
30-
"displayName": "Ethereum Code Viewer",
30+
"displayName": "DethCode",
3131
"description": "View source of deployed Ethereum contracts in VSCode",
3232
"publisher": "hasparus",
3333
"categories": [
@@ -44,7 +44,7 @@
4444
"contributes": {
4545
"commands": {
4646
"command": "ethereum-viewer.open",
47-
"category": "Ethereum Code Viewer",
47+
"category": "DethCode",
4848
"title": "Open smart contract source code"
4949
}
5050
}

packages/ethereum-viewer/src/explorer/networks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* mapping from Ethereum Code Viewer subdomain to Etherscan-like API URL
2+
* mapping from DethCode subdomain to Etherscan-like API URL
33
*/
44
export const explorerApiUrls = {
55
etherscan: "https://api.etherscan.io/api",
@@ -24,12 +24,12 @@ export const explorerApiUrls = {
2424
};
2525

2626
/**
27-
* subdomain of ethereum code viewer
27+
* subdomain of DethCode
2828
*/
2929
export type ApiName = keyof typeof explorerApiUrls;
3030

3131
/**
32-
* mapping from Ethereum Code Viewer subdomain to memfs root directory name
32+
* mapping from DethCode subdomain to memfs root directory name
3333
*/
3434
export const networkNames: Record<ApiName, string> = {
3535
etherscan: "mainnet",

packages/ethereum-viewer/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { renderStatusBarItems } from "./statusBar";
1111
let initialized = false;
1212
const fs = FileSystem();
1313

14-
const IN_DETH_HOST = vscode.env.appName === "Ethereum Code Viewer";
14+
const IN_DETH_HOST = vscode.env.appName === "DethCode";
1515

1616
export async function activate(context: vscode.ExtensionContext) {
1717
fs.register(context);

0 commit comments

Comments
 (0)