Skip to content

Commit

Permalink
Rebuild to up-to-date protos
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e committed Oct 29, 2024
1 parent d51bcbb commit a8348bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion v4-proto-rs/src/dydxprotocol.prices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
}
Expand Down
6 changes: 3 additions & 3 deletions v4-proto-rs/src/dydxprotocol.subaccounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a8348bf

Please sign in to comment.