Skip to content

Commit

Permalink
Add new zkvyper output fields
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Jul 31, 2024
1 parent 740c7c8 commit d5c2f27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For Google Colab: The following dependencies should be downloaded automatically.
#### Zkvyper Compiler
We use the [era-compiler-vyper](https://github.com/matter-labs/era-compiler-vyper) a.k.a. `zkvyper`: to compile Vyper code to ZkSync-compatible bytecode.

1. Download the binary from the [zkvyper-bin repository](https://github.com/matter-labs/zkvyper-bin) and rename it as `zkvyper`.
1. Download the latest binary from the [zkvyper-bin repository](https://github.com/matter-labs/zkvyper-bin) and rename it as `zkvyper`.

2. On Linux/macOS, mark the binary as executable:
`chmod a+x <path to file>`
Expand Down
6 changes: 6 additions & 0 deletions boa_zksync/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dataclasses import dataclass, field
from functools import cached_property
from typing import Optional

import rlp
from boa.contracts.vyper.vyper_contract import VyperDeployer
Expand Down Expand Up @@ -169,6 +170,11 @@ class ZksyncCompilerData:
warnings: list[str]
factory_deps: list[str]

# zkvyper>=1.5.3 fields
layout: Optional[dict] = None
userdoc: Optional[dict] = None
devdoc: Optional[dict] = None

@cached_property
def global_ctx(self):
return self.vyper.global_ctx
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ keywords = ["ethereum", "evm", "smart contract", "development", "vyper", "zksync
classifiers = ["Topic :: Software Development"]

# Requirements
dependencies = [
"titanoboa>=0.1,<0.2",
]
dependencies = ["titanoboa>=0.1,<0.2"]

[project.optional-dependencies]
forking-recommended = ["ujson"]
Expand Down

0 comments on commit d5c2f27

Please sign in to comment.