@injectivelabs/indexer-proto-ts-v2 1.18.22 → 1.18.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +123 -3
- package/generated/injective_rfq_gw_rpc_pb.js +112 -0
- package/generated/injective_rfq_rpc_pb.d.ts +1 -1
- package/generated/injective_tc_derivatives_rpc_pb.client.d.ts +17 -0
- package/generated/injective_tc_derivatives_rpc_pb.client.js +9 -0
- package/generated/injective_tc_derivatives_rpc_pb.d.ts +317 -2
- package/generated/injective_tc_derivatives_rpc_pb.js +289 -1
- 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);
|
|
@@ -128,6 +128,20 @@ export interface RFQGwPrepareEip712AutoSignRequestType {
|
|
|
128
128
|
* @generated from protobuf field: string cid = 23
|
|
129
129
|
*/
|
|
130
130
|
cid: string;
|
|
131
|
+
/**
|
|
132
|
+
* Simulate the tx on chain and use the estimated gas (with adjustment buffer)
|
|
133
|
+
* instead of the fee payer max gas. Falls back to max gas if the simulation
|
|
134
|
+
* fails.
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf field: bool simulate = 24
|
|
137
|
+
*/
|
|
138
|
+
simulate: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Optional outer Cosmos TxBody memo
|
|
141
|
+
*
|
|
142
|
+
* @generated from protobuf field: string tx_body_memo = 25
|
|
143
|
+
*/
|
|
144
|
+
txBodyMemo: string;
|
|
131
145
|
/**
|
|
132
146
|
* Real taker address (authz granter); used as MsgExecuteContractCompat sender
|
|
133
147
|
*
|
|
@@ -149,7 +163,7 @@ export interface RFQGwPrepareEip712AutoSignRequestType {
|
|
|
149
163
|
*/
|
|
150
164
|
eip712Wrapper: string;
|
|
151
165
|
/**
|
|
152
|
-
* Optional gas limit override
|
|
166
|
+
* Optional gas limit override. Takes precedence over simulate
|
|
153
167
|
*
|
|
154
168
|
* @generated from protobuf field: uint64 gas = 33
|
|
155
169
|
*/
|
|
@@ -429,6 +443,20 @@ export interface RFQGwPrepareAutoSignRequestType {
|
|
|
429
443
|
* @generated from protobuf field: string cid = 23
|
|
430
444
|
*/
|
|
431
445
|
cid: string;
|
|
446
|
+
/**
|
|
447
|
+
* Simulate the tx on chain and use the estimated gas (with adjustment buffer)
|
|
448
|
+
* instead of the fee payer max gas. Falls back to max gas if the simulation
|
|
449
|
+
* fails.
|
|
450
|
+
*
|
|
451
|
+
* @generated from protobuf field: bool simulate = 24
|
|
452
|
+
*/
|
|
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;
|
|
432
460
|
/**
|
|
433
461
|
* Real taker address (authz granter); used as MsgExecuteContractCompat sender
|
|
434
462
|
*
|
|
@@ -634,6 +662,20 @@ export interface RFQGwPrepareEip712RequestType {
|
|
|
634
662
|
* @generated from protobuf field: string cid = 23
|
|
635
663
|
*/
|
|
636
664
|
cid: string;
|
|
665
|
+
/**
|
|
666
|
+
* Simulate the tx on chain and use the estimated gas (with adjustment buffer)
|
|
667
|
+
* instead of the fee payer max gas. Falls back to max gas if the simulation
|
|
668
|
+
* fails.
|
|
669
|
+
*
|
|
670
|
+
* @generated from protobuf field: bool simulate = 24
|
|
671
|
+
*/
|
|
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;
|
|
637
679
|
/**
|
|
638
680
|
* EVM chain ID used in the EIP712 domain separator (e.g. 1 for Injective
|
|
639
681
|
* mainnet)
|
|
@@ -649,7 +691,7 @@ export interface RFQGwPrepareEip712RequestType {
|
|
|
649
691
|
*/
|
|
650
692
|
eip712Wrapper: string;
|
|
651
693
|
/**
|
|
652
|
-
* Optional gas limit override
|
|
694
|
+
* Optional gas limit override. Takes precedence over simulate
|
|
653
695
|
*
|
|
654
696
|
* @generated from protobuf field: uint64 gas = 32
|
|
655
697
|
*/
|
|
@@ -841,6 +883,20 @@ export interface RFQGwPrepareRequestType {
|
|
|
841
883
|
* @generated from protobuf field: string cid = 23
|
|
842
884
|
*/
|
|
843
885
|
cid: string;
|
|
886
|
+
/**
|
|
887
|
+
* Simulate the tx on chain and use the estimated gas (with adjustment buffer)
|
|
888
|
+
* instead of the fee payer max gas. Falls back to max gas if the simulation
|
|
889
|
+
* fails.
|
|
890
|
+
*
|
|
891
|
+
* @generated from protobuf field: bool simulate = 24
|
|
892
|
+
*/
|
|
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;
|
|
844
900
|
}
|
|
845
901
|
/**
|
|
846
902
|
* @generated from protobuf message injective_rfq_gw_rpc.PrepareResponse
|
|
@@ -1000,6 +1056,8 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
|
|
|
1000
1056
|
{ no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
|
|
1001
1057
|
{ no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1002
1058
|
{ no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1059
|
+
{ no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1060
|
+
{ no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1003
1061
|
{ no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1004
1062
|
{ no: 31, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1005
1063
|
{ no: 32, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -1024,6 +1082,8 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
|
|
|
1024
1082
|
message.quotesWaitTimeMs = 0n;
|
|
1025
1083
|
message.subaccountNonce = 0;
|
|
1026
1084
|
message.cid = "";
|
|
1085
|
+
message.simulate = false;
|
|
1086
|
+
message.txBodyMemo = "";
|
|
1027
1087
|
message.takerAddress = "";
|
|
1028
1088
|
message.ethChainId = 0n;
|
|
1029
1089
|
message.eip712Wrapper = "";
|
|
@@ -1088,6 +1148,12 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
|
|
|
1088
1148
|
case /* string cid */ 23:
|
|
1089
1149
|
message.cid = reader.string();
|
|
1090
1150
|
break;
|
|
1151
|
+
case /* bool simulate */ 24:
|
|
1152
|
+
message.simulate = reader.bool();
|
|
1153
|
+
break;
|
|
1154
|
+
case /* string tx_body_memo */ 25:
|
|
1155
|
+
message.txBodyMemo = reader.string();
|
|
1156
|
+
break;
|
|
1091
1157
|
case /* string taker_address */ 30:
|
|
1092
1158
|
message.takerAddress = reader.string();
|
|
1093
1159
|
break;
|
|
@@ -1163,6 +1229,12 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType<RFQGwPrepar
|
|
|
1163
1229
|
/* string cid = 23; */
|
|
1164
1230
|
if (message.cid !== "")
|
|
1165
1231
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
1232
|
+
/* bool simulate = 24; */
|
|
1233
|
+
if (message.simulate !== false)
|
|
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);
|
|
1166
1238
|
/* string taker_address = 30; */
|
|
1167
1239
|
if (message.takerAddress !== "")
|
|
1168
1240
|
writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
|
|
@@ -1650,6 +1722,8 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
|
|
|
1650
1722
|
{ no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
|
|
1651
1723
|
{ no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1652
1724
|
{ no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1725
|
+
{ no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1726
|
+
{ no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1653
1727
|
{ no: 30, name: "taker_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1654
1728
|
]);
|
|
1655
1729
|
}
|
|
@@ -1671,6 +1745,8 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
|
|
|
1671
1745
|
message.quotesWaitTimeMs = 0n;
|
|
1672
1746
|
message.subaccountNonce = 0;
|
|
1673
1747
|
message.cid = "";
|
|
1748
|
+
message.simulate = false;
|
|
1749
|
+
message.txBodyMemo = "";
|
|
1674
1750
|
message.takerAddress = "";
|
|
1675
1751
|
if (value !== undefined)
|
|
1676
1752
|
reflectionMergePartial<RFQGwPrepareAutoSignRequestType>(this, message, value);
|
|
@@ -1732,6 +1808,12 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
|
|
|
1732
1808
|
case /* string cid */ 23:
|
|
1733
1809
|
message.cid = reader.string();
|
|
1734
1810
|
break;
|
|
1811
|
+
case /* bool simulate */ 24:
|
|
1812
|
+
message.simulate = reader.bool();
|
|
1813
|
+
break;
|
|
1814
|
+
case /* string tx_body_memo */ 25:
|
|
1815
|
+
message.txBodyMemo = reader.string();
|
|
1816
|
+
break;
|
|
1735
1817
|
case /* string taker_address */ 30:
|
|
1736
1818
|
message.takerAddress = reader.string();
|
|
1737
1819
|
break;
|
|
@@ -1798,6 +1880,12 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType<RFQGwPrepareAutoS
|
|
|
1798
1880
|
/* string cid = 23; */
|
|
1799
1881
|
if (message.cid !== "")
|
|
1800
1882
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
1883
|
+
/* bool simulate = 24; */
|
|
1884
|
+
if (message.simulate !== false)
|
|
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);
|
|
1801
1889
|
/* string taker_address = 30; */
|
|
1802
1890
|
if (message.takerAddress !== "")
|
|
1803
1891
|
writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
|
|
@@ -2028,6 +2116,8 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
|
|
|
2028
2116
|
{ no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
|
|
2029
2117
|
{ no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
2030
2118
|
{ no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2119
|
+
{ no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2120
|
+
{ no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2031
2121
|
{ no: 30, name: "eth_chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2032
2122
|
{ no: 31, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2033
2123
|
{ no: 32, name: "gas", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
@@ -2051,6 +2141,8 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
|
|
|
2051
2141
|
message.quotesWaitTimeMs = 0n;
|
|
2052
2142
|
message.subaccountNonce = 0;
|
|
2053
2143
|
message.cid = "";
|
|
2144
|
+
message.simulate = false;
|
|
2145
|
+
message.txBodyMemo = "";
|
|
2054
2146
|
message.ethChainId = 0n;
|
|
2055
2147
|
message.eip712Wrapper = "";
|
|
2056
2148
|
message.gas = 0n;
|
|
@@ -2114,6 +2206,12 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
|
|
|
2114
2206
|
case /* string cid */ 23:
|
|
2115
2207
|
message.cid = reader.string();
|
|
2116
2208
|
break;
|
|
2209
|
+
case /* bool simulate */ 24:
|
|
2210
|
+
message.simulate = reader.bool();
|
|
2211
|
+
break;
|
|
2212
|
+
case /* string tx_body_memo */ 25:
|
|
2213
|
+
message.txBodyMemo = reader.string();
|
|
2214
|
+
break;
|
|
2117
2215
|
case /* uint64 eth_chain_id */ 30:
|
|
2118
2216
|
message.ethChainId = reader.uint64().toBigInt();
|
|
2119
2217
|
break;
|
|
@@ -2186,6 +2284,12 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType<RFQGwPrepareEip712R
|
|
|
2186
2284
|
/* string cid = 23; */
|
|
2187
2285
|
if (message.cid !== "")
|
|
2188
2286
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
2287
|
+
/* bool simulate = 24; */
|
|
2288
|
+
if (message.simulate !== false)
|
|
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);
|
|
2189
2293
|
/* uint64 eth_chain_id = 30; */
|
|
2190
2294
|
if (message.ethChainId !== 0n)
|
|
2191
2295
|
writer.tag(30, WireType.Varint).uint64(message.ethChainId);
|
|
@@ -2405,7 +2509,9 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
|
|
|
2405
2509
|
{ no: 20, name: "quotes_wait_time_ms", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2406
2510
|
{ no: 21, name: "unfilled_action", kind: "message", T: () => RFQSettlementUnfilledActionType },
|
|
2407
2511
|
{ no: 22, name: "subaccount_nonce", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
2408
|
-
{ no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2512
|
+
{ no: 23, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2513
|
+
{ no: 24, name: "simulate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2514
|
+
{ no: 25, name: "tx_body_memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2409
2515
|
]);
|
|
2410
2516
|
}
|
|
2411
2517
|
create(value?: PartialMessage<RFQGwPrepareRequestType>): RFQGwPrepareRequestType {
|
|
@@ -2426,6 +2532,8 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
|
|
|
2426
2532
|
message.quotesWaitTimeMs = 0n;
|
|
2427
2533
|
message.subaccountNonce = 0;
|
|
2428
2534
|
message.cid = "";
|
|
2535
|
+
message.simulate = false;
|
|
2536
|
+
message.txBodyMemo = "";
|
|
2429
2537
|
if (value !== undefined)
|
|
2430
2538
|
reflectionMergePartial<RFQGwPrepareRequestType>(this, message, value);
|
|
2431
2539
|
return message;
|
|
@@ -2486,6 +2594,12 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
|
|
|
2486
2594
|
case /* string cid */ 23:
|
|
2487
2595
|
message.cid = reader.string();
|
|
2488
2596
|
break;
|
|
2597
|
+
case /* bool simulate */ 24:
|
|
2598
|
+
message.simulate = reader.bool();
|
|
2599
|
+
break;
|
|
2600
|
+
case /* string tx_body_memo */ 25:
|
|
2601
|
+
message.txBodyMemo = reader.string();
|
|
2602
|
+
break;
|
|
2489
2603
|
default:
|
|
2490
2604
|
let u = options.readUnknownField;
|
|
2491
2605
|
if (u === "throw")
|
|
@@ -2549,6 +2663,12 @@ class RFQGwPrepareRequestType$Type extends MessageType<RFQGwPrepareRequestType>
|
|
|
2549
2663
|
/* string cid = 23; */
|
|
2550
2664
|
if (message.cid !== "")
|
|
2551
2665
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
2666
|
+
/* bool simulate = 24; */
|
|
2667
|
+
if (message.simulate !== false)
|
|
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);
|
|
2552
2672
|
let u = options.writeUnknownFields;
|
|
2553
2673
|
if (u !== false)
|
|
2554
2674
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -167,6 +167,20 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
|
|
|
167
167
|
T: 9
|
|
168
168
|
/*ScalarType.STRING*/
|
|
169
169
|
},
|
|
170
|
+
{
|
|
171
|
+
no: 24,
|
|
172
|
+
name: "simulate",
|
|
173
|
+
kind: "scalar",
|
|
174
|
+
T: 8
|
|
175
|
+
/*ScalarType.BOOL*/
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
no: 25,
|
|
179
|
+
name: "tx_body_memo",
|
|
180
|
+
kind: "scalar",
|
|
181
|
+
T: 9
|
|
182
|
+
/*ScalarType.STRING*/
|
|
183
|
+
},
|
|
170
184
|
{
|
|
171
185
|
no: 30,
|
|
172
186
|
name: "taker_address",
|
|
@@ -217,6 +231,8 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
|
|
|
217
231
|
message.quotesWaitTimeMs = 0n;
|
|
218
232
|
message.subaccountNonce = 0;
|
|
219
233
|
message.cid = "";
|
|
234
|
+
message.simulate = false;
|
|
235
|
+
message.txBodyMemo = "";
|
|
220
236
|
message.takerAddress = "";
|
|
221
237
|
message.ethChainId = 0n;
|
|
222
238
|
message.eip712Wrapper = "";
|
|
@@ -298,6 +314,14 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
|
|
|
298
314
|
23:
|
|
299
315
|
message.cid = reader.string();
|
|
300
316
|
break;
|
|
317
|
+
case /* bool simulate */
|
|
318
|
+
24:
|
|
319
|
+
message.simulate = reader.bool();
|
|
320
|
+
break;
|
|
321
|
+
case /* string tx_body_memo */
|
|
322
|
+
25:
|
|
323
|
+
message.txBodyMemo = reader.string();
|
|
324
|
+
break;
|
|
301
325
|
case /* string taker_address */
|
|
302
326
|
30:
|
|
303
327
|
message.takerAddress = reader.string();
|
|
@@ -360,6 +384,10 @@ class RFQGwPrepareEip712AutoSignRequestType$Type extends MessageType {
|
|
|
360
384
|
writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
|
|
361
385
|
if (message.cid !== "")
|
|
362
386
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
387
|
+
if (message.simulate !== false)
|
|
388
|
+
writer.tag(24, WireType.Varint).bool(message.simulate);
|
|
389
|
+
if (message.txBodyMemo !== "")
|
|
390
|
+
writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
|
|
363
391
|
if (message.takerAddress !== "")
|
|
364
392
|
writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
|
|
365
393
|
if (message.ethChainId !== 0n)
|
|
@@ -1020,6 +1048,20 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
|
|
|
1020
1048
|
T: 9
|
|
1021
1049
|
/*ScalarType.STRING*/
|
|
1022
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
no: 24,
|
|
1053
|
+
name: "simulate",
|
|
1054
|
+
kind: "scalar",
|
|
1055
|
+
T: 8
|
|
1056
|
+
/*ScalarType.BOOL*/
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
no: 25,
|
|
1060
|
+
name: "tx_body_memo",
|
|
1061
|
+
kind: "scalar",
|
|
1062
|
+
T: 9
|
|
1063
|
+
/*ScalarType.STRING*/
|
|
1064
|
+
},
|
|
1023
1065
|
{
|
|
1024
1066
|
no: 30,
|
|
1025
1067
|
name: "taker_address",
|
|
@@ -1047,6 +1089,8 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
|
|
|
1047
1089
|
message.quotesWaitTimeMs = 0n;
|
|
1048
1090
|
message.subaccountNonce = 0;
|
|
1049
1091
|
message.cid = "";
|
|
1092
|
+
message.simulate = false;
|
|
1093
|
+
message.txBodyMemo = "";
|
|
1050
1094
|
message.takerAddress = "";
|
|
1051
1095
|
if (value !== void 0)
|
|
1052
1096
|
reflectionMergePartial(this, message, value);
|
|
@@ -1125,6 +1169,14 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
|
|
|
1125
1169
|
23:
|
|
1126
1170
|
message.cid = reader.string();
|
|
1127
1171
|
break;
|
|
1172
|
+
case /* bool simulate */
|
|
1173
|
+
24:
|
|
1174
|
+
message.simulate = reader.bool();
|
|
1175
|
+
break;
|
|
1176
|
+
case /* string tx_body_memo */
|
|
1177
|
+
25:
|
|
1178
|
+
message.txBodyMemo = reader.string();
|
|
1179
|
+
break;
|
|
1128
1180
|
case /* string taker_address */
|
|
1129
1181
|
30:
|
|
1130
1182
|
message.takerAddress = reader.string();
|
|
@@ -1175,6 +1227,10 @@ class RFQGwPrepareAutoSignRequestType$Type extends MessageType {
|
|
|
1175
1227
|
writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
|
|
1176
1228
|
if (message.cid !== "")
|
|
1177
1229
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
1230
|
+
if (message.simulate !== false)
|
|
1231
|
+
writer.tag(24, WireType.Varint).bool(message.simulate);
|
|
1232
|
+
if (message.txBodyMemo !== "")
|
|
1233
|
+
writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
|
|
1178
1234
|
if (message.takerAddress !== "")
|
|
1179
1235
|
writer.tag(30, WireType.LengthDelimited).string(message.takerAddress);
|
|
1180
1236
|
let u = options.writeUnknownFields;
|
|
@@ -1573,6 +1629,20 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
|
|
|
1573
1629
|
T: 9
|
|
1574
1630
|
/*ScalarType.STRING*/
|
|
1575
1631
|
},
|
|
1632
|
+
{
|
|
1633
|
+
no: 24,
|
|
1634
|
+
name: "simulate",
|
|
1635
|
+
kind: "scalar",
|
|
1636
|
+
T: 8
|
|
1637
|
+
/*ScalarType.BOOL*/
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
no: 25,
|
|
1641
|
+
name: "tx_body_memo",
|
|
1642
|
+
kind: "scalar",
|
|
1643
|
+
T: 9
|
|
1644
|
+
/*ScalarType.STRING*/
|
|
1645
|
+
},
|
|
1576
1646
|
{
|
|
1577
1647
|
no: 30,
|
|
1578
1648
|
name: "eth_chain_id",
|
|
@@ -1616,6 +1686,8 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
|
|
|
1616
1686
|
message.quotesWaitTimeMs = 0n;
|
|
1617
1687
|
message.subaccountNonce = 0;
|
|
1618
1688
|
message.cid = "";
|
|
1689
|
+
message.simulate = false;
|
|
1690
|
+
message.txBodyMemo = "";
|
|
1619
1691
|
message.ethChainId = 0n;
|
|
1620
1692
|
message.eip712Wrapper = "";
|
|
1621
1693
|
message.gas = 0n;
|
|
@@ -1696,6 +1768,14 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
|
|
|
1696
1768
|
23:
|
|
1697
1769
|
message.cid = reader.string();
|
|
1698
1770
|
break;
|
|
1771
|
+
case /* bool simulate */
|
|
1772
|
+
24:
|
|
1773
|
+
message.simulate = reader.bool();
|
|
1774
|
+
break;
|
|
1775
|
+
case /* string tx_body_memo */
|
|
1776
|
+
25:
|
|
1777
|
+
message.txBodyMemo = reader.string();
|
|
1778
|
+
break;
|
|
1699
1779
|
case /* uint64 eth_chain_id */
|
|
1700
1780
|
30:
|
|
1701
1781
|
message.ethChainId = reader.uint64().toBigInt();
|
|
@@ -1754,6 +1834,10 @@ class RFQGwPrepareEip712RequestType$Type extends MessageType {
|
|
|
1754
1834
|
writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
|
|
1755
1835
|
if (message.cid !== "")
|
|
1756
1836
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
1837
|
+
if (message.simulate !== false)
|
|
1838
|
+
writer.tag(24, WireType.Varint).bool(message.simulate);
|
|
1839
|
+
if (message.txBodyMemo !== "")
|
|
1840
|
+
writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
|
|
1757
1841
|
if (message.ethChainId !== 0n)
|
|
1758
1842
|
writer.tag(30, WireType.Varint).uint64(message.ethChainId);
|
|
1759
1843
|
if (message.eip712Wrapper !== "")
|
|
@@ -2125,6 +2209,20 @@ class RFQGwPrepareRequestType$Type extends MessageType {
|
|
|
2125
2209
|
kind: "scalar",
|
|
2126
2210
|
T: 9
|
|
2127
2211
|
/*ScalarType.STRING*/
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
no: 24,
|
|
2215
|
+
name: "simulate",
|
|
2216
|
+
kind: "scalar",
|
|
2217
|
+
T: 8
|
|
2218
|
+
/*ScalarType.BOOL*/
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
no: 25,
|
|
2222
|
+
name: "tx_body_memo",
|
|
2223
|
+
kind: "scalar",
|
|
2224
|
+
T: 9
|
|
2225
|
+
/*ScalarType.STRING*/
|
|
2128
2226
|
}
|
|
2129
2227
|
]);
|
|
2130
2228
|
}
|
|
@@ -2146,6 +2244,8 @@ class RFQGwPrepareRequestType$Type extends MessageType {
|
|
|
2146
2244
|
message.quotesWaitTimeMs = 0n;
|
|
2147
2245
|
message.subaccountNonce = 0;
|
|
2148
2246
|
message.cid = "";
|
|
2247
|
+
message.simulate = false;
|
|
2248
|
+
message.txBodyMemo = "";
|
|
2149
2249
|
if (value !== void 0)
|
|
2150
2250
|
reflectionMergePartial(this, message, value);
|
|
2151
2251
|
return message;
|
|
@@ -2223,6 +2323,14 @@ class RFQGwPrepareRequestType$Type extends MessageType {
|
|
|
2223
2323
|
23:
|
|
2224
2324
|
message.cid = reader.string();
|
|
2225
2325
|
break;
|
|
2326
|
+
case /* bool simulate */
|
|
2327
|
+
24:
|
|
2328
|
+
message.simulate = reader.bool();
|
|
2329
|
+
break;
|
|
2330
|
+
case /* string tx_body_memo */
|
|
2331
|
+
25:
|
|
2332
|
+
message.txBodyMemo = reader.string();
|
|
2333
|
+
break;
|
|
2226
2334
|
default:
|
|
2227
2335
|
let u = options.readUnknownField;
|
|
2228
2336
|
if (u === "throw")
|
|
@@ -2269,6 +2377,10 @@ class RFQGwPrepareRequestType$Type extends MessageType {
|
|
|
2269
2377
|
writer.tag(22, WireType.Varint).uint32(message.subaccountNonce);
|
|
2270
2378
|
if (message.cid !== "")
|
|
2271
2379
|
writer.tag(23, WireType.LengthDelimited).string(message.cid);
|
|
2380
|
+
if (message.simulate !== false)
|
|
2381
|
+
writer.tag(24, WireType.Varint).bool(message.simulate);
|
|
2382
|
+
if (message.txBodyMemo !== "")
|
|
2383
|
+
writer.tag(25, WireType.LengthDelimited).string(message.txBodyMemo);
|
|
2272
2384
|
let u = options.writeUnknownFields;
|
|
2273
2385
|
if (u !== false)
|
|
2274
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
|
*/
|