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: add sendRawTransactionWithDetailedOutput API #1806

Merged
merged 25 commits into from Apr 30, 2024

Conversation

ischasny
Copy link
Collaborator

@ischasny ischasny commented Apr 26, 2024

Add a new zks_sendRawTransactionWithDetailedOutput API that instantly returns storage logs and events (like if the transaction would have already been applied) alongside the transaction hash. The API is behaviourally analogous to eth_sendRawTransaction but with some extra data returned from it.

This feature will allow consumer apps to apply "optimistic" events in their applications instantly without having to wait for zkSync block confirmation time.

It’s expected that optimistic logs of two uncommitted transaction that modify the same state will not have causal relationships between each other.

@ischasny ischasny changed the title [DRAFT] sendRawTransaction optimistic logs feat: sendRawTransaction optimistic logs Apr 26, 2024
@ischasny ischasny marked this pull request as ready for review April 26, 2024 16:07
ischasny and others added 4 commits April 29, 2024 11:31
montekki
montekki previously approved these changes Apr 29, 2024
@ischasny ischasny changed the title feat: sendRawTransaction optimistic logs feat: add sendRawTransactionWithDetailedOutput API Apr 29, 2024
RomanBrodetski
RomanBrodetski previously approved these changes Apr 29, 2024
core/lib/types/src/api/mod.rs Outdated Show resolved Hide resolved
core/lib/types/src/event/mod.rs Show resolved Hide resolved
@ischasny ischasny enabled auto-merge April 29, 2024 16:15
RomanBrodetski
RomanBrodetski previously approved these changes Apr 29, 2024
auto-merge was automatically disabled April 30, 2024 09:46

Merge queue setting changed

@ischasny ischasny added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@ischasny ischasny added this pull request to the merge queue Apr 30, 2024
Merged via the queue into main with commit 6a30a31 Apr 30, 2024
36 checks passed
@ischasny ischasny deleted the isc-peng-7-tx-submission-optimistic-confirmation branch April 30, 2024 10:52
RomanBrodetski pushed a commit that referenced this pull request May 8, 2024
🤖 I have created a release *beep* *boop*
---


##
[24.1.0](core-v24.0.0...core-v24.1.0)
(2024-05-08)


### Features

* add `sendRawTransactionWithDetailedOutput` API
([#1806](#1806))
([6a30a31](6a30a31))
* add getGasPerPubdataByte endpoint
([#1778](#1778))
([d62dd08](d62dd08))
* **config:** Wrap sensitive urls
([#1828](#1828))
([c8ee740](c8ee740))
* **db:** Implement weak references to RocksDB
([e0d4daa](e0d4daa))
* **en:** Add pruning health checks and rework pruning config
([#1790](#1790))
([e0d4daa](e0d4daa))
* Extract proof_data_handler into separate crate
([#1677](#1677))
([f4facee](f4facee))
* Extract several crates from zksync_core
([#1859](#1859))
([7dcf796](7dcf796))
* **node:** Extract genesis into separate crate
([#1797](#1797))
([a8c4599](a8c4599))
* **Prover CLI:** `status batch` command
([#1638](#1638))
([3fd6d65](3fd6d65))
* prover components versioning
([#1660](#1660))
([29a4ffc](29a4ffc))
* Update provers current version
([#1872](#1872))
([bb5f129](bb5f129))


### Bug Fixes

* **basic_types:** bincode deserialization for `L2ChainId`
([#1835](#1835))
([fde85f4](fde85f4))
* **contract-verifier:** YUL system-mode verification
([#1863](#1863))
([5aa7d41](5aa7d41))
* **loadtest:** Do not initiate transactions with 0 amount
([#1847](#1847))
([1bbe108](1bbe108))


### Performance Improvements

* **db:** Fine-tune state keeper cache performance / RAM usage
([#1804](#1804))
([82bf40e](82bf40e))
* **state-keeper:** Improve `FilterWrittenSlots` l1 batch seal stage
([#1854](#1854))
([4cf235f](4cf235f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: perekopskiy <mikeson.dp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants