solidity-source-downloader

1.0.0 • Public • Published

Solidity Source Downloader

Quick Start

npm install -g solidity-source-downloader
sdl --help

Description

solidity-source-downloader is a tool to download the Solidity source code for verified contracts from Etherscan-like APIs.

Given a contract address, the application will gather the source code and store it locally while retaining the original directory structure (given the contracts were verified this way). The built-in key management system enables you to only load your API keys into the application once. Keys can also be imported and exported, which can be handy when switching to a different machine.

Usage

sdl --help
Usage: sdl [options] [command]

Options:
  -h, --help             display help for command

Commands:
  set-key [options]      Set an API key
  get-key [options]      Display an API key
  list-keys              List all API keys
  export-keys [options]  Export all API keys to a file
  import-keys [options]  Import API keys from a file
  list-networks          List all supported networks
  get [options]          Download the source code for a contract
  help [command]         display help for command

# To download the source code
sdl get -a 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 -o ~/WETH

Package Sidebar

Install

npm i solidity-source-downloader

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

29.7 kB

Total Files

17

Last publish

Collaborators

  • bobface