Skip to content

skellet0r/zkvvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zkvvm

A completely experimental and untested zkVyper version manager.

Usage

  1. Install with pip.

    $ pip install git+https://github.com/skellet0r/zkvvm@master#egg=zkvvm
  2. Use the built-in CLI

    $ zkvvm --help
    usage: zkvvm [-h] [--cache-dir CACHE_DIR] [--log-file LOG_FILE] [-v] {ls,ls-remote,install,uninstall} ...
    
    zkVyper Version Manager
    
    optional arguments:
    -h, --help            show this help message and exit
    --cache-dir CACHE_DIR
                            Default: /home/user/.cache/zkvvm
    --log-file LOG_FILE   Default: /home/user/.cache/zkvvm/log/zkvvm.log
    -v
    
    commands:
    {ls,ls-remote,install,uninstall}
        ls                  List available local versions
        ls-remote           List available remote versions
        install             Install a remote version
        uninstall           Uninstall a local version
  3. Use in a script

    import zkvvm
    
    output = zkvvm.compile(["tmp/Foo.vy"])
    
    src = """# @version 0.3.3
    
    @view
    @external
    def foo(_a: uint256) -> uint256:
        return _a
    """
    output = zkvvm.compile_source(src, zk_version="1.1.1", vyper_version="0.3.3")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages