-
Notifications
You must be signed in to change notification settings - Fork 24
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
F/dummy contract auction #246
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
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. Why -auction ? 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. because it's got some hacks for the auction module |
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>, | ||
Comment on lines
+23
to
+27
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. Changing field type may cause backward compatibility issues Modifying the |
||
} | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive(Clone, PartialEq, Eq, ::prost::Message, ::serde::Serialize, ::serde::Deserialize, ::schemars::JsonSchema, CosmwasmExt)] | ||
|
@@ -31,8 +34,11 @@ pub struct LastAuctionResult { | |
#[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>, | ||
Comment on lines
+37
to
+41
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. Changing field type may cause backward compatibility issues The |
||
/// round defines the round number of auction | ||
#[prost(uint64, tag = "3")] | ||
#[serde( | ||
|
@@ -49,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>, | ||
Comment on lines
+58
to
+62
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. Changing field type may cause backward compatibility issues The |
||
/// round defines the round number of auction | ||
#[prost(uint64, tag = "3")] | ||
#[serde( | ||
|
@@ -67,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>, | ||
Comment on lines
+79
to
+83
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. Changing field type may cause backward compatibility issues The |
||
/// round defines the round number of auction | ||
#[prost(uint64, tag = "3")] | ||
#[serde( | ||
|
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.
💡 Codebase verification
Issues Found:
Malformed Version in Cargo.toml: The
injective-std
dependency inCargo.toml
has an incorrect version specification:This should be corrected to:
Missing
injective-std
Dependencies: The followingCargo.toml
files are missing theinjective-std
dependency and should be updated accordingly:contracts/atomic-order-example/Cargo.toml
contracts/dummy/Cargo.toml
contracts/injective-cosmwasm-mock/Cargo.toml
contracts/injective-cosmwasm-stargate-example/Cargo.toml
packages/injective-cosmwasm/Cargo.toml
packages/injective-math/Cargo.toml
packages/injective-std/Cargo.toml
packages/injective-std-derive/Cargo.toml
packages/injective-testing/Cargo.toml
Please address these issues to ensure consistency and prevent potential build or runtime errors.
🔗 Analysis chain
LGTM: Version update for injective-std looks good.
The update of
injective-std
to version "1.13.2-auction" aligns with the PR objectives, suggesting improvements to auction-related functionality. This minor version bump should maintain compatibility while introducing new features or fixes.To ensure consistency across the project, please run the following script:
This script will help identify any inconsistencies in the
injective-std
version across the project and highlight direct imports that might need attention due to the version change.This script will iterate through all
Cargo.toml
files in the project, extract the version ofinjective-std
, and report any instances where the version does not match1.13.2-auction
. This will help ensure that the dependency update is consistent across the entire codebase.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1373
Script:
Length of output: 2958