-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cosmos cleanup 0 #2876
Cosmos cleanup 0 #2876
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
use hyperlane_core::{HyperlaneMessage, RawHyperlaneMessage}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct ModulesAndThresholdRequest { | ||
pub modules_and_threshold: ModulesAndThresholdRequestInner, | ||
modules_and_threshold: ModulesAndThresholdRequestInner, | ||
} | ||
|
||
impl ModulesAndThresholdRequest { | ||
pub fn new(message: &HyperlaneMessage) -> Self { | ||
Self { | ||
modules_and_threshold: ModulesAndThresholdRequestInner { | ||
message: hex::encode(RawHyperlaneMessage::from(message)), | ||
}, | ||
} | ||
} | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct ModulesAndThresholdRequestInner { | ||
pub message: String, // hexbinary | ||
struct ModulesAndThresholdRequestInner { | ||
/// Hex-encoded Hyperlane message | ||
pub message: String, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one of my comments in the big PR is to stop using these strings entirely, curious to hear what you think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah I like that |
||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct ModulesAndThresholdResponse { | ||
pub threshold: u8, | ||
/// Bech32-encoded module addresses | ||
pub modules: Vec<String>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicee