Skip to content

Commit ec0f1ec

Browse files
starknet_os_runner: rpc storage_proofs
1 parent ff71b9f commit ec0f1ec

File tree

6 files changed

+363
-2
lines changed

6 files changed

+363
-2
lines changed

Cargo.lock

Lines changed: 148 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ simple_logger = "4.0.0"
350350
socket2 = "0.5.8"
351351
starknet-core = "0.16.0"
352352
starknet-crypto = "0.8.1"
353+
starknet-rust = "0.17.0"
353354
starknet-rust-core = "0.16.0"
354355
starknet-types-core = "0.2.4"
355356
starknet_api = { path = "crates/starknet_api", version = "0.0.0" }

crates/starknet_os_runner/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ description = "Runs transactions through the Starknet OS and returns Cairo PIE a
99
[dependencies]
1010
blockifier.workspace = true
1111
blockifier_reexecution.workspace = true
12+
indexmap.workspace = true
1213
starknet_api.workspace = true
14+
starknet_os.workspace = true
15+
starknet_patricia.workspace = true
16+
starknet-rust.workspace = true
17+
starknet-rust-core.workspace = true
18+
starknet-types-core.workspace = true
1319
thiserror.workspace = true
20+
url.workspace = true
1421

1522
[lints]
1623
workspace = true

crates/starknet_os_runner/src/errors.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use blockifier_reexecution::errors::ReexecutionError;
2+
use starknet_rust::providers::ProviderError;
23
use thiserror::Error;
34

45
#[derive(Debug, Error)]
@@ -16,3 +17,9 @@ pub enum VirtualBlockExecutorError {
1617
#[error("Unsupported transaction type: only Invoke transactions are supported")]
1718
UnsupportedTransactionType,
1819
}
20+
21+
#[derive(Debug, Error)]
22+
pub enum ProofProviderError {
23+
#[error("RPC provider error: {0}")]
24+
Rpc(#[from] ProviderError),
25+
}

crates/starknet_os_runner/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pub mod errors;
2+
pub mod storage_proofs;
23
pub mod virtual_block_executor;
34

45
#[cfg(test)]

0 commit comments

Comments
 (0)