Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download source #38

Open
giuseppeg opened this issue Jan 1, 2022 · 5 comments
Open

Download source #38

giuseppeg opened this issue Jan 1, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@giuseppeg
Copy link

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
Copy link
Contributor

hasparus commented Jan 3, 2022

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
Copy link

maurelian commented Jan 5, 2022

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.

@hasparus hasparus added the enhancement New feature or request label Jan 6, 2022
@sebastiantf
Copy link

This would be a really helpful feature

@edag94
Copy link

edag94 commented Jun 28, 2022

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants