Skip to content

Commit

Permalink
Merge pull request #100 from anton-rs/rf/feat/superchain-repo
Browse files Browse the repository at this point in the history
chore: Superchain Crate
  • Loading branch information
refcell authored Nov 6, 2024
2 parents 2fce361 + 26e7948 commit aa2c35d
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 79 deletions.
104 changes: 58 additions & 46 deletions Cargo.lock

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

38 changes: 21 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,39 @@ rustdoc-args = ["--cfg", "docsrs"]
kona-derive = { git = "https://github.com/anton-rs/kona", branch = "main" }

[workspace.dependencies]
# Workspace
superchain-derive = { version = "0.9.2", path = "crates/derive", default-features = false }
superchain-registry = { version = "0.9.2", path = "crates/registry", default-features = false }

# Kona
kona-derive = { version = "0.0.5", default-features = false }

# Alloy
alloy-rlp = { version = "0.3.9", default-features = false }
alloy-eips = { version = "0.5.4", default-features = false }
alloy-serde = { version = "0.5.4", default-features = false }
alloy-provider = { version = "0.5.4", default-features = false }
alloy-primitives = { version = "0.8.9", default-features = false }
alloy-consensus = { version = "0.5.4", default-features = false }
alloy-transport = { version = "0.5.4", default-features = false }
alloy-rpc-client = { version = "0.5.4", default-features = false }
alloy-node-bindings = { version = "0.5.4", default-features = false }
alloy-transport-http = { version = "0.5.4", default-features = false }
alloy-rpc-types-beacon = { version = "0.5.4", default-features = false }
alloy-eips = { version = "0.6.1", default-features = false }
alloy-serde = { version = "0.6.1", default-features = false }
alloy-provider = { version = "0.6.1", default-features = false }
alloy-primitives = { version = "0.8.11", default-features = false }
alloy-consensus = { version = "0.6.1", default-features = false }
alloy-transport = { version = "0.6.1", default-features = false }
alloy-rpc-client = { version = "0.6.1", default-features = false }
alloy-node-bindings = { version = "0.6.1", default-features = false }
alloy-transport-http = { version = "0.6.1", default-features = false }
alloy-rpc-types-beacon = { version = "0.6.1", default-features = false }

# OP Alloy
op-alloy-genesis = { version = "0.5.2", default-features = false }
op-alloy-protocol = { version = "0.5.2", default-features = false }
op-alloy-consensus = { version = "0.5.2", default-features = false }
op-alloy-genesis = { version = "0.6.2", default-features = false }
op-alloy-protocol = { version = "0.6.2", default-features = false }
op-alloy-consensus = { version = "0.6.2", default-features = false }

# Serialization
serde = { version = "1.0.213", default-features = false }
serde = { version = "1.0.214", default-features = false }
serde_json = { version = "1.0.132", default-features = false }

# Misc
lru = "0.12.4"
tokio = "1.40.0"
reqwest = "0.12.8"
lru = "0.12.5"
tokio = "1.41.0"
reqwest = "0.12.9"
async-trait = "0.1.83"
tracing = { version = "0.1.40", default-features = false }
derive_more = { version = "1.0.0", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion crates/derive/src/alloy_providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ impl ChainProvider for AlloyChainProvider {
.raw_request("debug_getRawBlock".into(), [hash])
.await
.map_err(AlloyProviderError::Rpc)?;
let block = Block::decode(&mut raw_block.as_ref()).map_err(AlloyProviderError::Rlp)?;
let block: Block<TxEnvelope> =
Block::decode(&mut raw_block.as_ref()).map_err(AlloyProviderError::Rlp)?;

let block_info = BlockInfo {
hash: block.header.hash_slow(),
Expand Down
Loading

0 comments on commit aa2c35d

Please sign in to comment.