@uniswap/client-trading 0.1.3 → 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 +1 -113
- package/dist/trading/v1/api-tradingService_connectquery.js +1 -113
- package/dist/trading/v1/api_connect.d.ts +1 -81
- package/dist/trading/v1/api_connect.js +1 -81
- package/dist/trading/v1/api_pb.d.ts +226 -2050
- package/dist/trading/v1/api_pb.js +162 -1985
- package/package.json +1 -1
|
@@ -3,49 +3,6 @@
|
|
|
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.IndependentToken
|
|
32
|
-
*/
|
|
33
|
-
export var IndependentToken;
|
|
34
|
-
(function (IndependentToken) {
|
|
35
|
-
/**
|
|
36
|
-
* @generated from enum value: TOKEN_0 = 0;
|
|
37
|
-
*/
|
|
38
|
-
IndependentToken[IndependentToken["TOKEN_0"] = 0] = "TOKEN_0";
|
|
39
|
-
/**
|
|
40
|
-
* @generated from enum value: TOKEN_1 = 1;
|
|
41
|
-
*/
|
|
42
|
-
IndependentToken[IndependentToken["TOKEN_1"] = 1] = "TOKEN_1";
|
|
43
|
-
})(IndependentToken || (IndependentToken = {}));
|
|
44
|
-
// Retrieve enum metadata with: proto3.getEnumType(IndependentToken)
|
|
45
|
-
proto3.util.setEnumType(IndependentToken, "trading.v1.IndependentToken", [
|
|
46
|
-
{ no: 0, name: "TOKEN_0" },
|
|
47
|
-
{ no: 1, name: "TOKEN_1" },
|
|
48
|
-
]);
|
|
49
6
|
/**
|
|
50
7
|
* @generated from enum trading.v1.SafetyLevel
|
|
51
8
|
*/
|
|
@@ -734,2003 +691,286 @@ export var OrderType;
|
|
|
734
691
|
/**
|
|
735
692
|
* Also used for DUTCH
|
|
736
693
|
*
|
|
737
|
-
* @generated from enum value: OrderType_DUTCH_LIMIT = 1;
|
|
738
|
-
*/
|
|
739
|
-
OrderType[OrderType["OrderType_DUTCH_LIMIT"] = 1] = "OrderType_DUTCH_LIMIT";
|
|
740
|
-
/**
|
|
741
|
-
* @generated from enum value: OrderType_DUTCH_V2 = 2;
|
|
742
|
-
*/
|
|
743
|
-
OrderType[OrderType["OrderType_DUTCH_V2"] = 2] = "OrderType_DUTCH_V2";
|
|
744
|
-
/**
|
|
745
|
-
* @generated from enum value: OrderType_PRIORITY = 3;
|
|
746
|
-
*/
|
|
747
|
-
OrderType[OrderType["OrderType_PRIORITY"] = 3] = "OrderType_PRIORITY";
|
|
748
|
-
/**
|
|
749
|
-
* @generated from enum value: OrderType_DUTCH_V3 = 4;
|
|
750
|
-
*/
|
|
751
|
-
OrderType[OrderType["OrderType_DUTCH_V3"] = 4] = "OrderType_DUTCH_V3";
|
|
752
|
-
})(OrderType || (OrderType = {}));
|
|
753
|
-
// Retrieve enum metadata with: proto3.getEnumType(OrderType)
|
|
754
|
-
proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
|
|
755
|
-
{ no: 0, name: "ORDER_TYPE_UNSPECIFIED" },
|
|
756
|
-
{ no: 1, name: "OrderType_DUTCH_LIMIT" },
|
|
757
|
-
{ no: 2, name: "OrderType_DUTCH_V2" },
|
|
758
|
-
{ no: 3, name: "OrderType_PRIORITY" },
|
|
759
|
-
{ no: 4, name: "OrderType_DUTCH_V3" },
|
|
760
|
-
]);
|
|
761
|
-
/**
|
|
762
|
-
* @generated from message trading.v1.GetLPPriceDiscrepancyRequest
|
|
763
|
-
*/
|
|
764
|
-
export class GetLPPriceDiscrepancyRequest extends Message {
|
|
765
|
-
constructor(data) {
|
|
766
|
-
super();
|
|
767
|
-
/**
|
|
768
|
-
* @generated from field: string txn_hash = 1;
|
|
769
|
-
*/
|
|
770
|
-
this.txnHash = "";
|
|
771
|
-
/**
|
|
772
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
773
|
-
*/
|
|
774
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
775
|
-
/**
|
|
776
|
-
* @generated from field: string token0 = 3;
|
|
777
|
-
*/
|
|
778
|
-
this.token0 = "";
|
|
779
|
-
/**
|
|
780
|
-
* @generated from field: string token1 = 4;
|
|
781
|
-
*/
|
|
782
|
-
this.token1 = "";
|
|
783
|
-
/**
|
|
784
|
-
* @generated from field: string sqrt_ratio_x96 = 8;
|
|
785
|
-
*/
|
|
786
|
-
this.sqrtRatioX96 = "";
|
|
787
|
-
/**
|
|
788
|
-
* @generated from field: trading.v1.Protocols protocol = 9;
|
|
789
|
-
*/
|
|
790
|
-
this.protocol = Protocols.V2;
|
|
791
|
-
proto3.util.initPartial(data, this);
|
|
792
|
-
}
|
|
793
|
-
static fromBinary(bytes, options) {
|
|
794
|
-
return new GetLPPriceDiscrepancyRequest().fromBinary(bytes, options);
|
|
795
|
-
}
|
|
796
|
-
static fromJson(jsonValue, options) {
|
|
797
|
-
return new GetLPPriceDiscrepancyRequest().fromJson(jsonValue, options);
|
|
798
|
-
}
|
|
799
|
-
static fromJsonString(jsonString, options) {
|
|
800
|
-
return new GetLPPriceDiscrepancyRequest().fromJsonString(jsonString, options);
|
|
801
|
-
}
|
|
802
|
-
static equals(a, b) {
|
|
803
|
-
return proto3.util.equals(GetLPPriceDiscrepancyRequest, a, b);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
GetLPPriceDiscrepancyRequest.runtime = proto3;
|
|
807
|
-
GetLPPriceDiscrepancyRequest.typeName = "trading.v1.GetLPPriceDiscrepancyRequest";
|
|
808
|
-
GetLPPriceDiscrepancyRequest.fields = proto3.util.newFieldList(() => [
|
|
809
|
-
{ no: 1, name: "txn_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
810
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
811
|
-
{ no: 3, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
812
|
-
{ no: 4, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
813
|
-
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
814
|
-
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
815
|
-
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
816
|
-
{ no: 8, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
817
|
-
{ no: 9, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
818
|
-
]);
|
|
819
|
-
/**
|
|
820
|
-
* @generated from message trading.v1.GetLPPriceDiscrepancyResponse
|
|
821
|
-
*/
|
|
822
|
-
export class GetLPPriceDiscrepancyResponse extends Message {
|
|
823
|
-
constructor(data) {
|
|
824
|
-
super();
|
|
825
|
-
/**
|
|
826
|
-
* @generated from field: string request_id = 1;
|
|
827
|
-
*/
|
|
828
|
-
this.requestId = "";
|
|
829
|
-
/**
|
|
830
|
-
* @generated from field: string percent_price_difference = 2;
|
|
831
|
-
*/
|
|
832
|
-
this.percentPriceDifference = "";
|
|
833
|
-
/**
|
|
834
|
-
* @generated from field: trading.v1.OnChainStatus status = 3;
|
|
835
|
-
*/
|
|
836
|
-
this.status = OnChainStatus.UNKNOWN;
|
|
837
|
-
/**
|
|
838
|
-
* @generated from field: string sqrt_ratio_x96_before = 4;
|
|
839
|
-
*/
|
|
840
|
-
this.sqrtRatioX96Before = "";
|
|
841
|
-
/**
|
|
842
|
-
* @generated from field: string sqrt_ratio_x96_after = 5;
|
|
843
|
-
*/
|
|
844
|
-
this.sqrtRatioX96After = "";
|
|
845
|
-
/**
|
|
846
|
-
* @generated from field: trading.v1.ChainId chain_id = 6;
|
|
847
|
-
*/
|
|
848
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
849
|
-
/**
|
|
850
|
-
* @generated from field: trading.v1.Protocols protocol = 7;
|
|
851
|
-
*/
|
|
852
|
-
this.protocol = Protocols.V2;
|
|
853
|
-
proto3.util.initPartial(data, this);
|
|
854
|
-
}
|
|
855
|
-
static fromBinary(bytes, options) {
|
|
856
|
-
return new GetLPPriceDiscrepancyResponse().fromBinary(bytes, options);
|
|
857
|
-
}
|
|
858
|
-
static fromJson(jsonValue, options) {
|
|
859
|
-
return new GetLPPriceDiscrepancyResponse().fromJson(jsonValue, options);
|
|
860
|
-
}
|
|
861
|
-
static fromJsonString(jsonString, options) {
|
|
862
|
-
return new GetLPPriceDiscrepancyResponse().fromJsonString(jsonString, options);
|
|
863
|
-
}
|
|
864
|
-
static equals(a, b) {
|
|
865
|
-
return proto3.util.equals(GetLPPriceDiscrepancyResponse, a, b);
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
GetLPPriceDiscrepancyResponse.runtime = proto3;
|
|
869
|
-
GetLPPriceDiscrepancyResponse.typeName = "trading.v1.GetLPPriceDiscrepancyResponse";
|
|
870
|
-
GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
|
|
871
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
872
|
-
{ no: 2, name: "percent_price_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
|
-
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(OnChainStatus) },
|
|
874
|
-
{ no: 4, name: "sqrt_ratio_x96_before", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
875
|
-
{ no: 5, name: "sqrt_ratio_x96_after", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
876
|
-
{ no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
877
|
-
{ no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
878
|
-
]);
|
|
879
|
-
/**
|
|
880
|
-
* @generated from message trading.v1.Encode7702Request
|
|
881
|
-
*/
|
|
882
|
-
export class Encode7702Request extends Message {
|
|
883
|
-
constructor(data) {
|
|
884
|
-
super();
|
|
885
|
-
/**
|
|
886
|
-
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
887
|
-
*/
|
|
888
|
-
this.calls = [];
|
|
889
|
-
/**
|
|
890
|
-
* @generated from field: string wallet_address = 2;
|
|
891
|
-
*/
|
|
892
|
-
this.walletAddress = "";
|
|
893
|
-
/**
|
|
894
|
-
* @generated from field: string smart_contract_delegation_address = 3;
|
|
895
|
-
*/
|
|
896
|
-
this.smartContractDelegationAddress = "";
|
|
897
|
-
proto3.util.initPartial(data, this);
|
|
898
|
-
}
|
|
899
|
-
static fromBinary(bytes, options) {
|
|
900
|
-
return new Encode7702Request().fromBinary(bytes, options);
|
|
901
|
-
}
|
|
902
|
-
static fromJson(jsonValue, options) {
|
|
903
|
-
return new Encode7702Request().fromJson(jsonValue, options);
|
|
904
|
-
}
|
|
905
|
-
static fromJsonString(jsonString, options) {
|
|
906
|
-
return new Encode7702Request().fromJsonString(jsonString, options);
|
|
907
|
-
}
|
|
908
|
-
static equals(a, b) {
|
|
909
|
-
return proto3.util.equals(Encode7702Request, a, b);
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
Encode7702Request.runtime = proto3;
|
|
913
|
-
Encode7702Request.typeName = "trading.v1.Encode7702Request";
|
|
914
|
-
Encode7702Request.fields = proto3.util.newFieldList(() => [
|
|
915
|
-
{ no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
|
|
916
|
-
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
917
|
-
{ no: 3, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
918
|
-
]);
|
|
919
|
-
/**
|
|
920
|
-
* @generated from message trading.v1.Encode7702Response
|
|
921
|
-
*/
|
|
922
|
-
export class Encode7702Response extends Message {
|
|
923
|
-
constructor(data) {
|
|
924
|
-
super();
|
|
925
|
-
/**
|
|
926
|
-
* @generated from field: string request_id = 1;
|
|
927
|
-
*/
|
|
928
|
-
this.requestId = "";
|
|
929
|
-
proto3.util.initPartial(data, this);
|
|
930
|
-
}
|
|
931
|
-
static fromBinary(bytes, options) {
|
|
932
|
-
return new Encode7702Response().fromBinary(bytes, options);
|
|
933
|
-
}
|
|
934
|
-
static fromJson(jsonValue, options) {
|
|
935
|
-
return new Encode7702Response().fromJson(jsonValue, options);
|
|
936
|
-
}
|
|
937
|
-
static fromJsonString(jsonString, options) {
|
|
938
|
-
return new Encode7702Response().fromJsonString(jsonString, options);
|
|
939
|
-
}
|
|
940
|
-
static equals(a, b) {
|
|
941
|
-
return proto3.util.equals(Encode7702Response, a, b);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
Encode7702Response.runtime = proto3;
|
|
945
|
-
Encode7702Response.typeName = "trading.v1.Encode7702Response";
|
|
946
|
-
Encode7702Response.fields = proto3.util.newFieldList(() => [
|
|
947
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
948
|
-
{ no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
|
|
949
|
-
]);
|
|
950
|
-
/**
|
|
951
|
-
* @generated from message trading.v1.Swap5792Request
|
|
952
|
-
*/
|
|
953
|
-
export class Swap5792Request extends Message {
|
|
954
|
-
constructor(data) {
|
|
955
|
-
super();
|
|
956
|
-
/**
|
|
957
|
-
* @generated from oneof trading.v1.Swap5792Request.quote
|
|
958
|
-
*/
|
|
959
|
-
this.quote = { case: undefined };
|
|
960
|
-
/**
|
|
961
|
-
* @generated from field: int64 deadline = 5;
|
|
962
|
-
*/
|
|
963
|
-
this.deadline = protoInt64.zero;
|
|
964
|
-
proto3.util.initPartial(data, this);
|
|
965
|
-
}
|
|
966
|
-
static fromBinary(bytes, options) {
|
|
967
|
-
return new Swap5792Request().fromBinary(bytes, options);
|
|
968
|
-
}
|
|
969
|
-
static fromJson(jsonValue, options) {
|
|
970
|
-
return new Swap5792Request().fromJson(jsonValue, options);
|
|
971
|
-
}
|
|
972
|
-
static fromJsonString(jsonString, options) {
|
|
973
|
-
return new Swap5792Request().fromJsonString(jsonString, options);
|
|
974
|
-
}
|
|
975
|
-
static equals(a, b) {
|
|
976
|
-
return proto3.util.equals(Swap5792Request, a, b);
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
Swap5792Request.runtime = proto3;
|
|
980
|
-
Swap5792Request.typeName = "trading.v1.Swap5792Request";
|
|
981
|
-
Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
982
|
-
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
|
|
983
|
-
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
|
|
984
|
-
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
|
|
985
|
-
{ no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
986
|
-
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
987
|
-
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
988
|
-
]);
|
|
989
|
-
/**
|
|
990
|
-
* @generated from message trading.v1.Swap5792Response
|
|
991
|
-
*/
|
|
992
|
-
export class Swap5792Response extends Message {
|
|
993
|
-
constructor(data) {
|
|
994
|
-
super();
|
|
995
|
-
/**
|
|
996
|
-
* @generated from field: string request_id = 1;
|
|
997
|
-
*/
|
|
998
|
-
this.requestId = "";
|
|
999
|
-
/**
|
|
1000
|
-
* @generated from field: string from = 2;
|
|
1001
|
-
*/
|
|
1002
|
-
this.from = "";
|
|
1003
|
-
/**
|
|
1004
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1005
|
-
*/
|
|
1006
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1007
|
-
/**
|
|
1008
|
-
* @generated from field: repeated trading.v1.TransactionRequest5792 calls = 4;
|
|
1009
|
-
*/
|
|
1010
|
-
this.calls = [];
|
|
1011
|
-
/**
|
|
1012
|
-
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
1013
|
-
*/
|
|
1014
|
-
this.gasEstimates = [];
|
|
1015
|
-
proto3.util.initPartial(data, this);
|
|
1016
|
-
}
|
|
1017
|
-
static fromBinary(bytes, options) {
|
|
1018
|
-
return new Swap5792Response().fromBinary(bytes, options);
|
|
1019
|
-
}
|
|
1020
|
-
static fromJson(jsonValue, options) {
|
|
1021
|
-
return new Swap5792Response().fromJson(jsonValue, options);
|
|
1022
|
-
}
|
|
1023
|
-
static fromJsonString(jsonString, options) {
|
|
1024
|
-
return new Swap5792Response().fromJsonString(jsonString, options);
|
|
1025
|
-
}
|
|
1026
|
-
static equals(a, b) {
|
|
1027
|
-
return proto3.util.equals(Swap5792Response, a, b);
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
Swap5792Response.runtime = proto3;
|
|
1031
|
-
Swap5792Response.typeName = "trading.v1.Swap5792Response";
|
|
1032
|
-
Swap5792Response.fields = proto3.util.newFieldList(() => [
|
|
1033
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1034
|
-
{ no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1035
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1036
|
-
{ no: 4, name: "calls", kind: "message", T: TransactionRequest5792, repeated: true },
|
|
1037
|
-
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1038
|
-
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1039
|
-
{ no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1040
|
-
{ no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1041
|
-
]);
|
|
1042
|
-
/**
|
|
1043
|
-
* @generated from message trading.v1.PoolInfoRequest
|
|
1044
|
-
*/
|
|
1045
|
-
export class PoolInfoRequest extends Message {
|
|
1046
|
-
constructor(data) {
|
|
1047
|
-
super();
|
|
1048
|
-
/**
|
|
1049
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1050
|
-
*/
|
|
1051
|
-
this.protocol = Protocols.V2;
|
|
1052
|
-
/**
|
|
1053
|
-
* @generated from field: repeated trading.v1.PoolReferenceByProtocol pool_references = 2;
|
|
1054
|
-
*/
|
|
1055
|
-
this.poolReferences = [];
|
|
1056
|
-
proto3.util.initPartial(data, this);
|
|
1057
|
-
}
|
|
1058
|
-
static fromBinary(bytes, options) {
|
|
1059
|
-
return new PoolInfoRequest().fromBinary(bytes, options);
|
|
1060
|
-
}
|
|
1061
|
-
static fromJson(jsonValue, options) {
|
|
1062
|
-
return new PoolInfoRequest().fromJson(jsonValue, options);
|
|
1063
|
-
}
|
|
1064
|
-
static fromJsonString(jsonString, options) {
|
|
1065
|
-
return new PoolInfoRequest().fromJsonString(jsonString, options);
|
|
1066
|
-
}
|
|
1067
|
-
static equals(a, b) {
|
|
1068
|
-
return proto3.util.equals(PoolInfoRequest, a, b);
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
PoolInfoRequest.runtime = proto3;
|
|
1072
|
-
PoolInfoRequest.typeName = "trading.v1.PoolInfoRequest";
|
|
1073
|
-
PoolInfoRequest.fields = proto3.util.newFieldList(() => [
|
|
1074
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1075
|
-
{ no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
|
|
1076
|
-
{ no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
|
|
1077
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
1078
|
-
{ no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1079
|
-
{ no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1080
|
-
]);
|
|
1081
|
-
/**
|
|
1082
|
-
* @generated from message trading.v1.PoolInfoResponse
|
|
1083
|
-
*/
|
|
1084
|
-
export class PoolInfoResponse extends Message {
|
|
1085
|
-
constructor(data) {
|
|
1086
|
-
super();
|
|
1087
|
-
/**
|
|
1088
|
-
* @generated from field: string request_id = 1;
|
|
1089
|
-
*/
|
|
1090
|
-
this.requestId = "";
|
|
1091
|
-
/**
|
|
1092
|
-
* @generated from field: repeated trading.v1.PoolInformation pools = 2;
|
|
1093
|
-
*/
|
|
1094
|
-
this.pools = [];
|
|
1095
|
-
/**
|
|
1096
|
-
* @generated from field: int32 current_page = 3;
|
|
1097
|
-
*/
|
|
1098
|
-
this.currentPage = 0;
|
|
1099
|
-
/**
|
|
1100
|
-
* @generated from field: int32 page_size = 4;
|
|
1101
|
-
*/
|
|
1102
|
-
this.pageSize = 0;
|
|
1103
|
-
proto3.util.initPartial(data, this);
|
|
1104
|
-
}
|
|
1105
|
-
static fromBinary(bytes, options) {
|
|
1106
|
-
return new PoolInfoResponse().fromBinary(bytes, options);
|
|
1107
|
-
}
|
|
1108
|
-
static fromJson(jsonValue, options) {
|
|
1109
|
-
return new PoolInfoResponse().fromJson(jsonValue, options);
|
|
1110
|
-
}
|
|
1111
|
-
static fromJsonString(jsonString, options) {
|
|
1112
|
-
return new PoolInfoResponse().fromJsonString(jsonString, options);
|
|
1113
|
-
}
|
|
1114
|
-
static equals(a, b) {
|
|
1115
|
-
return proto3.util.equals(PoolInfoResponse, a, b);
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
PoolInfoResponse.runtime = proto3;
|
|
1119
|
-
PoolInfoResponse.typeName = "trading.v1.PoolInfoResponse";
|
|
1120
|
-
PoolInfoResponse.fields = proto3.util.newFieldList(() => [
|
|
1121
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1122
|
-
{ no: 2, name: "pools", kind: "message", T: PoolInformation, repeated: true },
|
|
1123
|
-
{ no: 3, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1124
|
-
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1125
|
-
]);
|
|
1126
|
-
/**
|
|
1127
|
-
* @generated from message trading.v1.PoolInformation
|
|
1128
|
-
*/
|
|
1129
|
-
export class PoolInformation extends Message {
|
|
1130
|
-
constructor(data) {
|
|
1131
|
-
super();
|
|
1132
|
-
/**
|
|
1133
|
-
* @generated from field: string pool_reference_identifier = 1;
|
|
1134
|
-
*/
|
|
1135
|
-
this.poolReferenceIdentifier = "";
|
|
1136
|
-
/**
|
|
1137
|
-
* @generated from field: trading.v1.Protocols pool_protocol = 2;
|
|
1138
|
-
*/
|
|
1139
|
-
this.poolProtocol = Protocols.V2;
|
|
1140
|
-
/**
|
|
1141
|
-
* @generated from field: string token_address_A = 3;
|
|
1142
|
-
*/
|
|
1143
|
-
this.tokenAddressA = "";
|
|
1144
|
-
/**
|
|
1145
|
-
* @generated from field: string token_address_B = 4;
|
|
1146
|
-
*/
|
|
1147
|
-
this.tokenAddressB = "";
|
|
1148
|
-
/**
|
|
1149
|
-
* @generated from field: trading.v1.ChainId chain_id = 8;
|
|
1150
|
-
*/
|
|
1151
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1152
|
-
/**
|
|
1153
|
-
* @generated from field: string token_decimals_A = 11;
|
|
1154
|
-
*/
|
|
1155
|
-
this.tokenDecimalsA = "";
|
|
1156
|
-
/**
|
|
1157
|
-
* @generated from field: string token_decimals_B = 12;
|
|
1158
|
-
*/
|
|
1159
|
-
this.tokenDecimalsB = "";
|
|
1160
|
-
proto3.util.initPartial(data, this);
|
|
1161
|
-
}
|
|
1162
|
-
static fromBinary(bytes, options) {
|
|
1163
|
-
return new PoolInformation().fromBinary(bytes, options);
|
|
1164
|
-
}
|
|
1165
|
-
static fromJson(jsonValue, options) {
|
|
1166
|
-
return new PoolInformation().fromJson(jsonValue, options);
|
|
1167
|
-
}
|
|
1168
|
-
static fromJsonString(jsonString, options) {
|
|
1169
|
-
return new PoolInformation().fromJsonString(jsonString, options);
|
|
1170
|
-
}
|
|
1171
|
-
static equals(a, b) {
|
|
1172
|
-
return proto3.util.equals(PoolInformation, a, b);
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
PoolInformation.runtime = proto3;
|
|
1176
|
-
PoolInformation.typeName = "trading.v1.PoolInformation";
|
|
1177
|
-
PoolInformation.fields = proto3.util.newFieldList(() => [
|
|
1178
|
-
{ no: 1, name: "pool_reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1179
|
-
{ no: 2, name: "pool_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1180
|
-
{ no: 3, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1181
|
-
{ no: 4, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1182
|
-
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1183
|
-
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1184
|
-
{ no: 7, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1185
|
-
{ no: 8, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1186
|
-
{ no: 9, name: "token_amount_A", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1187
|
-
{ no: 10, name: "token_amount_B", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1188
|
-
{ no: 11, name: "token_decimals_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1189
|
-
{ no: 12, name: "token_decimals_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1190
|
-
{ no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1191
|
-
{ no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1192
|
-
{ no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1193
|
-
{ no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1194
|
-
{ no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1195
|
-
]);
|
|
1196
|
-
/**
|
|
1197
|
-
* @generated from message trading.v1.PoolReferenceByProtocol
|
|
1198
|
-
*/
|
|
1199
|
-
export class PoolReferenceByProtocol extends Message {
|
|
1200
|
-
constructor(data) {
|
|
1201
|
-
super();
|
|
1202
|
-
/**
|
|
1203
|
-
* @generated from field: string reference_identifier = 1;
|
|
1204
|
-
*/
|
|
1205
|
-
this.referenceIdentifier = "";
|
|
1206
|
-
/**
|
|
1207
|
-
* @generated from field: trading.v1.Protocols protocol = 2;
|
|
1208
|
-
*/
|
|
1209
|
-
this.protocol = Protocols.V2;
|
|
1210
|
-
/**
|
|
1211
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1212
|
-
*/
|
|
1213
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1214
|
-
proto3.util.initPartial(data, this);
|
|
1215
|
-
}
|
|
1216
|
-
static fromBinary(bytes, options) {
|
|
1217
|
-
return new PoolReferenceByProtocol().fromBinary(bytes, options);
|
|
1218
|
-
}
|
|
1219
|
-
static fromJson(jsonValue, options) {
|
|
1220
|
-
return new PoolReferenceByProtocol().fromJson(jsonValue, options);
|
|
1221
|
-
}
|
|
1222
|
-
static fromJsonString(jsonString, options) {
|
|
1223
|
-
return new PoolReferenceByProtocol().fromJsonString(jsonString, options);
|
|
1224
|
-
}
|
|
1225
|
-
static equals(a, b) {
|
|
1226
|
-
return proto3.util.equals(PoolReferenceByProtocol, a, b);
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
PoolReferenceByProtocol.runtime = proto3;
|
|
1230
|
-
PoolReferenceByProtocol.typeName = "trading.v1.PoolReferenceByProtocol";
|
|
1231
|
-
PoolReferenceByProtocol.fields = proto3.util.newFieldList(() => [
|
|
1232
|
-
{ no: 1, name: "reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1233
|
-
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1234
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1235
|
-
]);
|
|
1236
|
-
/**
|
|
1237
|
-
* @generated from message trading.v1.PoolParameters
|
|
1238
|
-
*/
|
|
1239
|
-
export class PoolParameters extends Message {
|
|
1240
|
-
constructor(data) {
|
|
1241
|
-
super();
|
|
1242
|
-
/**
|
|
1243
|
-
* @generated from field: string token_address_A = 2;
|
|
1244
|
-
*/
|
|
1245
|
-
this.tokenAddressA = "";
|
|
1246
|
-
/**
|
|
1247
|
-
* @generated from field: string token_address_B = 3;
|
|
1248
|
-
*/
|
|
1249
|
-
this.tokenAddressB = "";
|
|
1250
|
-
proto3.util.initPartial(data, this);
|
|
1251
|
-
}
|
|
1252
|
-
static fromBinary(bytes, options) {
|
|
1253
|
-
return new PoolParameters().fromBinary(bytes, options);
|
|
1254
|
-
}
|
|
1255
|
-
static fromJson(jsonValue, options) {
|
|
1256
|
-
return new PoolParameters().fromJson(jsonValue, options);
|
|
1257
|
-
}
|
|
1258
|
-
static fromJsonString(jsonString, options) {
|
|
1259
|
-
return new PoolParameters().fromJsonString(jsonString, options);
|
|
1260
|
-
}
|
|
1261
|
-
static equals(a, b) {
|
|
1262
|
-
return proto3.util.equals(PoolParameters, a, b);
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
PoolParameters.runtime = proto3;
|
|
1266
|
-
PoolParameters.typeName = "trading.v1.PoolParameters";
|
|
1267
|
-
PoolParameters.fields = proto3.util.newFieldList(() => [
|
|
1268
|
-
{ no: 2, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1269
|
-
{ no: 3, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1270
|
-
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1271
|
-
{ no: 5, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1272
|
-
{ no: 6, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1273
|
-
]);
|
|
1274
|
-
/**
|
|
1275
|
-
* @generated from message trading.v1.SendRequest
|
|
1276
|
-
*/
|
|
1277
|
-
export class SendRequest extends Message {
|
|
1278
|
-
constructor(data) {
|
|
1279
|
-
super();
|
|
1280
|
-
/**
|
|
1281
|
-
* @generated from field: string sender = 1;
|
|
1282
|
-
*/
|
|
1283
|
-
this.sender = "";
|
|
1284
|
-
/**
|
|
1285
|
-
* @generated from field: string recipient = 2;
|
|
1286
|
-
*/
|
|
1287
|
-
this.recipient = "";
|
|
1288
|
-
/**
|
|
1289
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1290
|
-
*/
|
|
1291
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1292
|
-
/**
|
|
1293
|
-
* @generated from field: string token = 4;
|
|
1294
|
-
*/
|
|
1295
|
-
this.token = "";
|
|
1296
|
-
/**
|
|
1297
|
-
* @generated from field: string amount = 5;
|
|
1298
|
-
*/
|
|
1299
|
-
this.amount = "";
|
|
1300
|
-
/**
|
|
1301
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
|
|
1302
|
-
*/
|
|
1303
|
-
this.gasStrategies = [];
|
|
1304
|
-
proto3.util.initPartial(data, this);
|
|
1305
|
-
}
|
|
1306
|
-
static fromBinary(bytes, options) {
|
|
1307
|
-
return new SendRequest().fromBinary(bytes, options);
|
|
1308
|
-
}
|
|
1309
|
-
static fromJson(jsonValue, options) {
|
|
1310
|
-
return new SendRequest().fromJson(jsonValue, options);
|
|
1311
|
-
}
|
|
1312
|
-
static fromJsonString(jsonString, options) {
|
|
1313
|
-
return new SendRequest().fromJsonString(jsonString, options);
|
|
1314
|
-
}
|
|
1315
|
-
static equals(a, b) {
|
|
1316
|
-
return proto3.util.equals(SendRequest, a, b);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
SendRequest.runtime = proto3;
|
|
1320
|
-
SendRequest.typeName = "trading.v1.SendRequest";
|
|
1321
|
-
SendRequest.fields = proto3.util.newFieldList(() => [
|
|
1322
|
-
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1323
|
-
{ no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1324
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1325
|
-
{ no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1326
|
-
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1327
|
-
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1328
|
-
{ no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
1329
|
-
]);
|
|
1330
|
-
/**
|
|
1331
|
-
* @generated from message trading.v1.SendResponse
|
|
1332
|
-
*/
|
|
1333
|
-
export class SendResponse extends Message {
|
|
1334
|
-
constructor(data) {
|
|
1335
|
-
super();
|
|
1336
|
-
/**
|
|
1337
|
-
* @generated from field: string request_id = 1;
|
|
1338
|
-
*/
|
|
1339
|
-
this.requestId = "";
|
|
1340
|
-
/**
|
|
1341
|
-
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
|
|
1342
|
-
*/
|
|
1343
|
-
this.gasEstimates = [];
|
|
1344
|
-
proto3.util.initPartial(data, this);
|
|
1345
|
-
}
|
|
1346
|
-
static fromBinary(bytes, options) {
|
|
1347
|
-
return new SendResponse().fromBinary(bytes, options);
|
|
1348
|
-
}
|
|
1349
|
-
static fromJson(jsonValue, options) {
|
|
1350
|
-
return new SendResponse().fromJson(jsonValue, options);
|
|
1351
|
-
}
|
|
1352
|
-
static fromJsonString(jsonString, options) {
|
|
1353
|
-
return new SendResponse().fromJsonString(jsonString, options);
|
|
1354
|
-
}
|
|
1355
|
-
static equals(a, b) {
|
|
1356
|
-
return proto3.util.equals(SendResponse, a, b);
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
SendResponse.runtime = proto3;
|
|
1360
|
-
SendResponse.typeName = "trading.v1.SendResponse";
|
|
1361
|
-
SendResponse.fields = proto3.util.newFieldList(() => [
|
|
1362
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1363
|
-
{ no: 2, name: "send", kind: "message", T: TransactionRequest, opt: true },
|
|
1364
|
-
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1365
|
-
{ no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1366
|
-
{ no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1367
|
-
]);
|
|
1368
|
-
/**
|
|
1369
|
-
* @generated from message trading.v1.CheckApprovalLPRequest
|
|
1370
|
-
*/
|
|
1371
|
-
export class CheckApprovalLPRequest extends Message {
|
|
1372
|
-
constructor(data) {
|
|
1373
|
-
super();
|
|
1374
|
-
/**
|
|
1375
|
-
* @generated from oneof trading.v1.CheckApprovalLPRequest.checkApprovalLPRequest
|
|
1376
|
-
*/
|
|
1377
|
-
this.checkApprovalLPRequest = { case: undefined };
|
|
1378
|
-
proto3.util.initPartial(data, this);
|
|
1379
|
-
}
|
|
1380
|
-
static fromBinary(bytes, options) {
|
|
1381
|
-
return new CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1382
|
-
}
|
|
1383
|
-
static fromJson(jsonValue, options) {
|
|
1384
|
-
return new CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1385
|
-
}
|
|
1386
|
-
static fromJsonString(jsonString, options) {
|
|
1387
|
-
return new CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1388
|
-
}
|
|
1389
|
-
static equals(a, b) {
|
|
1390
|
-
return proto3.util.equals(CheckApprovalLPRequest, a, b);
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
CheckApprovalLPRequest.runtime = proto3;
|
|
1394
|
-
CheckApprovalLPRequest.typeName = "trading.v1.CheckApprovalLPRequest";
|
|
1395
|
-
CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1396
|
-
{ no: 1, name: "v2_check_approval_lp_request", kind: "message", T: V2CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1397
|
-
{ no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1398
|
-
{ no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
1399
|
-
]);
|
|
1400
|
-
/**
|
|
1401
|
-
* @generated from message trading.v1.CheckApprovalLPResponse
|
|
1402
|
-
*/
|
|
1403
|
-
export class CheckApprovalLPResponse extends Message {
|
|
1404
|
-
constructor(data) {
|
|
1405
|
-
super();
|
|
1406
|
-
/**
|
|
1407
|
-
* @generated from field: string request_id = 1;
|
|
1408
|
-
*/
|
|
1409
|
-
this.requestId = "";
|
|
1410
|
-
/**
|
|
1411
|
-
* @generated from oneof trading.v1.CheckApprovalLPResponse.permitData
|
|
1412
|
-
*/
|
|
1413
|
-
this.permitData = { case: undefined };
|
|
1414
|
-
proto3.util.initPartial(data, this);
|
|
1415
|
-
}
|
|
1416
|
-
static fromBinary(bytes, options) {
|
|
1417
|
-
return new CheckApprovalLPResponse().fromBinary(bytes, options);
|
|
1418
|
-
}
|
|
1419
|
-
static fromJson(jsonValue, options) {
|
|
1420
|
-
return new CheckApprovalLPResponse().fromJson(jsonValue, options);
|
|
1421
|
-
}
|
|
1422
|
-
static fromJsonString(jsonString, options) {
|
|
1423
|
-
return new CheckApprovalLPResponse().fromJsonString(jsonString, options);
|
|
1424
|
-
}
|
|
1425
|
-
static equals(a, b) {
|
|
1426
|
-
return proto3.util.equals(CheckApprovalLPResponse, a, b);
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
CheckApprovalLPResponse.runtime = proto3;
|
|
1430
|
-
CheckApprovalLPResponse.typeName = "trading.v1.CheckApprovalLPResponse";
|
|
1431
|
-
CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
|
|
1432
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1433
|
-
{ no: 2, name: "token_0_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1434
|
-
{ no: 3, name: "token_1_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1435
|
-
{ no: 4, name: "token_0_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
1436
|
-
{ no: 5, name: "token_1_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
1437
|
-
{ no: 6, name: "position_token_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
1438
|
-
{ no: 7, name: "permit_batch_data", kind: "message", T: PermitBatchData, oneof: "permitData" },
|
|
1439
|
-
{ no: 8, name: "nft_permit_data", kind: "message", T: NFTPermitData, oneof: "permitData" },
|
|
1440
|
-
{ no: 9, name: "token_0_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1441
|
-
{ no: 10, name: "token_1_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1442
|
-
{ no: 11, name: "gas_fee_token_0_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1443
|
-
{ no: 12, name: "gas_fee_token_1_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1444
|
-
{ no: 13, name: "gas_fee_position_token_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1445
|
-
{ no: 14, name: "gas_fee_token_0_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1446
|
-
{ no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1447
|
-
{ no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1448
|
-
{ no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1449
|
-
]);
|
|
1450
|
-
/**
|
|
1451
|
-
* @generated from message trading.v1.V2CheckApprovalLPRequest
|
|
1452
|
-
*/
|
|
1453
|
-
export class V2CheckApprovalLPRequest extends Message {
|
|
1454
|
-
constructor(data) {
|
|
1455
|
-
super();
|
|
1456
|
-
/**
|
|
1457
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1458
|
-
*/
|
|
1459
|
-
this.protocol = Protocols.V2;
|
|
1460
|
-
/**
|
|
1461
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1462
|
-
*/
|
|
1463
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1464
|
-
/**
|
|
1465
|
-
* @generated from field: string wallet_address = 6;
|
|
1466
|
-
*/
|
|
1467
|
-
this.walletAddress = "";
|
|
1468
|
-
/**
|
|
1469
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1470
|
-
*/
|
|
1471
|
-
this.simulateTransaction = false;
|
|
1472
|
-
proto3.util.initPartial(data, this);
|
|
1473
|
-
}
|
|
1474
|
-
static fromBinary(bytes, options) {
|
|
1475
|
-
return new V2CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1476
|
-
}
|
|
1477
|
-
static fromJson(jsonValue, options) {
|
|
1478
|
-
return new V2CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1479
|
-
}
|
|
1480
|
-
static fromJsonString(jsonString, options) {
|
|
1481
|
-
return new V2CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1482
|
-
}
|
|
1483
|
-
static equals(a, b) {
|
|
1484
|
-
return proto3.util.equals(V2CheckApprovalLPRequest, a, b);
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
V2CheckApprovalLPRequest.runtime = proto3;
|
|
1488
|
-
V2CheckApprovalLPRequest.typeName = "trading.v1.V2CheckApprovalLPRequest";
|
|
1489
|
-
V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1490
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1491
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1492
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1493
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1494
|
-
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1495
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1496
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1497
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1498
|
-
{ no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1499
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1500
|
-
]);
|
|
1501
|
-
/**
|
|
1502
|
-
* @generated from message trading.v1.V3CheckApprovalLPRequest
|
|
1503
|
-
*/
|
|
1504
|
-
export class V3CheckApprovalLPRequest extends Message {
|
|
1505
|
-
constructor(data) {
|
|
1506
|
-
super();
|
|
1507
|
-
/**
|
|
1508
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1509
|
-
*/
|
|
1510
|
-
this.protocol = Protocols.V2;
|
|
1511
|
-
/**
|
|
1512
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1513
|
-
*/
|
|
1514
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1515
|
-
/**
|
|
1516
|
-
* @generated from field: string wallet_address = 6;
|
|
1517
|
-
*/
|
|
1518
|
-
this.walletAddress = "";
|
|
1519
|
-
/**
|
|
1520
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1521
|
-
*/
|
|
1522
|
-
this.simulateTransaction = false;
|
|
1523
|
-
proto3.util.initPartial(data, this);
|
|
1524
|
-
}
|
|
1525
|
-
static fromBinary(bytes, options) {
|
|
1526
|
-
return new V3CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1527
|
-
}
|
|
1528
|
-
static fromJson(jsonValue, options) {
|
|
1529
|
-
return new V3CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1530
|
-
}
|
|
1531
|
-
static fromJsonString(jsonString, options) {
|
|
1532
|
-
return new V3CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1533
|
-
}
|
|
1534
|
-
static equals(a, b) {
|
|
1535
|
-
return proto3.util.equals(V3CheckApprovalLPRequest, a, b);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
V3CheckApprovalLPRequest.runtime = proto3;
|
|
1539
|
-
V3CheckApprovalLPRequest.typeName = "trading.v1.V3CheckApprovalLPRequest";
|
|
1540
|
-
V3CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1541
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1542
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1543
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1544
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1545
|
-
{ no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1546
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1547
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1548
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1549
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1550
|
-
]);
|
|
1551
|
-
/**
|
|
1552
|
-
* @generated from message trading.v1.V4CheckApprovalLPRequest
|
|
1553
|
-
*/
|
|
1554
|
-
export class V4CheckApprovalLPRequest extends Message {
|
|
1555
|
-
constructor(data) {
|
|
1556
|
-
super();
|
|
1557
|
-
/**
|
|
1558
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1559
|
-
*/
|
|
1560
|
-
this.protocol = Protocols.V2;
|
|
1561
|
-
/**
|
|
1562
|
-
* @generated from field: string token0 = 2;
|
|
1563
|
-
*/
|
|
1564
|
-
this.token0 = "";
|
|
1565
|
-
/**
|
|
1566
|
-
* @generated from field: string token1 = 3;
|
|
1567
|
-
*/
|
|
1568
|
-
this.token1 = "";
|
|
1569
|
-
/**
|
|
1570
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1571
|
-
*/
|
|
1572
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1573
|
-
/**
|
|
1574
|
-
* @generated from field: string wallet_address = 6;
|
|
1575
|
-
*/
|
|
1576
|
-
this.walletAddress = "";
|
|
1577
|
-
/**
|
|
1578
|
-
* @generated from field: string amount0 = 7;
|
|
1579
|
-
*/
|
|
1580
|
-
this.amount0 = "";
|
|
1581
|
-
/**
|
|
1582
|
-
* @generated from field: string amount1 = 8;
|
|
1583
|
-
*/
|
|
1584
|
-
this.amount1 = "";
|
|
1585
|
-
/**
|
|
1586
|
-
* @generated from field: bool generate_permit_as_transaction = 9;
|
|
1587
|
-
*/
|
|
1588
|
-
this.generatePermitAsTransaction = false;
|
|
1589
|
-
/**
|
|
1590
|
-
* @generated from field: bool simulate_transaction = 10;
|
|
1591
|
-
*/
|
|
1592
|
-
this.simulateTransaction = false;
|
|
1593
|
-
proto3.util.initPartial(data, this);
|
|
1594
|
-
}
|
|
1595
|
-
static fromBinary(bytes, options) {
|
|
1596
|
-
return new V4CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
1597
|
-
}
|
|
1598
|
-
static fromJson(jsonValue, options) {
|
|
1599
|
-
return new V4CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
1600
|
-
}
|
|
1601
|
-
static fromJsonString(jsonString, options) {
|
|
1602
|
-
return new V4CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
1603
|
-
}
|
|
1604
|
-
static equals(a, b) {
|
|
1605
|
-
return proto3.util.equals(V4CheckApprovalLPRequest, a, b);
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
V4CheckApprovalLPRequest.runtime = proto3;
|
|
1609
|
-
V4CheckApprovalLPRequest.typeName = "trading.v1.V4CheckApprovalLPRequest";
|
|
1610
|
-
V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
1611
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1612
|
-
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1613
|
-
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1614
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1615
|
-
{ no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1616
|
-
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1617
|
-
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1618
|
-
{ no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1619
|
-
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1620
|
-
]);
|
|
1621
|
-
/**
|
|
1622
|
-
* @generated from message trading.v1.MigrateLpPositionRequest
|
|
1623
|
-
*/
|
|
1624
|
-
export class MigrateLpPositionRequest extends Message {
|
|
1625
|
-
constructor(data) {
|
|
1626
|
-
super();
|
|
1627
|
-
/**
|
|
1628
|
-
* @generated from field: int32 tokenId = 1;
|
|
1629
|
-
*/
|
|
1630
|
-
this.tokenId = 0;
|
|
1631
|
-
/**
|
|
1632
|
-
* @generated from field: string wallet_address = 2;
|
|
1633
|
-
*/
|
|
1634
|
-
this.walletAddress = "";
|
|
1635
|
-
/**
|
|
1636
|
-
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
1637
|
-
*/
|
|
1638
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1639
|
-
/**
|
|
1640
|
-
* @generated from field: trading.v1.Protocols input_protocol = 4;
|
|
1641
|
-
*/
|
|
1642
|
-
this.inputProtocol = Protocols.V2;
|
|
1643
|
-
/**
|
|
1644
|
-
* @generated from field: string input_pool_liquidity = 6;
|
|
1645
|
-
*/
|
|
1646
|
-
this.inputPoolLiquidity = "";
|
|
1647
|
-
/**
|
|
1648
|
-
* @generated from field: int32 input_current_tick = 7;
|
|
1649
|
-
*/
|
|
1650
|
-
this.inputCurrentTick = 0;
|
|
1651
|
-
/**
|
|
1652
|
-
* @generated from field: string input_sqrt_ratio_x96 = 8;
|
|
1653
|
-
*/
|
|
1654
|
-
this.inputSqrtRatioX96 = "";
|
|
1655
|
-
/**
|
|
1656
|
-
* @generated from field: string input_position_liquidity = 9;
|
|
1657
|
-
*/
|
|
1658
|
-
this.inputPositionLiquidity = "";
|
|
1659
|
-
/**
|
|
1660
|
-
* @generated from field: string amount0 = 11;
|
|
1661
|
-
*/
|
|
1662
|
-
this.amount0 = "";
|
|
1663
|
-
/**
|
|
1664
|
-
* @generated from field: string amount1 = 12;
|
|
1665
|
-
*/
|
|
1666
|
-
this.amount1 = "";
|
|
1667
|
-
/**
|
|
1668
|
-
* @generated from field: trading.v1.Protocols output_protocol = 13;
|
|
1669
|
-
*/
|
|
1670
|
-
this.outputProtocol = Protocols.V2;
|
|
1671
|
-
/**
|
|
1672
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 19;
|
|
1673
|
-
*/
|
|
1674
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
1675
|
-
/**
|
|
1676
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 20;
|
|
1677
|
-
*/
|
|
1678
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
1679
|
-
/**
|
|
1680
|
-
* @generated from field: bool simulate_transaction = 21;
|
|
1681
|
-
*/
|
|
1682
|
-
this.simulateTransaction = false;
|
|
1683
|
-
proto3.util.initPartial(data, this);
|
|
1684
|
-
}
|
|
1685
|
-
static fromBinary(bytes, options) {
|
|
1686
|
-
return new MigrateLpPositionRequest().fromBinary(bytes, options);
|
|
1687
|
-
}
|
|
1688
|
-
static fromJson(jsonValue, options) {
|
|
1689
|
-
return new MigrateLpPositionRequest().fromJson(jsonValue, options);
|
|
1690
|
-
}
|
|
1691
|
-
static fromJsonString(jsonString, options) {
|
|
1692
|
-
return new MigrateLpPositionRequest().fromJsonString(jsonString, options);
|
|
1693
|
-
}
|
|
1694
|
-
static equals(a, b) {
|
|
1695
|
-
return proto3.util.equals(MigrateLpPositionRequest, a, b);
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
MigrateLpPositionRequest.runtime = proto3;
|
|
1699
|
-
MigrateLpPositionRequest.typeName = "trading.v1.MigrateLpPositionRequest";
|
|
1700
|
-
MigrateLpPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
1701
|
-
{ no: 1, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1702
|
-
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1703
|
-
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1704
|
-
{ no: 4, name: "input_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1705
|
-
{ no: 5, name: "input_position", kind: "message", T: V3Position },
|
|
1706
|
-
{ no: 6, name: "input_pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1707
|
-
{ no: 7, name: "input_current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1708
|
-
{ no: 8, name: "input_sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1709
|
-
{ no: 9, name: "input_position_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1710
|
-
{ no: 10, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1711
|
-
{ no: 11, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1712
|
-
{ no: 12, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1713
|
-
{ no: 13, name: "output_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1714
|
-
{ no: 14, name: "output_position", kind: "message", T: V4Position },
|
|
1715
|
-
{ no: 15, name: "output_pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1716
|
-
{ no: 16, name: "output_current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1717
|
-
{ no: 17, name: "output_sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1718
|
-
{ no: 18, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1719
|
-
{ no: 19, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1720
|
-
{ no: 20, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1721
|
-
{ no: 21, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1722
|
-
{ no: 22, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1723
|
-
{ no: 23, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1724
|
-
{ no: 24, name: "signature_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1725
|
-
]);
|
|
1726
|
-
/**
|
|
1727
|
-
* @generated from message trading.v1.MigrateLpPositionResponse
|
|
1728
|
-
*/
|
|
1729
|
-
export class MigrateLpPositionResponse extends Message {
|
|
1730
|
-
constructor(data) {
|
|
1731
|
-
super();
|
|
1732
|
-
/**
|
|
1733
|
-
* @generated from field: string request_id = 1;
|
|
1734
|
-
*/
|
|
1735
|
-
this.requestId = "";
|
|
1736
|
-
proto3.util.initPartial(data, this);
|
|
1737
|
-
}
|
|
1738
|
-
static fromBinary(bytes, options) {
|
|
1739
|
-
return new MigrateLpPositionResponse().fromBinary(bytes, options);
|
|
1740
|
-
}
|
|
1741
|
-
static fromJson(jsonValue, options) {
|
|
1742
|
-
return new MigrateLpPositionResponse().fromJson(jsonValue, options);
|
|
1743
|
-
}
|
|
1744
|
-
static fromJsonString(jsonString, options) {
|
|
1745
|
-
return new MigrateLpPositionResponse().fromJsonString(jsonString, options);
|
|
1746
|
-
}
|
|
1747
|
-
static equals(a, b) {
|
|
1748
|
-
return proto3.util.equals(MigrateLpPositionResponse, a, b);
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
MigrateLpPositionResponse.runtime = proto3;
|
|
1752
|
-
MigrateLpPositionResponse.typeName = "trading.v1.MigrateLpPositionResponse";
|
|
1753
|
-
MigrateLpPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
1754
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1755
|
-
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest, opt: true },
|
|
1756
|
-
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1757
|
-
]);
|
|
1758
|
-
/**
|
|
1759
|
-
* @generated from message trading.v1.ClaimLPFeesRequest
|
|
1760
|
-
*/
|
|
1761
|
-
export class ClaimLPFeesRequest extends Message {
|
|
1762
|
-
constructor(data) {
|
|
1763
|
-
super();
|
|
1764
|
-
/**
|
|
1765
|
-
* @generated from oneof trading.v1.ClaimLPFeesRequest.claimLPFeesRequest
|
|
1766
|
-
*/
|
|
1767
|
-
this.claimLPFeesRequest = { case: undefined };
|
|
1768
|
-
proto3.util.initPartial(data, this);
|
|
1769
|
-
}
|
|
1770
|
-
static fromBinary(bytes, options) {
|
|
1771
|
-
return new ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1772
|
-
}
|
|
1773
|
-
static fromJson(jsonValue, options) {
|
|
1774
|
-
return new ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1775
|
-
}
|
|
1776
|
-
static fromJsonString(jsonString, options) {
|
|
1777
|
-
return new ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1778
|
-
}
|
|
1779
|
-
static equals(a, b) {
|
|
1780
|
-
return proto3.util.equals(ClaimLPFeesRequest, a, b);
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
ClaimLPFeesRequest.runtime = proto3;
|
|
1784
|
-
ClaimLPFeesRequest.typeName = "trading.v1.ClaimLPFeesRequest";
|
|
1785
|
-
ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1786
|
-
{ no: 1, name: "v2_claim_lp_fees_request", kind: "message", T: V2ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1787
|
-
{ no: 2, name: "v3_claim_lp_fees_request", kind: "message", T: V3ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1788
|
-
{ no: 3, name: "v4_claim_lp_fees_request", kind: "message", T: V4ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
1789
|
-
]);
|
|
1790
|
-
/**
|
|
1791
|
-
* @generated from message trading.v1.ClaimLPFeesResponse
|
|
1792
|
-
*/
|
|
1793
|
-
export class ClaimLPFeesResponse extends Message {
|
|
1794
|
-
constructor(data) {
|
|
1795
|
-
super();
|
|
1796
|
-
/**
|
|
1797
|
-
* @generated from field: string request_id = 1;
|
|
1798
|
-
*/
|
|
1799
|
-
this.requestId = "";
|
|
1800
|
-
proto3.util.initPartial(data, this);
|
|
1801
|
-
}
|
|
1802
|
-
static fromBinary(bytes, options) {
|
|
1803
|
-
return new ClaimLPFeesResponse().fromBinary(bytes, options);
|
|
1804
|
-
}
|
|
1805
|
-
static fromJson(jsonValue, options) {
|
|
1806
|
-
return new ClaimLPFeesResponse().fromJson(jsonValue, options);
|
|
1807
|
-
}
|
|
1808
|
-
static fromJsonString(jsonString, options) {
|
|
1809
|
-
return new ClaimLPFeesResponse().fromJsonString(jsonString, options);
|
|
1810
|
-
}
|
|
1811
|
-
static equals(a, b) {
|
|
1812
|
-
return proto3.util.equals(ClaimLPFeesResponse, a, b);
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
ClaimLPFeesResponse.runtime = proto3;
|
|
1816
|
-
ClaimLPFeesResponse.typeName = "trading.v1.ClaimLPFeesResponse";
|
|
1817
|
-
ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
1818
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1819
|
-
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
1820
|
-
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1821
|
-
]);
|
|
1822
|
-
/**
|
|
1823
|
-
* @generated from message trading.v1.V2ClaimLPFeesRequest
|
|
1824
|
-
*/
|
|
1825
|
-
export class V2ClaimLPFeesRequest extends Message {
|
|
1826
|
-
constructor(data) {
|
|
1827
|
-
super();
|
|
1828
|
-
/**
|
|
1829
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1830
|
-
*/
|
|
1831
|
-
this.protocol = Protocols.V2;
|
|
1832
|
-
/**
|
|
1833
|
-
* @generated from field: string wallet_address = 3;
|
|
1834
|
-
*/
|
|
1835
|
-
this.walletAddress = "";
|
|
1836
|
-
/**
|
|
1837
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1838
|
-
*/
|
|
1839
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1840
|
-
/**
|
|
1841
|
-
* @generated from field: bool collectAsWETH = 6;
|
|
1842
|
-
*/
|
|
1843
|
-
this.collectAsWETH = false;
|
|
1844
|
-
proto3.util.initPartial(data, this);
|
|
1845
|
-
}
|
|
1846
|
-
static fromBinary(bytes, options) {
|
|
1847
|
-
return new V2ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1848
|
-
}
|
|
1849
|
-
static fromJson(jsonValue, options) {
|
|
1850
|
-
return new V2ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1851
|
-
}
|
|
1852
|
-
static fromJsonString(jsonString, options) {
|
|
1853
|
-
return new V2ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1854
|
-
}
|
|
1855
|
-
static equals(a, b) {
|
|
1856
|
-
return proto3.util.equals(V2ClaimLPFeesRequest, a, b);
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
V2ClaimLPFeesRequest.runtime = proto3;
|
|
1860
|
-
V2ClaimLPFeesRequest.typeName = "trading.v1.V2ClaimLPFeesRequest";
|
|
1861
|
-
V2ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1862
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1863
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
1864
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1865
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1866
|
-
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1867
|
-
{ no: 6, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1868
|
-
]);
|
|
1869
|
-
/**
|
|
1870
|
-
* @generated from message trading.v1.V3ClaimLPFeesRequest
|
|
1871
|
-
*/
|
|
1872
|
-
export class V3ClaimLPFeesRequest extends Message {
|
|
1873
|
-
constructor(data) {
|
|
1874
|
-
super();
|
|
1875
|
-
/**
|
|
1876
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1877
|
-
*/
|
|
1878
|
-
this.protocol = Protocols.V2;
|
|
1879
|
-
/**
|
|
1880
|
-
* @generated from field: int32 tokenId = 2;
|
|
1881
|
-
*/
|
|
1882
|
-
this.tokenId = 0;
|
|
1883
|
-
/**
|
|
1884
|
-
* @generated from field: string wallet_address = 4;
|
|
1885
|
-
*/
|
|
1886
|
-
this.walletAddress = "";
|
|
1887
|
-
/**
|
|
1888
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
1889
|
-
*/
|
|
1890
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1891
|
-
/**
|
|
1892
|
-
* @generated from field: bool collectAsWETH = 7;
|
|
1893
|
-
*/
|
|
1894
|
-
this.collectAsWETH = false;
|
|
1895
|
-
/**
|
|
1896
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 8;
|
|
1897
|
-
*/
|
|
1898
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
1899
|
-
/**
|
|
1900
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 9;
|
|
1901
|
-
*/
|
|
1902
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
1903
|
-
proto3.util.initPartial(data, this);
|
|
1904
|
-
}
|
|
1905
|
-
static fromBinary(bytes, options) {
|
|
1906
|
-
return new V3ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1907
|
-
}
|
|
1908
|
-
static fromJson(jsonValue, options) {
|
|
1909
|
-
return new V3ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1910
|
-
}
|
|
1911
|
-
static fromJsonString(jsonString, options) {
|
|
1912
|
-
return new V3ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1913
|
-
}
|
|
1914
|
-
static equals(a, b) {
|
|
1915
|
-
return proto3.util.equals(V3ClaimLPFeesRequest, a, b);
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
V3ClaimLPFeesRequest.runtime = proto3;
|
|
1919
|
-
V3ClaimLPFeesRequest.typeName = "trading.v1.V3ClaimLPFeesRequest";
|
|
1920
|
-
V3ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1921
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1922
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1923
|
-
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
1924
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1925
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1926
|
-
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1927
|
-
{ no: 7, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1928
|
-
{ no: 8, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1929
|
-
{ no: 9, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1930
|
-
]);
|
|
1931
|
-
/**
|
|
1932
|
-
* @generated from message trading.v1.V4ClaimLPFeesRequest
|
|
1933
|
-
*/
|
|
1934
|
-
export class V4ClaimLPFeesRequest extends Message {
|
|
1935
|
-
constructor(data) {
|
|
1936
|
-
super();
|
|
1937
|
-
/**
|
|
1938
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
1939
|
-
*/
|
|
1940
|
-
this.protocol = Protocols.V2;
|
|
1941
|
-
/**
|
|
1942
|
-
* @generated from field: int32 tokenId = 2;
|
|
1943
|
-
*/
|
|
1944
|
-
this.tokenId = 0;
|
|
1945
|
-
/**
|
|
1946
|
-
* @generated from field: string wallet_address = 4;
|
|
1947
|
-
*/
|
|
1948
|
-
this.walletAddress = "";
|
|
1949
|
-
/**
|
|
1950
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
1951
|
-
*/
|
|
1952
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1953
|
-
proto3.util.initPartial(data, this);
|
|
1954
|
-
}
|
|
1955
|
-
static fromBinary(bytes, options) {
|
|
1956
|
-
return new V4ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
1957
|
-
}
|
|
1958
|
-
static fromJson(jsonValue, options) {
|
|
1959
|
-
return new V4ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
1960
|
-
}
|
|
1961
|
-
static fromJsonString(jsonString, options) {
|
|
1962
|
-
return new V4ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
1963
|
-
}
|
|
1964
|
-
static equals(a, b) {
|
|
1965
|
-
return proto3.util.equals(V4ClaimLPFeesRequest, a, b);
|
|
1966
|
-
}
|
|
1967
|
-
}
|
|
1968
|
-
V4ClaimLPFeesRequest.runtime = proto3;
|
|
1969
|
-
V4ClaimLPFeesRequest.typeName = "trading.v1.V4ClaimLPFeesRequest";
|
|
1970
|
-
V4ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1971
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
1972
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1973
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
1974
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1975
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1976
|
-
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1977
|
-
]);
|
|
1978
|
-
/**
|
|
1979
|
-
* @generated from message trading.v1.DecreaseLPPositionRequest
|
|
1980
|
-
*/
|
|
1981
|
-
export class DecreaseLPPositionRequest extends Message {
|
|
1982
|
-
constructor(data) {
|
|
1983
|
-
super();
|
|
1984
|
-
/**
|
|
1985
|
-
* @generated from oneof trading.v1.DecreaseLPPositionRequest.decreaseLpPosition
|
|
1986
|
-
*/
|
|
1987
|
-
this.decreaseLpPosition = { case: undefined };
|
|
1988
|
-
proto3.util.initPartial(data, this);
|
|
1989
|
-
}
|
|
1990
|
-
static fromBinary(bytes, options) {
|
|
1991
|
-
return new DecreaseLPPositionRequest().fromBinary(bytes, options);
|
|
1992
|
-
}
|
|
1993
|
-
static fromJson(jsonValue, options) {
|
|
1994
|
-
return new DecreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
1995
|
-
}
|
|
1996
|
-
static fromJsonString(jsonString, options) {
|
|
1997
|
-
return new DecreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
1998
|
-
}
|
|
1999
|
-
static equals(a, b) {
|
|
2000
|
-
return proto3.util.equals(DecreaseLPPositionRequest, a, b);
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
DecreaseLPPositionRequest.runtime = proto3;
|
|
2004
|
-
DecreaseLPPositionRequest.typeName = "trading.v1.DecreaseLPPositionRequest";
|
|
2005
|
-
DecreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
2006
|
-
{ no: 1, name: "v2_decrease_lp_position", kind: "message", T: V2DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2007
|
-
{ no: 2, name: "v3_decrease_lp_position", kind: "message", T: V3DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2008
|
-
{ no: 3, name: "v4_decrease_lp_position", kind: "message", T: V4DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
2009
|
-
]);
|
|
2010
|
-
/**
|
|
2011
|
-
* @generated from message trading.v1.DecreaseLPPositionResponse
|
|
2012
|
-
*/
|
|
2013
|
-
export class DecreaseLPPositionResponse extends Message {
|
|
2014
|
-
constructor(data) {
|
|
2015
|
-
super();
|
|
2016
|
-
/**
|
|
2017
|
-
* @generated from field: string request_id = 1;
|
|
2018
|
-
*/
|
|
2019
|
-
this.requestId = "";
|
|
2020
|
-
proto3.util.initPartial(data, this);
|
|
2021
|
-
}
|
|
2022
|
-
static fromBinary(bytes, options) {
|
|
2023
|
-
return new DecreaseLPPositionResponse().fromBinary(bytes, options);
|
|
2024
|
-
}
|
|
2025
|
-
static fromJson(jsonValue, options) {
|
|
2026
|
-
return new DecreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
2027
|
-
}
|
|
2028
|
-
static fromJsonString(jsonString, options) {
|
|
2029
|
-
return new DecreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
2030
|
-
}
|
|
2031
|
-
static equals(a, b) {
|
|
2032
|
-
return proto3.util.equals(DecreaseLPPositionResponse, a, b);
|
|
2033
|
-
}
|
|
2034
|
-
}
|
|
2035
|
-
DecreaseLPPositionResponse.runtime = proto3;
|
|
2036
|
-
DecreaseLPPositionResponse.typeName = "trading.v1.DecreaseLPPositionResponse";
|
|
2037
|
-
DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2038
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2039
|
-
{ no: 2, name: "decrease", kind: "message", T: TransactionRequest, opt: true },
|
|
2040
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2041
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2042
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2043
|
-
{ no: 7, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2044
|
-
]);
|
|
2045
|
-
/**
|
|
2046
|
-
* @generated from message trading.v1.V2DecreaseLPPosition
|
|
2047
|
-
*/
|
|
2048
|
-
export class V2DecreaseLPPosition extends Message {
|
|
2049
|
-
constructor(data) {
|
|
2050
|
-
super();
|
|
2051
|
-
/**
|
|
2052
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2053
|
-
*/
|
|
2054
|
-
this.protocol = Protocols.V2;
|
|
2055
|
-
/**
|
|
2056
|
-
* @generated from field: string wallet_address = 3;
|
|
2057
|
-
*/
|
|
2058
|
-
this.walletAddress = "";
|
|
2059
|
-
/**
|
|
2060
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2061
|
-
*/
|
|
2062
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2063
|
-
/**
|
|
2064
|
-
* @generated from field: string positionLiquidity = 5;
|
|
2065
|
-
*/
|
|
2066
|
-
this.positionLiquidity = "";
|
|
2067
|
-
/**
|
|
2068
|
-
* @generated from field: int32 liquidityPercentageToDecrease = 6;
|
|
2069
|
-
*/
|
|
2070
|
-
this.liquidityPercentageToDecrease = 0;
|
|
2071
|
-
/**
|
|
2072
|
-
* @generated from field: string liquidity0 = 7;
|
|
2073
|
-
*/
|
|
2074
|
-
this.liquidity0 = "";
|
|
2075
|
-
/**
|
|
2076
|
-
* @generated from field: string liquidity1 = 8;
|
|
2077
|
-
*/
|
|
2078
|
-
this.liquidity1 = "";
|
|
2079
|
-
/**
|
|
2080
|
-
* @generated from field: bool collectAsWETH = 10;
|
|
2081
|
-
*/
|
|
2082
|
-
this.collectAsWETH = false;
|
|
2083
|
-
proto3.util.initPartial(data, this);
|
|
2084
|
-
}
|
|
2085
|
-
static fromBinary(bytes, options) {
|
|
2086
|
-
return new V2DecreaseLPPosition().fromBinary(bytes, options);
|
|
2087
|
-
}
|
|
2088
|
-
static fromJson(jsonValue, options) {
|
|
2089
|
-
return new V2DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2090
|
-
}
|
|
2091
|
-
static fromJsonString(jsonString, options) {
|
|
2092
|
-
return new V2DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2093
|
-
}
|
|
2094
|
-
static equals(a, b) {
|
|
2095
|
-
return proto3.util.equals(V2DecreaseLPPosition, a, b);
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
V2DecreaseLPPosition.runtime = proto3;
|
|
2099
|
-
V2DecreaseLPPosition.typeName = "trading.v1.V2DecreaseLPPosition";
|
|
2100
|
-
V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2101
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2102
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
2103
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2104
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2105
|
-
{ no: 5, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2106
|
-
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2107
|
-
{ no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2108
|
-
{ no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2109
|
-
{ no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2110
|
-
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2111
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2112
|
-
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2113
|
-
]);
|
|
2114
|
-
/**
|
|
2115
|
-
* @generated from message trading.v1.V3DecreaseLPPosition
|
|
2116
|
-
*/
|
|
2117
|
-
export class V3DecreaseLPPosition extends Message {
|
|
2118
|
-
constructor(data) {
|
|
2119
|
-
super();
|
|
2120
|
-
/**
|
|
2121
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2122
|
-
*/
|
|
2123
|
-
this.protocol = Protocols.V2;
|
|
2124
|
-
/**
|
|
2125
|
-
* @generated from field: int32 tokenId = 2;
|
|
2126
|
-
*/
|
|
2127
|
-
this.tokenId = 0;
|
|
2128
|
-
/**
|
|
2129
|
-
* @generated from field: string wallet_address = 4;
|
|
2130
|
-
*/
|
|
2131
|
-
this.walletAddress = "";
|
|
2132
|
-
/**
|
|
2133
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2134
|
-
*/
|
|
2135
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2136
|
-
/**
|
|
2137
|
-
* @generated from field: string liquidityPercentageToDecrease = 7;
|
|
2138
|
-
*/
|
|
2139
|
-
this.liquidityPercentageToDecrease = "";
|
|
2140
|
-
/**
|
|
2141
|
-
* @generated from field: string positionLiquidity = 11;
|
|
2142
|
-
*/
|
|
2143
|
-
this.positionLiquidity = "";
|
|
2144
|
-
/**
|
|
2145
|
-
* @generated from field: string expectedTokenOwed0RawAmount = 12;
|
|
2146
|
-
*/
|
|
2147
|
-
this.expectedTokenOwed0RawAmount = "";
|
|
2148
|
-
/**
|
|
2149
|
-
* @generated from field: string expectedTokenOwed1RawAmount = 13;
|
|
2150
|
-
*/
|
|
2151
|
-
this.expectedTokenOwed1RawAmount = "";
|
|
2152
|
-
/**
|
|
2153
|
-
* @generated from field: bool collectAsWETH = 14;
|
|
2154
|
-
*/
|
|
2155
|
-
this.collectAsWETH = false;
|
|
2156
|
-
proto3.util.initPartial(data, this);
|
|
2157
|
-
}
|
|
2158
|
-
static fromBinary(bytes, options) {
|
|
2159
|
-
return new V3DecreaseLPPosition().fromBinary(bytes, options);
|
|
2160
|
-
}
|
|
2161
|
-
static fromJson(jsonValue, options) {
|
|
2162
|
-
return new V3DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2163
|
-
}
|
|
2164
|
-
static fromJsonString(jsonString, options) {
|
|
2165
|
-
return new V3DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2166
|
-
}
|
|
2167
|
-
static equals(a, b) {
|
|
2168
|
-
return proto3.util.equals(V3DecreaseLPPosition, a, b);
|
|
2169
|
-
}
|
|
2170
|
-
}
|
|
2171
|
-
V3DecreaseLPPosition.runtime = proto3;
|
|
2172
|
-
V3DecreaseLPPosition.typeName = "trading.v1.V3DecreaseLPPosition";
|
|
2173
|
-
V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2174
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2175
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2176
|
-
{ no: 3, name: "position", kind: "message", T: V3Position },
|
|
2177
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2178
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2179
|
-
{ no: 7, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2180
|
-
{ no: 8, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2181
|
-
{ no: 9, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2182
|
-
{ no: 10, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2183
|
-
{ no: 11, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2184
|
-
{ no: 12, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2185
|
-
{ no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2186
|
-
{ no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2187
|
-
{ no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2188
|
-
{ no: 16, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2189
|
-
{ no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2190
|
-
]);
|
|
2191
|
-
/**
|
|
2192
|
-
* @generated from message trading.v1.V4DecreaseLPPosition
|
|
2193
|
-
*/
|
|
2194
|
-
export class V4DecreaseLPPosition extends Message {
|
|
2195
|
-
constructor(data) {
|
|
2196
|
-
super();
|
|
2197
|
-
/**
|
|
2198
|
-
* @generated from field: trading.v1.Protocols protocol = 1;
|
|
2199
|
-
*/
|
|
2200
|
-
this.protocol = Protocols.V2;
|
|
2201
|
-
/**
|
|
2202
|
-
* @generated from field: int32 tokenId = 2;
|
|
2203
|
-
*/
|
|
2204
|
-
this.tokenId = 0;
|
|
2205
|
-
/**
|
|
2206
|
-
* @generated from field: string wallet_address = 4;
|
|
2207
|
-
*/
|
|
2208
|
-
this.walletAddress = "";
|
|
2209
|
-
/**
|
|
2210
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2211
|
-
*/
|
|
2212
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2213
|
-
/**
|
|
2214
|
-
* @generated from field: int32 liquidityPercentageToDecrease = 6;
|
|
2215
|
-
*/
|
|
2216
|
-
this.liquidityPercentageToDecrease = 0;
|
|
2217
|
-
/**
|
|
2218
|
-
* @generated from field: string positionLiquidity = 10;
|
|
2219
|
-
*/
|
|
2220
|
-
this.positionLiquidity = "";
|
|
2221
|
-
proto3.util.initPartial(data, this);
|
|
2222
|
-
}
|
|
2223
|
-
static fromBinary(bytes, options) {
|
|
2224
|
-
return new V4DecreaseLPPosition().fromBinary(bytes, options);
|
|
2225
|
-
}
|
|
2226
|
-
static fromJson(jsonValue, options) {
|
|
2227
|
-
return new V4DecreaseLPPosition().fromJson(jsonValue, options);
|
|
2228
|
-
}
|
|
2229
|
-
static fromJsonString(jsonString, options) {
|
|
2230
|
-
return new V4DecreaseLPPosition().fromJsonString(jsonString, options);
|
|
2231
|
-
}
|
|
2232
|
-
static equals(a, b) {
|
|
2233
|
-
return proto3.util.equals(V4DecreaseLPPosition, a, b);
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
V4DecreaseLPPosition.runtime = proto3;
|
|
2237
|
-
V4DecreaseLPPosition.typeName = "trading.v1.V4DecreaseLPPosition";
|
|
2238
|
-
V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2239
|
-
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2240
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2241
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
2242
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2243
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2244
|
-
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2245
|
-
{ no: 7, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2246
|
-
{ no: 8, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2247
|
-
{ no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2248
|
-
{ no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2249
|
-
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2250
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2251
|
-
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2252
|
-
]);
|
|
2253
|
-
/**
|
|
2254
|
-
* @generated from message trading.v1.IncreaseLPPositionRequest
|
|
2255
|
-
*/
|
|
2256
|
-
export class IncreaseLPPositionRequest extends Message {
|
|
2257
|
-
constructor(data) {
|
|
2258
|
-
super();
|
|
2259
|
-
/**
|
|
2260
|
-
* @generated from oneof trading.v1.IncreaseLPPositionRequest.increaseLpPosition
|
|
2261
|
-
*/
|
|
2262
|
-
this.increaseLpPosition = { case: undefined };
|
|
2263
|
-
proto3.util.initPartial(data, this);
|
|
2264
|
-
}
|
|
2265
|
-
static fromBinary(bytes, options) {
|
|
2266
|
-
return new IncreaseLPPositionRequest().fromBinary(bytes, options);
|
|
2267
|
-
}
|
|
2268
|
-
static fromJson(jsonValue, options) {
|
|
2269
|
-
return new IncreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
2270
|
-
}
|
|
2271
|
-
static fromJsonString(jsonString, options) {
|
|
2272
|
-
return new IncreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
2273
|
-
}
|
|
2274
|
-
static equals(a, b) {
|
|
2275
|
-
return proto3.util.equals(IncreaseLPPositionRequest, a, b);
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
IncreaseLPPositionRequest.runtime = proto3;
|
|
2279
|
-
IncreaseLPPositionRequest.typeName = "trading.v1.IncreaseLPPositionRequest";
|
|
2280
|
-
IncreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
2281
|
-
{ no: 1, name: "v2_increase_lp_position", kind: "message", T: V2IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2282
|
-
{ no: 2, name: "v3_increase_lp_position", kind: "message", T: V3IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2283
|
-
{ no: 3, name: "v4_increase_lp_position", kind: "message", T: V4IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
2284
|
-
]);
|
|
2285
|
-
/**
|
|
2286
|
-
* @generated from message trading.v1.IncreaseLPPositionResponse
|
|
2287
|
-
*/
|
|
2288
|
-
export class IncreaseLPPositionResponse extends Message {
|
|
2289
|
-
constructor(data) {
|
|
2290
|
-
super();
|
|
2291
|
-
/**
|
|
2292
|
-
* @generated from field: string request_id = 1;
|
|
2293
|
-
*/
|
|
2294
|
-
this.requestId = "";
|
|
2295
|
-
proto3.util.initPartial(data, this);
|
|
2296
|
-
}
|
|
2297
|
-
static fromBinary(bytes, options) {
|
|
2298
|
-
return new IncreaseLPPositionResponse().fromBinary(bytes, options);
|
|
2299
|
-
}
|
|
2300
|
-
static fromJson(jsonValue, options) {
|
|
2301
|
-
return new IncreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
2302
|
-
}
|
|
2303
|
-
static fromJsonString(jsonString, options) {
|
|
2304
|
-
return new IncreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
2305
|
-
}
|
|
2306
|
-
static equals(a, b) {
|
|
2307
|
-
return proto3.util.equals(IncreaseLPPositionResponse, a, b);
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
IncreaseLPPositionResponse.runtime = proto3;
|
|
2311
|
-
IncreaseLPPositionResponse.typeName = "trading.v1.IncreaseLPPositionResponse";
|
|
2312
|
-
IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2313
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2314
|
-
{ no: 2, name: "increase", kind: "message", T: TransactionRequest, opt: true },
|
|
2315
|
-
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2316
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2317
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2318
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2319
|
-
]);
|
|
2320
|
-
/**
|
|
2321
|
-
* @generated from message trading.v1.V2IncreaseLPPosition
|
|
2322
|
-
*/
|
|
2323
|
-
export class V2IncreaseLPPosition extends Message {
|
|
2324
|
-
constructor(data) {
|
|
2325
|
-
super();
|
|
2326
|
-
/**
|
|
2327
|
-
* @generated from field: trading.v1.Protocols protocols = 1;
|
|
2328
|
-
*/
|
|
2329
|
-
this.protocols = Protocols.V2;
|
|
2330
|
-
/**
|
|
2331
|
-
* @generated from field: string wallet_address = 3;
|
|
2332
|
-
*/
|
|
2333
|
-
this.walletAddress = "";
|
|
2334
|
-
/**
|
|
2335
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
2336
|
-
*/
|
|
2337
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2338
|
-
/**
|
|
2339
|
-
* @generated from field: bool simulate_transaction = 12;
|
|
2340
|
-
*/
|
|
2341
|
-
this.simulateTransaction = false;
|
|
2342
|
-
proto3.util.initPartial(data, this);
|
|
2343
|
-
}
|
|
2344
|
-
static fromBinary(bytes, options) {
|
|
2345
|
-
return new V2IncreaseLPPosition().fromBinary(bytes, options);
|
|
2346
|
-
}
|
|
2347
|
-
static fromJson(jsonValue, options) {
|
|
2348
|
-
return new V2IncreaseLPPosition().fromJson(jsonValue, options);
|
|
2349
|
-
}
|
|
2350
|
-
static fromJsonString(jsonString, options) {
|
|
2351
|
-
return new V2IncreaseLPPosition().fromJsonString(jsonString, options);
|
|
2352
|
-
}
|
|
2353
|
-
static equals(a, b) {
|
|
2354
|
-
return proto3.util.equals(V2IncreaseLPPosition, a, b);
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
V2IncreaseLPPosition.runtime = proto3;
|
|
2358
|
-
V2IncreaseLPPosition.typeName = "trading.v1.V2IncreaseLPPosition";
|
|
2359
|
-
V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
2360
|
-
{ no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
2361
|
-
{ no: 2, name: "position", kind: "message", T: V2Position },
|
|
2362
|
-
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2363
|
-
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2364
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2365
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2366
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2367
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2368
|
-
{ no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2369
|
-
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2370
|
-
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2371
|
-
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
694
|
+
* @generated from enum value: OrderType_DUTCH_LIMIT = 1;
|
|
695
|
+
*/
|
|
696
|
+
OrderType[OrderType["OrderType_DUTCH_LIMIT"] = 1] = "OrderType_DUTCH_LIMIT";
|
|
697
|
+
/**
|
|
698
|
+
* @generated from enum value: OrderType_DUTCH_V2 = 2;
|
|
699
|
+
*/
|
|
700
|
+
OrderType[OrderType["OrderType_DUTCH_V2"] = 2] = "OrderType_DUTCH_V2";
|
|
701
|
+
/**
|
|
702
|
+
* @generated from enum value: OrderType_PRIORITY = 3;
|
|
703
|
+
*/
|
|
704
|
+
OrderType[OrderType["OrderType_PRIORITY"] = 3] = "OrderType_PRIORITY";
|
|
705
|
+
/**
|
|
706
|
+
* @generated from enum value: OrderType_DUTCH_V3 = 4;
|
|
707
|
+
*/
|
|
708
|
+
OrderType[OrderType["OrderType_DUTCH_V3"] = 4] = "OrderType_DUTCH_V3";
|
|
709
|
+
})(OrderType || (OrderType = {}));
|
|
710
|
+
// Retrieve enum metadata with: proto3.getEnumType(OrderType)
|
|
711
|
+
proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
|
|
712
|
+
{ no: 0, name: "ORDER_TYPE_UNSPECIFIED" },
|
|
713
|
+
{ no: 1, name: "OrderType_DUTCH_LIMIT" },
|
|
714
|
+
{ no: 2, name: "OrderType_DUTCH_V2" },
|
|
715
|
+
{ no: 3, name: "OrderType_PRIORITY" },
|
|
716
|
+
{ no: 4, name: "OrderType_DUTCH_V3" },
|
|
2372
717
|
]);
|
|
2373
718
|
/**
|
|
2374
|
-
* @generated from message trading.v1.
|
|
719
|
+
* @generated from message trading.v1.Encode7702Request
|
|
2375
720
|
*/
|
|
2376
|
-
export class
|
|
721
|
+
export class Encode7702Request extends Message {
|
|
2377
722
|
constructor(data) {
|
|
2378
723
|
super();
|
|
2379
724
|
/**
|
|
2380
|
-
* @generated from field: trading.v1.
|
|
2381
|
-
*/
|
|
2382
|
-
this.protocols = Protocols.V2;
|
|
2383
|
-
/**
|
|
2384
|
-
* @generated from field: int32 tokenId = 2;
|
|
725
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
2385
726
|
*/
|
|
2386
|
-
this.
|
|
727
|
+
this.calls = [];
|
|
2387
728
|
/**
|
|
2388
|
-
* @generated from field: string wallet_address =
|
|
729
|
+
* @generated from field: string wallet_address = 2;
|
|
2389
730
|
*/
|
|
2390
731
|
this.walletAddress = "";
|
|
2391
732
|
/**
|
|
2392
|
-
* @generated from field:
|
|
2393
|
-
*/
|
|
2394
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2395
|
-
/**
|
|
2396
|
-
* @generated from field: bool simulate_transaction = 16;
|
|
733
|
+
* @generated from field: string smart_contract_delegation_address = 3;
|
|
2397
734
|
*/
|
|
2398
|
-
this.
|
|
735
|
+
this.smartContractDelegationAddress = "";
|
|
2399
736
|
proto3.util.initPartial(data, this);
|
|
2400
737
|
}
|
|
2401
738
|
static fromBinary(bytes, options) {
|
|
2402
|
-
return new
|
|
739
|
+
return new Encode7702Request().fromBinary(bytes, options);
|
|
2403
740
|
}
|
|
2404
741
|
static fromJson(jsonValue, options) {
|
|
2405
|
-
return new
|
|
742
|
+
return new Encode7702Request().fromJson(jsonValue, options);
|
|
2406
743
|
}
|
|
2407
744
|
static fromJsonString(jsonString, options) {
|
|
2408
|
-
return new
|
|
745
|
+
return new Encode7702Request().fromJsonString(jsonString, options);
|
|
2409
746
|
}
|
|
2410
747
|
static equals(a, b) {
|
|
2411
|
-
return proto3.util.equals(
|
|
748
|
+
return proto3.util.equals(Encode7702Request, a, b);
|
|
2412
749
|
}
|
|
2413
750
|
}
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
{ no: 1, name: "
|
|
2418
|
-
{ no: 2, name: "
|
|
2419
|
-
{ no: 3, name: "
|
|
2420
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2421
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2422
|
-
{ no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2423
|
-
{ no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2424
|
-
{ no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2425
|
-
{ no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2426
|
-
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2427
|
-
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2428
|
-
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2429
|
-
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2430
|
-
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2431
|
-
{ no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
751
|
+
Encode7702Request.runtime = proto3;
|
|
752
|
+
Encode7702Request.typeName = "trading.v1.Encode7702Request";
|
|
753
|
+
Encode7702Request.fields = proto3.util.newFieldList(() => [
|
|
754
|
+
{ no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
|
|
755
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
756
|
+
{ no: 3, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2432
757
|
]);
|
|
2433
758
|
/**
|
|
2434
|
-
* @generated from message trading.v1.
|
|
759
|
+
* @generated from message trading.v1.Encode7702Response
|
|
2435
760
|
*/
|
|
2436
|
-
export class
|
|
761
|
+
export class Encode7702Response extends Message {
|
|
2437
762
|
constructor(data) {
|
|
2438
763
|
super();
|
|
2439
764
|
/**
|
|
2440
|
-
* @generated from field:
|
|
2441
|
-
*/
|
|
2442
|
-
this.protocols = Protocols.V2;
|
|
2443
|
-
/**
|
|
2444
|
-
* @generated from field: int32 tokenId = 2;
|
|
2445
|
-
*/
|
|
2446
|
-
this.tokenId = 0;
|
|
2447
|
-
/**
|
|
2448
|
-
* @generated from field: string wallet_address = 4;
|
|
2449
|
-
*/
|
|
2450
|
-
this.walletAddress = "";
|
|
2451
|
-
/**
|
|
2452
|
-
* @generated from field: trading.v1.ChainId chain_id = 5;
|
|
2453
|
-
*/
|
|
2454
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2455
|
-
/**
|
|
2456
|
-
* @generated from field: bool simulate_transaction = 16;
|
|
765
|
+
* @generated from field: string request_id = 1;
|
|
2457
766
|
*/
|
|
2458
|
-
this.
|
|
767
|
+
this.requestId = "";
|
|
2459
768
|
proto3.util.initPartial(data, this);
|
|
2460
769
|
}
|
|
2461
770
|
static fromBinary(bytes, options) {
|
|
2462
|
-
return new
|
|
771
|
+
return new Encode7702Response().fromBinary(bytes, options);
|
|
2463
772
|
}
|
|
2464
773
|
static fromJson(jsonValue, options) {
|
|
2465
|
-
return new
|
|
774
|
+
return new Encode7702Response().fromJson(jsonValue, options);
|
|
2466
775
|
}
|
|
2467
776
|
static fromJsonString(jsonString, options) {
|
|
2468
|
-
return new
|
|
777
|
+
return new Encode7702Response().fromJsonString(jsonString, options);
|
|
2469
778
|
}
|
|
2470
779
|
static equals(a, b) {
|
|
2471
|
-
return proto3.util.equals(
|
|
780
|
+
return proto3.util.equals(Encode7702Response, a, b);
|
|
2472
781
|
}
|
|
2473
782
|
}
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
{ no: 1, name: "
|
|
2478
|
-
{ no: 2, name: "
|
|
2479
|
-
{ no: 3, name: "position", kind: "message", T: V4Position },
|
|
2480
|
-
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2481
|
-
{ no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2482
|
-
{ no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2483
|
-
{ no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2484
|
-
{ no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2485
|
-
{ no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2486
|
-
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2487
|
-
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2488
|
-
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2489
|
-
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2490
|
-
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2491
|
-
{ no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2492
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2493
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
783
|
+
Encode7702Response.runtime = proto3;
|
|
784
|
+
Encode7702Response.typeName = "trading.v1.Encode7702Response";
|
|
785
|
+
Encode7702Response.fields = proto3.util.newFieldList(() => [
|
|
786
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
787
|
+
{ no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
|
|
2494
788
|
]);
|
|
2495
789
|
/**
|
|
2496
|
-
* @generated from message trading.v1.
|
|
790
|
+
* @generated from message trading.v1.Swap5792Request
|
|
2497
791
|
*/
|
|
2498
|
-
export class
|
|
792
|
+
export class Swap5792Request extends Message {
|
|
2499
793
|
constructor(data) {
|
|
2500
794
|
super();
|
|
2501
795
|
/**
|
|
2502
|
-
* @generated from oneof trading.v1.
|
|
796
|
+
* @generated from oneof trading.v1.Swap5792Request.quote
|
|
797
|
+
*/
|
|
798
|
+
this.quote = { case: undefined };
|
|
799
|
+
/**
|
|
800
|
+
* @generated from field: int64 deadline = 5;
|
|
2503
801
|
*/
|
|
2504
|
-
this.
|
|
802
|
+
this.deadline = protoInt64.zero;
|
|
2505
803
|
proto3.util.initPartial(data, this);
|
|
2506
804
|
}
|
|
2507
805
|
static fromBinary(bytes, options) {
|
|
2508
|
-
return new
|
|
806
|
+
return new Swap5792Request().fromBinary(bytes, options);
|
|
2509
807
|
}
|
|
2510
808
|
static fromJson(jsonValue, options) {
|
|
2511
|
-
return new
|
|
809
|
+
return new Swap5792Request().fromJson(jsonValue, options);
|
|
2512
810
|
}
|
|
2513
811
|
static fromJsonString(jsonString, options) {
|
|
2514
|
-
return new
|
|
812
|
+
return new Swap5792Request().fromJsonString(jsonString, options);
|
|
2515
813
|
}
|
|
2516
814
|
static equals(a, b) {
|
|
2517
|
-
return proto3.util.equals(
|
|
815
|
+
return proto3.util.equals(Swap5792Request, a, b);
|
|
2518
816
|
}
|
|
2519
817
|
}
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
{ no: 1, name: "
|
|
2524
|
-
{ no: 2, name: "
|
|
2525
|
-
{ no: 3, name: "
|
|
818
|
+
Swap5792Request.runtime = proto3;
|
|
819
|
+
Swap5792Request.typeName = "trading.v1.Swap5792Request";
|
|
820
|
+
Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
821
|
+
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
|
|
822
|
+
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
|
|
823
|
+
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
|
|
824
|
+
{ no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
825
|
+
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
826
|
+
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
2526
827
|
]);
|
|
2527
828
|
/**
|
|
2528
|
-
* @generated from message trading.v1.
|
|
829
|
+
* @generated from message trading.v1.Swap5792Response
|
|
2529
830
|
*/
|
|
2530
|
-
export class
|
|
831
|
+
export class Swap5792Response extends Message {
|
|
2531
832
|
constructor(data) {
|
|
2532
833
|
super();
|
|
2533
834
|
/**
|
|
2534
835
|
* @generated from field: string request_id = 1;
|
|
2535
836
|
*/
|
|
2536
837
|
this.requestId = "";
|
|
2537
|
-
proto3.util.initPartial(data, this);
|
|
2538
|
-
}
|
|
2539
|
-
static fromBinary(bytes, options) {
|
|
2540
|
-
return new CreateLPPositionResponse().fromBinary(bytes, options);
|
|
2541
|
-
}
|
|
2542
|
-
static fromJson(jsonValue, options) {
|
|
2543
|
-
return new CreateLPPositionResponse().fromJson(jsonValue, options);
|
|
2544
|
-
}
|
|
2545
|
-
static fromJsonString(jsonString, options) {
|
|
2546
|
-
return new CreateLPPositionResponse().fromJsonString(jsonString, options);
|
|
2547
|
-
}
|
|
2548
|
-
static equals(a, b) {
|
|
2549
|
-
return proto3.util.equals(CreateLPPositionResponse, a, b);
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
CreateLPPositionResponse.runtime = proto3;
|
|
2553
|
-
CreateLPPositionResponse.typeName = "trading.v1.CreateLPPositionResponse";
|
|
2554
|
-
CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
2555
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2556
|
-
{ no: 2, name: "create", kind: "message", T: TransactionRequest, opt: true },
|
|
2557
|
-
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2558
|
-
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2559
|
-
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2560
|
-
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2561
|
-
]);
|
|
2562
|
-
/**
|
|
2563
|
-
* @generated from message trading.v1.V2CreateLPPosition
|
|
2564
|
-
*/
|
|
2565
|
-
export class V2CreateLPPosition extends Message {
|
|
2566
|
-
constructor(data) {
|
|
2567
|
-
super();
|
|
2568
838
|
/**
|
|
2569
|
-
* @generated from field:
|
|
839
|
+
* @generated from field: string from = 2;
|
|
2570
840
|
*/
|
|
2571
|
-
this.
|
|
841
|
+
this.from = "";
|
|
2572
842
|
/**
|
|
2573
|
-
* @generated from field:
|
|
843
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
2574
844
|
*/
|
|
2575
|
-
this.
|
|
845
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2576
846
|
/**
|
|
2577
|
-
* @generated from field: trading.v1.
|
|
847
|
+
* @generated from field: repeated trading.v1.TransactionRequest5792 calls = 4;
|
|
2578
848
|
*/
|
|
2579
|
-
this.
|
|
849
|
+
this.calls = [];
|
|
2580
850
|
/**
|
|
2581
|
-
* @generated from field:
|
|
851
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
2582
852
|
*/
|
|
2583
|
-
this.
|
|
853
|
+
this.gasEstimates = [];
|
|
2584
854
|
proto3.util.initPartial(data, this);
|
|
2585
855
|
}
|
|
2586
856
|
static fromBinary(bytes, options) {
|
|
2587
|
-
return new
|
|
857
|
+
return new Swap5792Response().fromBinary(bytes, options);
|
|
2588
858
|
}
|
|
2589
859
|
static fromJson(jsonValue, options) {
|
|
2590
|
-
return new
|
|
860
|
+
return new Swap5792Response().fromJson(jsonValue, options);
|
|
2591
861
|
}
|
|
2592
862
|
static fromJsonString(jsonString, options) {
|
|
2593
|
-
return new
|
|
863
|
+
return new Swap5792Response().fromJsonString(jsonString, options);
|
|
2594
864
|
}
|
|
2595
865
|
static equals(a, b) {
|
|
2596
|
-
return proto3.util.equals(
|
|
866
|
+
return proto3.util.equals(Swap5792Response, a, b);
|
|
2597
867
|
}
|
|
2598
868
|
}
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
{ no: 1, name: "
|
|
2603
|
-
{ no: 2, name: "
|
|
2604
|
-
{ no: 3, name: "
|
|
2605
|
-
{ no: 4, name: "
|
|
2606
|
-
{ no: 5, name: "
|
|
2607
|
-
{ no: 6, name: "
|
|
2608
|
-
{ no: 7, name: "
|
|
2609
|
-
{ no: 8, name: "
|
|
2610
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2611
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2612
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2613
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
869
|
+
Swap5792Response.runtime = proto3;
|
|
870
|
+
Swap5792Response.typeName = "trading.v1.Swap5792Response";
|
|
871
|
+
Swap5792Response.fields = proto3.util.newFieldList(() => [
|
|
872
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
|
+
{ no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
874
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
875
|
+
{ no: 4, name: "calls", kind: "message", T: TransactionRequest5792, repeated: true },
|
|
876
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
877
|
+
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
878
|
+
{ no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
879
|
+
{ no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2614
880
|
]);
|
|
2615
881
|
/**
|
|
2616
|
-
* @generated from message trading.v1.
|
|
882
|
+
* @generated from message trading.v1.SendRequest
|
|
2617
883
|
*/
|
|
2618
|
-
export class
|
|
884
|
+
export class SendRequest extends Message {
|
|
2619
885
|
constructor(data) {
|
|
2620
886
|
super();
|
|
2621
887
|
/**
|
|
2622
|
-
* @generated from field:
|
|
888
|
+
* @generated from field: string sender = 1;
|
|
2623
889
|
*/
|
|
2624
|
-
this.
|
|
890
|
+
this.sender = "";
|
|
2625
891
|
/**
|
|
2626
|
-
* @generated from field: string
|
|
892
|
+
* @generated from field: string recipient = 2;
|
|
2627
893
|
*/
|
|
2628
|
-
this.
|
|
894
|
+
this.recipient = "";
|
|
2629
895
|
/**
|
|
2630
|
-
* @generated from field: trading.v1.ChainId chain_id =
|
|
896
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
2631
897
|
*/
|
|
2632
898
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
2633
899
|
/**
|
|
2634
|
-
* @generated from field:
|
|
900
|
+
* @generated from field: string token = 4;
|
|
901
|
+
*/
|
|
902
|
+
this.token = "";
|
|
903
|
+
/**
|
|
904
|
+
* @generated from field: string amount = 5;
|
|
2635
905
|
*/
|
|
2636
|
-
this.
|
|
906
|
+
this.amount = "";
|
|
907
|
+
/**
|
|
908
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
|
|
909
|
+
*/
|
|
910
|
+
this.gasStrategies = [];
|
|
2637
911
|
proto3.util.initPartial(data, this);
|
|
2638
912
|
}
|
|
2639
913
|
static fromBinary(bytes, options) {
|
|
2640
|
-
return new
|
|
914
|
+
return new SendRequest().fromBinary(bytes, options);
|
|
2641
915
|
}
|
|
2642
916
|
static fromJson(jsonValue, options) {
|
|
2643
|
-
return new
|
|
917
|
+
return new SendRequest().fromJson(jsonValue, options);
|
|
2644
918
|
}
|
|
2645
919
|
static fromJsonString(jsonString, options) {
|
|
2646
|
-
return new
|
|
920
|
+
return new SendRequest().fromJsonString(jsonString, options);
|
|
2647
921
|
}
|
|
2648
922
|
static equals(a, b) {
|
|
2649
|
-
return proto3.util.equals(
|
|
923
|
+
return proto3.util.equals(SendRequest, a, b);
|
|
2650
924
|
}
|
|
2651
925
|
}
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
{ no: 1, name: "
|
|
2656
|
-
{ no: 2, name: "
|
|
2657
|
-
{ no: 3, name: "
|
|
2658
|
-
{ no: 4, name: "
|
|
2659
|
-
{ no:
|
|
2660
|
-
{ no:
|
|
2661
|
-
{ no:
|
|
2662
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2663
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2664
|
-
{ no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2665
|
-
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2666
|
-
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2667
|
-
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2668
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2669
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2670
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2671
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2672
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2673
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
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 },
|
|
2674
936
|
]);
|
|
2675
937
|
/**
|
|
2676
|
-
* @generated from message trading.v1.
|
|
938
|
+
* @generated from message trading.v1.SendResponse
|
|
2677
939
|
*/
|
|
2678
|
-
export class
|
|
940
|
+
export class SendResponse extends Message {
|
|
2679
941
|
constructor(data) {
|
|
2680
942
|
super();
|
|
2681
943
|
/**
|
|
2682
|
-
* @generated from field:
|
|
2683
|
-
*/
|
|
2684
|
-
this.protocols = Protocols.V2;
|
|
2685
|
-
/**
|
|
2686
|
-
* @generated from field: string wallet_address = 3;
|
|
2687
|
-
*/
|
|
2688
|
-
this.walletAddress = "";
|
|
2689
|
-
/**
|
|
2690
|
-
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
944
|
+
* @generated from field: string request_id = 1;
|
|
2691
945
|
*/
|
|
2692
|
-
this.
|
|
946
|
+
this.requestId = "";
|
|
2693
947
|
/**
|
|
2694
|
-
* @generated from field:
|
|
948
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
|
|
2695
949
|
*/
|
|
2696
|
-
this.
|
|
950
|
+
this.gasEstimates = [];
|
|
2697
951
|
proto3.util.initPartial(data, this);
|
|
2698
952
|
}
|
|
2699
953
|
static fromBinary(bytes, options) {
|
|
2700
|
-
return new
|
|
954
|
+
return new SendResponse().fromBinary(bytes, options);
|
|
2701
955
|
}
|
|
2702
956
|
static fromJson(jsonValue, options) {
|
|
2703
|
-
return new
|
|
957
|
+
return new SendResponse().fromJson(jsonValue, options);
|
|
2704
958
|
}
|
|
2705
959
|
static fromJsonString(jsonString, options) {
|
|
2706
|
-
return new
|
|
960
|
+
return new SendResponse().fromJsonString(jsonString, options);
|
|
2707
961
|
}
|
|
2708
962
|
static equals(a, b) {
|
|
2709
|
-
return proto3.util.equals(
|
|
963
|
+
return proto3.util.equals(SendResponse, a, b);
|
|
2710
964
|
}
|
|
2711
965
|
}
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
{ no: 1, name: "
|
|
2716
|
-
{ no: 2, name: "
|
|
2717
|
-
{ no: 3, name: "
|
|
2718
|
-
{ no: 4, name: "
|
|
2719
|
-
{ no:
|
|
2720
|
-
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2721
|
-
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2722
|
-
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2723
|
-
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
2724
|
-
{ no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2725
|
-
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2726
|
-
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
2727
|
-
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2728
|
-
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2729
|
-
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
2730
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2731
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2732
|
-
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2733
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
966
|
+
SendResponse.runtime = proto3;
|
|
967
|
+
SendResponse.typeName = "trading.v1.SendResponse";
|
|
968
|
+
SendResponse.fields = proto3.util.newFieldList(() => [
|
|
969
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
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 },
|
|
2734
974
|
]);
|
|
2735
975
|
/**
|
|
2736
976
|
* @generated from message trading.v1.V4Position
|
|
@@ -2986,83 +1226,6 @@ TypedDataDomain.fields = proto3.util.newFieldList(() => [
|
|
|
2986
1226
|
{ no: 4, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2987
1227
|
{ no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2988
1228
|
]);
|
|
2989
|
-
/**
|
|
2990
|
-
* @generated from message trading.v1.NFTPermitValues
|
|
2991
|
-
*/
|
|
2992
|
-
export class NFTPermitValues extends Message {
|
|
2993
|
-
constructor(data) {
|
|
2994
|
-
super();
|
|
2995
|
-
/**
|
|
2996
|
-
* @generated from field: string spender = 1;
|
|
2997
|
-
*/
|
|
2998
|
-
this.spender = "";
|
|
2999
|
-
/**
|
|
3000
|
-
* @generated from field: int32 tokenId = 2;
|
|
3001
|
-
*/
|
|
3002
|
-
this.tokenId = 0;
|
|
3003
|
-
/**
|
|
3004
|
-
* @generated from field: string deadline = 3;
|
|
3005
|
-
*/
|
|
3006
|
-
this.deadline = "";
|
|
3007
|
-
/**
|
|
3008
|
-
* @generated from field: string nonce = 4;
|
|
3009
|
-
*/
|
|
3010
|
-
this.nonce = "";
|
|
3011
|
-
proto3.util.initPartial(data, this);
|
|
3012
|
-
}
|
|
3013
|
-
static fromBinary(bytes, options) {
|
|
3014
|
-
return new NFTPermitValues().fromBinary(bytes, options);
|
|
3015
|
-
}
|
|
3016
|
-
static fromJson(jsonValue, options) {
|
|
3017
|
-
return new NFTPermitValues().fromJson(jsonValue, options);
|
|
3018
|
-
}
|
|
3019
|
-
static fromJsonString(jsonString, options) {
|
|
3020
|
-
return new NFTPermitValues().fromJsonString(jsonString, options);
|
|
3021
|
-
}
|
|
3022
|
-
static equals(a, b) {
|
|
3023
|
-
return proto3.util.equals(NFTPermitValues, a, b);
|
|
3024
|
-
}
|
|
3025
|
-
}
|
|
3026
|
-
NFTPermitValues.runtime = proto3;
|
|
3027
|
-
NFTPermitValues.typeName = "trading.v1.NFTPermitValues";
|
|
3028
|
-
NFTPermitValues.fields = proto3.util.newFieldList(() => [
|
|
3029
|
-
{ no: 1, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3030
|
-
{ no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
3031
|
-
{ no: 3, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3032
|
-
{ no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3033
|
-
]);
|
|
3034
|
-
/**
|
|
3035
|
-
* @generated from message trading.v1.NFTPermitData
|
|
3036
|
-
*/
|
|
3037
|
-
export class NFTPermitData extends Message {
|
|
3038
|
-
constructor(data) {
|
|
3039
|
-
super();
|
|
3040
|
-
/**
|
|
3041
|
-
* @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
|
|
3042
|
-
*/
|
|
3043
|
-
this.types = {};
|
|
3044
|
-
proto3.util.initPartial(data, this);
|
|
3045
|
-
}
|
|
3046
|
-
static fromBinary(bytes, options) {
|
|
3047
|
-
return new NFTPermitData().fromBinary(bytes, options);
|
|
3048
|
-
}
|
|
3049
|
-
static fromJson(jsonValue, options) {
|
|
3050
|
-
return new NFTPermitData().fromJson(jsonValue, options);
|
|
3051
|
-
}
|
|
3052
|
-
static fromJsonString(jsonString, options) {
|
|
3053
|
-
return new NFTPermitData().fromJsonString(jsonString, options);
|
|
3054
|
-
}
|
|
3055
|
-
static equals(a, b) {
|
|
3056
|
-
return proto3.util.equals(NFTPermitData, a, b);
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3059
|
-
NFTPermitData.runtime = proto3;
|
|
3060
|
-
NFTPermitData.typeName = "trading.v1.NFTPermitData";
|
|
3061
|
-
NFTPermitData.fields = proto3.util.newFieldList(() => [
|
|
3062
|
-
{ no: 1, name: "domain", kind: "message", T: TypedDataDomain },
|
|
3063
|
-
{ no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
|
|
3064
|
-
{ no: 3, name: "values", kind: "message", T: NFTPermitValues },
|
|
3065
|
-
]);
|
|
3066
1229
|
/**
|
|
3067
1230
|
* @generated from message trading.v1.PermitBatchData
|
|
3068
1231
|
*/
|
|
@@ -6672,6 +4835,7 @@ TruncatedPlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
6672
4835
|
{ no: 3, name: "token_in_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6673
4836
|
{ no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6674
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 },
|
|
6675
4839
|
]);
|
|
6676
4840
|
/**
|
|
6677
4841
|
* @generated from message trading.v1.ChainedQuote
|
|
@@ -6745,6 +4909,8 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6745
4909
|
{ no: 14, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
|
|
6746
4910
|
{ no: 15, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
6747
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 },
|
|
6748
4914
|
]);
|
|
6749
4915
|
/**
|
|
6750
4916
|
* @generated from message trading.v1.PermitTransferFromData
|
|
@@ -7711,6 +5877,7 @@ PlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
7711
5877
|
{ no: 21, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7712
5878
|
{ no: 22, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7713
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 },
|
|
7714
5881
|
]);
|
|
7715
5882
|
/**
|
|
7716
5883
|
* @generated from enum trading.v1.PlanStep.StepStatus
|
|
@@ -7972,7 +6139,12 @@ PlanResponse.fields = proto3.util.newFieldList(() => [
|
|
|
7972
6139
|
{ no: 13, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols), repeated: true },
|
|
7973
6140
|
{ no: 14, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
7974
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 },
|
|
7975
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 },
|
|
7976
6148
|
]);
|
|
7977
6149
|
/**
|
|
7978
6150
|
* @generated from enum trading.v1.PlanResponse.PlanStatus
|
|
@@ -7995,6 +6167,10 @@ export var PlanResponse_PlanStatus;
|
|
|
7995
6167
|
* @generated from enum value: FAILED = 3;
|
|
7996
6168
|
*/
|
|
7997
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";
|
|
7998
6174
|
})(PlanResponse_PlanStatus || (PlanResponse_PlanStatus = {}));
|
|
7999
6175
|
// Retrieve enum metadata with: proto3.getEnumType(PlanResponse_PlanStatus)
|
|
8000
6176
|
proto3.util.setEnumType(PlanResponse_PlanStatus, "trading.v1.PlanResponse.PlanStatus", [
|
|
@@ -8002,6 +6178,7 @@ proto3.util.setEnumType(PlanResponse_PlanStatus, "trading.v1.PlanResponse.PlanSt
|
|
|
8002
6178
|
{ no: 1, name: "IN_PROGRESS" },
|
|
8003
6179
|
{ no: 2, name: "COMPLETED" },
|
|
8004
6180
|
{ no: 3, name: "FAILED" },
|
|
6181
|
+
{ no: 4, name: "AWAITING_ACTION" },
|
|
8005
6182
|
]);
|
|
8006
6183
|
/**
|
|
8007
6184
|
* @generated from message trading.v1.DocsRequest
|