File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
ibc-eureka-core/ics02-client/context/src Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
use ibc_eureka_core_client_types:: Height ;
2
+ use ibc_eureka_core_commitment_types:: commitment:: CommitmentPrefix ;
2
3
use ibc_eureka_core_host_types:: error:: HostError ;
3
4
use ibc_eureka_core_host_types:: identifiers:: ClientId ;
4
5
use ibc_eureka_core_host_types:: path:: { ClientConsensusStatePath , ClientStatePath } ;
@@ -39,6 +40,11 @@ pub trait ClientValidationContext: Sized {
39
40
client_id : & ClientId ,
40
41
height : & Height ,
41
42
) -> Result < ( Timestamp , Height ) , HostError > ;
43
+
44
+ fn counterparty_client (
45
+ & self ,
46
+ client_id : & ClientId ,
47
+ ) -> Result < ( ClientId , CommitmentPrefix ) , HostError > ;
42
48
}
43
49
44
50
/// Defines the methods that all client `ExecutionContext`s (precisely the
@@ -98,6 +104,13 @@ pub trait ClientExecutionContext:
98
104
///
99
105
/// Note that this timestamp is determined by the host.
100
106
fn delete_update_meta ( & mut self , client_id : ClientId , height : Height ) -> Result < ( ) , HostError > ;
107
+
108
+ fn store_counterparty_client (
109
+ & self ,
110
+ client_id : & ClientId ,
111
+ counterparty_client_id : & ClientId ,
112
+ counterparty_prefix : & CommitmentPrefix ,
113
+ ) -> Result < ( ) , HostError > ;
101
114
}
102
115
103
116
/// An optional trait that extends the client validation context capabilities by
You can’t perform that action at this time.
0 commit comments