Skip to main content

Tool to compare smart contracts source code

Project description

smartdiffer

Tool to compare smart contracts source code.

Heavily relies on API of Etherscan and Diffchecker.

Installation

pip install smartdiffer

API keys

In order to use smartdiffer you need to obtain Etherscan Api-Key. Put it inside api_keys.json file under your home directory.

The file should look like this:

{
  "etherscan": "",
  "diffchecker": ""
}

Usage

Provide two sources you wish to compare. Source is either address of a smart contract on ethereum mainnet or path to a local file.

smartdiffer 0x0123456789abcdef0123456789abcdef01234567 path/to/local/file

On the completion you'll get a link to the diff on diffchecker.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartdiffer-0.1.5.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

smartdiffer-0.1.5-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page