| 13 | const configurationKey = "workbench.startupEditor"; |
| 14 | |
| 15 | const buildTemplate = () => ` |
| 16 | <div class="welcomePageContainer"> |
| 17 | <div class="welcomePage" role="document"> |
| 18 | <div class="title"> |
| 19 | <h1 class="caption">${escape( |
| 20 | localize("welcomePage.vscode", "Visual Studio Code") |
| 21 | )}</h1> |
| 22 | <p class="subtitle detail"> |
| 23 | View source of deployed Ethereum smart contracts in VS Code |
| 24 | </p> |
| 25 | </div> |
| 26 | <div class="row"> |
| 27 | <div class="splash"> |
| 28 | <div class="section"> |
| 29 | <p class="usage-guide"> |
| 30 | While browsing smart contract code on <a href="https://etherscan.io/" rel="nofollow">Etherscan</a> just change URL from <code>.io</code> to <code>deth.net</code>. This will open Visual Studio Code instance and fetch the verified code using Etherscan API. |
| 31 | </p> |
| 32 | </div> |
| 33 | <div class="section help"> |
| 34 | <h2 class="caption">${escape( |
| 35 | localize("welcomePage.help", "Help") |
| 36 | )}</h2> |
| 37 | <ul> |
| 38 | <li><a href="https://github.com/dethcrypto/ethereum-code-viewer" target="_blank">DethCode Repository</a></li> |
| 39 | <li><a href="https://gitcoin.co/grants/4038/typechain-dksth" target="_blank">Typchain & Deth Grant on GitCoin</a></li> |
| 40 | <li><a href="https://github.com/microsoft/vscode" target="_blank">VS Code Repository</a></li> |
| 41 | <li><a href="https://code.visualstudio.com/docs" target="_blank">VS Code Documentation</a></li> |
| 42 | </ul> |
| 43 | </div> |
| 44 | <p class="showOnStartup"><input type="checkbox" id="showOnStartup" class="checkbox"/> <label class="caption" for="showOnStartup">${escape( |
| 45 | localize("welcomePage.showOnStartup", "Show welcome page on startup") |
| 46 | )}</label></p> |
| 47 | </div> |
| 48 | <div class="commands"> |
| 49 | <div class="section examples"> |
| 50 | <h2 class="caption">Examples</h2> |
| 51 | <div class="list"> |
| 52 | <div class="item"> |
| 53 | <a class="button" href="https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec"> |
| 54 | <h3 class="caption">View <strong>Arbitrum ERC20 Gateway</strong></h3> |
| 55 | <span class="detail">0xa3a7b6f88361f48403514059f1f16c8e78d60eec</span> |
| 56 | </a> |
| 57 | </div> |
| 58 | <div class="item"> |
| 59 | <a class="button" href="https://etherscan.deth.net/address/0x25ace71c97b33cc4729cf772ae268934f7ab5fa1"> |
| 60 | <h3 class="caption">View <strong>Optimism L1CrossDomainMessenger</strong></h3> |
| 61 | <span class="detail">0x25ace71c97b33cc4729cf772ae268934f7ab5fa1</span> |
| 62 | </a> |
| 63 | </div> |
| 64 | <div class="item"> |
| 65 | <a class="button" href="https://etherscan.deth.net/address/0x6b175474e89094c44da98b954eedeac495271d0f"> |
| 66 | <h3 class="caption">View <strong>Dai Stablecoin</strong></h3> |
| 67 | <span class="detail">0x6b175474e89094c44da98b954eedeac495271d0f</span> |
| 68 | </a> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="section learn"> |