Metadata-Version: 2.1
Name: smartdiffer
Version: 0.1.2
Summary: Tool to compare smart contracts source code
Home-page: https://github.com/skalermo/morphine
Author: skalermo (Roman Moskalenko)
Author-email: skalermo@gmail.com
License: UNKNOWN
Keywords: python,etherscan-api,diffchecker
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
License-File: LICENSE

# smartdiffer
Tool to compare smart contracts source code.

Heavily relies on API of [Etherscan](https://etherscan.io/) and [Diffchecker](https://www.diffchecker.com).

## Installation

```sh
pip install smartdiffer
```

## API keys

In order to use smartdiffer you need to obtain [Etherscan Api-Key](https://etherscan.io/apidocs). Put it inside `api_keys.json` file under your home directory.

The file should look like this:

```json
{
  "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.

```sh
smartdiffer 0x0123456789abcdef0123456789abcdef01234567 path/to/local/file
```

On the completion you'll get a link to the diff on [diffchecker.com](https://www.diffchecker.com).





