Skip to content

Commit

Permalink
chore(voyager): support multiple client types for movement
Browse files Browse the repository at this point in the history
  • Loading branch information
aeryz committed Jan 22, 2025
1 parent 321e4ec commit 7fe84ae
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 18 deletions.
77 changes: 63 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ members = [
"lib/state-lens-ics23-mpt-light-client-types",
"lib/state-lens-ics23-mpt-light-client-types",
"lib/state-lens-ics23-ics23-light-client-types",
"lib/state-lens-ics23-move-light-client-types",
"lib/state-lens-ics23-smt-light-client-types",

# these will all be re enabled and updated once ethereum-light-client is updated

Expand Down Expand Up @@ -120,12 +120,14 @@ members = [
"voyager/modules/client/tendermint",
"voyager/modules/client/state-lens/ics23-mpt",
"voyager/modules/client/state-lens/ics23-ics23",
"voyager/modules/client/state-lens/ics23-smt",

"voyager/modules/client-bootstrap/cometbls",
"voyager/modules/client-bootstrap/ethereum",
"voyager/modules/client-bootstrap/movement",
"voyager/modules/client-bootstrap/tendermint",
"voyager/modules/client-bootstrap/state-lens/ics23-mpt",
"voyager/modules/client-bootstrap/state-lens/ics23-smt",
"voyager/modules/client-bootstrap/state-lens/ics23-ics23",

"voyager/modules/consensus/berachain",
Expand Down Expand Up @@ -225,7 +227,7 @@ scroll-rpc = { path = "lib/scroll-rpc", default-features = fal

state-lens-ics23-ics23-light-client-types = { path = "lib/state-lens-ics23-ics23-light-client-types", default-features = false }
state-lens-ics23-mpt-light-client-types = { path = "lib/state-lens-ics23-mpt-light-client-types", default-features = false }
state-lens-ics23-move-light-client-types = { path = "lib/state-lens-ics23-move-light-client-types", default-features = false }
state-lens-ics23-smt-light-client-types = { path = "lib/state-lens-ics23-smt-light-client-types", default-features = false }

tendermint-light-client = { path = "cosmwasm/ibc-union/light-clients/tendermint", default-features = false }
tendermint-light-client-types = { path = "lib/tendermint-light-client-types", default-features = false }
Expand Down
8 changes: 6 additions & 2 deletions voyager/modules/state/movement/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@ impl Module {
#[async_trait]
impl StateModuleServer<IbcUnion> for Module {
#[instrument(skip_all, fields(chain_id = %self.chain_id))]
async fn client_info(&self, _: &Extensions, _client_id: u32) -> RpcResult<ClientInfo> {
async fn client_info(&self, _: &Extensions, client_id: u32) -> RpcResult<ClientInfo> {
let client_type = self
.client_id_to_type(self.ibc_handler_address.into(), None, (client_id,))
.await
.map_err(rest_error_to_rpc_error)?;
Ok(ClientInfo {
client_type: ClientType::new(ClientType::COMETBLS_GROTH16),
client_type: ClientType::new(client_type),
ibc_interface: IbcInterface::new(IbcInterface::IBC_MOVE_APTOS),
metadata: Default::default(),
})
Expand Down

0 comments on commit 7fe84ae

Please sign in to comment.