@uniswap/client-trading 0.12.13 → 0.12.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7818,6 +7818,10 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
7818
7818
  */
7819
7819
  status: MarginPositionStatus;
7820
7820
  /**
7821
+ * SHORT when the collateral is a USD stablecoin the chain's margin config
7822
+ * lists and the debt is not, so the debt is the exposure; every other
7823
+ * position is a LONG of its collateral.
7824
+ *
7821
7825
  * @generated from field: trading.v1.MarginDirection direction = 2;
7822
7826
  */
7823
7827
  direction: MarginDirection;
@@ -7830,6 +7834,8 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
7830
7834
  */
7831
7835
  counterToken?: MarginTokenMetadata | undefined;
7832
7836
  /**
7837
+ * Raw exposure-token units: the collateral on a LONG, the debt on a SHORT.
7838
+ *
7833
7839
  * @generated from field: string size = 5;
7834
7840
  */
7835
7841
  size: string;
@@ -7993,7 +7999,12 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
7993
7999
  /**
7994
8000
  * TERMINAL only, and likewise cost-basis derived. `realized_pnl` is raw
7995
8001
  * collateral-token units: collateral returned minus collateral deposited.
7996
- * On a terminal row `size` is what the position held when it closed.
8002
+ * On a terminal LONG `size` is the collateral it held when it closed. The
8003
+ * store keeps no debt at the close, so on a terminal SHORT it is the debt
8004
+ * drawn over the position's life, before interest: 0 when the store saw no
8005
+ * draw. It overstates the debt held at the close after any leverage
8006
+ * decrease or partial liquidation, and an increase after one adds its draw
8007
+ * on top.
7997
8008
  *
7998
8009
  * @generated from field: optional int64 closed_at = 20;
7999
8010
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.12.13",
3
+ "version": "0.12.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },