Skip to content

auditless/auditless-py-solc-x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-solc-x wrapper for Auditless

This wrapper modifies py-solcx-x to produce output on every compilation that can be consumed by Auditless.

Can I use this for my project

As long as you are using py-solc-x to compile Solidity files, you can use this wrapper.

How to use

Add the the following snippet to your code:

from pathlib import Path
from auditless_solcx import solcx_start_saving_debugging_output_to_path

path = Path(__file__).parent  # This will save files in a folder ./artifacts/build-info

solcx_start_saving_debugging_output_to_path(path)
# This needs to appear before any modules consuming `py-solc-x` are loaded
# See below "Important note about patching"

Important note about patching

The patching function solcx_start_saving_debugging_output_to_path(<path>) needs to be called either before solcx is used directly or before any module that imports and uses solcx.

See Python Mock Gotchas for more information about patching order.

License

MIT

About

Wrapper for py-solc-x to integrate Auditless

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published