@uniswap/client-data-api 0.0.13 → 0.0.15
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 +394 -4
- package/dist/data/v1/api_pb.js +530 -8
- package/dist/data/v1/poolTypes_pb.d.ts +457 -0
- package/dist/data/v1/poolTypes_pb.js +593 -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
|
*/
|
|
@@ -318,10 +338,6 @@ GetTokenResponse.fields = proto3.util.newFieldList(() => [
|
|
|
318
338
|
export class GetPortfolioRequest extends Message {
|
|
319
339
|
constructor(data) {
|
|
320
340
|
super();
|
|
321
|
-
/**
|
|
322
|
-
* @generated from field: string address = 1;
|
|
323
|
-
*/
|
|
324
|
-
this.address = "";
|
|
325
341
|
/**
|
|
326
342
|
* @generated from field: repeated uint32 chain_ids = 2;
|
|
327
343
|
*/
|
|
@@ -344,7 +360,7 @@ export class GetPortfolioRequest extends Message {
|
|
|
344
360
|
GetPortfolioRequest.runtime = proto3;
|
|
345
361
|
GetPortfolioRequest.typeName = "data.v1.GetPortfolioRequest";
|
|
346
362
|
GetPortfolioRequest.fields = proto3.util.newFieldList(() => [
|
|
347
|
-
{ no: 1, name: "
|
|
363
|
+
{ no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
|
|
348
364
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
349
365
|
{ no: 3, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
|
|
350
366
|
]);
|
|
@@ -381,9 +397,9 @@ export class ListPortfoliosRequest extends Message {
|
|
|
381
397
|
constructor(data) {
|
|
382
398
|
super();
|
|
383
399
|
/**
|
|
384
|
-
* @generated from field: repeated
|
|
400
|
+
* @generated from field: repeated data.v1.WalletAccount wallet_accounts = 1;
|
|
385
401
|
*/
|
|
386
|
-
this.
|
|
402
|
+
this.walletAccounts = [];
|
|
387
403
|
/**
|
|
388
404
|
* @generated from field: repeated uint32 chain_ids = 2;
|
|
389
405
|
*/
|
|
@@ -410,7 +426,7 @@ export class ListPortfoliosRequest extends Message {
|
|
|
410
426
|
ListPortfoliosRequest.runtime = proto3;
|
|
411
427
|
ListPortfoliosRequest.typeName = "data.v1.ListPortfoliosRequest";
|
|
412
428
|
ListPortfoliosRequest.fields = proto3.util.newFieldList(() => [
|
|
413
|
-
{ no: 1, name: "
|
|
429
|
+
{ no: 1, name: "wallet_accounts", kind: "message", T: WalletAccount, repeated: true },
|
|
414
430
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
415
431
|
{ no: 3, name: "modifiers", kind: "message", T: PortfolioValueModifier, repeated: true },
|
|
416
432
|
]);
|
|
@@ -746,3 +762,509 @@ ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
746
762
|
{ no: 1, name: "transactions", kind: "message", T: Transaction, repeated: true },
|
|
747
763
|
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
748
764
|
]);
|
|
765
|
+
/**
|
|
766
|
+
* @generated from message data.v1.CreateTokenFactoryPresignedUrlRequest
|
|
767
|
+
*/
|
|
768
|
+
export class CreateTokenFactoryPresignedUrlRequest extends Message {
|
|
769
|
+
constructor(data) {
|
|
770
|
+
super();
|
|
771
|
+
/**
|
|
772
|
+
* @generated from field: string file_name = 1;
|
|
773
|
+
*/
|
|
774
|
+
this.fileName = "";
|
|
775
|
+
proto3.util.initPartial(data, this);
|
|
776
|
+
}
|
|
777
|
+
static fromBinary(bytes, options) {
|
|
778
|
+
return new CreateTokenFactoryPresignedUrlRequest().fromBinary(bytes, options);
|
|
779
|
+
}
|
|
780
|
+
static fromJson(jsonValue, options) {
|
|
781
|
+
return new CreateTokenFactoryPresignedUrlRequest().fromJson(jsonValue, options);
|
|
782
|
+
}
|
|
783
|
+
static fromJsonString(jsonString, options) {
|
|
784
|
+
return new CreateTokenFactoryPresignedUrlRequest().fromJsonString(jsonString, options);
|
|
785
|
+
}
|
|
786
|
+
static equals(a, b) {
|
|
787
|
+
return proto3.util.equals(CreateTokenFactoryPresignedUrlRequest, a, b);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
CreateTokenFactoryPresignedUrlRequest.runtime = proto3;
|
|
791
|
+
CreateTokenFactoryPresignedUrlRequest.typeName = "data.v1.CreateTokenFactoryPresignedUrlRequest";
|
|
792
|
+
CreateTokenFactoryPresignedUrlRequest.fields = proto3.util.newFieldList(() => [
|
|
793
|
+
{ no: 1, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
794
|
+
]);
|
|
795
|
+
/**
|
|
796
|
+
* @generated from message data.v1.CreateTokenFactoryPresignedUrlResponse
|
|
797
|
+
*/
|
|
798
|
+
export class CreateTokenFactoryPresignedUrlResponse extends Message {
|
|
799
|
+
constructor(data) {
|
|
800
|
+
super();
|
|
801
|
+
/**
|
|
802
|
+
* @generated from field: string url = 1;
|
|
803
|
+
*/
|
|
804
|
+
this.url = "";
|
|
805
|
+
proto3.util.initPartial(data, this);
|
|
806
|
+
}
|
|
807
|
+
static fromBinary(bytes, options) {
|
|
808
|
+
return new CreateTokenFactoryPresignedUrlResponse().fromBinary(bytes, options);
|
|
809
|
+
}
|
|
810
|
+
static fromJson(jsonValue, options) {
|
|
811
|
+
return new CreateTokenFactoryPresignedUrlResponse().fromJson(jsonValue, options);
|
|
812
|
+
}
|
|
813
|
+
static fromJsonString(jsonString, options) {
|
|
814
|
+
return new CreateTokenFactoryPresignedUrlResponse().fromJsonString(jsonString, options);
|
|
815
|
+
}
|
|
816
|
+
static equals(a, b) {
|
|
817
|
+
return proto3.util.equals(CreateTokenFactoryPresignedUrlResponse, a, b);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
CreateTokenFactoryPresignedUrlResponse.runtime = proto3;
|
|
821
|
+
CreateTokenFactoryPresignedUrlResponse.typeName = "data.v1.CreateTokenFactoryPresignedUrlResponse";
|
|
822
|
+
CreateTokenFactoryPresignedUrlResponse.fields = proto3.util.newFieldList(() => [
|
|
823
|
+
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
|
+
]);
|
|
825
|
+
/**
|
|
826
|
+
* @generated from message data.v1.GetPairRequest
|
|
827
|
+
*/
|
|
828
|
+
export class GetPairRequest extends Message {
|
|
829
|
+
constructor(data) {
|
|
830
|
+
super();
|
|
831
|
+
/**
|
|
832
|
+
* @generated from field: uint32 chain_id = 1;
|
|
833
|
+
*/
|
|
834
|
+
this.chainId = 0;
|
|
835
|
+
/**
|
|
836
|
+
* @generated from field: string pair_address = 2;
|
|
837
|
+
*/
|
|
838
|
+
this.pairAddress = "";
|
|
839
|
+
proto3.util.initPartial(data, this);
|
|
840
|
+
}
|
|
841
|
+
static fromBinary(bytes, options) {
|
|
842
|
+
return new GetPairRequest().fromBinary(bytes, options);
|
|
843
|
+
}
|
|
844
|
+
static fromJson(jsonValue, options) {
|
|
845
|
+
return new GetPairRequest().fromJson(jsonValue, options);
|
|
846
|
+
}
|
|
847
|
+
static fromJsonString(jsonString, options) {
|
|
848
|
+
return new GetPairRequest().fromJsonString(jsonString, options);
|
|
849
|
+
}
|
|
850
|
+
static equals(a, b) {
|
|
851
|
+
return proto3.util.equals(GetPairRequest, a, b);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
GetPairRequest.runtime = proto3;
|
|
855
|
+
GetPairRequest.typeName = "data.v1.GetPairRequest";
|
|
856
|
+
GetPairRequest.fields = proto3.util.newFieldList(() => [
|
|
857
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
858
|
+
{ no: 2, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
859
|
+
]);
|
|
860
|
+
/**
|
|
861
|
+
* @generated from message data.v1.GetPairResponse
|
|
862
|
+
*/
|
|
863
|
+
export class GetPairResponse extends Message {
|
|
864
|
+
constructor(data) {
|
|
865
|
+
super();
|
|
866
|
+
proto3.util.initPartial(data, this);
|
|
867
|
+
}
|
|
868
|
+
static fromBinary(bytes, options) {
|
|
869
|
+
return new GetPairResponse().fromBinary(bytes, options);
|
|
870
|
+
}
|
|
871
|
+
static fromJson(jsonValue, options) {
|
|
872
|
+
return new GetPairResponse().fromJson(jsonValue, options);
|
|
873
|
+
}
|
|
874
|
+
static fromJsonString(jsonString, options) {
|
|
875
|
+
return new GetPairResponse().fromJsonString(jsonString, options);
|
|
876
|
+
}
|
|
877
|
+
static equals(a, b) {
|
|
878
|
+
return proto3.util.equals(GetPairResponse, a, b);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
GetPairResponse.runtime = proto3;
|
|
882
|
+
GetPairResponse.typeName = "data.v1.GetPairResponse";
|
|
883
|
+
GetPairResponse.fields = proto3.util.newFieldList(() => [
|
|
884
|
+
{ no: 1, name: "pair", kind: "message", T: Pair },
|
|
885
|
+
]);
|
|
886
|
+
/**
|
|
887
|
+
* @generated from message data.v1.GetPoolRequest
|
|
888
|
+
*/
|
|
889
|
+
export class GetPoolRequest extends Message {
|
|
890
|
+
constructor(data) {
|
|
891
|
+
super();
|
|
892
|
+
/**
|
|
893
|
+
* @generated from field: uint32 chain_id = 1;
|
|
894
|
+
*/
|
|
895
|
+
this.chainId = 0;
|
|
896
|
+
/**
|
|
897
|
+
* @generated from field: string pool_id = 2;
|
|
898
|
+
*/
|
|
899
|
+
this.poolId = "";
|
|
900
|
+
/**
|
|
901
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 3;
|
|
902
|
+
*/
|
|
903
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
904
|
+
proto3.util.initPartial(data, this);
|
|
905
|
+
}
|
|
906
|
+
static fromBinary(bytes, options) {
|
|
907
|
+
return new GetPoolRequest().fromBinary(bytes, options);
|
|
908
|
+
}
|
|
909
|
+
static fromJson(jsonValue, options) {
|
|
910
|
+
return new GetPoolRequest().fromJson(jsonValue, options);
|
|
911
|
+
}
|
|
912
|
+
static fromJsonString(jsonString, options) {
|
|
913
|
+
return new GetPoolRequest().fromJsonString(jsonString, options);
|
|
914
|
+
}
|
|
915
|
+
static equals(a, b) {
|
|
916
|
+
return proto3.util.equals(GetPoolRequest, a, b);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
GetPoolRequest.runtime = proto3;
|
|
920
|
+
GetPoolRequest.typeName = "data.v1.GetPoolRequest";
|
|
921
|
+
GetPoolRequest.fields = proto3.util.newFieldList(() => [
|
|
922
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
923
|
+
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
924
|
+
{ no: 3, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
925
|
+
]);
|
|
926
|
+
/**
|
|
927
|
+
* @generated from message data.v1.GetPoolResponse
|
|
928
|
+
*/
|
|
929
|
+
export class GetPoolResponse extends Message {
|
|
930
|
+
constructor(data) {
|
|
931
|
+
super();
|
|
932
|
+
proto3.util.initPartial(data, this);
|
|
933
|
+
}
|
|
934
|
+
static fromBinary(bytes, options) {
|
|
935
|
+
return new GetPoolResponse().fromBinary(bytes, options);
|
|
936
|
+
}
|
|
937
|
+
static fromJson(jsonValue, options) {
|
|
938
|
+
return new GetPoolResponse().fromJson(jsonValue, options);
|
|
939
|
+
}
|
|
940
|
+
static fromJsonString(jsonString, options) {
|
|
941
|
+
return new GetPoolResponse().fromJsonString(jsonString, options);
|
|
942
|
+
}
|
|
943
|
+
static equals(a, b) {
|
|
944
|
+
return proto3.util.equals(GetPoolResponse, a, b);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
GetPoolResponse.runtime = proto3;
|
|
948
|
+
GetPoolResponse.typeName = "data.v1.GetPoolResponse";
|
|
949
|
+
GetPoolResponse.fields = proto3.util.newFieldList(() => [
|
|
950
|
+
{ no: 1, name: "pool", kind: "message", T: Pool },
|
|
951
|
+
]);
|
|
952
|
+
/**
|
|
953
|
+
* @generated from message data.v1.GetPositionRequest
|
|
954
|
+
*/
|
|
955
|
+
export class GetPositionRequest extends Message {
|
|
956
|
+
constructor(data) {
|
|
957
|
+
super();
|
|
958
|
+
/**
|
|
959
|
+
* @generated from field: uint32 chain_id = 1;
|
|
960
|
+
*/
|
|
961
|
+
this.chainId = 0;
|
|
962
|
+
/**
|
|
963
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
964
|
+
*/
|
|
965
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
966
|
+
/**
|
|
967
|
+
* required for V3/V4
|
|
968
|
+
*
|
|
969
|
+
* @generated from field: string token_id = 3;
|
|
970
|
+
*/
|
|
971
|
+
this.tokenId = "";
|
|
972
|
+
/**
|
|
973
|
+
* required for V2
|
|
974
|
+
*
|
|
975
|
+
* @generated from field: string pair_address = 4;
|
|
976
|
+
*/
|
|
977
|
+
this.pairAddress = "";
|
|
978
|
+
/**
|
|
979
|
+
* required for V2
|
|
980
|
+
*
|
|
981
|
+
* @generated from field: string owner = 5;
|
|
982
|
+
*/
|
|
983
|
+
this.owner = "";
|
|
984
|
+
proto3.util.initPartial(data, this);
|
|
985
|
+
}
|
|
986
|
+
static fromBinary(bytes, options) {
|
|
987
|
+
return new GetPositionRequest().fromBinary(bytes, options);
|
|
988
|
+
}
|
|
989
|
+
static fromJson(jsonValue, options) {
|
|
990
|
+
return new GetPositionRequest().fromJson(jsonValue, options);
|
|
991
|
+
}
|
|
992
|
+
static fromJsonString(jsonString, options) {
|
|
993
|
+
return new GetPositionRequest().fromJsonString(jsonString, options);
|
|
994
|
+
}
|
|
995
|
+
static equals(a, b) {
|
|
996
|
+
return proto3.util.equals(GetPositionRequest, a, b);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
GetPositionRequest.runtime = proto3;
|
|
1000
|
+
GetPositionRequest.typeName = "data.v1.GetPositionRequest";
|
|
1001
|
+
GetPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
1002
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1003
|
+
{ no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1004
|
+
{ no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1005
|
+
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1006
|
+
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1007
|
+
]);
|
|
1008
|
+
/**
|
|
1009
|
+
* @generated from message data.v1.GetPositionResponse
|
|
1010
|
+
*/
|
|
1011
|
+
export class GetPositionResponse extends Message {
|
|
1012
|
+
constructor(data) {
|
|
1013
|
+
super();
|
|
1014
|
+
proto3.util.initPartial(data, this);
|
|
1015
|
+
}
|
|
1016
|
+
static fromBinary(bytes, options) {
|
|
1017
|
+
return new GetPositionResponse().fromBinary(bytes, options);
|
|
1018
|
+
}
|
|
1019
|
+
static fromJson(jsonValue, options) {
|
|
1020
|
+
return new GetPositionResponse().fromJson(jsonValue, options);
|
|
1021
|
+
}
|
|
1022
|
+
static fromJsonString(jsonString, options) {
|
|
1023
|
+
return new GetPositionResponse().fromJsonString(jsonString, options);
|
|
1024
|
+
}
|
|
1025
|
+
static equals(a, b) {
|
|
1026
|
+
return proto3.util.equals(GetPositionResponse, a, b);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
GetPositionResponse.runtime = proto3;
|
|
1030
|
+
GetPositionResponse.typeName = "data.v1.GetPositionResponse";
|
|
1031
|
+
GetPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
1032
|
+
{ no: 1, name: "position", kind: "message", T: Position },
|
|
1033
|
+
]);
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from message data.v1.ListPoolsRequest
|
|
1036
|
+
*/
|
|
1037
|
+
export class ListPoolsRequest extends Message {
|
|
1038
|
+
constructor(data) {
|
|
1039
|
+
super();
|
|
1040
|
+
/**
|
|
1041
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1042
|
+
*/
|
|
1043
|
+
this.chainId = 0;
|
|
1044
|
+
/**
|
|
1045
|
+
* @generated from field: string token0 = 2;
|
|
1046
|
+
*/
|
|
1047
|
+
this.token0 = "";
|
|
1048
|
+
/**
|
|
1049
|
+
* @generated from field: string token1 = 3;
|
|
1050
|
+
*/
|
|
1051
|
+
this.token1 = "";
|
|
1052
|
+
/**
|
|
1053
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 4;
|
|
1054
|
+
*/
|
|
1055
|
+
this.protocolVersions = [];
|
|
1056
|
+
proto3.util.initPartial(data, this);
|
|
1057
|
+
}
|
|
1058
|
+
static fromBinary(bytes, options) {
|
|
1059
|
+
return new ListPoolsRequest().fromBinary(bytes, options);
|
|
1060
|
+
}
|
|
1061
|
+
static fromJson(jsonValue, options) {
|
|
1062
|
+
return new ListPoolsRequest().fromJson(jsonValue, options);
|
|
1063
|
+
}
|
|
1064
|
+
static fromJsonString(jsonString, options) {
|
|
1065
|
+
return new ListPoolsRequest().fromJsonString(jsonString, options);
|
|
1066
|
+
}
|
|
1067
|
+
static equals(a, b) {
|
|
1068
|
+
return proto3.util.equals(ListPoolsRequest, a, b);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
ListPoolsRequest.runtime = proto3;
|
|
1072
|
+
ListPoolsRequest.typeName = "data.v1.ListPoolsRequest";
|
|
1073
|
+
ListPoolsRequest.fields = proto3.util.newFieldList(() => [
|
|
1074
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1075
|
+
{ no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1076
|
+
{ no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1077
|
+
{ no: 4, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1078
|
+
{ no: 5, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1079
|
+
{ no: 6, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1080
|
+
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1081
|
+
{ no: 8, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1082
|
+
{ no: 9, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1083
|
+
]);
|
|
1084
|
+
/**
|
|
1085
|
+
* @generated from message data.v1.ListPoolsResponse
|
|
1086
|
+
*/
|
|
1087
|
+
export class ListPoolsResponse extends Message {
|
|
1088
|
+
constructor(data) {
|
|
1089
|
+
super();
|
|
1090
|
+
/**
|
|
1091
|
+
* @generated from field: repeated pools.v1.Pool pools = 1;
|
|
1092
|
+
*/
|
|
1093
|
+
this.pools = [];
|
|
1094
|
+
proto3.util.initPartial(data, this);
|
|
1095
|
+
}
|
|
1096
|
+
static fromBinary(bytes, options) {
|
|
1097
|
+
return new ListPoolsResponse().fromBinary(bytes, options);
|
|
1098
|
+
}
|
|
1099
|
+
static fromJson(jsonValue, options) {
|
|
1100
|
+
return new ListPoolsResponse().fromJson(jsonValue, options);
|
|
1101
|
+
}
|
|
1102
|
+
static fromJsonString(jsonString, options) {
|
|
1103
|
+
return new ListPoolsResponse().fromJsonString(jsonString, options);
|
|
1104
|
+
}
|
|
1105
|
+
static equals(a, b) {
|
|
1106
|
+
return proto3.util.equals(ListPoolsResponse, a, b);
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
ListPoolsResponse.runtime = proto3;
|
|
1110
|
+
ListPoolsResponse.typeName = "data.v1.ListPoolsResponse";
|
|
1111
|
+
ListPoolsResponse.fields = proto3.util.newFieldList(() => [
|
|
1112
|
+
{ no: 1, name: "pools", kind: "message", T: Pool, repeated: true },
|
|
1113
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1114
|
+
]);
|
|
1115
|
+
/**
|
|
1116
|
+
* @generated from message data.v1.ListPositionsRequest
|
|
1117
|
+
*/
|
|
1118
|
+
export class ListPositionsRequest extends Message {
|
|
1119
|
+
constructor(data) {
|
|
1120
|
+
super();
|
|
1121
|
+
/**
|
|
1122
|
+
* @generated from field: string address = 1;
|
|
1123
|
+
*/
|
|
1124
|
+
this.address = "";
|
|
1125
|
+
/**
|
|
1126
|
+
* default all chains
|
|
1127
|
+
*
|
|
1128
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1129
|
+
*/
|
|
1130
|
+
this.chainIds = [];
|
|
1131
|
+
/**
|
|
1132
|
+
* default all versions
|
|
1133
|
+
*
|
|
1134
|
+
* @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 3;
|
|
1135
|
+
*/
|
|
1136
|
+
this.protocolVersions = [];
|
|
1137
|
+
/**
|
|
1138
|
+
* default all position statuses
|
|
1139
|
+
*
|
|
1140
|
+
* @generated from field: repeated pools.v1.PositionStatus position_statuses = 4;
|
|
1141
|
+
*/
|
|
1142
|
+
this.positionStatuses = [];
|
|
1143
|
+
proto3.util.initPartial(data, this);
|
|
1144
|
+
}
|
|
1145
|
+
static fromBinary(bytes, options) {
|
|
1146
|
+
return new ListPositionsRequest().fromBinary(bytes, options);
|
|
1147
|
+
}
|
|
1148
|
+
static fromJson(jsonValue, options) {
|
|
1149
|
+
return new ListPositionsRequest().fromJson(jsonValue, options);
|
|
1150
|
+
}
|
|
1151
|
+
static fromJsonString(jsonString, options) {
|
|
1152
|
+
return new ListPositionsRequest().fromJsonString(jsonString, options);
|
|
1153
|
+
}
|
|
1154
|
+
static equals(a, b) {
|
|
1155
|
+
return proto3.util.equals(ListPositionsRequest, a, b);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
ListPositionsRequest.runtime = proto3;
|
|
1159
|
+
ListPositionsRequest.typeName = "data.v1.ListPositionsRequest";
|
|
1160
|
+
ListPositionsRequest.fields = proto3.util.newFieldList(() => [
|
|
1161
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1162
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1163
|
+
{ no: 3, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
|
|
1164
|
+
{ no: 4, name: "position_statuses", kind: "enum", T: proto3.getEnumType(PositionStatus), repeated: true },
|
|
1165
|
+
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1166
|
+
{ no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1167
|
+
{ no: 7, name: "order_by", kind: "enum", T: proto3.getEnumType(OrderBy), opt: true },
|
|
1168
|
+
{ no: 8, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1169
|
+
{ no: 9, name: "poolId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1170
|
+
{ no: 10, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1171
|
+
{ no: 11, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1172
|
+
{ no: 12, name: "include_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1173
|
+
]);
|
|
1174
|
+
/**
|
|
1175
|
+
* @generated from message data.v1.ListPositionsResponse
|
|
1176
|
+
*/
|
|
1177
|
+
export class ListPositionsResponse extends Message {
|
|
1178
|
+
constructor(data) {
|
|
1179
|
+
super();
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from field: repeated pools.v1.Position positions = 1;
|
|
1182
|
+
*/
|
|
1183
|
+
this.positions = [];
|
|
1184
|
+
proto3.util.initPartial(data, this);
|
|
1185
|
+
}
|
|
1186
|
+
static fromBinary(bytes, options) {
|
|
1187
|
+
return new ListPositionsResponse().fromBinary(bytes, options);
|
|
1188
|
+
}
|
|
1189
|
+
static fromJson(jsonValue, options) {
|
|
1190
|
+
return new ListPositionsResponse().fromJson(jsonValue, options);
|
|
1191
|
+
}
|
|
1192
|
+
static fromJsonString(jsonString, options) {
|
|
1193
|
+
return new ListPositionsResponse().fromJsonString(jsonString, options);
|
|
1194
|
+
}
|
|
1195
|
+
static equals(a, b) {
|
|
1196
|
+
return proto3.util.equals(ListPositionsResponse, a, b);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
ListPositionsResponse.runtime = proto3;
|
|
1200
|
+
ListPositionsResponse.typeName = "data.v1.ListPositionsResponse";
|
|
1201
|
+
ListPositionsResponse.fields = proto3.util.newFieldList(() => [
|
|
1202
|
+
{ no: 1, name: "positions", kind: "message", T: Position, repeated: true },
|
|
1203
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1204
|
+
]);
|
|
1205
|
+
/**
|
|
1206
|
+
* @generated from message data.v1.GetRewardsRequest
|
|
1207
|
+
*/
|
|
1208
|
+
export class GetRewardsRequest extends Message {
|
|
1209
|
+
constructor(data) {
|
|
1210
|
+
super();
|
|
1211
|
+
/**
|
|
1212
|
+
* @generated from field: string wallet_address = 1;
|
|
1213
|
+
*/
|
|
1214
|
+
this.walletAddress = "";
|
|
1215
|
+
/**
|
|
1216
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1217
|
+
*/
|
|
1218
|
+
this.chainIds = [];
|
|
1219
|
+
proto3.util.initPartial(data, this);
|
|
1220
|
+
}
|
|
1221
|
+
static fromBinary(bytes, options) {
|
|
1222
|
+
return new GetRewardsRequest().fromBinary(bytes, options);
|
|
1223
|
+
}
|
|
1224
|
+
static fromJson(jsonValue, options) {
|
|
1225
|
+
return new GetRewardsRequest().fromJson(jsonValue, options);
|
|
1226
|
+
}
|
|
1227
|
+
static fromJsonString(jsonString, options) {
|
|
1228
|
+
return new GetRewardsRequest().fromJsonString(jsonString, options);
|
|
1229
|
+
}
|
|
1230
|
+
static equals(a, b) {
|
|
1231
|
+
return proto3.util.equals(GetRewardsRequest, a, b);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
GetRewardsRequest.runtime = proto3;
|
|
1235
|
+
GetRewardsRequest.typeName = "data.v1.GetRewardsRequest";
|
|
1236
|
+
GetRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
1237
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1238
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1239
|
+
{ no: 3, name: "reload", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1240
|
+
]);
|
|
1241
|
+
/**
|
|
1242
|
+
* @generated from message data.v1.GetRewardsResponse
|
|
1243
|
+
*/
|
|
1244
|
+
export class GetRewardsResponse extends Message {
|
|
1245
|
+
constructor(data) {
|
|
1246
|
+
super();
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated from field: string total_unclaimed_amount_uni = 1;
|
|
1249
|
+
*/
|
|
1250
|
+
this.totalUnclaimedAmountUni = "";
|
|
1251
|
+
proto3.util.initPartial(data, this);
|
|
1252
|
+
}
|
|
1253
|
+
static fromBinary(bytes, options) {
|
|
1254
|
+
return new GetRewardsResponse().fromBinary(bytes, options);
|
|
1255
|
+
}
|
|
1256
|
+
static fromJson(jsonValue, options) {
|
|
1257
|
+
return new GetRewardsResponse().fromJson(jsonValue, options);
|
|
1258
|
+
}
|
|
1259
|
+
static fromJsonString(jsonString, options) {
|
|
1260
|
+
return new GetRewardsResponse().fromJsonString(jsonString, options);
|
|
1261
|
+
}
|
|
1262
|
+
static equals(a, b) {
|
|
1263
|
+
return proto3.util.equals(GetRewardsResponse, a, b);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
GetRewardsResponse.runtime = proto3;
|
|
1267
|
+
GetRewardsResponse.typeName = "data.v1.GetRewardsResponse";
|
|
1268
|
+
GetRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
1269
|
+
{ no: 1, name: "total_unclaimed_amount_uni", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1270
|
+
]);
|