-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move rust fixtures into a single file per test
- Loading branch information
1 parent
a4ac4aa
commit 68a50d2
Showing
24 changed files
with
852 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
packages/ethereum-light-client/src/test/commitment_proof_fixture.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::{ | ||
client_state::ClientState, | ||
consensus_state::ConsensusState, | ||
types::{height::Height, light_client::Header, storage_proof::StorageProof}, | ||
}; | ||
|
||
// TODO: Remove this file once these types are in a separate package #143 | ||
|
||
#[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] | ||
pub enum DataType { | ||
InitialState(Box<InitialState>), | ||
CommitmentProof(Box<CommitmentProof>), | ||
UpdateClient(Box<UpdateClient>), | ||
} | ||
|
||
#[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] | ||
pub struct InitialState { | ||
pub client_state: ClientState, | ||
pub consensus_state: ConsensusState, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] | ||
pub struct CommitmentProof { | ||
#[serde(with = "ethereum_utils::base64")] | ||
pub path: Vec<u8>, | ||
pub storage_proof: StorageProof, | ||
pub proof_height: Height, | ||
pub client_state: ClientState, | ||
pub consensus_state: ConsensusState, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] | ||
pub struct UpdateClient { | ||
pub client_state: ClientState, | ||
pub consensus_state: ConsensusState, | ||
pub updates: Vec<Header>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pub mod commitment_proof_fixture; | ||
pub mod fixture_types; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.