@injectivelabs/indexer-proto-ts-v2 1.18.23 → 1.18.24

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.
@@ -1488,6 +1488,30 @@ export interface DerivativePositionV2 {
1488
1488
  * @generated from protobuf field: string upnl = 17
1489
1489
  */
1490
1490
  upnl: string;
1491
+ /**
1492
+ * Leverage at the time the position was opened
1493
+ *
1494
+ * @generated from protobuf field: string initial_leverage = 18
1495
+ */
1496
+ initialLeverage: string;
1497
+ /**
1498
+ * Margin at the time the position was opened, in USD
1499
+ *
1500
+ * @generated from protobuf field: string initial_margin = 19
1501
+ */
1502
+ initialMargin: string;
1503
+ /**
1504
+ * Entry price at the time the position was opened, in USD
1505
+ *
1506
+ * @generated from protobuf field: string initial_entry_price = 20
1507
+ */
1508
+ initialEntryPrice: string;
1509
+ /**
1510
+ * Quantity at the time the position was opened
1511
+ *
1512
+ * @generated from protobuf field: string initial_quantity = 21
1513
+ */
1514
+ initialQuantity: string;
1491
1515
  }
1492
1516
  /**
1493
1517
  * @generated from protobuf message injective_derivative_exchange_rpc.LiquidablePositionsRequest
@@ -6004,7 +6028,11 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
6004
6028
  { no: 14, name: "funding_sum", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6005
6029
  { no: 15, name: "cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6006
6030
  { no: 16, name: "effective_cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6007
- { no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
6031
+ { no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6032
+ { no: 18, name: "initial_leverage", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6033
+ { no: 19, name: "initial_margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6034
+ { no: 20, name: "initial_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
6035
+ { no: 21, name: "initial_quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
6008
6036
  ]);
6009
6037
  }
6010
6038
  create(value?: PartialMessage<DerivativePositionV2>): DerivativePositionV2 {
@@ -6025,6 +6053,10 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
6025
6053
  message.cumulativeFundingEntry = "";
6026
6054
  message.effectiveCumulativeFundingEntry = "";
6027
6055
  message.upnl = "";
6056
+ message.initialLeverage = "";
6057
+ message.initialMargin = "";
6058
+ message.initialEntryPrice = "";
6059
+ message.initialQuantity = "";
6028
6060
  if (value !== undefined)
6029
6061
  reflectionMergePartial<DerivativePositionV2>(this, message, value);
6030
6062
  return message;
@@ -6082,6 +6114,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
6082
6114
  case /* string upnl */ 17:
6083
6115
  message.upnl = reader.string();
6084
6116
  break;
6117
+ case /* string initial_leverage */ 18:
6118
+ message.initialLeverage = reader.string();
6119
+ break;
6120
+ case /* string initial_margin */ 19:
6121
+ message.initialMargin = reader.string();
6122
+ break;
6123
+ case /* string initial_entry_price */ 20:
6124
+ message.initialEntryPrice = reader.string();
6125
+ break;
6126
+ case /* string initial_quantity */ 21:
6127
+ message.initialQuantity = reader.string();
6128
+ break;
6085
6129
  default:
6086
6130
  let u = options.readUnknownField;
6087
6131
  if (u === "throw")
@@ -6142,6 +6186,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
6142
6186
  /* string upnl = 17; */
6143
6187
  if (message.upnl !== "")
6144
6188
  writer.tag(17, WireType.LengthDelimited).string(message.upnl);
6189
+ /* string initial_leverage = 18; */
6190
+ if (message.initialLeverage !== "")
6191
+ writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
6192
+ /* string initial_margin = 19; */
6193
+ if (message.initialMargin !== "")
6194
+ writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
6195
+ /* string initial_entry_price = 20; */
6196
+ if (message.initialEntryPrice !== "")
6197
+ writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
6198
+ /* string initial_quantity = 21; */
6199
+ if (message.initialQuantity !== "")
6200
+ writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
6145
6201
  let u = options.writeUnknownFields;
6146
6202
  if (u !== false)
6147
6203
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4078,6 +4078,34 @@ class DerivativePositionV2$Type extends MessageType {
4078
4078
  kind: "scalar",
4079
4079
  T: 9
4080
4080
  /*ScalarType.STRING*/
4081
+ },
4082
+ {
4083
+ no: 18,
4084
+ name: "initial_leverage",
4085
+ kind: "scalar",
4086
+ T: 9
4087
+ /*ScalarType.STRING*/
4088
+ },
4089
+ {
4090
+ no: 19,
4091
+ name: "initial_margin",
4092
+ kind: "scalar",
4093
+ T: 9
4094
+ /*ScalarType.STRING*/
4095
+ },
4096
+ {
4097
+ no: 20,
4098
+ name: "initial_entry_price",
4099
+ kind: "scalar",
4100
+ T: 9
4101
+ /*ScalarType.STRING*/
4102
+ },
4103
+ {
4104
+ no: 21,
4105
+ name: "initial_quantity",
4106
+ kind: "scalar",
4107
+ T: 9
4108
+ /*ScalarType.STRING*/
4081
4109
  }
4082
4110
  ]);
4083
4111
  }
@@ -4099,6 +4127,10 @@ class DerivativePositionV2$Type extends MessageType {
4099
4127
  message.cumulativeFundingEntry = "";
4100
4128
  message.effectiveCumulativeFundingEntry = "";
4101
4129
  message.upnl = "";
4130
+ message.initialLeverage = "";
4131
+ message.initialMargin = "";
4132
+ message.initialEntryPrice = "";
4133
+ message.initialQuantity = "";
4102
4134
  if (value !== void 0)
4103
4135
  reflectionMergePartial(this, message, value);
4104
4136
  return message;
@@ -4172,6 +4204,22 @@ class DerivativePositionV2$Type extends MessageType {
4172
4204
  17:
4173
4205
  message.upnl = reader.string();
4174
4206
  break;
4207
+ case /* string initial_leverage */
4208
+ 18:
4209
+ message.initialLeverage = reader.string();
4210
+ break;
4211
+ case /* string initial_margin */
4212
+ 19:
4213
+ message.initialMargin = reader.string();
4214
+ break;
4215
+ case /* string initial_entry_price */
4216
+ 20:
4217
+ message.initialEntryPrice = reader.string();
4218
+ break;
4219
+ case /* string initial_quantity */
4220
+ 21:
4221
+ message.initialQuantity = reader.string();
4222
+ break;
4175
4223
  default:
4176
4224
  let u = options.readUnknownField;
4177
4225
  if (u === "throw")
@@ -4216,6 +4264,14 @@ class DerivativePositionV2$Type extends MessageType {
4216
4264
  writer.tag(16, WireType.LengthDelimited).string(message.effectiveCumulativeFundingEntry);
4217
4265
  if (message.upnl !== "")
4218
4266
  writer.tag(17, WireType.LengthDelimited).string(message.upnl);
4267
+ if (message.initialLeverage !== "")
4268
+ writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
4269
+ if (message.initialMargin !== "")
4270
+ writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
4271
+ if (message.initialEntryPrice !== "")
4272
+ writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
4273
+ if (message.initialQuantity !== "")
4274
+ writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
4219
4275
  let u = options.writeUnknownFields;
4220
4276
  if (u !== false)
4221
4277
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -136,6 +136,12 @@ export interface RFQGwPrepareEip712AutoSignRequestType {
136
136
  * @generated from protobuf field: bool simulate = 24
137
137
  */
138
138
  simulate: boolean;
139
+ /**
140
+ * Optional outer Cosmos TxBody memo
141
+ *
142
+ * @generated from protobuf field: string tx_body_memo = 25
143
+ */
144
+ txBodyMemo: string;
139
145
  /**
140
146
  * Real taker address (authz granter); used as MsgExecuteContractCompat sender
141
147
  *
@@ -445,6 +451,12 @@ export interface RFQGwPrepareAutoSignRequestType {
445
451
  * @generated from protobuf field: bool simulate = 24
446
452
  */
447
453
  simulate: boolean;
454
+ /**
455
+ * Optional outer Cosmos TxBody memo
456
+ *
457
+ * @generated from protobuf field: string tx_body_memo = 25
458
+ */
459
+ txBodyMemo: string;
448
460
  /**
449
461
  * Real taker address (authz granter); used as MsgExecuteContractCompat sender
450
462
  *
@@ -658,6 +670,12 @@ export interface RFQGwPrepareEip712RequestType {
658
670
  * @generated from protobuf field: bool simulate = 24
659
671
  */
660
672
  simulate: boolean;
673
+ /**
674
+ * Optional outer Cosmos TxBody memo
675
+ *
676
+ * @generated from protobuf field: string tx_body_memo = 25
677
+ */
678
+ txBodyMemo: string;
661
679
  /**
662
680
  * EVM chain ID used in the EIP712 domain separator (e.g. 1 for Injective
663
681
  * mainnet)
@@ -873,6 +891,12 @@ export interface RFQGwPrepareRequestType {
873
891
  * @generated from protobuf field: bool simulate = 24
874
892
  */
875
893
  simulate: boolean;
894
+ /**
895
+ * Optional outer Cosmos TxBody memo
896
+ *
897
+ * @generated from protobuf field: string tx_body_memo = 25
898
+ */
899
+ txBodyMemo: string;
876
900
  }
877
901
  /**
878
902
  * @generated from protobuf message injective_rfq_gw_rpc.PrepareResponse
@@ -1033,6 +1057,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1033
1057
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
1034
1058
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1035
1059
  { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1060
+ { no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1036
1061
  { no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1037
1062
  { no: 31, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1038
1063
  { no: 32, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1058,6 +1083,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1058
1083
  message.subaccountNonce = 0;
1059
1084
  message.cid = "";
1060
1085
  message.simulate = false;
1086
+ message.txBodyMemo = "";
1061
1087
  message.takerAddress = "";
1062
1088
  message.ethChainId = 0n;
1063
1089
  message.eip712Wrapper = "";
@@ -1125,6 +1151,9 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1125
1151
  case /* bool simulate */ 24:
1126
1152
  message.simulate = reader.bool();
1127
1153
  break;
1154
+ case /* string tx_body_memo */ 25:
1155
+ message.txBodyMemo = reader.string();
1156
+ break;
1128
1157
  case /* string taker_address */ 30:
1129
1158
  message.takerAddress = reader.string();
1130
1159
  break;
@@ -1203,6 +1232,9 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1203
1232
  /* bool simulate = 24; */
1204
1233
  if (message.simulate !== false)
1205
1234
  writer.tag(24, WireType.Varint).bool(message.simulate);
1235
+ /* string tx_body_memo = 25; */
1236
+ if (message.txBodyMemo !== "")
1237
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
1206
1238
  /* string taker_address = 30; */
1207
1239
  if (message.takerAddress !== "")
1208
1240
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
@@ -1691,6 +1723,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1691
1723
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
1692
1724
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1693
1725
  { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1726
+ { no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1694
1727
  { no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1695
1728
  ]);
1696
1729
  }
@@ -1713,6 +1746,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1713
1746
  message.subaccountNonce = 0;
1714
1747
  message.cid = "";
1715
1748
  message.simulate = false;
1749
+ message.txBodyMemo = "";
1716
1750
  message.takerAddress = "";
1717
1751
  if (value !== undefined)
1718
1752
  reflectionMergePartial<RFQGwPrepareAutoSignRequestType>(this, message, value);
@@ -1777,6 +1811,9 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1777
1811
  case /* bool simulate */ 24:
1778
1812
  message.simulate = reader.bool();
1779
1813
  break;
1814
+ case /* string tx_body_memo */ 25:
1815
+ message.txBodyMemo = reader.string();
1816
+ break;
1780
1817
  case /* string taker_address */ 30:
1781
1818
  message.takerAddress = reader.string();
1782
1819
  break;
@@ -1846,6 +1883,9 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1846
1883
  /* bool simulate = 24; */
1847
1884
  if (message.simulate !== false)
1848
1885
  writer.tag(24, WireType.Varint).bool(message.simulate);
1886
+ /* string tx_body_memo = 25; */
1887
+ if (message.txBodyMemo !== "")
1888
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
1849
1889
  /* string taker_address = 30; */
1850
1890
  if (message.takerAddress !== "")
1851
1891
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
@@ -2077,6 +2117,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2077
2117
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
2078
2118
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2079
2119
  { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2120
+ { no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2080
2121
  { no: 30, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2081
2122
  { no: 31, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2082
2123
  { no: 32, name: "gas", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
@@ -2101,6 +2142,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2101
2142
  message.subaccountNonce = 0;
2102
2143
  message.cid = "";
2103
2144
  message.simulate = false;
2145
+ message.txBodyMemo = "";
2104
2146
  message.ethChainId = 0n;
2105
2147
  message.eip712Wrapper = "";
2106
2148
  message.gas = 0n;
@@ -2167,6 +2209,9 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2167
2209
  case /* bool simulate */ 24:
2168
2210
  message.simulate = reader.bool();
2169
2211
  break;
2212
+ case /* string tx_body_memo */ 25:
2213
+ message.txBodyMemo = reader.string();
2214
+ break;
2170
2215
  case /* uint64 eth_chain_id */ 30:
2171
2216
  message.ethChainId = reader.uint64().toBigInt();
2172
2217
  break;
@@ -2242,6 +2287,9 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2242
2287
  /* bool simulate = 24; */
2243
2288
  if (message.simulate !== false)
2244
2289
  writer.tag(24, WireType.Varint).bool(message.simulate);
2290
+ /* string tx_body_memo = 25; */
2291
+ if (message.txBodyMemo !== "")
2292
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
2245
2293
  /* uint64 eth_chain_id = 30; */
2246
2294
  if (message.ethChainId !== 0n)
2247
2295
  writer.tag(30, WireType.Varint).uint64(message.ethChainId);
@@ -2462,7 +2510,8 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2462
2510
  { no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
2463
2511
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
2464
2512
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2465
- { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2513
+ { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2514
+ { no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2466
2515
  ]);
2467
2516
  }
2468
2517
  create(value?: PartialMessage<RFQGwPrepareRequestType>): RFQGwPrepareRequestType {
@@ -2484,6 +2533,7 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2484
2533
  message.subaccountNonce = 0;
2485
2534
  message.cid = "";
2486
2535
  message.simulate = false;
2536
+ message.txBodyMemo = "";
2487
2537
  if (value !== undefined)
2488
2538
  reflectionMergePartial<RFQGwPrepareRequestType>(this, message, value);
2489
2539
  return message;
@@ -2547,6 +2597,9 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2547
2597
  case /* bool simulate */ 24:
2548
2598
  message.simulate = reader.bool();
2549
2599
  break;
2600
+ case /* string tx_body_memo */ 25:
2601
+ message.txBodyMemo = reader.string();
2602
+ break;
2550
2603
  default:
2551
2604
  let u = options.readUnknownField;
2552
2605
  if (u === "throw")
@@ -2613,6 +2666,9 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2613
2666
  /* bool simulate = 24; */
2614
2667
  if (message.simulate !== false)
2615
2668
  writer.tag(24, WireType.Varint).bool(message.simulate);
2669
+ /* string tx_body_memo = 25; */
2670
+ if (message.txBodyMemo !== "")
2671
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
2616
2672
  let u = options.writeUnknownFields;
2617
2673
  if (u !== false)
2618
2674
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -174,6 +174,13 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
174
174
  T: 8
175
175
  /*ScalarType.BOOL*/
176
176
  },
177
+ {
178
+ no: 25,
179
+ name: "tx_body_memo",
180
+ kind: "scalar",
181
+ T: 9
182
+ /*ScalarType.STRING*/
183
+ },
177
184
  {
178
185
  no: 30,
179
186
  name: "taker_address",
@@ -225,6 +232,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
225
232
  message.subaccountNonce = 0;
226
233
  message.cid = "";
227
234
  message.simulate = false;
235
+ message.txBodyMemo = "";
228
236
  message.takerAddress = "";
229
237
  message.ethChainId = 0n;
230
238
  message.eip712Wrapper = "";
@@ -310,6 +318,10 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
310
318
  24:
311
319
  message.simulate = reader.bool();
312
320
  break;
321
+ case /* string tx_body_memo */
322
+ 25:
323
+ message.txBodyMemo = reader.string();
324
+ break;
313
325
  case /* string taker_address */
314
326
  30:
315
327
  message.takerAddress = reader.string();
@@ -374,6 +386,8 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
374
386
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
375
387
  if (message.simulate !== false)
376
388
  writer.tag(24, WireType.Varint).bool(message.simulate);
389
+ if (message.txBodyMemo !== "")
390
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
377
391
  if (message.takerAddress !== "")
378
392
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
379
393
  if (message.ethChainId !== 0n)
@@ -1041,6 +1055,13 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1041
1055
  T: 8
1042
1056
  /*ScalarType.BOOL*/
1043
1057
  },
1058
+ {
1059
+ no: 25,
1060
+ name: "tx_body_memo",
1061
+ kind: "scalar",
1062
+ T: 9
1063
+ /*ScalarType.STRING*/
1064
+ },
1044
1065
  {
1045
1066
  no: 30,
1046
1067
  name: "taker_address",
@@ -1069,6 +1090,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1069
1090
  message.subaccountNonce = 0;
1070
1091
  message.cid = "";
1071
1092
  message.simulate = false;
1093
+ message.txBodyMemo = "";
1072
1094
  message.takerAddress = "";
1073
1095
  if (value !== void 0)
1074
1096
  reflectionMergePartial(this, message, value);
@@ -1151,6 +1173,10 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1151
1173
  24:
1152
1174
  message.simulate = reader.bool();
1153
1175
  break;
1176
+ case /* string tx_body_memo */
1177
+ 25:
1178
+ message.txBodyMemo = reader.string();
1179
+ break;
1154
1180
  case /* string taker_address */
1155
1181
  30:
1156
1182
  message.takerAddress = reader.string();
@@ -1203,6 +1229,8 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1203
1229
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1204
1230
  if (message.simulate !== false)
1205
1231
  writer.tag(24, WireType.Varint).bool(message.simulate);
1232
+ if (message.txBodyMemo !== "")
1233
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
1206
1234
  if (message.takerAddress !== "")
1207
1235
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
1208
1236
  let u = options.writeUnknownFields;
@@ -1608,6 +1636,13 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1608
1636
  T: 8
1609
1637
  /*ScalarType.BOOL*/
1610
1638
  },
1639
+ {
1640
+ no: 25,
1641
+ name: "tx_body_memo",
1642
+ kind: "scalar",
1643
+ T: 9
1644
+ /*ScalarType.STRING*/
1645
+ },
1611
1646
  {
1612
1647
  no: 30,
1613
1648
  name: "eth_chain_id",
@@ -1652,6 +1687,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1652
1687
  message.subaccountNonce = 0;
1653
1688
  message.cid = "";
1654
1689
  message.simulate = false;
1690
+ message.txBodyMemo = "";
1655
1691
  message.ethChainId = 0n;
1656
1692
  message.eip712Wrapper = "";
1657
1693
  message.gas = 0n;
@@ -1736,6 +1772,10 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1736
1772
  24:
1737
1773
  message.simulate = reader.bool();
1738
1774
  break;
1775
+ case /* string tx_body_memo */
1776
+ 25:
1777
+ message.txBodyMemo = reader.string();
1778
+ break;
1739
1779
  case /* uint64 eth_chain_id */
1740
1780
  30:
1741
1781
  message.ethChainId = reader.uint64().toBigInt();
@@ -1796,6 +1836,8 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1796
1836
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1797
1837
  if (message.simulate !== false)
1798
1838
  writer.tag(24, WireType.Varint).bool(message.simulate);
1839
+ if (message.txBodyMemo !== "")
1840
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
1799
1841
  if (message.ethChainId !== 0n)
1800
1842
  writer.tag(30, WireType.Varint).uint64(message.ethChainId);
1801
1843
  if (message.eip712Wrapper !== "")
@@ -2174,6 +2216,13 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2174
2216
  kind: "scalar",
2175
2217
  T: 8
2176
2218
  /*ScalarType.BOOL*/
2219
+ },
2220
+ {
2221
+ no: 25,
2222
+ name: "tx_body_memo",
2223
+ kind: "scalar",
2224
+ T: 9
2225
+ /*ScalarType.STRING*/
2177
2226
  }
2178
2227
  ]);
2179
2228
  }
@@ -2196,6 +2245,7 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2196
2245
  message.subaccountNonce = 0;
2197
2246
  message.cid = "";
2198
2247
  message.simulate = false;
2248
+ message.txBodyMemo = "";
2199
2249
  if (value !== void 0)
2200
2250
  reflectionMergePartial(this, message, value);
2201
2251
  return message;
@@ -2277,6 +2327,10 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2277
2327
  24:
2278
2328
  message.simulate = reader.bool();
2279
2329
  break;
2330
+ case /* string tx_body_memo */
2331
+ 25:
2332
+ message.txBodyMemo = reader.string();
2333
+ break;
2280
2334
  default:
2281
2335
  let u = options.readUnknownField;
2282
2336
  if (u === "throw")
@@ -2325,6 +2379,8 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2325
2379
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
2326
2380
  if (message.simulate !== false)
2327
2381
  writer.tag(24, WireType.Varint).bool(message.simulate);
2382
+ if (message.txBodyMemo !== "")
2383
+ writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
2328
2384
  let u = options.writeUnknownFields;
2329
2385
  if (u !== false)
2330
2386
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -891,7 +891,7 @@ export interface ConditionalOrderResponseType {
891
891
  txHash: string;
892
892
  /**
893
893
  * Terminal timestamp in milliseconds (set when the order reaches a terminal
894
- * status: completed, failed, or cancelled)
894
+ * status: completed, failed, cancelled, or expired)
895
895
  *
896
896
  * @generated from protobuf field: sint64 terminal_at = 18
897
897
  */
@@ -953,6 +953,30 @@ export interface DerivativePositionV2 {
953
953
  * @generated from protobuf field: string upnl = 17
954
954
  */
955
955
  upnl: string;
956
+ /**
957
+ * Leverage at the time the position was opened
958
+ *
959
+ * @generated from protobuf field: string initial_leverage = 18
960
+ */
961
+ initialLeverage: string;
962
+ /**
963
+ * Margin at the time the position was opened, in USD
964
+ *
965
+ * @generated from protobuf field: string initial_margin = 19
966
+ */
967
+ initialMargin: string;
968
+ /**
969
+ * Entry price at the time the position was opened, in USD
970
+ *
971
+ * @generated from protobuf field: string initial_entry_price = 20
972
+ */
973
+ initialEntryPrice: string;
974
+ /**
975
+ * Quantity at the time the position was opened
976
+ *
977
+ * @generated from protobuf field: string initial_quantity = 21
978
+ */
979
+ initialQuantity: string;
956
980
  }
957
981
  /**
958
982
  * @generated from protobuf message injective_tc_derivatives_rpc.StreamPositionsRequest
@@ -2780,7 +2804,11 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
2780
2804
  { no: 14, name: "funding_sum", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2781
2805
  { no: 15, name: "cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2782
2806
  { no: 16, name: "effective_cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2783
- { no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2807
+ { no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2808
+ { no: 18, name: "initial_leverage", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2809
+ { no: 19, name: "initial_margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2810
+ { no: 20, name: "initial_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2811
+ { no: 21, name: "initial_quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2784
2812
  ]);
2785
2813
  }
2786
2814
  create(value?: PartialMessage<DerivativePositionV2>): DerivativePositionV2 {
@@ -2801,6 +2829,10 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
2801
2829
  message.cumulativeFundingEntry = "";
2802
2830
  message.effectiveCumulativeFundingEntry = "";
2803
2831
  message.upnl = "";
2832
+ message.initialLeverage = "";
2833
+ message.initialMargin = "";
2834
+ message.initialEntryPrice = "";
2835
+ message.initialQuantity = "";
2804
2836
  if (value !== undefined)
2805
2837
  reflectionMergePartial<DerivativePositionV2>(this, message, value);
2806
2838
  return message;
@@ -2858,6 +2890,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
2858
2890
  case /* string upnl */ 17:
2859
2891
  message.upnl = reader.string();
2860
2892
  break;
2893
+ case /* string initial_leverage */ 18:
2894
+ message.initialLeverage = reader.string();
2895
+ break;
2896
+ case /* string initial_margin */ 19:
2897
+ message.initialMargin = reader.string();
2898
+ break;
2899
+ case /* string initial_entry_price */ 20:
2900
+ message.initialEntryPrice = reader.string();
2901
+ break;
2902
+ case /* string initial_quantity */ 21:
2903
+ message.initialQuantity = reader.string();
2904
+ break;
2861
2905
  default:
2862
2906
  let u = options.readUnknownField;
2863
2907
  if (u === "throw")
@@ -2918,6 +2962,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
2918
2962
  /* string upnl = 17; */
2919
2963
  if (message.upnl !== "")
2920
2964
  writer.tag(17, WireType.LengthDelimited).string(message.upnl);
2965
+ /* string initial_leverage = 18; */
2966
+ if (message.initialLeverage !== "")
2967
+ writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
2968
+ /* string initial_margin = 19; */
2969
+ if (message.initialMargin !== "")
2970
+ writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
2971
+ /* string initial_entry_price = 20; */
2972
+ if (message.initialEntryPrice !== "")
2973
+ writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
2974
+ /* string initial_quantity = 21; */
2975
+ if (message.initialQuantity !== "")
2976
+ writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
2921
2977
  let u = options.writeUnknownFields;
2922
2978
  if (u !== false)
2923
2979
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2473,6 +2473,34 @@ class DerivativePositionV2$Type extends MessageType {
2473
2473
  kind: "scalar",
2474
2474
  T: 9
2475
2475
  /*ScalarType.STRING*/
2476
+ },
2477
+ {
2478
+ no: 18,
2479
+ name: "initial_leverage",
2480
+ kind: "scalar",
2481
+ T: 9
2482
+ /*ScalarType.STRING*/
2483
+ },
2484
+ {
2485
+ no: 19,
2486
+ name: "initial_margin",
2487
+ kind: "scalar",
2488
+ T: 9
2489
+ /*ScalarType.STRING*/
2490
+ },
2491
+ {
2492
+ no: 20,
2493
+ name: "initial_entry_price",
2494
+ kind: "scalar",
2495
+ T: 9
2496
+ /*ScalarType.STRING*/
2497
+ },
2498
+ {
2499
+ no: 21,
2500
+ name: "initial_quantity",
2501
+ kind: "scalar",
2502
+ T: 9
2503
+ /*ScalarType.STRING*/
2476
2504
  }
2477
2505
  ]);
2478
2506
  }
@@ -2494,6 +2522,10 @@ class DerivativePositionV2$Type extends MessageType {
2494
2522
  message.cumulativeFundingEntry = "";
2495
2523
  message.effectiveCumulativeFundingEntry = "";
2496
2524
  message.upnl = "";
2525
+ message.initialLeverage = "";
2526
+ message.initialMargin = "";
2527
+ message.initialEntryPrice = "";
2528
+ message.initialQuantity = "";
2497
2529
  if (value !== void 0)
2498
2530
  reflectionMergePartial(this, message, value);
2499
2531
  return message;
@@ -2567,6 +2599,22 @@ class DerivativePositionV2$Type extends MessageType {
2567
2599
  17:
2568
2600
  message.upnl = reader.string();
2569
2601
  break;
2602
+ case /* string initial_leverage */
2603
+ 18:
2604
+ message.initialLeverage = reader.string();
2605
+ break;
2606
+ case /* string initial_margin */
2607
+ 19:
2608
+ message.initialMargin = reader.string();
2609
+ break;
2610
+ case /* string initial_entry_price */
2611
+ 20:
2612
+ message.initialEntryPrice = reader.string();
2613
+ break;
2614
+ case /* string initial_quantity */
2615
+ 21:
2616
+ message.initialQuantity = reader.string();
2617
+ break;
2570
2618
  default:
2571
2619
  let u = options.readUnknownField;
2572
2620
  if (u === "throw")
@@ -2611,6 +2659,14 @@ class DerivativePositionV2$Type extends MessageType {
2611
2659
  writer.tag(16, WireType.LengthDelimited).string(message.effectiveCumulativeFundingEntry);
2612
2660
  if (message.upnl !== "")
2613
2661
  writer.tag(17, WireType.LengthDelimited).string(message.upnl);
2662
+ if (message.initialLeverage !== "")
2663
+ writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
2664
+ if (message.initialMargin !== "")
2665
+ writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
2666
+ if (message.initialEntryPrice !== "")
2667
+ writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
2668
+ if (message.initialQuantity !== "")
2669
+ writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
2614
2670
  let u = options.writeUnknownFields;
2615
2671
  if (u !== false)
2616
2672
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/indexer-proto-ts-v2",
3
- "version": "1.18.23",
3
+ "version": "1.18.24",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",