@uniswap/client-data-api 0.0.14 → 0.0.16
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/data/v1/api-DataApiService_connectquery.d.ts +92 -1
- package/dist/data/v1/api-DataApiService_connectquery.js +92 -1
- package/dist/data/v1/api_connect.d.ts +64 -1
- package/dist/data/v1/api_connect.js +64 -1
- package/dist/data/v1/api_pb.d.ts +386 -0
- package/dist/data/v1/api_pb.js +520 -0
- package/dist/data/v1/poolTypes_pb.d.ts +457 -0
- package/dist/data/v1/poolTypes_pb.js +593 -0
- package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +15 -0
- package/dist/data/v1/workerService-WorkerService_connectquery.js +19 -0
- package/dist/data/v1/workerService_connect.d.ts +19 -0
- package/dist/data/v1/workerService_connect.js +23 -0
- package/dist/data/v1/workerService_pb.d.ts +74 -0
- package/dist/data/v1/workerService_pb.js +121 -0
- package/package.json +1 -1
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
7
|
+
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* @generated from enum data.v1.Platform
|
|
9
10
|
*/
|
|
@@ -23,6 +24,25 @@ proto3.util.setEnumType(Platform, "data.v1.Platform", [
|
|
|
23
24
|
{ no: 0, name: "EVM" },
|
|
24
25
|
{ no: 1, name: "SVM" },
|
|
25
26
|
]);
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum data.v1.OrderBy
|
|
29
|
+
*/
|
|
30
|
+
export var OrderBy;
|
|
31
|
+
(function (OrderBy) {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: ORDER_BY_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
OrderBy[OrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: ORDER_BY_CREATION_DATE = 1;
|
|
38
|
+
*/
|
|
39
|
+
OrderBy[OrderBy["CREATION_DATE"] = 1] = "CREATION_DATE";
|
|
40
|
+
})(OrderBy || (OrderBy = {}));
|
|
41
|
+
// Retrieve enum metadata with: proto3.getEnumType(OrderBy)
|
|
42
|
+
proto3.util.setEnumType(OrderBy, "data.v1.OrderBy", [
|
|
43
|
+
{ no: 0, name: "ORDER_BY_UNSPECIFIED" },
|
|
44
|
+
{ no: 1, name: "ORDER_BY_CREATION_DATE" },
|
|
45
|
+
]);
|
|
26
46
|
/**
|
|
27
47
|
* @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
|
|
28
48
|
*/
|
|
@@ -802,3 +822,503 @@ CreateTokenFactoryPresignedUrlResponse.typeName = "data.v1.CreateTokenFactoryPre
|
|
|
802
822
|
CreateTokenFactoryPresignedUrlResponse.fields = proto3.util.newFieldList(() => [
|
|
803
823
|
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
804
824
|
]);
|
|
825
|
+
/**
|
|
826
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerRequest
|
|
827
|
+
*/
|
|
828
|
+
export class InvokeTokenFactorySubgraphSyncerRequest extends Message {
|
|
829
|
+
constructor(data) {
|
|
830
|
+
super();
|
|
831
|
+
proto3.util.initPartial(data, this);
|
|
832
|
+
}
|
|
833
|
+
static fromBinary(bytes, options) {
|
|
834
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromBinary(bytes, options);
|
|
835
|
+
}
|
|
836
|
+
static fromJson(jsonValue, options) {
|
|
837
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromJson(jsonValue, options);
|
|
838
|
+
}
|
|
839
|
+
static fromJsonString(jsonString, options) {
|
|
840
|
+
return new InvokeTokenFactorySubgraphSyncerRequest().fromJsonString(jsonString, options);
|
|
841
|
+
}
|
|
842
|
+
static equals(a, b) {
|
|
843
|
+
return proto3.util.equals(InvokeTokenFactorySubgraphSyncerRequest, a, b);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
InvokeTokenFactorySubgraphSyncerRequest.runtime = proto3;
|
|
847
|
+
InvokeTokenFactorySubgraphSyncerRequest.typeName = "data.v1.InvokeTokenFactorySubgraphSyncerRequest";
|
|
848
|
+
InvokeTokenFactorySubgraphSyncerRequest.fields = proto3.util.newFieldList(() => []);
|
|
849
|
+
/**
|
|
850
|
+
* @generated from message data.v1.InvokeTokenFactorySubgraphSyncerResponse
|
|
851
|
+
*/
|
|
852
|
+
export class InvokeTokenFactorySubgraphSyncerResponse extends Message {
|
|
853
|
+
constructor(data) {
|
|
854
|
+
super();
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: bool success = 1;
|
|
857
|
+
*/
|
|
858
|
+
this.success = false;
|
|
859
|
+
proto3.util.initPartial(data, this);
|
|
860
|
+
}
|
|
861
|
+
static fromBinary(bytes, options) {
|
|
862
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromBinary(bytes, options);
|
|
863
|
+
}
|
|
864
|
+
static fromJson(jsonValue, options) {
|
|
865
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromJson(jsonValue, options);
|
|
866
|
+
}
|
|
867
|
+
static fromJsonString(jsonString, options) {
|
|
868
|
+
return new InvokeTokenFactorySubgraphSyncerResponse().fromJsonString(jsonString, options);
|
|
869
|
+
}
|
|
870
|
+
static equals(a, b) {
|
|
871
|
+
return proto3.util.equals(InvokeTokenFactorySubgraphSyncerResponse, a, b);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
InvokeTokenFactorySubgraphSyncerResponse.runtime = proto3;
|
|
875
|
+
InvokeTokenFactorySubgraphSyncerResponse.typeName = "data.v1.InvokeTokenFactorySubgraphSyncerResponse";
|
|
876
|
+
InvokeTokenFactorySubgraphSyncerResponse.fields = proto3.util.newFieldList(() => [
|
|
877
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
878
|
+
]);
|
|
879
|
+
/**
|
|
880
|
+
* @generated from message data.v1.GetPairRequest
|
|
881
|
+
*/
|
|
882
|
+
export class GetPairRequest extends Message {
|
|
883
|
+
constructor(data) {
|
|
884
|
+
super();
|
|
885
|
+
/**
|
|
886
|
+
* @generated from field: uint32 chain_id = 1;
|
|
887
|
+
*/
|
|
888
|
+
this.chainId = 0;
|
|
889
|
+
/**
|
|
890
|
+
* @generated from field: string pair_address = 2;
|
|
891
|
+
*/
|
|
892
|
+
this.pairAddress = "";
|
|
893
|
+
proto3.util.initPartial(data, this);
|
|
894
|
+
}
|
|
895
|
+
static fromBinary(bytes, options) {
|
|
896
|
+
return new GetPairRequest().fromBinary(bytes, options);
|
|
897
|
+
}
|
|
898
|
+
static fromJson(jsonValue, options) {
|
|
899
|
+
return new GetPairRequest().fromJson(jsonValue, options);
|
|
900
|
+
}
|
|
901
|
+
static fromJsonString(jsonString, options) {
|
|
902
|
+
return new GetPairRequest().fromJsonString(jsonString, options);
|
|
903
|
+
}
|
|
904
|
+
static equals(a, b) {
|
|
905
|
+
return proto3.util.equals(GetPairRequest, a, b);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
GetPairRequest.runtime = proto3;
|
|
909
|
+
GetPairRequest.typeName = "data.v1.GetPairRequest";
|
|
910
|
+
GetPairRequest.fields = proto3.util.newFieldList(() => [
|
|
911
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
912
|
+
{ no: 2, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
913
|
+
]);
|
|
914
|
+
/**
|
|
915
|
+
* @generated from message data.v1.GetPairResponse
|
|
916
|
+
*/
|
|
917
|
+
export class GetPairResponse extends Message {
|
|
918
|
+
constructor(data) {
|
|
919
|
+
super();
|
|
920
|
+
proto3.util.initPartial(data, this);
|
|
921
|
+
}
|
|
922
|
+
static fromBinary(bytes, options) {
|
|
923
|
+
return new GetPairResponse().fromBinary(bytes, options);
|
|
924
|
+
}
|
|
925
|
+
static fromJson(jsonValue, options) {
|
|
926
|
+
return new GetPairResponse().fromJson(jsonValue, options);
|
|
927
|
+
}
|
|
928
|
+
static fromJsonString(jsonString, options) {
|
|
929
|
+
return new GetPairResponse().fromJsonString(jsonString, options);
|
|
930
|
+
}
|
|
931
|
+
static equals(a, b) {
|
|
932
|
+
return proto3.util.equals(GetPairResponse, a, b);
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
GetPairResponse.runtime = proto3;
|
|
936
|
+
GetPairResponse.typeName = "data.v1.GetPairResponse";
|
|
937
|
+
GetPairResponse.fields = proto3.util.newFieldList(() => [
|
|
938
|
+
{ no: 1, name: "pair", kind: "message", T: Pair },
|
|
939
|
+
]);
|
|
940
|
+
/**
|
|
941
|
+
* @generated from message data.v1.GetPoolRequest
|
|
942
|
+
*/
|
|
943
|
+
export class GetPoolRequest extends Message {
|
|
944
|
+
constructor(data) {
|
|
945
|
+
super();
|
|
946
|
+
/**
|
|
947
|
+
* @generated from field: uint32 chain_id = 1;
|
|
948
|
+
*/
|
|
949
|
+
this.chainId = 0;
|
|
950
|
+
/**
|
|
951
|
+
* @generated from field: string pool_id = 2;
|
|
952
|
+
*/
|
|
953
|
+
this.poolId = "";
|
|
954
|
+
/**
|
|
955
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 3;
|
|
956
|
+
*/
|
|
957
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
958
|
+
proto3.util.initPartial(data, this);
|
|
959
|
+
}
|
|
960
|
+
static fromBinary(bytes, options) {
|
|
961
|
+
return new GetPoolRequest().fromBinary(bytes, options);
|
|
962
|
+
}
|
|
963
|
+
static fromJson(jsonValue, options) {
|
|
964
|
+
return new GetPoolRequest().fromJson(jsonValue, options);
|
|
965
|
+
}
|
|
966
|
+
static fromJsonString(jsonString, options) {
|
|
967
|
+
return new GetPoolRequest().fromJsonString(jsonString, options);
|
|
968
|
+
}
|
|
969
|
+
static equals(a, b) {
|
|
970
|
+
return proto3.util.equals(GetPoolRequest, a, b);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
GetPoolRequest.runtime = proto3;
|
|
974
|
+
GetPoolRequest.typeName = "data.v1.GetPoolRequest";
|
|
975
|
+
GetPoolRequest.fields = proto3.util.newFieldList(() => [
|
|
976
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
977
|
+
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
978
|
+
{ no: 3, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
979
|
+
]);
|
|
980
|
+
/**
|
|
981
|
+
* @generated from message data.v1.GetPoolResponse
|
|
982
|
+
*/
|
|
983
|
+
export class GetPoolResponse extends Message {
|
|
984
|
+
constructor(data) {
|
|
985
|
+
super();
|
|
986
|
+
proto3.util.initPartial(data, this);
|
|
987
|
+
}
|
|
988
|
+
static fromBinary(bytes, options) {
|
|
989
|
+
return new GetPoolResponse().fromBinary(bytes, options);
|
|
990
|
+
}
|
|
991
|
+
static fromJson(jsonValue, options) {
|
|
992
|
+
return new GetPoolResponse().fromJson(jsonValue, options);
|
|
993
|
+
}
|
|
994
|
+
static fromJsonString(jsonString, options) {
|
|
995
|
+
return new GetPoolResponse().fromJsonString(jsonString, options);
|
|
996
|
+
}
|
|
997
|
+
static equals(a, b) {
|
|
998
|
+
return proto3.util.equals(GetPoolResponse, a, b);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
GetPoolResponse.runtime = proto3;
|
|
1002
|
+
GetPoolResponse.typeName = "data.v1.GetPoolResponse";
|
|
1003
|
+
GetPoolResponse.fields = proto3.util.newFieldList(() => [
|
|
1004
|
+
{ no: 1, name: "pool", kind: "message", T: Pool },
|
|
1005
|
+
]);
|
|
1006
|
+
/**
|
|
1007
|
+
* @generated from message data.v1.GetPositionRequest
|
|
1008
|
+
*/
|
|
1009
|
+
export class GetPositionRequest extends Message {
|
|
1010
|
+
constructor(data) {
|
|
1011
|
+
super();
|
|
1012
|
+
/**
|
|
1013
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1014
|
+
*/
|
|
1015
|
+
this.chainId = 0;
|
|
1016
|
+
/**
|
|
1017
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
1018
|
+
*/
|
|
1019
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1020
|
+
/**
|
|
1021
|
+
* required for V3/V4
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from field: string token_id = 3;
|
|
1024
|
+
*/
|
|
1025
|
+
this.tokenId = "";
|
|
1026
|
+
/**
|
|
1027
|
+
* required for V2
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from field: string pair_address = 4;
|
|
1030
|
+
*/
|
|
1031
|
+
this.pairAddress = "";
|
|
1032
|
+
/**
|
|
1033
|
+
* required for V2
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from field: string owner = 5;
|
|
1036
|
+
*/
|
|
1037
|
+
this.owner = "";
|
|
1038
|
+
proto3.util.initPartial(data, this);
|
|
1039
|
+
}
|
|
1040
|
+
static fromBinary(bytes, options) {
|
|
1041
|
+
return new GetPositionRequest().fromBinary(bytes, options);
|
|
1042
|
+
}
|
|
1043
|
+
static fromJson(jsonValue, options) {
|
|
1044
|
+
return new GetPositionRequest().fromJson(jsonValue, options);
|
|
1045
|
+
}
|
|
1046
|
+
static fromJsonString(jsonString, options) {
|
|
1047
|
+
return new GetPositionRequest().fromJsonString(jsonString, options);
|
|
1048
|
+
}
|
|
1049
|
+
static equals(a, b) {
|
|
1050
|
+
return proto3.util.equals(GetPositionRequest, a, b);
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
GetPositionRequest.runtime = proto3;
|
|
1054
|
+
GetPositionRequest.typeName = "data.v1.GetPositionRequest";
|
|
1055
|
+
GetPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
1056
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1057
|
+
{ no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1058
|
+
{ no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1059
|
+
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1060
|
+
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1061
|
+
]);
|
|
1062
|
+
/**
|
|
1063
|
+
* @generated from message data.v1.GetPositionResponse
|
|
1064
|
+
*/
|
|
1065
|
+
export class GetPositionResponse extends Message {
|
|
1066
|
+
constructor(data) {
|
|
1067
|
+
super();
|
|
1068
|
+
proto3.util.initPartial(data, this);
|
|
1069
|
+
}
|
|
1070
|
+
static fromBinary(bytes, options) {
|
|
1071
|
+
return new GetPositionResponse().fromBinary(bytes, options);
|
|
1072
|
+
}
|
|
1073
|
+
static fromJson(jsonValue, options) {
|
|
1074
|
+
return new GetPositionResponse().fromJson(jsonValue, options);
|
|
1075
|
+
}
|
|
1076
|
+
static fromJsonString(jsonString, options) {
|
|
1077
|
+
return new GetPositionResponse().fromJsonString(jsonString, options);
|
|
1078
|
+
}
|
|
1079
|
+
static equals(a, b) {
|
|
1080
|
+
return proto3.util.equals(GetPositionResponse, a, b);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
GetPositionResponse.runtime = proto3;
|
|
1084
|
+
GetPositionResponse.typeName = "data.v1.GetPositionResponse";
|
|
1085
|
+
GetPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
1086
|
+
{ no: 1, name: "position", kind: "message", T: Position },
|
|
1087
|
+
]);
|
|
1088
|
+
/**
|
|
1089
|
+
* @generated from message data.v1.ListPoolsRequest
|
|
1090
|
+
*/
|
|
1091
|
+
export class ListPoolsRequest extends Message {
|
|
1092
|
+
constructor(data) {
|
|
1093
|
+
super();
|
|
1094
|
+
/**
|
|
1095
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1096
|
+
*/
|
|
1097
|
+
this.chainId = 0;
|
|
1098
|
+
/**
|
|
1099
|
+
* @generated from field: string token0 = 2;
|
|
1100
|
+
*/
|
|
1101
|
+
this.token0 = "";
|
|
1102
|
+
/**
|
|
1103
|
+
* @generated from field: string token1 = 3;
|
|
1104
|
+
*/
|
|
1105
|
+
this.token1 = "";
|
|
1106
|
+
/**
|
|
1107
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 4;
|
|
1108
|
+
*/
|
|
1109
|
+
this.protocolVersions = [];
|
|
1110
|
+
proto3.util.initPartial(data, this);
|
|
1111
|
+
}
|
|
1112
|
+
static fromBinary(bytes, options) {
|
|
1113
|
+
return new ListPoolsRequest().fromBinary(bytes, options);
|
|
1114
|
+
}
|
|
1115
|
+
static fromJson(jsonValue, options) {
|
|
1116
|
+
return new ListPoolsRequest().fromJson(jsonValue, options);
|
|
1117
|
+
}
|
|
1118
|
+
static fromJsonString(jsonString, options) {
|
|
1119
|
+
return new ListPoolsRequest().fromJsonString(jsonString, options);
|
|
1120
|
+
}
|
|
1121
|
+
static equals(a, b) {
|
|
1122
|
+
return proto3.util.equals(ListPoolsRequest, a, b);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
ListPoolsRequest.runtime = proto3;
|
|
1126
|
+
ListPoolsRequest.typeName = "data.v1.ListPoolsRequest";
|
|
1127
|
+
ListPoolsRequest.fields = proto3.util.newFieldList(() => [
|
|
1128
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1129
|
+
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1130
|
+
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1131
|
+
{ no: 4, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1132
|
+
{ no: 5, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1133
|
+
{ no: 6, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1134
|
+
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1135
|
+
{ no: 8, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1136
|
+
{ no: 9, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1137
|
+
]);
|
|
1138
|
+
/**
|
|
1139
|
+
* @generated from message data.v1.ListPoolsResponse
|
|
1140
|
+
*/
|
|
1141
|
+
export class ListPoolsResponse extends Message {
|
|
1142
|
+
constructor(data) {
|
|
1143
|
+
super();
|
|
1144
|
+
/**
|
|
1145
|
+
* @generated from field: repeated pools.v1.Pool pools = 1;
|
|
1146
|
+
*/
|
|
1147
|
+
this.pools = [];
|
|
1148
|
+
proto3.util.initPartial(data, this);
|
|
1149
|
+
}
|
|
1150
|
+
static fromBinary(bytes, options) {
|
|
1151
|
+
return new ListPoolsResponse().fromBinary(bytes, options);
|
|
1152
|
+
}
|
|
1153
|
+
static fromJson(jsonValue, options) {
|
|
1154
|
+
return new ListPoolsResponse().fromJson(jsonValue, options);
|
|
1155
|
+
}
|
|
1156
|
+
static fromJsonString(jsonString, options) {
|
|
1157
|
+
return new ListPoolsResponse().fromJsonString(jsonString, options);
|
|
1158
|
+
}
|
|
1159
|
+
static equals(a, b) {
|
|
1160
|
+
return proto3.util.equals(ListPoolsResponse, a, b);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
ListPoolsResponse.runtime = proto3;
|
|
1164
|
+
ListPoolsResponse.typeName = "data.v1.ListPoolsResponse";
|
|
1165
|
+
ListPoolsResponse.fields = proto3.util.newFieldList(() => [
|
|
1166
|
+
{ no: 1, name: "pools", kind: "message", T: Pool, repeated: true },
|
|
1167
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1168
|
+
]);
|
|
1169
|
+
/**
|
|
1170
|
+
* @generated from message data.v1.ListPositionsRequest
|
|
1171
|
+
*/
|
|
1172
|
+
export class ListPositionsRequest extends Message {
|
|
1173
|
+
constructor(data) {
|
|
1174
|
+
super();
|
|
1175
|
+
/**
|
|
1176
|
+
* @generated from field: string address = 1;
|
|
1177
|
+
*/
|
|
1178
|
+
this.address = "";
|
|
1179
|
+
/**
|
|
1180
|
+
* default all chains
|
|
1181
|
+
*
|
|
1182
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1183
|
+
*/
|
|
1184
|
+
this.chainIds = [];
|
|
1185
|
+
/**
|
|
1186
|
+
* default all versions
|
|
1187
|
+
*
|
|
1188
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 3;
|
|
1189
|
+
*/
|
|
1190
|
+
this.protocolVersions = [];
|
|
1191
|
+
/**
|
|
1192
|
+
* default all position statuses
|
|
1193
|
+
*
|
|
1194
|
+
* @generated from field: repeated pools.v1.PositionStatus position_statuses = 4;
|
|
1195
|
+
*/
|
|
1196
|
+
this.positionStatuses = [];
|
|
1197
|
+
proto3.util.initPartial(data, this);
|
|
1198
|
+
}
|
|
1199
|
+
static fromBinary(bytes, options) {
|
|
1200
|
+
return new ListPositionsRequest().fromBinary(bytes, options);
|
|
1201
|
+
}
|
|
1202
|
+
static fromJson(jsonValue, options) {
|
|
1203
|
+
return new ListPositionsRequest().fromJson(jsonValue, options);
|
|
1204
|
+
}
|
|
1205
|
+
static fromJsonString(jsonString, options) {
|
|
1206
|
+
return new ListPositionsRequest().fromJsonString(jsonString, options);
|
|
1207
|
+
}
|
|
1208
|
+
static equals(a, b) {
|
|
1209
|
+
return proto3.util.equals(ListPositionsRequest, a, b);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
ListPositionsRequest.runtime = proto3;
|
|
1213
|
+
ListPositionsRequest.typeName = "data.v1.ListPositionsRequest";
|
|
1214
|
+
ListPositionsRequest.fields = proto3.util.newFieldList(() => [
|
|
1215
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1216
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1217
|
+
{ no: 3, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1218
|
+
{ no: 4, name: "position_statuses", kind: "enum", T: proto3.getEnumType(PositionStatus), repeated: true },
|
|
1219
|
+
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1220
|
+
{ no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1221
|
+
{ no: 7, name: "order_by", kind: "enum", T: proto3.getEnumType(OrderBy), opt: true },
|
|
1222
|
+
{ no: 8, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1223
|
+
{ no: 9, name: "poolId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1224
|
+
{ no: 10, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1225
|
+
{ no: 11, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1226
|
+
{ no: 12, name: "include_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1227
|
+
]);
|
|
1228
|
+
/**
|
|
1229
|
+
* @generated from message data.v1.ListPositionsResponse
|
|
1230
|
+
*/
|
|
1231
|
+
export class ListPositionsResponse extends Message {
|
|
1232
|
+
constructor(data) {
|
|
1233
|
+
super();
|
|
1234
|
+
/**
|
|
1235
|
+
* @generated from field: repeated pools.v1.Position positions = 1;
|
|
1236
|
+
*/
|
|
1237
|
+
this.positions = [];
|
|
1238
|
+
proto3.util.initPartial(data, this);
|
|
1239
|
+
}
|
|
1240
|
+
static fromBinary(bytes, options) {
|
|
1241
|
+
return new ListPositionsResponse().fromBinary(bytes, options);
|
|
1242
|
+
}
|
|
1243
|
+
static fromJson(jsonValue, options) {
|
|
1244
|
+
return new ListPositionsResponse().fromJson(jsonValue, options);
|
|
1245
|
+
}
|
|
1246
|
+
static fromJsonString(jsonString, options) {
|
|
1247
|
+
return new ListPositionsResponse().fromJsonString(jsonString, options);
|
|
1248
|
+
}
|
|
1249
|
+
static equals(a, b) {
|
|
1250
|
+
return proto3.util.equals(ListPositionsResponse, a, b);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
ListPositionsResponse.runtime = proto3;
|
|
1254
|
+
ListPositionsResponse.typeName = "data.v1.ListPositionsResponse";
|
|
1255
|
+
ListPositionsResponse.fields = proto3.util.newFieldList(() => [
|
|
1256
|
+
{ no: 1, name: "positions", kind: "message", T: Position, repeated: true },
|
|
1257
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1258
|
+
]);
|
|
1259
|
+
/**
|
|
1260
|
+
* @generated from message data.v1.GetRewardsRequest
|
|
1261
|
+
*/
|
|
1262
|
+
export class GetRewardsRequest extends Message {
|
|
1263
|
+
constructor(data) {
|
|
1264
|
+
super();
|
|
1265
|
+
/**
|
|
1266
|
+
* @generated from field: string wallet_address = 1;
|
|
1267
|
+
*/
|
|
1268
|
+
this.walletAddress = "";
|
|
1269
|
+
/**
|
|
1270
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1271
|
+
*/
|
|
1272
|
+
this.chainIds = [];
|
|
1273
|
+
proto3.util.initPartial(data, this);
|
|
1274
|
+
}
|
|
1275
|
+
static fromBinary(bytes, options) {
|
|
1276
|
+
return new GetRewardsRequest().fromBinary(bytes, options);
|
|
1277
|
+
}
|
|
1278
|
+
static fromJson(jsonValue, options) {
|
|
1279
|
+
return new GetRewardsRequest().fromJson(jsonValue, options);
|
|
1280
|
+
}
|
|
1281
|
+
static fromJsonString(jsonString, options) {
|
|
1282
|
+
return new GetRewardsRequest().fromJsonString(jsonString, options);
|
|
1283
|
+
}
|
|
1284
|
+
static equals(a, b) {
|
|
1285
|
+
return proto3.util.equals(GetRewardsRequest, a, b);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
GetRewardsRequest.runtime = proto3;
|
|
1289
|
+
GetRewardsRequest.typeName = "data.v1.GetRewardsRequest";
|
|
1290
|
+
GetRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
1291
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1292
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1293
|
+
{ no: 3, name: "reload", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1294
|
+
]);
|
|
1295
|
+
/**
|
|
1296
|
+
* @generated from message data.v1.GetRewardsResponse
|
|
1297
|
+
*/
|
|
1298
|
+
export class GetRewardsResponse extends Message {
|
|
1299
|
+
constructor(data) {
|
|
1300
|
+
super();
|
|
1301
|
+
/**
|
|
1302
|
+
* @generated from field: string total_unclaimed_amount_uni = 1;
|
|
1303
|
+
*/
|
|
1304
|
+
this.totalUnclaimedAmountUni = "";
|
|
1305
|
+
proto3.util.initPartial(data, this);
|
|
1306
|
+
}
|
|
1307
|
+
static fromBinary(bytes, options) {
|
|
1308
|
+
return new GetRewardsResponse().fromBinary(bytes, options);
|
|
1309
|
+
}
|
|
1310
|
+
static fromJson(jsonValue, options) {
|
|
1311
|
+
return new GetRewardsResponse().fromJson(jsonValue, options);
|
|
1312
|
+
}
|
|
1313
|
+
static fromJsonString(jsonString, options) {
|
|
1314
|
+
return new GetRewardsResponse().fromJsonString(jsonString, options);
|
|
1315
|
+
}
|
|
1316
|
+
static equals(a, b) {
|
|
1317
|
+
return proto3.util.equals(GetRewardsResponse, a, b);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
GetRewardsResponse.runtime = proto3;
|
|
1321
|
+
GetRewardsResponse.typeName = "data.v1.GetRewardsResponse";
|
|
1322
|
+
GetRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1323
|
+
{ no: 1, name: "total_unclaimed_amount_uni", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1324
|
+
]);
|