Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Build CommitmentStateDiff based on new block storage changes #1217

Merged
merged 9 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next release

- feat(client): spawn a task that listen to storage changes and build the
resulting commiment state diff for each block
- fix: change 'nonce too high' to log in debug instead of info
- chore: update deps, vm ressource fee cost are now FixedU128, and stored in an
hashmap
Expand Down
51 changes: 37 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ members = [
"crates/client/mapping-sync",
"crates/client/storage",
"crates/client/transaction-pool",
"crates/client/commitment-state-diff",
"starknet-rpc-test",
]
# All previous except for `starknet-rpc-test`
Expand All @@ -48,6 +49,7 @@ default-members = [
"crates/client/mapping-sync",
"crates/client/storage",
"crates/client/transaction-pool",
"crates/client/commitment-state-diff",
]

[profile.release]
Expand Down Expand Up @@ -167,6 +169,7 @@ mc-rpc-core = { path = "crates/client/rpc-core" }
mc-block-proposer = { path = "crates/client/block-proposer" }
mc-transaction-pool = { path = "crates/client/transaction-pool" }
mc-data-availability = { path = "crates/client/data-availability" }
mc-commitment-state-diff = { path = "crates/client/commitment-state-diff" }

# Madara runtime
madara-runtime = { path = "crates/runtime" }
Expand Down Expand Up @@ -233,3 +236,4 @@ num-bigint = "0.4.4"
phf = { version = "0.11", default-features = false }
url = "2.4.1"
hashbrown = "0.14.2"
tokio = "1.33.0"
31 changes: 31 additions & 0 deletions crates/client/commitment-state-diff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "mc-commitment-state-diff"
authors.workspace = true
edition.workspace = true
repository.workspace = true
version.workspace = true

[dependencies]
# Substrate
sc-client-api = { workspace = true }
sp-api = { workspace = true, default-features = true }
sp-blockchain = { workspace = true }
sp-runtime = { workspace = true, default-features = true }

# Madara
mp-digest-log = { workspace = true, default-features = true }
mp-hashers = { workspace = true, default-features = true }
mp-storage = { workspace = true, default-features = true }
pallet-starknet = { workspace = true }

# Starknet
blockifier = { workspace = true, default-features = true }
starknet_api = { workspace = true, default-features = true }

# Async
futures = { workspace = true, default-features = true }

# Others
indexmap = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
Loading