Skip to content

Commit 096aa08

Browse files
committed
counterparty client methods
1 parent 4d3ec53 commit 096aa08

File tree

1 file changed

+13
-0
lines changed
  • ibc-eureka-core/ics02-client/context/src

1 file changed

+13
-0
lines changed

ibc-eureka-core/ics02-client/context/src/context.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use ibc_eureka_core_client_types::Height;
2+
use ibc_eureka_core_commitment_types::commitment::CommitmentPrefix;
23
use ibc_eureka_core_host_types::error::HostError;
34
use ibc_eureka_core_host_types::identifiers::ClientId;
45
use ibc_eureka_core_host_types::path::{ClientConsensusStatePath, ClientStatePath};
@@ -39,6 +40,11 @@ pub trait ClientValidationContext: Sized {
3940
client_id: &ClientId,
4041
height: &Height,
4142
) -> Result<(Timestamp, Height), HostError>;
43+
44+
fn counterparty_client(
45+
&self,
46+
client_id: &ClientId,
47+
) -> Result<(ClientId, CommitmentPrefix), HostError>;
4248
}
4349

4450
/// Defines the methods that all client `ExecutionContext`s (precisely the
@@ -98,6 +104,13 @@ pub trait ClientExecutionContext:
98104
///
99105
/// Note that this timestamp is determined by the host.
100106
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>;
101114
}
102115

103116
/// An optional trait that extends the client validation context capabilities by

0 commit comments

Comments
 (0)