Skip to content

Download source #38

Description

@giuseppeg

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.

Activity

  1. hasparus commented on Jan 3, 2022

    @hasparus
    Contributor

    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.

  2. maurelian commented on Jan 5, 2022

    @maurelian

    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.

  3. sebastiantf commented on May 7, 2022

    @sebastiantf

    This would be a really helpful feature

  4. edag94 commented on Jun 28, 2022

    @edag94

    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.

  5. InfectedIsm commented on Nov 16, 2022

    @InfectedIsm

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions