dethcrypto / dethcode Goto Github PK
View Code? Open in Web Editor NEWView source of deployed Ethereum contracts in VSCode
Home Page: https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code
View source of deployed Ethereum contracts in VSCode
Home Page: https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code
VSCode by default uses localStorage + indexDB to store settings and these are scoped to particular domains. One possible fix would be to: use hidden iframe as shown here.
Moonbeam and Moonriver are two parachains (parallel chains) that operate on top of Polkadot and Kusama respectively. It would be awesome to have support for these chains on dethcode.
Here are the etherscan deployments for both:
Moonbeam: https://moonscan.io/
Moonriver: https://moonriver.moonscan.io/
Happy to provide any other info or get you in contact with other stakeholders if needed.
Would love to get back to using deth's VSCode shortcut with all the new block explorers I find myself looking at.
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%.
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.
Deth:
https://polygonscan.deth.net/address/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Explorer:
https://polygonscan.com/address/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270#code
pragma solidity ^0.4.18;
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";
This would be lit, is it possible? Otherwise, whats the best workflow for viewing code and calling it? view on dethcode and call on etherscan?
Ensure that we use Ethereum Code Viewer
everywhere. Title tags etc.
https://testnet.polygonscan.com/ is not working, so I think we need to modify the link, from https://testnet.polygonscan.com/ to https://mumbai.polygonscan.com/
It would be good to support Blockscout instances since most of their API is compatible with Etherscan
From the top of my head:
when going into this url https://etherscan.deth.net/address/0x32400084C286CF3E17e7B677ea9583e60a000324,0xF1fB730b7f8E8391B27B91f8f791e10E4a53CEcc,0x6df4A6D71622860dcc64C1FD9645d9a5BE96f088,0x2a2d6010202B93E727b61a60dfC1d5CF2707c1CE,0xc796A402E1B26eCd2cd38F23e05A2f904504ec89,0x389a081BCf20e5803288183b929F08458F1d863D
I sometimes get all the contracts fetched (6)
I think at least a warning failed to fetch some contracts
is needed, because currently it is a silent error.
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.
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.
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.
๐๐๐๐๐๐๐๐๐
Name: NonfungiblePositionManager
Etherscan: https://etherscan.io/address/0xc36442b4a4522e871399cd717abdd847ab11fe88#code
ECV: https://etherscan.deth.net/address/0xc36442b4a4522e871399cd717abdd847ab11fe88#code
Originally reported via: https://twitter.com/cheechyuanang/status/1471435093189160960
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!
Hi there, would be possible to also add support to basescan?
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.
All inputs coming from etherscan (user) could be an XSS vector. We need to ensure that we are not vulnerable.
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 :)
Would have submitted a PR, but figured it's best to leave to you guys due to API key usage.
Thanks!
Orginal request: https://twitter.com/wei3erHase/status/1471530138231844869
dosent seem to work for testnets? or is the naming convention different
Hi,
Very nice tool, I'd like to use it all the time, but there are some contracts that are apparently not supported, for example:
https://etherscan.deth.net/address/0x29205f257f9e3b78bcb27e253d0f3fad9d7522a2
Thanks and congrats for this :)
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.
Steps to reproduce:
l2TokenAddress
At this point I am getting this error:
The trick is that the file I am trying to point to exists, probably there is some error with "pointers"
someone already did it :) and we could help maintaining it:
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:
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.
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.
In a desktop environment, if the abi and bytecode is retrieved, interfaces to those can be easily used for code generated integration.
Even if this primarily meant to read Solidity, having the utilities the extension provides (graphs, able to jump between contracts and functions, etc) would be handy. The extension can be found on https://github.com/ConsenSys/vscode-solidity-auditor/releases.
This is something I'm happy to look into if there's interest
For ENS names that resolve to a contract
https://etherscan.deth.net/address/ENSThatPointsToAContract.eth
should resolve instead of throwing 404.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.