Skip to content

Commit

Permalink
fix: did a manual fix for coins that are being labelled as strings an…
Browse files Browse the repository at this point in the history
…d not marshalling as coin correctly
  • Loading branch information
maxrobot committed Oct 8, 2024
1 parent a092d5b commit f4d468a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/injective-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT OR Apache-2.0"
name = "injective-std"
readme = "README.md"
repository = "https://github.com/InjectiveLabs/cw-injective/tree/dev/packages/injective-std"
version = "1.13.0"
version = "1.13.2-auction"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
23 changes: 17 additions & 6 deletions packages/injective-std/src/types/injective/auction/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ pub struct Params {
pub struct Bid {
#[prost(string, tag = "1")]
pub bidder: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
// #[prost(string, tag = "2")]
// pub amount: ::prost::alloc::string::String,
// NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)]
Expand All @@ -32,6 +35,8 @@ pub struct LastAuctionResult {
pub winner: ::prost::alloc::string::String,
/// amount describes the amount the winner get from the auction
// #[prost(string, tag = "2")]
// pub amount: ::prost::alloc::string::String,
// NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
/// round defines the round number of auction
Expand All @@ -50,8 +55,11 @@ pub struct EventBid {
#[prost(string, tag = "1")]
pub bidder: ::prost::alloc::string::String,
/// amount describes the amount the bidder put on the auction
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
// #[prost(string, tag = "2")]
// pub amount: ::prost::alloc::string::String,
// NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
/// round defines the round number of auction
#[prost(uint64, tag = "3")]
#[serde(
Expand All @@ -68,8 +76,11 @@ pub struct EventAuctionResult {
#[prost(string, tag = "1")]
pub winner: ::prost::alloc::string::String,
/// amount describes the amount the winner get from the auction
#[prost(string, tag = "2")]
pub amount: ::prost::alloc::string::String,
// #[prost(string, tag = "2")]
// pub amount: ::prost::alloc::string::String,
// NOTE: THIS IS A FIX FOR RUST BINDINGS, PLEASE COPY IN FUTURE RELEASES
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
/// round defines the round number of auction
#[prost(uint64, tag = "3")]
#[serde(
Expand Down

0 comments on commit f4d468a

Please sign in to comment.