@injectivelabs/indexer-proto-ts-v2 1.18.23 → 1.18.25
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.
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +57 -1
- package/generated/injective_derivative_exchange_rpc_pb.js +56 -0
- package/generated/injective_rfq_gw_rpc_pb.d.ts +57 -1
- package/generated/injective_rfq_gw_rpc_pb.js +56 -0
- package/generated/injective_rfq_rpc_pb.d.ts +1 -1
- package/generated/injective_tc_derivatives_rpc_pb.d.ts +93 -6
- package/generated/injective_tc_derivatives_rpc_pb.js +84 -0
- package/package.json +1 -1
|
@@ -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
|
|
894
|
+
* status: completed, failed, cancelled, or expired)
|
|
895
895
|
*
|
|
896
896
|
* @generated from protobuf field: sint64 terminal_at = 18
|
|
897
897
|
*/
|
|
@@ -548,7 +548,8 @@ export interface TradesRequest {
|
|
|
548
548
|
*/
|
|
549
549
|
rfqMaker: string;
|
|
550
550
|
/**
|
|
551
|
-
* filter trades including the address as RFQ maker or
|
|
551
|
+
* filter trades including the address as trade account, RFQ maker, or RFQ
|
|
552
|
+
* proxy participant
|
|
552
553
|
*
|
|
553
554
|
* @generated from protobuf field: string participant = 12
|
|
554
555
|
*/
|
|
@@ -699,8 +700,9 @@ export interface TCDerivativeTrade {
|
|
|
699
700
|
*/
|
|
700
701
|
accountAddress: string;
|
|
701
702
|
/**
|
|
702
|
-
* RFQ identifier
|
|
703
|
-
* trades
|
|
703
|
+
* RFQ identifier associated with this trade. Set on synthetic RFQ settlement
|
|
704
|
+
* trades and on trades attributed to an atomic RFQ proxy execution; presence
|
|
705
|
+
* alone does not mean the trade is a settlement fill.
|
|
704
706
|
*
|
|
705
707
|
* @generated from protobuf field: uint64 rfq_id = 21
|
|
706
708
|
*/
|
|
@@ -711,6 +713,12 @@ export interface TCDerivativeTrade {
|
|
|
711
713
|
* @generated from protobuf field: string tx_hash = 22
|
|
712
714
|
*/
|
|
713
715
|
txHash: string;
|
|
716
|
+
/**
|
|
717
|
+
* RFQ participant address attributed through atomic RFQ proxy execution
|
|
718
|
+
*
|
|
719
|
+
* @generated from protobuf field: string rfq_participant = 23
|
|
720
|
+
*/
|
|
721
|
+
rfqParticipant: string;
|
|
714
722
|
}
|
|
715
723
|
/**
|
|
716
724
|
* @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
|
|
@@ -762,6 +770,13 @@ export interface StreamTradesRequest {
|
|
|
762
770
|
* @generated from protobuf field: string rfq_maker = 3
|
|
763
771
|
*/
|
|
764
772
|
rfqMaker: string;
|
|
773
|
+
/**
|
|
774
|
+
* filter trades including the address as trade account, RFQ maker, or RFQ
|
|
775
|
+
* proxy participant
|
|
776
|
+
*
|
|
777
|
+
* @generated from protobuf field: string participant = 4
|
|
778
|
+
*/
|
|
779
|
+
participant: string;
|
|
765
780
|
}
|
|
766
781
|
/**
|
|
767
782
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamTradesResponse
|
|
@@ -953,6 +968,30 @@ export interface DerivativePositionV2 {
|
|
|
953
968
|
* @generated from protobuf field: string upnl = 17
|
|
954
969
|
*/
|
|
955
970
|
upnl: string;
|
|
971
|
+
/**
|
|
972
|
+
* Leverage at the time the position was opened
|
|
973
|
+
*
|
|
974
|
+
* @generated from protobuf field: string initial_leverage = 18
|
|
975
|
+
*/
|
|
976
|
+
initialLeverage: string;
|
|
977
|
+
/**
|
|
978
|
+
* Margin at the time the position was opened, in USD
|
|
979
|
+
*
|
|
980
|
+
* @generated from protobuf field: string initial_margin = 19
|
|
981
|
+
*/
|
|
982
|
+
initialMargin: string;
|
|
983
|
+
/**
|
|
984
|
+
* Entry price at the time the position was opened, in USD
|
|
985
|
+
*
|
|
986
|
+
* @generated from protobuf field: string initial_entry_price = 20
|
|
987
|
+
*/
|
|
988
|
+
initialEntryPrice: string;
|
|
989
|
+
/**
|
|
990
|
+
* Quantity at the time the position was opened
|
|
991
|
+
*
|
|
992
|
+
* @generated from protobuf field: string initial_quantity = 21
|
|
993
|
+
*/
|
|
994
|
+
initialQuantity: string;
|
|
956
995
|
}
|
|
957
996
|
/**
|
|
958
997
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamPositionsRequest
|
|
@@ -2218,7 +2257,8 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
|
|
|
2218
2257
|
{ no: 19, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2219
2258
|
{ no: 20, name: "account_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2220
2259
|
{ no: 21, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2221
|
-
{ no: 22, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2260
|
+
{ no: 22, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2261
|
+
{ no: 23, name: "rfq_participant", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2222
2262
|
]);
|
|
2223
2263
|
}
|
|
2224
2264
|
create(value?: PartialMessage<TCDerivativeTrade>): TCDerivativeTrade {
|
|
@@ -2244,6 +2284,7 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
|
|
|
2244
2284
|
message.accountAddress = "";
|
|
2245
2285
|
message.rfqId = 0n;
|
|
2246
2286
|
message.txHash = "";
|
|
2287
|
+
message.rfqParticipant = "";
|
|
2247
2288
|
if (value !== undefined)
|
|
2248
2289
|
reflectionMergePartial<TCDerivativeTrade>(this, message, value);
|
|
2249
2290
|
return message;
|
|
@@ -2319,6 +2360,9 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
|
|
|
2319
2360
|
case /* string tx_hash */ 22:
|
|
2320
2361
|
message.txHash = reader.string();
|
|
2321
2362
|
break;
|
|
2363
|
+
case /* string rfq_participant */ 23:
|
|
2364
|
+
message.rfqParticipant = reader.string();
|
|
2365
|
+
break;
|
|
2322
2366
|
default:
|
|
2323
2367
|
let u = options.readUnknownField;
|
|
2324
2368
|
if (u === "throw")
|
|
@@ -2397,6 +2441,9 @@ class TCDerivativeTrade$Type extends MessageType<TCDerivativeTrade> {
|
|
|
2397
2441
|
/* string tx_hash = 22; */
|
|
2398
2442
|
if (message.txHash !== "")
|
|
2399
2443
|
writer.tag(22, WireType.LengthDelimited).string(message.txHash);
|
|
2444
|
+
/* string rfq_participant = 23; */
|
|
2445
|
+
if (message.rfqParticipant !== "")
|
|
2446
|
+
writer.tag(23, WireType.LengthDelimited).string(message.rfqParticipant);
|
|
2400
2447
|
let u = options.writeUnknownFields;
|
|
2401
2448
|
if (u !== false)
|
|
2402
2449
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2484,7 +2531,8 @@ class StreamTradesRequest$Type extends MessageType<StreamTradesRequest> {
|
|
|
2484
2531
|
super("injective_tc_derivatives_rpc.StreamTradesRequest", [
|
|
2485
2532
|
{ no: 1, name: "market_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2486
2533
|
{ no: 2, name: "account_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2487
|
-
{ no: 3, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2534
|
+
{ no: 3, name: "rfq_maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2535
|
+
{ no: 4, name: "participant", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2488
2536
|
]);
|
|
2489
2537
|
}
|
|
2490
2538
|
create(value?: PartialMessage<StreamTradesRequest>): StreamTradesRequest {
|
|
@@ -2492,6 +2540,7 @@ class StreamTradesRequest$Type extends MessageType<StreamTradesRequest> {
|
|
|
2492
2540
|
message.marketIds = [];
|
|
2493
2541
|
message.accountAddress = "";
|
|
2494
2542
|
message.rfqMaker = "";
|
|
2543
|
+
message.participant = "";
|
|
2495
2544
|
if (value !== undefined)
|
|
2496
2545
|
reflectionMergePartial<StreamTradesRequest>(this, message, value);
|
|
2497
2546
|
return message;
|
|
@@ -2510,6 +2559,9 @@ class StreamTradesRequest$Type extends MessageType<StreamTradesRequest> {
|
|
|
2510
2559
|
case /* string rfq_maker */ 3:
|
|
2511
2560
|
message.rfqMaker = reader.string();
|
|
2512
2561
|
break;
|
|
2562
|
+
case /* string participant */ 4:
|
|
2563
|
+
message.participant = reader.string();
|
|
2564
|
+
break;
|
|
2513
2565
|
default:
|
|
2514
2566
|
let u = options.readUnknownField;
|
|
2515
2567
|
if (u === "throw")
|
|
@@ -2531,6 +2583,9 @@ class StreamTradesRequest$Type extends MessageType<StreamTradesRequest> {
|
|
|
2531
2583
|
/* string rfq_maker = 3; */
|
|
2532
2584
|
if (message.rfqMaker !== "")
|
|
2533
2585
|
writer.tag(3, WireType.LengthDelimited).string(message.rfqMaker);
|
|
2586
|
+
/* string participant = 4; */
|
|
2587
|
+
if (message.participant !== "")
|
|
2588
|
+
writer.tag(4, WireType.LengthDelimited).string(message.participant);
|
|
2534
2589
|
let u = options.writeUnknownFields;
|
|
2535
2590
|
if (u !== false)
|
|
2536
2591
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2780,7 +2835,11 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
|
|
|
2780
2835
|
{ no: 14, name: "funding_sum", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2781
2836
|
{ no: 15, name: "cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2782
2837
|
{ no: 16, name: "effective_cumulative_funding_entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2783
|
-
{ no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2838
|
+
{ no: 17, name: "upnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2839
|
+
{ no: 18, name: "initial_leverage", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2840
|
+
{ no: 19, name: "initial_margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2841
|
+
{ no: 20, name: "initial_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2842
|
+
{ no: 21, name: "initial_quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2784
2843
|
]);
|
|
2785
2844
|
}
|
|
2786
2845
|
create(value?: PartialMessage<DerivativePositionV2>): DerivativePositionV2 {
|
|
@@ -2801,6 +2860,10 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
|
|
|
2801
2860
|
message.cumulativeFundingEntry = "";
|
|
2802
2861
|
message.effectiveCumulativeFundingEntry = "";
|
|
2803
2862
|
message.upnl = "";
|
|
2863
|
+
message.initialLeverage = "";
|
|
2864
|
+
message.initialMargin = "";
|
|
2865
|
+
message.initialEntryPrice = "";
|
|
2866
|
+
message.initialQuantity = "";
|
|
2804
2867
|
if (value !== undefined)
|
|
2805
2868
|
reflectionMergePartial<DerivativePositionV2>(this, message, value);
|
|
2806
2869
|
return message;
|
|
@@ -2858,6 +2921,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
|
|
|
2858
2921
|
case /* string upnl */ 17:
|
|
2859
2922
|
message.upnl = reader.string();
|
|
2860
2923
|
break;
|
|
2924
|
+
case /* string initial_leverage */ 18:
|
|
2925
|
+
message.initialLeverage = reader.string();
|
|
2926
|
+
break;
|
|
2927
|
+
case /* string initial_margin */ 19:
|
|
2928
|
+
message.initialMargin = reader.string();
|
|
2929
|
+
break;
|
|
2930
|
+
case /* string initial_entry_price */ 20:
|
|
2931
|
+
message.initialEntryPrice = reader.string();
|
|
2932
|
+
break;
|
|
2933
|
+
case /* string initial_quantity */ 21:
|
|
2934
|
+
message.initialQuantity = reader.string();
|
|
2935
|
+
break;
|
|
2861
2936
|
default:
|
|
2862
2937
|
let u = options.readUnknownField;
|
|
2863
2938
|
if (u === "throw")
|
|
@@ -2918,6 +2993,18 @@ class DerivativePositionV2$Type extends MessageType<DerivativePositionV2> {
|
|
|
2918
2993
|
/* string upnl = 17; */
|
|
2919
2994
|
if (message.upnl !== "")
|
|
2920
2995
|
writer.tag(17, WireType.LengthDelimited).string(message.upnl);
|
|
2996
|
+
/* string initial_leverage = 18; */
|
|
2997
|
+
if (message.initialLeverage !== "")
|
|
2998
|
+
writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
|
|
2999
|
+
/* string initial_margin = 19; */
|
|
3000
|
+
if (message.initialMargin !== "")
|
|
3001
|
+
writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
|
|
3002
|
+
/* string initial_entry_price = 20; */
|
|
3003
|
+
if (message.initialEntryPrice !== "")
|
|
3004
|
+
writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
|
|
3005
|
+
/* string initial_quantity = 21; */
|
|
3006
|
+
if (message.initialQuantity !== "")
|
|
3007
|
+
writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
|
|
2921
3008
|
let u = options.writeUnknownFields;
|
|
2922
3009
|
if (u !== false)
|
|
2923
3010
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1725,6 +1725,13 @@ class TCDerivativeTrade$Type extends MessageType {
|
|
|
1725
1725
|
kind: "scalar",
|
|
1726
1726
|
T: 9
|
|
1727
1727
|
/*ScalarType.STRING*/
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
no: 23,
|
|
1731
|
+
name: "rfq_participant",
|
|
1732
|
+
kind: "scalar",
|
|
1733
|
+
T: 9
|
|
1734
|
+
/*ScalarType.STRING*/
|
|
1728
1735
|
}
|
|
1729
1736
|
]);
|
|
1730
1737
|
}
|
|
@@ -1751,6 +1758,7 @@ class TCDerivativeTrade$Type extends MessageType {
|
|
|
1751
1758
|
message.accountAddress = "";
|
|
1752
1759
|
message.rfqId = 0n;
|
|
1753
1760
|
message.txHash = "";
|
|
1761
|
+
message.rfqParticipant = "";
|
|
1754
1762
|
if (value !== void 0)
|
|
1755
1763
|
reflectionMergePartial(this, message, value);
|
|
1756
1764
|
return message;
|
|
@@ -1848,6 +1856,10 @@ class TCDerivativeTrade$Type extends MessageType {
|
|
|
1848
1856
|
22:
|
|
1849
1857
|
message.txHash = reader.string();
|
|
1850
1858
|
break;
|
|
1859
|
+
case /* string rfq_participant */
|
|
1860
|
+
23:
|
|
1861
|
+
message.rfqParticipant = reader.string();
|
|
1862
|
+
break;
|
|
1851
1863
|
default:
|
|
1852
1864
|
let u = options.readUnknownField;
|
|
1853
1865
|
if (u === "throw")
|
|
@@ -1904,6 +1916,8 @@ class TCDerivativeTrade$Type extends MessageType {
|
|
|
1904
1916
|
writer.tag(21, WireType.Varint).uint64(message.rfqId);
|
|
1905
1917
|
if (message.txHash !== "")
|
|
1906
1918
|
writer.tag(22, WireType.LengthDelimited).string(message.txHash);
|
|
1919
|
+
if (message.rfqParticipant !== "")
|
|
1920
|
+
writer.tag(23, WireType.LengthDelimited).string(message.rfqParticipant);
|
|
1907
1921
|
let u = options.writeUnknownFields;
|
|
1908
1922
|
if (u !== false)
|
|
1909
1923
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2026,6 +2040,13 @@ class StreamTradesRequest$Type extends MessageType {
|
|
|
2026
2040
|
kind: "scalar",
|
|
2027
2041
|
T: 9
|
|
2028
2042
|
/*ScalarType.STRING*/
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
no: 4,
|
|
2046
|
+
name: "participant",
|
|
2047
|
+
kind: "scalar",
|
|
2048
|
+
T: 9
|
|
2049
|
+
/*ScalarType.STRING*/
|
|
2029
2050
|
}
|
|
2030
2051
|
]);
|
|
2031
2052
|
}
|
|
@@ -2034,6 +2055,7 @@ class StreamTradesRequest$Type extends MessageType {
|
|
|
2034
2055
|
message.marketIds = [];
|
|
2035
2056
|
message.accountAddress = "";
|
|
2036
2057
|
message.rfqMaker = "";
|
|
2058
|
+
message.participant = "";
|
|
2037
2059
|
if (value !== void 0)
|
|
2038
2060
|
reflectionMergePartial(this, message, value);
|
|
2039
2061
|
return message;
|
|
@@ -2055,6 +2077,10 @@ class StreamTradesRequest$Type extends MessageType {
|
|
|
2055
2077
|
3:
|
|
2056
2078
|
message.rfqMaker = reader.string();
|
|
2057
2079
|
break;
|
|
2080
|
+
case /* string participant */
|
|
2081
|
+
4:
|
|
2082
|
+
message.participant = reader.string();
|
|
2083
|
+
break;
|
|
2058
2084
|
default:
|
|
2059
2085
|
let u = options.readUnknownField;
|
|
2060
2086
|
if (u === "throw")
|
|
@@ -2073,6 +2099,8 @@ class StreamTradesRequest$Type extends MessageType {
|
|
|
2073
2099
|
writer.tag(2, WireType.LengthDelimited).string(message.accountAddress);
|
|
2074
2100
|
if (message.rfqMaker !== "")
|
|
2075
2101
|
writer.tag(3, WireType.LengthDelimited).string(message.rfqMaker);
|
|
2102
|
+
if (message.participant !== "")
|
|
2103
|
+
writer.tag(4, WireType.LengthDelimited).string(message.participant);
|
|
2076
2104
|
let u = options.writeUnknownFields;
|
|
2077
2105
|
if (u !== false)
|
|
2078
2106
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2473,6 +2501,34 @@ class DerivativePositionV2$Type extends MessageType {
|
|
|
2473
2501
|
kind: "scalar",
|
|
2474
2502
|
T: 9
|
|
2475
2503
|
/*ScalarType.STRING*/
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
no: 18,
|
|
2507
|
+
name: "initial_leverage",
|
|
2508
|
+
kind: "scalar",
|
|
2509
|
+
T: 9
|
|
2510
|
+
/*ScalarType.STRING*/
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
no: 19,
|
|
2514
|
+
name: "initial_margin",
|
|
2515
|
+
kind: "scalar",
|
|
2516
|
+
T: 9
|
|
2517
|
+
/*ScalarType.STRING*/
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
no: 20,
|
|
2521
|
+
name: "initial_entry_price",
|
|
2522
|
+
kind: "scalar",
|
|
2523
|
+
T: 9
|
|
2524
|
+
/*ScalarType.STRING*/
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
no: 21,
|
|
2528
|
+
name: "initial_quantity",
|
|
2529
|
+
kind: "scalar",
|
|
2530
|
+
T: 9
|
|
2531
|
+
/*ScalarType.STRING*/
|
|
2476
2532
|
}
|
|
2477
2533
|
]);
|
|
2478
2534
|
}
|
|
@@ -2494,6 +2550,10 @@ class DerivativePositionV2$Type extends MessageType {
|
|
|
2494
2550
|
message.cumulativeFundingEntry = "";
|
|
2495
2551
|
message.effectiveCumulativeFundingEntry = "";
|
|
2496
2552
|
message.upnl = "";
|
|
2553
|
+
message.initialLeverage = "";
|
|
2554
|
+
message.initialMargin = "";
|
|
2555
|
+
message.initialEntryPrice = "";
|
|
2556
|
+
message.initialQuantity = "";
|
|
2497
2557
|
if (value !== void 0)
|
|
2498
2558
|
reflectionMergePartial(this, message, value);
|
|
2499
2559
|
return message;
|
|
@@ -2567,6 +2627,22 @@ class DerivativePositionV2$Type extends MessageType {
|
|
|
2567
2627
|
17:
|
|
2568
2628
|
message.upnl = reader.string();
|
|
2569
2629
|
break;
|
|
2630
|
+
case /* string initial_leverage */
|
|
2631
|
+
18:
|
|
2632
|
+
message.initialLeverage = reader.string();
|
|
2633
|
+
break;
|
|
2634
|
+
case /* string initial_margin */
|
|
2635
|
+
19:
|
|
2636
|
+
message.initialMargin = reader.string();
|
|
2637
|
+
break;
|
|
2638
|
+
case /* string initial_entry_price */
|
|
2639
|
+
20:
|
|
2640
|
+
message.initialEntryPrice = reader.string();
|
|
2641
|
+
break;
|
|
2642
|
+
case /* string initial_quantity */
|
|
2643
|
+
21:
|
|
2644
|
+
message.initialQuantity = reader.string();
|
|
2645
|
+
break;
|
|
2570
2646
|
default:
|
|
2571
2647
|
let u = options.readUnknownField;
|
|
2572
2648
|
if (u === "throw")
|
|
@@ -2611,6 +2687,14 @@ class DerivativePositionV2$Type extends MessageType {
|
|
|
2611
2687
|
writer.tag(16, WireType.LengthDelimited).string(message.effectiveCumulativeFundingEntry);
|
|
2612
2688
|
if (message.upnl !== "")
|
|
2613
2689
|
writer.tag(17, WireType.LengthDelimited).string(message.upnl);
|
|
2690
|
+
if (message.initialLeverage !== "")
|
|
2691
|
+
writer.tag(18, WireType.LengthDelimited).string(message.initialLeverage);
|
|
2692
|
+
if (message.initialMargin !== "")
|
|
2693
|
+
writer.tag(19, WireType.LengthDelimited).string(message.initialMargin);
|
|
2694
|
+
if (message.initialEntryPrice !== "")
|
|
2695
|
+
writer.tag(20, WireType.LengthDelimited).string(message.initialEntryPrice);
|
|
2696
|
+
if (message.initialQuantity !== "")
|
|
2697
|
+
writer.tag(21, WireType.LengthDelimited).string(message.initialQuantity);
|
|
2614
2698
|
let u = options.writeUnknownFields;
|
|
2615
2699
|
if (u !== false)
|
|
2616
2700
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|