dethcode icon indicating copy to clipboard operation
dethcode copied to clipboard

Download source

Open giuseppeg opened this issue 3 years ago • 5 comments

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.

giuseppeg avatar Jan 01 '22 11:01 giuseppeg

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.

hasparus avatar Jan 03 '22 20:01 hasparus

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.

maurelian avatar Jan 05 '22 19:01 maurelian

This would be a really helpful feature

sebastiantf avatar May 07 '22 06:05 sebastiantf

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.

edag94 avatar Jun 28 '22 23:06 edag94

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 ?

InfectedIsm avatar Nov 16 '22 19:11 InfectedIsm