Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Validium mode #21

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

feat: Validium mode #21

wants to merge 15 commits into from

Conversation

ilitteri
Copy link
Collaborator

@ilitteri ilitteri commented Dec 21, 2023

Run

  • Clone our era-contracts fork and choose the branch validium_mode:
    git clone [email protected]:lambdaclass/era-contracts.git era-contracts-lambda
    cd era-contracts-lambda
    git checkout validium_mode
    
  • Install zk tool:
    Inside zksync-era run
    export ZKSYNC_HOME=$(pwd)
    export PATH=$ZKSYNC_HOME/bin:$PATH
    
  • Install zk tool:
    zk
    zk init --validium-mode
    
  • Run example: follow validium.md guide.

Debugging

zk && zk clean --all && zk init --validium-mode

* set pubdata constants to 0

* Set  to 0

* Create contract for writing bytes

* Deploy bytes contract

* update full node to use rpc providers

* fmt

* add colored prints

* add better debug logs

* add better logs

* add erc20 contract and update test

* update logs

* print gas used

* Use `ETH_SENDER_SENDER_VALIDIUM_MODE` to check whether we need to charge the pubdata

* wip

* wip 2: just change runtime behavior

* Restore original values

* Add validium example readme (#34)

* Add validium example readme

* update validium.md and change test name

* fmt

---------

Co-authored-by: toni-calvin <[email protected]>

* Only keep changes for vm_latest

* Fix submodule

* Fix integration test license

* change contracts branch

* Remove l1 gas data

* Update submodule branch

* fix: update output readme (#39)

* Update output readme

* Add a note for transactions

* Fix note

* feat: remove logs pubdata (#42)

* remove logs from pubdata

* update comment

* feat: refactor readme example (#44)

* Refactor readme example

* Fix some comments

* Remove validium.md

* Remove debug prints

* Remove debug files

* zk fmt

---------

Co-authored-by: toni-calvin <[email protected]>
Co-authored-by: Ivan Litteri <[email protected]>
Co-authored-by: Jordi <[email protected]>
Co-authored-by: Jordi <[email protected]>
Co-authored-by: Matías Onorato <[email protected]>
Co-authored-by: Antonio Calvín García <[email protected]>
Oppen pushed a commit that referenced this pull request Feb 9, 2024
Oppen pushed a commit that referenced this pull request Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants