Coder Social home page Coder Social logo

dethcrypto / dethcode Goto Github PK

View Code? Open in Web Editor NEW
1.4K 17.0 105.0 596 KB

View source of deployed Ethereum contracts in VSCode

Home Page: https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code

TypeScript 90.55% HTML 0.43% JavaScript 2.28% CSS 6.74%
ethereum visual-studio-code etherscan smart-contract

dethcode's People

Contributors

0xdcota avatar hasparus avatar krzkaczor avatar stermi avatar sz-piotr avatar wujunze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dethcode's Issues

Unused vertical scroll bar on the right of the actual scroll bar

scroll_bars_deth

The scroll bar all the way to the right does nothing useful, it scrolls to a tiny bit of whitespace under the UI.

The scroll bar left to it works, but on dragging it with the mouse, it loses focus if the mouse is not exactly on that scroll bar.

Happens on Firefox and Chrome. This is on Windows 10, scaled up 110%.

Support for aurora

Aurora has an etherscan support block explorer: https://aurorascan.dev/

I use deth heavily, would like to add aurora support for it. If it's okay can I open a PR with the suggested change? For the API key happy to let you generate one on your side.

end-to-end tests or a command for visiting known contracts

Example URLs:

const BUSD_ON_BSCSCAN =
  "/token/0xe9e7cea3dedca5984780bafc599bd69add087d56?explorer=bscscan";
const WTFM_ON_FMTSCAN =
  "/address/0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83?explorer=fmtscan";
const BINARYPUNKS_ON_TESTNET_FMTSCAN =
  "/token/0x8b08550c4964e4fda760660a2fc5ea64df406193#readContract?explorer=testnet.ftmscan";
const UNISWAP_POSITIONS_ON_ARBISCAN =
  "/address/0xc36442b4a4522e871399cd717abdd847ab11fe88?explorer=arbiscan";
const UNISWAP_POSITIONS_ON_TESTNET_ARBISCAN =
  "/0xc36442b4a4522e871399cd717abdd847ab11fe88?explorer=testnet.arbiscan";
const TETHER_ON_SNOWTRACE =
  "/0xc7198437980c041c805a1edcba50c1ce5db95118?api=snowtrace";

Support all etherscan supported chains

From the top of my head:

  • ethereum testnets (kovan, ropsten, goerli)
  • L2s (arbiscan, optimism + testnets)
  • sidechains (bsscan, polygon, xdai)
  • L1s (avax?, moonriver?)

Unstable multi-addresses viewing

when going into this url https://etherscan.deth.net/address/0x32400084C286CF3E17e7B677ea9583e60a000324,0xF1fB730b7f8E8391B27B91f8f791e10E4a53CEcc,0x6df4A6D71622860dcc64C1FD9645d9a5BE96f088,0x2a2d6010202B93E727b61a60dfC1d5CF2707c1CE,0xc796A402E1B26eCd2cd38F23e05A2f904504ec89,0x389a081BCf20e5803288183b929F08458F1d863D

I sometimes get all the contracts fetched (6)
image

but sometimes I get less (5)
image

I think at least a warning failed to fetch some contracts is needed, because currently it is a silent error.

Feature request: navigate deployments

It would be incredibly neat if it was possible to retrieve the current value of address-valued contract variables, and to navigate to their source code if they are also etherscan-verified contracts.

Getting the current value of all contract-level variables would also be very neat.

Feature Request: Add Support for FraxScan

Hey all long time user of dethcode here,

I was hoping it would be possible to add support for Fraxtal, a newly launched L2 based on the OP stack by Frax Finance.

https://fraxscan.com/

Fraxscan is an etherscan clone and any etherscan specific api calls should also abstract to fraxscan.

lmk if there is anything I can do to help support this effort.

๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™๐Ÿ™

New domain?

Love this project, thank you so much for creating it!

I thought it might be easier to just switch etherscan.io to another TLD instead of typing out deth.net, so I purchased etherscan.run and set up a redirect via CloudFlare Workers.

If you think this could be useful as an official domain, I will be happy to transfer ownership to the dethcode project!

Feature request: support Routescan-based explorers

Routescan is a block explorer platform.

It currently hosts many Single and Ecosystem Explorers, of which fully supported are:

Routescan offers two types of APIs:

We'd like to request integration for Routescan and, specifically, for the explorers mentioned above.

I'm available for further questions.

Test against XSS

All inputs coming from etherscan (user) could be an XSS vector. We need to ensure that we are not vulnerable.

Ability to download locally?

deth.net is a lifesaver - does anyone know if there is the ability to automatically download the files and open them in your local VS Code instance? can't seem to figure this out, any advice is appreciated :)

wen kovan?

dosent seem to work for testnets? or is the naming convention different

Download source

Hi there thanks for this fantastic service!

Sorry in advance for the dumb question but is it possible to download the source code from VSCode? I would like to download the source code of a MIT contract from Etherscan so that I can use it as a mock in my tests when writing an extension (contrcat) for it.

Feature Request: Split single file verifications into different files.

Some contracts on Etherscan get verified as a single flat file making it hard to navigate them.

Here is a random example I took from the Etherscan's list of verified contracts.
https://etherscan.io/address/0x38b1c1be183a480835e9bc63c5acfd18eedd1cb0#code

I believe that can be accomplished by splitting the files at the terms:

  • contract
  • library
  • abstract
  • interface

The simply generating the import statements in each file for every other file even if not used as well as pragma statement for solidity version. Given they are all in same directory that is possible.

Given that the original file is flattened (does not have imports) that could work and will help study the contract better even if a few extra imports are generated. I assume those will be highlighted in VSCode.

Feature request: VS Code extension

Create a real extension for desktop VS Code where you enter the contract address, choose network (which scanner site) and the tool loads the contracts for you.

ENS support

For ENS names that resolve to a contract

https://etherscan.deth.net/address/ENSThatPointsToAContract.eth should resolve instead of throwing 404.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.