Skip to content

Commit dd272af

Browse files
authored
Move Linea light client types (#3136)
- refactor(linea-light-client): move types - chore: fmt - fix(unionlabs): remove invalid import - fix(linea): imports - fix(linea): imports 2 - fix(linea): fix final rename errors
2 parents 7f856c5 + 427d060 commit dd272af

File tree

18 files changed

+355
-310
lines changed

18 files changed

+355
-310
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ members = [
7575
"light-clients/tendermint-light-client/types",
7676

7777
"light-clients/linea-light-client",
78+
"light-clients/linea-light-client/types",
7879

7980
"tools/generate-rust-sol-bindings",
8081
"tools/devnet-utils",
@@ -173,8 +174,9 @@ tendermint-light-client = { path = "light-clients/tendermint-light-client"
173174
tendermint-light-client-types = { path = "light-clients/tendermint-light-client/types", default-features = false }
174175
tendermint-verifier = { path = "lib/tendermint-verifier", default-features = false }
175176

176-
linea-verifier = { path = "lib/linea-verifier", default-features = false }
177-
linea-zktrie = { path = "lib/linea-zktrie", default-features = false }
177+
linea-light-client-types = { path = "light-clients/linea-light-client/types", default-features = false }
178+
linea-verifier = { path = "lib/linea-verifier", default-features = false }
179+
linea-zktrie = { path = "lib/linea-zktrie", default-features = false }
178180

179181
gnark-key-parser = { path = "lib/gnark-key-parser", default-features = false }
180182
gnark-mimc = { path = "lib/gnark-mimc", default-features = false }

lib/linea-verifier/Cargo.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ workspace = true
1212
test-include = ["lib/scroll-verifier/tests"]
1313

1414
[dependencies]
15-
ethereum-verifier = { workspace = true }
16-
ethers-core = { workspace = true }
17-
gnark-mimc = { workspace = true }
18-
hex = { workspace = true }
19-
hex-literal = { workspace = true }
20-
linea-zktrie = { workspace = true }
21-
rlp = { workspace = true }
22-
scroll-codec = { workspace = true }
23-
serde = { workspace = true }
24-
serde-utils = { workspace = true }
25-
serde_json = { workspace = true }
26-
sha3 = { workspace = true }
27-
thiserror = { workspace = true }
28-
unionlabs = { workspace = true }
15+
ethereum-verifier = { workspace = true }
16+
ethers-core = { workspace = true }
17+
gnark-mimc = { workspace = true }
18+
hex = { workspace = true }
19+
hex-literal = { workspace = true }
20+
linea-light-client-types = { workspace = true }
21+
linea-zktrie = { workspace = true }
22+
rlp = { workspace = true }
23+
scroll-codec = { workspace = true }
24+
serde = { workspace = true }
25+
serde-utils = { workspace = true }
26+
serde_json = { workspace = true }
27+
sha3 = { workspace = true }
28+
thiserror = { workspace = true }
29+
unionlabs = { workspace = true }

lib/linea-verifier/src/lib.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use core::fmt::Debug;
22

33
use ethereum_verifier::verify::{verify_account_storage_root, verify_storage_proof};
44
use gnark_mimc::new_mimc_constants_bls12_377;
5+
use linea_light_client_types::{ClientState, Header};
56
use unionlabs::{
67
ethereum::slot::{MappingKey, Slot},
78
hash::H256,
8-
ibc::lightclients::linea::{client_state::ClientState, header::Header},
99
linea::account::ZkAccount,
1010
uint::U256,
1111
};
@@ -93,13 +93,8 @@ pub fn state_root_hashes_mapping_key(slot: &U256, l2_block_number: &U256) -> U25
9393
#[cfg(test)]
9494
mod tests {
9595
use hex_literal::hex;
96-
use unionlabs::{
97-
ibc::{
98-
core::client::height::Height,
99-
lightclients::linea::{client_state::ClientState, header::Header},
100-
},
101-
uint::U256,
102-
};
96+
use linea_light_client_types::{ClientState, Header};
97+
use unionlabs::{ibc::core::client::height::Height, uint::U256};
10398

10499
use crate::{state_root_hashes_mapping_key, verify_header};
105100

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pub mod ethereum;
22
pub mod evm_in_cosmos;
3-
pub mod linea;
43
pub mod movement;
54
pub mod scroll;
65
pub mod wasm;

lib/unionlabs/src/ibc/lightclients/linea.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/unionlabs/src/ibc/lightclients/linea/client_state.rs

Lines changed: 0 additions & 123 deletions
This file was deleted.

lib/unionlabs/src/ibc/lightclients/linea/consensus_state.rs

Lines changed: 0 additions & 44 deletions
This file was deleted.

lib/unionlabs/src/ibc/lightclients/linea/header.rs

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)