forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
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: don't charge for pubdata in Validium mode #32
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c944c92
set pubdata constants to 0
toni-calvin 837cf6f
Set to 0
181d80c
Merge branch 'validium_mode_pubdata_price' into validium_mode_pubdata_0
cb7edd8
Create contract for writing bytes
jorbush 714bd35
Deploy bytes contract
jorbush 3f91e20
update full node to use rpc providers
toni-calvin c3373d2
fmt
toni-calvin ce4de82
add colored prints
toni-calvin cc32b58
add better debug logs
toni-calvin f8edfa4
add better logs
toni-calvin 27ab211
Merge branch 'validium_mode_pubdata_0' of github.com:lambdaclass/zksy…
toni-calvin 240c0a8
add erc20 contract and update test
toni-calvin c683f9a
update logs
toni-calvin 4699ae9
print gas used
toni-calvin 215b9d9
Use `ETH_SENDER_SENDER_VALIDIUM_MODE` to check whether we need to cha…
Oppen 5d3d96c
wip
Oppen c71ff9c
wip 2: just change runtime behavior
Oppen 183957d
Restore original values
Oppen cff8bfd
Add validium example readme (#34)
jordibonet-lambdaclass 5bbeb3c
Only keep changes for vm_latest
Oppen aad41bb
Fix submodule
Oppen 64e639a
Fix integration test license
Oppen 557ec52
change contracts branch
mationorato b9ceb92
Remove l1 gas data
3aa9f50
Update submodule branch
479061d
fix: update output readme (#39)
jordibonet-lambdaclass ef48b51
feat: remove logs pubdata (#42)
toni-calvin 5c3dfc5
feat: refactor readme example (#44)
jordibonet-lambdaclass 55d04f3
Remove debug prints
48a90a0
Remove debug files
5e98b84
zk fmt
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
[submodule "contracts"] | ||
path = contracts | ||
url = https://github.com/matter-labs/era-contracts.git | ||
|
||
[submodule "era-contracts-lambda"] | ||
path = era-contracts-lambda | ||
url = https://github.com/lambdaclass/era-contracts.git | ||
branch = validium_mode |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule era-contracts-lambda
added at
648773
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes", | ||
"name": "_message", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "readBytes", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes", | ||
"name": "", | ||
"type": "bytes" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes", | ||
"name": "_message", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "writeBytes", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VM should have no assumptions regarding available environment variables.
In general, the only source of environment variables right now is the
zksync_env_config
crate.In the future, we'll have different configuration schemas not based on the env variables (think JSON configs), so you should present configuration in an explicit and serialization-agnostic form.