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: Remove logs from pubdata #42

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

toni-calvin
Copy link

What ❔

closes #41

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.

Copy link
Collaborator

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot a thing, we need to update the comment

core/lib/types/src/commitment.rs Outdated Show resolved Hide resolved
@ilitteri ilitteri linked an issue Jan 16, 2024 that may be closed by this pull request
@toni-calvin toni-calvin changed the base branch from validium_mode to validium_mode_pubdata_0_env January 16, 2024 16:35
@toni-calvin
Copy link
Author

toni-calvin commented Jan 16, 2024

Here are the results executing the validium example with this changes:

Deposit transaction hash: 0xc1f457fc6a863c7d1ea8e06dcd4e37fb18b2c918c89d281f0aa09c2da2742e98
Deploy
Contract address: 0x111c3e89ce80e62ee88318c2804920d4c96f92bb
Transaction hash 0xdf6385f608588a6a6734ebfb4e589d4982f12b0673b6a30b72a74c9011dbf22e
Transaction gas used 514698
L2 fee: 128674500000000

Mint
Transaction hash 0xd30c7a5cf69b946544f47cc18963f0fab76ff95d8e94bb6630bcd200e4a12015
Transaction gas used 124046
L2 fee: 31011500000000
L1 max fee per gas: 1200000011

Transfer 1000
Transaction hash 0x0e99d606dad25a010c6b469260c82166d45d855a40f78b2783f464c3557a9ff9
Transaction gas used 125466
L2 fee: 31366500000000
L1 max fee per gas: 1000000010

@ilitteri ilitteri merged commit ef48b51 into validium_mode_pubdata_0_env Jan 16, 2024
7 of 10 checks passed
@ilitteri ilitteri deleted the feat-remove-logs-pubdata branch January 16, 2024 19:55
@mationorato mationorato changed the title feat: remove logs pubdata feat: Remove logs from pubdata Jan 17, 2024
ilitteri pushed a commit that referenced this pull request Jan 19, 2024
* 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]>
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.

Do not add L2 to L1 logs to the pubdata
2 participants