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

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.
@@ -178,6 +178,13 @@ export interface DerivativeMarketHistoryRequest {
178
178
  * @generated from protobuf field: bool fill_gaps = 8
179
179
  */
180
180
  fillGaps: boolean;
181
+ /**
182
+ * When true, we'll use index prices. Supersedes useOraclePrices and fillGaps.
183
+ * Disabled for binary options markets.
184
+ *
185
+ * @generated from protobuf field: bool index_prices = 9
186
+ */
187
+ indexPrices: boolean;
181
188
  }
182
189
  /**
183
190
  * @generated from protobuf message injective_chart_rpc.DerivativeMarketHistoryResponse
@@ -783,7 +790,8 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
783
790
  { no: 5, name: "to", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
784
791
  { no: 6, name: "countback", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
785
792
  { no: 7, name: "use_oracle_prices", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
786
- { no: 8, name: "fill_gaps", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
793
+ { no: 8, name: "fill_gaps", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
794
+ { no: 9, name: "index_prices", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
787
795
  ]);
788
796
  }
789
797
  create(value?: PartialMessage<DerivativeMarketHistoryRequest>): DerivativeMarketHistoryRequest {
@@ -796,6 +804,7 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
796
804
  message.countback = 0;
797
805
  message.useOraclePrices = false;
798
806
  message.fillGaps = false;
807
+ message.indexPrices = false;
799
808
  if (value !== undefined)
800
809
  reflectionMergePartial<DerivativeMarketHistoryRequest>(this, message, value);
801
810
  return message;
@@ -829,6 +838,9 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
829
838
  case /* bool fill_gaps */ 8:
830
839
  message.fillGaps = reader.bool();
831
840
  break;
841
+ case /* bool index_prices */ 9:
842
+ message.indexPrices = reader.bool();
843
+ break;
832
844
  default:
833
845
  let u = options.readUnknownField;
834
846
  if (u === "throw")
@@ -865,6 +877,9 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
865
877
  /* bool fill_gaps = 8; */
866
878
  if (message.fillGaps !== false)
867
879
  writer.tag(8, WireType.Varint).bool(message.fillGaps);
880
+ /* bool index_prices = 9; */
881
+ if (message.indexPrices !== false)
882
+ writer.tag(9, WireType.Varint).bool(message.indexPrices);
868
883
  let u = options.writeUnknownFields;
869
884
  if (u !== false)
870
885
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -381,6 +381,13 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
381
381
  kind: "scalar",
382
382
  T: 8
383
383
  /*ScalarType.BOOL*/
384
+ },
385
+ {
386
+ no: 9,
387
+ name: "index_prices",
388
+ kind: "scalar",
389
+ T: 8
390
+ /*ScalarType.BOOL*/
384
391
  }
385
392
  ]);
386
393
  }
@@ -394,6 +401,7 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
394
401
  message.countback = 0;
395
402
  message.useOraclePrices = false;
396
403
  message.fillGaps = false;
404
+ message.indexPrices = false;
397
405
  if (value !== void 0)
398
406
  reflectionMergePartial(this, message, value);
399
407
  return message;
@@ -435,6 +443,10 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
435
443
  8:
436
444
  message.fillGaps = reader.bool();
437
445
  break;
446
+ case /* bool index_prices */
447
+ 9:
448
+ message.indexPrices = reader.bool();
449
+ break;
438
450
  default:
439
451
  let u = options.readUnknownField;
440
452
  if (u === "throw")
@@ -463,6 +475,8 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
463
475
  writer.tag(7, WireType.Varint).bool(message.useOraclePrices);
464
476
  if (message.fillGaps !== false)
465
477
  writer.tag(8, WireType.Varint).bool(message.fillGaps);
478
+ if (message.indexPrices !== false)
479
+ writer.tag(9, WireType.Varint).bool(message.indexPrices);
466
480
  let u = options.writeUnknownFields;
467
481
  if (u !== false)
468
482
  (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 { InjectiveExchangeRPC } from "./injective_exchange_rpc_pb";
15
+ import type { PrepareFeeGrantResponse } from "./injective_exchange_rpc_pb";
16
+ import type { PrepareFeeGrantRequest } from "./injective_exchange_rpc_pb";
15
17
  import type { GetFeePayerResponse } from "./injective_exchange_rpc_pb";
16
18
  import type { GetFeePayerRequest } from "./injective_exchange_rpc_pb";
17
19
  import type { BroadcastCosmosTxResponse } from "./injective_exchange_rpc_pb";
@@ -77,6 +79,12 @@ export interface IInjectiveExchangeRPCClient {
77
79
  * @generated from protobuf rpc: GetFeePayer
78
80
  */
79
81
  getFeePayer(input: GetFeePayerRequest, options?: RpcOptions): UnaryCall<GetFeePayerRequest, GetFeePayerResponse>;
82
+ /**
83
+ * PrepareFeeGrant creates or refreshes a feegrant for a grantee address
84
+ *
85
+ * @generated from protobuf rpc: PrepareFeeGrant
86
+ */
87
+ prepareFeeGrant(input: PrepareFeeGrantRequest, options?: RpcOptions): UnaryCall<PrepareFeeGrantRequest, PrepareFeeGrantResponse>;
80
88
  }
81
89
  /**
82
90
  * InjectiveExchangeRPC defines gRPC API of an Injective Exchange service.
@@ -152,4 +160,13 @@ export class InjectiveExchangeRPCClient implements IInjectiveExchangeRPCClient,
152
160
  const method = this.methods[6], opt = this._transport.mergeOptions(options);
153
161
  return stackIntercept<GetFeePayerRequest, GetFeePayerResponse>("unary", this._transport, method, opt, input);
154
162
  }
163
+ /**
164
+ * PrepareFeeGrant creates or refreshes a feegrant for a grantee address
165
+ *
166
+ * @generated from protobuf rpc: PrepareFeeGrant
167
+ */
168
+ prepareFeeGrant(input: PrepareFeeGrantRequest, options?: RpcOptions): UnaryCall<PrepareFeeGrantRequest, PrepareFeeGrantResponse> {
169
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
170
+ return stackIntercept<PrepareFeeGrantRequest, PrepareFeeGrantResponse>("unary", this._transport, method, opt, input);
171
+ }
155
172
  }
@@ -70,6 +70,15 @@ class InjectiveExchangeRPCClient {
70
70
  const method = this.methods[6], opt = this._transport.mergeOptions(options);
71
71
  return stackIntercept("unary", this._transport, method, opt, input);
72
72
  }
73
+ /**
74
+ * PrepareFeeGrant creates or refreshes a feegrant for a grantee address
75
+ *
76
+ * @generated from protobuf rpc: PrepareFeeGrant
77
+ */
78
+ prepareFeeGrant(input, options) {
79
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
80
+ return stackIntercept("unary", this._transport, method, opt, input);
81
+ }
73
82
  }
74
83
  export {
75
84
  InjectiveExchangeRPCClient
@@ -600,6 +600,58 @@ export interface GetFeePayerResponse {
600
600
  */
601
601
  feePayerPubKey?: CosmosPubKey;
602
602
  }
603
+ /**
604
+ * @generated from protobuf message injective_exchange_rpc.PrepareFeeGrantRequest
605
+ */
606
+ export interface PrepareFeeGrantRequest {
607
+ /**
608
+ * Address that receives the feegrant
609
+ *
610
+ * @generated from protobuf field: string grantee_address = 1
611
+ */
612
+ granteeAddress: string;
613
+ }
614
+ /**
615
+ * @generated from protobuf message injective_exchange_rpc.PrepareFeeGrantResponse
616
+ */
617
+ export interface PrepareFeeGrantResponse {
618
+ /**
619
+ * Feegrant granter address
620
+ *
621
+ * @generated from protobuf field: string granter_address = 1
622
+ */
623
+ granterAddress: string;
624
+ /**
625
+ * Grantee address
626
+ *
627
+ * @generated from protobuf field: string grantee_address = 2
628
+ */
629
+ granteeAddress: string;
630
+ /**
631
+ * Feegrant transaction hash
632
+ *
633
+ * @generated from protobuf field: string tx_hash = 3
634
+ */
635
+ txHash: string;
636
+ /**
637
+ * Feegrant expiration timestamp in Unix milliseconds
638
+ *
639
+ * @generated from protobuf field: uint64 expiration = 4
640
+ */
641
+ expiration: bigint;
642
+ /**
643
+ * Feegrant spend limit
644
+ *
645
+ * @generated from protobuf field: injective_exchange_rpc.CosmosCoin spend_limit = 5
646
+ */
647
+ spendLimit?: CosmosCoin;
648
+ /**
649
+ * Message type URLs allowed by the feegrant
650
+ *
651
+ * @generated from protobuf field: repeated string allowed_messages = 6
652
+ */
653
+ allowedMessages: string[];
654
+ }
603
655
  // @generated message type with reflection information, may provide speed optimized methods
604
656
  class GetTxRequest$Type extends MessageType<GetTxRequest> {
605
657
  constructor() {
@@ -1911,6 +1963,139 @@ class GetFeePayerResponse$Type extends MessageType<GetFeePayerResponse> {
1911
1963
  * @generated MessageType for protobuf message injective_exchange_rpc.GetFeePayerResponse
1912
1964
  */
1913
1965
  export const GetFeePayerResponse = new GetFeePayerResponse$Type();
1966
+ // @generated message type with reflection information, may provide speed optimized methods
1967
+ class PrepareFeeGrantRequest$Type extends MessageType<PrepareFeeGrantRequest> {
1968
+ constructor() {
1969
+ super("injective_exchange_rpc.PrepareFeeGrantRequest", [
1970
+ { no: 1, name: "grantee_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1971
+ ]);
1972
+ }
1973
+ create(value?: PartialMessage<PrepareFeeGrantRequest>): PrepareFeeGrantRequest {
1974
+ const message = globalThis.Object.create((this.messagePrototype!));
1975
+ message.granteeAddress = "";
1976
+ if (value !== undefined)
1977
+ reflectionMergePartial<PrepareFeeGrantRequest>(this, message, value);
1978
+ return message;
1979
+ }
1980
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareFeeGrantRequest): PrepareFeeGrantRequest {
1981
+ let message = target ?? this.create(), end = reader.pos + length;
1982
+ while (reader.pos < end) {
1983
+ let [fieldNo, wireType] = reader.tag();
1984
+ switch (fieldNo) {
1985
+ case /* string grantee_address */ 1:
1986
+ message.granteeAddress = reader.string();
1987
+ break;
1988
+ default:
1989
+ let u = options.readUnknownField;
1990
+ if (u === "throw")
1991
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1992
+ let d = reader.skip(wireType);
1993
+ if (u !== false)
1994
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1995
+ }
1996
+ }
1997
+ return message;
1998
+ }
1999
+ internalBinaryWrite(message: PrepareFeeGrantRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2000
+ /* string grantee_address = 1; */
2001
+ if (message.granteeAddress !== "")
2002
+ writer.tag(1, WireType.LengthDelimited).string(message.granteeAddress);
2003
+ let u = options.writeUnknownFields;
2004
+ if (u !== false)
2005
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2006
+ return writer;
2007
+ }
2008
+ }
2009
+ /**
2010
+ * @generated MessageType for protobuf message injective_exchange_rpc.PrepareFeeGrantRequest
2011
+ */
2012
+ export const PrepareFeeGrantRequest = new PrepareFeeGrantRequest$Type();
2013
+ // @generated message type with reflection information, may provide speed optimized methods
2014
+ class PrepareFeeGrantResponse$Type extends MessageType<PrepareFeeGrantResponse> {
2015
+ constructor() {
2016
+ super("injective_exchange_rpc.PrepareFeeGrantResponse", [
2017
+ { no: 1, name: "granter_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2018
+ { no: 2, name: "grantee_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2019
+ { no: 3, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2020
+ { no: 4, name: "expiration", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2021
+ { no: 5, name: "spend_limit", kind: "message", T: () => CosmosCoin },
2022
+ { no: 6, name: "allowed_messages", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2023
+ ]);
2024
+ }
2025
+ create(value?: PartialMessage<PrepareFeeGrantResponse>): PrepareFeeGrantResponse {
2026
+ const message = globalThis.Object.create((this.messagePrototype!));
2027
+ message.granterAddress = "";
2028
+ message.granteeAddress = "";
2029
+ message.txHash = "";
2030
+ message.expiration = 0n;
2031
+ message.allowedMessages = [];
2032
+ if (value !== undefined)
2033
+ reflectionMergePartial<PrepareFeeGrantResponse>(this, message, value);
2034
+ return message;
2035
+ }
2036
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareFeeGrantResponse): PrepareFeeGrantResponse {
2037
+ let message = target ?? this.create(), end = reader.pos + length;
2038
+ while (reader.pos < end) {
2039
+ let [fieldNo, wireType] = reader.tag();
2040
+ switch (fieldNo) {
2041
+ case /* string granter_address */ 1:
2042
+ message.granterAddress = reader.string();
2043
+ break;
2044
+ case /* string grantee_address */ 2:
2045
+ message.granteeAddress = reader.string();
2046
+ break;
2047
+ case /* string tx_hash */ 3:
2048
+ message.txHash = reader.string();
2049
+ break;
2050
+ case /* uint64 expiration */ 4:
2051
+ message.expiration = reader.uint64().toBigInt();
2052
+ break;
2053
+ case /* injective_exchange_rpc.CosmosCoin spend_limit */ 5:
2054
+ message.spendLimit = CosmosCoin.internalBinaryRead(reader, reader.uint32(), options, message.spendLimit);
2055
+ break;
2056
+ case /* repeated string allowed_messages */ 6:
2057
+ message.allowedMessages.push(reader.string());
2058
+ break;
2059
+ default:
2060
+ let u = options.readUnknownField;
2061
+ if (u === "throw")
2062
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2063
+ let d = reader.skip(wireType);
2064
+ if (u !== false)
2065
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2066
+ }
2067
+ }
2068
+ return message;
2069
+ }
2070
+ internalBinaryWrite(message: PrepareFeeGrantResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2071
+ /* string granter_address = 1; */
2072
+ if (message.granterAddress !== "")
2073
+ writer.tag(1, WireType.LengthDelimited).string(message.granterAddress);
2074
+ /* string grantee_address = 2; */
2075
+ if (message.granteeAddress !== "")
2076
+ writer.tag(2, WireType.LengthDelimited).string(message.granteeAddress);
2077
+ /* string tx_hash = 3; */
2078
+ if (message.txHash !== "")
2079
+ writer.tag(3, WireType.LengthDelimited).string(message.txHash);
2080
+ /* uint64 expiration = 4; */
2081
+ if (message.expiration !== 0n)
2082
+ writer.tag(4, WireType.Varint).uint64(message.expiration);
2083
+ /* injective_exchange_rpc.CosmosCoin spend_limit = 5; */
2084
+ if (message.spendLimit)
2085
+ CosmosCoin.internalBinaryWrite(message.spendLimit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2086
+ /* repeated string allowed_messages = 6; */
2087
+ for (let i = 0; i < message.allowedMessages.length; i++)
2088
+ writer.tag(6, WireType.LengthDelimited).string(message.allowedMessages[i]);
2089
+ let u = options.writeUnknownFields;
2090
+ if (u !== false)
2091
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2092
+ return writer;
2093
+ }
2094
+ }
2095
+ /**
2096
+ * @generated MessageType for protobuf message injective_exchange_rpc.PrepareFeeGrantResponse
2097
+ */
2098
+ export const PrepareFeeGrantResponse = new PrepareFeeGrantResponse$Type();
1914
2099
  /**
1915
2100
  * @generated ServiceType for protobuf service injective_exchange_rpc.InjectiveExchangeRPC
1916
2101
  */
@@ -1921,5 +2106,6 @@ export const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.Inje
1921
2106
  { name: "BroadcastTx", options: {}, I: BroadcastTxRequest, O: BroadcastTxResponse },
1922
2107
  { name: "PrepareCosmosTx", options: {}, I: PrepareCosmosTxRequest, O: PrepareCosmosTxResponse },
1923
2108
  { name: "BroadcastCosmosTx", options: {}, I: BroadcastCosmosTxRequest, O: BroadcastCosmosTxResponse },
1924
- { name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse }
2109
+ { name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse },
2110
+ { name: "PrepareFeeGrant", options: {}, I: PrepareFeeGrantRequest, O: PrepareFeeGrantResponse }
1925
2111
  ]);
@@ -1709,6 +1709,169 @@ class GetFeePayerResponse$Type extends MessageType {
1709
1709
  }
1710
1710
  }
1711
1711
  const GetFeePayerResponse = new GetFeePayerResponse$Type();
1712
+ class PrepareFeeGrantRequest$Type extends MessageType {
1713
+ constructor() {
1714
+ super("injective_exchange_rpc.PrepareFeeGrantRequest", [
1715
+ {
1716
+ no: 1,
1717
+ name: "grantee_address",
1718
+ kind: "scalar",
1719
+ T: 9
1720
+ /*ScalarType.STRING*/
1721
+ }
1722
+ ]);
1723
+ }
1724
+ create(value) {
1725
+ const message = globalThis.Object.create(this.messagePrototype);
1726
+ message.granteeAddress = "";
1727
+ if (value !== void 0)
1728
+ reflectionMergePartial(this, message, value);
1729
+ return message;
1730
+ }
1731
+ internalBinaryRead(reader, length, options, target) {
1732
+ let message = target ?? this.create(), end = reader.pos + length;
1733
+ while (reader.pos < end) {
1734
+ let [fieldNo, wireType] = reader.tag();
1735
+ switch (fieldNo) {
1736
+ case /* string grantee_address */
1737
+ 1:
1738
+ message.granteeAddress = reader.string();
1739
+ break;
1740
+ default:
1741
+ let u = options.readUnknownField;
1742
+ if (u === "throw")
1743
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1744
+ let d = reader.skip(wireType);
1745
+ if (u !== false)
1746
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1747
+ }
1748
+ }
1749
+ return message;
1750
+ }
1751
+ internalBinaryWrite(message, writer, options) {
1752
+ if (message.granteeAddress !== "")
1753
+ writer.tag(1, WireType.LengthDelimited).string(message.granteeAddress);
1754
+ let u = options.writeUnknownFields;
1755
+ if (u !== false)
1756
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1757
+ return writer;
1758
+ }
1759
+ }
1760
+ const PrepareFeeGrantRequest = new PrepareFeeGrantRequest$Type();
1761
+ class PrepareFeeGrantResponse$Type extends MessageType {
1762
+ constructor() {
1763
+ super("injective_exchange_rpc.PrepareFeeGrantResponse", [
1764
+ {
1765
+ no: 1,
1766
+ name: "granter_address",
1767
+ kind: "scalar",
1768
+ T: 9
1769
+ /*ScalarType.STRING*/
1770
+ },
1771
+ {
1772
+ no: 2,
1773
+ name: "grantee_address",
1774
+ kind: "scalar",
1775
+ T: 9
1776
+ /*ScalarType.STRING*/
1777
+ },
1778
+ {
1779
+ no: 3,
1780
+ name: "tx_hash",
1781
+ kind: "scalar",
1782
+ T: 9
1783
+ /*ScalarType.STRING*/
1784
+ },
1785
+ {
1786
+ no: 4,
1787
+ name: "expiration",
1788
+ kind: "scalar",
1789
+ T: 4,
1790
+ L: 0
1791
+ /*LongType.BIGINT*/
1792
+ },
1793
+ { no: 5, name: "spend_limit", kind: "message", T: () => CosmosCoin },
1794
+ {
1795
+ no: 6,
1796
+ name: "allowed_messages",
1797
+ kind: "scalar",
1798
+ repeat: 2,
1799
+ T: 9
1800
+ /*ScalarType.STRING*/
1801
+ }
1802
+ ]);
1803
+ }
1804
+ create(value) {
1805
+ const message = globalThis.Object.create(this.messagePrototype);
1806
+ message.granterAddress = "";
1807
+ message.granteeAddress = "";
1808
+ message.txHash = "";
1809
+ message.expiration = 0n;
1810
+ message.allowedMessages = [];
1811
+ if (value !== void 0)
1812
+ reflectionMergePartial(this, message, value);
1813
+ return message;
1814
+ }
1815
+ internalBinaryRead(reader, length, options, target) {
1816
+ let message = target ?? this.create(), end = reader.pos + length;
1817
+ while (reader.pos < end) {
1818
+ let [fieldNo, wireType] = reader.tag();
1819
+ switch (fieldNo) {
1820
+ case /* string granter_address */
1821
+ 1:
1822
+ message.granterAddress = reader.string();
1823
+ break;
1824
+ case /* string grantee_address */
1825
+ 2:
1826
+ message.granteeAddress = reader.string();
1827
+ break;
1828
+ case /* string tx_hash */
1829
+ 3:
1830
+ message.txHash = reader.string();
1831
+ break;
1832
+ case /* uint64 expiration */
1833
+ 4:
1834
+ message.expiration = reader.uint64().toBigInt();
1835
+ break;
1836
+ case /* injective_exchange_rpc.CosmosCoin spend_limit */
1837
+ 5:
1838
+ message.spendLimit = CosmosCoin.internalBinaryRead(reader, reader.uint32(), options, message.spendLimit);
1839
+ break;
1840
+ case /* repeated string allowed_messages */
1841
+ 6:
1842
+ message.allowedMessages.push(reader.string());
1843
+ break;
1844
+ default:
1845
+ let u = options.readUnknownField;
1846
+ if (u === "throw")
1847
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1848
+ let d = reader.skip(wireType);
1849
+ if (u !== false)
1850
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1851
+ }
1852
+ }
1853
+ return message;
1854
+ }
1855
+ internalBinaryWrite(message, writer, options) {
1856
+ if (message.granterAddress !== "")
1857
+ writer.tag(1, WireType.LengthDelimited).string(message.granterAddress);
1858
+ if (message.granteeAddress !== "")
1859
+ writer.tag(2, WireType.LengthDelimited).string(message.granteeAddress);
1860
+ if (message.txHash !== "")
1861
+ writer.tag(3, WireType.LengthDelimited).string(message.txHash);
1862
+ if (message.expiration !== 0n)
1863
+ writer.tag(4, WireType.Varint).uint64(message.expiration);
1864
+ if (message.spendLimit)
1865
+ CosmosCoin.internalBinaryWrite(message.spendLimit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1866
+ for (let i = 0; i < message.allowedMessages.length; i++)
1867
+ writer.tag(6, WireType.LengthDelimited).string(message.allowedMessages[i]);
1868
+ let u = options.writeUnknownFields;
1869
+ if (u !== false)
1870
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1871
+ return writer;
1872
+ }
1873
+ }
1874
+ const PrepareFeeGrantResponse = new PrepareFeeGrantResponse$Type();
1712
1875
  const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.InjectiveExchangeRPC", [
1713
1876
  { name: "GetTx", options: {}, I: GetTxRequest, O: GetTxResponse },
1714
1877
  { name: "PrepareTx", options: {}, I: PrepareTxRequest, O: PrepareTxResponse },
@@ -1716,7 +1879,8 @@ const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.InjectiveEx
1716
1879
  { name: "BroadcastTx", options: {}, I: BroadcastTxRequest, O: BroadcastTxResponse },
1717
1880
  { name: "PrepareCosmosTx", options: {}, I: PrepareCosmosTxRequest, O: PrepareCosmosTxResponse },
1718
1881
  { name: "BroadcastCosmosTx", options: {}, I: BroadcastCosmosTxRequest, O: BroadcastCosmosTxResponse },
1719
- { name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse }
1882
+ { name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse },
1883
+ { name: "PrepareFeeGrant", options: {}, I: PrepareFeeGrantRequest, O: PrepareFeeGrantResponse }
1720
1884
  ]);
1721
1885
  export {
1722
1886
  BroadcastCosmosTxRequest,
@@ -1735,6 +1899,8 @@ export {
1735
1899
  PrepareCosmosTxResponse,
1736
1900
  PrepareEip712Request,
1737
1901
  PrepareEip712Response,
1902
+ PrepareFeeGrantRequest,
1903
+ PrepareFeeGrantResponse,
1738
1904
  PrepareTxRequest,
1739
1905
  PrepareTxResponse
1740
1906
  };
@@ -878,7 +878,7 @@ export interface ConditionalOrderResponseType {
878
878
  */
879
879
  eventTime: bigint;
880
880
  /**
881
- * Last error message, if any
881
+ * Deprecated: use 'errors' instead. Last error message, if any.
882
882
  *
883
883
  * @generated from protobuf field: string error = 16
884
884
  */
@@ -909,6 +909,12 @@ export interface ConditionalOrderResponseType {
909
909
  * @generated from protobuf field: uint64 taker_nonce_time_window_ms = 20
910
910
  */
911
911
  takerNonceTimeWindowMs: bigint;
912
+ /**
913
+ * All error messages accumulated across execution attempts (most recent last)
914
+ *
915
+ * @generated from protobuf field: repeated string errors = 21
916
+ */
917
+ errors: string[];
912
918
  }
913
919
  /**
914
920
  * @generated from protobuf message injective_rfq_rpc.ListConditionalOrdersRequest
@@ -1304,12 +1310,23 @@ export interface StreamError {
1304
1310
  */
1305
1311
  message: string;
1306
1312
  /**
1307
- * ID to identify the request or quote in the stream. RFQ_ID for quotes.
1308
- * CLIENT_ID for requests.
1313
+ * Client ID. Only filled in taker streams
1309
1314
  *
1310
1315
  * @generated from protobuf field: string id = 3
1311
1316
  */
1312
1317
  id: string;
1318
+ /**
1319
+ * Taker address. Only filled in the maker stream
1320
+ *
1321
+ * @generated from protobuf field: string taker = 4
1322
+ */
1323
+ taker: string;
1324
+ /**
1325
+ * RFQ ID. Only filled if available
1326
+ *
1327
+ * @generated from protobuf field: uint64 rfq_id = 5
1328
+ */
1329
+ rfqId: bigint;
1313
1330
  }
1314
1331
  /**
1315
1332
  * Acknowledgment for conditional order creation
@@ -1434,6 +1451,12 @@ export interface QuoteStreamAck {
1434
1451
  * @generated from protobuf field: string status = 2
1435
1452
  */
1436
1453
  status: string;
1454
+ /**
1455
+ * Taker address
1456
+ *
1457
+ * @generated from protobuf field: string taker = 3
1458
+ */
1459
+ taker: string;
1437
1460
  }
1438
1461
  /**
1439
1462
  * RFQ settlement update streamed to maker in real-time
@@ -3189,7 +3212,8 @@ class ConditionalOrderResponseType$Type extends MessageType<ConditionalOrderResp
3189
3212
  { no: 17, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3190
3213
  { no: 18, name: "terminal_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
3191
3214
  { no: 19, name: "evm_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
3192
- { no: 20, name: "taker_nonce_time_window_ms", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
3215
+ { no: 20, name: "taker_nonce_time_window_ms", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
3216
+ { no: 21, name: "errors", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
3193
3217
  ]);
3194
3218
  }
3195
3219
  create(value?: PartialMessage<ConditionalOrderResponseType>): ConditionalOrderResponseType {
@@ -3214,6 +3238,7 @@ class ConditionalOrderResponseType$Type extends MessageType<ConditionalOrderResp
3214
3238
  message.terminalAt = 0n;
3215
3239
  message.evmChainId = 0n;
3216
3240
  message.takerNonceTimeWindowMs = 0n;
3241
+ message.errors = [];
3217
3242
  if (value !== undefined)
3218
3243
  reflectionMergePartial<ConditionalOrderResponseType>(this, message, value);
3219
3244
  return message;
@@ -3283,6 +3308,9 @@ class ConditionalOrderResponseType$Type extends MessageType<ConditionalOrderResp
3283
3308
  case /* uint64 taker_nonce_time_window_ms */ 20:
3284
3309
  message.takerNonceTimeWindowMs = reader.uint64().toBigInt();
3285
3310
  break;
3311
+ case /* repeated string errors */ 21:
3312
+ message.errors.push(reader.string());
3313
+ break;
3286
3314
  default:
3287
3315
  let u = options.readUnknownField;
3288
3316
  if (u === "throw")
@@ -3355,6 +3383,9 @@ class ConditionalOrderResponseType$Type extends MessageType<ConditionalOrderResp
3355
3383
  /* uint64 taker_nonce_time_window_ms = 20; */
3356
3384
  if (message.takerNonceTimeWindowMs !== 0n)
3357
3385
  writer.tag(20, WireType.Varint).uint64(message.takerNonceTimeWindowMs);
3386
+ /* repeated string errors = 21; */
3387
+ for (let i = 0; i < message.errors.length; i++)
3388
+ writer.tag(21, WireType.LengthDelimited).string(message.errors[i]);
3358
3389
  let u = options.writeUnknownFields;
3359
3390
  if (u !== false)
3360
3391
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4068,7 +4099,9 @@ class StreamError$Type extends MessageType<StreamError> {
4068
4099
  super("injective_rfq_rpc.StreamError", [
4069
4100
  { no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4070
4101
  { no: 2, name: "message_", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4071
- { no: 3, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4102
+ { no: 3, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4103
+ { no: 4, name: "taker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4104
+ { no: 5, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
4072
4105
  ]);
4073
4106
  }
4074
4107
  create(value?: PartialMessage<StreamError>): StreamError {
@@ -4076,6 +4109,8 @@ class StreamError$Type extends MessageType<StreamError> {
4076
4109
  message.code = "";
4077
4110
  message.message = "";
4078
4111
  message.id = "";
4112
+ message.taker = "";
4113
+ message.rfqId = 0n;
4079
4114
  if (value !== undefined)
4080
4115
  reflectionMergePartial<StreamError>(this, message, value);
4081
4116
  return message;
@@ -4094,6 +4129,12 @@ class StreamError$Type extends MessageType<StreamError> {
4094
4129
  case /* string id */ 3:
4095
4130
  message.id = reader.string();
4096
4131
  break;
4132
+ case /* string taker */ 4:
4133
+ message.taker = reader.string();
4134
+ break;
4135
+ case /* uint64 rfq_id */ 5:
4136
+ message.rfqId = reader.uint64().toBigInt();
4137
+ break;
4097
4138
  default:
4098
4139
  let u = options.readUnknownField;
4099
4140
  if (u === "throw")
@@ -4115,6 +4156,12 @@ class StreamError$Type extends MessageType<StreamError> {
4115
4156
  /* string id = 3; */
4116
4157
  if (message.id !== "")
4117
4158
  writer.tag(3, WireType.LengthDelimited).string(message.id);
4159
+ /* string taker = 4; */
4160
+ if (message.taker !== "")
4161
+ writer.tag(4, WireType.LengthDelimited).string(message.taker);
4162
+ /* uint64 rfq_id = 5; */
4163
+ if (message.rfqId !== 0n)
4164
+ writer.tag(5, WireType.Varint).uint64(message.rfqId);
4118
4165
  let u = options.writeUnknownFields;
4119
4166
  if (u !== false)
4120
4167
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4381,13 +4428,15 @@ class QuoteStreamAck$Type extends MessageType<QuoteStreamAck> {
4381
4428
  constructor() {
4382
4429
  super("injective_rfq_rpc.QuoteStreamAck", [
4383
4430
  { no: 1, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
4384
- { no: 2, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4431
+ { no: 2, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4432
+ { no: 3, name: "taker", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4385
4433
  ]);
4386
4434
  }
4387
4435
  create(value?: PartialMessage<QuoteStreamAck>): QuoteStreamAck {
4388
4436
  const message = globalThis.Object.create((this.messagePrototype!));
4389
4437
  message.rfqId = 0n;
4390
4438
  message.status = "";
4439
+ message.taker = "";
4391
4440
  if (value !== undefined)
4392
4441
  reflectionMergePartial<QuoteStreamAck>(this, message, value);
4393
4442
  return message;
@@ -4403,6 +4452,9 @@ class QuoteStreamAck$Type extends MessageType<QuoteStreamAck> {
4403
4452
  case /* string status */ 2:
4404
4453
  message.status = reader.string();
4405
4454
  break;
4455
+ case /* string taker */ 3:
4456
+ message.taker = reader.string();
4457
+ break;
4406
4458
  default:
4407
4459
  let u = options.readUnknownField;
4408
4460
  if (u === "throw")
@@ -4421,6 +4473,9 @@ class QuoteStreamAck$Type extends MessageType<QuoteStreamAck> {
4421
4473
  /* string status = 2; */
4422
4474
  if (message.status !== "")
4423
4475
  writer.tag(2, WireType.LengthDelimited).string(message.status);
4476
+ /* string taker = 3; */
4477
+ if (message.taker !== "")
4478
+ writer.tag(3, WireType.LengthDelimited).string(message.taker);
4424
4479
  let u = options.writeUnknownFields;
4425
4480
  if (u !== false)
4426
4481
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2202,6 +2202,14 @@ class ConditionalOrderResponseType$Type extends MessageType {
2202
2202
  T: 4,
2203
2203
  L: 0
2204
2204
  /*LongType.BIGINT*/
2205
+ },
2206
+ {
2207
+ no: 21,
2208
+ name: "errors",
2209
+ kind: "scalar",
2210
+ repeat: 2,
2211
+ T: 9
2212
+ /*ScalarType.STRING*/
2205
2213
  }
2206
2214
  ]);
2207
2215
  }
@@ -2227,6 +2235,7 @@ class ConditionalOrderResponseType$Type extends MessageType {
2227
2235
  message.terminalAt = 0n;
2228
2236
  message.evmChainId = 0n;
2229
2237
  message.takerNonceTimeWindowMs = 0n;
2238
+ message.errors = [];
2230
2239
  if (value !== void 0)
2231
2240
  reflectionMergePartial(this, message, value);
2232
2241
  return message;
@@ -2316,6 +2325,10 @@ class ConditionalOrderResponseType$Type extends MessageType {
2316
2325
  20:
2317
2326
  message.takerNonceTimeWindowMs = reader.uint64().toBigInt();
2318
2327
  break;
2328
+ case /* repeated string errors */
2329
+ 21:
2330
+ message.errors.push(reader.string());
2331
+ break;
2319
2332
  default:
2320
2333
  let u = options.readUnknownField;
2321
2334
  if (u === "throw")
@@ -2368,6 +2381,8 @@ class ConditionalOrderResponseType$Type extends MessageType {
2368
2381
  writer.tag(19, WireType.Varint).uint64(message.evmChainId);
2369
2382
  if (message.takerNonceTimeWindowMs !== 0n)
2370
2383
  writer.tag(20, WireType.Varint).uint64(message.takerNonceTimeWindowMs);
2384
+ for (let i = 0; i < message.errors.length; i++)
2385
+ writer.tag(21, WireType.LengthDelimited).string(message.errors[i]);
2371
2386
  let u = options.writeUnknownFields;
2372
2387
  if (u !== false)
2373
2388
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3349,6 +3364,21 @@ class StreamError$Type extends MessageType {
3349
3364
  kind: "scalar",
3350
3365
  T: 9
3351
3366
  /*ScalarType.STRING*/
3367
+ },
3368
+ {
3369
+ no: 4,
3370
+ name: "taker",
3371
+ kind: "scalar",
3372
+ T: 9
3373
+ /*ScalarType.STRING*/
3374
+ },
3375
+ {
3376
+ no: 5,
3377
+ name: "rfq_id",
3378
+ kind: "scalar",
3379
+ T: 4,
3380
+ L: 0
3381
+ /*LongType.BIGINT*/
3352
3382
  }
3353
3383
  ]);
3354
3384
  }
@@ -3357,6 +3387,8 @@ class StreamError$Type extends MessageType {
3357
3387
  message.code = "";
3358
3388
  message.message = "";
3359
3389
  message.id = "";
3390
+ message.taker = "";
3391
+ message.rfqId = 0n;
3360
3392
  if (value !== void 0)
3361
3393
  reflectionMergePartial(this, message, value);
3362
3394
  return message;
@@ -3378,6 +3410,14 @@ class StreamError$Type extends MessageType {
3378
3410
  3:
3379
3411
  message.id = reader.string();
3380
3412
  break;
3413
+ case /* string taker */
3414
+ 4:
3415
+ message.taker = reader.string();
3416
+ break;
3417
+ case /* uint64 rfq_id */
3418
+ 5:
3419
+ message.rfqId = reader.uint64().toBigInt();
3420
+ break;
3381
3421
  default:
3382
3422
  let u = options.readUnknownField;
3383
3423
  if (u === "throw")
@@ -3396,6 +3436,10 @@ class StreamError$Type extends MessageType {
3396
3436
  writer.tag(2, WireType.LengthDelimited).string(message.message);
3397
3437
  if (message.id !== "")
3398
3438
  writer.tag(3, WireType.LengthDelimited).string(message.id);
3439
+ if (message.taker !== "")
3440
+ writer.tag(4, WireType.LengthDelimited).string(message.taker);
3441
+ if (message.rfqId !== 0n)
3442
+ writer.tag(5, WireType.Varint).uint64(message.rfqId);
3399
3443
  let u = options.writeUnknownFields;
3400
3444
  if (u !== false)
3401
3445
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3680,6 +3724,13 @@ class QuoteStreamAck$Type extends MessageType {
3680
3724
  kind: "scalar",
3681
3725
  T: 9
3682
3726
  /*ScalarType.STRING*/
3727
+ },
3728
+ {
3729
+ no: 3,
3730
+ name: "taker",
3731
+ kind: "scalar",
3732
+ T: 9
3733
+ /*ScalarType.STRING*/
3683
3734
  }
3684
3735
  ]);
3685
3736
  }
@@ -3687,6 +3738,7 @@ class QuoteStreamAck$Type extends MessageType {
3687
3738
  const message = globalThis.Object.create(this.messagePrototype);
3688
3739
  message.rfqId = 0n;
3689
3740
  message.status = "";
3741
+ message.taker = "";
3690
3742
  if (value !== void 0)
3691
3743
  reflectionMergePartial(this, message, value);
3692
3744
  return message;
@@ -3704,6 +3756,10 @@ class QuoteStreamAck$Type extends MessageType {
3704
3756
  2:
3705
3757
  message.status = reader.string();
3706
3758
  break;
3759
+ case /* string taker */
3760
+ 3:
3761
+ message.taker = reader.string();
3762
+ break;
3707
3763
  default:
3708
3764
  let u = options.readUnknownField;
3709
3765
  if (u === "throw")
@@ -3720,6 +3776,8 @@ class QuoteStreamAck$Type extends MessageType {
3720
3776
  writer.tag(1, WireType.Varint).uint64(message.rfqId);
3721
3777
  if (message.status !== "")
3722
3778
  writer.tag(2, WireType.LengthDelimited).string(message.status);
3779
+ if (message.taker !== "")
3780
+ writer.tag(3, WireType.LengthDelimited).string(message.taker);
3723
3781
  let u = options.writeUnknownFields;
3724
3782
  if (u !== false)
3725
3783
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -547,6 +547,12 @@ export interface TradesRequest {
547
547
  * @generated from protobuf field: string rfq_maker = 11
548
548
  */
549
549
  rfqMaker: string;
550
+ /**
551
+ * filter trades including the address as RFQ maker or the trade account address
552
+ *
553
+ * @generated from protobuf field: string participant = 12
554
+ */
555
+ participant: string;
550
556
  }
551
557
  /**
552
558
  * @generated from protobuf message injective_tc_derivatives_rpc.TradesResponse
@@ -692,6 +698,19 @@ export interface TCDerivativeTrade {
692
698
  * @generated from protobuf field: string account_address = 20
693
699
  */
694
700
  accountAddress: string;
701
+ /**
702
+ * RFQ identifier the synthetic trade was settled under (set only on synthetic
703
+ * trades coming from an RFQ settlement)
704
+ *
705
+ * @generated from protobuf field: uint64 rfq_id = 21
706
+ */
707
+ rfqId: bigint;
708
+ /**
709
+ * Transaction hash where the trade was executed
710
+ *
711
+ * @generated from protobuf field: string tx_hash = 22
712
+ */
713
+ txHash: string;
695
714
  }
696
715
  /**
697
716
  * @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
@@ -1929,7 +1948,8 @@ class TradesRequest$Type extends MessageType<TradesRequest> {
1929
1948
  { no: 8, name: "start_time", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1930
1949
  { no: 9, name: "end_time", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1931
1950
  { no: 10, name: "with_pnl", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1932
- { no: 11, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1951
+ { no: 11, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1952
+ { no: 12, name: "participant", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1933
1953
  ]);
1934
1954
  }
1935
1955
  create(value?: PartialMessage<TradesRequest>): TradesRequest {
@@ -1945,6 +1965,7 @@ class TradesRequest$Type extends MessageType<TradesRequest> {
1945
1965
  message.endTime = 0n;
1946
1966
  message.withPnl = false;
1947
1967
  message.rfqMaker = "";
1968
+ message.participant = "";
1948
1969
  if (value !== undefined)
1949
1970
  reflectionMergePartial<TradesRequest>(this, message, value);
1950
1971
  return message;
@@ -1987,6 +2008,9 @@ class TradesRequest$Type extends MessageType<TradesRequest> {
1987
2008
  case /* string rfq_maker */ 11:
1988
2009
  message.rfqMaker = reader.string();
1989
2010
  break;
2011
+ case /* string participant */ 12:
2012
+ message.participant = reader.string();
2013
+ break;
1990
2014
  default:
1991
2015
  let u = options.readUnknownField;
1992
2016
  if (u === "throw")
@@ -2032,6 +2056,9 @@ class TradesRequest$Type extends MessageType<TradesRequest> {
2032
2056
  /* string rfq_maker = 11; */
2033
2057
  if (message.rfqMaker !== "")
2034
2058
  writer.tag(11, WireType.LengthDelimited).string(message.rfqMaker);
2059
+ /* string participant = 12; */
2060
+ if (message.participant !== "")
2061
+ writer.tag(12, WireType.LengthDelimited).string(message.participant);
2035
2062
  let u = options.writeUnknownFields;
2036
2063
  if (u !== false)
2037
2064
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2120,7 +2147,9 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
2120
2147
  { no: 17, name: "position_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2121
2148
  { no: 18, name: "is_position_closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2122
2149
  { no: 19, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2123
- { no: 20, name: "account_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2150
+ { no: 20, name: "account_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2151
+ { no: 21, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2152
+ { no: 22, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2124
2153
  ]);
2125
2154
  }
2126
2155
  create(value?: PartialMessage<TCDerivativeTrade>): TCDerivativeTrade {
@@ -2144,6 +2173,8 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
2144
2173
  message.isPositionClosed = false;
2145
2174
  message.rfqMaker = "";
2146
2175
  message.accountAddress = "";
2176
+ message.rfqId = 0n;
2177
+ message.txHash = "";
2147
2178
  if (value !== undefined)
2148
2179
  reflectionMergePartial<TCDerivativeTrade>(this, message, value);
2149
2180
  return message;
@@ -2213,6 +2244,12 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
2213
2244
  case /* string account_address */ 20:
2214
2245
  message.accountAddress = reader.string();
2215
2246
  break;
2247
+ case /* uint64 rfq_id */ 21:
2248
+ message.rfqId = reader.uint64().toBigInt();
2249
+ break;
2250
+ case /* string tx_hash */ 22:
2251
+ message.txHash = reader.string();
2252
+ break;
2216
2253
  default:
2217
2254
  let u = options.readUnknownField;
2218
2255
  if (u === "throw")
@@ -2285,6 +2322,12 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
2285
2322
  /* string account_address = 20; */
2286
2323
  if (message.accountAddress !== "")
2287
2324
  writer.tag(20, WireType.LengthDelimited).string(message.accountAddress);
2325
+ /* uint64 rfq_id = 21; */
2326
+ if (message.rfqId !== 0n)
2327
+ writer.tag(21, WireType.Varint).uint64(message.rfqId);
2328
+ /* string tx_hash = 22; */
2329
+ if (message.txHash !== "")
2330
+ writer.tag(22, WireType.LengthDelimited).string(message.txHash);
2288
2331
  let u = options.writeUnknownFields;
2289
2332
  if (u !== false)
2290
2333
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1390,6 +1390,13 @@ class TradesRequest$Type extends MessageType {
1390
1390
  kind: "scalar",
1391
1391
  T: 9
1392
1392
  /*ScalarType.STRING*/
1393
+ },
1394
+ {
1395
+ no: 12,
1396
+ name: "participant",
1397
+ kind: "scalar",
1398
+ T: 9
1399
+ /*ScalarType.STRING*/
1393
1400
  }
1394
1401
  ]);
1395
1402
  }
@@ -1406,6 +1413,7 @@ class TradesRequest$Type extends MessageType {
1406
1413
  message.endTime = 0n;
1407
1414
  message.withPnl = false;
1408
1415
  message.rfqMaker = "";
1416
+ message.participant = "";
1409
1417
  if (value !== void 0)
1410
1418
  reflectionMergePartial(this, message, value);
1411
1419
  return message;
@@ -1459,6 +1467,10 @@ class TradesRequest$Type extends MessageType {
1459
1467
  11:
1460
1468
  message.rfqMaker = reader.string();
1461
1469
  break;
1470
+ case /* string participant */
1471
+ 12:
1472
+ message.participant = reader.string();
1473
+ break;
1462
1474
  default:
1463
1475
  let u = options.readUnknownField;
1464
1476
  if (u === "throw")
@@ -1493,6 +1505,8 @@ class TradesRequest$Type extends MessageType {
1493
1505
  writer.tag(10, WireType.Varint).bool(message.withPnl);
1494
1506
  if (message.rfqMaker !== "")
1495
1507
  writer.tag(11, WireType.LengthDelimited).string(message.rfqMaker);
1508
+ if (message.participant !== "")
1509
+ writer.tag(12, WireType.LengthDelimited).string(message.participant);
1496
1510
  let u = options.writeUnknownFields;
1497
1511
  if (u !== false)
1498
1512
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1696,6 +1710,21 @@ class TCDerivativeTrade$Type extends MessageType {
1696
1710
  kind: "scalar",
1697
1711
  T: 9
1698
1712
  /*ScalarType.STRING*/
1713
+ },
1714
+ {
1715
+ no: 21,
1716
+ name: "rfq_id",
1717
+ kind: "scalar",
1718
+ T: 4,
1719
+ L: 0
1720
+ /*LongType.BIGINT*/
1721
+ },
1722
+ {
1723
+ no: 22,
1724
+ name: "tx_hash",
1725
+ kind: "scalar",
1726
+ T: 9
1727
+ /*ScalarType.STRING*/
1699
1728
  }
1700
1729
  ]);
1701
1730
  }
@@ -1720,6 +1749,8 @@ class TCDerivativeTrade$Type extends MessageType {
1720
1749
  message.isPositionClosed = false;
1721
1750
  message.rfqMaker = "";
1722
1751
  message.accountAddress = "";
1752
+ message.rfqId = 0n;
1753
+ message.txHash = "";
1723
1754
  if (value !== void 0)
1724
1755
  reflectionMergePartial(this, message, value);
1725
1756
  return message;
@@ -1809,6 +1840,14 @@ class TCDerivativeTrade$Type extends MessageType {
1809
1840
  20:
1810
1841
  message.accountAddress = reader.string();
1811
1842
  break;
1843
+ case /* uint64 rfq_id */
1844
+ 21:
1845
+ message.rfqId = reader.uint64().toBigInt();
1846
+ break;
1847
+ case /* string tx_hash */
1848
+ 22:
1849
+ message.txHash = reader.string();
1850
+ break;
1812
1851
  default:
1813
1852
  let u = options.readUnknownField;
1814
1853
  if (u === "throw")
@@ -1861,6 +1900,10 @@ class TCDerivativeTrade$Type extends MessageType {
1861
1900
  writer.tag(19, WireType.LengthDelimited).string(message.rfqMaker);
1862
1901
  if (message.accountAddress !== "")
1863
1902
  writer.tag(20, WireType.LengthDelimited).string(message.accountAddress);
1903
+ if (message.rfqId !== 0n)
1904
+ writer.tag(21, WireType.Varint).uint64(message.rfqId);
1905
+ if (message.txHash !== "")
1906
+ writer.tag(22, WireType.LengthDelimited).string(message.txHash);
1864
1907
  let u = options.writeUnknownFields;
1865
1908
  if (u !== false)
1866
1909
  (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.21",
3
+ "version": "1.18.22",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",