Skip to main content

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.

Metadata

Release files for smartdiffer 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartdiffer 0.1.5
File Size Uploaded Provenance
smartdiffer-0.1.5.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for smartdiffer 0.1.5
File Interpreter ABI Platform
smartdiffer-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / smartdiffer-0.1.5.tar.gz

Download URL smartdiffer-0.1.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1789a89575c856aad70d205992d401bffe047c28fbf9f7e1b4fc510a7e1abc6b
BLAKE2b-256 checksum
How to use checksums
abd7e8d203570aa43aa6c093bef97239545346fcf0a77de1203a2ea7bcf8b4f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / smartdiffer-0.1.5-py3-none-any.whl

Download URL smartdiffer-0.1.5-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6cc15ed6fc6d8f2734631901d06c7278006d5fe065b34098fe570b022528c05
BLAKE2b-256 checksum
How to use checksums
dc425c4720d4912f3222baf6b9d30e15be97f6f8e60f23e5deb5561322a64c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for smartdiffer 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page