From a8348bf5749b36f481667df93021b0ebcc50b6fd Mon Sep 17 00:00:00 2001 From: v0-e Date: Tue, 29 Oct 2024 13:26:33 +0000 Subject: [PATCH] Rebuild to up-to-date protos --- v4-proto-rs/src/dydxprotocol.prices.rs | 6 +++++- v4-proto-rs/src/dydxprotocol.subaccounts.rs | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/v4-proto-rs/src/dydxprotocol.prices.rs b/v4-proto-rs/src/dydxprotocol.prices.rs index 6bca81b820..f0ce9775d2 100644 --- a/v4-proto-rs/src/dydxprotocol.prices.rs +++ b/v4-proto-rs/src/dydxprotocol.prices.rs @@ -16,12 +16,14 @@ pub struct MarketParam { /// represents ``$10,000`. Therefore `10 ^ Exponent` represents the smallest /// price step (in dollars) that can be recorded. /// - /// Deprecated since v7.1.x. This value is now determined from the marketmap. + /// Deprecated since v8.x. This value is now determined from the marketmap. #[deprecated] #[prost(sint32, tag = "3")] pub exponent: i32, /// The minimum number of exchanges that should be reporting a live price for /// a price update to be considered valid. + /// + /// Deprecated since v8.x. This value is now determined from the marketmap. #[prost(uint32, tag = "4")] pub min_exchanges: u32, /// The minimum allowable change in `price` value that would cause a price @@ -30,6 +32,8 @@ pub struct MarketParam { pub min_price_change_ppm: u32, /// A string of json that encodes the configuration for resolving the price /// of this market on various exchanges. + /// + /// Deprecated since v8.x. This is now determined from the marketmap. #[prost(string, tag = "6")] pub exchange_config_json: ::prost::alloc::string::String, } diff --git a/v4-proto-rs/src/dydxprotocol.subaccounts.rs b/v4-proto-rs/src/dydxprotocol.subaccounts.rs index 54d95c7857..6e2454fdf4 100644 --- a/v4-proto-rs/src/dydxprotocol.subaccounts.rs +++ b/v4-proto-rs/src/dydxprotocol.subaccounts.rs @@ -145,9 +145,9 @@ pub struct SubaccountPerpetualPosition { /// The `Id` of the `Perpetual`. #[prost(uint32, tag = "1")] pub perpetual_id: u32, - /// The size of the position in base quantums. - #[prost(uint64, tag = "2")] - pub quantums: u64, + /// The size of the position in base quantums. Negative means short. + #[prost(int64, tag = "2")] + pub quantums: i64, } impl ::prost::Name for SubaccountPerpetualPosition { const NAME: &'static str = "SubaccountPerpetualPosition";