@@ -9,14 +9,14 @@ use tendermint_proto::Protobuf;
9
9
10
10
use ibc_proto:: ibc:: lightclients:: tendermint:: v1:: ClientState as RawClientState ;
11
11
12
- use crate :: ics02_client :: client_state :: AnyClientState ;
13
- use crate :: ics02_client :: client_type :: ClientType ;
14
- use crate :: ics02_client:: error :: Error as Ics02Error ;
15
- use crate :: ics02_client:: trust_threshold :: TrustThreshold ;
16
- use crate :: ics07_tendermint :: error:: Error ;
17
- use crate :: ics07_tendermint :: header :: Header ;
18
- use crate :: ics23_commitment:: specs:: ProofSpecs ;
19
- use crate :: ics24_host:: identifier:: ChainId ;
12
+ use crate :: clients :: ics07_tendermint :: error :: Error ;
13
+ use crate :: clients :: ics07_tendermint :: header :: Header ;
14
+ use crate :: core :: ics02_client:: client_state :: AnyClientState ;
15
+ use crate :: core :: ics02_client:: client_type :: ClientType ;
16
+ use crate :: core :: ics02_client :: error:: Error as Ics02Error ;
17
+ use crate :: core :: ics02_client :: trust_threshold :: TrustThreshold ;
18
+ use crate :: core :: ics23_commitment:: specs:: ProofSpecs ;
19
+ use crate :: core :: ics24_host:: identifier:: ChainId ;
20
20
use crate :: timestamp:: ZERO_DURATION ;
21
21
use crate :: Height ;
22
22
@@ -163,7 +163,7 @@ impl ClientState {
163
163
}
164
164
}
165
165
166
- impl crate :: ics02_client:: client_state:: ClientState for ClientState {
166
+ impl crate :: core :: ics02_client:: client_state:: ClientState for ClientState {
167
167
fn chain_id ( & self ) -> ChainId {
168
168
self . chain_id . clone ( )
169
169
}
@@ -260,24 +260,25 @@ mod tests {
260
260
261
261
use tendermint_rpc:: endpoint:: abci_query:: AbciQuery ;
262
262
263
- use crate :: ics02_client :: trust_threshold :: TrustThreshold ;
264
- use crate :: ics07_tendermint :: client_state :: { AllowUpdate , ClientState } ;
265
- use crate :: ics24_host:: identifier:: ChainId ;
263
+ use crate :: clients :: ics07_tendermint :: client_state :: { AllowUpdate , ClientState } ;
264
+ use crate :: core :: ics02_client :: trust_threshold :: TrustThreshold ;
265
+ use crate :: core :: ics24_host:: identifier:: ChainId ;
266
266
use crate :: test:: test_serialization_roundtrip;
267
267
use crate :: timestamp:: ZERO_DURATION ;
268
268
use crate :: Height ;
269
269
270
270
#[ test]
271
271
fn serialization_roundtrip_no_proof ( ) {
272
- let json_data = include_str ! ( "../../tests/support/query/serialization/client_state.json" ) ;
272
+ let json_data =
273
+ include_str ! ( "../../../tests/support/query/serialization/client_state.json" ) ;
273
274
println ! ( "json_data: {:?}" , json_data) ;
274
275
test_serialization_roundtrip :: < AbciQuery > ( json_data) ;
275
276
}
276
277
277
278
#[ test]
278
279
fn serialization_roundtrip_with_proof ( ) {
279
280
let json_data =
280
- include_str ! ( "../../tests/support/query/serialization/client_state_proof.json" ) ;
281
+ include_str ! ( "../../../ tests/support/query/serialization/client_state_proof.json" ) ;
281
282
println ! ( "json_data: {:?}" , json_data) ;
282
283
test_serialization_roundtrip :: < AbciQuery > ( json_data) ;
283
284
}
@@ -396,10 +397,10 @@ pub mod test_util {
396
397
397
398
use tendermint:: block:: Header ;
398
399
399
- use crate :: ics02_client :: client_state:: AnyClientState ;
400
- use crate :: ics02_client:: height :: Height ;
401
- use crate :: ics07_tendermint :: client_state :: { AllowUpdate , ClientState } ;
402
- use crate :: ics24_host:: identifier:: ChainId ;
400
+ use crate :: clients :: ics07_tendermint :: client_state:: { AllowUpdate , ClientState } ;
401
+ use crate :: core :: ics02_client:: client_state :: AnyClientState ;
402
+ use crate :: core :: ics02_client :: height :: Height ;
403
+ use crate :: core :: ics24_host:: identifier:: ChainId ;
403
404
404
405
pub fn get_dummy_tendermint_client_state ( tm_header : Header ) -> AnyClientState {
405
406
AnyClientState :: Tendermint (
0 commit comments