mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
remove dependency of eth_types from zkevm-circuits
This commit is contained in:
1
prover_rust/Cargo.lock
generated
1
prover_rust/Cargo.lock
generated
@@ -3360,7 +3360,6 @@ dependencies = [
|
||||
"base64 0.13.1",
|
||||
"env_logger 0.11.3",
|
||||
"eth-keystore",
|
||||
"eth-types 0.1.0 (git+https://github.com/scroll-tech/zkevm-circuits.git?tag=v0.11.0rc2)",
|
||||
"ethers-core 2.0.7 (git+https://github.com/scroll-tech/ethers-rs.git?branch=v2.0.7)",
|
||||
"ethers-providers 2.0.7 (git+https://github.com/scroll-tech/ethers-rs.git?branch=v2.0.7)",
|
||||
"futures",
|
||||
|
||||
@@ -31,7 +31,6 @@ ethers-providers = { git = "https://github.com/scroll-tech/ethers-rs.git", branc
|
||||
halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.1" }
|
||||
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features = false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
|
||||
prover = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "v0.10", default-features = false, features = ["parallel_syn", "scroll", "shanghai"] }
|
||||
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.11.0rc2" }
|
||||
prover_next = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.11.0rc2", package = "prover", default-features = false, features = ["parallel_syn", "scroll"] }
|
||||
base64 = "0.13.1"
|
||||
reqwest = "0.12.4"
|
||||
|
||||
@@ -3,7 +3,7 @@ use anyhow::Result;
|
||||
use ethers_core::types::BlockNumber;
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
use eth_types::{H256, U64};
|
||||
use ethers_core::types::{H256, U64};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use ethers_providers::{Http, Provider};
|
||||
@@ -32,12 +32,12 @@ pub fn get_block_number(block_trace: &ProverBlockTrace) -> Option<u64> {
|
||||
pub type TxHash = H256;
|
||||
|
||||
/// this struct is tracked to https://github.com/scroll-tech/go-ethereum/blob/0f0cd99f7a2e/core/types/block.go#Header
|
||||
/// the detail fields of struct are not 100% same as eth_types::Block so this needs to be changed in
|
||||
/// the detail fields of struct are not 100% same as ethers_core::types::Block so this needs to be changed in
|
||||
/// some time currently only the `number` field is required
|
||||
#[derive(Debug, Deserialize, Serialize, Default)]
|
||||
pub struct Header {
|
||||
#[serde(flatten)]
|
||||
block: eth_types::Block<TxHash>,
|
||||
block: ethers_core::types::Block<TxHash>,
|
||||
}
|
||||
|
||||
impl Header {
|
||||
|
||||
@@ -10,7 +10,7 @@ use ethers_core::{
|
||||
types::Signature as EthSignature,
|
||||
};
|
||||
|
||||
use eth_types::{H256, U256};
|
||||
use ethers_core::types::{H256, U256};
|
||||
use hex::ToHex;
|
||||
use tiny_keccak::{Hasher, Keccak};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::{bail, Error, Ok, Result};
|
||||
use eth_types::U64;
|
||||
use ethers_core::types::U64;
|
||||
use once_cell::sync::Lazy;
|
||||
use std::{cell::RefCell, cmp::Ordering, env, rc::Rc};
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
use core::fmt;
|
||||
|
||||
use eth_types::H256;
|
||||
use ethers_core::types::H256;
|
||||
use prover::{BatchProof, ChunkHash, ChunkProof};
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user