Skip to content

kootsZhin/warp-to-cairo

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
cli
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

warp-to-cairo

warp-to-cairo is a simple tool converting starknet warp outputs (NethermindEth/warp) outputs into readable cairo contracts.

The warp outputs transpiled from solidity are stored in JSON format, which is hardly readable and for one to study the results, this tool is designed to convert these outputs into more readable format for further study and development.

Updates: NethermindEth/warp already supported this! Check out warp transpile --cairo-output.

How to use

  1. Install virual environment
pipenv install
pipenv shell
  1. Put the warp transpiled outputs at ./inputs

  2. Run convert

convert
  1. Contract outputs will be stored at ./artifacts and abis at ./artifacts/abis
Successfully converted 1 files (0:00:00.000945)

Blueprint

.
├── Pipfile
├── Pipfile.lock
├── README.md
├── __pycache__
│   └── constants.cpython-37.pyc
├── artifacts
│   ├── ERC20.cairo
│   └── abis
│       └── ERC20.json
├── build
│   └── bdist.macosx-12.2-arm64
├── cli
│   ├── __init__.py
│   ├── script.py
│   └── utils
│       ├── constants.py
│       └── processor.py
├── inputs
│   └── ERC20.json
├── setup.py
└── warp_to_cairo.egg-info
    ├── PKG-INFO
    ├── SOURCES.txt
    ├── dependency_links.txt
    ├── entry_points.txt
    ├── requires.txt
    └── top_level.txt

About

A command line interface tool converting starknet warp transpiled outputs into readable cairo contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages