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

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.
@@ -128,6 +128,14 @@ export interface RFQGwPrepareEip712AutoSignRequestType {
128
128
  * @generated from protobuf field: string cid = 23
129
129
  */
130
130
  cid: string;
131
+ /**
132
+ * Simulate the tx on chain and use the estimated gas (with adjustment buffer)
133
+ * instead of the fee payer max gas. Falls back to max gas if the simulation
134
+ * fails.
135
+ *
136
+ * @generated from protobuf field: bool simulate = 24
137
+ */
138
+ simulate: boolean;
131
139
  /**
132
140
  * Real taker address (authz granter); used as MsgExecuteContractCompat sender
133
141
  *
@@ -149,7 +157,7 @@ export interface RFQGwPrepareEip712AutoSignRequestType {
149
157
  */
150
158
  eip712Wrapper: string;
151
159
  /**
152
- * Optional gas limit override
160
+ * Optional gas limit override. Takes precedence over simulate
153
161
  *
154
162
  * @generated from protobuf field: uint64 gas = 33
155
163
  */
@@ -429,6 +437,14 @@ export interface RFQGwPrepareAutoSignRequestType {
429
437
  * @generated from protobuf field: string cid = 23
430
438
  */
431
439
  cid: string;
440
+ /**
441
+ * Simulate the tx on chain and use the estimated gas (with adjustment buffer)
442
+ * instead of the fee payer max gas. Falls back to max gas if the simulation
443
+ * fails.
444
+ *
445
+ * @generated from protobuf field: bool simulate = 24
446
+ */
447
+ simulate: boolean;
432
448
  /**
433
449
  * Real taker address (authz granter); used as MsgExecuteContractCompat sender
434
450
  *
@@ -634,6 +650,14 @@ export interface RFQGwPrepareEip712RequestType {
634
650
  * @generated from protobuf field: string cid = 23
635
651
  */
636
652
  cid: string;
653
+ /**
654
+ * Simulate the tx on chain and use the estimated gas (with adjustment buffer)
655
+ * instead of the fee payer max gas. Falls back to max gas if the simulation
656
+ * fails.
657
+ *
658
+ * @generated from protobuf field: bool simulate = 24
659
+ */
660
+ simulate: boolean;
637
661
  /**
638
662
  * EVM chain ID used in the EIP712 domain separator (e.g. 1 for Injective
639
663
  * mainnet)
@@ -649,7 +673,7 @@ export interface RFQGwPrepareEip712RequestType {
649
673
  */
650
674
  eip712Wrapper: string;
651
675
  /**
652
- * Optional gas limit override
676
+ * Optional gas limit override. Takes precedence over simulate
653
677
  *
654
678
  * @generated from protobuf field: uint64 gas = 32
655
679
  */
@@ -841,6 +865,14 @@ export interface RFQGwPrepareRequestType {
841
865
  * @generated from protobuf field: string cid = 23
842
866
  */
843
867
  cid: string;
868
+ /**
869
+ * Simulate the tx on chain and use the estimated gas (with adjustment buffer)
870
+ * instead of the fee payer max gas. Falls back to max gas if the simulation
871
+ * fails.
872
+ *
873
+ * @generated from protobuf field: bool simulate = 24
874
+ */
875
+ simulate: boolean;
844
876
  }
845
877
  /**
846
878
  * @generated from protobuf message injective_rfq_gw_rpc.PrepareResponse
@@ -1000,6 +1032,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1000
1032
  { no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
1001
1033
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
1002
1034
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1035
+ { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1003
1036
  { no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1004
1037
  { no: 31, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1005
1038
  { no: 32, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1024,6 +1057,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1024
1057
  message.quotesWaitTimeMs = 0n;
1025
1058
  message.subaccountNonce = 0;
1026
1059
  message.cid = "";
1060
+ message.simulate = false;
1027
1061
  message.takerAddress = "";
1028
1062
  message.ethChainId = 0n;
1029
1063
  message.eip712Wrapper = "";
@@ -1088,6 +1122,9 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1088
1122
  case /* string cid */ 23:
1089
1123
  message.cid = reader.string();
1090
1124
  break;
1125
+ case /* bool simulate */ 24:
1126
+ message.simulate = reader.bool();
1127
+ break;
1091
1128
  case /* string taker_address */ 30:
1092
1129
  message.takerAddress = reader.string();
1093
1130
  break;
@@ -1163,6 +1200,9 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
1163
1200
  /* string cid = 23; */
1164
1201
  if (message.cid !== "")
1165
1202
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1203
+ /* bool simulate = 24; */
1204
+ if (message.simulate !== false)
1205
+ writer.tag(24, WireType.Varint).bool(message.simulate);
1166
1206
  /* string taker_address = 30; */
1167
1207
  if (message.takerAddress !== "")
1168
1208
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
@@ -1650,6 +1690,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1650
1690
  { no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
1651
1691
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
1652
1692
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1693
+ { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1653
1694
  { no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1654
1695
  ]);
1655
1696
  }
@@ -1671,6 +1712,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1671
1712
  message.quotesWaitTimeMs = 0n;
1672
1713
  message.subaccountNonce = 0;
1673
1714
  message.cid = "";
1715
+ message.simulate = false;
1674
1716
  message.takerAddress = "";
1675
1717
  if (value !== undefined)
1676
1718
  reflectionMergePartial<RFQGwPrepareAutoSignRequestType>(this, message, value);
@@ -1732,6 +1774,9 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1732
1774
  case /* string cid */ 23:
1733
1775
  message.cid = reader.string();
1734
1776
  break;
1777
+ case /* bool simulate */ 24:
1778
+ message.simulate = reader.bool();
1779
+ break;
1735
1780
  case /* string taker_address */ 30:
1736
1781
  message.takerAddress = reader.string();
1737
1782
  break;
@@ -1798,6 +1843,9 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
1798
1843
  /* string cid = 23; */
1799
1844
  if (message.cid !== "")
1800
1845
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1846
+ /* bool simulate = 24; */
1847
+ if (message.simulate !== false)
1848
+ writer.tag(24, WireType.Varint).bool(message.simulate);
1801
1849
  /* string taker_address = 30; */
1802
1850
  if (message.takerAddress !== "")
1803
1851
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
@@ -2028,6 +2076,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2028
2076
  { no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
2029
2077
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
2030
2078
  { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2079
+ { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2031
2080
  { no: 30, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2032
2081
  { no: 31, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2033
2082
  { no: 32, name: "gas", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
@@ -2051,6 +2100,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2051
2100
  message.quotesWaitTimeMs = 0n;
2052
2101
  message.subaccountNonce = 0;
2053
2102
  message.cid = "";
2103
+ message.simulate = false;
2054
2104
  message.ethChainId = 0n;
2055
2105
  message.eip712Wrapper = "";
2056
2106
  message.gas = 0n;
@@ -2114,6 +2164,9 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2114
2164
  case /* string cid */ 23:
2115
2165
  message.cid = reader.string();
2116
2166
  break;
2167
+ case /* bool simulate */ 24:
2168
+ message.simulate = reader.bool();
2169
+ break;
2117
2170
  case /* uint64 eth_chain_id */ 30:
2118
2171
  message.ethChainId = reader.uint64().toBigInt();
2119
2172
  break;
@@ -2186,6 +2239,9 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
2186
2239
  /* string cid = 23; */
2187
2240
  if (message.cid !== "")
2188
2241
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
2242
+ /* bool simulate = 24; */
2243
+ if (message.simulate !== false)
2244
+ writer.tag(24, WireType.Varint).bool(message.simulate);
2189
2245
  /* uint64 eth_chain_id = 30; */
2190
2246
  if (message.ethChainId !== 0n)
2191
2247
  writer.tag(30, WireType.Varint).uint64(message.ethChainId);
@@ -2405,7 +2461,8 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2405
2461
  { no: 20, name: "quotes_wait_time_ms", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2406
2462
  { no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
2407
2463
  { no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
2408
- { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2464
+ { no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2465
+ { no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2409
2466
  ]);
2410
2467
  }
2411
2468
  create(value?: PartialMessage<RFQGwPrepareRequestType>): RFQGwPrepareRequestType {
@@ -2426,6 +2483,7 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2426
2483
  message.quotesWaitTimeMs = 0n;
2427
2484
  message.subaccountNonce = 0;
2428
2485
  message.cid = "";
2486
+ message.simulate = false;
2429
2487
  if (value !== undefined)
2430
2488
  reflectionMergePartial<RFQGwPrepareRequestType>(this, message, value);
2431
2489
  return message;
@@ -2486,6 +2544,9 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2486
2544
  case /* string cid */ 23:
2487
2545
  message.cid = reader.string();
2488
2546
  break;
2547
+ case /* bool simulate */ 24:
2548
+ message.simulate = reader.bool();
2549
+ break;
2489
2550
  default:
2490
2551
  let u = options.readUnknownField;
2491
2552
  if (u === "throw")
@@ -2549,6 +2610,9 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
2549
2610
  /* string cid = 23; */
2550
2611
  if (message.cid !== "")
2551
2612
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
2613
+ /* bool simulate = 24; */
2614
+ if (message.simulate !== false)
2615
+ writer.tag(24, WireType.Varint).bool(message.simulate);
2552
2616
  let u = options.writeUnknownFields;
2553
2617
  if (u !== false)
2554
2618
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -167,6 +167,13 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
167
167
  T: 9
168
168
  /*ScalarType.STRING*/
169
169
  },
170
+ {
171
+ no: 24,
172
+ name: "simulate",
173
+ kind: "scalar",
174
+ T: 8
175
+ /*ScalarType.BOOL*/
176
+ },
170
177
  {
171
178
  no: 30,
172
179
  name: "taker_address",
@@ -217,6 +224,7 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
217
224
  message.quotesWaitTimeMs = 0n;
218
225
  message.subaccountNonce = 0;
219
226
  message.cid = "";
227
+ message.simulate = false;
220
228
  message.takerAddress = "";
221
229
  message.ethChainId = 0n;
222
230
  message.eip712Wrapper = "";
@@ -298,6 +306,10 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
298
306
  23:
299
307
  message.cid = reader.string();
300
308
  break;
309
+ case /* bool simulate */
310
+ 24:
311
+ message.simulate = reader.bool();
312
+ break;
301
313
  case /* string taker_address */
302
314
  30:
303
315
  message.takerAddress = reader.string();
@@ -360,6 +372,8 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
360
372
  writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
361
373
  if (message.cid !== "")
362
374
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
375
+ if (message.simulate !== false)
376
+ writer.tag(24, WireType.Varint).bool(message.simulate);
363
377
  if (message.takerAddress !== "")
364
378
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
365
379
  if (message.ethChainId !== 0n)
@@ -1020,6 +1034,13 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1020
1034
  T: 9
1021
1035
  /*ScalarType.STRING*/
1022
1036
  },
1037
+ {
1038
+ no: 24,
1039
+ name: "simulate",
1040
+ kind: "scalar",
1041
+ T: 8
1042
+ /*ScalarType.BOOL*/
1043
+ },
1023
1044
  {
1024
1045
  no: 30,
1025
1046
  name: "taker_address",
@@ -1047,6 +1068,7 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1047
1068
  message.quotesWaitTimeMs = 0n;
1048
1069
  message.subaccountNonce = 0;
1049
1070
  message.cid = "";
1071
+ message.simulate = false;
1050
1072
  message.takerAddress = "";
1051
1073
  if (value !== void 0)
1052
1074
  reflectionMergePartial(this, message, value);
@@ -1125,6 +1147,10 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1125
1147
  23:
1126
1148
  message.cid = reader.string();
1127
1149
  break;
1150
+ case /* bool simulate */
1151
+ 24:
1152
+ message.simulate = reader.bool();
1153
+ break;
1128
1154
  case /* string taker_address */
1129
1155
  30:
1130
1156
  message.takerAddress = reader.string();
@@ -1175,6 +1201,8 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
1175
1201
  writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
1176
1202
  if (message.cid !== "")
1177
1203
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1204
+ if (message.simulate !== false)
1205
+ writer.tag(24, WireType.Varint).bool(message.simulate);
1178
1206
  if (message.takerAddress !== "")
1179
1207
  writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
1180
1208
  let u = options.writeUnknownFields;
@@ -1573,6 +1601,13 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1573
1601
  T: 9
1574
1602
  /*ScalarType.STRING*/
1575
1603
  },
1604
+ {
1605
+ no: 24,
1606
+ name: "simulate",
1607
+ kind: "scalar",
1608
+ T: 8
1609
+ /*ScalarType.BOOL*/
1610
+ },
1576
1611
  {
1577
1612
  no: 30,
1578
1613
  name: "eth_chain_id",
@@ -1616,6 +1651,7 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1616
1651
  message.quotesWaitTimeMs = 0n;
1617
1652
  message.subaccountNonce = 0;
1618
1653
  message.cid = "";
1654
+ message.simulate = false;
1619
1655
  message.ethChainId = 0n;
1620
1656
  message.eip712Wrapper = "";
1621
1657
  message.gas = 0n;
@@ -1696,6 +1732,10 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1696
1732
  23:
1697
1733
  message.cid = reader.string();
1698
1734
  break;
1735
+ case /* bool simulate */
1736
+ 24:
1737
+ message.simulate = reader.bool();
1738
+ break;
1699
1739
  case /* uint64 eth_chain_id */
1700
1740
  30:
1701
1741
  message.ethChainId = reader.uint64().toBigInt();
@@ -1754,6 +1794,8 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
1754
1794
  writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
1755
1795
  if (message.cid !== "")
1756
1796
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
1797
+ if (message.simulate !== false)
1798
+ writer.tag(24, WireType.Varint).bool(message.simulate);
1757
1799
  if (message.ethChainId !== 0n)
1758
1800
  writer.tag(30, WireType.Varint).uint64(message.ethChainId);
1759
1801
  if (message.eip712Wrapper !== "")
@@ -2125,6 +2167,13 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2125
2167
  kind: "scalar",
2126
2168
  T: 9
2127
2169
  /*ScalarType.STRING*/
2170
+ },
2171
+ {
2172
+ no: 24,
2173
+ name: "simulate",
2174
+ kind: "scalar",
2175
+ T: 8
2176
+ /*ScalarType.BOOL*/
2128
2177
  }
2129
2178
  ]);
2130
2179
  }
@@ -2146,6 +2195,7 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2146
2195
  message.quotesWaitTimeMs = 0n;
2147
2196
  message.subaccountNonce = 0;
2148
2197
  message.cid = "";
2198
+ message.simulate = false;
2149
2199
  if (value !== void 0)
2150
2200
  reflectionMergePartial(this, message, value);
2151
2201
  return message;
@@ -2223,6 +2273,10 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2223
2273
  23:
2224
2274
  message.cid = reader.string();
2225
2275
  break;
2276
+ case /* bool simulate */
2277
+ 24:
2278
+ message.simulate = reader.bool();
2279
+ break;
2226
2280
  default:
2227
2281
  let u = options.readUnknownField;
2228
2282
  if (u === "throw")
@@ -2269,6 +2323,8 @@ class RFQGwPrepareRequestType$Type extends MessageType {
2269
2323
  writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
2270
2324
  if (message.cid !== "")
2271
2325
  writer.tag(23, WireType.LengthDelimited).string(message.cid);
2326
+ if (message.simulate !== false)
2327
+ writer.tag(24, WireType.Varint).bool(message.simulate);
2272
2328
  let u = options.writeUnknownFields;
2273
2329
  if (u !== false)
2274
2330
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -12,6 +12,8 @@
12
12
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
13
13
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
14
14
  import { InjectiveTCDerivativesRPC } from "./injective_tc_derivatives_rpc_pb";
15
+ import type { FundingPaymentsResponse } from "./injective_tc_derivatives_rpc_pb";
16
+ import type { FundingPaymentsRequest } from "./injective_tc_derivatives_rpc_pb";
15
17
  import type { StreamPositionsResponse } from "./injective_tc_derivatives_rpc_pb";
16
18
  import type { StreamPositionsRequest } from "./injective_tc_derivatives_rpc_pb";
17
19
  import type { PositionsResponse } from "./injective_tc_derivatives_rpc_pb";
@@ -87,6 +89,12 @@ export interface IInjectiveTCDerivativesRPCClient {
87
89
  * @generated from protobuf rpc: StreamPositions
88
90
  */
89
91
  streamPositions(input: StreamPositionsRequest, options?: RpcOptions): ServerStreamingCall<StreamPositionsRequest, StreamPositionsResponse>;
92
+ /**
93
+ * FundingPayments lists funding payments, optionally filtered by market.
94
+ *
95
+ * @generated from protobuf rpc: FundingPayments
96
+ */
97
+ fundingPayments(input: FundingPaymentsRequest, options?: RpcOptions): UnaryCall<FundingPaymentsRequest, FundingPaymentsResponse>;
90
98
  }
91
99
  /**
92
100
  * InjectiveTCDerivativesRPC defines gRPC API of the TC Derivatives API.
@@ -172,4 +180,13 @@ export class InjectiveTCDerivativesRPCClient implements IInjectiveTCDerivativesR
172
180
  const method = this.methods[7], opt = this._transport.mergeOptions(options);
173
181
  return stackIntercept<StreamPositionsRequest, StreamPositionsResponse>("serverStreaming", this._transport, method, opt, input);
174
182
  }
183
+ /**
184
+ * FundingPayments lists funding payments, optionally filtered by market.
185
+ *
186
+ * @generated from protobuf rpc: FundingPayments
187
+ */
188
+ fundingPayments(input: FundingPaymentsRequest, options?: RpcOptions): UnaryCall<FundingPaymentsRequest, FundingPaymentsResponse> {
189
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
190
+ return stackIntercept<FundingPaymentsRequest, FundingPaymentsResponse>("unary", this._transport, method, opt, input);
191
+ }
175
192
  }
@@ -80,6 +80,15 @@ class InjectiveTCDerivativesRPCClient {
80
80
  const method = this.methods[7], opt = this._transport.mergeOptions(options);
81
81
  return stackIntercept("serverStreaming", this._transport, method, opt, input);
82
82
  }
83
+ /**
84
+ * FundingPayments lists funding payments, optionally filtered by market.
85
+ *
86
+ * @generated from protobuf rpc: FundingPayments
87
+ */
88
+ fundingPayments(input, options) {
89
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
90
+ return stackIntercept("unary", this._transport, method, opt, input);
91
+ }
83
92
  }
84
93
  export {
85
94
  InjectiveTCDerivativesRPCClient
@@ -994,6 +994,75 @@ export interface StreamPositionsResponse {
994
994
  */
995
995
  operationType: string;
996
996
  }
997
+ /**
998
+ * @generated from protobuf message injective_tc_derivatives_rpc.FundingPaymentsRequest
999
+ */
1000
+ export interface FundingPaymentsRequest {
1001
+ /**
1002
+ * Market IDs to filter funding payments
1003
+ *
1004
+ * @generated from protobuf field: repeated string market_ids = 1
1005
+ */
1006
+ marketIds: string[];
1007
+ /**
1008
+ * Number of results per page
1009
+ *
1010
+ * @generated from protobuf field: sint32 per_page = 2
1011
+ */
1012
+ perPage: number;
1013
+ /**
1014
+ * Pagination token
1015
+ *
1016
+ * @generated from protobuf field: string token = 3
1017
+ */
1018
+ token: string;
1019
+ }
1020
+ /**
1021
+ * @generated from protobuf message injective_tc_derivatives_rpc.FundingPaymentsResponse
1022
+ */
1023
+ export interface FundingPaymentsResponse {
1024
+ /**
1025
+ * List of funding payments
1026
+ *
1027
+ * @generated from protobuf field: repeated injective_tc_derivatives_rpc.FundingPayment payments = 1
1028
+ */
1029
+ payments: FundingPayment[];
1030
+ /**
1031
+ * Next tokens for pagination
1032
+ *
1033
+ * @generated from protobuf field: repeated string next = 2
1034
+ */
1035
+ next: string[];
1036
+ }
1037
+ /**
1038
+ * @generated from protobuf message injective_tc_derivatives_rpc.FundingPayment
1039
+ */
1040
+ export interface FundingPayment {
1041
+ /**
1042
+ * Derivative Market ID
1043
+ *
1044
+ * @generated from protobuf field: string market_id = 1
1045
+ */
1046
+ marketId: string;
1047
+ /**
1048
+ * The subaccountId that the position belongs to
1049
+ *
1050
+ * @generated from protobuf field: string subaccount_id = 2
1051
+ */
1052
+ subaccountId: string;
1053
+ /**
1054
+ * Amount of the funding payment
1055
+ *
1056
+ * @generated from protobuf field: string amount = 3
1057
+ */
1058
+ amount: string;
1059
+ /**
1060
+ * Timestamp of funding payment in UNIX millis
1061
+ *
1062
+ * @generated from protobuf field: sint64 timestamp = 4
1063
+ */
1064
+ timestamp: bigint;
1065
+ }
997
1066
  // @generated message type with reflection information, may provide speed optimized methods
998
1067
  class OrdersHistoryRequest$Type extends MessageType<OrdersHistoryRequest> {
999
1068
  constructor() {
@@ -2976,6 +3045,195 @@ class StreamPositionsResponse$Type extends MessageType<StreamPositionsResponse>
2976
3045
  * @generated MessageType for protobuf message injective_tc_derivatives_rpc.StreamPositionsResponse
2977
3046
  */
2978
3047
  export const StreamPositionsResponse = new StreamPositionsResponse$Type();
3048
+ // @generated message type with reflection information, may provide speed optimized methods
3049
+ class FundingPaymentsRequest$Type extends MessageType<FundingPaymentsRequest> {
3050
+ constructor() {
3051
+ super("injective_tc_derivatives_rpc.FundingPaymentsRequest", [
3052
+ { no: 1, name: "market_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3053
+ { no: 2, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
3054
+ { no: 3, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3055
+ ]);
3056
+ }
3057
+ create(value?: PartialMessage<FundingPaymentsRequest>): FundingPaymentsRequest {
3058
+ const message = globalThis.Object.create((this.messagePrototype!));
3059
+ message.marketIds = [];
3060
+ message.perPage = 0;
3061
+ message.token = "";
3062
+ if (value !== undefined)
3063
+ reflectionMergePartial<FundingPaymentsRequest>(this, message, value);
3064
+ return message;
3065
+ }
3066
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FundingPaymentsRequest): FundingPaymentsRequest {
3067
+ let message = target ?? this.create(), end = reader.pos + length;
3068
+ while (reader.pos < end) {
3069
+ let [fieldNo, wireType] = reader.tag();
3070
+ switch (fieldNo) {
3071
+ case /* repeated string market_ids */ 1:
3072
+ message.marketIds.push(reader.string());
3073
+ break;
3074
+ case /* sint32 per_page */ 2:
3075
+ message.perPage = reader.sint32();
3076
+ break;
3077
+ case /* string token */ 3:
3078
+ message.token = reader.string();
3079
+ break;
3080
+ default:
3081
+ let u = options.readUnknownField;
3082
+ if (u === "throw")
3083
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3084
+ let d = reader.skip(wireType);
3085
+ if (u !== false)
3086
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3087
+ }
3088
+ }
3089
+ return message;
3090
+ }
3091
+ internalBinaryWrite(message: FundingPaymentsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3092
+ /* repeated string market_ids = 1; */
3093
+ for (let i = 0; i < message.marketIds.length; i++)
3094
+ writer.tag(1, WireType.LengthDelimited).string(message.marketIds[i]);
3095
+ /* sint32 per_page = 2; */
3096
+ if (message.perPage !== 0)
3097
+ writer.tag(2, WireType.Varint).sint32(message.perPage);
3098
+ /* string token = 3; */
3099
+ if (message.token !== "")
3100
+ writer.tag(3, WireType.LengthDelimited).string(message.token);
3101
+ let u = options.writeUnknownFields;
3102
+ if (u !== false)
3103
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3104
+ return writer;
3105
+ }
3106
+ }
3107
+ /**
3108
+ * @generated MessageType for protobuf message injective_tc_derivatives_rpc.FundingPaymentsRequest
3109
+ */
3110
+ export const FundingPaymentsRequest = new FundingPaymentsRequest$Type();
3111
+ // @generated message type with reflection information, may provide speed optimized methods
3112
+ class FundingPaymentsResponse$Type extends MessageType<FundingPaymentsResponse> {
3113
+ constructor() {
3114
+ super("injective_tc_derivatives_rpc.FundingPaymentsResponse", [
3115
+ { no: 1, name: "payments", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FundingPayment },
3116
+ { no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
3117
+ ]);
3118
+ }
3119
+ create(value?: PartialMessage<FundingPaymentsResponse>): FundingPaymentsResponse {
3120
+ const message = globalThis.Object.create((this.messagePrototype!));
3121
+ message.payments = [];
3122
+ message.next = [];
3123
+ if (value !== undefined)
3124
+ reflectionMergePartial<FundingPaymentsResponse>(this, message, value);
3125
+ return message;
3126
+ }
3127
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FundingPaymentsResponse): FundingPaymentsResponse {
3128
+ let message = target ?? this.create(), end = reader.pos + length;
3129
+ while (reader.pos < end) {
3130
+ let [fieldNo, wireType] = reader.tag();
3131
+ switch (fieldNo) {
3132
+ case /* repeated injective_tc_derivatives_rpc.FundingPayment payments */ 1:
3133
+ message.payments.push(FundingPayment.internalBinaryRead(reader, reader.uint32(), options));
3134
+ break;
3135
+ case /* repeated string next */ 2:
3136
+ message.next.push(reader.string());
3137
+ break;
3138
+ default:
3139
+ let u = options.readUnknownField;
3140
+ if (u === "throw")
3141
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3142
+ let d = reader.skip(wireType);
3143
+ if (u !== false)
3144
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3145
+ }
3146
+ }
3147
+ return message;
3148
+ }
3149
+ internalBinaryWrite(message: FundingPaymentsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3150
+ /* repeated injective_tc_derivatives_rpc.FundingPayment payments = 1; */
3151
+ for (let i = 0; i < message.payments.length; i++)
3152
+ FundingPayment.internalBinaryWrite(message.payments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3153
+ /* repeated string next = 2; */
3154
+ for (let i = 0; i < message.next.length; i++)
3155
+ writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
3156
+ let u = options.writeUnknownFields;
3157
+ if (u !== false)
3158
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3159
+ return writer;
3160
+ }
3161
+ }
3162
+ /**
3163
+ * @generated MessageType for protobuf message injective_tc_derivatives_rpc.FundingPaymentsResponse
3164
+ */
3165
+ export const FundingPaymentsResponse = new FundingPaymentsResponse$Type();
3166
+ // @generated message type with reflection information, may provide speed optimized methods
3167
+ class FundingPayment$Type extends MessageType<FundingPayment> {
3168
+ constructor() {
3169
+ super("injective_tc_derivatives_rpc.FundingPayment", [
3170
+ { no: 1, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3171
+ { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3172
+ { no: 3, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3173
+ { no: 4, name: "timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
3174
+ ]);
3175
+ }
3176
+ create(value?: PartialMessage<FundingPayment>): FundingPayment {
3177
+ const message = globalThis.Object.create((this.messagePrototype!));
3178
+ message.marketId = "";
3179
+ message.subaccountId = "";
3180
+ message.amount = "";
3181
+ message.timestamp = 0n;
3182
+ if (value !== undefined)
3183
+ reflectionMergePartial<FundingPayment>(this, message, value);
3184
+ return message;
3185
+ }
3186
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FundingPayment): FundingPayment {
3187
+ let message = target ?? this.create(), end = reader.pos + length;
3188
+ while (reader.pos < end) {
3189
+ let [fieldNo, wireType] = reader.tag();
3190
+ switch (fieldNo) {
3191
+ case /* string market_id */ 1:
3192
+ message.marketId = reader.string();
3193
+ break;
3194
+ case /* string subaccount_id */ 2:
3195
+ message.subaccountId = reader.string();
3196
+ break;
3197
+ case /* string amount */ 3:
3198
+ message.amount = reader.string();
3199
+ break;
3200
+ case /* sint64 timestamp */ 4:
3201
+ message.timestamp = reader.sint64().toBigInt();
3202
+ break;
3203
+ default:
3204
+ let u = options.readUnknownField;
3205
+ if (u === "throw")
3206
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3207
+ let d = reader.skip(wireType);
3208
+ if (u !== false)
3209
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3210
+ }
3211
+ }
3212
+ return message;
3213
+ }
3214
+ internalBinaryWrite(message: FundingPayment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3215
+ /* string market_id = 1; */
3216
+ if (message.marketId !== "")
3217
+ writer.tag(1, WireType.LengthDelimited).string(message.marketId);
3218
+ /* string subaccount_id = 2; */
3219
+ if (message.subaccountId !== "")
3220
+ writer.tag(2, WireType.LengthDelimited).string(message.subaccountId);
3221
+ /* string amount = 3; */
3222
+ if (message.amount !== "")
3223
+ writer.tag(3, WireType.LengthDelimited).string(message.amount);
3224
+ /* sint64 timestamp = 4; */
3225
+ if (message.timestamp !== 0n)
3226
+ writer.tag(4, WireType.Varint).sint64(message.timestamp);
3227
+ let u = options.writeUnknownFields;
3228
+ if (u !== false)
3229
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3230
+ return writer;
3231
+ }
3232
+ }
3233
+ /**
3234
+ * @generated MessageType for protobuf message injective_tc_derivatives_rpc.FundingPayment
3235
+ */
3236
+ export const FundingPayment = new FundingPayment$Type();
2979
3237
  /**
2980
3238
  * @generated ServiceType for protobuf service injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC
2981
3239
  */
@@ -2987,5 +3245,6 @@ export const InjectiveTCDerivativesRPC = new ServiceType("injective_tc_derivativ
2987
3245
  { name: "Trades", options: {}, I: TradesRequest, O: TradesResponse },
2988
3246
  { name: "StreamTrades", serverStreaming: true, options: {}, I: StreamTradesRequest, O: StreamTradesResponse },
2989
3247
  { name: "Positions", options: {}, I: PositionsRequest, O: PositionsResponse },
2990
- { name: "StreamPositions", serverStreaming: true, options: {}, I: StreamPositionsRequest, O: StreamPositionsResponse }
3248
+ { name: "StreamPositions", serverStreaming: true, options: {}, I: StreamPositionsRequest, O: StreamPositionsResponse },
3249
+ { name: "FundingPayments", options: {}, I: FundingPaymentsRequest, O: FundingPaymentsResponse }
2991
3250
  ]);
@@ -2753,6 +2753,234 @@ class StreamPositionsResponse$Type extends MessageType {
2753
2753
  }
2754
2754
  }
2755
2755
  const StreamPositionsResponse = new StreamPositionsResponse$Type();
2756
+ class FundingPaymentsRequest$Type extends MessageType {
2757
+ constructor() {
2758
+ super("injective_tc_derivatives_rpc.FundingPaymentsRequest", [
2759
+ {
2760
+ no: 1,
2761
+ name: "market_ids",
2762
+ kind: "scalar",
2763
+ repeat: 2,
2764
+ T: 9
2765
+ /*ScalarType.STRING*/
2766
+ },
2767
+ {
2768
+ no: 2,
2769
+ name: "per_page",
2770
+ kind: "scalar",
2771
+ T: 17
2772
+ /*ScalarType.SINT32*/
2773
+ },
2774
+ {
2775
+ no: 3,
2776
+ name: "token",
2777
+ kind: "scalar",
2778
+ T: 9
2779
+ /*ScalarType.STRING*/
2780
+ }
2781
+ ]);
2782
+ }
2783
+ create(value) {
2784
+ const message = globalThis.Object.create(this.messagePrototype);
2785
+ message.marketIds = [];
2786
+ message.perPage = 0;
2787
+ message.token = "";
2788
+ if (value !== void 0)
2789
+ reflectionMergePartial(this, message, value);
2790
+ return message;
2791
+ }
2792
+ internalBinaryRead(reader, length, options, target) {
2793
+ let message = target ?? this.create(), end = reader.pos + length;
2794
+ while (reader.pos < end) {
2795
+ let [fieldNo, wireType] = reader.tag();
2796
+ switch (fieldNo) {
2797
+ case /* repeated string market_ids */
2798
+ 1:
2799
+ message.marketIds.push(reader.string());
2800
+ break;
2801
+ case /* sint32 per_page */
2802
+ 2:
2803
+ message.perPage = reader.sint32();
2804
+ break;
2805
+ case /* string token */
2806
+ 3:
2807
+ message.token = reader.string();
2808
+ break;
2809
+ default:
2810
+ let u = options.readUnknownField;
2811
+ if (u === "throw")
2812
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2813
+ let d = reader.skip(wireType);
2814
+ if (u !== false)
2815
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2816
+ }
2817
+ }
2818
+ return message;
2819
+ }
2820
+ internalBinaryWrite(message, writer, options) {
2821
+ for (let i = 0; i < message.marketIds.length; i++)
2822
+ writer.tag(1, WireType.LengthDelimited).string(message.marketIds[i]);
2823
+ if (message.perPage !== 0)
2824
+ writer.tag(2, WireType.Varint).sint32(message.perPage);
2825
+ if (message.token !== "")
2826
+ writer.tag(3, WireType.LengthDelimited).string(message.token);
2827
+ let u = options.writeUnknownFields;
2828
+ if (u !== false)
2829
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2830
+ return writer;
2831
+ }
2832
+ }
2833
+ const FundingPaymentsRequest = new FundingPaymentsRequest$Type();
2834
+ class FundingPaymentsResponse$Type extends MessageType {
2835
+ constructor() {
2836
+ super("injective_tc_derivatives_rpc.FundingPaymentsResponse", [
2837
+ { no: 1, name: "payments", kind: "message", repeat: 2, T: () => FundingPayment },
2838
+ {
2839
+ no: 2,
2840
+ name: "next",
2841
+ kind: "scalar",
2842
+ repeat: 2,
2843
+ T: 9
2844
+ /*ScalarType.STRING*/
2845
+ }
2846
+ ]);
2847
+ }
2848
+ create(value) {
2849
+ const message = globalThis.Object.create(this.messagePrototype);
2850
+ message.payments = [];
2851
+ message.next = [];
2852
+ if (value !== void 0)
2853
+ reflectionMergePartial(this, message, value);
2854
+ return message;
2855
+ }
2856
+ internalBinaryRead(reader, length, options, target) {
2857
+ let message = target ?? this.create(), end = reader.pos + length;
2858
+ while (reader.pos < end) {
2859
+ let [fieldNo, wireType] = reader.tag();
2860
+ switch (fieldNo) {
2861
+ case /* repeated injective_tc_derivatives_rpc.FundingPayment payments */
2862
+ 1:
2863
+ message.payments.push(FundingPayment.internalBinaryRead(reader, reader.uint32(), options));
2864
+ break;
2865
+ case /* repeated string next */
2866
+ 2:
2867
+ message.next.push(reader.string());
2868
+ break;
2869
+ default:
2870
+ let u = options.readUnknownField;
2871
+ if (u === "throw")
2872
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2873
+ let d = reader.skip(wireType);
2874
+ if (u !== false)
2875
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2876
+ }
2877
+ }
2878
+ return message;
2879
+ }
2880
+ internalBinaryWrite(message, writer, options) {
2881
+ for (let i = 0; i < message.payments.length; i++)
2882
+ FundingPayment.internalBinaryWrite(message.payments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2883
+ for (let i = 0; i < message.next.length; i++)
2884
+ writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
2885
+ let u = options.writeUnknownFields;
2886
+ if (u !== false)
2887
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2888
+ return writer;
2889
+ }
2890
+ }
2891
+ const FundingPaymentsResponse = new FundingPaymentsResponse$Type();
2892
+ class FundingPayment$Type extends MessageType {
2893
+ constructor() {
2894
+ super("injective_tc_derivatives_rpc.FundingPayment", [
2895
+ {
2896
+ no: 1,
2897
+ name: "market_id",
2898
+ kind: "scalar",
2899
+ T: 9
2900
+ /*ScalarType.STRING*/
2901
+ },
2902
+ {
2903
+ no: 2,
2904
+ name: "subaccount_id",
2905
+ kind: "scalar",
2906
+ T: 9
2907
+ /*ScalarType.STRING*/
2908
+ },
2909
+ {
2910
+ no: 3,
2911
+ name: "amount",
2912
+ kind: "scalar",
2913
+ T: 9
2914
+ /*ScalarType.STRING*/
2915
+ },
2916
+ {
2917
+ no: 4,
2918
+ name: "timestamp",
2919
+ kind: "scalar",
2920
+ T: 18,
2921
+ L: 0
2922
+ /*LongType.BIGINT*/
2923
+ }
2924
+ ]);
2925
+ }
2926
+ create(value) {
2927
+ const message = globalThis.Object.create(this.messagePrototype);
2928
+ message.marketId = "";
2929
+ message.subaccountId = "";
2930
+ message.amount = "";
2931
+ message.timestamp = 0n;
2932
+ if (value !== void 0)
2933
+ reflectionMergePartial(this, message, value);
2934
+ return message;
2935
+ }
2936
+ internalBinaryRead(reader, length, options, target) {
2937
+ let message = target ?? this.create(), end = reader.pos + length;
2938
+ while (reader.pos < end) {
2939
+ let [fieldNo, wireType] = reader.tag();
2940
+ switch (fieldNo) {
2941
+ case /* string market_id */
2942
+ 1:
2943
+ message.marketId = reader.string();
2944
+ break;
2945
+ case /* string subaccount_id */
2946
+ 2:
2947
+ message.subaccountId = reader.string();
2948
+ break;
2949
+ case /* string amount */
2950
+ 3:
2951
+ message.amount = reader.string();
2952
+ break;
2953
+ case /* sint64 timestamp */
2954
+ 4:
2955
+ message.timestamp = reader.sint64().toBigInt();
2956
+ break;
2957
+ default:
2958
+ let u = options.readUnknownField;
2959
+ if (u === "throw")
2960
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2961
+ let d = reader.skip(wireType);
2962
+ if (u !== false)
2963
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2964
+ }
2965
+ }
2966
+ return message;
2967
+ }
2968
+ internalBinaryWrite(message, writer, options) {
2969
+ if (message.marketId !== "")
2970
+ writer.tag(1, WireType.LengthDelimited).string(message.marketId);
2971
+ if (message.subaccountId !== "")
2972
+ writer.tag(2, WireType.LengthDelimited).string(message.subaccountId);
2973
+ if (message.amount !== "")
2974
+ writer.tag(3, WireType.LengthDelimited).string(message.amount);
2975
+ if (message.timestamp !== 0n)
2976
+ writer.tag(4, WireType.Varint).sint64(message.timestamp);
2977
+ let u = options.writeUnknownFields;
2978
+ if (u !== false)
2979
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2980
+ return writer;
2981
+ }
2982
+ }
2983
+ const FundingPayment = new FundingPayment$Type();
2756
2984
  const InjectiveTCDerivativesRPC = new ServiceType("injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC", [
2757
2985
  { name: "OrdersHistory", options: {}, I: OrdersHistoryRequest, O: OrdersHistoryResponse },
2758
2986
  { name: "StreamOrdersHistory", serverStreaming: true, options: {}, I: StreamOrdersHistoryRequest, O: StreamOrdersHistoryResponse },
@@ -2761,11 +2989,15 @@ const InjectiveTCDerivativesRPC = new ServiceType("injective_tc_derivatives_rpc.
2761
2989
  { name: "Trades", options: {}, I: TradesRequest, O: TradesResponse },
2762
2990
  { name: "StreamTrades", serverStreaming: true, options: {}, I: StreamTradesRequest, O: StreamTradesResponse },
2763
2991
  { name: "Positions", options: {}, I: PositionsRequest, O: PositionsResponse },
2764
- { name: "StreamPositions", serverStreaming: true, options: {}, I: StreamPositionsRequest, O: StreamPositionsResponse }
2992
+ { name: "StreamPositions", serverStreaming: true, options: {}, I: StreamPositionsRequest, O: StreamPositionsResponse },
2993
+ { name: "FundingPayments", options: {}, I: FundingPaymentsRequest, O: FundingPaymentsResponse }
2765
2994
  ]);
2766
2995
  export {
2767
2996
  DerivativeLimitOrder,
2768
2997
  DerivativePositionV2,
2998
+ FundingPayment,
2999
+ FundingPaymentsRequest,
3000
+ FundingPaymentsResponse,
2769
3001
  InjectiveTCDerivativesRPC,
2770
3002
  OrdersHistoryRequest,
2771
3003
  OrdersHistoryResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/indexer-proto-ts-v2",
3
- "version": "1.18.22",
3
+ "version": "1.18.23",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",