dethcrypto / dethcode

View source of deployed Ethereum contracts in VSCode
https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code
1.36k stars 105 forks source link

Download source #38

Open giuseppeg opened 2 years ago

giuseppeg commented 2 years ago

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.

hasparus commented 2 years ago

Sorry in advance for the dumb question but is it possible to download the source code from VSCode?

Well, apart from copying it manually, there's no way to do it through Ethereum Code Viewer.

If I were you, I'd use Etherscan API (https://docs.etherscan.io/api-endpoints/contracts) and fs.writeFileSync for now.

maurelian commented 2 years ago

You can use this too: https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-ethover

Would definitely be cool to see dethcrypto's take on that extension though.

sebastiantf commented 2 years ago

This would be a really helpful feature

edag94 commented 2 years ago

You can use this too: https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-ethover

Would definitely be cool to see dethcrypto's take on that extension though.

Looks like that extension got integrated into this one, which is actively maintained: https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor

This is my current solution to the lack of this feature.

InfectedIsm commented 1 year ago

A lot of very interesting stuff here, thanks

I'm also interested and the ability to download the un-flattened code of a contract Maybe I haven't well checked the shared extension, but do any of these extensions give that ability ?