@uniswap/client-trading 0.1.2 → 0.1.4
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/dist/trading/v1/api-tradingService_connectquery.d.ts +40 -138
- package/dist/trading/v1/api-tradingService_connectquery.js +41 -139
- package/dist/trading/v1/api_connect.d.ts +31 -101
- package/dist/trading/v1/api_connect.js +32 -102
- package/dist/trading/v1/api_pb.d.ts +483 -2046
- package/dist/trading/v1/api_pb.js +616 -2121
- package/package.json +1 -1
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64, Struct } from "@bufbuild/protobuf";
|
|
6
|
-
/**
|
|
7
|
-
* @generated from enum trading.v1.OnChainStatus
|
|
8
|
-
*/
|
|
9
|
-
export var OnChainStatus;
|
|
10
|
-
(function (OnChainStatus) {
|
|
11
|
-
/**
|
|
12
|
-
* @generated from enum value: UNKNOWN = 0;
|
|
13
|
-
*/
|
|
14
|
-
OnChainStatus[OnChainStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from enum value: SUCCESS = 1;
|
|
17
|
-
*/
|
|
18
|
-
OnChainStatus[OnChainStatus["SUCCESS"] = 1] = "SUCCESS";
|
|
19
|
-
/**
|
|
20
|
-
* @generated from enum value: FAILED = 2;
|
|
21
|
-
*/
|
|
22
|
-
OnChainStatus[OnChainStatus["FAILED"] = 2] = "FAILED";
|
|
23
|
-
})(OnChainStatus || (OnChainStatus = {}));
|
|
24
|
-
// Retrieve enum metadata with: proto3.getEnumType(OnChainStatus)
|
|
25
|
-
proto3.util.setEnumType(OnChainStatus, "trading.v1.OnChainStatus", [
|
|
26
|
-
{ no: 0, name: "UNKNOWN" },
|
|
27
|
-
{ no: 1, name: "SUCCESS" },
|
|
28
|
-
{ no: 2, name: "FAILED" },
|
|
29
|
-
]);
|
|
30
|
-
/**
|
|
31
|
-
* @generated from enum trading.v1.Distributor
|
|
32
|
-
*/
|
|
33
|
-
export var Distributor;
|
|
34
|
-
(function (Distributor) {
|
|
35
|
-
/**
|
|
36
|
-
* @generated from enum value: MERKLE = 0;
|
|
37
|
-
*/
|
|
38
|
-
Distributor[Distributor["MERKLE"] = 0] = "MERKLE";
|
|
39
|
-
})(Distributor || (Distributor = {}));
|
|
40
|
-
// Retrieve enum metadata with: proto3.getEnumType(Distributor)
|
|
41
|
-
proto3.util.setEnumType(Distributor, "trading.v1.Distributor", [
|
|
42
|
-
{ no: 0, name: "MERKLE" },
|
|
43
|
-
]);
|
|
44
|
-
/**
|
|
45
|
-
* @generated from enum trading.v1.IndependentToken
|
|
46
|
-
*/
|
|
47
|
-
export var IndependentToken;
|
|
48
|
-
(function (IndependentToken) {
|
|
49
|
-
/**
|
|
50
|
-
* @generated from enum value: TOKEN_0 = 0;
|
|
51
|
-
*/
|
|
52
|
-
IndependentToken[IndependentToken["TOKEN_0"] = 0] = "TOKEN_0";
|
|
53
|
-
/**
|
|
54
|
-
* @generated from enum value: TOKEN_1 = 1;
|
|
55
|
-
*/
|
|
56
|
-
IndependentToken[IndependentToken["TOKEN_1"] = 1] = "TOKEN_1";
|
|
57
|
-
})(IndependentToken || (IndependentToken = {}));
|
|
58
|
-
// Retrieve enum metadata with: proto3.getEnumType(IndependentToken)
|
|
59
|
-
proto3.util.setEnumType(IndependentToken, "trading.v1.IndependentToken", [
|
|
60
|
-
{ no: 0, name: "TOKEN_0" },
|
|
61
|
-
{ no: 1, name: "TOKEN_1" },
|
|
62
|
-
]);
|
|
63
6
|
/**
|
|
64
7
|
* @generated from enum trading.v1.SafetyLevel
|
|
65
8
|
*/
|
|
@@ -182,6 +125,10 @@ export var ChainId;
|
|
|
182
125
|
* @generated from enum value: MONAD_TESTNET = 10143;
|
|
183
126
|
*/
|
|
184
127
|
ChainId[ChainId["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET";
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: MONAD = 143;
|
|
130
|
+
*/
|
|
131
|
+
ChainId[ChainId["MONAD"] = 143] = "MONAD";
|
|
185
132
|
/**
|
|
186
133
|
* @generated from enum value: BASE_SEPOLIA = 84532;
|
|
187
134
|
*/
|
|
@@ -194,6 +141,10 @@ export var ChainId;
|
|
|
194
141
|
* @generated from enum value: SONEIUM = 1868;
|
|
195
142
|
*/
|
|
196
143
|
ChainId[ChainId["SONEIUM"] = 1868] = "SONEIUM";
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: XLAYER = 196;
|
|
146
|
+
*/
|
|
147
|
+
ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
|
|
197
148
|
})(ChainId || (ChainId = {}));
|
|
198
149
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
199
150
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -213,9 +164,11 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
213
164
|
{ no: 1301, name: "UNICHAIN_SEPOLIA" },
|
|
214
165
|
{ no: 480, name: "WORLDCHAIN" },
|
|
215
166
|
{ no: 10143, name: "MONAD_TESTNET" },
|
|
167
|
+
{ no: 143, name: "MONAD" },
|
|
216
168
|
{ no: 84532, name: "BASE_SEPOLIA" },
|
|
217
169
|
{ no: 130, name: "UNICHAIN" },
|
|
218
170
|
{ no: 1868, name: "SONEIUM" },
|
|
171
|
+
{ no: 196, name: "XLAYER" },
|
|
219
172
|
]);
|
|
220
173
|
/**
|
|
221
174
|
* @generated from enum trading.v1.Protocols
|
|
@@ -459,6 +412,85 @@ proto3.util.setEnumType(SwapType, "trading.v1.SwapType", [
|
|
|
459
412
|
{ no: 9, name: "QUICKROUTE" },
|
|
460
413
|
{ no: 10, name: "CHAINED" },
|
|
461
414
|
]);
|
|
415
|
+
/**
|
|
416
|
+
* @generated from enum trading.v1.PlanStepType
|
|
417
|
+
*/
|
|
418
|
+
export var PlanStepType;
|
|
419
|
+
(function (PlanStepType) {
|
|
420
|
+
/**
|
|
421
|
+
* @generated from enum value: PLAN_STEP_TYPE_CLASSIC = 0;
|
|
422
|
+
*/
|
|
423
|
+
PlanStepType[PlanStepType["CLASSIC"] = 0] = "CLASSIC";
|
|
424
|
+
/**
|
|
425
|
+
* @generated from enum value: PLAN_STEP_TYPE_DUTCH_LIMIT = 1;
|
|
426
|
+
*/
|
|
427
|
+
PlanStepType[PlanStepType["DUTCH_LIMIT"] = 1] = "DUTCH_LIMIT";
|
|
428
|
+
/**
|
|
429
|
+
* @generated from enum value: PLAN_STEP_TYPE_DUTCH_V2 = 2;
|
|
430
|
+
*/
|
|
431
|
+
PlanStepType[PlanStepType["DUTCH_V2"] = 2] = "DUTCH_V2";
|
|
432
|
+
/**
|
|
433
|
+
* @generated from enum value: PLAN_STEP_TYPE_LIMIT_ORDER = 3;
|
|
434
|
+
*/
|
|
435
|
+
PlanStepType[PlanStepType["LIMIT_ORDER"] = 3] = "LIMIT_ORDER";
|
|
436
|
+
/**
|
|
437
|
+
* @generated from enum value: PLAN_STEP_TYPE_WRAP = 4;
|
|
438
|
+
*/
|
|
439
|
+
PlanStepType[PlanStepType["WRAP"] = 4] = "WRAP";
|
|
440
|
+
/**
|
|
441
|
+
* @generated from enum value: PLAN_STEP_TYPE_UNWRAP = 5;
|
|
442
|
+
*/
|
|
443
|
+
PlanStepType[PlanStepType["UNWRAP"] = 5] = "UNWRAP";
|
|
444
|
+
/**
|
|
445
|
+
* @generated from enum value: PLAN_STEP_TYPE_BRIDGE = 6;
|
|
446
|
+
*/
|
|
447
|
+
PlanStepType[PlanStepType["BRIDGE"] = 6] = "BRIDGE";
|
|
448
|
+
/**
|
|
449
|
+
* @generated from enum value: PLAN_STEP_TYPE_PRIORITY = 7;
|
|
450
|
+
*/
|
|
451
|
+
PlanStepType[PlanStepType["PRIORITY"] = 7] = "PRIORITY";
|
|
452
|
+
/**
|
|
453
|
+
* @generated from enum value: PLAN_STEP_TYPE_DUTCH_V3 = 8;
|
|
454
|
+
*/
|
|
455
|
+
PlanStepType[PlanStepType["DUTCH_V3"] = 8] = "DUTCH_V3";
|
|
456
|
+
/**
|
|
457
|
+
* @generated from enum value: PLAN_STEP_TYPE_QUICKROUTE = 9;
|
|
458
|
+
*/
|
|
459
|
+
PlanStepType[PlanStepType["QUICKROUTE"] = 9] = "QUICKROUTE";
|
|
460
|
+
/**
|
|
461
|
+
* @generated from enum value: PLAN_STEP_TYPE_CHAINED = 10;
|
|
462
|
+
*/
|
|
463
|
+
PlanStepType[PlanStepType["CHAINED"] = 10] = "CHAINED";
|
|
464
|
+
/**
|
|
465
|
+
* @generated from enum value: PLAN_STEP_TYPE_APPROVAL_TXN = 11;
|
|
466
|
+
*/
|
|
467
|
+
PlanStepType[PlanStepType["APPROVAL_TXN"] = 11] = "APPROVAL_TXN";
|
|
468
|
+
/**
|
|
469
|
+
* @generated from enum value: PLAN_STEP_TYPE_APPROVAL_PERMIT = 12;
|
|
470
|
+
*/
|
|
471
|
+
PlanStepType[PlanStepType["APPROVAL_PERMIT"] = 12] = "APPROVAL_PERMIT";
|
|
472
|
+
/**
|
|
473
|
+
* @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
|
|
474
|
+
*/
|
|
475
|
+
PlanStepType[PlanStepType["RESET_APPROVAL_TXN"] = 13] = "RESET_APPROVAL_TXN";
|
|
476
|
+
})(PlanStepType || (PlanStepType = {}));
|
|
477
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
|
|
478
|
+
proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
|
|
479
|
+
{ no: 0, name: "PLAN_STEP_TYPE_CLASSIC" },
|
|
480
|
+
{ no: 1, name: "PLAN_STEP_TYPE_DUTCH_LIMIT" },
|
|
481
|
+
{ no: 2, name: "PLAN_STEP_TYPE_DUTCH_V2" },
|
|
482
|
+
{ no: 3, name: "PLAN_STEP_TYPE_LIMIT_ORDER" },
|
|
483
|
+
{ no: 4, name: "PLAN_STEP_TYPE_WRAP" },
|
|
484
|
+
{ no: 5, name: "PLAN_STEP_TYPE_UNWRAP" },
|
|
485
|
+
{ no: 6, name: "PLAN_STEP_TYPE_BRIDGE" },
|
|
486
|
+
{ no: 7, name: "PLAN_STEP_TYPE_PRIORITY" },
|
|
487
|
+
{ no: 8, name: "PLAN_STEP_TYPE_DUTCH_V3" },
|
|
488
|
+
{ no: 9, name: "PLAN_STEP_TYPE_QUICKROUTE" },
|
|
489
|
+
{ no: 10, name: "PLAN_STEP_TYPE_CHAINED" },
|
|
490
|
+
{ no: 11, name: "PLAN_STEP_TYPE_APPROVAL_TXN" },
|
|
491
|
+
{ no: 12, name: "PLAN_STEP_TYPE_APPROVAL_PERMIT" },
|
|
492
|
+
{ no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
|
|
493
|
+
]);
|
|
462
494
|
/**
|
|
463
495
|
* @generated from enum trading.v1.PoolType
|
|
464
496
|
*/
|
|
@@ -683,196 +715,6 @@ proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
|
|
|
683
715
|
{ no: 3, name: "OrderType_PRIORITY" },
|
|
684
716
|
{ no: 4, name: "OrderType_DUTCH_V3" },
|
|
685
717
|
]);
|
|
686
|
-
/**
|
|
687
|
-
* @generated from message trading.v1.MigrateV2ToV3LPPositionRequest
|
|
688
|
-
*/
|
|
689
|
-
export class MigrateV2ToV3LPPositionRequest extends Message {
|
|
690
|
-
constructor(data) {
|
|
691
|
-
super();
|
|
692
|
-
/**
|
|
693
|
-
* @generated from field: string wallet_address = 1;
|
|
694
|
-
*/
|
|
695
|
-
this.walletAddress = "";
|
|
696
|
-
/**
|
|
697
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
698
|
-
*/
|
|
699
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
700
|
-
proto3.util.initPartial(data, this);
|
|
701
|
-
}
|
|
702
|
-
static fromBinary(bytes, options) {
|
|
703
|
-
return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
|
|
704
|
-
}
|
|
705
|
-
static fromJson(jsonValue, options) {
|
|
706
|
-
return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
|
|
707
|
-
}
|
|
708
|
-
static fromJsonString(jsonString, options) {
|
|
709
|
-
return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
|
|
710
|
-
}
|
|
711
|
-
static equals(a, b) {
|
|
712
|
-
return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
MigrateV2ToV3LPPositionRequest.runtime = proto3;
|
|
716
|
-
MigrateV2ToV3LPPositionRequest.typeName = "trading.v1.MigrateV2ToV3LPPositionRequest";
|
|
717
|
-
MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
718
|
-
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
719
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
720
|
-
{ no: 3, name: "v3_params", kind: "message", T: V3Position },
|
|
721
|
-
{ no: 4, name: "slippage_bps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
722
|
-
{ no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
723
|
-
{ no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
724
|
-
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
725
|
-
]);
|
|
726
|
-
/**
|
|
727
|
-
* @generated from message trading.v1.MigrateV2ToV3LPPositionResponse
|
|
728
|
-
*/
|
|
729
|
-
export class MigrateV2ToV3LPPositionResponse extends Message {
|
|
730
|
-
constructor(data) {
|
|
731
|
-
super();
|
|
732
|
-
/**
|
|
733
|
-
* @generated from field: string request_id = 1;
|
|
734
|
-
*/
|
|
735
|
-
this.requestId = "";
|
|
736
|
-
proto3.util.initPartial(data, this);
|
|
737
|
-
}
|
|
738
|
-
static fromBinary(bytes, options) {
|
|
739
|
-
return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
|
|
740
|
-
}
|
|
741
|
-
static fromJson(jsonValue, options) {
|
|
742
|
-
return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
|
|
743
|
-
}
|
|
744
|
-
static fromJsonString(jsonString, options) {
|
|
745
|
-
return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
|
|
746
|
-
}
|
|
747
|
-
static equals(a, b) {
|
|
748
|
-
return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
MigrateV2ToV3LPPositionResponse.runtime = proto3;
|
|
752
|
-
MigrateV2ToV3LPPositionResponse.typeName = "trading.v1.MigrateV2ToV3LPPositionResponse";
|
|
753
|
-
MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
754
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
755
|
-
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
756
|
-
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
757
|
-
]);
|
|
758
|
-
/**
|
|
759
|
-
* @generated from message trading.v1.GetLPPriceDiscrepancyRequest
|
|
760
|
-
*/
|
|
761
|
-
export class GetLPPriceDiscrepancyRequest extends Message {
|
|
762
|
-
constructor(data) {
|
|
763
|
-
super();
|
|
764
|
-
/**
|
|
765
|
-
* @generated from field: string txn_hash = 1;
|
|
766
|
-
*/
|
|
767
|
-
this.txnHash = "";
|
|
768
|
-
/**
|
|
769
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
770
|
-
*/
|
|
771
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
772
|
-
/**
|
|
773
|
-
* @generated from field: string token0 = 3;
|
|
774
|
-
*/
|
|
775
|
-
this.token0 = "";
|
|
776
|
-
/**
|
|
777
|
-
* @generated from field: string token1 = 4;
|
|
778
|
-
*/
|
|
779
|
-
this.token1 = "";
|
|
780
|
-
/**
|
|
781
|
-
* @generated from field: string sqrt_ratio_x96 = 8;
|
|
782
|
-
*/
|
|
783
|
-
this.sqrtRatioX96 = "";
|
|
784
|
-
/**
|
|
785
|
-
* @generated from field: trading.v1.Protocols protocol = 9;
|
|
786
|
-
*/
|
|
787
|
-
this.protocol = Protocols.V2;
|
|
788
|
-
proto3.util.initPartial(data, this);
|
|
789
|
-
}
|
|
790
|
-
static fromBinary(bytes, options) {
|
|
791
|
-
return new GetLPPriceDiscrepancyRequest().fromBinary(bytes, options);
|
|
792
|
-
}
|
|
793
|
-
static fromJson(jsonValue, options) {
|
|
794
|
-
return new GetLPPriceDiscrepancyRequest().fromJson(jsonValue, options);
|
|
795
|
-
}
|
|
796
|
-
static fromJsonString(jsonString, options) {
|
|
797
|
-
return new GetLPPriceDiscrepancyRequest().fromJsonString(jsonString, options);
|
|
798
|
-
}
|
|
799
|
-
static equals(a, b) {
|
|
800
|
-
return proto3.util.equals(GetLPPriceDiscrepancyRequest, a, b);
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
GetLPPriceDiscrepancyRequest.runtime = proto3;
|
|
804
|
-
GetLPPriceDiscrepancyRequest.typeName = "trading.v1.GetLPPriceDiscrepancyRequest";
|
|
805
|
-
GetLPPriceDiscrepancyRequest.fields = proto3.util.newFieldList(() => [
|
|
806
|
-
{ no: 1, name: "txn_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
807
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
808
|
-
{ no: 3, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
809
|
-
{ no: 4, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
810
|
-
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
811
|
-
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
812
|
-
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
813
|
-
{ no: 8, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
814
|
-
{ no: 9, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
815
|
-
]);
|
|
816
|
-
/**
|
|
817
|
-
* @generated from message trading.v1.GetLPPriceDiscrepancyResponse
|
|
818
|
-
*/
|
|
819
|
-
export class GetLPPriceDiscrepancyResponse extends Message {
|
|
820
|
-
constructor(data) {
|
|
821
|
-
super();
|
|
822
|
-
/**
|
|
823
|
-
* @generated from field: string request_id = 1;
|
|
824
|
-
*/
|
|
825
|
-
this.requestId = "";
|
|
826
|
-
/**
|
|
827
|
-
* @generated from field: string percent_price_difference = 2;
|
|
828
|
-
*/
|
|
829
|
-
this.percentPriceDifference = "";
|
|
830
|
-
/**
|
|
831
|
-
* @generated from field: trading.v1.OnChainStatus status = 3;
|
|
832
|
-
*/
|
|
833
|
-
this.status = OnChainStatus.UNKNOWN;
|
|
834
|
-
/**
|
|
835
|
-
* @generated from field: string sqrt_ratio_x96_before = 4;
|
|
836
|
-
*/
|
|
837
|
-
this.sqrtRatioX96Before = "";
|
|
838
|
-
/**
|
|
839
|
-
* @generated from field: string sqrt_ratio_x96_after = 5;
|
|
840
|
-
*/
|
|
841
|
-
this.sqrtRatioX96After = "";
|
|
842
|
-
/**
|
|
843
|
-
* @generated from field: trading.v1.ChainId chain_id = 6;
|
|
844
|
-
*/
|
|
845
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
846
|
-
/**
|
|
847
|
-
* @generated from field: trading.v1.Protocols protocol = 7;
|
|
848
|
-
*/
|
|
849
|
-
this.protocol = Protocols.V2;
|
|
850
|
-
proto3.util.initPartial(data, this);
|
|
851
|
-
}
|
|
852
|
-
static fromBinary(bytes, options) {
|
|
853
|
-
return new GetLPPriceDiscrepancyResponse().fromBinary(bytes, options);
|
|
854
|
-
}
|
|
855
|
-
static fromJson(jsonValue, options) {
|
|
856
|
-
return new GetLPPriceDiscrepancyResponse().fromJson(jsonValue, options);
|
|
857
|
-
}
|
|
858
|
-
static fromJsonString(jsonString, options) {
|
|
859
|
-
return new GetLPPriceDiscrepancyResponse().fromJsonString(jsonString, options);
|
|
860
|
-
}
|
|
861
|
-
static equals(a, b) {
|
|
862
|
-
return proto3.util.equals(GetLPPriceDiscrepancyResponse, a, b);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
GetLPPriceDiscrepancyResponse.runtime = proto3;
|
|
866
|
-
GetLPPriceDiscrepancyResponse.typeName = "trading.v1.GetLPPriceDiscrepancyResponse";
|
|
867
|
-
GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
|
|
868
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
869
|
-
{ no: 2, name: "percent_price_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
870
|
-
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(OnChainStatus) },
|
|
871
|
-
{ no: 4, name: "sqrt_ratio_x96_before", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
872
|
-
{ no: 5, name: "sqrt_ratio_x96_after", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
|
-
{ no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
874
|
-
{ no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
875
|
-
]);
|
|
876
718
|
/**
|
|
877
719
|
* @generated from message trading.v1.Encode7702Request
|
|
878
720
|
*/
|
|
@@ -1037,48 +879,65 @@ Swap5792Response.fields = proto3.util.newFieldList(() => [
|
|
|
1037
879
|
{ no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1038
880
|
]);
|
|
1039
881
|
/**
|
|
1040
|
-
* @generated from message trading.v1.
|
|
882
|
+
* @generated from message trading.v1.SendRequest
|
|
1041
883
|
*/
|
|
1042
|
-
export class
|
|
884
|
+
export class SendRequest extends Message {
|
|
1043
885
|
constructor(data) {
|
|
1044
886
|
super();
|
|
1045
887
|
/**
|
|
1046
|
-
* @generated from field:
|
|
888
|
+
* @generated from field: string sender = 1;
|
|
889
|
+
*/
|
|
890
|
+
this.sender = "";
|
|
891
|
+
/**
|
|
892
|
+
* @generated from field: string recipient = 2;
|
|
893
|
+
*/
|
|
894
|
+
this.recipient = "";
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
897
|
+
*/
|
|
898
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
899
|
+
/**
|
|
900
|
+
* @generated from field: string token = 4;
|
|
901
|
+
*/
|
|
902
|
+
this.token = "";
|
|
903
|
+
/**
|
|
904
|
+
* @generated from field: string amount = 5;
|
|
1047
905
|
*/
|
|
1048
|
-
this.
|
|
906
|
+
this.amount = "";
|
|
1049
907
|
/**
|
|
1050
|
-
* @generated from field: repeated trading.v1.
|
|
908
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
|
|
1051
909
|
*/
|
|
1052
|
-
this.
|
|
910
|
+
this.gasStrategies = [];
|
|
1053
911
|
proto3.util.initPartial(data, this);
|
|
1054
912
|
}
|
|
1055
913
|
static fromBinary(bytes, options) {
|
|
1056
|
-
return new
|
|
914
|
+
return new SendRequest().fromBinary(bytes, options);
|
|
1057
915
|
}
|
|
1058
916
|
static fromJson(jsonValue, options) {
|
|
1059
|
-
return new
|
|
917
|
+
return new SendRequest().fromJson(jsonValue, options);
|
|
1060
918
|
}
|
|
1061
919
|
static fromJsonString(jsonString, options) {
|
|
1062
|
-
return new
|
|
920
|
+
return new SendRequest().fromJsonString(jsonString, options);
|
|
1063
921
|
}
|
|
1064
922
|
static equals(a, b) {
|
|
1065
|
-
return proto3.util.equals(
|
|
923
|
+
return proto3.util.equals(SendRequest, a, b);
|
|
1066
924
|
}
|
|
1067
925
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
{ no: 1, name: "
|
|
1072
|
-
{ no: 2, name: "
|
|
1073
|
-
{ no: 3, name: "
|
|
1074
|
-
{ no: 4, name: "
|
|
1075
|
-
{ no: 5, name: "
|
|
1076
|
-
{ no: 6, name: "
|
|
926
|
+
SendRequest.runtime = proto3;
|
|
927
|
+
SendRequest.typeName = "trading.v1.SendRequest";
|
|
928
|
+
SendRequest.fields = proto3.util.newFieldList(() => [
|
|
929
|
+
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
930
|
+
{ no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
931
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
932
|
+
{ no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
933
|
+
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
934
|
+
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
935
|
+
{ no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
1077
936
|
]);
|
|
1078
937
|
/**
|
|
1079
|
-
* @generated from message trading.v1.
|
|
938
|
+
* @generated from message trading.v1.SendResponse
|
|
1080
939
|
*/
|
|
1081
|
-
export class
|
|
940
|
+
export class SendResponse extends Message {
|
|
1082
941
|
constructor(data) {
|
|
1083
942
|
super();
|
|
1084
943
|
/**
|
|
@@ -1086,1775 +945,77 @@ export class PoolInfoResponse extends Message {
|
|
|
1086
945
|
*/
|
|
1087
946
|
this.requestId = "";
|
|
1088
947
|
/**
|
|
1089
|
-
* @generated from field: repeated trading.v1.
|
|
1090
|
-
*/
|
|
1091
|
-
this.pools = [];
|
|
1092
|
-
/**
|
|
1093
|
-
* @generated from field: int32 current_page = 3;
|
|
1094
|
-
*/
|
|
1095
|
-
this.currentPage = 0;
|
|
1096
|
-
/**
|
|
1097
|
-
* @generated from field: int32 page_size = 4;
|
|
948
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
|
|
1098
949
|
*/
|
|
1099
|
-
this.
|
|
950
|
+
this.gasEstimates = [];
|
|
1100
951
|
proto3.util.initPartial(data, this);
|
|
1101
952
|
}
|
|
1102
953
|
static fromBinary(bytes, options) {
|
|
1103
|
-
return new
|
|
954
|
+
return new SendResponse().fromBinary(bytes, options);
|
|
1104
955
|
}
|
|
1105
956
|
static fromJson(jsonValue, options) {
|
|
1106
|
-
return new
|
|
957
|
+
return new SendResponse().fromJson(jsonValue, options);
|
|
1107
958
|
}
|
|
1108
959
|
static fromJsonString(jsonString, options) {
|
|
1109
|
-
return new
|
|
960
|
+
return new SendResponse().fromJsonString(jsonString, options);
|
|
1110
961
|
}
|
|
1111
962
|
static equals(a, b) {
|
|
1112
|
-
return proto3.util.equals(
|
|
963
|
+
return proto3.util.equals(SendResponse, a, b);
|
|
1113
964
|
}
|
|
1114
965
|
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
966
|
+
SendResponse.runtime = proto3;
|
|
967
|
+
SendResponse.typeName = "trading.v1.SendResponse";
|
|
968
|
+
SendResponse.fields = proto3.util.newFieldList(() => [
|
|
1118
969
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1119
|
-
{ no: 2, name: "
|
|
1120
|
-
{ no: 3, name: "
|
|
1121
|
-
{ no: 4, name: "
|
|
970
|
+
{ no: 2, name: "send", kind: "message", T: TransactionRequest, opt: true },
|
|
971
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
972
|
+
{ no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
973
|
+
{ no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1122
974
|
]);
|
|
1123
975
|
/**
|
|
1124
|
-
* @generated from message trading.v1.
|
|
976
|
+
* @generated from message trading.v1.V4Position
|
|
1125
977
|
*/
|
|
1126
|
-
export class
|
|
978
|
+
export class V4Position extends Message {
|
|
1127
979
|
constructor(data) {
|
|
1128
980
|
super();
|
|
1129
981
|
/**
|
|
1130
|
-
* @generated from field:
|
|
1131
|
-
*/
|
|
1132
|
-
this.poolReferenceIdentifier = "";
|
|
1133
|
-
/**
|
|
1134
|
-
* @generated from field: trading.v1.Protocols pool_protocol = 2;
|
|
1135
|
-
*/
|
|
1136
|
-
this.poolProtocol = Protocols.V2;
|
|
1137
|
-
/**
|
|
1138
|
-
* @generated from field: string token_address_A = 3;
|
|
1139
|
-
*/
|
|
1140
|
-
this.tokenAddressA = "";
|
|
1141
|
-
/**
|
|
1142
|
-
* @generated from field: string token_address_B = 4;
|
|
1143
|
-
*/
|
|
1144
|
-
this.tokenAddressB = "";
|
|
1145
|
-
/**
|
|
1146
|
-
* @generated from field: trading.v1.ChainId chain_id = 8;
|
|
1147
|
-
*/
|
|
1148
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1149
|
-
/**
|
|
1150
|
-
* @generated from field: string token_decimals_A = 11;
|
|
982
|
+
* @generated from field: sint32 tick_lower = 2;
|
|
1151
983
|
*/
|
|
1152
|
-
this.
|
|
984
|
+
this.tickLower = 0;
|
|
1153
985
|
/**
|
|
1154
|
-
* @generated from field:
|
|
986
|
+
* @generated from field: sint32 tick_upper = 3;
|
|
1155
987
|
*/
|
|
1156
|
-
this.
|
|
988
|
+
this.tickUpper = 0;
|
|
1157
989
|
proto3.util.initPartial(data, this);
|
|
1158
990
|
}
|
|
1159
991
|
static fromBinary(bytes, options) {
|
|
1160
|
-
return new
|
|
992
|
+
return new V4Position().fromBinary(bytes, options);
|
|
1161
993
|
}
|
|
1162
994
|
static fromJson(jsonValue, options) {
|
|
1163
|
-
return new
|
|
995
|
+
return new V4Position().fromJson(jsonValue, options);
|
|
1164
996
|
}
|
|
1165
997
|
static fromJsonString(jsonString, options) {
|
|
1166
|
-
return new
|
|
998
|
+
return new V4Position().fromJsonString(jsonString, options);
|
|
1167
999
|
}
|
|
1168
1000
|
static equals(a, b) {
|
|
1169
|
-
return proto3.util.equals(
|
|
1001
|
+
return proto3.util.equals(V4Position, a, b);
|
|
1170
1002
|
}
|
|
1171
1003
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
{ no: 1, name: "
|
|
1176
|
-
{ no: 2, name: "
|
|
1177
|
-
{ no: 3, name: "
|
|
1178
|
-
{ no: 4, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1179
|
-
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1180
|
-
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1181
|
-
{ no: 7, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1182
|
-
{ no: 8, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1183
|
-
{ no: 9, name: "token_amount_A", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1184
|
-
{ no: 10, name: "token_amount_B", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1185
|
-
{ no: 11, name: "token_decimals_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1186
|
-
{ no: 12, name: "token_decimals_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1187
|
-
{ no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1188
|
-
{ no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1189
|
-
{ no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1190
|
-
{ no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1191
|
-
{ no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1004
|
+
V4Position.runtime = proto3;
|
|
1005
|
+
V4Position.typeName = "trading.v1.V4Position";
|
|
1006
|
+
V4Position.fields = proto3.util.newFieldList(() => [
|
|
1007
|
+
{ no: 1, name: "pool", kind: "message", T: V4Pool },
|
|
1008
|
+
{ no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
1009
|
+
{ no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
1192
1010
|
]);
|
|
1193
1011
|
/**
|
|
1194
|
-
* @generated from message trading.v1.
|
|
1012
|
+
* @generated from message trading.v1.V3Position
|
|
1195
1013
|
*/
|
|
1196
|
-
export class
|
|
1014
|
+
export class V3Position extends Message {
|
|
1197
1015
|
constructor(data) {
|
|
1198
1016
|
super();
|
|
1199
1017
|
/**
|
|
1200
|
-
* @generated from field:
|
|
1201
|
-
*/
|
|
1202
|
-
this.referenceIdentifier = "";
|
|
1203
|
-
/**
|
|
1204
|
-
* @generated from field: trading.v1.Protocols protocol = 2;
|
|
1205
|
-
*/
|
|
1206
|
-
this.protocol = Protocols.V2;
|
|
1207
|
-
/**
|
|
1208
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1209
|
-
*/
|
|
1210
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1211
|
-
proto3.util.initPartial(data, this);
|
|
1212
|
-
}
|
|
1213
|
-
static fromBinary(bytes, options) {
|
|
1214
|
-
return new PoolReferenceByProtocol().fromBinary(bytes, options);
|
|
1215
|
-
}
|
|
1216
|
-
static fromJson(jsonValue, options) {
|
|
1217
|
-
return new PoolReferenceByProtocol().fromJson(jsonValue, options);
|
|
1218
|
-
}
|
|
1219
|
-
static fromJsonString(jsonString, options) {
|
|
1220
|
-
return new PoolReferenceByProtocol().fromJsonString(jsonString, options);
|
|
1221
|
-
}
|
|
1222
|
-
static equals(a, b) {
|
|
1223
|
-
return proto3.util.equals(PoolReferenceByProtocol, a, b);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
PoolReferenceByProtocol.runtime = proto3;
|
|
1227
|
-
PoolReferenceByProtocol.typeName = "trading.v1.PoolReferenceByProtocol";
|
|
1228
|
-
PoolReferenceByProtocol.fields = proto3.util.newFieldList(() => [
|
|
1229
|
-
{ no: 1, name: "reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1230
|
-
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1231
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1232
|
-
]);
|
|
1233
|
-
/**
|
|
1234
|
-
* @generated from message trading.v1.PoolParameters
|
|
1235
|
-
*/
|
|
1236
|
-
export class PoolParameters extends Message {
|
|
1237
|
-
constructor(data) {
|
|
1238
|
-
super();
|
|
1239
|
-
/**
|
|
1240
|
-
* @generated from field: string token_address_A = 2;
|
|
1241
|
-
*/
|
|
1242
|
-
this.tokenAddressA = "";
|
|
1243
|
-
/**
|
|
1244
|
-
* @generated from field: string token_address_B = 3;
|
|
1245
|
-
*/
|
|
1246
|
-
this.tokenAddressB = "";
|
|
1247
|
-
proto3.util.initPartial(data, this);
|
|
1248
|
-
}
|
|
1249
|
-
static fromBinary(bytes, options) {
|
|
1250
|
-
return new PoolParameters().fromBinary(bytes, options);
|
|
1251
|
-
}
|
|
1252
|
-
static fromJson(jsonValue, options) {
|
|
1253
|
-
return new PoolParameters().fromJson(jsonValue, options);
|
|
1254
|
-
}
|
|
1255
|
-
static fromJsonString(jsonString, options) {
|
|
1256
|
-
return new PoolParameters().fromJsonString(jsonString, options);
|
|
1257
|
-
}
|
|
1258
|
-
static equals(a, b) {
|
|
1259
|
-
return proto3.util.equals(PoolParameters, a, b);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
PoolParameters.runtime = proto3;
|
|
1263
|
-
PoolParameters.typeName = "trading.v1.PoolParameters";
|
|
1264
|
-
PoolParameters.fields = proto3.util.newFieldList(() => [
|
|
1265
|
-
{ no: 2, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1266
|
-
{ no: 3, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1267
|
-
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1268
|
-
{ no: 5, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1269
|
-
{ no: 6, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1270
|
-
]);
|
|
1271
|
-
/**
|
|
1272
|
-
* @generated from message trading.v1.SendRequest
|
|
1273
|
-
*/
|
|
1274
|
-
export class SendRequest extends Message {
|
|
1275
|
-
constructor(data) {
|
|
1276
|
-
super();
|
|
1277
|
-
/**
|
|
1278
|
-
* @generated from field: string sender = 1;
|
|
1279
|
-
*/
|
|
1280
|
-
this.sender = "";
|
|
1281
|
-
/**
|
|
1282
|
-
* @generated from field: string recipient = 2;
|
|
1283
|
-
*/
|
|
1284
|
-
this.recipient = "";
|
|
1285
|
-
/**
|
|
1286
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1287
|
-
*/
|
|
1288
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1289
|
-
/**
|
|
1290
|
-
* @generated from field: string token = 4;
|
|
1291
|
-
*/
|
|
1292
|
-
this.token = "";
|
|
1293
|
-
/**
|
|
1294
|
-
* @generated from field: string amount = 5;
|
|
1295
|
-
*/
|
|
1296
|
-
this.amount = "";
|
|
1297
|
-
/**
|
|
1298
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
|
|
1299
|
-
*/
|
|
1300
|
-
this.gasStrategies = [];
|
|
1301
|
-
proto3.util.initPartial(data, this);
|
|
1302
|
-
}
|
|
1303
|
-
static fromBinary(bytes, options) {
|
|
1304
|
-
return new SendRequest().fromBinary(bytes, options);
|
|
1305
|
-
}
|
|
1306
|
-
static fromJson(jsonValue, options) {
|
|
1307
|
-
return new SendRequest().fromJson(jsonValue, options);
|
|
1308
|
-
}
|
|
1309
|
-
static fromJsonString(jsonString, options) {
|
|
1310
|
-
return new SendRequest().fromJsonString(jsonString, options);
|
|
1311
|
-
}
|
|
1312
|
-
static equals(a, b) {
|
|
1313
|
-
return proto3.util.equals(SendRequest, a, b);
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
SendRequest.runtime = proto3;
|
|
1317
|
-
SendRequest.typeName = "trading.v1.SendRequest";
|
|
1318
|
-
SendRequest.fields = proto3.util.newFieldList(() => [
|
|
1319
|
-
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1320
|
-
{ no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1321
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1322
|
-
{ no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1323
|
-
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1324
|
-
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1325
|
-
{ no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
1326
|
-
]);
|
|
1327
|
-
/**
|
|
1328
|
-
* @generated from message trading.v1.SendResponse
|
|
1329
|
-
*/
|
|
1330
|
-
export class SendResponse extends Message {
|
|
1331
|
-
constructor(data) {
|
|
1332
|
-
super();
|
|
1333
|
-
/**
|
|
1334
|
-
* @generated from field: string request_id = 1;
|
|
1335
|
-
*/
|
|
1336
|
-
this.requestId = "";
|
|
1337
|
-
/**
|
|
1338
|
-
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
|
|
1339
|
-
*/
|
|
1340
|
-
this.gasEstimates = [];
|
|
1341
|
-
proto3.util.initPartial(data, this);
|
|
1342
|
-
}
|
|
1343
|
-
static fromBinary(bytes, options) {
|
|
1344
|
-
return new SendResponse().fromBinary(bytes, options);
|
|
1345
|
-
}
|
|
1346
|
-
static fromJson(jsonValue, options) {
|
|
1347
|
-
return new SendResponse().fromJson(jsonValue, options);
|
|
1348
|
-
}
|
|
1349
|
-
static fromJsonString(jsonString, options) {
|
|
1350
|
-
return new SendResponse().fromJsonString(jsonString, options);
|
|
1351
|
-
}
|
|
1352
|
-
static equals(a, b) {
|
|
1353
|
-
return proto3.util.equals(SendResponse, a, b);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
SendResponse.runtime = proto3;
|
|
1357
|
-
SendResponse.typeName = "trading.v1.SendResponse";
|
|
1358
|
-
SendResponse.fields = proto3.util.newFieldList(() => [
|
|
1359
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1360
|
-
{ no: 2, name: "send", kind: "message", T: TransactionRequest, opt: true },
|
|
1361
|
-
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1362
|
-
{ no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1363
|
-
{ no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1364
|
-
]);
|
|
1365
|
-
/**
|
|
1366
|
-
* @generated from message trading.v1.ClaimLPRewardsRequest
|
|
1367
|
-
*/
|
|
1368
|
-
export class ClaimLPRewardsRequest extends Message {
|
|
1369
|
-
constructor(data) {
|
|
1370
|
-
super();
|
|
1371
|
-
/**
|
|
1372
|
-
* @generated from field: string wallet_address = 1;
|
|
1373
|
-
*/
|
|
1374
|
-
this.walletAddress = "";
|
|
1375
|
-
/**
|
|
1376
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
1377
|
-
*/
|
|
1378
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1379
|
-
/**
|
|
1380
|
-
* @generated from field: repeated string tokens = 3;
|
|
1381
|
-
*/
|
|
1382
|
-
this.tokens = [];
|
|
1383
|
-
/**
|
|
1384
|
-
* @generated from field: trading.v1.Distributor distributor = 4;
|
|
1385
|
-
*/
|
|
1386
|
-
this.distributor = Distributor.MERKLE;
|
|
1387
|
-
/**
|
|
1388
|
-
* @generated from field: bool simulate_transaction = 5;
|
|
1389
|
-
*/
|
|
1390
|
-
this.simulateTransaction = false;
|
|
1391
|
-
proto3.util.initPartial(data, this);
|
|
1392
|
-
}
|
|
1393
|
-
static fromBinary(bytes, options) {
|
|
1394
|
-
return new ClaimLPRewardsRequest().fromBinary(bytes, options);
|
|
1395
|
-
}
|
|
1396
|
-
static fromJson(jsonValue, options) {
|
|
1397
|
-
return new ClaimLPRewardsRequest().fromJson(jsonValue, options);
|
|
1398
|
-
}
|
|
1399
|
-
static fromJsonString(jsonString, options) {
|
|
1400
|
-
return new ClaimLPRewardsRequest().fromJsonString(jsonString, options);
|
|
1401
|
-
}
|
|
1402
|
-
static equals(a, b) {
|
|
1403
|
-
return proto3.util.equals(ClaimLPRewardsRequest, a, b);
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
ClaimLPRewardsRequest.runtime = proto3;
|
|
1407
|
-
ClaimLPRewardsRequest.typeName = "trading.v1.ClaimLPRewardsRequest";
|
|
1408
|
-
ClaimLPRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
1409
|
-
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1410
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1411
|
-
{ no: 3, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1412
|
-
{ no: 4, name: "distributor", kind: "enum", T: proto3.getEnumType(Distributor) },
|
|
1413
|
-
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1414
|
-
]);
|
|
1415
|
-
/**
|
|
1416
|
-
* @generated from message trading.v1.ClaimLPRewardsResponse
|
|
1417
|
-
*/
|
|
1418
|
-
export class ClaimLPRewardsResponse extends Message {
|
|
1419
|
-
constructor(data) {
|
|
1420
|
-
super();
|
|
1421
|
-
/**
|
|
1422
|
-
* @generated from field: string request_id = 1;
|
|
1423
|
-
*/
|
|
1424
|
-
this.requestId = "";
|
|
1425
|
-
proto3.util.initPartial(data, this);
|
|
1426
|
-
}
|
|
1427
|
-
static fromBinary(bytes, options) {
|
|
1428
|
-
return new ClaimLPRewardsResponse().fromBinary(bytes, options);
|
|
1429
|
-
}
|
|
1430
|
-
static fromJson(jsonValue, options) {
|
|
1431
|
-
return new ClaimLPRewardsResponse().fromJson(jsonValue, options);
|
|
1432
|
-
}
|
|
1433
|
-
static fromJsonString(jsonString, options) {
|
|
1434
|
-
return new ClaimLPRewardsResponse().fromJsonString(jsonString, options);
|
|
1435
|
-
}
|
|
1436
|
-
static equals(a, b) {
|
|
1437
|
-
return proto3.util.equals(ClaimLPRewardsResponse, a, b);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
ClaimLPRewardsResponse.runtime = proto3;
|
|
1441
|
-
ClaimLPRewardsResponse.typeName = "trading.v1.ClaimLPRewardsResponse";
|
|
1442
|
-
ClaimLPRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1443
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1444
|
-
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
1445
|
-
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1446
|
-
]);
|
|
1447
|
-
/**
|
|
1448
|
-
* @generated from message trading.v1.CheckApprovalLPRequest
|
|
1449
|
-
*/
|
|
1450
|
-
export class CheckApprovalLPRequest extends Message {
|
|
1451
|
-
constructor(data) {
|
|
1452
|
-
super();
|
|
1453
|
-
/**
|
|
1454
|
-
* @generated from oneof trading.v1.CheckApprovalLPRequest.checkApprovalLPRequest
|
|
1455
|
-
*/
|
|
1456
|
-
this.checkApprovalLPRequest = { case: undefined };
|
|
1457
|
-
proto3.util.initPartial(data, this);
|
|
1458
|
-
}
|
|
1459
|
-
static fromBinary(bytes, options) {
|
|
1460
|
-
return new CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1461
|
-
}
|
|
1462
|
-
static fromJson(jsonValue, options) {
|
|
1463
|
-
return new CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1464
|
-
}
|
|
1465
|
-
static fromJsonString(jsonString, options) {
|
|
1466
|
-
return new CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1467
|
-
}
|
|
1468
|
-
static equals(a, b) {
|
|
1469
|
-
return proto3.util.equals(CheckApprovalLPRequest, a, b);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
CheckApprovalLPRequest.runtime = proto3;
|
|
1473
|
-
CheckApprovalLPRequest.typeName = "trading.v1.CheckApprovalLPRequest";
|
|
1474
|
-
CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1475
|
-
{ no: 1, name: "v2_check_approval_lp_request", kind: "message", T: V2CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1476
|
-
{ no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1477
|
-
{ no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1478
|
-
]);
|
|
1479
|
-
/**
|
|
1480
|
-
* @generated from message trading.v1.CheckApprovalLPResponse
|
|
1481
|
-
*/
|
|
1482
|
-
export class CheckApprovalLPResponse extends Message {
|
|
1483
|
-
constructor(data) {
|
|
1484
|
-
super();
|
|
1485
|
-
/**
|
|
1486
|
-
* @generated from field: string request_id = 1;
|
|
1487
|
-
*/
|
|
1488
|
-
this.requestId = "";
|
|
1489
|
-
/**
|
|
1490
|
-
* @generated from oneof trading.v1.CheckApprovalLPResponse.permitData
|
|
1491
|
-
*/
|
|
1492
|
-
this.permitData = { case: undefined };
|
|
1493
|
-
proto3.util.initPartial(data, this);
|
|
1494
|
-
}
|
|
1495
|
-
static fromBinary(bytes, options) {
|
|
1496
|
-
return new CheckApprovalLPResponse().fromBinary(bytes, options);
|
|
1497
|
-
}
|
|
1498
|
-
static fromJson(jsonValue, options) {
|
|
1499
|
-
return new CheckApprovalLPResponse().fromJson(jsonValue, options);
|
|
1500
|
-
}
|
|
1501
|
-
static fromJsonString(jsonString, options) {
|
|
1502
|
-
return new CheckApprovalLPResponse().fromJsonString(jsonString, options);
|
|
1503
|
-
}
|
|
1504
|
-
static equals(a, b) {
|
|
1505
|
-
return proto3.util.equals(CheckApprovalLPResponse, a, b);
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
CheckApprovalLPResponse.runtime = proto3;
|
|
1509
|
-
CheckApprovalLPResponse.typeName = "trading.v1.CheckApprovalLPResponse";
|
|
1510
|
-
CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
|
|
1511
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1512
|
-
{ no: 2, name: "token_0_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1513
|
-
{ no: 3, name: "token_1_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1514
|
-
{ no: 4, name: "token_0_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
1515
|
-
{ no: 5, name: "token_1_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
1516
|
-
{ no: 6, name: "position_token_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1517
|
-
{ no: 7, name: "permit_batch_data", kind: "message", T: PermitBatchData, oneof: "permitData" },
|
|
1518
|
-
{ no: 8, name: "nft_permit_data", kind: "message", T: NFTPermitData, oneof: "permitData" },
|
|
1519
|
-
{ no: 9, name: "token_0_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1520
|
-
{ no: 10, name: "token_1_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1521
|
-
{ no: 11, name: "gas_fee_token_0_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1522
|
-
{ no: 12, name: "gas_fee_token_1_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1523
|
-
{ no: 13, name: "gas_fee_position_token_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1524
|
-
{ no: 14, name: "gas_fee_token_0_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1525
|
-
{ no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1526
|
-
{ no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1527
|
-
{ no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1528
|
-
]);
|
|
1529
|
-
/**
|
|
1530
|
-
* @generated from message trading.v1.V2CheckApprovalLPRequest
|
|
1531
|
-
*/
|
|
1532
|
-
export class V2CheckApprovalLPRequest extends Message {
|
|
1533
|
-
constructor(data) {
|
|
1534
|
-
super();
|
|
1535
|
-
/**
|
|
1536
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1537
|
-
*/
|
|
1538
|
-
this.protocol = Protocols.V2;
|
|
1539
|
-
/**
|
|
1540
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1541
|
-
*/
|
|
1542
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1543
|
-
/**
|
|
1544
|
-
* @generated from field: string wallet_address = 6;
|
|
1545
|
-
*/
|
|
1546
|
-
this.walletAddress = "";
|
|
1547
|
-
/**
|
|
1548
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1549
|
-
*/
|
|
1550
|
-
this.simulateTransaction = false;
|
|
1551
|
-
proto3.util.initPartial(data, this);
|
|
1552
|
-
}
|
|
1553
|
-
static fromBinary(bytes, options) {
|
|
1554
|
-
return new V2CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1555
|
-
}
|
|
1556
|
-
static fromJson(jsonValue, options) {
|
|
1557
|
-
return new V2CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1558
|
-
}
|
|
1559
|
-
static fromJsonString(jsonString, options) {
|
|
1560
|
-
return new V2CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1561
|
-
}
|
|
1562
|
-
static equals(a, b) {
|
|
1563
|
-
return proto3.util.equals(V2CheckApprovalLPRequest, a, b);
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
V2CheckApprovalLPRequest.runtime = proto3;
|
|
1567
|
-
V2CheckApprovalLPRequest.typeName = "trading.v1.V2CheckApprovalLPRequest";
|
|
1568
|
-
V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1569
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1570
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1571
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1572
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1573
|
-
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1574
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1575
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1576
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1577
|
-
{ no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1578
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1579
|
-
]);
|
|
1580
|
-
/**
|
|
1581
|
-
* @generated from message trading.v1.V3CheckApprovalLPRequest
|
|
1582
|
-
*/
|
|
1583
|
-
export class V3CheckApprovalLPRequest extends Message {
|
|
1584
|
-
constructor(data) {
|
|
1585
|
-
super();
|
|
1586
|
-
/**
|
|
1587
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1588
|
-
*/
|
|
1589
|
-
this.protocol = Protocols.V2;
|
|
1590
|
-
/**
|
|
1591
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1592
|
-
*/
|
|
1593
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1594
|
-
/**
|
|
1595
|
-
* @generated from field: string wallet_address = 6;
|
|
1596
|
-
*/
|
|
1597
|
-
this.walletAddress = "";
|
|
1598
|
-
/**
|
|
1599
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1600
|
-
*/
|
|
1601
|
-
this.simulateTransaction = false;
|
|
1602
|
-
proto3.util.initPartial(data, this);
|
|
1603
|
-
}
|
|
1604
|
-
static fromBinary(bytes, options) {
|
|
1605
|
-
return new V3CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1606
|
-
}
|
|
1607
|
-
static fromJson(jsonValue, options) {
|
|
1608
|
-
return new V3CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1609
|
-
}
|
|
1610
|
-
static fromJsonString(jsonString, options) {
|
|
1611
|
-
return new V3CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1612
|
-
}
|
|
1613
|
-
static equals(a, b) {
|
|
1614
|
-
return proto3.util.equals(V3CheckApprovalLPRequest, a, b);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
V3CheckApprovalLPRequest.runtime = proto3;
|
|
1618
|
-
V3CheckApprovalLPRequest.typeName = "trading.v1.V3CheckApprovalLPRequest";
|
|
1619
|
-
V3CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1620
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1621
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1622
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1623
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1624
|
-
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1625
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1626
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1627
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1628
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1629
|
-
]);
|
|
1630
|
-
/**
|
|
1631
|
-
* @generated from message trading.v1.V4CheckApprovalLPRequest
|
|
1632
|
-
*/
|
|
1633
|
-
export class V4CheckApprovalLPRequest extends Message {
|
|
1634
|
-
constructor(data) {
|
|
1635
|
-
super();
|
|
1636
|
-
/**
|
|
1637
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1638
|
-
*/
|
|
1639
|
-
this.protocol = Protocols.V2;
|
|
1640
|
-
/**
|
|
1641
|
-
* @generated from field: string token0 = 2;
|
|
1642
|
-
*/
|
|
1643
|
-
this.token0 = "";
|
|
1644
|
-
/**
|
|
1645
|
-
* @generated from field: string token1 = 3;
|
|
1646
|
-
*/
|
|
1647
|
-
this.token1 = "";
|
|
1648
|
-
/**
|
|
1649
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1650
|
-
*/
|
|
1651
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1652
|
-
/**
|
|
1653
|
-
* @generated from field: string wallet_address = 6;
|
|
1654
|
-
*/
|
|
1655
|
-
this.walletAddress = "";
|
|
1656
|
-
/**
|
|
1657
|
-
* @generated from field: string amount0 = 7;
|
|
1658
|
-
*/
|
|
1659
|
-
this.amount0 = "";
|
|
1660
|
-
/**
|
|
1661
|
-
* @generated from field: string amount1 = 8;
|
|
1662
|
-
*/
|
|
1663
|
-
this.amount1 = "";
|
|
1664
|
-
/**
|
|
1665
|
-
* @generated from field: bool generate_permit_as_transaction = 9;
|
|
1666
|
-
*/
|
|
1667
|
-
this.generatePermitAsTransaction = false;
|
|
1668
|
-
/**
|
|
1669
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1670
|
-
*/
|
|
1671
|
-
this.simulateTransaction = false;
|
|
1672
|
-
proto3.util.initPartial(data, this);
|
|
1673
|
-
}
|
|
1674
|
-
static fromBinary(bytes, options) {
|
|
1675
|
-
return new V4CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1676
|
-
}
|
|
1677
|
-
static fromJson(jsonValue, options) {
|
|
1678
|
-
return new V4CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1679
|
-
}
|
|
1680
|
-
static fromJsonString(jsonString, options) {
|
|
1681
|
-
return new V4CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1682
|
-
}
|
|
1683
|
-
static equals(a, b) {
|
|
1684
|
-
return proto3.util.equals(V4CheckApprovalLPRequest, a, b);
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
V4CheckApprovalLPRequest.runtime = proto3;
|
|
1688
|
-
V4CheckApprovalLPRequest.typeName = "trading.v1.V4CheckApprovalLPRequest";
|
|
1689
|
-
V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1690
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1691
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1692
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1693
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1694
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1695
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1696
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1697
|
-
{ no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1698
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1699
|
-
]);
|
|
1700
|
-
/**
|
|
1701
|
-
* @generated from message trading.v1.MigrateLpPositionRequest
|
|
1702
|
-
*/
|
|
1703
|
-
export class MigrateLpPositionRequest extends Message {
|
|
1704
|
-
constructor(data) {
|
|
1705
|
-
super();
|
|
1706
|
-
/**
|
|
1707
|
-
* @generated from field: int32 tokenId = 1;
|
|
1708
|
-
*/
|
|
1709
|
-
this.tokenId = 0;
|
|
1710
|
-
/**
|
|
1711
|
-
* @generated from field: string wallet_address = 2;
|
|
1712
|
-
*/
|
|
1713
|
-
this.walletAddress = "";
|
|
1714
|
-
/**
|
|
1715
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1716
|
-
*/
|
|
1717
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1718
|
-
/**
|
|
1719
|
-
* @generated from field: trading.v1.Protocols input_protocol = 4;
|
|
1720
|
-
*/
|
|
1721
|
-
this.inputProtocol = Protocols.V2;
|
|
1722
|
-
/**
|
|
1723
|
-
* @generated from field: string input_pool_liquidity = 6;
|
|
1724
|
-
*/
|
|
1725
|
-
this.inputPoolLiquidity = "";
|
|
1726
|
-
/**
|
|
1727
|
-
* @generated from field: int32 input_current_tick = 7;
|
|
1728
|
-
*/
|
|
1729
|
-
this.inputCurrentTick = 0;
|
|
1730
|
-
/**
|
|
1731
|
-
* @generated from field: string input_sqrt_ratio_x96 = 8;
|
|
1732
|
-
*/
|
|
1733
|
-
this.inputSqrtRatioX96 = "";
|
|
1734
|
-
/**
|
|
1735
|
-
* @generated from field: string input_position_liquidity = 9;
|
|
1736
|
-
*/
|
|
1737
|
-
this.inputPositionLiquidity = "";
|
|
1738
|
-
/**
|
|
1739
|
-
* @generated from field: string amount0 = 11;
|
|
1740
|
-
*/
|
|
1741
|
-
this.amount0 = "";
|
|
1742
|
-
/**
|
|
1743
|
-
* @generated from field: string amount1 = 12;
|
|
1744
|
-
*/
|
|
1745
|
-
this.amount1 = "";
|
|
1746
|
-
/**
|
|
1747
|
-
* @generated from field: trading.v1.Protocols output_protocol = 13;
|
|
1748
|
-
*/
|
|
1749
|
-
this.outputProtocol = Protocols.V2;
|
|
1750
|
-
/**
|
|
1751
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 19;
|
|
1752
|
-
*/
|
|
1753
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
1754
|
-
/**
|
|
1755
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 20;
|
|
1756
|
-
*/
|
|
1757
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
1758
|
-
/**
|
|
1759
|
-
* @generated from field: bool simulate_transaction = 21;
|
|
1760
|
-
*/
|
|
1761
|
-
this.simulateTransaction = false;
|
|
1762
|
-
proto3.util.initPartial(data, this);
|
|
1763
|
-
}
|
|
1764
|
-
static fromBinary(bytes, options) {
|
|
1765
|
-
return new MigrateLpPositionRequest().fromBinary(bytes, options);
|
|
1766
|
-
}
|
|
1767
|
-
static fromJson(jsonValue, options) {
|
|
1768
|
-
return new MigrateLpPositionRequest().fromJson(jsonValue, options);
|
|
1769
|
-
}
|
|
1770
|
-
static fromJsonString(jsonString, options) {
|
|
1771
|
-
return new MigrateLpPositionRequest().fromJsonString(jsonString, options);
|
|
1772
|
-
}
|
|
1773
|
-
static equals(a, b) {
|
|
1774
|
-
return proto3.util.equals(MigrateLpPositionRequest, a, b);
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1777
|
-
MigrateLpPositionRequest.runtime = proto3;
|
|
1778
|
-
MigrateLpPositionRequest.typeName = "trading.v1.MigrateLpPositionRequest";
|
|
1779
|
-
MigrateLpPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
1780
|
-
{ no: 1, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1781
|
-
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1782
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1783
|
-
{ no: 4, name: "input_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1784
|
-
{ no: 5, name: "input_position", kind: "message", T: V3Position },
|
|
1785
|
-
{ no: 6, name: "input_pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1786
|
-
{ no: 7, name: "input_current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1787
|
-
{ no: 8, name: "input_sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1788
|
-
{ no: 9, name: "input_position_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1789
|
-
{ no: 10, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1790
|
-
{ no: 11, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1791
|
-
{ no: 12, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1792
|
-
{ no: 13, name: "output_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1793
|
-
{ no: 14, name: "output_position", kind: "message", T: V4Position },
|
|
1794
|
-
{ no: 15, name: "output_pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1795
|
-
{ no: 16, name: "output_current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1796
|
-
{ no: 17, name: "output_sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1797
|
-
{ no: 18, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1798
|
-
{ no: 19, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1799
|
-
{ no: 20, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1800
|
-
{ no: 21, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1801
|
-
{ no: 22, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1802
|
-
{ no: 23, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1803
|
-
{ no: 24, name: "signature_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1804
|
-
]);
|
|
1805
|
-
/**
|
|
1806
|
-
* @generated from message trading.v1.MigrateLpPositionResponse
|
|
1807
|
-
*/
|
|
1808
|
-
export class MigrateLpPositionResponse extends Message {
|
|
1809
|
-
constructor(data) {
|
|
1810
|
-
super();
|
|
1811
|
-
/**
|
|
1812
|
-
* @generated from field: string request_id = 1;
|
|
1813
|
-
*/
|
|
1814
|
-
this.requestId = "";
|
|
1815
|
-
proto3.util.initPartial(data, this);
|
|
1816
|
-
}
|
|
1817
|
-
static fromBinary(bytes, options) {
|
|
1818
|
-
return new MigrateLpPositionResponse().fromBinary(bytes, options);
|
|
1819
|
-
}
|
|
1820
|
-
static fromJson(jsonValue, options) {
|
|
1821
|
-
return new MigrateLpPositionResponse().fromJson(jsonValue, options);
|
|
1822
|
-
}
|
|
1823
|
-
static fromJsonString(jsonString, options) {
|
|
1824
|
-
return new MigrateLpPositionResponse().fromJsonString(jsonString, options);
|
|
1825
|
-
}
|
|
1826
|
-
static equals(a, b) {
|
|
1827
|
-
return proto3.util.equals(MigrateLpPositionResponse, a, b);
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
MigrateLpPositionResponse.runtime = proto3;
|
|
1831
|
-
MigrateLpPositionResponse.typeName = "trading.v1.MigrateLpPositionResponse";
|
|
1832
|
-
MigrateLpPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
1833
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1834
|
-
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest, opt: true },
|
|
1835
|
-
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1836
|
-
]);
|
|
1837
|
-
/**
|
|
1838
|
-
* @generated from message trading.v1.ClaimLPFeesRequest
|
|
1839
|
-
*/
|
|
1840
|
-
export class ClaimLPFeesRequest extends Message {
|
|
1841
|
-
constructor(data) {
|
|
1842
|
-
super();
|
|
1843
|
-
/**
|
|
1844
|
-
* @generated from oneof trading.v1.ClaimLPFeesRequest.claimLPFeesRequest
|
|
1845
|
-
*/
|
|
1846
|
-
this.claimLPFeesRequest = { case: undefined };
|
|
1847
|
-
proto3.util.initPartial(data, this);
|
|
1848
|
-
}
|
|
1849
|
-
static fromBinary(bytes, options) {
|
|
1850
|
-
return new ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1851
|
-
}
|
|
1852
|
-
static fromJson(jsonValue, options) {
|
|
1853
|
-
return new ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1854
|
-
}
|
|
1855
|
-
static fromJsonString(jsonString, options) {
|
|
1856
|
-
return new ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1857
|
-
}
|
|
1858
|
-
static equals(a, b) {
|
|
1859
|
-
return proto3.util.equals(ClaimLPFeesRequest, a, b);
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
ClaimLPFeesRequest.runtime = proto3;
|
|
1863
|
-
ClaimLPFeesRequest.typeName = "trading.v1.ClaimLPFeesRequest";
|
|
1864
|
-
ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1865
|
-
{ no: 1, name: "v2_claim_lp_fees_request", kind: "message", T: V2ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1866
|
-
{ no: 2, name: "v3_claim_lp_fees_request", kind: "message", T: V3ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1867
|
-
{ no: 3, name: "v4_claim_lp_fees_request", kind: "message", T: V4ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1868
|
-
]);
|
|
1869
|
-
/**
|
|
1870
|
-
* @generated from message trading.v1.ClaimLPFeesResponse
|
|
1871
|
-
*/
|
|
1872
|
-
export class ClaimLPFeesResponse extends Message {
|
|
1873
|
-
constructor(data) {
|
|
1874
|
-
super();
|
|
1875
|
-
/**
|
|
1876
|
-
* @generated from field: string request_id = 1;
|
|
1877
|
-
*/
|
|
1878
|
-
this.requestId = "";
|
|
1879
|
-
proto3.util.initPartial(data, this);
|
|
1880
|
-
}
|
|
1881
|
-
static fromBinary(bytes, options) {
|
|
1882
|
-
return new ClaimLPFeesResponse().fromBinary(bytes, options);
|
|
1883
|
-
}
|
|
1884
|
-
static fromJson(jsonValue, options) {
|
|
1885
|
-
return new ClaimLPFeesResponse().fromJson(jsonValue, options);
|
|
1886
|
-
}
|
|
1887
|
-
static fromJsonString(jsonString, options) {
|
|
1888
|
-
return new ClaimLPFeesResponse().fromJsonString(jsonString, options);
|
|
1889
|
-
}
|
|
1890
|
-
static equals(a, b) {
|
|
1891
|
-
return proto3.util.equals(ClaimLPFeesResponse, a, b);
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
ClaimLPFeesResponse.runtime = proto3;
|
|
1895
|
-
ClaimLPFeesResponse.typeName = "trading.v1.ClaimLPFeesResponse";
|
|
1896
|
-
ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
1897
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1898
|
-
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
1899
|
-
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1900
|
-
]);
|
|
1901
|
-
/**
|
|
1902
|
-
* @generated from message trading.v1.V2ClaimLPFeesRequest
|
|
1903
|
-
*/
|
|
1904
|
-
export class V2ClaimLPFeesRequest extends Message {
|
|
1905
|
-
constructor(data) {
|
|
1906
|
-
super();
|
|
1907
|
-
/**
|
|
1908
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1909
|
-
*/
|
|
1910
|
-
this.protocol = Protocols.V2;
|
|
1911
|
-
/**
|
|
1912
|
-
* @generated from field: string wallet_address = 3;
|
|
1913
|
-
*/
|
|
1914
|
-
this.walletAddress = "";
|
|
1915
|
-
/**
|
|
1916
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1917
|
-
*/
|
|
1918
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1919
|
-
/**
|
|
1920
|
-
* @generated from field: bool collectAsWETH = 6;
|
|
1921
|
-
*/
|
|
1922
|
-
this.collectAsWETH = false;
|
|
1923
|
-
proto3.util.initPartial(data, this);
|
|
1924
|
-
}
|
|
1925
|
-
static fromBinary(bytes, options) {
|
|
1926
|
-
return new V2ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1927
|
-
}
|
|
1928
|
-
static fromJson(jsonValue, options) {
|
|
1929
|
-
return new V2ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1930
|
-
}
|
|
1931
|
-
static fromJsonString(jsonString, options) {
|
|
1932
|
-
return new V2ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1933
|
-
}
|
|
1934
|
-
static equals(a, b) {
|
|
1935
|
-
return proto3.util.equals(V2ClaimLPFeesRequest, a, b);
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
V2ClaimLPFeesRequest.runtime = proto3;
|
|
1939
|
-
V2ClaimLPFeesRequest.typeName = "trading.v1.V2ClaimLPFeesRequest";
|
|
1940
|
-
V2ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1941
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1942
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
1943
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1944
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1945
|
-
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1946
|
-
{ no: 6, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1947
|
-
]);
|
|
1948
|
-
/**
|
|
1949
|
-
* @generated from message trading.v1.V3ClaimLPFeesRequest
|
|
1950
|
-
*/
|
|
1951
|
-
export class V3ClaimLPFeesRequest extends Message {
|
|
1952
|
-
constructor(data) {
|
|
1953
|
-
super();
|
|
1954
|
-
/**
|
|
1955
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1956
|
-
*/
|
|
1957
|
-
this.protocol = Protocols.V2;
|
|
1958
|
-
/**
|
|
1959
|
-
* @generated from field: int32 tokenId = 2;
|
|
1960
|
-
*/
|
|
1961
|
-
this.tokenId = 0;
|
|
1962
|
-
/**
|
|
1963
|
-
* @generated from field: string wallet_address = 4;
|
|
1964
|
-
*/
|
|
1965
|
-
this.walletAddress = "";
|
|
1966
|
-
/**
|
|
1967
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
1968
|
-
*/
|
|
1969
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1970
|
-
/**
|
|
1971
|
-
* @generated from field: bool collectAsWETH = 7;
|
|
1972
|
-
*/
|
|
1973
|
-
this.collectAsWETH = false;
|
|
1974
|
-
/**
|
|
1975
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 8;
|
|
1976
|
-
*/
|
|
1977
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
1978
|
-
/**
|
|
1979
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 9;
|
|
1980
|
-
*/
|
|
1981
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
1982
|
-
proto3.util.initPartial(data, this);
|
|
1983
|
-
}
|
|
1984
|
-
static fromBinary(bytes, options) {
|
|
1985
|
-
return new V3ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1986
|
-
}
|
|
1987
|
-
static fromJson(jsonValue, options) {
|
|
1988
|
-
return new V3ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1989
|
-
}
|
|
1990
|
-
static fromJsonString(jsonString, options) {
|
|
1991
|
-
return new V3ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1992
|
-
}
|
|
1993
|
-
static equals(a, b) {
|
|
1994
|
-
return proto3.util.equals(V3ClaimLPFeesRequest, a, b);
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
V3ClaimLPFeesRequest.runtime = proto3;
|
|
1998
|
-
V3ClaimLPFeesRequest.typeName = "trading.v1.V3ClaimLPFeesRequest";
|
|
1999
|
-
V3ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
2000
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2001
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2002
|
-
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
2003
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2004
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2005
|
-
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2006
|
-
{ no: 7, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2007
|
-
{ no: 8, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2008
|
-
{ no: 9, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2009
|
-
]);
|
|
2010
|
-
/**
|
|
2011
|
-
* @generated from message trading.v1.V4ClaimLPFeesRequest
|
|
2012
|
-
*/
|
|
2013
|
-
export class V4ClaimLPFeesRequest extends Message {
|
|
2014
|
-
constructor(data) {
|
|
2015
|
-
super();
|
|
2016
|
-
/**
|
|
2017
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2018
|
-
*/
|
|
2019
|
-
this.protocol = Protocols.V2;
|
|
2020
|
-
/**
|
|
2021
|
-
* @generated from field: int32 tokenId = 2;
|
|
2022
|
-
*/
|
|
2023
|
-
this.tokenId = 0;
|
|
2024
|
-
/**
|
|
2025
|
-
* @generated from field: string wallet_address = 4;
|
|
2026
|
-
*/
|
|
2027
|
-
this.walletAddress = "";
|
|
2028
|
-
/**
|
|
2029
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2030
|
-
*/
|
|
2031
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2032
|
-
proto3.util.initPartial(data, this);
|
|
2033
|
-
}
|
|
2034
|
-
static fromBinary(bytes, options) {
|
|
2035
|
-
return new V4ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
2036
|
-
}
|
|
2037
|
-
static fromJson(jsonValue, options) {
|
|
2038
|
-
return new V4ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
2039
|
-
}
|
|
2040
|
-
static fromJsonString(jsonString, options) {
|
|
2041
|
-
return new V4ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
2042
|
-
}
|
|
2043
|
-
static equals(a, b) {
|
|
2044
|
-
return proto3.util.equals(V4ClaimLPFeesRequest, a, b);
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
V4ClaimLPFeesRequest.runtime = proto3;
|
|
2048
|
-
V4ClaimLPFeesRequest.typeName = "trading.v1.V4ClaimLPFeesRequest";
|
|
2049
|
-
V4ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
2050
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2051
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2052
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
2053
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2054
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2055
|
-
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2056
|
-
]);
|
|
2057
|
-
/**
|
|
2058
|
-
* @generated from message trading.v1.DecreaseLPPositionRequest
|
|
2059
|
-
*/
|
|
2060
|
-
export class DecreaseLPPositionRequest extends Message {
|
|
2061
|
-
constructor(data) {
|
|
2062
|
-
super();
|
|
2063
|
-
/**
|
|
2064
|
-
* @generated from oneof trading.v1.DecreaseLPPositionRequest.decreaseLpPosition
|
|
2065
|
-
*/
|
|
2066
|
-
this.decreaseLpPosition = { case: undefined };
|
|
2067
|
-
proto3.util.initPartial(data, this);
|
|
2068
|
-
}
|
|
2069
|
-
static fromBinary(bytes, options) {
|
|
2070
|
-
return new DecreaseLPPositionRequest().fromBinary(bytes, options);
|
|
2071
|
-
}
|
|
2072
|
-
static fromJson(jsonValue, options) {
|
|
2073
|
-
return new DecreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
2074
|
-
}
|
|
2075
|
-
static fromJsonString(jsonString, options) {
|
|
2076
|
-
return new DecreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
2077
|
-
}
|
|
2078
|
-
static equals(a, b) {
|
|
2079
|
-
return proto3.util.equals(DecreaseLPPositionRequest, a, b);
|
|
2080
|
-
}
|
|
2081
|
-
}
|
|
2082
|
-
DecreaseLPPositionRequest.runtime = proto3;
|
|
2083
|
-
DecreaseLPPositionRequest.typeName = "trading.v1.DecreaseLPPositionRequest";
|
|
2084
|
-
DecreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
2085
|
-
{ no: 1, name: "v2_decrease_lp_position", kind: "message", T: V2DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2086
|
-
{ no: 2, name: "v3_decrease_lp_position", kind: "message", T: V3DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2087
|
-
{ no: 3, name: "v4_decrease_lp_position", kind: "message", T: V4DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2088
|
-
]);
|
|
2089
|
-
/**
|
|
2090
|
-
* @generated from message trading.v1.DecreaseLPPositionResponse
|
|
2091
|
-
*/
|
|
2092
|
-
export class DecreaseLPPositionResponse extends Message {
|
|
2093
|
-
constructor(data) {
|
|
2094
|
-
super();
|
|
2095
|
-
/**
|
|
2096
|
-
* @generated from field: string request_id = 1;
|
|
2097
|
-
*/
|
|
2098
|
-
this.requestId = "";
|
|
2099
|
-
proto3.util.initPartial(data, this);
|
|
2100
|
-
}
|
|
2101
|
-
static fromBinary(bytes, options) {
|
|
2102
|
-
return new DecreaseLPPositionResponse().fromBinary(bytes, options);
|
|
2103
|
-
}
|
|
2104
|
-
static fromJson(jsonValue, options) {
|
|
2105
|
-
return new DecreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
2106
|
-
}
|
|
2107
|
-
static fromJsonString(jsonString, options) {
|
|
2108
|
-
return new DecreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
2109
|
-
}
|
|
2110
|
-
static equals(a, b) {
|
|
2111
|
-
return proto3.util.equals(DecreaseLPPositionResponse, a, b);
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
DecreaseLPPositionResponse.runtime = proto3;
|
|
2115
|
-
DecreaseLPPositionResponse.typeName = "trading.v1.DecreaseLPPositionResponse";
|
|
2116
|
-
DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2117
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2118
|
-
{ no: 2, name: "decrease", kind: "message", T: TransactionRequest, opt: true },
|
|
2119
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2120
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2121
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2122
|
-
{ no: 7, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2123
|
-
]);
|
|
2124
|
-
/**
|
|
2125
|
-
* @generated from message trading.v1.V2DecreaseLPPosition
|
|
2126
|
-
*/
|
|
2127
|
-
export class V2DecreaseLPPosition extends Message {
|
|
2128
|
-
constructor(data) {
|
|
2129
|
-
super();
|
|
2130
|
-
/**
|
|
2131
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2132
|
-
*/
|
|
2133
|
-
this.protocol = Protocols.V2;
|
|
2134
|
-
/**
|
|
2135
|
-
* @generated from field: string wallet_address = 3;
|
|
2136
|
-
*/
|
|
2137
|
-
this.walletAddress = "";
|
|
2138
|
-
/**
|
|
2139
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2140
|
-
*/
|
|
2141
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2142
|
-
/**
|
|
2143
|
-
* @generated from field: string positionLiquidity = 5;
|
|
2144
|
-
*/
|
|
2145
|
-
this.positionLiquidity = "";
|
|
2146
|
-
/**
|
|
2147
|
-
* @generated from field: int32 liquidityPercentageToDecrease = 6;
|
|
2148
|
-
*/
|
|
2149
|
-
this.liquidityPercentageToDecrease = 0;
|
|
2150
|
-
/**
|
|
2151
|
-
* @generated from field: string liquidity0 = 7;
|
|
2152
|
-
*/
|
|
2153
|
-
this.liquidity0 = "";
|
|
2154
|
-
/**
|
|
2155
|
-
* @generated from field: string liquidity1 = 8;
|
|
2156
|
-
*/
|
|
2157
|
-
this.liquidity1 = "";
|
|
2158
|
-
/**
|
|
2159
|
-
* @generated from field: bool collectAsWETH = 10;
|
|
2160
|
-
*/
|
|
2161
|
-
this.collectAsWETH = false;
|
|
2162
|
-
proto3.util.initPartial(data, this);
|
|
2163
|
-
}
|
|
2164
|
-
static fromBinary(bytes, options) {
|
|
2165
|
-
return new V2DecreaseLPPosition().fromBinary(bytes, options);
|
|
2166
|
-
}
|
|
2167
|
-
static fromJson(jsonValue, options) {
|
|
2168
|
-
return new V2DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2169
|
-
}
|
|
2170
|
-
static fromJsonString(jsonString, options) {
|
|
2171
|
-
return new V2DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2172
|
-
}
|
|
2173
|
-
static equals(a, b) {
|
|
2174
|
-
return proto3.util.equals(V2DecreaseLPPosition, a, b);
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
|
-
V2DecreaseLPPosition.runtime = proto3;
|
|
2178
|
-
V2DecreaseLPPosition.typeName = "trading.v1.V2DecreaseLPPosition";
|
|
2179
|
-
V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2180
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2181
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
2182
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2183
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2184
|
-
{ no: 5, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2185
|
-
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2186
|
-
{ no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2187
|
-
{ no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2188
|
-
{ no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2189
|
-
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2190
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2191
|
-
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2192
|
-
]);
|
|
2193
|
-
/**
|
|
2194
|
-
* @generated from message trading.v1.V3DecreaseLPPosition
|
|
2195
|
-
*/
|
|
2196
|
-
export class V3DecreaseLPPosition extends Message {
|
|
2197
|
-
constructor(data) {
|
|
2198
|
-
super();
|
|
2199
|
-
/**
|
|
2200
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2201
|
-
*/
|
|
2202
|
-
this.protocol = Protocols.V2;
|
|
2203
|
-
/**
|
|
2204
|
-
* @generated from field: int32 tokenId = 2;
|
|
2205
|
-
*/
|
|
2206
|
-
this.tokenId = 0;
|
|
2207
|
-
/**
|
|
2208
|
-
* @generated from field: string wallet_address = 4;
|
|
2209
|
-
*/
|
|
2210
|
-
this.walletAddress = "";
|
|
2211
|
-
/**
|
|
2212
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2213
|
-
*/
|
|
2214
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2215
|
-
/**
|
|
2216
|
-
* @generated from field: string liquidityPercentageToDecrease = 7;
|
|
2217
|
-
*/
|
|
2218
|
-
this.liquidityPercentageToDecrease = "";
|
|
2219
|
-
/**
|
|
2220
|
-
* @generated from field: string positionLiquidity = 11;
|
|
2221
|
-
*/
|
|
2222
|
-
this.positionLiquidity = "";
|
|
2223
|
-
/**
|
|
2224
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 12;
|
|
2225
|
-
*/
|
|
2226
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
2227
|
-
/**
|
|
2228
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 13;
|
|
2229
|
-
*/
|
|
2230
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
2231
|
-
/**
|
|
2232
|
-
* @generated from field: bool collectAsWETH = 14;
|
|
2233
|
-
*/
|
|
2234
|
-
this.collectAsWETH = false;
|
|
2235
|
-
proto3.util.initPartial(data, this);
|
|
2236
|
-
}
|
|
2237
|
-
static fromBinary(bytes, options) {
|
|
2238
|
-
return new V3DecreaseLPPosition().fromBinary(bytes, options);
|
|
2239
|
-
}
|
|
2240
|
-
static fromJson(jsonValue, options) {
|
|
2241
|
-
return new V3DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2242
|
-
}
|
|
2243
|
-
static fromJsonString(jsonString, options) {
|
|
2244
|
-
return new V3DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2245
|
-
}
|
|
2246
|
-
static equals(a, b) {
|
|
2247
|
-
return proto3.util.equals(V3DecreaseLPPosition, a, b);
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
V3DecreaseLPPosition.runtime = proto3;
|
|
2251
|
-
V3DecreaseLPPosition.typeName = "trading.v1.V3DecreaseLPPosition";
|
|
2252
|
-
V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2253
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2254
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2255
|
-
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
2256
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2257
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2258
|
-
{ no: 7, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2259
|
-
{ no: 8, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2260
|
-
{ no: 9, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2261
|
-
{ no: 10, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2262
|
-
{ no: 11, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2263
|
-
{ no: 12, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2264
|
-
{ no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2265
|
-
{ no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2266
|
-
{ no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2267
|
-
{ no: 16, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2268
|
-
{ no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2269
|
-
]);
|
|
2270
|
-
/**
|
|
2271
|
-
* @generated from message trading.v1.V4DecreaseLPPosition
|
|
2272
|
-
*/
|
|
2273
|
-
export class V4DecreaseLPPosition extends Message {
|
|
2274
|
-
constructor(data) {
|
|
2275
|
-
super();
|
|
2276
|
-
/**
|
|
2277
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2278
|
-
*/
|
|
2279
|
-
this.protocol = Protocols.V2;
|
|
2280
|
-
/**
|
|
2281
|
-
* @generated from field: int32 tokenId = 2;
|
|
2282
|
-
*/
|
|
2283
|
-
this.tokenId = 0;
|
|
2284
|
-
/**
|
|
2285
|
-
* @generated from field: string wallet_address = 4;
|
|
2286
|
-
*/
|
|
2287
|
-
this.walletAddress = "";
|
|
2288
|
-
/**
|
|
2289
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2290
|
-
*/
|
|
2291
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2292
|
-
/**
|
|
2293
|
-
* @generated from field: int32 liquidityPercentageToDecrease = 6;
|
|
2294
|
-
*/
|
|
2295
|
-
this.liquidityPercentageToDecrease = 0;
|
|
2296
|
-
/**
|
|
2297
|
-
* @generated from field: string positionLiquidity = 10;
|
|
2298
|
-
*/
|
|
2299
|
-
this.positionLiquidity = "";
|
|
2300
|
-
proto3.util.initPartial(data, this);
|
|
2301
|
-
}
|
|
2302
|
-
static fromBinary(bytes, options) {
|
|
2303
|
-
return new V4DecreaseLPPosition().fromBinary(bytes, options);
|
|
2304
|
-
}
|
|
2305
|
-
static fromJson(jsonValue, options) {
|
|
2306
|
-
return new V4DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2307
|
-
}
|
|
2308
|
-
static fromJsonString(jsonString, options) {
|
|
2309
|
-
return new V4DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2310
|
-
}
|
|
2311
|
-
static equals(a, b) {
|
|
2312
|
-
return proto3.util.equals(V4DecreaseLPPosition, a, b);
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
V4DecreaseLPPosition.runtime = proto3;
|
|
2316
|
-
V4DecreaseLPPosition.typeName = "trading.v1.V4DecreaseLPPosition";
|
|
2317
|
-
V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2318
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2319
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2320
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
2321
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2322
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2323
|
-
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2324
|
-
{ no: 7, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2325
|
-
{ no: 8, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2326
|
-
{ no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2327
|
-
{ no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2328
|
-
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2329
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2330
|
-
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2331
|
-
]);
|
|
2332
|
-
/**
|
|
2333
|
-
* @generated from message trading.v1.IncreaseLPPositionRequest
|
|
2334
|
-
*/
|
|
2335
|
-
export class IncreaseLPPositionRequest extends Message {
|
|
2336
|
-
constructor(data) {
|
|
2337
|
-
super();
|
|
2338
|
-
/**
|
|
2339
|
-
* @generated from oneof trading.v1.IncreaseLPPositionRequest.increaseLpPosition
|
|
2340
|
-
*/
|
|
2341
|
-
this.increaseLpPosition = { case: undefined };
|
|
2342
|
-
proto3.util.initPartial(data, this);
|
|
2343
|
-
}
|
|
2344
|
-
static fromBinary(bytes, options) {
|
|
2345
|
-
return new IncreaseLPPositionRequest().fromBinary(bytes, options);
|
|
2346
|
-
}
|
|
2347
|
-
static fromJson(jsonValue, options) {
|
|
2348
|
-
return new IncreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
2349
|
-
}
|
|
2350
|
-
static fromJsonString(jsonString, options) {
|
|
2351
|
-
return new IncreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
2352
|
-
}
|
|
2353
|
-
static equals(a, b) {
|
|
2354
|
-
return proto3.util.equals(IncreaseLPPositionRequest, a, b);
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
IncreaseLPPositionRequest.runtime = proto3;
|
|
2358
|
-
IncreaseLPPositionRequest.typeName = "trading.v1.IncreaseLPPositionRequest";
|
|
2359
|
-
IncreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
2360
|
-
{ no: 1, name: "v2_increase_lp_position", kind: "message", T: V2IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2361
|
-
{ no: 2, name: "v3_increase_lp_position", kind: "message", T: V3IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2362
|
-
{ no: 3, name: "v4_increase_lp_position", kind: "message", T: V4IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2363
|
-
]);
|
|
2364
|
-
/**
|
|
2365
|
-
* @generated from message trading.v1.IncreaseLPPositionResponse
|
|
2366
|
-
*/
|
|
2367
|
-
export class IncreaseLPPositionResponse extends Message {
|
|
2368
|
-
constructor(data) {
|
|
2369
|
-
super();
|
|
2370
|
-
/**
|
|
2371
|
-
* @generated from field: string request_id = 1;
|
|
2372
|
-
*/
|
|
2373
|
-
this.requestId = "";
|
|
2374
|
-
proto3.util.initPartial(data, this);
|
|
2375
|
-
}
|
|
2376
|
-
static fromBinary(bytes, options) {
|
|
2377
|
-
return new IncreaseLPPositionResponse().fromBinary(bytes, options);
|
|
2378
|
-
}
|
|
2379
|
-
static fromJson(jsonValue, options) {
|
|
2380
|
-
return new IncreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
2381
|
-
}
|
|
2382
|
-
static fromJsonString(jsonString, options) {
|
|
2383
|
-
return new IncreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
2384
|
-
}
|
|
2385
|
-
static equals(a, b) {
|
|
2386
|
-
return proto3.util.equals(IncreaseLPPositionResponse, a, b);
|
|
2387
|
-
}
|
|
2388
|
-
}
|
|
2389
|
-
IncreaseLPPositionResponse.runtime = proto3;
|
|
2390
|
-
IncreaseLPPositionResponse.typeName = "trading.v1.IncreaseLPPositionResponse";
|
|
2391
|
-
IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2392
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2393
|
-
{ no: 2, name: "increase", kind: "message", T: TransactionRequest, opt: true },
|
|
2394
|
-
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2395
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2396
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2397
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2398
|
-
]);
|
|
2399
|
-
/**
|
|
2400
|
-
* @generated from message trading.v1.V2IncreaseLPPosition
|
|
2401
|
-
*/
|
|
2402
|
-
export class V2IncreaseLPPosition extends Message {
|
|
2403
|
-
constructor(data) {
|
|
2404
|
-
super();
|
|
2405
|
-
/**
|
|
2406
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2407
|
-
*/
|
|
2408
|
-
this.protocols = Protocols.V2;
|
|
2409
|
-
/**
|
|
2410
|
-
* @generated from field: string wallet_address = 3;
|
|
2411
|
-
*/
|
|
2412
|
-
this.walletAddress = "";
|
|
2413
|
-
/**
|
|
2414
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2415
|
-
*/
|
|
2416
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2417
|
-
/**
|
|
2418
|
-
* @generated from field: bool simulate_transaction = 12;
|
|
2419
|
-
*/
|
|
2420
|
-
this.simulateTransaction = false;
|
|
2421
|
-
proto3.util.initPartial(data, this);
|
|
2422
|
-
}
|
|
2423
|
-
static fromBinary(bytes, options) {
|
|
2424
|
-
return new V2IncreaseLPPosition().fromBinary(bytes, options);
|
|
2425
|
-
}
|
|
2426
|
-
static fromJson(jsonValue, options) {
|
|
2427
|
-
return new V2IncreaseLPPosition().fromJson(jsonValue, options);
|
|
2428
|
-
}
|
|
2429
|
-
static fromJsonString(jsonString, options) {
|
|
2430
|
-
return new V2IncreaseLPPosition().fromJsonString(jsonString, options);
|
|
2431
|
-
}
|
|
2432
|
-
static equals(a, b) {
|
|
2433
|
-
return proto3.util.equals(V2IncreaseLPPosition, a, b);
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
V2IncreaseLPPosition.runtime = proto3;
|
|
2437
|
-
V2IncreaseLPPosition.typeName = "trading.v1.V2IncreaseLPPosition";
|
|
2438
|
-
V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2439
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2440
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
2441
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2442
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2443
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2444
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2445
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2446
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2447
|
-
{ no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2448
|
-
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2449
|
-
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2450
|
-
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2451
|
-
]);
|
|
2452
|
-
/**
|
|
2453
|
-
* @generated from message trading.v1.V3IncreaseLPPosition
|
|
2454
|
-
*/
|
|
2455
|
-
export class V3IncreaseLPPosition extends Message {
|
|
2456
|
-
constructor(data) {
|
|
2457
|
-
super();
|
|
2458
|
-
/**
|
|
2459
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2460
|
-
*/
|
|
2461
|
-
this.protocols = Protocols.V2;
|
|
2462
|
-
/**
|
|
2463
|
-
* @generated from field: int32 tokenId = 2;
|
|
2464
|
-
*/
|
|
2465
|
-
this.tokenId = 0;
|
|
2466
|
-
/**
|
|
2467
|
-
* @generated from field: string wallet_address = 4;
|
|
2468
|
-
*/
|
|
2469
|
-
this.walletAddress = "";
|
|
2470
|
-
/**
|
|
2471
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2472
|
-
*/
|
|
2473
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2474
|
-
/**
|
|
2475
|
-
* @generated from field: bool simulate_transaction = 16;
|
|
2476
|
-
*/
|
|
2477
|
-
this.simulateTransaction = false;
|
|
2478
|
-
proto3.util.initPartial(data, this);
|
|
2479
|
-
}
|
|
2480
|
-
static fromBinary(bytes, options) {
|
|
2481
|
-
return new V3IncreaseLPPosition().fromBinary(bytes, options);
|
|
2482
|
-
}
|
|
2483
|
-
static fromJson(jsonValue, options) {
|
|
2484
|
-
return new V3IncreaseLPPosition().fromJson(jsonValue, options);
|
|
2485
|
-
}
|
|
2486
|
-
static fromJsonString(jsonString, options) {
|
|
2487
|
-
return new V3IncreaseLPPosition().fromJsonString(jsonString, options);
|
|
2488
|
-
}
|
|
2489
|
-
static equals(a, b) {
|
|
2490
|
-
return proto3.util.equals(V3IncreaseLPPosition, a, b);
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
V3IncreaseLPPosition.runtime = proto3;
|
|
2494
|
-
V3IncreaseLPPosition.typeName = "trading.v1.V3IncreaseLPPosition";
|
|
2495
|
-
V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2496
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2497
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2498
|
-
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
2499
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2500
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2501
|
-
{ no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2502
|
-
{ no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2503
|
-
{ no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2504
|
-
{ no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2505
|
-
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2506
|
-
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2507
|
-
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2508
|
-
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2509
|
-
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2510
|
-
{ no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2511
|
-
]);
|
|
2512
|
-
/**
|
|
2513
|
-
* @generated from message trading.v1.V4IncreaseLPPosition
|
|
2514
|
-
*/
|
|
2515
|
-
export class V4IncreaseLPPosition extends Message {
|
|
2516
|
-
constructor(data) {
|
|
2517
|
-
super();
|
|
2518
|
-
/**
|
|
2519
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2520
|
-
*/
|
|
2521
|
-
this.protocols = Protocols.V2;
|
|
2522
|
-
/**
|
|
2523
|
-
* @generated from field: int32 tokenId = 2;
|
|
2524
|
-
*/
|
|
2525
|
-
this.tokenId = 0;
|
|
2526
|
-
/**
|
|
2527
|
-
* @generated from field: string wallet_address = 4;
|
|
2528
|
-
*/
|
|
2529
|
-
this.walletAddress = "";
|
|
2530
|
-
/**
|
|
2531
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2532
|
-
*/
|
|
2533
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2534
|
-
/**
|
|
2535
|
-
* @generated from field: bool simulate_transaction = 16;
|
|
2536
|
-
*/
|
|
2537
|
-
this.simulateTransaction = false;
|
|
2538
|
-
proto3.util.initPartial(data, this);
|
|
2539
|
-
}
|
|
2540
|
-
static fromBinary(bytes, options) {
|
|
2541
|
-
return new V4IncreaseLPPosition().fromBinary(bytes, options);
|
|
2542
|
-
}
|
|
2543
|
-
static fromJson(jsonValue, options) {
|
|
2544
|
-
return new V4IncreaseLPPosition().fromJson(jsonValue, options);
|
|
2545
|
-
}
|
|
2546
|
-
static fromJsonString(jsonString, options) {
|
|
2547
|
-
return new V4IncreaseLPPosition().fromJsonString(jsonString, options);
|
|
2548
|
-
}
|
|
2549
|
-
static equals(a, b) {
|
|
2550
|
-
return proto3.util.equals(V4IncreaseLPPosition, a, b);
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
V4IncreaseLPPosition.runtime = proto3;
|
|
2554
|
-
V4IncreaseLPPosition.typeName = "trading.v1.V4IncreaseLPPosition";
|
|
2555
|
-
V4IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2556
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2557
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2558
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
2559
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2560
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2561
|
-
{ no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2562
|
-
{ no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2563
|
-
{ no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2564
|
-
{ no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2565
|
-
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2566
|
-
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2567
|
-
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2568
|
-
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2569
|
-
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2570
|
-
{ no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2571
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2572
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
2573
|
-
]);
|
|
2574
|
-
/**
|
|
2575
|
-
* @generated from message trading.v1.CreateLPPositionRequest
|
|
2576
|
-
*/
|
|
2577
|
-
export class CreateLPPositionRequest extends Message {
|
|
2578
|
-
constructor(data) {
|
|
2579
|
-
super();
|
|
2580
|
-
/**
|
|
2581
|
-
* @generated from oneof trading.v1.CreateLPPositionRequest.createLpPosition
|
|
2582
|
-
*/
|
|
2583
|
-
this.createLpPosition = { case: undefined };
|
|
2584
|
-
proto3.util.initPartial(data, this);
|
|
2585
|
-
}
|
|
2586
|
-
static fromBinary(bytes, options) {
|
|
2587
|
-
return new CreateLPPositionRequest().fromBinary(bytes, options);
|
|
2588
|
-
}
|
|
2589
|
-
static fromJson(jsonValue, options) {
|
|
2590
|
-
return new CreateLPPositionRequest().fromJson(jsonValue, options);
|
|
2591
|
-
}
|
|
2592
|
-
static fromJsonString(jsonString, options) {
|
|
2593
|
-
return new CreateLPPositionRequest().fromJsonString(jsonString, options);
|
|
2594
|
-
}
|
|
2595
|
-
static equals(a, b) {
|
|
2596
|
-
return proto3.util.equals(CreateLPPositionRequest, a, b);
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
CreateLPPositionRequest.runtime = proto3;
|
|
2600
|
-
CreateLPPositionRequest.typeName = "trading.v1.CreateLPPositionRequest";
|
|
2601
|
-
CreateLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
2602
|
-
{ no: 1, name: "v2_create_lp_position", kind: "message", T: V2CreateLPPosition, oneof: "createLpPosition" },
|
|
2603
|
-
{ no: 2, name: "v3_create_lp_position", kind: "message", T: V3CreateLPPosition, oneof: "createLpPosition" },
|
|
2604
|
-
{ no: 3, name: "v4_create_lp_position", kind: "message", T: V4CreateLPPosition, oneof: "createLpPosition" },
|
|
2605
|
-
]);
|
|
2606
|
-
/**
|
|
2607
|
-
* @generated from message trading.v1.CreateLPPositionResponse
|
|
2608
|
-
*/
|
|
2609
|
-
export class CreateLPPositionResponse extends Message {
|
|
2610
|
-
constructor(data) {
|
|
2611
|
-
super();
|
|
2612
|
-
/**
|
|
2613
|
-
* @generated from field: string request_id = 1;
|
|
2614
|
-
*/
|
|
2615
|
-
this.requestId = "";
|
|
2616
|
-
proto3.util.initPartial(data, this);
|
|
2617
|
-
}
|
|
2618
|
-
static fromBinary(bytes, options) {
|
|
2619
|
-
return new CreateLPPositionResponse().fromBinary(bytes, options);
|
|
2620
|
-
}
|
|
2621
|
-
static fromJson(jsonValue, options) {
|
|
2622
|
-
return new CreateLPPositionResponse().fromJson(jsonValue, options);
|
|
2623
|
-
}
|
|
2624
|
-
static fromJsonString(jsonString, options) {
|
|
2625
|
-
return new CreateLPPositionResponse().fromJsonString(jsonString, options);
|
|
2626
|
-
}
|
|
2627
|
-
static equals(a, b) {
|
|
2628
|
-
return proto3.util.equals(CreateLPPositionResponse, a, b);
|
|
2629
|
-
}
|
|
2630
|
-
}
|
|
2631
|
-
CreateLPPositionResponse.runtime = proto3;
|
|
2632
|
-
CreateLPPositionResponse.typeName = "trading.v1.CreateLPPositionResponse";
|
|
2633
|
-
CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2634
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2635
|
-
{ no: 2, name: "create", kind: "message", T: TransactionRequest, opt: true },
|
|
2636
|
-
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2637
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2638
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2639
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2640
|
-
]);
|
|
2641
|
-
/**
|
|
2642
|
-
* @generated from message trading.v1.V2CreateLPPosition
|
|
2643
|
-
*/
|
|
2644
|
-
export class V2CreateLPPosition extends Message {
|
|
2645
|
-
constructor(data) {
|
|
2646
|
-
super();
|
|
2647
|
-
/**
|
|
2648
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2649
|
-
*/
|
|
2650
|
-
this.protocols = Protocols.V2;
|
|
2651
|
-
/**
|
|
2652
|
-
* @generated from field: string wallet_address = 3;
|
|
2653
|
-
*/
|
|
2654
|
-
this.walletAddress = "";
|
|
2655
|
-
/**
|
|
2656
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2657
|
-
*/
|
|
2658
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2659
|
-
/**
|
|
2660
|
-
* @generated from field: bool simulate_transaction = 19;
|
|
2661
|
-
*/
|
|
2662
|
-
this.simulateTransaction = false;
|
|
2663
|
-
proto3.util.initPartial(data, this);
|
|
2664
|
-
}
|
|
2665
|
-
static fromBinary(bytes, options) {
|
|
2666
|
-
return new V2CreateLPPosition().fromBinary(bytes, options);
|
|
2667
|
-
}
|
|
2668
|
-
static fromJson(jsonValue, options) {
|
|
2669
|
-
return new V2CreateLPPosition().fromJson(jsonValue, options);
|
|
2670
|
-
}
|
|
2671
|
-
static fromJsonString(jsonString, options) {
|
|
2672
|
-
return new V2CreateLPPosition().fromJsonString(jsonString, options);
|
|
2673
|
-
}
|
|
2674
|
-
static equals(a, b) {
|
|
2675
|
-
return proto3.util.equals(V2CreateLPPosition, a, b);
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
V2CreateLPPosition.runtime = proto3;
|
|
2679
|
-
V2CreateLPPosition.typeName = "trading.v1.V2CreateLPPosition";
|
|
2680
|
-
V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2681
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2682
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
2683
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2684
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2685
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2686
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2687
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2688
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2689
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2690
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2691
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2692
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2693
|
-
]);
|
|
2694
|
-
/**
|
|
2695
|
-
* @generated from message trading.v1.V3CreateLPPosition
|
|
2696
|
-
*/
|
|
2697
|
-
export class V3CreateLPPosition extends Message {
|
|
2698
|
-
constructor(data) {
|
|
2699
|
-
super();
|
|
2700
|
-
/**
|
|
2701
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2702
|
-
*/
|
|
2703
|
-
this.protocols = Protocols.V2;
|
|
2704
|
-
/**
|
|
2705
|
-
* @generated from field: string wallet_address = 3;
|
|
2706
|
-
*/
|
|
2707
|
-
this.walletAddress = "";
|
|
2708
|
-
/**
|
|
2709
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2710
|
-
*/
|
|
2711
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2712
|
-
/**
|
|
2713
|
-
* @generated from field: bool simulate_transaction = 19;
|
|
2714
|
-
*/
|
|
2715
|
-
this.simulateTransaction = false;
|
|
2716
|
-
proto3.util.initPartial(data, this);
|
|
2717
|
-
}
|
|
2718
|
-
static fromBinary(bytes, options) {
|
|
2719
|
-
return new V3CreateLPPosition().fromBinary(bytes, options);
|
|
2720
|
-
}
|
|
2721
|
-
static fromJson(jsonValue, options) {
|
|
2722
|
-
return new V3CreateLPPosition().fromJson(jsonValue, options);
|
|
2723
|
-
}
|
|
2724
|
-
static fromJsonString(jsonString, options) {
|
|
2725
|
-
return new V3CreateLPPosition().fromJsonString(jsonString, options);
|
|
2726
|
-
}
|
|
2727
|
-
static equals(a, b) {
|
|
2728
|
-
return proto3.util.equals(V3CreateLPPosition, a, b);
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
V3CreateLPPosition.runtime = proto3;
|
|
2732
|
-
V3CreateLPPosition.typeName = "trading.v1.V3CreateLPPosition";
|
|
2733
|
-
V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2734
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2735
|
-
{ no: 2, name: "position", kind: "message", T: V3Position },
|
|
2736
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2737
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2738
|
-
{ no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2739
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2740
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2741
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2742
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2743
|
-
{ no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2744
|
-
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2745
|
-
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2746
|
-
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2747
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2748
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2749
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2750
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2751
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2752
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
2753
|
-
]);
|
|
2754
|
-
/**
|
|
2755
|
-
* @generated from message trading.v1.V4CreateLPPosition
|
|
2756
|
-
*/
|
|
2757
|
-
export class V4CreateLPPosition extends Message {
|
|
2758
|
-
constructor(data) {
|
|
2759
|
-
super();
|
|
2760
|
-
/**
|
|
2761
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2762
|
-
*/
|
|
2763
|
-
this.protocols = Protocols.V2;
|
|
2764
|
-
/**
|
|
2765
|
-
* @generated from field: string wallet_address = 3;
|
|
2766
|
-
*/
|
|
2767
|
-
this.walletAddress = "";
|
|
2768
|
-
/**
|
|
2769
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2770
|
-
*/
|
|
2771
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2772
|
-
/**
|
|
2773
|
-
* @generated from field: bool simulate_transaction = 19;
|
|
2774
|
-
*/
|
|
2775
|
-
this.simulateTransaction = false;
|
|
2776
|
-
proto3.util.initPartial(data, this);
|
|
2777
|
-
}
|
|
2778
|
-
static fromBinary(bytes, options) {
|
|
2779
|
-
return new V4CreateLPPosition().fromBinary(bytes, options);
|
|
2780
|
-
}
|
|
2781
|
-
static fromJson(jsonValue, options) {
|
|
2782
|
-
return new V4CreateLPPosition().fromJson(jsonValue, options);
|
|
2783
|
-
}
|
|
2784
|
-
static fromJsonString(jsonString, options) {
|
|
2785
|
-
return new V4CreateLPPosition().fromJsonString(jsonString, options);
|
|
2786
|
-
}
|
|
2787
|
-
static equals(a, b) {
|
|
2788
|
-
return proto3.util.equals(V4CreateLPPosition, a, b);
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
V4CreateLPPosition.runtime = proto3;
|
|
2792
|
-
V4CreateLPPosition.typeName = "trading.v1.V4CreateLPPosition";
|
|
2793
|
-
V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2794
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2795
|
-
{ no: 2, name: "position", kind: "message", T: V4Position },
|
|
2796
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2797
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2798
|
-
{ no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2799
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2800
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2801
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2802
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2803
|
-
{ no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2804
|
-
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2805
|
-
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2806
|
-
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2807
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2808
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
2809
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2810
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2811
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2812
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2813
|
-
]);
|
|
2814
|
-
/**
|
|
2815
|
-
* @generated from message trading.v1.V4Position
|
|
2816
|
-
*/
|
|
2817
|
-
export class V4Position extends Message {
|
|
2818
|
-
constructor(data) {
|
|
2819
|
-
super();
|
|
2820
|
-
/**
|
|
2821
|
-
* @generated from field: sint32 tick_lower = 2;
|
|
2822
|
-
*/
|
|
2823
|
-
this.tickLower = 0;
|
|
2824
|
-
/**
|
|
2825
|
-
* @generated from field: sint32 tick_upper = 3;
|
|
2826
|
-
*/
|
|
2827
|
-
this.tickUpper = 0;
|
|
2828
|
-
proto3.util.initPartial(data, this);
|
|
2829
|
-
}
|
|
2830
|
-
static fromBinary(bytes, options) {
|
|
2831
|
-
return new V4Position().fromBinary(bytes, options);
|
|
2832
|
-
}
|
|
2833
|
-
static fromJson(jsonValue, options) {
|
|
2834
|
-
return new V4Position().fromJson(jsonValue, options);
|
|
2835
|
-
}
|
|
2836
|
-
static fromJsonString(jsonString, options) {
|
|
2837
|
-
return new V4Position().fromJsonString(jsonString, options);
|
|
2838
|
-
}
|
|
2839
|
-
static equals(a, b) {
|
|
2840
|
-
return proto3.util.equals(V4Position, a, b);
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
V4Position.runtime = proto3;
|
|
2844
|
-
V4Position.typeName = "trading.v1.V4Position";
|
|
2845
|
-
V4Position.fields = proto3.util.newFieldList(() => [
|
|
2846
|
-
{ no: 1, name: "pool", kind: "message", T: V4Pool },
|
|
2847
|
-
{ no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
2848
|
-
{ no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
2849
|
-
]);
|
|
2850
|
-
/**
|
|
2851
|
-
* @generated from message trading.v1.V3Position
|
|
2852
|
-
*/
|
|
2853
|
-
export class V3Position extends Message {
|
|
2854
|
-
constructor(data) {
|
|
2855
|
-
super();
|
|
2856
|
-
/**
|
|
2857
|
-
* @generated from field: sint32 tick_lower = 2;
|
|
1018
|
+
* @generated from field: sint32 tick_lower = 2;
|
|
2858
1019
|
*/
|
|
2859
1020
|
this.tickLower = 0;
|
|
2860
1021
|
/**
|
|
@@ -3029,118 +1190,41 @@ export class V4Pool extends Message {
|
|
|
3029
1190
|
V4Pool.runtime = proto3;
|
|
3030
1191
|
V4Pool.typeName = "trading.v1.V4Pool";
|
|
3031
1192
|
V4Pool.fields = proto3.util.newFieldList(() => [
|
|
3032
|
-
{ no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3033
|
-
{ no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3034
|
-
{ no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
3035
|
-
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
3036
|
-
{ no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3037
|
-
]);
|
|
3038
|
-
/**
|
|
3039
|
-
* @generated from message trading.v1.TypedDataDomain
|
|
3040
|
-
*/
|
|
3041
|
-
export class TypedDataDomain extends Message {
|
|
3042
|
-
constructor(data) {
|
|
3043
|
-
super();
|
|
3044
|
-
proto3.util.initPartial(data, this);
|
|
3045
|
-
}
|
|
3046
|
-
static fromBinary(bytes, options) {
|
|
3047
|
-
return new TypedDataDomain().fromBinary(bytes, options);
|
|
3048
|
-
}
|
|
3049
|
-
static fromJson(jsonValue, options) {
|
|
3050
|
-
return new TypedDataDomain().fromJson(jsonValue, options);
|
|
3051
|
-
}
|
|
3052
|
-
static fromJsonString(jsonString, options) {
|
|
3053
|
-
return new TypedDataDomain().fromJsonString(jsonString, options);
|
|
3054
|
-
}
|
|
3055
|
-
static equals(a, b) {
|
|
3056
|
-
return proto3.util.equals(TypedDataDomain, a, b);
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3059
|
-
TypedDataDomain.runtime = proto3;
|
|
3060
|
-
TypedDataDomain.typeName = "trading.v1.TypedDataDomain";
|
|
3061
|
-
TypedDataDomain.fields = proto3.util.newFieldList(() => [
|
|
3062
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3063
|
-
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3064
|
-
{ no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
3065
|
-
{ no: 4, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3066
|
-
{ no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3067
|
-
]);
|
|
3068
|
-
/**
|
|
3069
|
-
* @generated from message trading.v1.NFTPermitValues
|
|
3070
|
-
*/
|
|
3071
|
-
export class NFTPermitValues extends Message {
|
|
3072
|
-
constructor(data) {
|
|
3073
|
-
super();
|
|
3074
|
-
/**
|
|
3075
|
-
* @generated from field: string spender = 1;
|
|
3076
|
-
*/
|
|
3077
|
-
this.spender = "";
|
|
3078
|
-
/**
|
|
3079
|
-
* @generated from field: int32 tokenId = 2;
|
|
3080
|
-
*/
|
|
3081
|
-
this.tokenId = 0;
|
|
3082
|
-
/**
|
|
3083
|
-
* @generated from field: string deadline = 3;
|
|
3084
|
-
*/
|
|
3085
|
-
this.deadline = "";
|
|
3086
|
-
/**
|
|
3087
|
-
* @generated from field: string nonce = 4;
|
|
3088
|
-
*/
|
|
3089
|
-
this.nonce = "";
|
|
3090
|
-
proto3.util.initPartial(data, this);
|
|
3091
|
-
}
|
|
3092
|
-
static fromBinary(bytes, options) {
|
|
3093
|
-
return new NFTPermitValues().fromBinary(bytes, options);
|
|
3094
|
-
}
|
|
3095
|
-
static fromJson(jsonValue, options) {
|
|
3096
|
-
return new NFTPermitValues().fromJson(jsonValue, options);
|
|
3097
|
-
}
|
|
3098
|
-
static fromJsonString(jsonString, options) {
|
|
3099
|
-
return new NFTPermitValues().fromJsonString(jsonString, options);
|
|
3100
|
-
}
|
|
3101
|
-
static equals(a, b) {
|
|
3102
|
-
return proto3.util.equals(NFTPermitValues, a, b);
|
|
3103
|
-
}
|
|
3104
|
-
}
|
|
3105
|
-
NFTPermitValues.runtime = proto3;
|
|
3106
|
-
NFTPermitValues.typeName = "trading.v1.NFTPermitValues";
|
|
3107
|
-
NFTPermitValues.fields = proto3.util.newFieldList(() => [
|
|
3108
|
-
{ no: 1, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3109
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
3110
|
-
{ no: 3, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3111
|
-
{ no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1193
|
+
{ no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1194
|
+
{ no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1195
|
+
{ no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1196
|
+
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1197
|
+
{ no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3112
1198
|
]);
|
|
3113
1199
|
/**
|
|
3114
|
-
* @generated from message trading.v1.
|
|
1200
|
+
* @generated from message trading.v1.TypedDataDomain
|
|
3115
1201
|
*/
|
|
3116
|
-
export class
|
|
1202
|
+
export class TypedDataDomain extends Message {
|
|
3117
1203
|
constructor(data) {
|
|
3118
1204
|
super();
|
|
3119
|
-
/**
|
|
3120
|
-
* @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
|
|
3121
|
-
*/
|
|
3122
|
-
this.types = {};
|
|
3123
1205
|
proto3.util.initPartial(data, this);
|
|
3124
1206
|
}
|
|
3125
1207
|
static fromBinary(bytes, options) {
|
|
3126
|
-
return new
|
|
1208
|
+
return new TypedDataDomain().fromBinary(bytes, options);
|
|
3127
1209
|
}
|
|
3128
1210
|
static fromJson(jsonValue, options) {
|
|
3129
|
-
return new
|
|
1211
|
+
return new TypedDataDomain().fromJson(jsonValue, options);
|
|
3130
1212
|
}
|
|
3131
1213
|
static fromJsonString(jsonString, options) {
|
|
3132
|
-
return new
|
|
1214
|
+
return new TypedDataDomain().fromJsonString(jsonString, options);
|
|
3133
1215
|
}
|
|
3134
1216
|
static equals(a, b) {
|
|
3135
|
-
return proto3.util.equals(
|
|
1217
|
+
return proto3.util.equals(TypedDataDomain, a, b);
|
|
3136
1218
|
}
|
|
3137
1219
|
}
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
{ no: 1, name: "
|
|
3142
|
-
{ no: 2, name: "
|
|
3143
|
-
{ no: 3, name: "
|
|
1220
|
+
TypedDataDomain.runtime = proto3;
|
|
1221
|
+
TypedDataDomain.typeName = "trading.v1.TypedDataDomain";
|
|
1222
|
+
TypedDataDomain.fields = proto3.util.newFieldList(() => [
|
|
1223
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1224
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1225
|
+
{ no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1226
|
+
{ no: 4, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1227
|
+
{ no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3144
1228
|
]);
|
|
3145
1229
|
/**
|
|
3146
1230
|
* @generated from message trading.v1.PermitBatchData
|
|
@@ -3228,6 +1312,10 @@ export class SwappableTokensRequest extends Message {
|
|
|
3228
1312
|
* @generated from field: trading.v1.ChainId token_in_chain_id = 2;
|
|
3229
1313
|
*/
|
|
3230
1314
|
this.tokenInChainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1315
|
+
/**
|
|
1316
|
+
* @generated from field: repeated trading.v1.ChainId chain_blocklist = 5;
|
|
1317
|
+
*/
|
|
1318
|
+
this.chainBlocklist = [];
|
|
3231
1319
|
proto3.util.initPartial(data, this);
|
|
3232
1320
|
}
|
|
3233
1321
|
static fromBinary(bytes, options) {
|
|
@@ -3248,6 +1336,9 @@ SwappableTokensRequest.typeName = "trading.v1.SwappableTokensRequest";
|
|
|
3248
1336
|
SwappableTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
3249
1337
|
{ no: 1, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3250
1338
|
{ no: 2, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1339
|
+
{ no: 3, name: "client_version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1340
|
+
{ no: 4, name: "client_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1341
|
+
{ no: 5, name: "chain_blocklist", kind: "enum", T: proto3.getEnumType(ChainId), repeated: true },
|
|
3251
1342
|
]);
|
|
3252
1343
|
/**
|
|
3253
1344
|
* @generated from message trading.v1.SwappableTokensResponse
|
|
@@ -6547,6 +4638,10 @@ export class CheckApprovalResponse extends Message {
|
|
|
6547
4638
|
* @generated from field: string request_id = 1;
|
|
6548
4639
|
*/
|
|
6549
4640
|
this.requestId = "";
|
|
4641
|
+
/**
|
|
4642
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
4643
|
+
*/
|
|
4644
|
+
this.gasEstimates = [];
|
|
6550
4645
|
proto3.util.initPartial(data, this);
|
|
6551
4646
|
}
|
|
6552
4647
|
static fromBinary(bytes, options) {
|
|
@@ -6570,6 +4665,7 @@ CheckApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
|
6570
4665
|
{ no: 3, name: "cancel", kind: "message", T: TransactionRequest },
|
|
6571
4666
|
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6572
4667
|
{ no: 5, name: "cancel_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4668
|
+
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
6573
4669
|
]);
|
|
6574
4670
|
/**
|
|
6575
4671
|
* @generated from message trading.v1.PriorityOrderInfo
|
|
@@ -6706,6 +4802,41 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6706
4802
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6707
4803
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6708
4804
|
]);
|
|
4805
|
+
/**
|
|
4806
|
+
* @generated from message trading.v1.TruncatedPlanStep
|
|
4807
|
+
*/
|
|
4808
|
+
export class TruncatedPlanStep extends Message {
|
|
4809
|
+
constructor(data) {
|
|
4810
|
+
super();
|
|
4811
|
+
/**
|
|
4812
|
+
* @generated from field: trading.v1.PlanStepType step_type = 1;
|
|
4813
|
+
*/
|
|
4814
|
+
this.stepType = PlanStepType.CLASSIC;
|
|
4815
|
+
proto3.util.initPartial(data, this);
|
|
4816
|
+
}
|
|
4817
|
+
static fromBinary(bytes, options) {
|
|
4818
|
+
return new TruncatedPlanStep().fromBinary(bytes, options);
|
|
4819
|
+
}
|
|
4820
|
+
static fromJson(jsonValue, options) {
|
|
4821
|
+
return new TruncatedPlanStep().fromJson(jsonValue, options);
|
|
4822
|
+
}
|
|
4823
|
+
static fromJsonString(jsonString, options) {
|
|
4824
|
+
return new TruncatedPlanStep().fromJsonString(jsonString, options);
|
|
4825
|
+
}
|
|
4826
|
+
static equals(a, b) {
|
|
4827
|
+
return proto3.util.equals(TruncatedPlanStep, a, b);
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
TruncatedPlanStep.runtime = proto3;
|
|
4831
|
+
TruncatedPlanStep.typeName = "trading.v1.TruncatedPlanStep";
|
|
4832
|
+
TruncatedPlanStep.fields = proto3.util.newFieldList(() => [
|
|
4833
|
+
{ no: 1, name: "step_type", kind: "enum", T: proto3.getEnumType(PlanStepType) },
|
|
4834
|
+
{ no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4835
|
+
{ no: 3, name: "token_in_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
4836
|
+
{ no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4837
|
+
{ no: 5, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
4838
|
+
{ no: 6, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
4839
|
+
]);
|
|
6709
4840
|
/**
|
|
6710
4841
|
* @generated from message trading.v1.ChainedQuote
|
|
6711
4842
|
*/
|
|
@@ -6736,6 +4867,14 @@ export class ChainedQuote extends Message {
|
|
|
6736
4867
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
|
|
6737
4868
|
*/
|
|
6738
4869
|
this.gasEstimates = [];
|
|
4870
|
+
/**
|
|
4871
|
+
* @generated from field: repeated trading.v1.Protocols protocols = 14;
|
|
4872
|
+
*/
|
|
4873
|
+
this.protocols = [];
|
|
4874
|
+
/**
|
|
4875
|
+
* @generated from field: repeated trading.v1.TruncatedPlanStep steps = 16;
|
|
4876
|
+
*/
|
|
4877
|
+
this.steps = [];
|
|
6739
4878
|
proto3.util.initPartial(data, this);
|
|
6740
4879
|
}
|
|
6741
4880
|
static fromBinary(bytes, options) {
|
|
@@ -6767,6 +4906,11 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6767
4906
|
{ no: 11, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6768
4907
|
{ no: 12, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6769
4908
|
{ no: 13, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
4909
|
+
{ no: 14, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
|
|
4910
|
+
{ no: 15, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
4911
|
+
{ no: 16, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
|
|
4912
|
+
{ no: 17, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
4913
|
+
{ no: 18, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
|
|
6770
4914
|
]);
|
|
6771
4915
|
/**
|
|
6772
4916
|
* @generated from message trading.v1.PermitTransferFromData
|
|
@@ -7667,9 +5811,9 @@ export class PlanStep extends Message {
|
|
|
7667
5811
|
constructor(data) {
|
|
7668
5812
|
super();
|
|
7669
5813
|
/**
|
|
7670
|
-
* @generated from field: string
|
|
5814
|
+
* @generated from field: string step_index = 1;
|
|
7671
5815
|
*/
|
|
7672
|
-
this.
|
|
5816
|
+
this.stepIndex = "";
|
|
7673
5817
|
/**
|
|
7674
5818
|
* @generated from field: trading.v1.PlanStep.Method method = 2;
|
|
7675
5819
|
*/
|
|
@@ -7688,6 +5832,10 @@ export class PlanStep extends Message {
|
|
|
7688
5832
|
* @generated from field: trading.v1.PlanStep.StepStatus status = 5;
|
|
7689
5833
|
*/
|
|
7690
5834
|
this.status = PlanStep_StepStatus.NOT_READY;
|
|
5835
|
+
/**
|
|
5836
|
+
* @generated from field: trading.v1.PlanStepType step_type = 15;
|
|
5837
|
+
*/
|
|
5838
|
+
this.stepType = PlanStepType.CLASSIC;
|
|
7691
5839
|
proto3.util.initPartial(data, this);
|
|
7692
5840
|
}
|
|
7693
5841
|
static fromBinary(bytes, options) {
|
|
@@ -7706,7 +5854,7 @@ export class PlanStep extends Message {
|
|
|
7706
5854
|
PlanStep.runtime = proto3;
|
|
7707
5855
|
PlanStep.typeName = "trading.v1.PlanStep";
|
|
7708
5856
|
PlanStep.fields = proto3.util.newFieldList(() => [
|
|
7709
|
-
{ no: 1, name: "
|
|
5857
|
+
{ no: 1, name: "step_index", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7710
5858
|
{ no: 2, name: "method", kind: "enum", T: proto3.getEnumType(PlanStep_Method) },
|
|
7711
5859
|
{ no: 3, name: "payload_type", kind: "enum", T: proto3.getEnumType(PlanStep_PayloadType) },
|
|
7712
5860
|
{ no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -7720,7 +5868,7 @@ PlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
7720
5868
|
{ no: 12, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7721
5869
|
{ no: 13, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7722
5870
|
{ no: 14, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7723
|
-
{ no: 15, name: "
|
|
5871
|
+
{ no: 15, name: "step_type", kind: "enum", T: proto3.getEnumType(PlanStepType) },
|
|
7724
5872
|
{ no: 16, name: "gas_use_estimate", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7725
5873
|
{ no: 17, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7726
5874
|
{ no: 18, name: "gas_fee_quote", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -7729,6 +5877,7 @@ PlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
7729
5877
|
{ no: 21, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7730
5878
|
{ no: 22, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7731
5879
|
{ no: 23, name: "routing_step_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5880
|
+
{ no: 24, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
7732
5881
|
]);
|
|
7733
5882
|
/**
|
|
7734
5883
|
* @generated from enum trading.v1.PlanStep.StepStatus
|
|
@@ -7870,11 +6019,47 @@ CreatePlanRequest.typeName = "trading.v1.CreatePlanRequest";
|
|
|
7870
6019
|
CreatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
7871
6020
|
{ no: 1, name: "routing", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
7872
6021
|
{ no: 2, name: "quote", kind: "message", T: ChainedQuote },
|
|
6022
|
+
{ no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
6023
|
+
]);
|
|
6024
|
+
/**
|
|
6025
|
+
* @generated from message trading.v1.GetPlanRequest
|
|
6026
|
+
*/
|
|
6027
|
+
export class GetPlanRequest extends Message {
|
|
6028
|
+
constructor(data) {
|
|
6029
|
+
super();
|
|
6030
|
+
/**
|
|
6031
|
+
* @generated from field: string plan_id = 1;
|
|
6032
|
+
*/
|
|
6033
|
+
this.planId = "";
|
|
6034
|
+
/**
|
|
6035
|
+
* @generated from field: bool force_refresh = 2;
|
|
6036
|
+
*/
|
|
6037
|
+
this.forceRefresh = false;
|
|
6038
|
+
proto3.util.initPartial(data, this);
|
|
6039
|
+
}
|
|
6040
|
+
static fromBinary(bytes, options) {
|
|
6041
|
+
return new GetPlanRequest().fromBinary(bytes, options);
|
|
6042
|
+
}
|
|
6043
|
+
static fromJson(jsonValue, options) {
|
|
6044
|
+
return new GetPlanRequest().fromJson(jsonValue, options);
|
|
6045
|
+
}
|
|
6046
|
+
static fromJsonString(jsonString, options) {
|
|
6047
|
+
return new GetPlanRequest().fromJsonString(jsonString, options);
|
|
6048
|
+
}
|
|
6049
|
+
static equals(a, b) {
|
|
6050
|
+
return proto3.util.equals(GetPlanRequest, a, b);
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
GetPlanRequest.runtime = proto3;
|
|
6054
|
+
GetPlanRequest.typeName = "trading.v1.GetPlanRequest";
|
|
6055
|
+
GetPlanRequest.fields = proto3.util.newFieldList(() => [
|
|
6056
|
+
{ no: 1, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6057
|
+
{ no: 2, name: "force_refresh", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
7873
6058
|
]);
|
|
7874
6059
|
/**
|
|
7875
|
-
* @generated from message trading.v1.
|
|
6060
|
+
* @generated from message trading.v1.PlanResponse
|
|
7876
6061
|
*/
|
|
7877
|
-
export class
|
|
6062
|
+
export class PlanResponse extends Message {
|
|
7878
6063
|
constructor(data) {
|
|
7879
6064
|
super();
|
|
7880
6065
|
/**
|
|
@@ -7898,9 +6083,9 @@ export class CreatePlanResponse extends Message {
|
|
|
7898
6083
|
*/
|
|
7899
6084
|
this.quoteId = "";
|
|
7900
6085
|
/**
|
|
7901
|
-
* @generated from field: trading.v1.
|
|
6086
|
+
* @generated from field: trading.v1.PlanResponse.PlanStatus status = 6;
|
|
7902
6087
|
*/
|
|
7903
|
-
this.status =
|
|
6088
|
+
this.status = PlanResponse_PlanStatus.ACTIVE;
|
|
7904
6089
|
/**
|
|
7905
6090
|
* @generated from field: repeated trading.v1.PlanStep steps = 7;
|
|
7906
6091
|
*/
|
|
@@ -7917,65 +6102,83 @@ export class CreatePlanResponse extends Message {
|
|
|
7917
6102
|
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
7918
6103
|
*/
|
|
7919
6104
|
this.gasStrategies = [];
|
|
6105
|
+
/**
|
|
6106
|
+
* @generated from field: repeated trading.v1.Protocols protocols = 13;
|
|
6107
|
+
*/
|
|
6108
|
+
this.protocols = [];
|
|
7920
6109
|
proto3.util.initPartial(data, this);
|
|
7921
6110
|
}
|
|
7922
6111
|
static fromBinary(bytes, options) {
|
|
7923
|
-
return new
|
|
6112
|
+
return new PlanResponse().fromBinary(bytes, options);
|
|
7924
6113
|
}
|
|
7925
6114
|
static fromJson(jsonValue, options) {
|
|
7926
|
-
return new
|
|
6115
|
+
return new PlanResponse().fromJson(jsonValue, options);
|
|
7927
6116
|
}
|
|
7928
6117
|
static fromJsonString(jsonString, options) {
|
|
7929
|
-
return new
|
|
6118
|
+
return new PlanResponse().fromJsonString(jsonString, options);
|
|
7930
6119
|
}
|
|
7931
6120
|
static equals(a, b) {
|
|
7932
|
-
return proto3.util.equals(
|
|
6121
|
+
return proto3.util.equals(PlanResponse, a, b);
|
|
7933
6122
|
}
|
|
7934
6123
|
}
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
6124
|
+
PlanResponse.runtime = proto3;
|
|
6125
|
+
PlanResponse.typeName = "trading.v1.PlanResponse";
|
|
6126
|
+
PlanResponse.fields = proto3.util.newFieldList(() => [
|
|
7938
6127
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7939
6128
|
{ no: 2, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7940
6129
|
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7941
6130
|
{ no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7942
6131
|
{ no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7943
|
-
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(
|
|
6132
|
+
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(PlanResponse_PlanStatus) },
|
|
7944
6133
|
{ no: 7, name: "steps", kind: "message", T: PlanStep, repeated: true },
|
|
7945
6134
|
{ no: 8, name: "current_step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
7946
6135
|
{ no: 9, name: "expected_output", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
7947
6136
|
{ no: 10, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7948
6137
|
{ no: 11, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
7949
6138
|
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
6139
|
+
{ no: 13, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
|
|
6140
|
+
{ no: 14, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
6141
|
+
{ no: 15, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6142
|
+
{ no: 17, name: "updated_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6143
|
+
{ no: 18, name: "completed_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6144
|
+
{ no: 16, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
6145
|
+
{ no: 19, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6146
|
+
{ no: 20, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
|
|
6147
|
+
{ no: 21, name: "last_user_action_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7950
6148
|
]);
|
|
7951
6149
|
/**
|
|
7952
|
-
* @generated from enum trading.v1.
|
|
6150
|
+
* @generated from enum trading.v1.PlanResponse.PlanStatus
|
|
7953
6151
|
*/
|
|
7954
|
-
export var
|
|
7955
|
-
(function (
|
|
6152
|
+
export var PlanResponse_PlanStatus;
|
|
6153
|
+
(function (PlanResponse_PlanStatus) {
|
|
7956
6154
|
/**
|
|
7957
6155
|
* @generated from enum value: ACTIVE = 0;
|
|
7958
6156
|
*/
|
|
7959
|
-
|
|
6157
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
7960
6158
|
/**
|
|
7961
6159
|
* @generated from enum value: IN_PROGRESS = 1;
|
|
7962
6160
|
*/
|
|
7963
|
-
|
|
6161
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
7964
6162
|
/**
|
|
7965
6163
|
* @generated from enum value: COMPLETED = 2;
|
|
7966
6164
|
*/
|
|
7967
|
-
|
|
6165
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
7968
6166
|
/**
|
|
7969
6167
|
* @generated from enum value: FAILED = 3;
|
|
7970
6168
|
*/
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
6169
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["FAILED"] = 3] = "FAILED";
|
|
6170
|
+
/**
|
|
6171
|
+
* @generated from enum value: AWAITING_ACTION = 4;
|
|
6172
|
+
*/
|
|
6173
|
+
PlanResponse_PlanStatus[PlanResponse_PlanStatus["AWAITING_ACTION"] = 4] = "AWAITING_ACTION";
|
|
6174
|
+
})(PlanResponse_PlanStatus || (PlanResponse_PlanStatus = {}));
|
|
6175
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanResponse_PlanStatus)
|
|
6176
|
+
proto3.util.setEnumType(PlanResponse_PlanStatus, "trading.v1.PlanResponse.PlanStatus", [
|
|
7975
6177
|
{ no: 0, name: "ACTIVE" },
|
|
7976
6178
|
{ no: 1, name: "IN_PROGRESS" },
|
|
7977
6179
|
{ no: 2, name: "COMPLETED" },
|
|
7978
6180
|
{ no: 3, name: "FAILED" },
|
|
6181
|
+
{ no: 4, name: "AWAITING_ACTION" },
|
|
7979
6182
|
]);
|
|
7980
6183
|
/**
|
|
7981
6184
|
* @generated from message trading.v1.DocsRequest
|
|
@@ -8044,3 +6247,295 @@ DocsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
8044
6247
|
{ no: 5, name: "components", kind: "message", T: Struct },
|
|
8045
6248
|
{ no: 6, name: "security", kind: "message", T: Struct, repeated: true },
|
|
8046
6249
|
]);
|
|
6250
|
+
/**
|
|
6251
|
+
* @generated from message trading.v1.UpdatePlanRequest
|
|
6252
|
+
*/
|
|
6253
|
+
export class UpdatePlanRequest extends Message {
|
|
6254
|
+
constructor(data) {
|
|
6255
|
+
super();
|
|
6256
|
+
/**
|
|
6257
|
+
* @generated from field: string plan_id = 1;
|
|
6258
|
+
*/
|
|
6259
|
+
this.planId = "";
|
|
6260
|
+
/**
|
|
6261
|
+
* @generated from field: repeated trading.v1.PlanStepUpdate steps = 2;
|
|
6262
|
+
*/
|
|
6263
|
+
this.steps = [];
|
|
6264
|
+
proto3.util.initPartial(data, this);
|
|
6265
|
+
}
|
|
6266
|
+
static fromBinary(bytes, options) {
|
|
6267
|
+
return new UpdatePlanRequest().fromBinary(bytes, options);
|
|
6268
|
+
}
|
|
6269
|
+
static fromJson(jsonValue, options) {
|
|
6270
|
+
return new UpdatePlanRequest().fromJson(jsonValue, options);
|
|
6271
|
+
}
|
|
6272
|
+
static fromJsonString(jsonString, options) {
|
|
6273
|
+
return new UpdatePlanRequest().fromJsonString(jsonString, options);
|
|
6274
|
+
}
|
|
6275
|
+
static equals(a, b) {
|
|
6276
|
+
return proto3.util.equals(UpdatePlanRequest, a, b);
|
|
6277
|
+
}
|
|
6278
|
+
}
|
|
6279
|
+
UpdatePlanRequest.runtime = proto3;
|
|
6280
|
+
UpdatePlanRequest.typeName = "trading.v1.UpdatePlanRequest";
|
|
6281
|
+
UpdatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
6282
|
+
{ no: 1, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6283
|
+
{ no: 2, name: "steps", kind: "message", T: PlanStepUpdate, repeated: true },
|
|
6284
|
+
]);
|
|
6285
|
+
/**
|
|
6286
|
+
* @generated from message trading.v1.PlanStepUpdate
|
|
6287
|
+
*/
|
|
6288
|
+
export class PlanStepUpdate extends Message {
|
|
6289
|
+
constructor(data) {
|
|
6290
|
+
super();
|
|
6291
|
+
/**
|
|
6292
|
+
* @generated from field: int32 step_index = 1;
|
|
6293
|
+
*/
|
|
6294
|
+
this.stepIndex = 0;
|
|
6295
|
+
proto3.util.initPartial(data, this);
|
|
6296
|
+
}
|
|
6297
|
+
static fromBinary(bytes, options) {
|
|
6298
|
+
return new PlanStepUpdate().fromBinary(bytes, options);
|
|
6299
|
+
}
|
|
6300
|
+
static fromJson(jsonValue, options) {
|
|
6301
|
+
return new PlanStepUpdate().fromJson(jsonValue, options);
|
|
6302
|
+
}
|
|
6303
|
+
static fromJsonString(jsonString, options) {
|
|
6304
|
+
return new PlanStepUpdate().fromJsonString(jsonString, options);
|
|
6305
|
+
}
|
|
6306
|
+
static equals(a, b) {
|
|
6307
|
+
return proto3.util.equals(PlanStepUpdate, a, b);
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
6310
|
+
PlanStepUpdate.runtime = proto3;
|
|
6311
|
+
PlanStepUpdate.typeName = "trading.v1.PlanStepUpdate";
|
|
6312
|
+
PlanStepUpdate.fields = proto3.util.newFieldList(() => [
|
|
6313
|
+
{ no: 1, name: "step_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
6314
|
+
{ no: 2, name: "proof", kind: "message", T: PlanStep_StepProof },
|
|
6315
|
+
]);
|
|
6316
|
+
/**
|
|
6317
|
+
* @generated from message trading.v1.GetPlansRequest
|
|
6318
|
+
*/
|
|
6319
|
+
export class GetPlansRequest extends Message {
|
|
6320
|
+
constructor(data) {
|
|
6321
|
+
super();
|
|
6322
|
+
/**
|
|
6323
|
+
* @generated from field: string swapper = 1;
|
|
6324
|
+
*/
|
|
6325
|
+
this.swapper = "";
|
|
6326
|
+
proto3.util.initPartial(data, this);
|
|
6327
|
+
}
|
|
6328
|
+
static fromBinary(bytes, options) {
|
|
6329
|
+
return new GetPlansRequest().fromBinary(bytes, options);
|
|
6330
|
+
}
|
|
6331
|
+
static fromJson(jsonValue, options) {
|
|
6332
|
+
return new GetPlansRequest().fromJson(jsonValue, options);
|
|
6333
|
+
}
|
|
6334
|
+
static fromJsonString(jsonString, options) {
|
|
6335
|
+
return new GetPlansRequest().fromJsonString(jsonString, options);
|
|
6336
|
+
}
|
|
6337
|
+
static equals(a, b) {
|
|
6338
|
+
return proto3.util.equals(GetPlansRequest, a, b);
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
GetPlansRequest.runtime = proto3;
|
|
6342
|
+
GetPlansRequest.typeName = "trading.v1.GetPlansRequest";
|
|
6343
|
+
GetPlansRequest.fields = proto3.util.newFieldList(() => [
|
|
6344
|
+
{ no: 1, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6345
|
+
{ no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6346
|
+
{ no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6347
|
+
{ no: 4, name: "min_timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6348
|
+
{ no: 5, name: "max_timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6349
|
+
]);
|
|
6350
|
+
/**
|
|
6351
|
+
* @generated from message trading.v1.GetPlansResponse
|
|
6352
|
+
*/
|
|
6353
|
+
export class GetPlansResponse extends Message {
|
|
6354
|
+
constructor(data) {
|
|
6355
|
+
super();
|
|
6356
|
+
/**
|
|
6357
|
+
* @generated from field: string request_id = 1;
|
|
6358
|
+
*/
|
|
6359
|
+
this.requestId = "";
|
|
6360
|
+
/**
|
|
6361
|
+
* @generated from field: repeated trading.v1.PlanResponse plans = 2;
|
|
6362
|
+
*/
|
|
6363
|
+
this.plans = [];
|
|
6364
|
+
proto3.util.initPartial(data, this);
|
|
6365
|
+
}
|
|
6366
|
+
static fromBinary(bytes, options) {
|
|
6367
|
+
return new GetPlansResponse().fromBinary(bytes, options);
|
|
6368
|
+
}
|
|
6369
|
+
static fromJson(jsonValue, options) {
|
|
6370
|
+
return new GetPlansResponse().fromJson(jsonValue, options);
|
|
6371
|
+
}
|
|
6372
|
+
static fromJsonString(jsonString, options) {
|
|
6373
|
+
return new GetPlansResponse().fromJsonString(jsonString, options);
|
|
6374
|
+
}
|
|
6375
|
+
static equals(a, b) {
|
|
6376
|
+
return proto3.util.equals(GetPlansResponse, a, b);
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6379
|
+
GetPlansResponse.runtime = proto3;
|
|
6380
|
+
GetPlansResponse.typeName = "trading.v1.GetPlansResponse";
|
|
6381
|
+
GetPlansResponse.fields = proto3.util.newFieldList(() => [
|
|
6382
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6383
|
+
{ no: 2, name: "plans", kind: "message", T: PlanResponse, repeated: true },
|
|
6384
|
+
{ no: 3, name: "next_cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6385
|
+
]);
|
|
6386
|
+
/**
|
|
6387
|
+
* WalletExecutionContext based on CAIP-25 Standard
|
|
6388
|
+
*
|
|
6389
|
+
* @generated from message trading.v1.WalletExecutionContext
|
|
6390
|
+
*/
|
|
6391
|
+
export class WalletExecutionContext extends Message {
|
|
6392
|
+
constructor(data) {
|
|
6393
|
+
super();
|
|
6394
|
+
/**
|
|
6395
|
+
* @generated from field: map<string, trading.v1.ScopeData> scopes = 1;
|
|
6396
|
+
*/
|
|
6397
|
+
this.scopes = {};
|
|
6398
|
+
proto3.util.initPartial(data, this);
|
|
6399
|
+
}
|
|
6400
|
+
static fromBinary(bytes, options) {
|
|
6401
|
+
return new WalletExecutionContext().fromBinary(bytes, options);
|
|
6402
|
+
}
|
|
6403
|
+
static fromJson(jsonValue, options) {
|
|
6404
|
+
return new WalletExecutionContext().fromJson(jsonValue, options);
|
|
6405
|
+
}
|
|
6406
|
+
static fromJsonString(jsonString, options) {
|
|
6407
|
+
return new WalletExecutionContext().fromJsonString(jsonString, options);
|
|
6408
|
+
}
|
|
6409
|
+
static equals(a, b) {
|
|
6410
|
+
return proto3.util.equals(WalletExecutionContext, a, b);
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
WalletExecutionContext.runtime = proto3;
|
|
6414
|
+
WalletExecutionContext.typeName = "trading.v1.WalletExecutionContext";
|
|
6415
|
+
WalletExecutionContext.fields = proto3.util.newFieldList(() => [
|
|
6416
|
+
{ no: 1, name: "scopes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: ScopeData } },
|
|
6417
|
+
{ no: 2, name: "properties", kind: "message", T: WalletProperties, opt: true },
|
|
6418
|
+
]);
|
|
6419
|
+
/**
|
|
6420
|
+
* @generated from message trading.v1.ScopeData
|
|
6421
|
+
*/
|
|
6422
|
+
export class ScopeData extends Message {
|
|
6423
|
+
constructor(data) {
|
|
6424
|
+
super();
|
|
6425
|
+
/**
|
|
6426
|
+
* @generated from field: repeated string accounts = 1;
|
|
6427
|
+
*/
|
|
6428
|
+
this.accounts = [];
|
|
6429
|
+
/**
|
|
6430
|
+
* @generated from field: repeated string methods = 2;
|
|
6431
|
+
*/
|
|
6432
|
+
this.methods = [];
|
|
6433
|
+
/**
|
|
6434
|
+
* @generated from field: repeated string chains = 4;
|
|
6435
|
+
*/
|
|
6436
|
+
this.chains = [];
|
|
6437
|
+
proto3.util.initPartial(data, this);
|
|
6438
|
+
}
|
|
6439
|
+
static fromBinary(bytes, options) {
|
|
6440
|
+
return new ScopeData().fromBinary(bytes, options);
|
|
6441
|
+
}
|
|
6442
|
+
static fromJson(jsonValue, options) {
|
|
6443
|
+
return new ScopeData().fromJson(jsonValue, options);
|
|
6444
|
+
}
|
|
6445
|
+
static fromJsonString(jsonString, options) {
|
|
6446
|
+
return new ScopeData().fromJsonString(jsonString, options);
|
|
6447
|
+
}
|
|
6448
|
+
static equals(a, b) {
|
|
6449
|
+
return proto3.util.equals(ScopeData, a, b);
|
|
6450
|
+
}
|
|
6451
|
+
}
|
|
6452
|
+
ScopeData.runtime = proto3;
|
|
6453
|
+
ScopeData.typeName = "trading.v1.ScopeData";
|
|
6454
|
+
ScopeData.fields = proto3.util.newFieldList(() => [
|
|
6455
|
+
{ no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
6456
|
+
{ no: 2, name: "methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
6457
|
+
{ no: 3, name: "capabilities", kind: "message", T: Struct, opt: true },
|
|
6458
|
+
{ no: 4, name: "chains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
6459
|
+
{ no: 5, name: "client_context", kind: "message", T: ClientContext, opt: true },
|
|
6460
|
+
]);
|
|
6461
|
+
/**
|
|
6462
|
+
* @generated from message trading.v1.ClientContext
|
|
6463
|
+
*/
|
|
6464
|
+
export class ClientContext extends Message {
|
|
6465
|
+
constructor(data) {
|
|
6466
|
+
super();
|
|
6467
|
+
proto3.util.initPartial(data, this);
|
|
6468
|
+
}
|
|
6469
|
+
static fromBinary(bytes, options) {
|
|
6470
|
+
return new ClientContext().fromBinary(bytes, options);
|
|
6471
|
+
}
|
|
6472
|
+
static fromJson(jsonValue, options) {
|
|
6473
|
+
return new ClientContext().fromJson(jsonValue, options);
|
|
6474
|
+
}
|
|
6475
|
+
static fromJsonString(jsonString, options) {
|
|
6476
|
+
return new ClientContext().fromJsonString(jsonString, options);
|
|
6477
|
+
}
|
|
6478
|
+
static equals(a, b) {
|
|
6479
|
+
return proto3.util.equals(ClientContext, a, b);
|
|
6480
|
+
}
|
|
6481
|
+
}
|
|
6482
|
+
ClientContext.runtime = proto3;
|
|
6483
|
+
ClientContext.typeName = "trading.v1.ClientContext";
|
|
6484
|
+
ClientContext.fields = proto3.util.newFieldList(() => [
|
|
6485
|
+
{ no: 1, name: "direct_private_key_access", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6486
|
+
{ no: 2, name: "next_evm_upgrade_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6487
|
+
]);
|
|
6488
|
+
/**
|
|
6489
|
+
* @generated from message trading.v1.WalletProperties
|
|
6490
|
+
*/
|
|
6491
|
+
export class WalletProperties extends Message {
|
|
6492
|
+
constructor(data) {
|
|
6493
|
+
super();
|
|
6494
|
+
proto3.util.initPartial(data, this);
|
|
6495
|
+
}
|
|
6496
|
+
static fromBinary(bytes, options) {
|
|
6497
|
+
return new WalletProperties().fromBinary(bytes, options);
|
|
6498
|
+
}
|
|
6499
|
+
static fromJson(jsonValue, options) {
|
|
6500
|
+
return new WalletProperties().fromJson(jsonValue, options);
|
|
6501
|
+
}
|
|
6502
|
+
static fromJsonString(jsonString, options) {
|
|
6503
|
+
return new WalletProperties().fromJsonString(jsonString, options);
|
|
6504
|
+
}
|
|
6505
|
+
static equals(a, b) {
|
|
6506
|
+
return proto3.util.equals(WalletProperties, a, b);
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
WalletProperties.runtime = proto3;
|
|
6510
|
+
WalletProperties.typeName = "trading.v1.WalletProperties";
|
|
6511
|
+
WalletProperties.fields = proto3.util.newFieldList(() => [
|
|
6512
|
+
{ no: 1, name: "wallet_info", kind: "message", T: WalletInfo, opt: true },
|
|
6513
|
+
]);
|
|
6514
|
+
/**
|
|
6515
|
+
* @generated from message trading.v1.WalletInfo
|
|
6516
|
+
*/
|
|
6517
|
+
export class WalletInfo extends Message {
|
|
6518
|
+
constructor(data) {
|
|
6519
|
+
super();
|
|
6520
|
+
proto3.util.initPartial(data, this);
|
|
6521
|
+
}
|
|
6522
|
+
static fromBinary(bytes, options) {
|
|
6523
|
+
return new WalletInfo().fromBinary(bytes, options);
|
|
6524
|
+
}
|
|
6525
|
+
static fromJson(jsonValue, options) {
|
|
6526
|
+
return new WalletInfo().fromJson(jsonValue, options);
|
|
6527
|
+
}
|
|
6528
|
+
static fromJsonString(jsonString, options) {
|
|
6529
|
+
return new WalletInfo().fromJsonString(jsonString, options);
|
|
6530
|
+
}
|
|
6531
|
+
static equals(a, b) {
|
|
6532
|
+
return proto3.util.equals(WalletInfo, a, b);
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6535
|
+
WalletInfo.runtime = proto3;
|
|
6536
|
+
WalletInfo.typeName = "trading.v1.WalletInfo";
|
|
6537
|
+
WalletInfo.fields = proto3.util.newFieldList(() => [
|
|
6538
|
+
{ no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6539
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6540
|
+
{ no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6541
|
+
]);
|