Skip to content

Commit

Permalink
cosmos-sdk-proto: add more IBC related names (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
penso authored Feb 1, 2024
1 parent bd3a7d9 commit b79a4fa
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
59 changes: 58 additions & 1 deletion cosmos-sdk-proto/src/type_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,62 @@ macro_rules! impl_name {
};
}

impl_name!(
ibc::core::connection::v1::MsgConnectionOpenTry,
"ibc.core.connection.v1",
"MsgConnectionOpenTry"
);
impl_name!(
ibc::core::connection::v1::MsgConnectionOpenInit,
"ibc.core.connection.v1",
"MsgConnectionOpenInit"
);
impl_name!(
ibc::core::connection::v1::MsgConnectionOpenAck,
"ibc.core.connection.v1",
"MsgConnectionOpenAck"
);
impl_name!(
ibc::core::connection::v1::MsgConnectionOpenConfirm,
"ibc.core.connection.v1",
"MsgConnectionOpenConfirm"
);
impl_name!(
ibc::core::channel::v1::MsgChannelOpenInit,
"ibc.core.channel.v1",
"MsgChannelOpenInit"
);

impl_name!(
ibc::core::client::v1::ClientUpdateProposal,
"ibc.core.client.v1",
"ClientUpdateProposal"
);
impl_name!(
ibc::core::client::v1::MsgCreateClient,
"ibc.core.client.v1",
"MsgCreateClient"
);
impl_name!(
ibc::core::client::v1::MsgUpdateClient,
"ibc.core.client.v1",
"MsgUpdateClient"
);

impl_name!(
ibc::core::channel::v1::MsgChannelCloseConfirm,
"ibc.core.channel.v1",
"MsgChannelCloseConfirm"
);
impl_name!(
ibc::core::channel::v1::MsgChannelOpenConfirm,
"ibc.core.channel.v1",
"MsgChannelOpenConfirm"
);
impl_name!(
ibc::core::channel::v1::MsgChannelOpenTry,
"ibc.core.channel.v1",
"MsgChannelOpenTry"
);
impl_name!(
ibc::core::channel::v1::MsgAcknowledgement,
"ibc.core.channel.v1",
Expand Down Expand Up @@ -73,6 +113,17 @@ impl_name!(
"ParameterChangeProposal"
);

impl_name!(
cosmos::gov::v1::MsgSubmitProposal,
"cosmos.gov.v1",
"MsgSubmitProposal"
);
impl_name!(cosmos::gov::v1::MsgDeposit, "cosmos.gov.v1", "MsgDeposit");
impl_name!(
cosmos::gov::v1::MsgVoteWeighted,
"cosmos.gov.v1",
"MsgVoteWeighted"
);
impl_name!(
cosmos::gov::v1beta1::TextProposal,
"cosmos.gov.v1beta1",
Expand All @@ -88,6 +139,7 @@ impl_name!(
"cosmos.gov.v1beta1",
"MsgDeposit"
);
impl_name!(cosmos::gov::v1::MsgVote, "cosmos.gov.v1", "MsgVote");
impl_name!(
cosmos::gov::v1beta1::MsgVote,
"cosmos.gov.v1beta1",
Expand Down Expand Up @@ -303,6 +355,11 @@ impl_name!(
"ModuleAccount"
);

impl_name!(
cosmos::authz::v1beta1::MsgGrant,
"cosmos.authz.v1beta1",
"MsgGrant"
);
impl_name!(
cosmos::authz::v1beta1::MsgExec,
"cosmos.authz.v1beta1",
Expand Down
2 changes: 1 addition & 1 deletion cosmrs/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Error types

pub use eyre::{Report, Result};
pub use eyre::Result;

use tendermint::Hash;
use thiserror::Error;
Expand Down

0 comments on commit b79a4fa

Please sign in to comment.