Skip to main content

A symbolic testing tool for EVM smart contracts

Project description

Halmos

PyPI - Version Python Version from PEP 621 TOML License chat

Install | Getting Started | Examples | FAQ | Chat | awesome-halmos

Halmos is a symbolic testing tool for EVM smart contracts. A Solidity/Foundry frontend is currently offered by default, with plans to provide support for other languages, such as Vyper and Huff, in the future.

You can read more in our post: "Symbolic testing with Halmos: Leveraging existing tests for formal verification."

Join the Halmos Telegram Group for any inquiries or further discussions.

Installation

pip install halmos

Or, if you want to try out the nightly build version:

pip install git+https://github.com/a16z/halmos

Alternatively, you can download the Docker image that contains halmos and its dependencies:

docker pull .:/workspace ghcr.io/a16z/halmos:0.1.14

Usage

cd /path/to/src
halmos

For more details:

halmos --help

Alternatively, you can run the latest halmos Docker image available at ghcr.io/a16z/halmos:

cd /path/to/src

# mount '.' under /workspace in the container
docker run -v .:/workspace ghcr.io/a16z/halmos:0.1.14

Examples

Refer to the getting started guide and the examples directory.

Contributing

Refer to the contributing guidelines, and explore the list of issues labeled "good first issue" or "help wanted."

Disclaimer

These smart contracts and code are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts and code. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions or loss of transmitted information. THE SMART CONTRACTS AND CODE CONTAINED HEREIN ARE FURNISHED AS IS, WHERE IS, WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT OR FITNESS FOR ANY PARTICULAR PURPOSE. Further, use of any of these smart contracts and code may be restricted or prohibited under applicable law, including securities laws, and it is therefore strongly advised for you to contact a reputable attorney in any jurisdiction where these smart contracts and code may be accessible for any questions or concerns with respect thereto. Further, no information provided in this repo should be construed as investment advice or legal advice for any particular facts or circumstances, and is not meant to replace competent counsel. a16z is not liable for any use of the foregoing, and users should proceed with caution and use at their own risk. See a16z.com/disclosures for more info.

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

halmos-0.2.0.tar.gz (199.2 kB view details)

Uploaded Source

Built Distribution

halmos-0.2.0-py3-none-any.whl (103.7 kB view details)

Uploaded Python 3

File details

Details for the file halmos-0.2.0.tar.gz.

File metadata

  • Download URL: halmos-0.2.0.tar.gz
  • Upload date:
  • Size: 199.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for halmos-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d49b35a2fbcf80064b9e002b4e6bb4be133dbe4e4b65383af1e629b6c9f7262e
MD5 29d379dd353bc4b77df8e02cb732bf4a
BLAKE2b-256 4386cd38ae568d26f49f9fedfed5dc34042c38d16ac00fa0f8fae849d09ad50e

See more details on using hashes here.

File details

Details for the file halmos-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: halmos-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 103.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for halmos-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18494a4a803d1d8b19e76e16e5cb6f00188438436b1192d834d16cc99181c9eb
MD5 3087b229f70a2d70fe4605fb36872ddc
BLAKE2b-256 7dd94d90b34e16f7adcd693e2374a0b55480033660d95ddbcd2380134d42be3b

See more details on using hashes here.

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