forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: don't charge for pubdata in Validium mode (#32)
* 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]>
- Loading branch information
1 parent
c5fe842
commit d3f703e
Showing
26 changed files
with
1,384 additions
and
250 deletions.
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.