Skip to content

Commit

Permalink
fix: revert ibc-go commit to the wasm-v8.0.0 tag (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani authored Jan 9, 2024
1 parent c521bc8 commit 4411087
Show file tree
Hide file tree
Showing 11 changed files with 1,536 additions and 6,738 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion src/IBC_GO_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1df7a6948d1dd94b7d2dadd226bee23d3e1e667
57fcdb9a9a9db9b206f7df2f955866dc4e10fef4
4 changes: 2 additions & 2 deletions src/prost/ibc.applications.fee.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub struct MsgPayPacketFee {
/// the source port unique identifier
#[prost(string, tag = "2")]
pub source_port_id: ::prost::alloc::string::String,
/// the source channel unique identifier
/// the source channel unique identifer
#[prost(string, tag = "3")]
pub source_channel_id: ::prost::alloc::string::String,
/// account address to refund fee if necessary
Expand Down Expand Up @@ -910,7 +910,7 @@ pub struct ForwardRelayerAddress {
/// the forward relayer address
#[prost(string, tag = "1")]
pub address: ::prost::alloc::string::String,
/// unique packet identifier comprised of the channel ID, port ID and sequence
/// unique packet identifer comprised of the channel ID, port ID and sequence
#[prost(message, optional, tag = "2")]
pub packet_id: ::core::option::Option<
super::super::super::core::channel::v1::PacketId,
Expand Down
4 changes: 0 additions & 4 deletions src/prost/ibc.applications.transfer.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1434,10 +1434,6 @@ pub struct Allocation {
/// allow list of receivers, an empty allow list permits any receiver address
#[prost(string, repeated, tag = "4")]
pub allow_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// allow list of packet data keys, an empty list prohibits all packet data keys;
/// a list only with "*" permits any packet data key
#[prost(string, repeated, tag = "5")]
pub allowed_packet_data: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for Allocation {
const NAME: &'static str = "Allocation";
Expand Down
18 changes: 0 additions & 18 deletions src/prost/ibc.applications.transfer.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ impl serde::Serialize for Allocation {
if true {
len += 1;
}
if true {
len += 1;
}
let mut struct_ser = serializer.serialize_struct("ibc.applications.transfer.v1.Allocation", len)?;
if true {
struct_ser.serialize_field("sourcePort", &self.source_port)?;
Expand All @@ -34,9 +31,6 @@ impl serde::Serialize for Allocation {
if true {
struct_ser.serialize_field("allowList", &self.allow_list)?;
}
if true {
struct_ser.serialize_field("allowedPacketData", &self.allowed_packet_data)?;
}
struct_ser.end()
}
}
Expand All @@ -55,8 +49,6 @@ impl<'de> serde::Deserialize<'de> for Allocation {
"spendLimit",
"allow_list",
"allowList",
"allowed_packet_data",
"allowedPacketData",
];

#[allow(clippy::enum_variant_names)]
Expand All @@ -65,7 +57,6 @@ impl<'de> serde::Deserialize<'de> for Allocation {
SourceChannel,
SpendLimit,
AllowList,
AllowedPacketData,
}
impl<'de> serde::Deserialize<'de> for GeneratedField {
fn deserialize<D>(deserializer: D) -> core::result::Result<GeneratedField, D::Error>
Expand All @@ -91,7 +82,6 @@ impl<'de> serde::Deserialize<'de> for Allocation {
"sourceChannel" | "source_channel" => Ok(GeneratedField::SourceChannel),
"spendLimit" | "spend_limit" => Ok(GeneratedField::SpendLimit),
"allowList" | "allow_list" => Ok(GeneratedField::AllowList),
"allowedPacketData" | "allowed_packet_data" => Ok(GeneratedField::AllowedPacketData),
_ => Err(serde::de::Error::unknown_field(value, FIELDS)),
}
}
Expand All @@ -115,7 +105,6 @@ impl<'de> serde::Deserialize<'de> for Allocation {
let mut source_channel__ = None;
let mut spend_limit__ = None;
let mut allow_list__ = None;
let mut allowed_packet_data__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::SourcePort => {
Expand All @@ -142,20 +131,13 @@ impl<'de> serde::Deserialize<'de> for Allocation {
}
allow_list__ = Some(map_.next_value()?);
}
GeneratedField::AllowedPacketData => {
if allowed_packet_data__.is_some() {
return Err(serde::de::Error::duplicate_field("allowedPacketData"));
}
allowed_packet_data__ = Some(map_.next_value()?);
}
}
}
Ok(Allocation {
source_port: source_port__.unwrap_or_default(),
source_channel: source_channel__.unwrap_or_default(),
spend_limit: spend_limit__.unwrap_or_default(),
allow_list: allow_list__.unwrap_or_default(),
allowed_packet_data: allowed_packet_data__.unwrap_or_default(),
})
}
}
Expand Down
Loading

0 comments on commit 4411087

Please sign in to comment.