-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split voyager ibc state query rpc and use Bytes more (#3194)
- Loading branch information
Showing
41 changed files
with
1,384 additions
and
976 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
use macros::model; | ||
|
||
use crate::ibc::core::{channel::packet::Packet, client::height::Height}; | ||
use crate::{ | ||
bytes::Bytes, | ||
ibc::core::{channel::packet::Packet, client::height::Height}, | ||
}; | ||
|
||
#[model(proto(raw(protos::ibc::core::channel::v1::MsgAcknowledgement)))] | ||
pub struct MsgAcknowledgement { | ||
pub packet: Packet, | ||
#[serde(with = "::serde_utils::hex_string")] | ||
#[debug(wrap = ::serde_utils::fmt::DebugAsHex)] | ||
pub acknowledgement: Vec<u8>, | ||
#[serde(with = "::serde_utils::hex_string")] | ||
#[debug(wrap = ::serde_utils::fmt::DebugAsHex)] | ||
pub proof_acked: Vec<u8>, | ||
pub acknowledgement: Bytes, | ||
pub proof_acked: Bytes, | ||
pub proof_height: Height, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
use macros::model; | ||
|
||
use crate::ibc::core::{channel::packet::Packet, client::height::Height}; | ||
use crate::{ | ||
bytes::Bytes, | ||
ibc::core::{channel::packet::Packet, client::height::Height}, | ||
}; | ||
|
||
#[model(proto(raw(protos::ibc::core::channel::v1::MsgRecvPacket)))] | ||
pub struct MsgRecvPacket { | ||
pub packet: Packet, | ||
#[serde(with = "::serde_utils::hex_string")] | ||
#[debug(wrap = ::serde_utils::fmt::DebugAsHex)] | ||
pub proof_commitment: Vec<u8>, | ||
pub proof_commitment: Bytes, | ||
pub proof_height: Height, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
use macros::model; | ||
|
||
use crate::bytes::Bytes; | ||
|
||
#[model(proto(raw(protos::ibc::core::client::v1::MsgCreateClient)))] | ||
pub struct MsgCreateClient { | ||
#[serde(with = "::serde_utils::hex_string")] | ||
#[debug(wrap = ::serde_utils::fmt::DebugAsHex)] | ||
pub client_state: Vec<u8>, | ||
#[serde(with = "::serde_utils::hex_string")] | ||
#[debug(wrap = ::serde_utils::fmt::DebugAsHex)] | ||
pub consensus_state: Vec<u8>, | ||
pub client_state: Bytes, | ||
pub consensus_state: Bytes, | ||
} |
Oops, something went wrong.