Tool to compare smart contracts source code.
Heavily relies on API of Etherscan and Diffchecker.
pip install smartdiffer
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": ""
}
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.